:root {
  --bg: #f4f1ea; --card: #ffffff; --ink: #14212b; --muted: #5f6b74; --line: #ddd6ca;
  --accent: #0f6b6b; --amber: #e3922f; --flap: #fbfbf8; --flap-hi: #ffffff; --digit: #15171a; --board-bg: #c9ccd0;
  --good: #1f8a4c; --bad: #b33a2e;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --board: "Oswald", "DIN Condensed", "Arial Narrow", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1418; --card: #172026; --ink: #e8eef1; --muted: #9aa7ae; --line: #26323a;
          --accent: #3fb0a8; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #0d1014; color: var(--ink); font-family: var(--body); }
.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 40px; display: grid; gap: 18px; }
.top { display: flex; align-items: center; gap: 18px; color: #ffffff; padding: 18px 4px 8px; flex-wrap: wrap; }
.logo { width: clamp(64px, 16vw, 92px); height: auto; aspect-ratio: 1; flex: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.2)); }
h1 { font-family: var(--display); font-size: clamp(44px, 11vw, 64px); font-weight: 800; margin: 0; color: #ffffff; letter-spacing: -.02em; line-height: 1; }
.tag { margin: 6px 0 0; color: #c9ced4; font-size: clamp(15px, 3.6vw, 18px); font-weight: 600; }
.round { margin-left: auto; align-self: flex-start; padding-top: 8px; font-weight: 700; color: #aab2bb; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.stage, .final { background: var(--card); border: 1px solid #2a3038; box-shadow: 0 18px 40px rgba(0,0,0,.45); border-radius: 16px; padding: 28px 26px; display: grid; gap: 22px; }
.ask + .prompt { margin-top: -12px; }
.ask[hidden] + .prompt { margin-top: 0; }   /* no label above: no pull-up into the dots */
.ask { margin: 0; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.prompt { font-family: var(--display); font-size: clamp(24px, 5.2vw, 30px); line-height: 1.2; margin: 0; text-wrap: wrap; }

/* Split-flap board */
.board { display: flex; gap: 6px; justify-content: center; padding: 14px; background: var(--board-bg); border-radius: 12px; box-shadow: inset 0 2px 8px rgba(0,0,0,.18); }
.flap { position: relative; width: 64px; height: 92px; border-radius: 6px; background: var(--flap); box-shadow: 0 1px 0 #fff inset, 0 2px 4px rgba(0,0,0,.18); overflow: hidden;
        font-family: var(--board); font-size: 72px; line-height: 92px; color: var(--digit); text-align: center; }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #9aa0a6; transform: translateY(-1px); z-index: 3; }
/* The digit is the flap's own text; the top leaf is a shaded panel that falls on each tick. */
.flap .f-top { position: absolute; left: 0; right: 0; top: 0; height: 50%; z-index: 2; border-radius: 6px 6px 0 0;
               background: linear-gradient(rgba(0,0,0,.03), rgba(0,0,0,0)); transform-origin: bottom; opacity: 0; }
.flap .f-bot { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; z-index: 1; border-radius: 0 0 6px 6px;
               background: linear-gradient(rgba(0,0,0,.06), rgba(0,0,0,0)); pointer-events: none; }
.board.big .flap { width: 76px; height: 110px; font-size: 86px; line-height: 110px; }
.board.zero .flap { color: #157a3e; }
.board.miss .flap { color: #b0281c; }
.verdict { margin: 0; text-align: center; font-weight: 700; min-height: 1.4em; }

/* Answer input + suggestions */
form { display: flex; gap: 8px; flex-wrap: nowrap; align-items: stretch; }
.field { position: relative; flex: 1 1 auto; min-width: 0; }
#guess { width: 100%; font: 600 18px var(--body); padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
#guess:focus { outline: none; border-color: var(--accent); }
.suggest { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
           background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.15); }
.suggest li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--bg); }
.btn { font: 700 16px var(--body); border: 0; border-radius: 12px; padding: 13px 18px; cursor: pointer; background: var(--accent); color: #fff; }
.btn:disabled { opacity: .4; cursor: default; }

/* Answer reveal */
.after { display: grid; gap: 14px; }
.answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.answers li { display: grid; grid-template-columns: minmax(0,1fr) 70px 3ch; gap: 10px; align-items: center; font-size: 15px; }
.answers .bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.answers .bar i { display: block; height: 100%; background: var(--amber); }
.answers .n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.answers li { padding: 4px 10px; border-radius: 10px; }
.answers li.you { background: #fff3c4; box-shadow: inset 4px 0 0 #e8b400; font-weight: 800; color: var(--ink);
                  padding-block: 9px; margin-block: 2px; }
.answers li.you .bar i { background: #d42b2b; }
.answers li.you .n { color: var(--ink); font-size: 17px; }
.answers li.low .n { color: var(--good); }
.note { color: var(--muted); font-size: 14px; margin: 0; }
.foot { color: #9aa3ad; font-size: 14px; margin: 0; }


[hidden] { display: none !important; }

/* Answer clock: big and colored so it's seen the moment it starts. Green, then orange, then red. */
.timer { --clk: #4ade80; display: flex; align-items: center; gap: 12px; animation: clockin .45s ease-out; }
@keyframes clockin { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.clock { font: 600 32px var(--board); min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; color: var(--clk); transition: color .3s; }
.clocktrack { flex: 1; height: 14px; border-radius: 7px; background: #e6e9ec; overflow: hidden; }
.clocktrack i { display: block; height: 100%; width: 100%; background: var(--clk); border-radius: 7px; transition: width .1s linear, background-color .3s; }
.timer.mid { --clk: #f59e0b; }
.timer.low { --clk: #ef4444; }

/* The falling leaf: the old number's top half, hinged at the middle. */
.flap .leaf { position: absolute; left: 0; right: 0; top: 0; height: 50%; overflow: hidden; z-index: 2;
              background: var(--flap); color: var(--digit); line-height: inherit; text-align: center;
              border-radius: 6px 6px 0 0; transform-origin: 50% 100%; 
              animation: leaf-fall var(--fall, 70ms) cubic-bezier(.55,0,.85,.35) forwards; }
.board.big .flap .leaf { line-height: 110px; }
@keyframes leaf-fall { from { transform: scaleY(1); filter: brightness(1); } to { transform: scaleY(0); filter: brightness(.8); } }

/* Did you mean */
.dym { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dym p { margin: 0; font-weight: 700; flex-basis: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }

/* Collapsed middle of a long answer list */
.answers li.gap { display: block; text-align: center; padding: 0; color: var(--muted); letter-spacing: .3em; line-height: 1; }
.linkish { background: none; border: 0; color: var(--accent); font: 700 14px var(--body); cursor: pointer; text-decoration: underline; padding: 6px; }

/* Next button: right under the score, and pinned to the bottom of the screen while you scroll the list */
.btn.next { position: sticky; bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 5; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
#more { text-align: center; }

#go { flex: none; white-space: nowrap; }
@media (max-width: 420px) { #go { padding-inline: 14px; } }

.linkish.inline { padding: 0 2px; font-size: 13px; }
.answers li .n { min-width: 2ch; }

.nextup { margin: 0; font-size: 15px; color: var(--ink); }
/* End-screen row: practice on the left, tomorrow in the middle, share in the thumb's corner. */
.actions { display: flex; gap: 8px; }
.actions .btn { flex: 1 1 0; min-width: 0; padding: 13px 8px; font-size: 15px; line-height: 1.2; }
.actions #share { order: 3; }
.btn.share { background: #1f9d55; color: #fff; }
.linkish { justify-self: start; background: none; border: 0; padding: 0; font: 600 14px var(--body); color: var(--muted); text-decoration: underline; cursor: pointer; }

/* Sub-Zero switch: deliberately small. */
.subzero-switch { margin-left: auto; align-self: last baseline; font-size: 13px; font-weight: 600; color: #8a939d; white-space: nowrap; cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 4px; }
.subzero-switch input { width: 12px; height: 12px; margin: 0; accent-color: #ffcf2e; cursor: pointer; }
.subzero-switch:has(input:disabled) { opacity: .45; cursor: default; }
.subzero-switch:has(input:checked) { color: #ffcf2e; }
.actions small { display: block; font-weight: 600; font-size: 12px; opacity: .7; }

/* Phone keyboard open: keep the question, clock, answer box and suggestions above it.
   The board only matters after an answer, when the keyboard is already down. */
body.kb .top, body.kb .foot, body.kb #stage .ask, body.kb #stage .board { display: none; }
body.kb .wrap { padding-top: 8px; gap: 10px; }
body.kb .stage { padding: 18px 18px; gap: 14px; }

/* The answer, shown under the board while it counts down. */
.verdict.said { font-family: var(--display); font-size: clamp(22px, 4.6vw, 26px); line-height: 1.2; }


/* Progress: five steps across the top of the question card. */
.steps { list-style: none; margin: 0 0 -6px; padding: 0; display: flex; gap: 10px; justify-content: center; }
.steps li { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--body); }
.steps li.next { background: #eef0f2; color: #9aa3ad; }
.steps li.now { background: #14212b; color: #fff; box-shadow: 0 0 0 3px #ffcf2e; }
.steps li.done { background: #f6f3ec; font-size: 22px; }
body.kb .steps li { width: 28px; height: 28px; font-size: 13px; }
body.kb .steps li.done { font-size: 16px; }

/* The puzzle and question label sits at the top of the card, not in the header. */
.stage .round, .final .round { margin: 0 0 -8px; text-align: center; color: var(--muted); font: 700 13px var(--body); letter-spacing: .08em; text-transform: uppercase; }
.top { padding-bottom: 0; }
.top > div:not(.round) { flex: 1; min-width: 0; }


/* Switching games: the card flips away and the other game flips in. */
.wrap { perspective: 1400px; }
.flip-out { animation: flipout .4s ease-in forwards; }
.flip-in { animation: flipin .55s ease-out; }
@keyframes flipout { to { transform: rotateY(90deg) scale(.96); opacity: .4; } }
@keyframes flipin { from { transform: rotateY(-90deg) scale(.96); opacity: .4; } to { transform: none; opacity: 1; } }
body.subzero .flip-in { animation: flipin .55s ease-out, frost 1.4s ease-out; }
@keyframes frost { from { box-shadow: 0 0 0 6px #bfe9ff, 0 0 60px 20px rgba(140, 210, 255, .55); } }

/* Sub-Zero: the same game, visibly colder. */
body.subzero .stage, body.subzero .final { border-color: #8fd6ff; box-shadow: 0 0 0 2px #8fd6ff, 0 18px 40px rgba(0,0,0,.45), 0 0 40px rgba(120, 200, 255, .25); }
body.subzero .stage .round, body.subzero .final .round { color: #2b8fd6; }
body.subzero .steps li.now { box-shadow: 0 0 0 3px #8fd6ff; background: #0f3554; }
body.subzero .board { background: #cfe7f5; }
body.subzero .subzero-switch { color: #8fd6ff; }
@media (prefers-reduced-motion: reduce) { .flip-out, .flip-in { animation: none; } }
body.subzero .subzero-switch input { accent-color: #8fd6ff; }
.ask.center { text-align: center; }

/* The Sub-Zero switch is a little ice cube: clear ice when off, glowing blue with sparkles when on. */
.subzero-switch { gap: 2px; font-size: 14px; margin-right: -4px; align-items: flex-end; line-height: 1; }   /* the header has 4px side padding; this lines up with the card edge */
.subzero-switch input {
  appearance: none; -webkit-appearance: none; width: 32px; height: 32px; margin: 0; flex: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cg%20stroke%3D%22rgba%28255%2C255%2C255%2C.9%29%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%203.8%2028.2%2010.2%2016%2016.6%203.8%2010.2Z%22%20fill%3D%22%23dff3fd%22/%3E%3Cpath%20d%3D%22M3.8%2010.2%2016%2016.6%2016%2028.6%203.8%2022.2Z%22%20fill%3D%22%239bd1f2%22/%3E%3Cpath%20d%3D%22M28.2%2010.2%2016%2016.6%2016%2028.6%2028.2%2022.2Z%22%20fill%3D%22%2362aee0%22/%3E%3C/g%3E%3Cpath%20d%3D%22M10.5%2015.2%2014.5%2017.4%2014.5%2022.6%2010.5%2020.4Z%22%20fill%3D%22%23ffffff%22%20opacity%3D%22.55%22/%3E%3Cpath%20d%3D%22M18%2017.4%2023.2%2014.7%2023.2%2019.6%2018%2022.3Z%22%20fill%3D%22%23ffffff%22%20opacity%3D%22.35%22/%3E%3Cpath%20d%3D%22M16%2017.6%2016%2027%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20opacity%3D%22.95%22/%3E%3Cpath%20d%3D%22M12.4%206.9%2016%205.1%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20opacity%3D%22.9%22/%3E%3Ccircle%20cx%3D%228.2%22%20cy%3D%2219%22%20r%3D%221%22%20fill%3D%22%23fff%22%20opacity%3D%22.75%22/%3E%3Ccircle%20cx%3D%2224.6%22%20cy%3D%2221.6%22%20r%3D%22.8%22%20fill%3D%22%23fff%22%20opacity%3D%22.65%22/%3E%3C/svg%3E") center / contain no-repeat; border: 0;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); transition: transform .15s, filter .25s;
}
.subzero-switch input:checked {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cg%20stroke%3D%22rgba%28255%2C255%2C255%2C.9%29%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%203.8%2028.2%2010.2%2016%2016.6%203.8%2010.2Z%22%20fill%3D%22%23eefbff%22/%3E%3Cpath%20d%3D%22M3.8%2010.2%2016%2016.6%2016%2028.6%203.8%2022.2Z%22%20fill%3D%22%236cc8f7%22/%3E%3Cpath%20d%3D%22M28.2%2010.2%2016%2016.6%2016%2028.6%2028.2%2022.2Z%22%20fill%3D%22%231f93dd%22/%3E%3C/g%3E%3Cpath%20d%3D%22M10.5%2015.2%2014.5%2017.4%2014.5%2022.6%2010.5%2020.4Z%22%20fill%3D%22%23ffffff%22%20opacity%3D%22.55%22/%3E%3Cpath%20d%3D%22M18%2017.4%2023.2%2014.7%2023.2%2019.6%2018%2022.3Z%22%20fill%3D%22%23ffffff%22%20opacity%3D%22.35%22/%3E%3Cpath%20d%3D%22M16%2017.6%2016%2027%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20opacity%3D%22.95%22/%3E%3Cpath%20d%3D%22M12.4%206.9%2016%205.1%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20opacity%3D%22.9%22/%3E%3Ccircle%20cx%3D%228.2%22%20cy%3D%2219%22%20r%3D%221%22%20fill%3D%22%23fff%22%20opacity%3D%22.75%22/%3E%3Ccircle%20cx%3D%2224.6%22%20cy%3D%2221.6%22%20r%3D%22.8%22%20fill%3D%22%23fff%22%20opacity%3D%22.65%22/%3E%3Cpath%20d%3D%22M16%2017.4L16.00%2013.00%20M16.00%2014.76L16.96%2013.61%20M16.00%2014.76L15.04%2013.61%20M16%2017.4L12.19%2015.20%20M13.71%2016.08L13.20%2014.67%20M13.71%2016.08L12.24%2016.34%20M16%2017.4L12.19%2019.60%20M13.71%2018.72L12.24%2018.46%20M13.71%2018.72L13.20%2020.13%20M16%2017.4L16.00%2021.80%20M16.00%2020.04L15.04%2021.19%20M16.00%2020.04L16.96%2021.19%20M16%2017.4L19.81%2019.60%20M18.29%2018.72L18.80%2020.13%20M18.29%2018.72L19.76%2018.46%20M16%2017.4L19.81%2015.20%20M18.29%2016.08L19.76%2016.34%20M18.29%2016.08L18.80%2014.67%22%20stroke%3D%22%231d4f7a%22%20stroke-width%3D%221.1%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22%20opacity%3D%22.8%22/%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2217.4%22%20r%3D%22.9%22%20fill%3D%22%231d4f7a%22%20opacity%3D%22.8%22/%3E%3Cpath%20d%3D%22M27.5%202.2v4.2M25.4%204.3h4.2%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.3%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M4%2025.6v3M2.5%2027.1h3%22%20stroke%3D%22%23e6f7ff%22%20stroke-width%3D%221.1%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 6px rgba(143,214,255,.9)) drop-shadow(0 2px 3px rgba(0,0,0,.35));
}

.btn.start { justify-self: center; min-width: 180px; background: #1f9d55; }
body.subzero .btn.start { background: #1f93dd; }

/* Map questions: a globe with one country lit. */
.map { width: min(100%, 320px); justify-self: center; display: block; }
.map .sea { fill: #dcecf8; stroke: #b9cfe0; stroke-width: 1; }
.map .land { fill: #c9cfd6; stroke: #ffffff; stroke-width: .5; }
.map .lit { fill: #d42b2b; stroke: #ffffff; stroke-width: .8; }
.map .middle { fill: #9aa3ad; stroke: #ffffff; stroke-width: .6; }
body.kb .map { max-height: 34vh; }

/* Map question on a phone: map, board and question shrink so the answer box stays on screen. */
@media (max-width: 560px) {
  body.mapq .stage { gap: 12px; padding: 20px 18px; }
  body.mapq .prompt { font-size: 21px; }
  body.mapq .steps { margin-bottom: 2px; }
  body.mapq .steps li { width: 30px; height: 30px; font-size: 13px; }
  body.mapq .verdict:empty { display: none; }
  body.mapq .steps li.done { font-size: 17px; }
  body.mapq .map { width: auto; max-width: 100%; height: min(21vh, 176px); }
  body.mapq .board { padding: 8px; }
  body.mapq .board .flap { width: 40px; height: 56px; font-size: 44px; line-height: 56px; }
  body.mapq .board .flap .leaf { line-height: 56px; }
}

/* Phones: vertical space is short, and every control must stay on screen. */
@media (max-width: 560px) {
  .wrap { padding: 6px 12px 24px; gap: 12px; }
  .top { padding: 2px 2px 0; gap: 12px; }
  .logo { width: 54px; }
  h1 { font-size: 38px; }
  .tag { font-size: 14px; line-height: 1.25; margin-top: 2px; }
  .stage, .final { padding: 16px 16px 18px; gap: 14px; }
  .stage .round, .final .round { margin-bottom: -4px; }
  .steps li { width: 32px; height: 32px; }
  .steps li.done { font-size: 18px; }
  .prompt { font-size: 23px; }
  .board { padding: 10px; }
  .flap { width: 54px; height: 76px; font-size: 60px; line-height: 76px; }
  .flap .leaf { line-height: 76px; }
  .final .board.big { padding: 10px; }
  .final .board.big .flap { width: 56px; height: 78px; font-size: 60px; line-height: 78px; }
  .final .board.big .flap .leaf { line-height: 78px; }
  .answers { gap: 2px; }
  .answers li { padding: 3px 8px; font-size: 14px; }
  .note, .nextup { font-size: 13px; line-height: 1.35; }
  .actions .btn { padding: 9px 6px; font-size: 14px; line-height: 1.15; }
  .actions small { font-size: 11px; }
  .foot { font-size: 13px; }
  .verdict:empty { display: none; }   /* the answer line takes no room until there is an answer */
  .steps { margin-bottom: 2px; }   /* the dots never touch the question */
}

/* Short screens (small phones, or Safari's bars showing): tighter still, by height. */
@media (max-width: 560px) and (max-height: 620px) {
  .top { gap: 10px; }
  .logo { width: 42px; }
  h1 { font-size: 30px; }
  .tag { font-size: 13px; }
  .stage, .final { padding: 12px 14px 14px; gap: 10px; }
  .prompt { font-size: 21px; }
  .flap { width: 46px; height: 64px; font-size: 50px; line-height: 64px; }
  .flap .leaf { line-height: 64px; }
  .final .board.big .flap { width: 46px; height: 64px; font-size: 50px; line-height: 64px; }
  .final .board.big .flap .leaf { line-height: 64px; }
  .answers li { padding: 2px 8px; }
  .foot .foot-text { display: none; }   /* short screens: the Sub-Zero switch stays */
  body.mapq .map { height: min(17vh, 176px); }
  .final { gap: 8px; }
}

/* The key to the score marks: one quiet line. */
.key { margin: 0; text-align: center; color: var(--muted); font-size: 13px; white-space: nowrap; letter-spacing: -.01em; }
@media (max-width: 380px) { .key { font-size: 11.5px; letter-spacing: -.02em; } }

/* Rewards: the board pops and glows in the mark's color; a word is stamped over it. */
.board { position: relative; }
.board.cheer-zero { animation: cheer-zero 1.1s ease-out; }
.board.cheer-near { animation: cheer-near 1s ease-out; }
.board.cheer-gold { animation: cheer-gold .9s ease-out; }
.board.cheer-red { animation: cheer-red .7s ease-out; }
.board.cheer-blue { animation: cheer-blue .6s ease-out; }
@keyframes cheer-zero { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,207,46,.9); } 18% { transform: scale(1.09); } 40% { transform: scale(.98); } 60% { transform: scale(1.03); box-shadow: 0 0 0 16px rgba(255,207,46,0); } 100% { transform: scale(1); } }
@keyframes cheer-gold { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,207,46,.8); } 25% { transform: scale(1.05); } 100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(255,207,46,0); } }
@keyframes cheer-red { 0% { box-shadow: 0 0 0 0 rgba(212,43,43,.55); } 100% { box-shadow: 0 0 0 10px rgba(212,43,43,0); } }
@keyframes cheer-blue { 0% { box-shadow: 0 0 0 0 rgba(31,79,163,.45); } 100% { box-shadow: 0 0 0 8px rgba(31,79,163,0); } }
.stamp { position: absolute; left: 50%; top: 50%; z-index: 6; pointer-events: none; white-space: nowrap;
  font: 800 clamp(20px, 6.4vw, 30px) var(--display); letter-spacing: .02em; padding: 6px 16px; border-radius: 10px; max-width: 94%;
  transform: translate(-50%, -50%) rotate(-6deg); animation: stamp 1.6s cubic-bezier(.2,1.4,.4,1) forwards; }
.stamp.zero { background: #ffcf2e; color: #14212b; box-shadow: 0 0 0 3px #d42b2b, 0 0 0 6px #1f4fa3, 0 8px 24px rgba(0,0,0,.35); }
.stamp.zero { font-size: clamp(26px, 8.4vw, 40px); animation: slam 1.9s cubic-bezier(.2,1.6,.35,1) forwards; }
.stamp.near { background: #ffcf2e; color: #14212b; box-shadow: 0 0 0 3px #ff8a00, 0 8px 24px rgba(0,0,0,.35); animation: slam 1.7s cubic-bezier(.2,1.5,.35,1) forwards; }
.stamp.nice { background: #fff; color: #b0281c; font-size: 20px; padding: 4px 12px; box-shadow: 0 4px 12px rgba(0,0,0,.2); animation: stamp 1.2s cubic-bezier(.2,1.4,.4,1) forwards; }
.stamp.gold { background: #fff3c4; color: #8a6400; font-size: 24px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(2.2); } 18% { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
  75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(1.05); } }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }

/* Friends */
.friendline { margin: 0; text-align: center; font-weight: 700; font-size: 15px; color: var(--ink); }
.namerow { display: grid; gap: 6px; }
.namerow label { font-size: 13px; color: var(--muted); }
.namerow small { font-size: 12px; }
.namerow input { font: 600 16px var(--body); padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fbfaf7; color: var(--ink); }
.friends { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.friends h3 { margin: 0; font: 700 13px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.friend .who { margin: 0; font-weight: 800; }
.friend .said { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink); }

/* Answering by voice */
.choose { display: grid; gap: 10px; }
.choicebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choicebtns .btn { padding: 16px 10px; font-size: 18px; }
#by-voice { background: #1f9d55; }
.choose .note { text-align: center; }
.answerby { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.btn.mic { flex: none; padding: 0 14px; font-size: 20px; background: #eef0f2; color: var(--ink); }
.btn.mic.listening { background: #d42b2b; color: #fff; animation: listening 1s ease-in-out infinite; }
@keyframes listening { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,43,43,.5); } 50% { box-shadow: 0 0 0 6px rgba(212,43,43,0); } }

/* Under each answered mark, the score range it stands for. */
.steps li { position: relative; }
.steps li.done::after { content: attr(data-range); position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  font: 700 10px/1 var(--body); color: var(--muted); white-space: nowrap; letter-spacing: 0; }
.steps.ranged { margin-bottom: 12px; }

/* Limbo and Lowrider: the bar, the posts and whoever goes under, played over the board.
   The scene is taller than the board and sits on its bottom edge, in real pixels. */
.limbo-stage { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 4; pointer-events: none; border-radius: 12px;
  background: linear-gradient(#ffffffee, #ffffffee); animation: limbo-life 3.6s ease forwards; overflow: hidden; }
.limbo-stage.drive { animation-duration: 4.8s; }
.limbo-stage.drive.hydraulics { animation-duration: 7.4s; }   /* the lowrider's whole routine, hops included */
.limbo-stage .post { position: absolute; bottom: 2px; width: 6px; height: 140px; border-radius: 3px; background: repeating-linear-gradient(#14212b 0 8px, #d42b2b 8px 12px); }
.limbo-stage .post.l { left: 14%; } .limbo-stage .post.r { right: 14%; }
.limbo-stage .bar { position: absolute; left: 12%; right: 12%; height: 6px; border-radius: 3px; background: #ffcf2e; box-shadow: 0 0 0 1.5px #b88a00;
  bottom: 136px; animation: bar-drop .6s cubic-bezier(.3,1.4,.5,1) forwards; }
.limbo-stage .mark { position: absolute; left: calc(14% - 46px); width: 40px; text-align: right; transform: translateY(50%); font: 800 11px/1 var(--body); color: #14212b; opacity: 0; animation: show .2s .5s forwards; }
.limbo-stage .animal { position: absolute; bottom: 2px; left: -20%; font-size: var(--size); line-height: 1; transform-origin: 50% 100%; white-space: nowrap;
  animation: go-under 2.4s .6s ease-in-out forwards; }
.limbo-stage .animal .fire { position: absolute; right: 78%; bottom: 10%; font-size: .75em; animation: flicker .18s ease-in-out infinite alternate; }
@keyframes flicker { from { transform: scale(.9) rotate(-6deg); opacity: .85; } to { transform: scale(1.12) rotate(5deg); opacity: 1; } }
@keyframes show { to { opacity: 1; } }
@keyframes bar-drop { to { bottom: var(--bar); } }
@keyframes bar-fall { to { transform: translateY(70px) rotate(24deg); opacity: 0; } }
@keyframes go-under { 0% { left: -20%; } 38% { transform: scaleY(1); } 50% { transform: scaleY(.9) rotate(-5deg); } 62% { transform: scaleY(1); } 100% { left: 105%; } }
.limbo-stage.knock .animal { animation: bump 1.6s .6s ease-in forwards; }
.limbo-stage.knock .bar { animation: bar-drop .6s cubic-bezier(.3,1.4,.5,1) forwards, bar-fall .8s 1.75s ease-in forwards; }
.limbo-stage.drive.knock .bar { animation: bar-drop .6s cubic-bezier(.3,1.4,.5,1) forwards, bar-fall .9s 2.25s ease-in forwards; }
@keyframes bump { 0% { left: -20%; } 70% { left: 18%; transform: rotate(0); } 78% { left: 15%; transform: rotate(-8deg); } 100% { left: 15%; transform: rotate(0); } }
@keyframes limbo-life { 0%, 88% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .limbo-stage { display: none; } }
body.limbo .btn.start { background: #e0a800; color: #14212b; }

/* Lowrider: vehicles drive in from the right (emoji cars face left). */
.limbo-stage.drive .animal { left: auto; right: -30%; animation: drive-under 3.6s .6s ease-in-out forwards; }
@keyframes drive-under { 0% { right: -30%; } 38% { transform: scaleY(1); } 50% { transform: scaleY(.92); } 62% { transform: scaleY(1); } 100% { right: 110%; } }
/* The lowrider: rolls in riding tall, drops its body on the hydraulics, shimmies under the
   bar riding low, then pops back up and hops out to the beat. */
.limbo-stage.hydraulics .animal { animation: lowrider 6.2s .6s linear forwards; line-height: 0; }
.limbo-stage .impala { display: block; overflow: visible; }
.limbo-stage .impala .lowbody { animation: drop 6.2s .6s linear forwards; }
@keyframes lowrider {
  0% { right: -45%; transform: translateY(0) rotate(0); }
  16% { right: 4%; }
  24% { transform: rotate(1.2deg); } 30% { transform: rotate(-1.2deg); } 36% { transform: rotate(1.2deg); }
  42% { transform: rotate(-1.2deg); } 48% { transform: rotate(1.2deg); } 54% { transform: rotate(0); }
  58% { right: 58%; transform: translateY(0); }
  62% { transform: translateY(-14px) rotate(-5deg); } 66% { transform: translateY(0) rotate(0); }
  70% { transform: translateY(-14px) rotate(5deg); } 74% { transform: translateY(0); }
  78% { transform: translateY(-14px) rotate(-5deg); } 82% { transform: translateY(0); }
  86% { transform: translateY(-12px) rotate(4deg); } 90% { transform: translateY(0); }
  100% { right: 120%; transform: translateY(0); } }
@keyframes drop { 0%, 16% { transform: translateY(0); } 21%, 56% { transform: translateY(14px); } 59% { transform: translateY(-4px); } 63%, 100% { transform: translateY(0); } }
.limbo-stage.drive.knock .animal { animation: crane-bump 2.2s .6s ease-in forwards; left: auto; }
@keyframes crane-bump { 0% { right: -40%; } 70% { right: 16%; transform: rotate(0); } 78% { right: 12%; transform: rotate(6deg); } 100% { right: 12%; transform: rotate(0); } }
.limbo-stage .animal .crane { display: block; font-size: .95em; line-height: .9; margin-left: .12em; }
.limbo-stage .animal .carrier { display: block; font-size: .7em; line-height: .9; }
body.lowrider .btn.start { background: #e0242f; color: #fff; }

/* Limbo: the day's animal, under the total. */
.daily { margin: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.daily .mark { font-size: 46px; line-height: 1; }
.daily span:last-child { display: grid; font-size: 15px; color: var(--muted); }
.daily b { font: 800 26px/1.1 var(--display); color: var(--ink); }
.daily small { font-size: 12px; }
@media (max-width: 560px) and (max-height: 620px) { .daily .mark { font-size: 36px; } .daily b { font-size: 22px; } }



/* The drawn fire ant, sized like an emoji wherever it stands in for 🐜. */
.fireant { display: inline-block; width: 1.2em; height: 1em; vertical-align: -.12em; position: relative; }
.fireant-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.fireant .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fireant .flame { transform-origin: 20px 19px; animation: flame .22s ease-in-out infinite alternate; }
@keyframes flame { from { transform: scale(.92, .9) rotate(-5deg); } to { transform: scale(1.06, 1.12) rotate(4deg); } }
.limbo-stage .animal .fireant { width: 1.4em; height: 1.15em; }

/* Slower: nobody zooms under the bar. A zero gets a dance under it. */
.limbo-stage { animation-duration: 5.8s; }
.limbo-stage .animal { animation-duration: 4.6s; }
@keyframes go-under { 0% { left: -20%; } 36% { transform: scaleY(1); } 48% { transform: scaleY(.9) rotate(-5deg); } 60% { transform: scaleY(1); } 100% { left: 105%; } }
.limbo-stage.knock .animal { animation: bump 2.6s .6s ease-in forwards; }
.limbo-stage.knock .bar { animation: bar-drop .6s cubic-bezier(.3,1.4,.5,1) forwards, bar-fall .9s 2.5s ease-in forwards; }
.limbo-stage.band0:not(.drive) { animation-duration: 8.4s; }
.limbo-stage.band0:not(.drive) .animal { animation: ant-dance 7.2s .6s ease-in-out forwards; }
@keyframes ant-dance {
  0% { left: -22%; transform: translateY(0) rotate(0); }
  24% { left: 36%; transform: translateY(0) rotate(0); }
  29% { transform: translateY(-9px) rotate(-10deg); } 34% { transform: translateY(0) rotate(8deg); }
  39% { transform: translateY(-9px) rotate(-10deg); } 44% { transform: translateY(0) rotate(8deg); }
  49% { left: 44%; transform: translateY(-12px) rotate(0) scale(1.15); } 54% { left: 44%; transform: translateY(0) rotate(0) scale(1); }
  59% { transform: translateY(-9px) rotate(10deg); } 64% { transform: translateY(0) rotate(-8deg); }
  69% { transform: translateY(-9px) rotate(10deg); } 74% { transform: translateY(0) rotate(0); }
  100% { left: 108%; transform: translateY(0) rotate(0); } }

/* Pace (Randy: the walk takes about 5 seconds; a zero gets a longer dance). */
.limbo-stage:not(.drive) { animation-duration: 6s; }
.limbo-stage:not(.drive) .animal { animation-duration: 4.8s; }
.limbo-stage.knock:not(.drive) .animal { animation: bump 2.8s .6s ease-in forwards; }
.limbo-stage.knock:not(.drive) .bar { animation: bar-drop .8s cubic-bezier(.3,1.4,.5,1) forwards, bar-fall 1s 2.5s ease-in forwards; }
.limbo-stage.band0:not(.drive) { animation-duration: 9s; }
.limbo-stage.band0:not(.drive) .animal { animation: ant-dance 7.6s .6s ease-in-out forwards; }
/* Facing forward, and a trot: the body inside the mover bobs on each step. */
.limbo-stage .animal .body { display: inline-block; transform-origin: 50% 100%; animation: trot .5s ease-in-out infinite alternate; }
@keyframes trot { from { transform: scaleX(-1) translateY(0) rotate(0); } to { transform: scaleX(-1) translateY(-5px) rotate(-3deg); } }
.limbo-stage.band0 .animal .body { animation-duration: .32s; }
/* The ant's legs, in two sets, swinging opposite ways. */
.limbo-stage .fireant .legs { transform-origin: 20px 25px; animation: legs .3s ease-in-out infinite alternate; }
.limbo-stage .fireant .legs.b { animation-direction: alternate-reverse; }
@keyframes legs { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }

/* The Spread */
body.spread .unit { margin: -14px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
body.spread .howto { margin: -6px 0 0; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.4; }
.rangeform { flex-wrap: wrap; }
.rangeform .range { display: flex; align-items: flex-end; gap: 8px; flex: 1 1 100%; }
.rangeform .range label { flex: 1 1 0; min-width: 0; display: grid; gap: 4px; font: 600 12px var(--body); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.rangeform .range input { width: 100%; font: 600 20px var(--body); padding: 12px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-variant-numeric: tabular-nums; }
.rangeform .range input:focus { outline: none; border-color: var(--accent); }
.rangeform .dash { padding-bottom: 14px; color: var(--muted); font-weight: 700; }
.rangeform #go { flex: 1 1 100%; }
.strip { width: 100%; height: auto; display: block; }
.strip .axis { stroke: #c9cfd6; stroke-width: 2; stroke-linecap: round; }
.strip .tick { stroke: #c9cfd6; stroke-width: 2; }
.strip .lbl { font: 600 11px var(--body); fill: var(--muted); }
.strip .band { fill: #1f9d55; opacity: .35; }
.strip .band.miss { fill: #d42b2b; }
.strip .edge { stroke: #1f9d55; stroke-width: 2; }
.strip .edge.miss { stroke: #d42b2b; }
.strip .ans { fill: #ffcf2e; stroke: #14212b; stroke-width: 1.5; }
.strip .anslbl { font: 800 13px var(--body); fill: var(--ink); }
.strip .you { font: 700 11px var(--body); fill: #1f9d55; }
.strip .you.miss { fill: #d42b2b; }
.fact { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 560px) { body.spread .howto { font-size: 12px; } .rangeform .range input { font-size: 18px; padding: 10px; } }

/* The Spread's own keypad on phones: no iOS keyboard, nothing to dismiss. */
.keypad { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.keypad button { font: 700 20px var(--body); padding: 10px 0; border-radius: 10px; border: 1.5px solid var(--line); background: #fbfaf7; color: var(--ink); cursor: pointer; }
.keypad button:active { background: #e9e5da; }
.rangeform .range input.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,79,163,.15); }
/* While a number is being entered on a phone, the header and footer step aside for the keypad. */
@media (max-width: 560px) {
  body.spread.entering .top, body.spread.entering .foot { display: none; }
  body.spread.entering .wrap { padding-top: 6px; }
  body.spread.entering .stage { gap: 10px; }
  body.spread.entering .prompt { font-size: 20px; }
  body.spread.entering .unit { display: none; }
  body.spread.entering .flap { width: 40px; height: 56px; font-size: 44px; line-height: 56px; }
  body.spread.entering .flap .leaf { line-height: 56px; }
  body.spread.entering .board { padding: 8px; }
  .keypad button { padding: 8px 0; font-size: 18px; }
}
@media (max-width: 560px) and (max-height: 620px) {
  body.spread.entering .steps { display: none; }
  body.spread.entering .board { display: none; }
  .keypad button { padding: 6px 0; }
}
body.spread .hint { margin: -8px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
body.spread #range { width: 100%; font: 600 18px var(--body); padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-variant-numeric: tabular-nums; }
body.spread #range:focus { outline: none; border-color: var(--accent); }
body.kb.spread #stage .hint, body.kb.spread #stage .unit { display: none; }

/* Ballpark: Fenway. Green Monster wall behind the header with Pesky's yellow foul pole, the
   old hand-run scoreboard for the numbers (white on dark green), cream cards, Red Sox red. */
body.ballpark { --bg: #f6f1e3; --card: #fbf8ef; --ink: #0c2340; --muted: #666c73; --line: #d6d2c8; --accent: #bd3039; --amber: #f6c344;
  --flap: #0f5132; --flap-hi: #176b43; --digit: #f6f1e3; --board-bg: #073a24; --good: #2e8b57; --bad: #bd3039; color-scheme: light;
  background: #2e3338; }
html:has(body.ballpark) { background: #2e3338; }
body.ballpark .top { position: relative; border-radius: 14px; padding: 18px 16px 14px 22px; background: linear-gradient(180deg, #11603f, #0d4f34);
  box-shadow: inset 0 -6px 0 #0a3d28, 0 4px 14px rgba(0,0,0,.25); overflow: hidden; }
body.ballpark .top::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 5px; background: var(--amber); }
body.ballpark .top::after { content: ""; position: absolute; right: 12px; top: 12px; width: 70px; height: 22px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, #f6f1e3 0 12px, #073a24 12px 16px); opacity: .9; }
body.ballpark h1 { color: #f6f1e3; }
body.ballpark .tag { color: #cfe3d6; }
body.ballpark .flap { box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 4px rgba(0,0,0,.4); }
body.ballpark .board.zero .flap { color: var(--amber); }
body.ballpark .board.miss .flap { color: #ff8f85; }
body.ballpark .btn { background: var(--accent); }
body.ballpark .btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
body.ballpark .foot, body.ballpark .round { color: #c3c8cd; }
body.ballpark .steps li.done { background: #0f5132; color: #f6f1e3; }
/* On a short phone the score screen must keep its buttons in view: the daily mark line
   stays in the share text but leaves the screen, and the Monster header slims down. */
@media (max-width: 560px) and (max-height: 620px) {
  body.spread .daily { display: none; }
  body.ballpark .top { padding: 2px 8px 2px 14px; }
}

/* The real-players line under the verdict (crowd.js). */
.crowd { margin: -10px 0 0; text-align: center; font: 700 15px var(--body); color: var(--accent); }
/* Bigger rewards: the slam, the shockwave, the flash and the jolt (2026-10-15). */
@keyframes slam { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-10deg) scale(4); } 14% { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(.88); }
  22% { transform: translate(-50%, -50%) rotate(-6deg) scale(1.08); } 30% { transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
  80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(1.04); } }
@keyframes cheer-near { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,207,46,.9); } 20% { transform: scale(1.07); } 45% { transform: scale(.99); } 100% { transform: scale(1); box-shadow: 0 0 0 16px rgba(255,207,46,0); } }
.shockwave { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; z-index: 5; pointer-events: none;
  border: 6px solid var(--ring, #ffcf2e); box-shadow: 0 0 24px var(--ring, #ffcf2e); animation: shockwave .8s cubic-bezier(.1,.7,.3,1) forwards; }
@keyframes shockwave { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(14); border-width: 1px; } }
.flash { position: fixed; inset: 0; z-index: 60; pointer-events: none; background: radial-gradient(circle at 50% 40%, #fff 0%, #fff7d1 40%, rgba(255,247,209,0) 80%);
  animation: flash .55s ease-out forwards; }
@keyframes flash { from { opacity: var(--flash, .85); } to { opacity: 0; } }
.wrap.shake { animation: shake .55s cubic-bezier(.36,.07,.19,.97); }
.wrap.shake-small { animation: shake-small .4s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(5px, -2px); } 30%, 50%, 70% { transform: translate(-9px, 3px) rotate(-.6deg); } 40%, 60% { transform: translate(9px, -3px) rotate(.6deg); } }
@keyframes shake-small { 20%, 80% { transform: translate(-3px, 0); } 40%, 60% { transform: translate(4px, -1px); } }
@media (prefers-reduced-motion: reduce) { .wrap.shake, .wrap.shake-small { animation: none; } }

.subzero-switch .szl { white-space: nowrap; }
.prompt.centered { text-align: center; }
/* No ice cube (Randy 2026-10-15: "too cluttery"): the words are the switch. The checkbox
   stays for keyboards and screen readers but is visually hidden. */
.subzero-switch input { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; background: none !important; filter: none !important; }
.subzero-switch { gap: 0; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.subzero-switch:has(input:focus-visible) { outline: 2px solid #8fd6ff; outline-offset: 2px; border-radius: 4px; }
body.subzero .subzero-switch { text-decoration: none; }
/* Sub-Zero link: no underline, no padding; it sits on the tagline's last line. */
.subzero-switch { text-decoration: none; padding: 0; }
/* Sub-Zero lives bottom right, on the footer line (Randy 2026-10-15). */
.foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.foot .subzero-switch { margin-left: auto; margin-right: 0; align-self: baseline; font-size: 14px; }
body.subzero .subzero-switch .try { display: none; }
/* Step circles carry the score in the mark's color (2026-10-15). */
.steps li.done { font: 800 15px var(--body); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.steps li.done::after { content: none; }
.steps li.b-zero { background: #111417; color: #fff; }
.steps li.b-gold { background: #ffcf2e; color: #14212b; }
.steps li.b-red { background: #d42b2b; color: #fff; }
.steps li.b-blue { background: #1f4fa3; color: #fff; }
.steps li.b-white { background: #fff; color: #14212b; box-shadow: inset 0 0 0 2px #d5d9de; }
.steps li.b-miss { background: #fff; color: #b0281c; box-shadow: inset 0 0 0 2px #e3b3ad; font-size: 12px; }
body.kb .steps li.done { font-size: 12px; }
body.kb .steps li.b-miss { font-size: 10px; }
.foot .subzero-switch .szl { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
body.subzero .foot .subzero-switch .szl { text-decoration: none; }
#finalkey { display: none; }   /* streamlined: the colored circles and rows carry it (2026-10-15) */
/* Footer switch text: "Try Sub-Zero" when off, "Back to Zero-In" when on; underlined either way. */
.subzero-switch .sz-on { display: none; }
body.subzero .subzero-switch .sz-on { display: inline; }
body.subzero .subzero-switch .sz-off { display: none; }
body.subzero .foot .subzero-switch .szl { text-decoration: underline; }
