:root {
  color-scheme: dark;
  --bg: #0d0917;
  --ink: #fff3e1;
  --muted: #c2b2d4;
  --panel: #1a102b;
  --line: #695178;
  --rose: #fa7aa7;
  --gold: #ffd38b;
  --ice: #70ebe1;
  --mono: ui-monospace, "Courier New", monospace;
  --body: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html { background: var(--bg); }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #21142f, var(--bg) 45rem);
  color: var(--ink);
  font-family: var(--body);
}
button, input, select { font: inherit; }
button:not(:disabled), select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid #92ecff;
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }

.arcade-shell { position: relative; width: 100%; }
.arcade-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .65rem clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, rgba(10, 7, 20, 0.78) 0%, rgba(10, 7, 20, 0.35) 68%, transparent 100%);
  pointer-events: none;
}
.site-brand, .arcade-controls {
  display: flex;
  align-items: center;
  gap: .7rem;
  pointer-events: auto;
}
.site-brand {
  font: 800 .88rem/1 var(--mono);
  letter-spacing: .055em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
.site-brand canvas {
  width: 28px;
  height: 28px;
  flex: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.65));
}
.site-brand strong { color: var(--rose); }

.nav-channel-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: .28rem .78rem;
  border-radius: 999px;
  background: rgba(24, 16, 38, 0.76);
  border: 1px solid rgba(112, 235, 225, 0.35);
  color: var(--ice);
  font: 700 .78rem/1 var(--mono);
  backdrop-filter: blur(8px);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.nav-channel-link:hover {
  background: rgba(38, 26, 62, 0.92);
  color: var(--gold);
  border-color: var(--gold);
}

.motion-control {
  min-height: 2.35rem;
  min-width: 2.35rem;
  padding-inline: .5rem;
  display: grid;
  place-items: center;
  background: rgba(33, 22, 48, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--ink);
  backdrop-filter: blur(8px);
  transition: background-color .2s ease;
}
.motion-control:hover { background: rgba(56, 36, 82, 0.9); }

