:root {
  color-scheme: dark;
  --bg: #06130e;
  --ink: #f4fff8;
  --muted: #b6d6c5;
  --panel: #0c2219;
  --line: #285741;
  --green: #38e57d;
  --coral: #ff6660;
  --gold: #ffd24a;
  --ice: #62e8ff;
  --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%, #0e2e20, 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 var(--ice);
  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(4, 15, 11, 0.82) 0%, rgba(4, 15, 11, 0.36) 68%, transparent 100%);
  pointer-events: none;
}
.site-brand, .arcade-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  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(--green); }

.nav-channel-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: .28rem .75rem;
  border-radius: 999px;
  background: rgba(8, 28, 20, 0.78);
  border: 1px solid rgba(56, 229, 125, 0.36);
  color: #c8ffe2;
  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(18, 56, 39, 0.94);
  color: var(--gold);
  border-color: var(--gold);
}

.motion-control {
  min-height: 2.3rem;
  min-width: 2.3rem;
  padding-inline: .5rem;
  display: grid;
  place-items: center;
  background: rgba(8, 28, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--ink);
  backdrop-filter: blur(8px);
  transition: background-color .2s ease;
}
.motion-control:hover { background: rgba(18, 56, 39, 0.92); }

.scene-switcher {
  display: inline-flex;
  align-items: center;
  padding: .2rem;
  gap: .2rem;
  border-radius: 999px;
  background: rgba(8, 28, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.scene-option {
  min-height: 1.95rem;
  padding: .22rem .68rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 .75rem/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="stadium"] {
  background: rgba(56, 229, 125, 0.24);
  color: #e6fff1;
  box-shadow: inset 0 0 0 1px rgba(56, 229, 125, 0.58);
}
.scene-option.active[data-theme="sunset"] {
  background: rgba(255, 210, 74, 0.24);
  color: #fff6d2;
  box-shadow: inset 0 0 0 1px rgba(255, 210, 74, 0.58);
}

.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, #040b18, #0f2c3c 44%, #145934 72%, #06130e);
}
.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 52%, rgba(4, 16, 11, 0.68)),
    linear-gradient(180deg, rgba(4, 13, 18, 0.7) 0%, transparent 32% 66%, rgba(4, 15, 10, 0.9) 100%);
}

