:root {
  color-scheme: light;
  --green: #6dff2a;
  --black: #030305;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--black);
  font-family: Chicago, "Courier New", monospace;
  overflow-x: hidden;
}

button { font: inherit; }

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.game {
  width: min(94vw, 760px);
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 4px 10px;
  font-size: clamp(11px, 1.5vw, 15px);
  letter-spacing: .12em;
}

.brand { font-weight: 900; }
.level { color: #666; }

.board {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 8px var(--black);
  isolation: isolate;
}

.board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
  z-index: 1;
}

.sectors {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.sector {
  fill: var(--sector-color);
  cursor: pointer;
  outline: none;
}

.spoke {
  stroke: #030305;
  stroke-width: 24;
  stroke-linecap: butt;
  pointer-events: none;
}

.sector:hover,
.sector:focus { filter: brightness(1.16); }

.sector.active { filter: brightness(1.34); }

.hub {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 34%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: clamp(7px, 1.3vw, 12px) solid var(--black);
  border-radius: 50%;
  background: var(--black);
  box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 10px 22px rgba(0,0,0,.45);
}

.brain-button {
  position: absolute;
  inset: 6%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #020207;
  border: 2px solid rgba(255,255,255,.42);
  cursor: pointer;
  box-shadow: inset 0 -12px 18px rgba(0,0,0,.72), inset 0 8px 12px rgba(255,255,255,.2), 0 0 0 3px rgba(73, 62, 255, .42), 0 0 24px rgba(90, 0, 255, .62);
  transition: transform .08s ease, filter .12s ease;
}

.brain-button:hover { filter: brightness(1.14); }
.brain-button:active, .brain-button.pressed { transform: translateY(4px) scale(.97); }

.brain-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
  transform: scale(1.08);
}

.brain-button::after {
  content: "";
  position: absolute;
  inset: 3%;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  box-shadow: inset 4px 5px 0 rgba(255,255,255,.13), inset -5px -8px 0 rgba(0,0,0,.5);
  pointer-events: none;
}

.bubble-glint {
  position: absolute;
  left: 10%;
  top: 8%;
  width: 40%;
  height: 14%;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  filter: blur(5px);
  transform: rotate(-22deg);
  z-index: 3;
  pointer-events: none;
}

.prompt {
  position: absolute;
  z-index: 7;
  left: 4%;
  right: 4%;
  bottom: 6%;
  text-align: center;
  color: var(--green);
  font-size: clamp(18px, 4.6vw, 48px);
  line-height: 1;
  letter-spacing: .03em;
  font-weight: 900;
  text-shadow: 4px 4px 0 #000, 0 0 8px rgba(109,255,42,.95), 0 0 22px rgba(109,255,42,.65);
  pointer-events: none;
}

.prompt.flash { animation: prompt-flash .18s steps(2, end); }

.brand-mark {
  display: flex;
  justify-content: center;
  margin: 16px auto 8px;
}

.brand-mark img {
  display: block;
  width: clamp(90px, 16%, 135px);
  height: auto;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.16));
}

.hint {
  margin: 12px 2px 0;
  color: #666;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

@keyframes prompt-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

@media (max-width: 520px) {
  .page { padding: 10px; }
  .topline { margin-bottom: 7px; }
  .hint { font-size: 11px; }
}