.scene-switcher {
  display: inline-flex;
  align-items: center;
  padding: .2rem;
  gap: .2rem;
  border-radius: 999px;
  background: rgba(24, 16, 38, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}
.scene-option {
  min-height: 2rem;
  padding: .25rem .72rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 .76rem/1 var(--mono);
  letter-spacing: .02em;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.scene-option:hover { color: var(--ink); }
.scene-option.active[data-theme="hollywood"] {
  background: rgba(250, 122, 167, 0.24);
  color: #ffe8f3;
  box-shadow: inset 0 0 0 1px rgba(250, 122, 167, 0.55);
}
.scene-option.active[data-theme="london"] {
  background: rgba(240, 200, 100, 0.22);
  color: #fff4d2;
  box-shadow: inset 0 0 0 1px rgba(240, 200, 100, 0.55);
}

.pause-icon {
  width: 11px;
  height: 12px;
  border-inline: 3px solid currentColor;
}
.play-icon {
  display: inline-block;
  width: 10px;
  height: 12px;
  flex: 0 0 auto;
  background: currentColor;
  clip-path: polygon(0 0, 30% 0, 30% 17%, 60% 17%, 60% 33%, 90% 33%, 90% 50%, 100% 50%, 100% 66%, 60% 66%, 60% 83%, 30% 83%, 30% 100%, 0 100%);
}

.stage {
  isolation: isolate;
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, #150d38, #3c2256 45%, #17102a 67%, #120a20);
}
.pixel-scene, .stage-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.pixel-scene {
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  z-index: -2;
}
.stage-shade {
  z-index: -1;
  background:
    radial-gradient(ellipse at center, transparent 55%, #0e071ca6),
    linear-gradient(180deg, #12092488, transparent 35% 65%, #05030fd9 100%);
}

.home-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(4.8rem, 8vh, 6.2rem) 1rem clamp(1.75rem, 4.5vh, 3rem);
  text-align: center;
}
.home-title {
  display: grid;
  justify-items: center;
  gap: .65rem;
}
.wordmark-stack {
  display: grid;
  justify-items: center;
  gap: .45rem;
  margin-bottom: .25rem;
}
.wordmark-main {
  width: min(30rem, 78vw);
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 4px 0 #170e2f) drop-shadow(0 0 20px rgba(250, 122, 167, 0.45));
}
.wordmark-sub-wrap {
  display: inline-flex;
  padding: 6px 16px;
  background: rgba(250, 122, 167, 0.88);
  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.45),
    inset -3px -3px 0 rgba(0, 0, 0, 0.22),
    inset 3px 3px 0 rgba(255, 255, 255, 0.28);
}
.wordmark-sub {
  width: min(11.5rem, 34vw);
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.home-heading {
  font: 800 clamp(1rem, 2.2vw, 1.3rem)/1.25 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 6px #12091f, 0 0 14px rgba(255, 211, 139, 0.25);
}
.home-title p {
  max-width: 54ch;
  color: #fff0eb;
  font-size: clamp(.9rem, 1.9vw, 1.05rem);
  font-weight: 600;
  line-height: 1.55;
  text-shadow: 0 2px 4px #12091f, 0 0 14px #0d061d;
}

.start-menu {
  display: grid;
  gap: .7rem;
  width: min(100%, 27rem);
  color: var(--muted);
  font-size: .875rem;
}
.edition-label {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem;
  color: #f9e7f1;
  font: 700 .84rem/1.4 var(--mono);
  text-shadow: 0 1px 5px #07030d;
  background: rgba(24, 13, 35, 0.76);
  border-radius: 999px;
  padding: .38rem .9rem;
  backdrop-filter: blur(8px);
}
.status-light {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 .5rem #fa7aa7;
}
.clock {
  color: var(--gold);
  font: 700 .9rem/1.5 var(--mono);
  font-variant-numeric: tabular-nums;
}

.pixel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 2.9rem;
  padding: .62rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: .75rem;
  background: rgba(34, 22, 52, 0.86);
  box-shadow: 0 6px 18px rgba(7, 4, 15, 0.45);
  color: var(--ink);
  font: 800 .85rem/1.35 var(--mono);
  text-align: center;
  backdrop-filter: blur(8px);
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.pixel-button:hover:not(:disabled) {
  background: rgba(56, 36, 82, 0.94);
  transform: translateY(-1px);
}
.pixel-button:active:not(:disabled) { transform: translateY(1px); }
.pixel-button.primary {
  min-height: 3.35rem;
  border: none;
  background: linear-gradient(180deg, #ffde9e, var(--gold));
  color: #2a172c;
  box-shadow: 0 8px 24px rgba(255, 211, 139, 0.25), 0 4px 12px rgba(10, 5, 20, 0.45);
  font-size: .95rem;
  letter-spacing: .035em;
}
.pixel-button.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffe9bd, #ffdc96);
}
.pixel-button:disabled { opacity: .52; cursor: not-allowed; }
.menu-links { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }

/* Play layout & HUD */
.play-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  justify-items: center;
  align-content: center;
  padding: 5rem clamp(.65rem, 3vw, 1.8rem) 2rem;
}
.stage[data-phase="playing"] .play-content,
.stage[data-phase="reveal"] .play-content {
  align-content: start;
  padding-top: 4.5rem;
}
.stage[data-phase="playing"] .play-content {
  grid-template-rows: auto auto 1fr;
  align-content: stretch;
  padding-bottom: 14px;
}
.stage[data-phase="finished"] .stage-shade {
  background:
    radial-gradient(ellipse at center, rgba(12, 8, 22, 0.36), rgba(9, 6, 18, 0.78)),
    linear-gradient(180deg, rgba(10, 7, 20, 0.62), rgba(9, 6, 18, 0.56) 45%, rgba(6, 4, 14, 0.88) 100%);
}

.panel {
  border-radius: 1.15rem;
  box-shadow: 0 16px 40px rgba(7, 4, 15, 0.55);
  background: rgba(32, 19, 48, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: clamp(1.1rem, 3vw, 1.7rem);
  width: min(100%, 40rem);
}
.panel .panel-heading, .results .panel-heading {
  font-size: clamp(1.22rem, 3.4vw, 2rem);
  line-height: 1.24;
  font-weight: 800;
  color: var(--ink);
}
.label {
  font: 800 .8rem/1.45 var(--mono);
  color: var(--rose);
}
.ready-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: .85rem;
}
.ready-panel p:not(.label) { color: var(--muted); line-height: 1.55; }
.ready-actions {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: .65rem;
  margin-top: .25rem;
}
.ready-actions .primary { flex: 1 1 13rem; }
.ready-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  gap: .6rem;
}

.archive-select {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  font: 700 .85rem/1.5 var(--mono);
  color: var(--muted);
}
.calendar-controls {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-width: 100%;
}
.edition-select {
  min-width: 0;
  min-height: 2.65rem;
  border: 1px solid rgba(156, 126, 189, 0.38);
  border-radius: .65rem;
  background: rgba(20, 12, 33, 0.9);
  color: var(--ink);
  font: 700 .84rem/1.3 var(--mono);
  padding: .35rem .75rem;
}
.calendar-step {
  min-height: 2.65rem;
  min-width: 2.65rem;
  padding: .35rem .65rem;
  font-size: .8rem;
}

.hud {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: stretch;
  width: min(100%, 40rem);
  margin: 0 auto 1rem;
}
.hud-chip {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: .55rem .85rem;
  border-radius: .85rem;
  background: rgba(26, 16, 42, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(7, 4, 15, 0.4);
  min-width: 6rem;
  font-family: var(--mono);
}
.hud-chip .label { color: var(--muted); }
.depth-value {
  color: var(--gold);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.progress-bars { display: flex; gap: 5px; }
.progress-bars span {
  width: 15px;
  height: 8px;
  border-radius: 4px;
  background: #4e365d;
}
.progress-bars [data-state="hit"] { background: var(--gold); }
.progress-bars [data-state="miss"] { background: #a25682; }
.progress-bars [data-state="current"] { background: var(--rose); }

.question .panel-heading { margin-block: .5rem .8rem; }
.hint { min-height: 2rem; color: var(--muted); line-height: 1.45; }
.hint strong { color: var(--gold); }

.dock {
  margin-top: auto;
  align-self: end;
  padding-top: 1.5rem;
  width: min(100%, 46rem);
  z-index: 5;
}
.answer-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: .55rem;
  align-items: center;
}
.answer-form input {
  min-width: 0;
  min-height: 3.4rem;
  padding: .55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: .75rem;
  background: rgba(28, 18, 42, 0.92);
  box-shadow: 0 6px 18px rgba(7, 4, 15, 0.45);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: max(1rem, 16px);
}
.answer-form input::placeholder { color: var(--muted); }
.answer-form .pixel-button { min-height: 3.4rem; }

/* Film countdown timer */
.timer {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  background: radial-gradient(circle at center, rgba(46, 34, 58, 0.94) 0%, rgba(20, 13, 32, 0.96) 72%, rgba(12, 8, 22, 0.98) 100%);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(6, 4, 14, 0.55), inset 0 0 0 1px rgba(255, 211, 139, 0.2);
  color: var(--gold);
  font: 800 .98rem/1 var(--mono);
  overflow: hidden;
}
.timer[data-low="true"] {
  color: var(--rose);
  box-shadow: 0 0 18px rgba(250, 122, 167, 0.35), inset 0 0 0 1px rgba(250, 122, 167, 0.45);
}
.timer svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.timer-track, .timer-fill, .timer-inner-ring { fill: transparent; }
.timer-track { stroke: rgba(255, 232, 196, 0.16); stroke-width: 2.5px; }
.timer-fill {
  stroke: currentColor;
  stroke-width: 2.6px;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 24px 24px;
  transition: stroke-dasharray .2s linear;
}
.timer-inner-ring {
  stroke: rgba(255, 240, 215, 0.24);
  stroke-width: 1px;
  stroke-dasharray: 2.5 2.5;
}
.timer-crosshair { stroke: rgba(255, 240, 215, 0.2); stroke-width: 0.9px; }
.timer-sprockets rect { fill: rgba(255, 236, 200, 0.42); }
.timer-sweep {
  transform-origin: 24px 24px;
  animation: film-leader-sweep 1s linear infinite;
}
.timer-sweep-wedge { fill: currentColor; opacity: 0.14; }
.timer-sweep-hand { stroke: currentColor; stroke-width: 1.2px; opacity: 0.55; }
.timer-num {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(8, 4, 16, 0.9);
}
.timer[data-low="true"] .timer-num {
  animation: film-countdown-pulse 0.65s ease-in-out infinite;
}

@keyframes film-leader-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes film-countdown-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}

/* Reveal & Scorecard */
.reveal { display: grid; justify-items: start; gap: .65rem; }
.reveal .panel-heading { overflow-wrap: anywhere; }
.reveal-depth { color: var(--muted); font-weight: 600; }
.examples {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin-block: .25rem;
}
.examples ul {
  margin: .35rem 0 0;
  padding-inline-start: 1.15rem;
  color: var(--muted);
}
.examples li + li { margin-top: .25rem; }
.reveal .primary { width: 100%; }

.results {
  display: grid;
  gap: .9rem;
  width: min(100%, 43rem);
  padding-bottom: 1.5rem;
}
.results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.results-billing-badge {
  margin-top: .45rem;
  color: var(--gold);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
}
.results-billing-badge + .label { margin-top: .45rem; }
.result-depth { display: grid; gap: .2rem; text-align: end; }
.result-depth strong {
  font: 800 clamp(1.35rem, 4vw, 2.35rem)/1 var(--mono);
  white-space: nowrap;
}
.result-max { font: 700 .78rem/1.2 var(--mono); color: var(--muted); }
.route-panel, .billing-panel, .final-cut-panel {
  display: grid;
  gap: .75rem;
  width: 100%;
}
.route-chart { width: 100%; height: auto; display: block; overflow: visible; }
.route-axis { font: 700 10px/1 var(--mono); fill: var(--muted); }
.route-val { font: 800 10px/1 var(--mono); }

.billing-list { display: grid; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.billing-list li {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr);
  align-items: baseline;
  gap: .65rem;
  padding: .5rem .7rem;
  border-radius: .65rem;
  background: rgba(20, 13, 34, 0.45);
  color: var(--muted);
  opacity: .68;
}
.billing-list li.active {
  opacity: 1;
  background: rgba(255, 211, 139, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 211, 139, 0.52);
  color: var(--ink);
}
.billing-range { font: 700 .78rem/1.35 var(--mono); color: var(--gold); white-space: nowrap; }
.billing-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem; font-size: .88rem; }
.billing-copy strong { color: var(--ink); }

.cut-list { display: grid; gap: .5rem; }
.cut-item {
  border-radius: .85rem;
  background: rgba(24, 15, 38, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.cut-item.solved {
  background: rgba(42, 26, 58, 0.8);
  border-color: rgba(255, 211, 139, 0.22);
}
.cut-item summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  padding: .75rem .9rem;
  cursor: pointer;
  list-style: none;
}
.cut-item summary::-webkit-details-marker { display: none; }
.cut-index { font: 800 .78rem/1 var(--mono); color: var(--rose); }
.cut-main { display: grid; min-width: 0; gap: .15rem; overflow-wrap: anywhere; }
.cut-main span { color: var(--muted); font-size: .9rem; }
.cut-right { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.cut-toggle {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font: 800 .9rem/1 var(--mono);
  color: var(--ink);
}
.cut-toggle::before { content: "+"; }
.cut-item[open] .cut-toggle::before { content: "−"; }
.cut-body {
  padding: .65rem .9rem .85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 8, 24, 0.55);
}
.answer-pool {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 12.5rem;
  overflow-y: auto;
}
.answer-pool li {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  padding: .28rem .58rem;
  border-radius: .5rem;
  background: rgba(255, 255, 255, 0.06);
  font-size: .82rem;
  color: var(--ink);
}
.answer-pool li bdi { font: 700 .74rem/1 var(--mono); color: var(--gold); }
.answer-pool li.picked {
  background: rgba(250, 122, 167, 0.25);
  box-shadow: inset 0 0 0 1px rgba(250, 122, 167, 0.65);
}
.result-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.share-status { min-height: 1.3rem; color: var(--gold); font-size: .9rem; font-weight: 600; }

/* Below-the-fold guide & archive sections */
.home-guide {
  width: min(50rem, 100%);
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  display: grid;
  gap: 2.5rem;
  color: var(--muted);
  line-height: 1.7;
}
.guide-section { scroll-margin-top: 1.5rem; }
.guide-header h1 {
  color: var(--ink);
  font-size: clamp(1.5rem, 3.1vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: .85rem;
}
.guide-section h2 {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: .85rem;
}
.guide-section h3 {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 .35rem;
}
.guide-section p + p { margin-top: .85rem; }
.guide-section strong { color: var(--ink); font-weight: 700; }
.guide-section ol, .guide-section ul {
  margin: .85rem 0 0;
  padding-inline-start: 1.35rem;
  display: grid;
  gap: .65rem;
}
.guide-section li::marker { color: var(--rose); font-weight: 700; }
.guide-figure {
  margin: 1.25rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
}
.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.guide-figure figcaption {
  padding: .75rem 1rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  line-height: 1.5;
}
.archive-grid + p,
.spoiler-list + p { margin-top: .85rem; }
.home-guide a:not(.pixel-button):not(.archive-pill) {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-guide a:not(.pixel-button):not(.archive-pill):hover { color: #ffe8bd; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .6rem;
  margin-top: 1rem;
}
.archive-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  padding: .65rem .85rem;
  border-radius: .7rem;
  background: rgba(29, 18, 46, 0.72);
  border: 1px solid rgba(156, 126, 189, 0.24);
  color: var(--muted);
  font: 700 .82rem/1.3 var(--mono);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.archive-pill strong { color: var(--gold); }
.archive-pill:hover, .archive-pill.active {
  background: rgba(56, 36, 82, 0.92);
  border-color: var(--rose);
  color: var(--ink);
  transform: translateY(-1px);
}

.spoiler-list { display: grid; gap: .75rem; margin-top: 1rem; }
.spoiler-card {
  background: rgba(29, 18, 46, 0.65);
  border: 1px solid rgba(156, 126, 189, 0.2);
  border-radius: .85rem;
  padding: .85rem 1.05rem;
}
.spoiler-card summary {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
}
.spoiler-card summary::-webkit-details-marker { display: none; }
.spoiler-index {
  flex: 0 0 auto;
  font: 800 .78rem/1 var(--mono);
  color: var(--rose);
  text-transform: uppercase;
}
.spoiler-body {
  margin-top: .8rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(156, 126, 189, 0.18);
  display: grid;
  gap: .45rem;
}
.sample-tier { margin-top: 1.5rem; }
.sample-tier .spoiler-list { margin-top: .6rem; }
.sample-questions .spoiler-card summary::after {
  content: "+";
  margin-inline-start: auto;
  color: var(--gold);
}
.sample-questions .spoiler-card[open] summary::after { content: "−"; }
.sample-questions .spoiler-card summary:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
}

.faq-list { display: grid; gap: 1.1rem; margin-top: 1rem; }
.faq-item {
  background: rgba(29, 18, 46, 0.55);
  border-radius: 1rem;
  padding: 1.15rem 1.35rem;
}

.site-footer {
  border-top: 1px solid rgba(156, 126, 189, 0.18);
  background: rgba(13, 9, 23, 0.92);
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem);
  margin-top: 2rem;
}
.footer-inner {
  width: min(50rem, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1.5rem;
  font-size: .85rem;
  color: var(--muted);
}
.footer-brand { font: 700 .8rem/1.4 var(--mono); color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.15rem; }
.footer-links a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--gold); }

@media (max-width: 42rem) {
  .arcade-nav { min-height: 3.8rem; padding: .5rem .85rem; }
  .site-brand { font-size: .74rem; gap: .45rem; }
  .arcade-controls { gap: .38rem; }
  .scene-option, .nav-channel-link { min-height: 1.9rem; padding: .22rem .55rem; font-size: .72rem; }
  .answer-form { grid-template-columns: auto minmax(0, 1fr) auto; }
  .answer-form .skip { grid-column: 2 / -1; min-height: 2.6rem; }
  .examples { grid-template-columns: 1fr; }
  .results-summary { flex-direction: column; align-items: flex-start; }
  .result-depth { text-align: start; }
  .billing-list li { grid-template-columns: 1fr; gap: .15rem; }
}
@media (max-width: 28rem) {
  .arcade-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
  }
  .arcade-controls { gap: .3rem; }
  .scene-option, .nav-channel-link { padding-inline: .3rem; }
  .stage[data-phase] .play-content { padding-top: 5.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pixel-button:active:not(:disabled) { transform: none; }
  .timer-sweep, .timer[data-low="true"] .timer-num { animation: none; }
}