.home-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(4.5rem, 7vh, 5.6rem) 1rem clamp(1.4rem, 3.8vh, 2.4rem);
  text-align: center;
}
.home-title {
  display: grid;
  justify-items: center;
  gap: .55rem;
}
.wordmark-stack {
  display: grid;
  justify-items: center;
  gap: .4rem;
  margin-bottom: .15rem;
}
.wordmark-main {
  width: min(29rem, 76vw);
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 4px 0 #071911) drop-shadow(0 0 22px rgba(56, 229, 125, 0.42));
}
.wordmark-sub-wrap {
  display: inline-flex;
  padding: 5px 16px;
  background: var(--green);
  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.48),
    inset -3px -3px 0 rgba(0, 0, 0, 0.22),
    inset 3px 3px 0 rgba(255, 255, 255, 0.34);
}
.wordmark-sub {
  width: min(11rem, 32vw);
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.home-heading {
  font: 800 clamp(.98rem, 2.1vw, 1.25rem)/1.25 var(--mono);
  letter-spacing: .055em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 6px #04130c, 0 0 14px rgba(255, 210, 74, 0.28);
}
.home-title p {
  max-width: 56ch;
  color: #eefcf4;
  font-size: clamp(.88rem, 1.8vw, 1.02rem);
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 2px 4px #04130c, 0 0 14px #04130c;
}

.start-menu {
  display: grid;
  gap: .62rem;
  width: min(100%, 27.5rem);
  color: var(--muted);
  font-size: .86rem;
}
.edition-label {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem;
  color: #e8fff1;
  font: 700 .83rem/1.4 var(--mono);
  text-shadow: 0 1px 5px #030e09;
  background: rgba(7, 26, 18, 0.8);
  border: 1px solid rgba(56, 229, 125, 0.28);
  border-radius: 999px;
  padding: .35rem .9rem;
  backdrop-filter: blur(8px);
}
.status-light {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 .55rem var(--green);
}
.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: .55rem;
  min-height: 2.8rem;
  padding: .58rem 1rem;
  border: 1px solid rgba(168, 245, 200, 0.18);
  border-radius: .75rem;
  background: rgba(9, 31, 22, 0.88);
  box-shadow: 0 6px 18px rgba(2, 12, 8, 0.48);
  color: var(--ink);
  font: 800 .84rem/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(16, 52, 37, 0.95);
  transform: translateY(-1px);
}
.pixel-button:active:not(:disabled) { transform: translateY(1px); }
.pixel-button.primary {
  min-height: 3.25rem;
  border: none;
  background: linear-gradient(180deg, #ffe28a, var(--gold));
  color: #162619;
  box-shadow: 0 8px 24px rgba(255, 210, 74, 0.28), 0 4px 12px rgba(4, 15, 10, 0.5);
  font-size: .94rem;
  letter-spacing: .035em;
}
.pixel-button.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffecb0, #ffda68);
}
.pixel-button:disabled { opacity: .52; cursor: not-allowed; }
.menu-links { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

/* 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(6, 20, 14, 0.42), rgba(4, 15, 10, 0.82)),
    linear-gradient(180deg, rgba(5, 18, 12, 0.68), rgba(5, 18, 12, 0.6) 45%, rgba(3, 12, 8, 0.9) 100%);
}

.panel {
  border-radius: 1.15rem;
  box-shadow: 0 16px 40px rgba(2, 12, 8, 0.58);
  background: rgba(9, 30, 21, 0.88);
  border: 1px solid rgba(168, 245, 200, 0.14);
  backdrop-filter: blur(12px);
  padding: clamp(1.1rem, 3vw, 1.65rem);
  width: min(100%, 40rem);
}
.panel .panel-heading, .results .panel-heading {
  font-size: clamp(1.22rem, 3.4vw, 1.95rem);
  line-height: 1.24;
  font-weight: 800;
  color: var(--ink);
}
.label {
  font: 800 .8rem/1.45 var(--mono);
  color: var(--green);
}

.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(8, 27, 19, 0.86);
  border: 1px solid rgba(168, 245, 200, 0.14);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(2, 12, 8, 0.45);
  min-width: 6.4rem;
  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: #1f4734;
}
.progress-bars [data-state="hit"] { background: var(--green); }
.progress-bars [data-state="miss"] { background: var(--coral); }
.progress-bars [data-state="current"] { background: var(--gold); }

.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(168, 245, 200, 0.22);
  border-radius: .75rem;
  background: rgba(8, 27, 19, 0.94);
  box-shadow: 0 6px 18px rgba(2, 12, 8, 0.48);
  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; }

/* Shot clock timer */
.timer {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  background: radial-gradient(circle at center, rgba(16, 48, 34, 0.95) 0%, rgba(8, 25, 18, 0.97) 72%, rgba(4, 15, 10, 0.99) 100%);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(2, 12, 8, 0.58), inset 0 0 0 1px rgba(56, 229, 125, 0.28);
  color: var(--gold);
  font: 800 .98rem/1 var(--mono);
  overflow: hidden;
}
.timer[data-low="true"] {
  color: var(--coral);
  box-shadow: 0 0 18px rgba(255, 102, 96, 0.4), inset 0 0 0 1px rgba(255, 102, 96, 0.5);
}
.timer svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.timer-track, .timer-fill, .timer-inner-ring { fill: transparent; }
.timer-track { stroke: rgba(200, 255, 225, 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(200, 255, 225, 0.24);
  stroke-width: 1px;
  stroke-dasharray: 2.5 2.5;
}
.timer-crosshair { stroke: rgba(200, 255, 225, 0.2); stroke-width: 0.9px; }
.timer-sprockets rect { fill: rgba(255, 232, 175, 0.42); }
.timer-sweep {
  transform-origin: 24px 24px;
  animation: shot-clock-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(3, 12, 8, 0.92);
}
.timer[data-low="true"] .timer-num {
  animation: shot-clock-pulse 0.65s ease-in-out infinite;
}

@keyframes shot-clock-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes shot-clock-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;
}
.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(6, 20, 14, 0.55);
  color: var(--muted);
  opacity: .7;
}
.billing-list li.active {
  opacity: 1;
  background: rgba(56, 229, 125, 0.16);
  box-shadow: inset 0 0 0 1px rgba(56, 229, 125, 0.55);
  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(8, 26, 18, 0.78);
  border: 1px solid rgba(168, 245, 200, 0.1);
  overflow: hidden;
}
.cut-item.solved {
  background: rgba(15, 44, 31, 0.84);
  border-color: rgba(56, 229, 125, 0.28);
}
.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(--green); }
.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(5, 18, 12, 0.65);
}
.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(56, 229, 125, 0.24);
  box-shadow: inset 0 0 0 1px rgba(56, 229, 125, 0.68);
}
.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 high-density editorial guide */
.home-guide {
  width: min(54rem, 100%);
  margin: 0 auto;
  padding: 2.75rem 1rem 2rem;
  display: grid;
  gap: 2.25rem;
  color: var(--muted);
  line-height: 1.68;
}
.guide-section { scroll-margin-top: 1.5rem; }
.guide-section + .guide-section {
  padding-top: 2rem;
  border-top: 1px solid rgba(56, 229, 125, 0.16);
}
.guide-section h2 {
  color: var(--ink);
  font-size: clamp(1.28rem, 2.5vw, 1.62rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: .75rem;
}
.guide-section h3 {
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 .3rem;
}
.guide-section p + p { margin-top: .8rem; }
.guide-section strong { color: var(--ink); font-weight: 700; }
.home-guide a:not(.pixel-button) {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-guide a:not(.pixel-button):hover { color: #ffecad; }

/* Compact specs strip */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  margin: 1.1rem 0 .25rem;
}
.spec-card {
  background: rgba(12, 34, 25, 0.72);
  border: 1px solid rgba(56, 229, 125, 0.2);
  border-radius: .85rem;
  padding: .75rem .9rem;
  display: grid;
  gap: .2rem;
}
.spec-card span {
  font: 700 .72rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green);
}
.spec-card strong {
  font: 800 1.05rem/1.3 var(--mono);
  color: var(--ink);
}

/* Division tier table */
.tier-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(56, 229, 125, 0.22);
  border-radius: .9rem;
  background: rgba(10, 30, 22, 0.75);
}
.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  text-align: left;
}
.tier-table th, .tier-table td {
  padding: .7rem .9rem;
  border-bottom: 1px solid rgba(56, 229, 125, 0.12);
}
.tier-table tr:last-child td { border-bottom: none; }
.tier-table th {
  font: 800 .76rem/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green);
  background: rgba(6, 20, 14, 0.6);
}
.tier-table td:first-child {
  font: 700 .84rem/1.3 var(--mono);
  color: var(--gold);
  white-space: nowrap;
}
.tier-table td:nth-child(2) {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

/* High-density category & playbook grids */
.dense-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}
.dense-card {
  background: rgba(12, 34, 25, 0.68);
  border: 1px solid rgba(56, 229, 125, 0.18);
  border-radius: .9rem;
  padding: 1rem 1.15rem;
}
.dense-card h3 {
  color: var(--gold);
  font-size: .98rem;
  margin-bottom: .35rem;
}
.dense-card p {
  font-size: .94rem;
  line-height: 1.6;
}

