body.playing.neuro-playing #view-play {
  --neuro-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --neuro-ease: cubic-bezier(.22, .8, .26, 1);
  font-family: var(--neuro-font);
  color: #eef3ff;
  background:
    radial-gradient(ellipse at 20% 0%, #122848 0, transparent 42%),
    radial-gradient(ellipse at 100% 85%, #221642 0, transparent 44%),
    #070b19 !important;
}
body.playing.neuro-playing .play-top {
  gap: clamp(5px, 1.4vw, 16px) !important;
  box-sizing: border-box;
  padding: 8px clamp(8px, 1.55vw, 20px) !important;
  background: linear-gradient(115deg, #91b7ed12, #6b57a51a), #0d1524aa !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #d0e9ff12, 0 8px 35px #04081455 !important;
}
.neuro-playing #play-name {
  margin-right: auto;
  text-align: left;
  min-width: 0;
  color: #ebf2ff;
  font: 660 clamp(15px, 2.2vw, 25px)/1.15 var(--neuro-font);
  letter-spacing: -.037em;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.neuro-playing .play-ico { display: none; }
.neuro-playing :is(#play-timer, #play-hud) {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  flex: 0 0 auto;
  text-align: center;
  white-space: nowrap;
  min-width: clamp(53px, 7vw, 105px);
  min-height: 40px;
  margin: 0;
  padding: 3px 7px;
  border-radius: 11px;
  background: #a2b8f011;
  border: 1px solid #9cb9f225;
  color: #e9f3ff;
  font: 650 clamp(12px, 1.5vw, 15px)/1.13 var(--neuro-font);
  font-variant-numeric: tabular-nums;
}
.neuro-playing #play-timer::before,
.neuro-playing #play-hud::before {
  font-size: 9px;
  font-weight: 630;
  letter-spacing: .05em;
  color: #aebfda;
  margin-bottom: 3px;
}
.neuro-playing #play-timer::before { content: "ВРЕМЯ"; }
.neuro-playing #play-hud::before { content: "ВЕРНО"; }
.neuro-playing #play-hud::after {
  position: absolute;
  content: "";
  left: 6px;
  right: 6px;
  bottom: 3px;
  height: 2px;
  border-radius: 3px;
  background: linear-gradient(90deg, #5ce8db, #a28cff) left / var(--neuro-progress, 0%) 100% no-repeat, #a0b8ea2a;
  filter: drop-shadow(0 0 3px #74b3ff80);
  transition: background-size .32s var(--neuro-ease);
}
.neuro-playing :is(#btn-exit,#btn-restart,#btn-fullscreen) {
  flex: 0 0 auto;
  min-width: 34px;
  min-height: 36px;
  padding: 5px 9px;
  border: 1px solid #8aa8d02e;
  border-radius: 10px;
  background: #768cb313;
  color: #dfebff;
  box-shadow: none;
  font: 600 13px/1 var(--neuro-font);
  transition: background .22s var(--neuro-ease), border-color .22s var(--neuro-ease), color .22s var(--neuro-ease);
}
.neuro-playing :is(#btn-exit,#btn-restart,#btn-fullscreen):hover {
  color: #fff;
  border-color: #84cfee80;
  background: #86c8f429;
}
.neuro-playing :is(#btn-restart,#btn-fullscreen) { position: relative; font-size: 0; }
.neuro-playing :is(#btn-restart,#btn-fullscreen)::before {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  background: currentColor;
  mask: var(--neuro-control-icon) center / contain no-repeat;
}
.neuro-playing #btn-restart { --neuro-control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9a8 8 0 1 1 1 8M4 4v5h5'/%3E%3C/svg%3E"); }
.neuro-playing #btn-fullscreen { --neuro-control-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 4H4v4m12-4h4v4M4 16v4h4m12-4v4h-4'/%3E%3C/svg%3E"); }
body.playing.neuro-playing .game-root {
  border-color: #a7b5ff23 !important;
  border-radius: 24px !important;
  background: #070b19 !important;
  box-shadow: 0 18px 52px #0007, inset 0 1px 0 #b8c6ff10 !important;
}
.neuro-board {
  --neuro-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --neuro-ease: cubic-bezier(.22, .8, .26, 1);
  --sphere: clamp(114px, min(16vw, 24dvh), 208px);
  position: relative;
  isolation: isolate;
  display: grid;
  flex: 1 1 0;
  grid-template-rows: auto minmax(min-content, 1fr) auto;
  min-height: 0;
  min-width: 0;
  gap: clamp(6px, 2dvh, 20px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 4dvh, 40px) clamp(12px, 4.4vw, 62px) clamp(12px, 3dvh, 26px);
  background:
    radial-gradient(ellipse at 15% 47%, #12628544, transparent 57%),
    radial-gradient(ellipse at 88% 53%, #6343ba42, transparent 60%),
    radial-gradient(ellipse at 50% 99%, #2320506b, transparent 65%),
    #070b19;
  font-family: var(--neuro-font);
  color: #f0f5ff;
}
.neuro-network {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.neuro-network > svg { width: 100%; height: 100%; }
.neuro-network > .neuro-network-tall { display: none; }
.neuro-network path { vector-effect: non-scaling-stroke; }
.neuro-strands {
  fill: none;
  stroke: #799eea;
  stroke-opacity: .21;
  stroke-width: 1.05;
}
.neuro-branches { fill: none; stroke: #93b8fb; stroke-opacity: .2; stroke-width: .8; }
.neuro-node { fill: #a1d5ff; opacity: .48; }
.neuro-node-halo { fill: #6f8fea; opacity: .17; }
.neuro-signal {
  fill: none;
  stroke: #91dcff;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: .08 1;
  opacity: .0;
  animation: neuro-signal 8.6s linear infinite var(--signal-delay);
  filter: drop-shadow(0 0 4px #768ffd);
}
@keyframes neuro-signal {
  0% { opacity: 0; stroke-dashoffset: .08; }
  12% { opacity: .75; }
  54% { opacity: .6; stroke-dashoffset: -.98; }
  62%,100% { opacity: 0; stroke-dashoffset: -1; }
}
.neuro-bokeh { position: absolute; inset: 0; pointer-events: none; }
.neuro-bokeh i {
  position: absolute;
  left: var(--bx);
  top: var(--by);
  display: block;
  width: var(--b-size);
  height: var(--b-size);
  border-radius: 50%;
  background: #5eb5ff;
  opacity: .12;
  filter: blur(9px);
  animation: neuro-drift 16s ease-in-out infinite var(--b-phase);
}
.neuro-bokeh i:nth-child(3n) { background: #b17dff; }
@keyframes neuro-drift {
  0%,100% { transform: translate(0,0); opacity: .12; }
  52% { transform: translate(18px,-18px); opacity: .22; }
}
.neuro-question {
  box-sizing: border-box;
  width: min(100%, 820px);
  align-self: start;
  justify-self: center;
  border-radius: 20px;
  padding: clamp(13px, 2.6dvh, 28px) clamp(12px, 4vw, 40px);
  text-align: center;
  background: linear-gradient(145deg, #a8caff18, #6d65c217), #121833ad;
  border: 1px solid #abcaff33;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #dbe8ff21, 0 16px 40px #06081558;
}
.neuro-question h2 {
  margin: 0;
  font-size: clamp(19px, 3.15vw, 39px);
  font-weight: 660;
  line-height: 1.22;
  letter-spacing: -.038em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 2px 14px #080b1d90;
}
.neuro-options {
  display: grid;
  align-content: center;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(10px, 2.4vw, 32px);
  width: min(100%, 1100px);
  justify-self: center;
  padding-block: clamp(8px, 5dvh, 44px);
}
.neuro-option {
  --glow: 99, 222, 227;
  --shade: 30, 122, 166;
  appearance: none;
  display: grid;
  align-content: start;
  justify-items: center;
  border: 0;
  padding: 0;
  min-width: 0;
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.neuro-option:nth-child(2) { --glow: 138, 176, 255; --shade: 77, 81, 187; }
.neuro-option:nth-child(3) { --glow: 187, 148, 255; --shade: 115, 59, 172; }
.neuro-option:nth-child(4) { --glow: 112, 229, 185; --shade: 18, 124, 128; }
.neuro-float {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: clamp(6px, 2dvh, 18px);
  width: 100%;
  animation: neuro-float 6.6s ease-in-out infinite var(--phase);
}
@keyframes neuro-float {
  0%,100% { transform: translateY(-6px); }
  50% { transform: translateY(6px); }
}
.neuro-orb {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  width: min(var(--sphere), 100%);
  aspect-ratio: 1;
  transition: transform .28s var(--neuro-ease), filter .28s var(--neuro-ease);
}
.neuro-shell {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 29% 21%, #e5f9ffad 0, rgba(var(--glow), .22) 13%, transparent 31%),
    radial-gradient(ellipse at 71% 86%, rgba(var(--glow), .22), transparent 36%),
    radial-gradient(circle at 43% 38%, rgba(var(--shade), .22) 33%, rgba(var(--shade), .4) 63%, rgba(var(--glow), .4) 92%);
  border: 1px solid rgba(var(--glow), .52);
  box-shadow:
    inset 2px 5px 13px rgba(var(--glow), .36),
    inset -8px -14px 27px #061021b0,
    inset 0 0 26px rgba(var(--shade), .55),
    0 0 24px rgba(var(--glow), .16),
    0 18px 24px #0507127a;
  transition: box-shadow .3s var(--neuro-ease);
}
.neuro-shell::before {
  position: absolute;
  content: "";
  inset: 7%;
  border-radius: 50%;
  border: 1px solid rgba(var(--glow), .24);
  border-bottom-color: rgba(var(--glow), .42);
  border-right-color: transparent;
  transform: rotate(-23deg);
}
.neuro-cilia {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  fill: none;
  stroke: rgba(var(--glow), .54);
  stroke-width: .8;
  stroke-linecap: round;
  pointer-events: none;
}
.neuro-icon {
  z-index: 1;
  width: 66%;
  height: 66%;
  overflow: visible;
  fill: none;
  stroke: rgba(var(--glow), .93);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(var(--glow), .38));
}
.neuro-icon .detail { stroke-width: 1.35; opacity: .74; }
.neuro-icon .soft { fill: rgba(var(--shade), .27); }
.neuro-icon .region { fill: rgba(var(--glow), .31); stroke-width: 1.65; }
.neuro-icon :is(.accent,.band) { stroke: #e1f5ff; stroke-width: 2.55; }
.neuro-icon .band { stroke-width: 4; }
.neuro-icon .hot { fill: #e0f7ff; stroke: none; }
.neuro-icon .point { fill: rgba(var(--glow), .84); stroke: none; }
.neuro-label {
  max-width: 100%;
  padding: 6px clamp(8px, 1.25vw, 16px);
  box-sizing: border-box;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(var(--glow), .13), #adbeff0c), #0f1830d9;
  box-shadow: inset 0 1px 0 #dceaff1b, 0 4px 16px #0509155e;
  backdrop-filter: blur(8px);
  color: #eaf1ff;
  font-size: clamp(13px, 1.55vw, 18px);
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  transition: color .26s var(--neuro-ease), background .26s var(--neuro-ease), box-shadow .26s var(--neuro-ease);
}
.neuro-option:disabled { cursor: default; }
.neuro-option:focus-visible {
  outline: 2px solid #c0eaff;
  outline-offset: 5px;
  border-radius: 18px;
}
.neuro-option:focus-visible .neuro-orb { transform: scale(1.08); }
@media (hover: hover) {
  .neuro-option:not(:disabled):not(.is-wrong):hover .neuro-orb { transform: scale(1.08); filter: brightness(1.25); }
  .neuro-option:not(:disabled):not(.is-wrong):hover .neuro-label {
    color: #fff;
    background: linear-gradient(rgba(var(--glow), .22), rgba(var(--glow), .11)), #111b36;
    box-shadow: inset 0 1px 0 #e3f6ff44, 0 0 14px rgba(var(--glow), .2);
  }
}
.neuro-option.is-correct { --glow: 127, 243, 167; --shade: 42, 169, 108; }
.neuro-option.is-wrong { --glow: 255, 143, 161; --shade: 165, 43, 83; }
.neuro-option.is-correct .neuro-shell {
  box-shadow: inset 0 0 32px #7cf7ac9c, 0 0 34px #7cf7ac99;
}
.neuro-option.is-wrong .neuro-orb { animation: neuro-shake .38s var(--neuro-ease); }
.neuro-option.is-wrong .neuro-shell { box-shadow: inset 0 0 30px #ff648c80, 0 0 25px #fb69946e; }
.neuro-option:is(.is-correct,.is-wrong) .neuro-float { animation-play-state: paused; }
@keyframes neuro-shake {
  0%,100% { transform: translateX(0); }
  24% { transform: translateX(-5px); }
  49% { transform: translateX(4px); }
  73% { transform: translateX(-2px); }
}
.neuro-ripple {
  position: absolute;
  pointer-events: none;
  inset: 0;
  border: 2px solid rgba(var(--glow), .8);
  border-radius: 50%;
  opacity: 0;
}
.neuro-option:is(.is-correct,.is-wrong) .neuro-ripple { animation: neuro-ripple .53s var(--neuro-ease) both; }
@keyframes neuro-ripple {
  from { transform: scale(.85); opacity: .9; }
  to { transform: scale(1.32); opacity: 0; }
}
.neuro-particle {
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: 2;
  animation: neuro-particle .52s var(--neuro-ease) both var(--particle-delay);
}
.neuro-particle::after {
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c3ffd5;
  box-shadow: 0 0 8px #83ffaa;
}
@keyframes neuro-particle {
  0% { transform: translate(0,0); opacity: 1; }
  90%,100% { transform: translate(var(--tx),var(--ty)); opacity: 0; }
}
.neuro-status {
  align-self: end;
  justify-self: center;
  min-height: 1.3em;
  margin: 0;
  text-align: center;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 650;
}
.neuro-status[data-feedback=correct] { color: #a6fcc4; }
.neuro-status[data-feedback=wrong] { color: #ffb6c5; }
@media (max-width: 660px) {
  .neuro-network > .neuro-network-wide { display: none; }
  .neuro-network > .neuro-network-tall { display: block; }
  .neuro-board { --sphere: clamp(70px, min(30vw, 17.7dvh), 124px); padding-inline: 11px; }
  .neuro-question h2 { font-size: clamp(17px, 4.6vw, 24px); }
  .neuro-options {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: clamp(10px, 2.8dvh, 28px) 12px;
    width: min(100%, 420px);
    padding-block: clamp(6px, 2dvh, 18px);
  }
  .neuro-playing #play-name { font-size: clamp(13px, 3.4vw, 20px); }
  .neuro-label { font-size: clamp(12px, 3.2vw, 15px); }
  .neuro-playing :is(#play-timer, #play-hud) {
    min-width: 35px;
    min-height: 33px;
    padding-inline: 4px;
  }
  .neuro-playing :is(#btn-restart,#btn-fullscreen) { min-width: 30px; padding-inline: 5px; }
  .neuro-playing #btn-exit { padding-inline: 5px; font-size: 12px; }
  body.playing.neuro-playing .play-top { padding: 5px !important; }
}
@media (orientation: landscape) and (max-height: 490px) and (min-width: 590px) {
  .neuro-board { --sphere: min(15vw, 25dvh); gap: 5px; padding-block: 8px; }
  .neuro-options { grid-template-columns: repeat(4,minmax(0,1fr)); padding-block: 7px; width: 100%; }
  .neuro-question { padding-block: 9px; }
  .neuro-question h2 { font-size: clamp(17px, 2.6vw, 25px); }
  .neuro-float { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .neuro-board *, .neuro-playing :is(#btn-exit,#btn-restart,#btn-fullscreen,#play-hud)::after {
    animation: none !important;
    transition: none !important;
  }
  .neuro-signal, .neuro-particle { display: none; }
}
