/* =====================================================================
   APOGEE · visual system
   Mission-control look: blueprint grid, cream "phosphor" text,
   signal-orange accent, chamfered buttons, bracketed panels.
   ===================================================================== */
:root {
  --bg: #070811;
  --panel: #0d1021;
  --panel-2: rgba(243, 236, 220, 0.035);
  --well: #080a16;
  --line: rgba(243, 236, 220, 0.13);
  --line-2: rgba(243, 236, 220, 0.24);
  --text: #f3ecdc;
  --muted: #8f93ad;
  --accent: #ff7a1a;
  --accent-2: #ffd56b;
  --hit: #5ce1e6;
  --wrong: #ff5468;
  --scan: #5ab0ff;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --chamfer: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --chamfer-s: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 75% -10%, rgba(255, 122, 26, 0.11), transparent 55%),
    radial-gradient(ellipse at -10% 110%, rgba(90, 110, 255, 0.12), transparent 50%),
    linear-gradient(rgba(243, 236, 220, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 236, 220, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #f3ecdc, transparent),
    radial-gradient(1px 1px at 90px 140px, #f3ecdcaa, transparent),
    radial-gradient(1.5px 1.5px at 160px 60px, #f3ecdc, transparent),
    radial-gradient(1px 1px at 200px 200px, #f3ecdccc, transparent),
    radial-gradient(1px 1px at 120px 230px, #f3ecdc88, transparent);
  background-size: 250px 250px;
  opacity: 0.55;
}

.mono { font-family: var(--mono); }
.dim { color: var(--muted); }
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border-radius: 0; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.tg { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.25em; }
.lg { width: 1.2em; height: 1.2em; flex: none; }

/* bracketed panel: four corner marks drawn with gradients */
.frame {
  --b: rgba(243, 236, 220, 0.55);
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--b), var(--b)) top left / 14px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) top left / 2px 14px no-repeat,
    linear-gradient(var(--b), var(--b)) top right / 14px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) top right / 2px 14px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / 14px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / 2px 14px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / 14px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / 2px 14px no-repeat,
    var(--panel);
}

/* ---------------- Masthead ---------------- */
.shell { max-width: 1060px; margin: 0 auto; padding: 18px 20px 64px; }
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 44px; height: 44px; color: var(--text); display: block; }
.brand h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.38em; line-height: 1; }
.brand p { margin: 5px 0 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.mast-meta { display: flex; align-items: center; gap: 8px; }
.chip {
  font-size: 11px; letter-spacing: 0.12em; padding: 5px 9px; border: 1px solid var(--line-2);
  text-transform: uppercase; white-space: nowrap;
}
.chip.hot { border-color: var(--accent); color: var(--accent); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; font-size: 18px;
  border: 1px solid var(--line-2); background: transparent; clip-path: var(--chamfer-s);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- Layout + altimeter ---------------- */
.layout { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 28px; align-items: start; }

.altimeter {
  position: sticky; top: 16px; height: calc(100vh - 120px); min-height: 460px; max-height: 760px;
  display: flex; flex-direction: column; gap: 16px;
}
.altimeter.bonus-zone .alt-readout { border-color: var(--accent-2); box-shadow: 0 0 24px rgba(255, 213, 107, 0.2); }
.alt-readout { border: 1px solid var(--line); background: var(--panel); padding: 12px; }
.alt-readout small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--muted); }
.alt-readout strong { display: block; font-family: var(--mono); font-size: 17px; color: var(--accent-2); margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.alt-readout p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.35; }
.alt-readout p span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 2px; }

.rail { position: relative; flex: 1; margin: 12px 0 12px 6px; --p: 0%; }
.rail-line { position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--line-2) 0 4px, transparent 4px 8px); }
.rail-fill {
  position: absolute; left: 13px; bottom: 0; width: 2px; height: var(--p);
  background: linear-gradient(to top, #5ab0ff, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px var(--accent); transition: height 0.25s linear;
}
.lm { position: absolute; left: 0; bottom: var(--p); transform: translateY(50%); display: flex; align-items: center; gap: 8px; opacity: 0.38; transition: opacity 0.4s; }
.lm.passed { opacity: 1; }
.lm.major .lg { width: 28px; height: 28px; background: var(--bg); border-radius: 50%; }
.lm-name { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.lm.minor i { display: block; width: 10px; height: 2px; margin-left: 9px; background: var(--muted); }
.rail-rocket {
  position: absolute; right: 0; bottom: var(--p); transform: translateY(50%) rotate(-45deg);
  color: var(--accent); font-size: 22px; transition: bottom 0.25s linear; filter: drop-shadow(0 0 6px var(--accent));
}

/* ---------------- Shared blocks ---------------- */
.console { min-width: 0; }
.eyebrow { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.block { margin-top: 34px; }
.block h3 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.block h3 span { font-family: var(--mono); font-weight: 600; color: var(--accent); }
.block h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 16px; padding: 16px;
  border: none; background: var(--accent); color: #140a02; clip-path: var(--chamfer);
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: filter 0.15s, transform 0.15s;
}
.cta:hover:not(:disabled) { filter: brightness(1.1); }
.cta:active:not(:disabled) { transform: translateY(1px); }
.cta:disabled { opacity: 0.3; cursor: default; }
.cta .ic { width: 18px; height: 18px; }
.cta.alt { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ghost-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; width: 100%; margin-top: 10px; padding: 12px;
  border: 1px solid var(--line-2); background: transparent; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.ghost-btn small { font-family: var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 12px; }
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-row .cta { margin-top: 0; }

/* ---------------- Start ---------------- */
.hero { overflow: hidden; }
.pad { display: block; width: 100%; }
.hero-copy { padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.hero-copy h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.18; letter-spacing: -0.01em; }
.hero-copy p:last-child { margin: 0; color: var(--muted); line-height: 1.55; }

.manifest { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.manifest li {
  display: grid; grid-template-columns: 30px 34px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 4px; border-bottom: 1px dashed var(--line);
}
.mf-n { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.mf-ic { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent-2); font-size: 18px; }
.mf-name { font-weight: 600; }
.mf-name small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; font-family: var(--mono); letter-spacing: 0.04em; }
.mf-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.manifest li.sling { background: linear-gradient(90deg, rgba(255, 122, 26, 0.14), transparent); border-left: 2px solid var(--accent); }
.manifest li.sling .mf-tag { color: var(--accent); font-weight: 700; }
.start-done { margin-top: 16px; padding: 14px; border: 1px dashed var(--line-2); }
.start-done p { margin: 0; color: var(--muted); }
.start-done .ghost-btn { margin-top: 12px; }
.screen.launching .cta, .screen.launching .ghost-btn { pointer-events: none; opacity: 0.5; }

.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); }
.scale-step { padding: 14px 4px 12px; text-align: center; border-right: 1px solid var(--line); position: relative; }
.scale-step:last-child { border-right: none; }
.scale-step::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); }
.scale-step .tg { width: 32px; height: 32px; display: block; margin: 0 auto 8px; }
.scale-step b { display: block; font-size: 12px; }
.scale-step small { font-family: var(--mono); color: var(--muted); font-size: 11px; }

.systems, .formats { display: grid; gap: 8px; }
.formats { grid-template-columns: 1fr 1fr; }
.sys, .fmt { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 12px; background: var(--panel-2); border-left: 2px solid var(--line-2); }
.sys { border-left-color: var(--accent); }
.sys-ic, .fmt-ic { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 20px; color: var(--accent); }
.fmt-ic { color: var(--accent-2); }
.sys b, .fmt b { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.fmt code { font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted); border: 1px solid var(--line); padding: 1px 5px; letter-spacing: 0.1em; }
.sys small, .fmt small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.45; font-size: 13px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-top: 18px; }
.stats div { padding: 14px 8px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: none; }
.stats strong { display: block; font-family: var(--display); font-weight: 700; font-size: 24px; font-variant-numeric: tabular-nums; }
.stats small { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.medal { text-align: center; padding: 12px 6px; background: var(--panel-2); opacity: 0.42; }
.medal.got { opacity: 1; }
.medal .badge { width: 52px; height: 52px; display: block; margin: 0 auto 6px; color: var(--muted); }
.medal b { display: block; font-size: 12px; }
.medal small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.3; margin-top: 3px; }
.medal.new { animation: glow 1.3s ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: 0 0 0 rgba(255, 213, 107, 0); } to { box-shadow: 0 0 0 1px var(--accent-2), 0 0 20px rgba(255, 213, 107, 0.3); } }
.badge .b-out { fill: rgba(243, 236, 220, 0.03); stroke: var(--line-2); stroke-width: 1.5; }
.badge .b-in { fill: none; stroke: var(--line); stroke-width: 1; }
.badge.got { color: var(--accent-2); }
.badge.got .b-out { fill: rgba(255, 213, 107, 0.09); stroke: var(--accent-2); }
.badge.got .b-in { stroke: rgba(255, 213, 107, 0.35); }