/* Cross-stage hub cards */
.arcade-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}
.hub-card {
  display: grid;
  gap: .35rem;
  padding: 1rem 1.15rem;
  border-radius: .9rem;
  background: rgba(12, 34, 25, 0.72);
  border: 1px solid rgba(98, 232, 255, 0.22);
  transition: border-color .18s ease, transform .15s ease, background-color .18s ease;
}
.hub-card:hover {
  border-color: var(--gold);
  background: rgba(17, 46, 34, 0.9);
  transform: translateY(-1px);
}
.hub-tag {
  font: 800 .72rem/1.2 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ice);
}
.hub-card strong {
  color: var(--ink);
  font-size: 1rem;
}
.hub-card p {
  font-size: .92rem;
  line-height: 1.55;
}

.faq-list { display: grid; gap: .85rem; margin-top: 1rem; }
.faq-item {
  background: rgba(12, 34, 25, 0.62);
  border: 1px solid rgba(56, 229, 125, 0.15);
  border-radius: .9rem;
  padding: 1rem 1.2rem;
}
.faq-item p { font-size: .95rem; }

.site-footer {
  border-top: 1px solid rgba(56, 229, 125, 0.18);
  background: rgba(5, 17, 12, 0.94);
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem);
  margin-top: 2rem;
}
.footer-inner {
  width: min(54rem, 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: 46rem) {
  .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dense-grid, .arcade-hub { grid-template-columns: 1fr; }
}
@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 .52rem; 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: .38rem; }
  .stage[data-phase] .play-content { padding-top: 6.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pixel-button:active:not(:disabled) { transform: none; }
  .timer-sweep, .timer[data-low="true"] .timer-num { animation: none; }
}