/* ---------------- Question ---------------- */
.q-top { display: flex; align-items: flex-end; gap: 16px; }
.q-count { font-family: var(--display); font-weight: 800; font-size: 60px; line-height: 0.85; letter-spacing: -0.03em; }
.q-count small { font-family: var(--mono); font-weight: 400; font-size: 15px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.q-meta { padding-bottom: 2px; }
.qtype { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--accent-2); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.qtype .ic { width: 20px; height: 20px; }
.category { margin: 4px 0 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.sequence { display: flex; gap: 6px; margin-top: 16px; }
.seq {
  flex: 1; height: 40px; display: grid; place-items: center; font-size: 18px; color: var(--muted);
  background: var(--panel-2); border-bottom: 2px solid var(--line); clip-path: var(--chamfer-s);
}
.seq.current { color: var(--accent); background: rgba(255, 122, 26, 0.12); border-bottom-color: var(--accent); }
.seq.sling { border-bottom-style: dashed; border-bottom-color: var(--accent); }
.seq.done { background: color-mix(in srgb, var(--c) 14%, transparent); border-bottom-color: var(--c); }
.seq.done .tg { width: 22px; height: 22px; }
.seq.boosted { box-shadow: inset 0 0 0 1px var(--accent); }

.sling-badge {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 12px;
  border: 1px dashed var(--accent); color: var(--accent); background: rgba(255, 122, 26, 0.07);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
}
.sling-badge .ic { width: 20px; height: 20px; }

.fuel { position: relative; height: 24px; margin-top: 12px; border: 1px solid var(--line); background: var(--well); overflow: hidden; }
.fuel-bar {
  position: absolute; inset: 0; transform-origin: left;
  background: repeating-linear-gradient(-45deg, rgba(255, 122, 26, 0.55) 0 8px, rgba(255, 122, 26, 0.3) 8px 16px);
}
.fuel-label { position: relative; display: block; text-align: center; line-height: 22px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; font-weight: 600; }
.fuel.empty .fuel-label { color: var(--muted); font-weight: 400; }
.fuel.spent .fuel-bar { opacity: 0.25; }

.q-card { margin-top: 14px; padding: 22px 20px 20px; }
.question { margin: 0 0 8px; font-family: var(--body); font-weight: 600; font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; }
.hint { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.q-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; font-size: 14px; background: var(--panel-2); border-left: 3px solid var(--line-2); }
.q-note .ic { width: 18px; height: 18px; margin-top: 1px; }
.q-note.scan { border-left-color: var(--scan); color: #cfe6ff; }
.q-note.scan .ic { color: var(--scan); }
.q-note.bad { border-left-color: var(--wrong); }
.q-note.bad .ic { color: var(--wrong); }

/* ---- answer widgets ---- */
.num-row { display: flex; gap: 12px; align-items: center; }
.num-row input, .decode-row input {
  flex: 1; min-width: 0; padding: 14px 16px; font-family: var(--mono); font-size: 24px; color: var(--text);
  background: var(--well); border: 1px solid var(--line-2); border-radius: 0;
}
.num-row input:focus, .decode-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18); }
.unit { font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.option, .duel-opt, .dock-item, .lens {
  position: relative; padding: 13px 14px; text-align: left; font-weight: 500; font-size: 15px;
  background: var(--panel-2); border: 1px solid var(--line); clip-path: var(--chamfer-s);
  transition: border-color 0.15s, background 0.15s;
}
.option:hover:not(:disabled), .duel-opt:hover:not(:disabled), .dock-item:hover:not(.locked), .lens:hover:not(:disabled) { border-color: var(--line-2); background: rgba(243, 236, 220, 0.07); }
.option.selected, .duel-opt.selected, .lens.selected { border-color: var(--accent); background: rgba(255, 122, 26, 0.13); box-shadow: inset 3px 0 0 var(--accent); }
.option:disabled, .duel-opt:disabled, .lens:disabled { cursor: default; }

.hit, .wrong, .missed { padding-right: 70px !important; }
.hit { border-color: var(--hit) !important; background: rgba(92, 225, 230, 0.12) !important; box-shadow: inset 3px 0 0 var(--hit) !important; }
.wrong { border-color: var(--wrong) !important; background: rgba(255, 84, 104, 0.12) !important; box-shadow: inset 3px 0 0 var(--wrong) !important; }
.missed { border-style: dashed !important; border-color: var(--hit) !important; }
.hit::after, .wrong::after, .missed::after {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; padding: 2px 5px; border: 1px solid currentColor;
}
.hit::after { content: "HIT"; color: var(--hit); }
.wrong::after { content: "MISS"; color: var(--wrong); }
.missed::after { content: "ANSWER"; color: var(--hit); opacity: 0.85; }

/* duel */
.duels { display: grid; gap: 12px; }
.duel { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 6px; align-items: center; }
.duel-opt { text-align: center; font-weight: 600; min-height: 54px; }
.duel.locked .duel-opt { cursor: default; }
.vs { text-align: center; font-family: var(--display); font-weight: 800; font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.duel-detail { grid-column: 1 / -1; margin: 0 0 4px; font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: center; }
.duel-detail:empty { display: none; }
.duel .hit, .duel .wrong, .duel .missed { padding-right: 14px !important; padding-bottom: 26px !important; }
.duel .hit::after, .duel .wrong::after, .duel .missed::after { top: auto; bottom: 6px; right: 50%; transform: translateX(50%); }

/* decode */
.tiles { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-bottom: 8px; --ts: 34px; }
.word { display: flex; gap: 4px; }
.tile {
  width: var(--ts); height: calc(var(--ts) * 1.3); display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: calc(var(--ts) * 0.58);
  background: var(--well); border: 1px solid var(--line-2); border-bottom: 3px solid var(--line-2);
}
.tile.rev { border-color: #c792ff; color: #e3caff; animation: flip 0.35s ease; }
.tile.solved { border-color: var(--hit); color: var(--hit); }
@keyframes flip { from { transform: rotateX(90deg); } to { transform: none; } }
.decode-cap { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); margin: 6px 0 14px; text-transform: uppercase; }
.decode-cap .tg { width: 16px; height: 16px; }
.decode-row { display: flex; gap: 8px; }
.decode-row input { text-transform: uppercase; font-size: 18px; letter-spacing: 0.12em; }
.ghost { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--line-2); background: transparent; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.ghost:hover:not(:disabled) { border-color: #c792ff; color: #e3caff; }
.ghost:disabled { opacity: 0.35; }
.shake { animation: shake 0.35s; border-color: var(--wrong) !important; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* telescope */
.scope-readout { text-align: center; font-family: var(--display); font-weight: 700; font-size: 32px; font-variant-numeric: tabular-nums; }
.scope-readout small { display: block; margin-top: 4px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.scope-track {
  position: relative; height: 34px; margin: 14px 0 4px; overflow: hidden; border: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%), var(--well);
}
.scope-window { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--c) 35%, transparent); border-left: 2px solid var(--c); border-right: 2px solid var(--c); box-shadow: 0 0 16px var(--c); transition: width 0.2s, background 0.2s; }
#scope-slider { width: 100%; accent-color: var(--accent); height: 28px; }
.scope-ends { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lens-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.lens { text-align: center; }
.lens strong { display: block; font-family: var(--display); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.lens small { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.lens small .tg { width: 14px; height: 14px; }

/* ---------------- Reveal ---------------- */
.reveal { margin-top: 18px; scroll-margin-top: 20px; }
.flight-wrap { position: relative; border: 1px solid var(--line); }
.flight-tag { position: absolute; top: 10px; left: 12px; z-index: 1; font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--accent); }
.flight { display: block; width: 100%; }
.skip { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line-2); background: rgba(7, 8, 17, 0.75); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.reveal-body { margin-top: 14px; animation: pop 0.35s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.verdict {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); border-left: 4px solid var(--c);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%);
}
.verdict-glyph .tg { width: 56px; height: 56px; display: block; filter: drop-shadow(0 0 10px var(--c)); }
.verdict-text small, .verdict-pts small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.verdict-text strong { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--c); letter-spacing: -0.01em; }
.verdict-pts { text-align: right; }
.verdict-pts strong { font-family: var(--display); font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; }

.reveal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 14px; }
.dial svg { width: 100%; max-width: 280px; display: block; margin: 0 auto; }
.dial .tick { stroke: var(--line-2); stroke-width: 1; }
.needle { transform-origin: 130px 134px; transform: rotate(var(--a)); animation: needle 1.1s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
@keyframes needle { from { transform: rotate(-90deg); } to { transform: rotate(var(--a)); } }

.breakdown { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
.breakdown td { padding: 7px 4px; border-bottom: 1px dashed var(--line); }
.breakdown td:first-child { width: 26px; color: var(--accent); }
.breakdown td:first-child .ic, .breakdown td:first-child .tg { width: 18px; height: 18px; }
.breakdown td:last-child { text-align: right; font-weight: 700; }
.breakdown tr.total td { border-bottom: none; border-top: 1px solid var(--line-2); font-family: var(--display); font-size: 14px; padding-top: 10px; }

.chart { width: 100%; max-width: 520px; height: auto; display: block; margin: 14px auto 0; }
.chart .lbl { fill: var(--text); font-family: var(--mono); font-size: 10.5px; }
.chart .lbl.muted { fill: var(--muted); }
.chart .lbl.accent { fill: var(--accent); font-weight: 700; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }

.bars { display: grid; gap: 10px; margin-top: 16px; }
.bar-row { display: grid; grid-template-columns: 124px 1fr 46px; gap: 10px; align-items: center; }
.bar-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bar-track { height: 10px; background: var(--well); border: 1px solid var(--line); }
.bar { height: 100%; animation: grow 0.8s ease; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.bar-val { text-align: right; font-family: var(--mono); font-size: 12px; }

.caption { color: var(--muted); font-size: 13px; margin: 10px 0 0; text-align: center; }
.fact { margin-top: 16px; padding: 12px 14px; background: var(--panel-2); border-left: 2px solid var(--accent-2); line-height: 1.5; font-size: 14px; }
.fact span { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--accent-2); }

/* ---------------- Results ---------------- */
.dest { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; margin-top: 6px; }
.dest-art .lg { width: 96px; height: 96px; filter: drop-shadow(0 0 18px rgba(255, 213, 107, 0.25)); }
.dest h2 { margin: 4px 0; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; }
.dest small { font-size: 10.5px; letter-spacing: 0.22em; }
.result-sub { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.result-sub b { color: var(--accent-2); font-weight: 600; }
.result-sub i { display: inline-block; width: 4px; height: 4px; margin: 0 8px; background: var(--muted); vertical-align: middle; transform: rotate(45deg); }
.replay { display: block; width: 100%; margin-top: 18px; }

.log { width: 100%; border-collapse: collapse; }
.log td { padding: 10px 6px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.log .n { font-family: var(--mono); color: var(--accent); width: 32px; }
.log .ty { white-space: nowrap; }
.log .ty .ic { color: var(--accent-2); margin-right: 8px; width: 18px; height: 18px; }
.log .fl { text-align: right; white-space: nowrap; }
.flag { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 3px; border: 1px solid var(--line-2); color: var(--accent); }
.flag .ic { width: 14px; height: 14px; }
.flag.bad { color: var(--wrong); border-color: var(--wrong); }
.log .ti { white-space: nowrap; font-weight: 600; }
.log .ti .tg { width: 20px; height: 20px; margin-right: 6px; }
.log .pt { text-align: right; font-family: var(--mono); font-weight: 700; width: 56px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col .block, .two-col h3 { margin-top: 0; }
.signal { padding: 16px; border: 1px solid var(--line); background: var(--well); margin-bottom: 12px; }
.signal small { font-size: 10px; letter-spacing: 0.22em; }
.signal pre { margin: 8px 0 0; font-family: var(--mono); font-size: 34px; line-height: 1; color: var(--accent-2); letter-spacing: 0.12em; }
.card-preview { margin-top: 12px; }
.card-preview img { width: 100%; display: block; border: 1px solid var(--line); }
.countdown { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; margin: 18px 0 0; }
.countdown span { color: var(--accent-2); }

/* ---------------- Toasts ---------------- */
.toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(92vw, 400px); }
.toast {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 12px 14px;
  background: #11142a; border: 1px solid var(--accent-2); box-shadow: 0 10px 40px #000a, 0 0 24px rgba(255, 213, 107, 0.18);
  animation: pop 0.35s ease; transition: opacity 0.5s, transform 0.5s;
}
.toast .badge { width: 56px; height: 56px; }
.toast b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.toast strong { display: block; font-family: var(--display); font-size: 15px; margin: 2px 0; }
.toast small { color: var(--muted); }
.toast.out { opacity: 0; transform: translateY(10px); }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .shell { padding: 14px 16px 56px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .altimeter { position: static; height: auto; min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel); }
  .alt-readout { border: none; padding: 0; background: none; min-width: 128px; }
  .alt-readout p { display: none; }
  .alt-readout strong { margin-bottom: 0; font-size: 15px; }
  .rail { height: 50px; flex: 1; margin: 0 10px; }
  .rail-line, .rail-fill, .lm { top: 40% !important; }
  .rail-line { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }
  .rail-fill { left: 0; top: 50%; bottom: auto; height: 2px; width: var(--p); transform: translateY(-50%); background: linear-gradient(90deg, #5ab0ff, var(--accent), var(--accent-2)); transition: width 0.25s linear; }
  .lm { left: var(--p); bottom: auto; top: 50%; transform: translate(-50%, -50%); }
  .lm-name { display: none; }
  .lm.major .lg { width: 20px; height: 20px; }
  .lm.minor i { width: 2px; height: 8px; margin: 0; }
  .rail-rocket { left: var(--p); right: auto; bottom: auto; top: 50%; transform: translate(-50%, 30%) rotate(45deg); font-size: 16px; transition: left 0.25s linear; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .masthead { gap: 10px; }
  .brand h1 { font-size: 18px; }
  .mast-meta .dim { display: none; }
  .altimeter { flex-direction: column; align-items: stretch; gap: 4px; }
  .alt-readout { display: flex; align-items: baseline; gap: 10px; }
  .rail { margin: 4px 10px 0; }
  .hero-copy h2 { font-size: 20px; }
  .formats { grid-template-columns: 1fr; }
  .scale-step b { font-size: 10px; }
  .scale-step .tg { width: 26px; height: 26px; }
  .stats strong { font-size: 19px; }
  .stats small { font-size: 9px; }
  .q-count { font-size: 46px; }
  .sys-btn { grid-template-columns: 22px 1fr; padding: 10px; column-gap: 8px; }
  .sys-btn > .ic { width: 20px; height: 20px; }
  .sys-label { flex-wrap: wrap; }
  .sys-label b { font-size: 11px; }
  .question { font-size: 20px; }
  .reveal-grid { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 44px 1fr auto; padding: 12px; }
  .verdict-glyph .tg { width: 42px; height: 42px; }
  .verdict-text strong { font-size: 20px; }
  .verdict-pts strong { font-size: 22px; }
  .bar-row { grid-template-columns: 96px 1fr 40px; }
  .two-col { grid-template-columns: 1fr; }
  .log .fl { display: none; }
  .log .ty span { display: none; }
  .dest { grid-template-columns: 70px 1fr; }
  .dest-art .lg { width: 70px; height: 70px; }
  .dest h2 { font-size: 24px; }
  .btn-row { grid-template-columns: 1fr; }
  .cta { font-size: 12.5px; }
  .medals { grid-template-columns: repeat(3, 1fr); }
  .decode-row { flex-direction: column; }
  .decode-row .ghost { justify-content: center; }
}

/* =====================================================================
   v4 · four formats, clearer flow, flight record
   ===================================================================== */

/* ---- type voice: three roles, used consistently ----
   DISPLAY  Unbounded     headings, numbers, questions (the "instrument" voice)
   LABEL    JetBrains Mono  uppercase, spaced: anything that names a thing
   BODY     Instrument Sans plain sentences that explain                  */
.mini-label, .alt-readout small, .dest small, .signal small, .chip, .rec-acc > small, .answer-pair small {
  font-family: var(--mono); font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em;
}
.mini-label {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px;
  font-size: 10.5px; color: var(--accent);
}
.mini-label span { font-weight: 400; letter-spacing: 0.08em; text-transform: none; color: var(--muted); font-family: var(--body); font-size: 12px; }
.block-lead { margin: -4px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.question {
  font-family: var(--display); font-weight: 500; font-size: 23px; line-height: 1.32; letter-spacing: -0.01em;
  margin: 0 0 10px; text-wrap: balance;
}
.hint { font-size: 14px; }
.hero-copy h2 { text-wrap: balance; }

/* ---- start: big ignite, steps, briefing ---- */
.cta.big { padding: 20px; font-size: 16px; letter-spacing: 0.22em; margin-top: 18px; }
.start-done { display: grid; gap: 12px; }
.start-done .cta { margin-top: 0; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.steps li {
  counter-increment: step; position: relative; padding: 46px 14px 14px; background: var(--panel-2); border-top: 2px solid var(--accent);
}
.steps li::before {
  content: "0" counter(step); position: absolute; top: 12px; left: 14px;
  font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--accent); line-height: 1;
}
.steps b { display: block; font-family: var(--display); font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em; }
.steps small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.manifest { margin-top: 0; }
.mf-tag { color: var(--accent); }

.brief { border: 1px solid var(--line); background: var(--panel-2); margin-bottom: 8px; }
.brief summary {
  display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 13.5px;
}
.brief summary::-webkit-details-marker { display: none; }
.brief summary::after { content: "+"; margin-left: auto; font-family: var(--mono); font-size: 18px; color: var(--accent); line-height: 1; }
.brief[open] summary::after { content: "–"; }
.brief summary small { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.brief > div { padding: 0 12px 12px; }
.formats { grid-template-columns: 1fr 1fr; }

/* ---- question screen ---- */
.category { letter-spacing: 0.14em; }
.answer-zone { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.powerups-wrap { margin-top: 18px; }
.powerups-wrap .powerups { margin-top: 0; }
.duel { grid-template-columns: 26px 1fr 40px 1fr; }
.duel-n { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.duel-detail { grid-column: 2 / -1; }
.lens-row { margin-top: 0; }
.scope-ends { margin-bottom: 14px; }

/* ---- verdict: answers first ---- */
.answer-pair { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; border: 1px solid var(--line); }
.answer-pair > div { padding: 12px 14px; }
.answer-pair > div + div { border-left: 1px solid var(--line); }
.answer-pair small { display: block; font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.answer-pair b { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.3; word-break: break-word; }
.answer-pair .correct { background: rgba(92, 225, 230, 0.07); }
.answer-pair .correct small { color: var(--hit); }
.answer-pair .correct b { color: var(--hit); }

/* ---- flight record ---- */
.records { display: grid; gap: 12px; }
.rec { border: 1px solid var(--line); border-left: 3px solid var(--c); background: var(--panel); padding: 14px 16px 16px; }
.rec-head { display: grid; grid-template-columns: 30px 1fr auto auto 56px; gap: 10px; align-items: center; }
.rec-n { font-family: var(--mono); font-weight: 700; color: var(--accent); }
.rec-type { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.rec-type .ic { width: 18px; height: 18px; color: var(--accent-2); }
.rec-type small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10.5px; color: var(--muted); letter-spacing: 0.12em; }
.rec-flags { display: flex; }
.rec-tier { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c); white-space: nowrap; }
.rec-tier .tg { width: 20px; height: 20px; }
.rec-pts { text-align: right; font-family: var(--display); font-weight: 700; font-size: 16px; }
.rec-q { margin: 12px 0 0; font-size: 16px; font-weight: 600; line-height: 1.4; }

.rec-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.rec-lines li { display: grid; grid-template-columns: 20px 1fr auto; column-gap: 10px; align-items: center; padding: 8px 10px; background: var(--panel-2); }
.rec-lines .ic { width: 16px; height: 16px; }
.rec-lines li.ok .ic { color: var(--hit); }
.rec-lines li.no .ic { color: var(--wrong); }
.rec-lines em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--muted); margin: 0 4px; }
.rec-lines b { color: var(--hit); font-size: 13.5px; text-align: right; }
.rec-lines small { grid-column: 2 / -1; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 3px; }

.rec-acc { margin-top: 12px; }
.rec-acc > small { display: block; font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.rec-acc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.rec-acc li { display: grid; grid-template-columns: 18px 92px 1fr; gap: 8px; align-items: center; padding: 5px 8px; font-size: 13px; color: var(--muted); }
.rec-acc li .tg { width: 16px; height: 16px; }
.rec-acc li b { font-size: 12px; color: var(--c); font-weight: 600; }
.rec-acc li span { font-family: var(--mono); font-size: 12px; }
.rec-acc li.you { background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--text); box-shadow: inset 2px 0 0 var(--c); }
.rec-acc li.you span::after { content: "  ← your tier"; color: var(--c); font-size: 10.5px; letter-spacing: 0.06em; }
.rec-acc p { margin: 6px 0 0 8px; font-size: 12px; color: var(--muted); }

.signal small:last-child { display: block; margin-top: 10px; font-size: 9.5px; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 14px 14px 14px 56px; }
  .steps li::before { top: 14px; }
}
@media (max-width: 560px) {
  .question { font-size: 19px; }
  .formats { grid-template-columns: 1fr; }
  .rec { padding: 12px; }
  .rec-head { grid-template-columns: 24px 1fr auto 44px; }
  .rec-flags { display: none; }
  .rec-tier span { display: none; }
  .rec-q { font-size: 15px; }
  .rec-acc li { grid-template-columns: 16px 74px 1fr; font-size: 12px; }
  .rec-acc li.you span::after { content: "  ←"; }
  .answer-pair b { font-size: 15px; }
  .duel { grid-template-columns: 20px 1fr 30px 1fr; }
}


/* =====================================================================
   v5 · boosted question, unit switch
   ===================================================================== */
#boost-badge { border-color: var(--accent-2); color: var(--accent-2); background: rgba(255, 213, 107, 0.08); animation: boostpulse 1.6s ease-in-out infinite alternate; }
@keyframes boostpulse { from { box-shadow: 0 0 0 rgba(255, 213, 107, 0); } to { box-shadow: 0 0 22px rgba(255, 213, 107, 0.22); } }
.seq.boost { border-bottom-style: solid; border-bottom-color: var(--accent-2); color: var(--accent-2); }
.seq.boost.current { color: var(--accent); }
.manifest li.boost { background: linear-gradient(90deg, rgba(255, 213, 107, 0.12), transparent); border-left: 2px solid var(--accent-2); }
.manifest li.boost .mf-tag { color: var(--accent-2); font-weight: 700; }

.answer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.answer-head .mini-label { margin: 0; }
.unit-switch { display: inline-flex; border: 1px solid var(--line-2); }
.unit-switch button {
  display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border: none; background: transparent;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.unit-switch button small { font-weight: 400; letter-spacing: 0.04em; text-transform: none; opacity: 0.8; }
.unit-switch button + button { border-left: 1px solid var(--line-2); }
.unit-switch button.on { background: var(--accent); color: #140a02; }
.unit-switch button:not(.on):hover { color: var(--text); }
.unit-switch button:disabled { cursor: default; }
@media (max-width: 560px) {
  .answer-head { flex-wrap: wrap; }
  .unit-switch button { padding: 6px 9px; }
}


/* =====================================================================
   v6 · full-screen flight mode
   ===================================================================== */
body.in-flight { overflow: hidden; }
.flight-mode { position: fixed; inset: 0; z-index: 40; background: #04050b; opacity: 0; transition: opacity 0.5s ease; }
.flight-mode.on { opacity: 1; }
.space { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 18px 30px;
  background: linear-gradient(rgba(4, 5, 11, 0.85), rgba(4, 5, 11, 0));
}
.hud > * { pointer-events: auto; }
.hud-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.hud .sequence { margin-top: 0; width: min(360px, 52vw); gap: 4px; }
.hud .seq { height: 30px; font-size: 14px; }
.hud .seq.done .tg { width: 18px; height: 18px; }
.hud-right { display: flex; align-items: center; gap: 8px; }
.hud-alt { text-align: right; margin-right: 6px; }
.hud-alt small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.hud-alt strong { display: block; font-family: var(--mono); font-size: 16px; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.hud-alt span { display: block; font-size: 11px; color: var(--muted); }
.icon-btn.abort { font-size: 16px; }
.icon-btn.abort.armed { border-color: var(--wrong); color: var(--wrong); box-shadow: 0 0 14px rgba(255, 84, 104, 0.4); }

.hud-track { position: absolute; left: 24px; right: 24px; bottom: 16px; height: 28px; z-index: 3; --p: 0%; pointer-events: none; }
.ht-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 5px, transparent 5px 10px); }
.ht-fill { position: absolute; left: 0; top: 50%; height: 2px; width: var(--p); background: linear-gradient(90deg, #5ab0ff, var(--accent), var(--accent-2)); box-shadow: 0 0 10px var(--accent); }
.ht-lm { position: absolute; left: var(--p); top: 50%; transform: translate(-50%, -50%); }
.ht-lm .lg { width: 18px; height: 18px; display: block; }
.ht-rocket { position: absolute; left: var(--p); top: 50%; transform: translate(-50%, -50%) rotate(45deg); color: var(--accent); font-size: 18px; filter: drop-shadow(0 0 6px var(--accent)); }

/* ---- panels ---- */
.q-panel, .v-panel, .end-panel {
  position: absolute; z-index: 4; left: 50%; top: 50%;
  width: min(440px, calc(100vw - 28px)); max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 18px 16px;
  background: rgba(9, 11, 24, 0.88); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 122, 26, 0.08);
}
.q-panel, .end-panel { transform: translate(-50%, -50%); animation: panelIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15); }
@keyframes panelIn { from { opacity: 0; transform: translate(-50%, -42%) scale(0.96); } to { opacity: 1; transform: translate(-50%, -50%); } }
.q-panel.leaving { animation: panelOut 0.35s ease forwards; }
@keyframes panelOut { to { opacity: 0; transform: translate(-50%, -62%) scale(0.95); } }
.q-panel::before, .v-panel::before, .end-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.qp-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.q-panel .q-count { font-size: 40px; }
.q-panel .q-count small { font-size: 12px; }
.q-panel .qtype { font-size: 12.5px; }
.q-panel .category { margin-top: 2px; font-size: 10px; }
.q-panel .sling-badge { margin: 0 0 10px; padding: 7px 10px; font-size: 10.5px; }
.q-panel .question { font-size: 19px; margin-bottom: 6px; }
.q-panel .hint { font-size: 12.5px; margin-bottom: 12px; }
.q-panel .answer-head { margin-bottom: 8px; }
.q-panel .num-row input, .q-panel .decode-row input { font-size: 18px; padding: 11px 12px; }
.q-panel .scope-readout { font-size: 24px; }
.q-panel .scope-track { height: 26px; margin-top: 10px; }
.q-panel .lens { padding: 9px 6px; }
.q-panel .fuel { margin-top: 12px; height: 20px; }
.q-panel .fuel-label { line-height: 18px; font-size: 9.5px; }
.q-panel .cta { margin-top: 10px; padding: 13px; font-size: 13px; }
.q-panel .q-note { margin-top: 10px; font-size: 13px; }

/* verdict docks to the right on wide screens so the rocket stays in view */
.v-panel { left: auto; right: 28px; top: 50%; width: min(400px, calc(100vw - 28px)); transform: translateY(-50%); animation: vIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
@keyframes vIn { from { opacity: 0; transform: translate(30px, -50%); } to { opacity: 1; transform: translateY(-50%); } }
.v-panel .verdict { grid-template-columns: 46px 1fr auto; padding: 10px 12px; }
.v-panel .verdict-glyph .tg { width: 42px; height: 42px; }
.v-panel .verdict-text strong { font-size: 21px; }
.v-panel .verdict-pts strong { font-size: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.chip-b { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.chip-b .ic, .chip-b .tg { width: 13px; height: 13px; color: var(--accent); }
.chip-b b { color: var(--text); }
.v-panel .answer-pair b { font-size: 15px; }
.v-note { margin: 8px 0 0; font-size: 12.5px; color: var(--accent-2); }
.v-chart .chart { margin-top: 8px; }
.v-panel .fact { margin-top: 10px; font-size: 13px; }
.v-panel .cta { margin-top: 12px; padding: 13px; font-size: 13px; }

.end-panel { text-align: center; padding: 26px 22px 20px; }
.end-art .lg { width: 110px; height: 110px; filter: drop-shadow(0 0 24px rgba(255, 213, 107, 0.35)); }
.end-panel .mini-label { justify-content: center; margin: 6px 0 2px; }
.end-panel h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; }
.end-signal { margin: 14px 0 0; font-family: var(--mono); font-size: 34px; letter-spacing: 0.12em; color: var(--accent-2); }

/* typed answers */
.tile.punct { background: none; border: none; width: auto; min-width: 6px; color: var(--muted); }
.tries { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pip { width: 12px; height: 12px; border: 1px solid var(--line-2); transform: rotate(45deg); }
.pip.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tries small { margin-left: 8px; display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tries small .tg { width: 14px; height: 14px; }
.open-misses { margin: 8px 0 0; font-family: var(--mono); font-size: 11px; color: var(--wrong); min-height: 1em; }

@media (max-width: 900px) {
  .v-panel { left: 50%; right: auto; top: auto; bottom: 54px; transform: translateX(-50%); max-height: 62vh; animation-name: vInSheet; }
  @keyframes vInSheet { from { opacity: 0; transform: translate(-50%, 30px); } to { opacity: 1; transform: translateX(-50%); } }
}
@media (max-width: 560px) {
  .hud { padding: 10px 12px 24px; }
  .hud-left .chip { display: none; }
  .hud .sequence { width: min(230px, 58vw); }
  .hud .seq { height: 26px; font-size: 12px; }
  .hud-alt span { display: none; }
  .hud-alt strong { font-size: 13px; }
  .q-panel, .end-panel { top: auto; bottom: 50px; transform: translateX(-50%); max-height: calc(100vh - 130px); animation-name: panelInSheet; }
  .q-panel.leaving { animation-name: panelOutSheet; }
  @keyframes panelInSheet { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translateX(-50%); } }
  @keyframes panelOutSheet { to { opacity: 0; transform: translate(-50%, -30px); } }
  .q-panel .q-count { font-size: 32px; }
  .q-panel .question { font-size: 17px; }
  .hud-track { left: 14px; right: 14px; bottom: 10px; }
}


/* =====================================================================
   v7 · neon polish: fewer words, more light
   ===================================================================== */
:root {
  --neon-c: #22e4ff;
  --neon-m: #ff3df0;
  --neon-v: #8b5cff;
  --glass: rgba(10, 12, 28, 0.78);
  --edge: rgba(255, 255, 255, 0.1);
}

/* optional Seedance / Higgsfield loops */
.bg-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.2s; pointer-events: none; }
body.has-video .bg-video { opacity: 0.4; }
.space-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.flight-mode.has-video .space-video { opacity: 1; }

/* ---------- menus: one calm column ---------- */
.shell { max-width: 640px; padding-top: 16px; }
.masthead { border-bottom: none; margin-bottom: 14px; padding-bottom: 0; }
.brand h1 {
  font-size: 22px;
  background: linear-gradient(90deg, #fff 0%, #ffd56b 45%, #ff7a1a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 122, 26, 0.45));
}
.logo { width: 36px; height: 36px; }
.icon-btn { border-radius: 12px; clip-path: none; }

.hero {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow: 0 0 0 1px rgba(139, 92, 255, 0.25), 0 24px 80px rgba(139, 92, 255, 0.22);
}
.hero .pad { display: block; width: 100%; }
.hero-over {
  position: absolute; left: 0; right: 0; top: 0; padding: 20px 22px 40px;
  background: linear-gradient(rgba(4, 5, 11, 0.85), rgba(4, 5, 11, 0));
}
.hero-kicker {
  margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--neon-c); text-shadow: 0 0 12px rgba(34, 228, 255, 0.8);
}
.hero-over h2 { margin: 6px 0 14px; font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; }

.manifest { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; border: 0; }
.manifest li {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06);
  color: var(--neon-c); font-size: 18px; box-shadow: inset 0 0 14px rgba(34, 228, 255, 0.14);
  grid-template-columns: none;
}
.manifest li.boost { color: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 0 18px rgba(255, 213, 107, 0.5); background: rgba(255, 213, 107, 0.08); }
.manifest li i {
  position: absolute; top: -8px; right: -8px; font-style: normal; font-family: var(--mono); font-size: 9px; font-weight: 700;
  background: var(--accent-2); color: #140a02; border-radius: 6px; padding: 1px 4px; box-shadow: 0 0 10px rgba(255, 213, 107, 0.8);
}

.cta { border-radius: 14px; clip-path: none; }
.cta.glow {
  background: linear-gradient(135deg, #ff7a1a, #ff3df0); color: #fff;
  box-shadow: 0 0 24px rgba(255, 61, 240, 0.45), 0 0 60px rgba(255, 122, 26, 0.25);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.cta.glow:hover:not(:disabled) { filter: brightness(1.12) saturate(1.1); }
.cta.glow:disabled { box-shadow: none; }
.cta.big { padding: 20px; font-size: 18px; letter-spacing: 0.24em; animation: ctaPulse 2.4s ease-in-out infinite; }
@keyframes ctaPulse { 50% { box-shadow: 0 0 40px rgba(255, 61, 240, 0.75), 0 0 100px rgba(255, 122, 26, 0.35); } }
.cta.alt { color: var(--neon-c); box-shadow: inset 0 0 0 1.5px rgba(34, 228, 255, 0.6), 0 0 18px rgba(34, 228, 255, 0.2); }
.ghost-btn { border-radius: 12px; border-color: rgba(255, 255, 255, 0.14); }
.start-done { border: 0; padding: 0; margin-top: 18px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border: 0; margin-top: 18px; }
.stats div { border: 1px solid rgba(255, 255, 255, 0.08) !important; border-radius: 16px; background: rgba(255, 255, 255, 0.04); padding: 12px 4px; }
.stats strong { color: #fff; text-shadow: 0 0 14px rgba(34, 228, 255, 0.65); }
.stats small { letter-spacing: 0.14em; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.how div { text-align: center; padding: 14px 8px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.how-ic {
  display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 228, 255, 0.28), rgba(34, 228, 255, 0) 70%); color: var(--neon-c); font-size: 22px;
}
.how-ic .tg { width: 26px; height: 26px; }
.how b { display: block; font-family: var(--display); font-size: 13px; }
.how small { color: var(--muted); font-size: 11.5px; }

.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; border: 0; margin-top: 10px; }
.scale-step {
  border: 0 !important; border-radius: 16px; padding: 14px 4px 10px;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 24%, transparent), rgba(255, 255, 255, 0.03) 72%);
}
.scale-step::after { display: none; }
.scale-step .tg { width: 36px; height: 36px; filter: drop-shadow(0 0 8px var(--c)); }
.scale-step small { color: var(--c); font-family: var(--mono); font-weight: 700; font-size: 12px; }

.brief { border-radius: 14px; margin-top: 10px; border-color: rgba(255, 255, 255, 0.08); }
.brief > div { padding: 0 12px 12px; }
.formats { grid-template-columns: 1fr 1fr; }
.sys, .fmt { border-radius: 12px; border-left: 0; }
.systems { margin-top: 8px; }

/* ---------- results ---------- */
.dest { display: block; text-align: center; padding: 8px 0 0; }
.dest-art .lg { width: 120px; height: 120px; filter: drop-shadow(0 0 30px rgba(255, 213, 107, 0.45)); }
.dest h2 { margin: 6px 0 4px; font-size: 38px; text-shadow: 0 0 26px rgba(255, 213, 107, 0.35); }
.signal-big { margin: 16px 0; font-family: var(--mono); font-size: 42px; letter-spacing: 0.14em; color: var(--accent-2); text-shadow: 0 0 18px rgba(255, 213, 107, 0.65); }
.replay { margin-top: 20px; border-radius: 20px; border: 1px solid var(--edge); }
.section-title { margin: 28px 0 10px; font-family: var(--display); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.rec { border-radius: 16px; background: rgba(13, 16, 33, 0.82); border-left-width: 1px; box-shadow: inset 3px 0 0 var(--c); }
.rec-acc li { border-radius: 8px; }
.answer-pair { border-radius: 12px; overflow: hidden; }
.answer-pair.solo { grid-template-columns: 1fr; }
.card-preview img { border-radius: 14px; }

/* ---------- flight HUD ---------- */
.hud { align-items: center; padding: 14px 18px 44px; background: linear-gradient(rgba(4, 5, 11, 0.75), rgba(4, 5, 11, 0)); }
.hud-alt { text-align: left; margin: 0; }
.hud-alt strong { font-family: var(--display); font-size: 22px; font-weight: 700; color: #fff; text-shadow: 0 0 16px rgba(34, 228, 255, 0.75); }
.hud-alt span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--neon-c); text-transform: uppercase; }
.hud .sequence { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: auto; gap: 8px; margin: 0; }
.hud .seq {
  flex: none; width: 34px; height: 34px; border-radius: 50%; clip-path: none; font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.5);
}
.hud .seq.current { border-color: var(--neon-c); color: var(--neon-c); box-shadow: 0 0 14px rgba(34, 228, 255, 0.7); animation: seqPulse 1.4s ease-in-out infinite; }
@keyframes seqPulse { 50% { box-shadow: 0 0 26px rgba(34, 228, 255, 0.95); } }
.hud .seq.done { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 70%, transparent); }
.hud .seq.boost:not(.done) { border-color: var(--accent-2); color: var(--accent-2); }
.icon-btn.round { border-radius: 50%; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.icon-btn.round:hover { border-color: var(--neon-c); color: var(--neon-c); box-shadow: 0 0 14px rgba(34, 228, 255, 0.4); }
.hud-track .ht-fill { height: 3px; background: linear-gradient(90deg, var(--neon-c), var(--neon-v), var(--neon-m)); box-shadow: 0 0 14px var(--neon-c), 0 0 4px #fff; }
.hud-track .ht-rocket { color: #fff; filter: drop-shadow(0 0 8px var(--neon-m)); }

/* ---------- answer card ---------- */
.q-panel, .v-panel, .end-panel {
  border-radius: 24px; padding: 20px; background: var(--glass); border: 1px solid var(--edge);
  box-shadow: 0 0 0 1px rgba(139, 92, 255, 0.35), 0 0 50px rgba(139, 92, 255, 0.25), 0 30px 80px rgba(0, 0, 0, 0.6);
}
.q-panel::before, .v-panel::before, .end-panel::before { background: linear-gradient(90deg, transparent, var(--neon-c), var(--neon-m), transparent); height: 2px; }
.q-panel .fuel { margin: -20px -20px 16px; height: 4px; border: 0; background: rgba(255, 255, 255, 0.06); }
.q-panel .fuel-bar { background: linear-gradient(90deg, #ffd56b, #ff7a1a, #ff3df0); box-shadow: 0 0 12px #ff7a1a; }
.q-panel .fuel-label { display: none; }
.q-panel .fuel.empty .fuel-bar, .q-panel .fuel.spent .fuel-bar { opacity: 0.25; }

.qp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.type-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 99px;
  background: rgba(34, 228, 255, 0.12); color: var(--neon-c); box-shadow: inset 0 0 0 1px rgba(34, 228, 255, 0.35), 0 0 16px rgba(34, 228, 255, 0.15);
  font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.type-badge .ic { width: 16px; height: 16px; }
.qp-head .category { flex: 1; margin: 0; font-size: 10px; color: var(--muted); letter-spacing: 0.14em; }
.qp-head .q-count { font-family: var(--mono); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.55); line-height: 1; }
.qp-head .q-count small { font-size: 11px; margin: 0; }
.boost-badge {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 5px 12px; border-radius: 99px;
  font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #140a02; background: linear-gradient(90deg, #ffd56b, #ff9d4d); box-shadow: 0 0 22px rgba(255, 213, 107, 0.7);
  animation: boostpulse 1.4s ease-in-out infinite alternate;
}
.boost-badge .ic { width: 15px; height: 15px; }
.q-panel .question { margin: 2px 0 6px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.q-panel .hint { margin: 0 0 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }
.answer-head { justify-content: flex-end; }
.answer-head:has(.unit-switch.hidden) { display: none; }
.unit-switch { border-radius: 99px; overflow: hidden; }
.num-row input, .decode-row input {
  border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.16);
}
.num-row input:focus, .decode-row input:focus { border-color: var(--neon-c); box-shadow: 0 0 0 3px rgba(34, 228, 255, 0.18), 0 0 22px rgba(34, 228, 255, 0.3); }
.tile { border-radius: 8px; background: rgba(0, 0, 0, 0.35); }
.tile.rev { border-color: var(--neon-m); color: #ffc6f7; box-shadow: 0 0 10px rgba(255, 61, 240, 0.5); }
.tile.solved { box-shadow: 0 0 10px rgba(92, 225, 230, 0.45); }
.ghost { border-radius: 12px; }
.lens { border-radius: 12px; clip-path: none; }
.lens.selected { border-color: var(--neon-c); background: rgba(34, 228, 255, 0.12); box-shadow: 0 0 16px rgba(34, 228, 255, 0.3); }
.scope-track { border-radius: 10px; }
.scope-readout { text-shadow: 0 0 16px rgba(34, 228, 255, 0.6); }
.pip.on { background: var(--neon-m); border-color: var(--neon-m); box-shadow: 0 0 10px var(--neon-m); }
.decode-cap, .tries small { font-size: 10px; }
.q-panel .cta { margin-top: 14px; padding: 15px; font-size: 14px; letter-spacing: 0.2em; }

/* ---------- verdict ---------- */
.v-hero { text-align: center; padding: 4px 0 2px; }
.v-glyph .tg {
  width: 88px; height: 88px; display: block; margin: 0 auto;
  filter: drop-shadow(0 0 16px var(--c)) drop-shadow(0 0 40px var(--c));
  animation: glyphPop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes glyphPop { from { transform: scale(0.3) rotate(-30deg); opacity: 0; } }
.v-tier { display: block; margin-top: 8px; font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--c); text-shadow: 0 0 20px var(--c); }
.v-pts {
  display: inline-block; margin-top: 6px; padding: 3px 14px; border-radius: 99px;
  font-family: var(--display); font-size: 20px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, 0.08);
}
.chips { justify-content: center; }
.chips:empty { display: none; }
.chip-b { border-radius: 99px; }
.v-note { text-align: center; color: var(--neon-c); font-size: 12px; }
.v-panel .fact { margin-top: 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.v-panel .answer-pair { margin-top: 14px; }
.end-panel h2 { text-shadow: 0 0 22px rgba(255, 213, 107, 0.45); }

@media (max-width: 560px) {
  .hero-over h2 { font-size: 20px; }
  .manifest li { width: 34px; height: 34px; font-size: 15px; }
  .hud .sequence { top: 62px; gap: 5px; }
  .hud .seq { width: 28px; height: 28px; font-size: 12px; }
  .hud { padding-bottom: 70px; }
  .hud-alt strong { font-size: 17px; }
  .formats { grid-template-columns: 1fr; }
  .dest h2 { font-size: 28px; }
  .signal-big { font-size: 32px; }
  .q-panel .question { font-size: 18px; }
  .v-glyph .tg { width: 64px; height: 64px; }
  .v-tier { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   v8 · space type, Picture + Pinpoint, zoom-out end card
   DISPLAY  Orbitron   badges, tiers, big numbers
   BODY     Exo 2      questions and copy
   MONO     Oxanium    readouts, labels
   ===================================================================== */
:root {
  --display: "Orbitron", "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Exo 2", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Oxanium", "JetBrains Mono", ui-monospace, Consolas, monospace;
}
.q-panel .question { font-family: var(--body); font-weight: 600; letter-spacing: 0.005em; }
.q-panel .hint, #hint { display: none !important; }
.v-tier, .end-panel h2, .brand h1 { letter-spacing: 0.06em; text-transform: uppercase; }

/* picture clue */
.q-pic { margin: 4px 0 12px; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, rgba(139, 92, 255, 0.14), rgba(0, 0, 0, 0.35)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.q-pic .pic { display: block; width: 100%; height: auto; max-height: 34vh; }
.q-panel[data-type="image"], .q-panel[data-type="pin"] { width: min(520px, calc(100vw - 28px)); }
.q-panel[data-type="pin"] .q-pic .pic { max-height: 46vh; }
.pin-map { cursor: crosshair; touch-action: manipulation; }
.pin-tip { margin: 0; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--neon-c); }
.v-chart .pic { display: block; width: 100%; height: auto; margin-top: 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); }
.rec-pic { margin: 8px 0 10px; max-width: 360px; border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.rec-pic .pic { display: block; width: 100%; height: auto; }

/* zoom-out: hide the in-flight chrome, card docks below the route */
#flight.overview .hud, #flight.overview .hud-track { opacity: 0; pointer-events: none; transition: opacity 0.6s; }
#flight.overview .end-panel {
  top: auto; bottom: 28px; transform: translateX(-50%); width: min(420px, calc(100vw - 28px));
  padding: 16px 18px 16px; animation: endUp 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}
@keyframes endUp { from { opacity: 0; transform: translate(-50%, 30px); } to { opacity: 1; transform: translateX(-50%); } }
.end-panel h2 { font-size: 24px; }
.end-panel .end-signal { margin-top: 8px; font-size: 26px; }
.end-panel .cta { margin-top: 12px; }

/* =====================================================================
   v9 · hangar, streak shield, shared stats, end badges
   ===================================================================== */
.v-stat { margin: 10px 0 0; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neon-g, #ffd56b); text-shadow: 0 0 12px rgba(255, 213, 107, 0.45); }
.end-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.eb { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.eb .ic, .eb .tg { width: 14px; height: 14px; }
.eb.gold { color: #1a1003; background: linear-gradient(90deg, #ffd56b, #ff9d4d); box-shadow: 0 0 18px rgba(255, 213, 107, 0.6); }
.shield-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); }
.shield-line .ic { width: 16px; height: 16px; color: #7df0c4; filter: drop-shadow(0 0 6px rgba(125, 240, 196, 0.6)); }
.shield-line b { color: #7df0c4; font-weight: 600; }
.shield-line.used .ic { color: var(--muted); filter: none; }
.hangar-wrap { margin-top: 18px; }
.hangar-wrap .mini-label { text-align: center; justify-content: center; }
.hangar { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.skin { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 66px; padding: 6px 4px 7px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); color: var(--text); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.skin:hover:not(.locked) { transform: translateY(-2px); }
.skin small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.skin.on { border-color: var(--neon-c); box-shadow: 0 0 0 1px var(--neon-c), 0 0 20px rgba(34, 228, 255, 0.35); }
.skin.on small { color: var(--neon-c); }
.skin.locked { cursor: not-allowed; opacity: 0.45; }
.skin.locked .skin-img { filter: grayscale(1) brightness(0.6); }
.skin-img { display: block; }
.toast .skin-img { width: 40px; height: 40px; flex: none; }

/* =====================================================================
   v10 · hangar shop: preview, hulls, boost flames, buy bar
   ===================================================================== */
.hangar-wrap { margin-top: 18px; padding: 14px 12px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.hangar-preview { display: block; width: 100%; height: 130px; margin: 4px 0 6px; border-radius: 14px; background: radial-gradient(70% 90% at 50% 50%, rgba(139, 92, 255, 0.16), transparent 70%); }
.hangar-row { margin-top: 10px; }
.hangar-row > small { display: block; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.hangar { gap: 7px; }
.skin { position: relative; }
.skin.preview { border-color: var(--neon-g, #ffd56b); box-shadow: 0 0 0 1px #ffd56b, 0 0 20px rgba(255, 213, 107, 0.35); }
.skin.paid small { color: #ffd56b; }
.skin .tag { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; color: #ffd56b; }
.skin .tag .ic { width: 14px; height: 14px; }
.buy-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 10px 10px 14px; border-radius: 16px; background: rgba(255, 213, 107, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 213, 107, 0.35); animation: buyIn 0.3s ease both; }
@keyframes buyIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.buy-bar.hidden { display: none; }
.buy-name { flex: 1; min-width: 0; }
.buy-name b { display: block; font-family: var(--display); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.buy-name small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.buy-bar .cta { width: auto; margin: 0; padding: 11px 16px; font-size: 13px; white-space: nowrap; }
.bundle-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; color: #ffd56b; border-color: rgba(255, 213, 107, 0.4); }
.bundle-btn.hidden { display: none; }
.bundle-btn .ic { width: 16px; height: 16px; }
.shop-note { margin: 8px 0 0; text-align: center; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* logo is a home link */
a.brand { color: inherit; text-decoration: none; cursor: pointer; border-radius: 12px; transition: filter .2s, transform .2s; }
a.brand:hover { filter: drop-shadow(0 0 10px rgba(34, 228, 255, .45)); }
a.brand:active { transform: scale(.98); }
a.brand:focus-visible { outline: 2px solid var(--neon-c); outline-offset: 4px; }

/* =====================================================================
   v11 · Odd One Out
   ===================================================================== */
.odd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.odd-opt { padding: 13px 10px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.3); color: var(--text); font-family: var(--body); font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.odd-opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.odd-opt:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(34, 228, 255, 0.5); }
.odd-opt.on { border-color: var(--neon-c); background: rgba(34, 228, 255, 0.12); box-shadow: 0 0 0 1px var(--neon-c), 0 0 18px rgba(34, 228, 255, 0.3); }
.odd-opt.right { border-color: #7df0c4; background: rgba(125, 240, 196, 0.15); box-shadow: 0 0 16px rgba(125, 240, 196, 0.35); }
.odd-opt.wrong { border-color: #ff5468; background: rgba(255, 84, 104, 0.14); }
.odd-opt:disabled { cursor: default; }

/* zoomable Pinpoint map */
.pin-wrap { position: relative; }
.pin-map { touch-action: none; user-select: none; }
.pin-map #pin-zoom path { vector-effect: non-scaling-stroke; }
.pin-zoom-btns { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.pin-zoom-btns button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(4, 5, 11, 0.75); color: #e8f6ff; font: 700 18px/1 var(--mono); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.pin-zoom-btns button:hover { border-color: var(--neon-c); box-shadow: 0 0 12px rgba(34, 228, 255, 0.35); }
.pin-zoom-btns .ic { width: 16px; height: 16px; }
.q-panel[data-type="pin"] .pin-wrap .pic { max-height: 46vh; }
.q-panel[data-type="pin"] .q-photo ~ .pin-wrap .pic { max-height: 30vh; }

/* =====================================================================
   v12 · account chip, sign-in modal, daily leaderboard
   ===================================================================== */
.acct-btn { display: inline-flex; align-items: center; gap: 7px; max-width: 150px; padding: 6px 11px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); color: var(--text); font: 600 11px/1 var(--mono); letter-spacing: 0.06em; cursor: pointer; }
.acct-btn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn:hover { border-color: var(--neon-c); }
.acct-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #6b7090; }
.acct-dot.guest { background: #ffd56b; box-shadow: 0 0 8px #ffd56b; }
.acct-dot.on { background: #7df0c4; box-shadow: 0 0 8px #7df0c4; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(2, 3, 8, 0.72); backdrop-filter: blur(6px); }
.modal.hidden { display: none; }
.modal-card { position: relative; width: min(420px, 100%); padding: 22px 20px 18px; border-radius: 22px; background: var(--glass, rgba(12, 14, 30, 0.95)); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 0 50px rgba(139, 92, 255, 0.25), 0 30px 80px rgba(0, 0, 0, 0.6); }
.modal-card h2 { margin: 0 0 14px; font-family: var(--display); font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; }
.modal-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 20px; cursor: pointer; }
.acct-label { display: block; margin: 12px 0 6px; font: 600 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.acct-label small { text-transform: none; letter-spacing: 0; opacity: 0.8; }
.acct-row { display: flex; gap: 8px; }
.acct-row input { flex: 1; min-width: 0; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(0, 0, 0, 0.35); color: var(--text); font: 500 15px var(--body); }
.acct-row input:focus { outline: none; border-color: var(--neon-c); }
.acct-row .cta { width: auto; margin: 0; padding: 10px 14px; font-size: 12px; }
.acct-status { margin: 14px 0 4px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.8); }
.google-btn { width: 100%; margin-top: 10px; justify-content: center; }
.acct-msg { min-height: 1em; margin: 10px 0 0; font: 12px var(--mono); color: var(--neon-c); }
.lb { margin: 16px 0 0; text-align: left; }
.lb .section-title small { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; margin-left: 6px; }
.lb-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.lb-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 52px; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); font-size: 13px; }
.lb-list li:nth-child(1) .lb-rank { color: #ffd56b; }
.lb-list li:nth-child(2) .lb-rank { color: #d6dcef; }
.lb-list li:nth-child(3) .lb-rank { color: #ff9d4d; }
.lb-list li.me { background: rgba(34, 228, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(34, 228, 255, 0.45); }
.lb-rank { font: 700 13px var(--mono); text-align: center; color: var(--muted); }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lb-where { font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.lb-score { font: 700 14px var(--mono); text-align: right; color: var(--neon-c); }
.lb-me, .lb-empty { margin: 8px 0 0; font: 12px var(--mono); color: var(--muted); text-align: center; }
@media (max-width: 560px) { .acct-btn { max-width: 96px; padding: 6px 9px; } .lb-where { display: none; } .lb-list li { grid-template-columns: 26px minmax(0, 1fr) 52px; } }

/* =====================================================================
   v13 · Battle Royale
   ===================================================================== */
.battle-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 10px; border-color: rgba(255, 61, 240, 0.5); }
.battle-cta small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; opacity: 0.75; }
.br-intro, .br-note, .br-sub { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); }
.br-sub { font: 11px var(--mono); color: var(--muted); text-align: center; margin-top: 10px; }
.br-note { text-align: center; }
.br-code { font-family: var(--display); font-size: 20px; letter-spacing: 0.3em; color: var(--neon-c); }
.br-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; font: 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.br-or::before, .br-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.12); }
.br-or span { white-space: nowrap; }
#br-body .ghost-btn { width: 100%; justify-content: center; margin-top: 8px; }
.br-join { margin-top: 8px; }
.br-join input { text-transform: uppercase; letter-spacing: 0.3em; text-align: center; font-family: var(--display); }
.br-seats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.br-seats li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); font-weight: 600; }
.br-seats li.empty { opacity: 0.45; }
.br-seats li.empty i { width: 34px; height: 34px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.3); }
.br-seats small { font: 10px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.br-hud { position: absolute; z-index: 5; left: 12px; top: 64px; width: min(260px, calc(100vw - 24px)); margin: 0; padding: 8px; list-style: none; display: grid; gap: 4px; border-radius: 16px; background: rgba(4, 5, 11, 0.7); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); }
.br-hud.hidden { display: none; }
.br-hud li { display: grid; grid-template-columns: 16px 26px minmax(0, 1fr) 36px 18px; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 8px; font-size: 12px; }
.br-hud li.me { background: rgba(34, 228, 255, 0.12); }
.br-hud li.out { opacity: 0.35; text-decoration: line-through; }
.br-hud .br-pos { font: 700 11px var(--mono); color: var(--muted); }
.br-hud .br-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.br-hud .br-name small { font: 9px var(--mono); color: var(--muted); }
.br-hud .br-bar { grid-column: 3 / 4; grid-row: 2; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.br-hud .br-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon-c), var(--neon-m)); }
.br-hud b { font: 700 12px var(--mono); text-align: right; color: var(--neon-c); }
.br-hud em .tg { width: 16px; height: 16px; display: block; }
.br-hud em.wait { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); animation: boostpulse 1s ease-in-out infinite alternate; }
.br-banner { position: absolute; z-index: 7; left: 50%; top: 18%; transform: translateX(-50%); padding: 10px 22px; border-radius: 99px; background: rgba(4, 5, 11, 0.85); border: 1px solid var(--neon-m); box-shadow: 0 0 30px rgba(255, 61, 240, 0.4); font: 800 18px var(--display); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.br-banner.hidden { display: none; }
.br-podium { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 5px; text-align: left; }
.br-podium li { display: grid; grid-template-columns: 22px 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.br-podium li:first-child { background: rgba(255, 213, 107, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 213, 107, 0.5); }
.br-podium li.me b { color: var(--neon-c); }
.br-podium span { font: 700 13px var(--mono); }
.br-podium em { font: 700 13px var(--mono); font-style: normal; color: var(--neon-c); }
#flight.battle #progress, #flight.battle .hud .sequence { display: none; }
@media (max-width: 900px) { .br-hud { top: auto; bottom: 52px; left: 50%; transform: translateX(-50%); } #flight.battle .q-panel { top: 56px; bottom: auto; transform: translateX(-50%); max-height: calc(100vh - 290px); } #flight.battle .v-panel { bottom: auto; top: 56px; } }

/* Open Channel: skip after a couple of unlisted answers */
.open-skip { display: block; margin: 10px auto 0; padding: 6px 12px; border: 0; background: none; color: var(--muted); font: 11px var(--mono); letter-spacing: 0.06em; text-decoration: underline; cursor: pointer; }
.open-skip:hover { color: var(--text); }

.q-photo.big { height: clamp(150px, 30vh, 260px); }

/* =====================================================================
   v15 · RETRO PIXEL THEME
   DISPLAY  Press Start 2P  titles, tiers, buttons (8-bit arcade)
   BODY     Pixelify Sans   questions and copy (readable pixel font)
   MONO     VT323           readouts, labels, numbers (CRT terminal)
   Square corners, chunky 3px borders, hard drop shadows, scanlines,
   and canvases drawn at low resolution with sharp pixels.
   ===================================================================== */
:root {
  --display: "Press Start 2P", "Courier New", monospace;
  --body: "Pixelify Sans", "Trebuchet MS", system-ui, sans-serif;
  --mono: "VT323", "Courier New", monospace;
  --px-shadow: 4px 4px 0 #000;
  --px-edge: #1b1f3d;
}
*, *::before, *::after { border-radius: 0 !important; }
body { font-family: var(--body); font-size: 16px; letter-spacing: 0.01em; -webkit-font-smoothing: none; }
canvas, .skin-img, .q-photo img, .rec-pic img { image-rendering: pixelated; }
svg.pic, .lg, .tg { shape-rendering: crispEdges; }

/* CRT scanlines over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.18) 2px 3px);
}

/* type scale: the pixel display font runs wide, so it's set smaller */
.brand h1 { font-size: 15px; letter-spacing: 0.25em; text-shadow: 3px 3px 0 #ff3df0; }
.q-panel .question, .question { font-family: var(--body); font-weight: 600; font-size: 21px; line-height: 1.3; }
.v-tier { font-size: 18px !important; letter-spacing: 0.05em; text-shadow: 3px 3px 0 #000 !important; }
.end-panel h2, .dest h2, .hero-copy h2, .hero-over h2, .modal-card h2 { font-size: 16px !important; line-height: 1.5 !important; letter-spacing: 0.04em; text-shadow: 3px 3px 0 #000 !important; }
.type-badge, .boost-badge, .eyebrow, .hero-kicker, .section-title, .mini-label { font-family: var(--display) !important; font-size: 8px !important; letter-spacing: 0.08em !important; line-height: 1.6; }
.mono, .q-count, .hud-alt strong, .lb-score, .lb-rank, .v-pts, .chip, .chip-b, .fuel-label, .pin-tip, .rank, .br-hud b { font-family: var(--mono) !important; letter-spacing: 0.04em; }
.hud-alt strong { font-size: 24px !important; }
.v-pts { font-size: 26px !important; background: #000 !important; }
.category, .qp-head .category { font-family: var(--mono); font-size: 15px; letter-spacing: 0.04em; }

/* panels: flat dark fill, chunky border, hard shadow */
.q-panel, .v-panel, .end-panel, .modal-card, .welcome-card, .hangar-wrap, .stats > div, .lb-list li, .rec, .br-hud, .qb-key {
  background: #0b0d1f !important; border: 3px solid var(--px-edge) !important;
  box-shadow: inset 0 0 0 3px #000, var(--px-shadow), 0 0 0 1px rgba(139, 92, 255, 0.4) !important;
  backdrop-filter: none !important;
}
.q-panel::before, .v-panel::before, .end-panel::before { height: 4px !important; background: repeating-linear-gradient(90deg, var(--neon-c) 0 8px, var(--neon-m) 8px 16px) !important; }

/* buttons: arcade style, press-down on click */
.cta, .ghost-btn, .icon-btn, .acct-btn, .skin, .odd-opt, .qb-chip, .report-pick, .welcome-links button, .pin-zoom-btns button, .modal-x {
  border: 3px solid #000 !important; box-shadow: var(--px-shadow) !important; transition: transform 0.06s, box-shadow 0.06s !important;
}
.cta { font-family: var(--display) !important; font-size: 11px !important; letter-spacing: 0.08em !important; line-height: 1.6; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35); background: linear-gradient(180deg, #ff9d4d 0 50%, #ff5a1a 50% 100%) !important; color: #140a02 !important; }
.cta.glow { background: linear-gradient(180deg, #ff6ef5 0 50%, #d21fd0 50% 100%) !important; color: #fff !important; text-shadow: 2px 2px 0 #000; }
.cta.alt { background: linear-gradient(180deg, #2fd8ff 0 50%, #0c9fd1 50% 100%) !important; color: #031018 !important; text-shadow: none; }
.cta.big { font-size: 13px !important; padding: 18px !important; }
.ghost-btn { background: #14173a !important; font-family: var(--mono) !important; font-size: 18px !important; }
.cta:active, .ghost-btn:active, .icon-btn:active, .skin:active, .odd-opt:active, .acct-btn:active, .welcome-links button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000 !important; }
.cta:disabled { filter: grayscale(0.8) brightness(0.6); }
.icon-btn { background: #14173a !important; }
.icon-btn.off { opacity: 0.45; }

/* inputs: terminal boxes */
.num-row input, .decode-row input, .acct-row input, .qb-search, .br-join input {
  font-family: var(--mono) !important; font-size: 24px !important; background: #04050b !important;
  border: 3px solid #2b3170 !important; box-shadow: inset 3px 3px 0 #000 !important; color: #7df0c4 !important; caret-color: #7df0c4;
}
.num-row input::placeholder, .decode-row input::placeholder, .acct-row input::placeholder { color: rgba(125, 240, 196, 0.35) !important; }
.num-row input:focus, .decode-row input:focus, .acct-row input:focus { border-color: var(--neon-c) !important; outline: none; }

/* chips, badges, tier glyphs */
.type-badge { background: #071c26 !important; box-shadow: inset 0 0 0 2px var(--neon-c) !important; padding: 7px 10px 6px !important; }
.boost-badge { box-shadow: 3px 3px 0 #000 !important; animation: none !important; }
.v-glyph .tg { filter: drop-shadow(4px 4px 0 #000) !important; animation: none !important; }
.rank { display: inline-block; padding: 2px 6px; font-size: 15px; color: #000; background: var(--rc); box-shadow: 2px 2px 0 #000; }
.q-panel .fuel { height: 8px !important; background: repeating-linear-gradient(90deg, #000 0 6px, #1a1d3a 6px 8px) !important; }
.q-panel .fuel-bar { background: repeating-linear-gradient(90deg, #ffd56b 0 6px, #ff7a1a 6px 8px) !important; box-shadow: none !important; }
.odd-opt { font-family: var(--body) !important; font-size: 16px !important; background: #10132e !important; }
.odd-opt.on { background: #0b3446 !important; }
.odd-opt.right { background: #0d3a2c !important; }
.odd-opt.wrong { background: #3a0d16 !important; }
.skin { background: #10132e !important; }
.skin.on { background: #0b3446 !important; }

/* welcome prompt */
.welcome { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 50% 35%, rgba(139, 92, 255, 0.35), rgba(2, 3, 8, 0.96) 65%); }
.welcome.hidden { display: none; }
.welcome-card { width: min(440px, 100%); padding: 28px 22px 22px; text-align: center; }
.welcome-logo span { display: inline-block; font: 26px var(--display); letter-spacing: 0.18em; color: #fff; text-shadow: 4px 4px 0 #ff3df0, 8px 8px 0 #22e4ff; animation: logoBob 1.6s steps(2) infinite; }
@keyframes logoBob { 50% { transform: translateY(-3px); } }
.welcome-date { margin: 22px 0 8px; font: 18px var(--mono); color: var(--neon-c); letter-spacing: 0.08em; }
.welcome-card h2 { margin: 0 0 10px; font: 14px/1.6 var(--display); }
.welcome-sub { margin: 0 0 20px; font-size: 16px; color: rgba(255, 255, 255, 0.8); }
.welcome-card .cta { width: 100%; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { filter: brightness(1.25); } }
.welcome-links { display: flex; gap: 10px; margin-top: 14px; }
.welcome-links button { flex: 1; padding: 10px; background: #14173a; color: var(--text); font: 18px var(--mono); cursor: pointer; }

/* report a question */
.report { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.report-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border: 0; background: none; color: var(--muted); font: 16px var(--mono); cursor: pointer; }
.report-btn .ic { width: 14px; height: 14px; }
.report-btn:hover { color: var(--text); }
.report-pick { padding: 6px 9px; background: #14173a; color: var(--text); font: 16px var(--mono); cursor: pointer; }
.report-done { font: 16px var(--mono); color: #7df0c4; }

/* battle rating */
.br-myrank, .br-rating { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; font: 20px var(--mono); }
.br-rating em { font-style: normal; }
.br-rating em.up { color: #7df0c4; }
.br-rating em.down { color: #ff5468; }
.br-seats li .rank { margin-left: auto; }

@media (prefers-reduced-motion: reduce) { .welcome-logo span, .welcome-card .cta { animation: none; } }

/* v16 · Battle Royale round clock + asteroid danger */
.br-timer { position: absolute; z-index: 7; top: 14px; left: 50%; transform: translateX(-50%); width: 120px; padding: 6px 8px 8px; text-align: center;
  background: #0b0d1f; border: 3px solid #000; box-shadow: inset 0 0 0 3px var(--px-edge), 4px 4px 0 #000; }
.br-timer.hidden { display: none; }
.br-timer b { display: block; font: 26px/1 var(--display); color: #7df0c4; text-shadow: 3px 3px 0 #000; }
.br-timer i { display: block; height: 6px; margin-top: 6px; transform-origin: left; background: repeating-linear-gradient(90deg, #7df0c4 0 6px, #2fb38a 6px 8px); }
.br-timer.low b { color: #ff5468; animation: blink 0.5s steps(2) infinite; }
.br-timer.low i { background: repeating-linear-gradient(90deg, #ff5468 0 6px, #b3263a 6px 8px); }
#flight.battle .q-panel { margin-top: 60px; }
.br-hud li.danger b { color: #ff5468; }
.br-hud li.danger .br-name::after { content: " ☄"; color: #ff7a1a; }
@media (max-width: 900px) { .br-timer { top: 8px; width: 96px; } .br-timer b { font-size: 20px; } #flight.battle .q-panel { top: 92px; margin-top: 0; } #flight.battle .v-panel { top: 92px; } }

/* v17 · spectating: question visible but locked */
.q-panel.spectate { pointer-events: none; }
.q-panel.spectate::after { content: "SPECTATING"; position: absolute; top: 10px; right: 12px; font: 8px var(--display); letter-spacing: 0.1em; color: #ff5468; }

/* v18 · hangar: tabs, featured item, stacked try-on, packs, bundle savings */
.hangar-tabs { display: flex; gap: 6px; margin: 10px 0 6px; }
.htab { flex: 1; padding: 9px 6px; border: 3px solid #000; background: #14173a; color: var(--muted); font: 9px var(--display); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; box-shadow: 3px 3px 0 #000; }
.htab.on { background: #0b3446; color: var(--neon-c); box-shadow: inset 0 -3px 0 var(--neon-c), 3px 3px 0 #000; }
.hangar-body { min-height: 96px; }
.hsub { margin: 10px 0 0; text-align: center; font: 15px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hangar.big .skin.big { width: 96px; padding: 8px 6px 9px; }
.skin.big em { font: 13px var(--mono); font-style: normal; color: var(--text); }
.pack-btn { display: block; width: 100%; margin-top: 8px; color: #ffd56b !important; font-size: 17px !important; }
.pack-owned { margin: 8px 0 0; text-align: center; font: 15px var(--mono); color: #7df0c4; }
.featured { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; padding: 8px 10px; background: #1d1430; border: 3px solid #000; box-shadow: inset 0 0 0 2px #ffd56b, 4px 4px 0 #000; }
.featured.hidden { display: none; }
.feat-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; background: #ffd56b; color: #140a02; font: 8px var(--display); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.feat-tag .ic { width: 10px; height: 10px; }
.feat-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.feat-name b { font: 17px var(--body); }
.feat-name small { font: 14px var(--mono); color: var(--muted); }
.feat-try { padding: 8px 10px !important; font-size: 16px !important; white-space: nowrap; }
.buy-bar { display: block !important; padding: 10px 12px; }
.buy-bar.hidden { display: none !important; }
.buy-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font: 15px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #ffd56b; }
.buy-reset, .buy-nudge { border: 0; background: none; color: var(--muted); font: 15px var(--mono); cursor: pointer; text-decoration: underline; }
.buy-nudge { display: block; width: 100%; margin-top: 6px; color: #ffd56b; text-align: center; }
.buy-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 2px dashed rgba(255, 213, 107, 0.2); }
.buy-line .buy-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.buy-line .buy-name b { font: 17px var(--body); }
.buy-line .buy-name small { font: 14px var(--mono); color: var(--muted); }
.buy-line .cta { width: auto !important; margin: 0; padding: 10px 12px !important; font-size: 10px !important; white-space: nowrap; }
.bundle-btn span { display: inline; }
.bundle-btn s { opacity: 0.6; margin-left: 4px; }
.bundle-btn em { font-style: normal; margin-left: 6px; padding: 1px 5px; background: #7df0c4; color: #031018; }
@media (max-width: 420px) { .hangar.big .skin.big { width: 80px; } .featured { flex-wrap: wrap; } .feat-try { width: 100%; } }
.featured .feat-try { width: auto !important; flex: none; margin: 0 !important; }
@media (max-width: 420px) { .featured .feat-try { width: 100% !important; } }

/* v19 · Impostor: pick the impostor, then the link */
.odd-link { margin-top: 12px; display: grid; gap: 7px; animation: buyIn 0.25s ease both; }
.odd-link.hidden { display: none; }
.odd-ask { margin: 0 0 2px; text-align: center; font: 17px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #ffd56b; }
.link-opt { padding: 10px 12px; border: 3px solid #000; background: #1d1430; color: var(--text); font: 600 15px var(--body); text-align: left; cursor: pointer; box-shadow: 3px 3px 0 #000; }
.link-opt.on { background: #3a2a10; box-shadow: inset 0 0 0 2px #ffd56b, 3px 3px 0 #000; }
.link-opt.right { background: #0d3a2c; }
.link-opt.wrong { background: #3a0d16; }
.link-opt:disabled { cursor: default; }

/* v20 · hints */
.hint-row { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 8px; }
.hint-row.hidden { display: none; }
.hint-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 3px solid #000; background: #1d1430; color: #ffd56b; font: 16px var(--mono); cursor: pointer; box-shadow: 3px 3px 0 #000; }
.hint-btn .ic { width: 14px; height: 14px; }
.hint-btn small { font: 13px var(--mono); color: #ff8fa0; }
.hint-btn:disabled { opacity: 0.45; cursor: default; }
.hint-btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 #000; }
.hint-text { flex: 1; min-width: 0; }
.hint-text p { margin: 0 0 4px; font: 16px var(--mono); color: #ffe9b0; letter-spacing: 0.03em; overflow-wrap: anywhere; }
.hint-text b { margin-right: 6px; padding: 0 5px; background: #ffd56b; color: #140a02; font-weight: 400; }
.odd-opt.struck, .link-opt.struck { opacity: 0.3; text-decoration: line-through; }

/* v21 · zoom reveal, distance duel, fuel bet, wide photos */
.q-photo.wide img { max-height: 210px; width: 100%; object-fit: cover; }
.zoomer .zoom-frame { position: relative; overflow: hidden; border: 3px solid #000; }
.zoomer .zoom-frame img { display: block; width: 100%; max-height: 240px; object-fit: cover; transform: scale(5); animation: zoomOut 21s cubic-bezier(.3,.1,.3,1) forwards; }
.zoomer.revealed .zoom-frame img { animation: none !important; transform: scale(1) !important; transition: transform 0.6s; }
@keyframes zoomOut { to { transform: scale(1); } }
.zoom-meter { height: 6px; margin-top: 4px; background: repeating-linear-gradient(90deg, #7df0c4 0 33.3%, #ffd56b 33.3% 66.6%, #ff5468 66.6% 100%); position: relative; }
.zoom-meter i { position: absolute; top: -3px; left: 0; width: 4px; height: 12px; background: #fff; box-shadow: 0 0 0 2px #000; animation: zoomTick 21s linear forwards; }
.zoomer.revealed .zoom-meter i { animation-play-state: paused; }
@keyframes zoomTick { to { left: calc(100% - 4px); } }
.zoom-tip { margin: 4px 0 0; text-align: center; font: 14px var(--mono); color: var(--muted); }
.duel { display: grid; grid-template-columns: 1fr !important; gap: 8px; }
.duel-ask { margin: 0 0 2px; text-align: center; font: 18px var(--mono); letter-spacing: 0.04em; }
.duel-ask b { color: #ffd56b; }
.duel-row { display: flex; align-items: center; gap: 6px; }
.duel-row.later { opacity: 0.35; }
.duel-n { flex: none; width: 22px; text-align: center; font: 9px var(--display); color: var(--muted); }
.duel-opt { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 6px; border: 3px solid #000; background: #10132e; color: var(--text); font: 600 16px var(--body); cursor: pointer; box-shadow: 3px 3px 0 #000; }
.duel-opt small { font: 13px var(--mono); color: var(--muted); }
.duel-opt.right { background: #0d3a2c; }
.duel-opt.wrong { background: #3a0d16; }
.duel-opt.hinted { box-shadow: inset 0 0 0 2px #ffd56b, 3px 3px 0 #000; }
.duel-opt:disabled { cursor: default; }
.duel-vs { font: 14px var(--mono); color: var(--muted); }
.bet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.bet-row.hidden { display: none; }
.bet-lbl { display: inline-flex; align-items: center; gap: 5px; font: 15px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #ff9d4d; }
.bet-lbl .ic { width: 14px; height: 14px; }
.bet-opt { padding: 6px 9px; border: 3px solid #000; background: #14173a; color: var(--text); font: 15px var(--mono); cursor: pointer; box-shadow: 3px 3px 0 #000; }
.bet-opt b { color: #ffd56b; font-weight: 400; }
.bet-opt.on { background: #3a2410; box-shadow: inset 0 0 0 2px #ff9d4d, 3px 3px 0 #000; }
.bet-opt:disabled { opacity: 0.6; cursor: default; }
.bet-rule { flex-basis: 100%; font: 14px var(--mono); color: var(--muted); }
/* v22 · live spelling correction */
.spell { margin: 6px 0 0; font: 16px var(--mono); color: var(--muted); }
.spell.hidden { display: none; }
.spell-fix { padding: 2px 8px; border: 2px solid #000; background: #ffd56b; color: #140a02; font: 16px var(--mono); cursor: pointer; box-shadow: 2px 2px 0 #000; }
.spell.fixed { color: #7df0c4; }
.spell.fixed b { color: #ffd56b; font-weight: 400; }

/* v23 · low oxygen + black hole */
#flight::after { content: ""; position: fixed; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity 0.6s;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(255, 30, 60, 0.28) 85%, rgba(120, 0, 20, 0.55) 100%); }
#flight.o2-low::after { animation: o2breath 2.2s ease-in-out infinite; }
#flight.o2-crit::after { animation: o2breath 0.75s ease-in-out infinite; }
@keyframes o2breath { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.7; } }
#flight.o2-low .q-panel { animation: o2edge 2.2s ease-in-out infinite; }
#flight.o2-crit .q-panel { animation: o2edge 0.75s ease-in-out infinite; }
@keyframes o2edge { 0%, 100% { box-shadow: inset 0 0 0 3px #000, 4px 4px 0 #000, 0 0 0 2px rgba(255, 84, 104, 0.25); } 50% { box-shadow: inset 0 0 0 3px #000, 4px 4px 0 #000, 0 0 0 3px #ff5468, 0 0 26px rgba(255, 84, 104, 0.6); } }
#flight.o2-low .fuel-label, #flight.o2-crit .fuel-label { color: #ff8fa0 !important; }
#flight.o2-crit .fuel-label { animation: blink 0.5s steps(2) infinite; }
#flight.o2-crit .q-panel .fuel-bar { background: repeating-linear-gradient(90deg, #ff5468 0 6px, #b3263a 6px 8px) !important; }
.bh-fx { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle at center, rgba(0,0,0,0.85) 0 8%, rgba(4,5,11,0.55) 40%, transparent 75%); animation: bhIn 0.4s ease both; }
.bh-fx.gone { animation: bhOut 0.7s ease forwards; }
.bh-disk { position: absolute; width: min(70vw, 420px); aspect-ratio: 1; border-radius: 50% !important; transform: rotateX(68deg);
  background: conic-gradient(from 0deg, #ff7a1a, #ffd56b, #ff3df0, #8b5cff, #ff7a1a); -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%, #000 62%, transparent 70%); mask: radial-gradient(circle, transparent 38%, #000 40%, #000 62%, transparent 70%);
  animation: bhSpin 1.1s linear infinite; filter: blur(1px) drop-shadow(0 0 24px #ff7a1a); }
.bh-core { position: absolute; width: min(22vw, 130px); aspect-ratio: 1; border-radius: 50% !important; background: #000; box-shadow: 0 0 0 3px rgba(255, 213, 107, 0.6), 0 0 60px 20px #000; animation: bhPulse 1.5s ease-in both; }
.bh-text { position: absolute; top: calc(50% + min(18vw, 120px)); margin: 0; font: 13px var(--display); letter-spacing: 0.15em; color: #ff5468; text-shadow: 3px 3px 0 #000; animation: blink 0.5s steps(2) 3; }
@keyframes bhSpin { to { transform: rotateX(68deg) rotate(360deg); } }
@keyframes bhPulse { from { transform: scale(0.2); } to { transform: scale(1.15); } }
@keyframes bhIn { from { opacity: 0; } }
@keyframes bhOut { to { opacity: 0; } }
.q-panel.sucked { animation: suckIn 1.3s cubic-bezier(.55, 0, .9, .4) forwards !important; pointer-events: none; }
@keyframes suckIn { 0% { scale: 1; rotate: 0deg; opacity: 1; filter: none; } 60% { opacity: 0.9; filter: blur(1px) hue-rotate(40deg); } 100% { scale: 0.02; rotate: 540deg; opacity: 0; filter: blur(4px); } }
@media (prefers-reduced-motion: reduce) { #flight.o2-low::after, #flight.o2-crit::after, #flight.o2-low .q-panel, #flight.o2-crit .q-panel, .bh-disk { animation: none; } }

/* v24 · one All-in toggle */
.bet-opt.allin { display: inline-flex; align-items: center; gap: 6px; }
.bet-opt.allin .ic { width: 14px; height: 14px; color: #ff9d4d; }
.bet-opt.allin.on { background: #3a1410; box-shadow: inset 0 0 0 2px #ff5468, 3px 3px 0 #000; }
.q-photo.zoomer.wide .zoom-frame img { max-height: 210px; }
/* v25 · real photos: whole picture, sharp, letterboxed on black */
.q-photo { margin: 0; position: relative; background: #000; }
.q-photo.big { height: auto; }
.q-photo img, .q-photo.wide img { display: block; width: 100%; height: clamp(170px, 32vh, 280px); max-height: none; object-fit: contain; background: #000; image-rendering: auto; }
.zoomer .zoom-frame { height: clamp(170px, 32vh, 280px); background: #000; }
.zoomer .zoom-frame img, .q-photo.zoomer.wide .zoom-frame img { width: 100%; height: 100%; max-height: none; object-fit: contain; image-rendering: auto; }
.q-panel[data-type="pin"] .q-photo img, .q-panel[data-type="pin"] .zoomer .zoom-frame { height: clamp(140px, 24vh, 220px); }
.q-panel[data-type="pin"] .zoomer .zoom-frame img { height: 100%; }
.rec-pic img { image-rendering: auto; }

/* v26 · flight log percentile */
.result-beat { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 0; font: 18px var(--mono); color: #7df0c4; letter-spacing: 0.04em; }
.result-beat.hidden { display: none; }
.result-beat b { color: #ffd56b; font-weight: 400; }
.result-beat .ic { width: 16px; height: 16px; }

/* v27 · Battle Royale spectator answer */
.spec-answer { display: grid; gap: 4px; text-align: center; padding: 10px 6px 6px; }
.spec-answer small { font: 9px var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.spec-answer b { font: 22px var(--body); color: #7df0c4; }

/* v28 · Battle Royale rating leaderboard */
.br-board-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; }
.br-board-btn .ic { width: 16px; height: 16px; color: #ffd56b; }
.br-board { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; max-height: 52vh; overflow: auto; }
.br-board li { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 8px; background: #0b0d1f; border: 3px solid var(--px-edge); }
.br-board li.me { box-shadow: inset 0 0 0 2px var(--neon-c); }
.br-board li.empty { display: block; text-align: center; font: 16px var(--mono); color: var(--muted); }
.brb-n { font: 10px var(--display); color: var(--muted); text-align: center; }
.br-board li:nth-child(1) .brb-n { color: #ffd56b; }
.br-board li:nth-child(2) .brb-n { color: #e0e6ff; }
.br-board li:nth-child(3) .brb-n { color: #ff9d4d; }
.brb-name { display: flex; flex-direction: column; min-width: 0; font: 600 16px var(--body); overflow: hidden; text-overflow: ellipsis; }
.brb-name small { font: 13px var(--mono); color: var(--muted); }
.brb-r { font: 20px var(--mono); color: #7df0c4; font-weight: 400; }
.br-back { width: 100%; }

/* v29 · stage colours and light sweep: you can see yourself progressing */
#flight { --stage: #22e4ff; }
#flight .q-panel::before { background: repeating-linear-gradient(90deg, var(--stage) 0 8px, color-mix(in srgb, var(--stage) 45%, #000) 8px 16px) !important; transition: background 0.4s; }
#flight .q-panel { outline: 1px solid color-mix(in srgb, var(--stage) 55%, transparent); outline-offset: 2px; }
#flight .q-panel .type-badge { box-shadow: inset 0 0 0 2px var(--stage) !important; }
#flight .q-panel .q-count { color: var(--stage); text-shadow: 0 0 14px color-mix(in srgb, var(--stage) 60%, transparent); }
#flight .seq.current { box-shadow: 0 0 0 2px var(--stage), 0 0 16px var(--stage) !important; color: var(--stage); }
.q-panel.stage-in::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--stage) 35%, transparent) 48%, rgba(255,255,255,0.18) 50%, transparent 62%);
  background-size: 250% 100%; animation: stageSweep 0.9s ease-out 0.15s both; }
@keyframes stageSweep { from { background-position: 120% 0; opacity: 1; } to { background-position: -40% 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .q-panel.stage-in::after { animation: none; display: none; } }

/* v30 · auto clues + 4-choice fallback */
.fuel { position: relative; }
.fuel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent calc(33.3% - 1px), rgba(255,255,255,0.75) calc(33.3% - 1px) 33.3%, transparent 33.3% calc(66.6% - 1px), rgba(255,255,255,0.75) calc(66.6% - 1px) 66.6%, transparent 66.6%); }
.hint-row.clue-pop .hint-text p:last-of-type { animation: cluePop 0.6s ease; }
@keyframes cluePop { 0% { transform: translateY(6px); opacity: 0; background: rgba(255,213,107,0.4); } 100% { transform: none; opacity: 1; background: transparent; } }
.hint-btn small { color: #9ad7ff !important; }
.mc-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 10px; border: 3px solid #000; background: #14315a; color: #e8f6ff; font: 15px var(--mono); cursor: pointer; box-shadow: 3px 3px 0 #000; }
.mc-btn .ic { width: 14px; height: 14px; }
.mc-btn small { color: #ffd56b; }
.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.decode-row.hidden { display: none; }

/* v31 · choose your journey + level picker */
.welcome-card.choosing > :not(.journey):not(.welcome-logo) { display: none !important; }
.journey { margin-top: 14px; display: grid; gap: 10px; text-align: left; }
.journey.hidden { display: none; }
.journey h2 { margin: 0; text-align: center; font: 14px/1.6 var(--display); }
.journey .welcome-sub { text-align: center; margin: 0 0 4px; }
.journey-card { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px; border: 3px solid #000; background: #10132e; color: var(--text); text-align: left; cursor: pointer; box-shadow: 4px 4px 0 #000; }
.journey-card:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.jc-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid #000; }
.jc-ic .ic { width: 26px; height: 26px; }
.jc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.jc-body b { font: 12px var(--display); letter-spacing: 0.06em; }
.jc-body small { font: 15px var(--mono); color: var(--muted); }
.jc-body i { font: 14px var(--mono); font-style: normal; color: #9ad7ff; }
.lvl-1 .jc-ic { background: #0b3446; color: #22e4ff; } .lvl-1 .jc-body b { color: #22e4ff; }
.lvl-2 .jc-ic { background: #2a1450; color: #b88cff; } .lvl-2 .jc-body b { color: #b88cff; }
.lvl-3 .jc-ic { background: #3a0d16; color: #ff5468; } .lvl-3 .jc-body b { color: #ff5468; }
.journey-note { margin: 2px 0 0; text-align: center; font: 15px var(--mono); color: #ffd56b; }
.level-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; }
.level-pick small { flex-basis: 100%; text-align: center; font: 14px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lvl-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 3px solid #000; background: #14173a; color: var(--muted); font: 15px var(--mono); cursor: pointer; box-shadow: 3px 3px 0 #000; }
.lvl-chip .ic { width: 14px; height: 14px; }
.lvl-chip.on.lvl-1 { color: #22e4ff; box-shadow: inset 0 0 0 2px #22e4ff, 3px 3px 0 #000; }
.lvl-chip.on.lvl-2 { color: #b88cff; box-shadow: inset 0 0 0 2px #b88cff, 3px 3px 0 #000; }
.lvl-chip.on.lvl-3 { color: #ff5468; box-shadow: inset 0 0 0 2px #ff5468, 3px 3px 0 #000; }

/* v32 · timer marks match the number of clues */
.fuel[data-clues="0"]::after { display: none; }
.fuel[data-clues="1"]::after { background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,0.75) calc(50% - 1px) 50%, transparent 50%); }

/* v33 · half plates, continent tag */
.q-photo canvas.half-plate { display: block; width: 100%; height: clamp(170px, 32vh, 280px); object-fit: contain; background: #000; image-rendering: auto; }
.half-tag { position: absolute; top: 8px; left: 8px; padding: 3px 7px; border: 2px solid #000; background: #ffd56b; color: #000; font: 13px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.q-continent { margin: 8px 0 0; text-align: center; font: 16px var(--mono); color: var(--muted); }
.q-continent b { color: #22e4ff; font-weight: normal; }

/* v34 · polish: how-to, results stamps, answer photo, scanning shimmer */
.howto { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(4, 5, 11, 0.82); animation: bhIn 0.25s ease both; }
.howto-card { width: min(100%, 460px); max-height: calc(100vh - 32px); overflow: auto; padding: 20px; border: 3px solid #000; background: #10132e; box-shadow: 6px 6px 0 #000; }
.howto-card h2 { margin: 0 0 12px; text-align: center; font: 15px/1.6 var(--display); color: #22e4ff; }
.howto-card ol { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.howto-card li { display: flex; gap: 12px; align-items: center; font: 16px/1.35 var(--mono); color: var(--muted); }
.howto-card li b { color: var(--text); font-weight: normal; }
.ht-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 3px solid #000; background: #14173a; color: #ffd56b; }
.ht-ic .ic, .ht-ic svg { width: 22px; height: 22px; }
.howto-card .cta { width: 100%; }
#result-list.stamping .rec { animation: recStamp 0.45s cubic-bezier(.2,1.4,.4,1) both; animation-delay: calc(0.35s + var(--i, 0) * 0.16s); }
@keyframes recStamp { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
#result-list.stamping .rec-tier { animation: tierStamp 0.4s ease-out both; animation-delay: calc(0.55s + var(--i, 0) * 0.16s); }
@keyframes tierStamp { 0% { transform: scale(2.2) rotate(-8deg); opacity: 0; } 70% { transform: scale(0.92); opacity: 1; } 100% { transform: none; } }
.new-best { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 3px 8px; border: 2px solid #000; background: #ffd56b; color: #000; font: 13px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; animation: tierStamp 0.5s ease-out 1.4s both; }
.new-best .ic { width: 14px; height: 14px; }
.v-photo { margin: 10px 0 0; border: 3px solid #000; background: #000; }
.v-photo img { display: block; width: 100%; max-height: 180px; object-fit: contain; image-rendering: auto; }
.ph-wait.scanning { position: relative; overflow: hidden; display: grid; place-items: center; min-height: clamp(170px, 32vh, 280px); background: #05060f; color: #22e4ff; font: 14px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; }
.ph-wait.scanning::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(34, 228, 255, 0.14) 50%, transparent 70%); animation: scanSweep 1.2s linear infinite; }
.ph-wait.scanning::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: rgba(34, 228, 255, 0.6); box-shadow: 0 0 12px #22e4ff; animation: scanLine 1.6s ease-in-out infinite alternate; }
@keyframes scanSweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes scanLine { from { top: 8%; } to { top: 92%; } }
@media (prefers-reduced-motion: reduce) { #result-list.stamping .rec, #result-list.stamping .rec-tier, .new-best, .ph-wait.scanning::before, .ph-wait.scanning::after { animation: none; } }
