/* Click or Skip. Tokens and rules are documented in DESIGN.md. */
:root {
  --stage: oklch(0.22 0.085 268);
  --stage-deep: oklch(0.17 0.07 268);
  --stage-raised: oklch(0.29 0.10 268);
  --stage-line: oklch(0.40 0.11 268);
  --outline: oklch(0.13 0.05 268);
  --ink: oklch(0.97 0.012 268);
  --ink-soft: oklch(0.85 0.045 268);
  --yellow: oklch(0.90 0.18 98);
  --yellow-deep: oklch(0.62 0.14 85);
  --cold: oklch(0.82 0.12 225);
  --mid: oklch(0.92 0.035 90);
  --hot: oklch(0.68 0.24 15);

  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --ledge: 0 6px 0 var(--outline);
  --ledge-sm: 0 4px 0 var(--outline);
  --out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(14px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font: 400 1rem/1.5 var(--body);
  color: var(--ink);
  background: var(--stage-deep) radial-gradient(120% 90% at 50% 0%, oklch(0.31 0.12 268) 0%, var(--stage) 45%, var(--stage-deep) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-underline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
kbd {
  font: 700 0.72rem/1 var(--body); padding: 4px 6px; border-radius: 5px;
  border: 2px solid currentColor; opacity: 0.6; margin-left: 10px; letter-spacing: 0.02em;
}
@media (hover: none), (max-width: 760px) { kbd { display: none; } }
.dot { opacity: 0.7; }

.screen { min-height: 100dvh; display: flex; flex-direction: column; }

/* ───────────── buttons and small controls ───────────── */
.btn-go, .btn-quiet {
  display: inline-flex; align-items: center; justify-content: center;
  border: 3px solid var(--outline); border-radius: var(--r-md);
  text-decoration: none; white-space: nowrap;
  transition: transform 0.12s var(--out-expo), box-shadow 0.12s var(--out-expo), background-color 0.15s;
}
.btn-go {
  font: 400 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em;
  padding: 14px 26px; background: var(--yellow); color: var(--outline); box-shadow: var(--ledge);
}
.btn-go:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 0 var(--outline); }
.btn-go:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--outline); }
.btn-go:disabled { background: var(--stage-line); color: var(--ink-soft); box-shadow: var(--ledge-sm); }
.btn-quiet {
  font: 600 0.95rem/1 var(--body); padding: 11px 16px; border-width: 2px; border-radius: var(--r-sm);
  background: var(--stage-raised); color: var(--ink); box-shadow: var(--ledge-sm);
}
.btn-quiet:hover { background: var(--stage-line); }
.btn-quiet:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--outline); }

.field legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.mode input, .chip input, .seg input, .switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--stage); border: 2px solid var(--outline); font-weight: 500; font-size: 0.93rem;
  transition: background-color 0.15s, color 0.15s;
}
.chip span i { font-style: normal; }
.chip:hover span { background: var(--stage-line); }
.chip input:checked + span { background: var(--ink); color: var(--outline); font-weight: 600; }
.mode input:focus-visible + .mode-body, .chip input:focus-visible + span, .seg input:focus-visible + span, .switch input:focus-visible + .switch-box { outline: 3px solid var(--yellow); outline-offset: 3px; }

.seg { display: flex; background: var(--stage); border: 2px solid var(--outline); border-radius: 999px; padding: 3px; }
.seg label { position: relative; flex: 1; }
.seg span { display: block; text-align: center; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 0.93rem; white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
.seg label:hover span { background: var(--stage-line); }
.seg input:checked + span { background: var(--ink); color: var(--outline); font-weight: 600; }

.chip-btn { padding: 8px 14px; border-radius: 999px; background: var(--stage-raised); border: 2px solid var(--outline); font-weight: 600; font-size: 0.93rem; }
.chip-btn:hover { background: var(--stage-line); }

/* ───────────── menu ───────────── */
.screen-menu { position: relative; overflow: hidden; overflow: clip; }
.wall { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.wall::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 42%, oklch(0.22 0.085 268 / 0.97) 0%, oklch(0.22 0.085 268 / 0.9) 55%, oklch(0.2 0.09 268 / 0.62) 100%);
}
.wall-tilt { position: absolute; inset: -20% -15%; transform: rotate(-7deg); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.wall-row { overflow: hidden; }
.wall-strip { display: flex; gap: 14px; width: max-content; animation: drift 120s linear infinite; }
.wall-row:nth-child(even) .wall-strip { animation-direction: reverse; animation-duration: 150s; }
/* the backdrop is our own lettering, drawn like thumbnail text. No real thumbnails here: those are only ever shown whole and unaltered. */
.wall-strip i {
  flex: none; width: 300px; aspect-ratio: 16 / 9; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
  font: 400 4.4rem/0.9 var(--display); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap;
  -webkit-text-stroke: 0.16em var(--outline); paint-order: stroke fill; text-shadow: 0 0.08em 0 var(--outline);
}
.wall-strip i span { transform: rotate(var(--tilt, -5deg)); }
@keyframes drift { to { transform: translateX(calc(-50% - 7px)); } }

.menu-bar, .menu-main, .menu-foot { position: relative; z-index: 1; }
.menu-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--pad) 0; }
.menu-links { display: flex; gap: 10px; flex-wrap: wrap; }
.menu-best { font-weight: 500; color: var(--ink-soft); text-align: right; }
.menu-main { flex: 1; width: min(100%, 980px); margin: 0 auto; padding: 4px var(--pad) 24px; display: flex; flex-direction: column; align-items: center; }

.logo {
  display: flex; align-items: baseline; justify-content: center; gap: 0.16em; flex-wrap: wrap;
  font: 400 clamp(3.4rem, 10vw, 5.4rem)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em;
  transform: rotate(-4deg); margin: 0 0 12px;
}
.logo-click, .logo-skip { -webkit-text-stroke: 0.16em var(--outline); paint-order: stroke fill; text-shadow: 0 0.09em 0 var(--outline); }
.logo-click { color: var(--yellow); }
.logo-skip { color: var(--cold); }
.logo-or { font: italic 500 0.3em/1 var(--body); text-transform: lowercase; color: var(--ink); transform: translateY(-0.5em); }
.tagline { text-align: center; font-size: 1.15rem; color: var(--ink-soft); text-wrap: balance; margin-bottom: 22px; }

.challenge {
  width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; margin-bottom: 18px; border: 3px solid var(--outline); border-radius: var(--r-md);
  background: var(--mid); color: var(--outline); box-shadow: var(--ledge);
}
.challenge-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.challenge .btn-go { font-size: 1.15rem; padding: 12px 20px; }

.setup { width: 100%; display: grid; gap: 18px; }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mode { position: relative; display: block; cursor: pointer; }
.mode-body {
  display: grid; gap: 4px; height: 100%; padding: 16px 16px 18px; text-align: center; justify-items: center;
  background: var(--stage-raised); border: 3px solid var(--outline); border-radius: var(--r-md); box-shadow: var(--ledge);
  transition: transform 0.12s var(--out-expo), background-color 0.15s, color 0.15s;
}
.mode-art { display: flex; gap: 5px; margin-bottom: 8px; }
.mode-art i { width: 34px; aspect-ratio: 16 / 9; border-radius: 4px; background: var(--stage-line); border: 2px solid var(--outline); }
/* Guess the Views: five rising bars in place of thumbnails */
.mode-art-bars { align-items: flex-end; gap: 3px; height: 23px; }
.mode-art-bars i { width: 9px; aspect-ratio: auto; border-radius: 3px; }
.mode-art-bars i:nth-child(1) { height: 30%; } .mode-art-bars i:nth-child(2) { height: 46%; } .mode-art-bars i:nth-child(3) { height: 64%; }
.mode-art-bars i:nth-child(4) { height: 82%; } .mode-art-bars i:nth-child(5) { height: 100%; }
.mode-name { font: 400 1.45rem/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; text-wrap: balance; }
.mode-desc { color: var(--ink-soft); font-size: 0.93rem; }
.mode:hover .mode-body { transform: translateY(-2px); }
.mode input:checked + .mode-body { background: var(--ink); color: var(--outline); }
.mode input:checked + .mode-body .mode-desc { color: oklch(0.35 0.08 268); }
.mode input:checked + .mode-body .mode-art i { background: var(--yellow); }
.setup .chips { justify-content: center; }
/* the yardstick switch: what "viral" is measured against */
.lens { display: grid; gap: 7px; justify-items: center; }
.lens .seg { width: min(100%, 540px); background: var(--stage-raised); }
.lens-note { color: var(--ink-soft); font-size: 0.93rem; text-align: center; text-wrap: balance; min-height: 1.5em; }

.go-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.btn-play { font-size: 2.2rem; padding: 16px; }
.btn-versus { background: var(--ink); font-size: 1.5rem; }

.options { background: var(--stage-raised); border: 2px solid var(--outline); border-radius: var(--r-md); }
.options summary { cursor: pointer; padding: 12px 16px; color: var(--ink-soft); font-size: 0.95rem; }
.options summary b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.options-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; padding: 6px 16px 18px; }
.switch { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer; color: var(--ink-soft); font-size: 0.95rem; }
.switch b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.switch-box { width: 46px; height: 26px; border-radius: 999px; background: var(--stage); border: 2px solid var(--outline); position: relative; transition: background-color 0.15s; }
.switch-box::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-soft); transition: transform 0.15s var(--out-expo), background-color 0.15s; }
.switch input:checked + .switch-box { background: var(--yellow); }
.switch input:checked + .switch-box::after { transform: translateX(20px); background: var(--outline); }
.menu-foot { padding: 9px 20px 11px; text-align: center; font-size: 0.85rem; color: var(--ink-soft); background: var(--stage); } /* a solid strip, so the fine print and YouTube's logo sit on one flat colour */

/* ───────────── heads-up bar ───────────── */
.hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px var(--pad); }
.hud > :first-child { justify-self: start; }
.hud-mid { justify-self: center; }
.hud-right { justify-self: end; display: flex; align-items: baseline; gap: 8px; }
.hud-label { font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.hud-num { font: 400 1.7rem/1 var(--display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.pips { display: flex; gap: 6px; }
.pips li { width: 22px; height: 12px; border-radius: 999px; background: var(--stage-raised); border: 2px solid var(--outline); }
.pips .is-now { background: var(--ink); }
.pips .is-right { background: var(--yellow); }
.pips .is-part { background: var(--yellow-deep); }
.pips .is-wrong { background: var(--stage-line); }
.scoreboard { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.score-chip { display: flex; align-items: baseline; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--stage-raised); border: 2px solid var(--outline); font-size: 0.93rem; font-weight: 500; white-space: nowrap; }
.score-chip b { font: 400 1.15rem/1 var(--display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.score-chip.is-me { background: var(--ink); color: var(--outline); }
.score-chip.is-away { opacity: 0.55; }
.chip-mark { font-style: normal; font-size: 0.78rem; font-weight: 600; opacity: 0.8; }

.timer { position: relative; height: 16px; margin: 0 var(--pad); border: 2px solid var(--outline); border-radius: 999px; background: var(--stage-deep); overflow: hidden; }
.timer i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; border-radius: 999px; }
.timer.is-low i { background: var(--hot); }
.timer.is-done { visibility: hidden; } /* keeps its space so the round does not jump when time stops */
.timer span { position: absolute; right: 8px; top: 50%; translate: 0 -50%; font: 700 0.7rem/1 var(--body); color: var(--ink); mix-blend-mode: difference; }

/* ───────────── a round: one reading column ───────────── */
.round { flex: 1; padding: 12px var(--pad) 10px; }
/* where the videos come from, on every screen that shows one */
.credit { padding: 6px var(--pad) 12px; text-align: center; line-height: 0; overflow: hidden; }
/* YouTube's logo as supplied. The file carries wide transparent margins; the box is sized to the lettering so those margins take no room and catch no clicks. */
.yt-mark { position: relative; display: inline-block; width: 132px; height: 18px; vertical-align: middle; }
.yt-mark img { position: absolute; left: -18px; top: -21px; width: 168px; height: 60px; max-width: none; pointer-events: none; }
.menu-foot .yt-mark { margin-left: 8px; }
.stage { display: grid; gap: 18px; margin-inline: auto; }
.stage.gut { width: min(100%, clamp(560px, calc((100dvh - 440px) * 16 / 9), 900px)); }
.stage.pair { width: min(100%, clamp(680px, calc((100dvh - 440px) * 32 / 9), 1180px)); }
.stage.rank { width: min(100%, clamp(760px, calc((100dvh - 440px) * 48 / 9), 1320px)); }

/* A thumbnail is shown whole and unaltered: nothing is drawn over it, washed across it or cropped from it.
   Verdicts go on the frame around it and on a stamp that hangs below it. */
.thumb {
  display: block; position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); border: 3px solid var(--outline);
  box-shadow: var(--ledge); background: var(--stage-raised); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-link { display: block; width: 100%; height: 100%; }
.thumb.is-viral, .pick.is-winner .thumb { border-color: var(--hot); box-shadow: 0 0 0 4px var(--hot), var(--ledge); }
.thumb.is-flop, .pick.is-loser .thumb { border-color: var(--cold); box-shadow: 0 0 0 4px var(--cold), var(--ledge); }
.thumb.is-mid { border-color: var(--mid); box-shadow: 0 0 0 4px var(--mid), var(--ledge); }
.vtitle { font: 600 clamp(1.15rem, 1.9vw, 1.45rem)/1.25 var(--body); text-wrap: balance; overflow-wrap: anywhere; }
.vmeta { color: var(--ink-soft); font-size: 0.95rem; min-height: 1.5em; }
.vmeta b { color: var(--ink); font-weight: 600; }
.vmeta .watch { display: block; width: max-content; margin-top: 2px; }
.video figcaption { display: grid; gap: 4px; padding: 16px 2px 0; }
.ask { font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.ask b { font-weight: 400; color: var(--yellow); }

/* the stamp hangs from the frame's lower right corner, over the caption's margin, clear of the picture */
.stamp-row { display: block; position: relative; height: 0; z-index: 2; }
.stamp {
  position: absolute; right: 8px; top: 12px; pointer-events: none;
  font: 400 clamp(2.6rem, 5.4vw, 3.8rem)/0.9 var(--display); text-transform: uppercase; letter-spacing: 0.02em;
  -webkit-text-stroke: 0.17em var(--outline); paint-order: stroke fill; text-shadow: 0 0.09em 0 var(--outline);
  transform: rotate(-6deg); transform-origin: right top;
  animation: slam 0.55s var(--out-expo) both;
}
.stamp-sm { font-size: clamp(1.7rem, 2.8vw, 2.3rem); right: 6px; top: 10px; }
.video.is-revealed figcaption { padding-right: clamp(8.6rem, 17vw, 12rem); }
.pick.is-winner .vtitle, .pick.is-winner .vmeta { padding-right: clamp(6rem, 9.5vw, 8rem); }
.stamp-flop { color: var(--cold); }
.stamp-mid { color: var(--mid); }
.stamp-viral { color: var(--hot); }
@keyframes slam {
  0% { opacity: 0; transform: rotate(-14deg) scale(2.6); filter: blur(8px); }
  55% { opacity: 1; filter: blur(0); }
  100% { transform: rotate(-6deg) scale(1); }
}

/* answers: Viral or Flop */
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ans {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "word key" "desc desc"; align-items: center; gap: 2px 12px;
  text-align: left; padding: 12px 18px 14px; color: var(--outline);
  border: 3px solid var(--outline); border-radius: var(--r-md); box-shadow: var(--ledge);
  transition: transform 0.12s var(--out-expo), box-shadow 0.12s var(--out-expo), opacity 0.15s;
}
.ans:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 9px 0 var(--outline); }
.ans:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--outline); }
.ans-word { grid-area: word; font: 400 2.4rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.ans-desc { grid-area: desc; font-weight: 500; font-size: 0.93rem; }
.ans kbd { grid-area: key; font-size: 1rem; }
.ans-viral { background: var(--hot); }
.ans-flop { background: var(--cold); }
/* answers: Guess the Views. Five ranges on one cold-to-hot run, so the order reads without the labels. */
.answers-bands { grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ans-band { grid-template-columns: 1fr; grid-template-areas: "word" "desc" "key"; justify-items: center; text-align: center; padding: 12px 6px 10px; }
.ans-band .ans-word { font-size: clamp(1.5rem, 2.7vw, 2.1rem); text-transform: none; }
.ans-band .ans-desc { font-size: 0.86rem; white-space: nowrap; }
.ans-band kbd { margin-top: 4px; }
.band-0 { --band: var(--cold); }
.band-1 { --band: color-mix(in oklch, var(--cold), var(--mid)); }
.band-2 { --band: var(--mid); }
.band-3 { --band: color-mix(in oklch, var(--hot), var(--mid)); }
.band-4 { --band: var(--hot); }
.ans-band { background: var(--band); }
/* after the answer: the same five ranges as a strip, the right one filled, the player's marked */
.bands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding-bottom: 1.2em; }
.bands li { position: relative; display: grid; place-items: center; padding: 5px 2px; border-radius: 999px; border: 2px solid var(--stage-line); color: var(--ink-soft); font-size: 0.93rem; }
.bands b { font-weight: 600; }
.bands .is-answer { background: var(--band); border-color: var(--outline); color: var(--outline); }
.bands .is-mine { outline: 3px solid var(--yellow); outline-offset: 2px; }
.bands i { position: absolute; top: calc(100% + 5px); font-style: normal; font-size: 0.78rem; font-weight: 600; color: var(--yellow); }
.ans:disabled:not(.is-chosen) { opacity: 0.4; }
.ans.is-chosen, .pick.is-chosen .thumb { outline: 4px solid var(--yellow); outline-offset: 3px; }
/* head-to-head: a short hold while every screen loads the picture, then answers open together */
.stage.is-holding .ans, .stage.is-holding .pick { pointer-events: none; }
.stage.is-holding .answers { opacity: 0.45; }
.answers { transition: opacity 0.15s; }

/* cards: Pick the Winner and Rank It */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 28px); align-items: start; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); align-items: start; }
.card { display: grid; gap: 4px; width: 100%; padding: 0; text-align: left; background: none; border: 0; border-radius: var(--r-md); transition: transform 0.14s var(--out-expo), opacity 0.2s; }
.card .thumb { margin-bottom: 12px; }
.card .vtitle { font-size: clamp(1rem, 1.4vw, 1.2rem); padding: 0 2px; }
.card .vmeta { padding: 0 2px; font-size: 0.9rem; }
button.card:hover:not(:disabled) { transform: translateY(-4px); }
button.card:active:not(:disabled) { transform: translateY(2px); }
.card:disabled { color: inherit; }
.pick:disabled:not(.is-chosen):not(.is-winner):not(.is-loser) { opacity: 0.45; }
.pick.is-loser .vtitle { color: var(--ink-soft); }
.pick.is-mine .thumb { outline: 4px solid var(--yellow); outline-offset: 7px; }
.rank-item.is-picked .thumb { border-color: var(--yellow); box-shadow: 0 6px 0 var(--yellow-deep); }
/* Rank It: the place tag sits above its card, in a row that is always there so nothing jumps when it appears */
.badge {
  display: block; justify-self: start; min-width: 54px; margin: 0 0 6px 4px; padding: 4px 10px 5px; text-align: center;
  font: 400 1.35rem/1 var(--display); letter-spacing: 0.02em; color: var(--outline); background: var(--yellow);
  border: 3px solid var(--outline); border-radius: var(--r-sm); box-shadow: var(--ledge-sm); transform: rotate(-5deg);
}
.badge[hidden] { display: block !important; visibility: hidden; }
.badge:empty::before { content: "b"; } /* an empty tag keeps its height */
.badge:not([hidden]) { animation: pop 0.3s var(--out-expo) both; }
@keyframes pop { from { transform: rotate(-12deg) scale(1.7); opacity: 0; } }
.rank-item.is-done .badge { background: var(--ink); }
.vmeta .is-right { color: var(--yellow); }
.vmeta .is-wrong { color: var(--ink-soft); }
.rank-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }

/* ───────────── reveal ───────────── */
.reveal { display: grid; gap: 12px; }
.reveal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.verdict { display: flex; align-items: baseline; gap: 18px; font: 400 clamp(1.9rem, 3vw, 2.5rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.verdict.is-right span { color: var(--yellow); }
.verdict.is-wrong { color: var(--ink-soft); }
/* the points count up; an invisible copy of the final figure holds the width so nothing reflows */
.pts { font-variant-numeric: tabular-nums; display: inline-grid; }
.pts::after { content: attr(data-final); visibility: hidden; height: 0; overflow: hidden; }
.reveal-slot { display: flex; align-items: center; gap: 14px; }
.next-in { color: var(--ink-soft); font-weight: 500; font-variant-numeric: tabular-nums; }
.truth { font-size: 1.08rem; color: var(--ink-soft); }
.truth b { color: var(--ink); font-weight: 600; }
.truth .t-flop { color: var(--cold); }
.truth .t-viral { color: var(--hot); }
.truth .t-mid { color: var(--mid); }
.lessons { display: grid; gap: 8px; padding-top: 12px; border-top: 2px solid var(--stage-line); }
.lesson { display: grid; grid-template-columns: 20px 1fr; gap: 6px; color: var(--ink-soft); line-height: 1.45; }
.lesson b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.lesson-mark { font-size: 0.8rem; line-height: 1.85; }
.lesson-up .lesson-mark { color: var(--hot); }
.lesson-down .lesson-mark { color: var(--cold); }
.lesson-flat .lesson-mark { color: var(--mid); }
.lesson-link { padding: 0; background: none; border: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lesson-link:hover { color: var(--yellow); }
.lesson-twist .lesson-mark { color: var(--ink); }
/* one video on all three yardsticks; the one in play has the light rim */
.scales { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scales li { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 6px 12px 8px; border-radius: var(--r-sm); background: var(--stage-raised); border: 2px solid var(--outline); }
.scale-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.scale-name { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.scales b { font: 400 clamp(1rem, 3.7vw, 1.3rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.scale-num { font-size: 0.86rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.scales .is-viral b { color: var(--hot); }
.scales .is-flop b { color: var(--cold); }
.scales .is-mid b { color: var(--mid); }
.scales .is-on { border-color: var(--ink); }
.scales .is-on .scale-name { color: var(--ink); }

.round-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 6px 10px; }
.round-results li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline; padding: 8px 14px; border-radius: var(--r-sm); background: var(--stage-raised); border: 2px solid var(--outline); }
.round-results span { color: var(--ink-soft); font-size: 0.93rem; }
.round-results .is-me { background: var(--ink); color: var(--outline); }
.round-results .is-me span { color: oklch(0.35 0.08 268); }
.round-pts { font: 400 1.25rem/1 var(--display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }

.oops { max-width: 46ch; margin: 12vh auto 0; display: grid; gap: 16px; justify-items: start; }
.oops h2 { font: 400 2.2rem/1 var(--display); text-transform: uppercase; }
.net-error { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-weight: 600; }

/* ───────────── results and standings ───────────── */
.res { width: min(100%, 820px); margin: 0 auto; padding: clamp(24px, 5vh, 56px) var(--pad) 48px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.res-kicker { font-weight: 600; color: var(--ink-soft); }
.res-title {
  font: 400 clamp(3rem, 9vw, 5.4rem)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em; color: var(--yellow);
  -webkit-text-stroke: 0.16em var(--outline); paint-order: stroke fill; text-shadow: 0 0.09em 0 var(--outline);
  transform: rotate(-4deg); margin: 14px 0 12px; animation: slam-title 0.6s var(--out-expo) both;
}
@keyframes slam-title { from { opacity: 0; transform: rotate(-12deg) scale(2.2); filter: blur(8px); } }
.res-score b { font: 400 clamp(3.4rem, 9vw, 5.4rem)/1 var(--display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.res-score span { font-weight: 600; font-size: 1.2rem; color: var(--ink-soft); margin-left: 8px; }
.res-note { font-weight: 500; min-height: 1.5em; }
.res-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 14px 0 6px; }
.res-share { max-width: 60ch; color: var(--ink-soft); font-size: 0.95rem; }
.res-share input, .lobby-share input, .vs-field input, .vs-field select { width: 100%; padding: 11px 12px; background: var(--stage-deep); border: 2px solid var(--outline); border-radius: var(--r-sm); }
.res-share input { margin-top: 8px; }
.met { width: 100%; margin-top: 18px; display: grid; gap: 10px; justify-items: center; }
.met h2 { font: 600 1rem/1.3 var(--body); }
.met-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.recap { width: 100%; margin-top: 20px; display: grid; gap: 10px; text-align: left; }
.recap li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 10px 16px 10px 10px; background: var(--stage-raised); border: 2px solid var(--outline); border-radius: var(--r-md); }
.recap-thumbs { display: grid; gap: 3px; width: 128px; }
.recap-thumbs.n2 { grid-template-columns: 1fr 1fr; width: 168px; }
.recap-thumbs.n3 { grid-template-columns: 1fr 1fr 1fr; width: 204px; }
.recap-thumbs a { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--stage); }
.recap-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.recap-title { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.recap-sub { font-size: 0.9rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recap-pts { font: 400 1.6rem/1 var(--display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.recap .is-right .recap-pts { color: var(--yellow); }
.recap .is-wrong .recap-pts { color: var(--ink-soft); }
.standings .place { font: 400 1.6rem/1 var(--display); min-width: 3ch; text-align: center; color: var(--ink-soft); }
.standings li:first-child .place, .standings li:first-child .recap-pts { color: var(--yellow); }
.standings .is-me { border-color: var(--ink); }

/* ───────────── head-to-head: entry and lobby ───────────── */
.vs { width: min(100%, 720px); margin: 0 auto; padding: 16px var(--pad) 48px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.vs-back, .book-back { justify-self: start; }
.vs-title, .book-title { font: 400 clamp(2.6rem, 7vw, 4rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.vs-lede { font-size: 1.15rem; color: var(--ink-soft); text-wrap: balance; }
.vs-entry { width: 100%; display: grid; gap: 18px; justify-items: center; }
.vs-field { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; text-align: left; width: min(100%, 320px); }
.vs-field input { font-size: 1.1rem; font-weight: 500; }
#vs-code { text-transform: uppercase; letter-spacing: 0.3em; font: 400 1.6rem/1.2 var(--display); text-align: center; }
.vs-choices { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs-choices section { display: grid; gap: 12px; align-content: space-between; justify-items: center; padding: 20px; background: var(--stage-raised); border: 3px solid var(--outline); border-radius: var(--r-md); box-shadow: var(--ledge); }
.vs-choices h2 { font: 400 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.vs-choices p { color: var(--ink-soft); font-size: 0.95rem; }
.vs-error { color: var(--hot); font-weight: 600; min-height: 1.5em; }
.vs-rules { max-width: 58ch; color: var(--ink-soft); font-size: 0.93rem; text-wrap: balance; }
.lobby-kicker { font-weight: 600; color: var(--ink-soft); margin-bottom: -12px; }
.lobby-code { font: 400 clamp(4rem, 14vw, 6rem)/1 var(--display); letter-spacing: 0.12em; color: var(--yellow); -webkit-text-stroke: 0.12em var(--outline); paint-order: stroke fill; text-shadow: 0 0.08em 0 var(--outline); }
.lobby-share { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.players { width: 100%; display: grid; gap: 8px; text-align: left; }
.players li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--stage-raised); border: 2px solid var(--outline); border-radius: var(--r-sm); font-size: 1.08rem; }
.players .is-away { opacity: 0.55; }
.tag { padding: 2px 9px; border-radius: 999px; background: var(--stage); border: 2px solid var(--outline); font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.lobby-settings { width: 100%; display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; text-align: left; }
.lobby-settings .vs-field { grid-column: 1 / -1; width: 100%; }
.lobby-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.lobby-wait { color: var(--ink-soft); }
.lobby-wait b { color: var(--ink); font-weight: 600; }

/* ───────────── playbook ───────────── */
.book { width: min(100%, 940px); margin: 0 auto; padding: 16px var(--pad) 40px; display: grid; gap: 14px; }
.book-lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.book-progress { color: var(--ink-soft); font-size: 0.95rem; }
.book-tabs { margin-block: 2px 4px; }
.plays { display: grid; gap: 10px; margin-top: 6px; }
.book-topic { min-height: 40vh; align-content: start; }

/* at a glance: every play on one screen, sorted by what it does */
.glance { display: grid; gap: 16px; }
.glance-lead { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.glance-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.glance-col h2 { font: 400 1.3rem/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; margin: 4px 2px 8px; }
.glance-col.is-helps h2 { color: var(--hot); }
.glance-col.is-hurts h2 { color: var(--cold); }
.glance-col.is-flat h2 { color: var(--mid); }
.glance-col ul { background: var(--stage-raised); border: 2px solid var(--outline); border-radius: var(--r-md); overflow: hidden; }
.glance-col li + li { border-top: 2px solid var(--outline); }
.glance-item { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; width: 100%; padding: 11px 14px 12px; text-align: left; background: none; border: 0; transition: background-color 0.15s; }
.glance-item:hover { background: var(--stage-line); }
.glance-item .play-badge { font-size: 1.3rem; }
.glance-item .play-name { font-size: 1.1rem; }
.glance-item .play-claim { font-size: 0.88rem; line-height: 1.35; }
.glance-lead .glance-item { grid-template-columns: 72px 1fr; padding: 14px 16px 15px; background: var(--stage-raised); border: 2px solid var(--outline); border-radius: var(--r-md); }
.glance-lead .glance-item:hover { background: var(--stage-line); }
.glance-lead .play-badge { font-size: 1.7rem; }
.glance-lead .play-name { font-size: 1.3rem; }
.glance-lead .play-claim { font-size: 0.95rem; }
.plays-group { font: 400 1.25rem/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 18px; }
.plays-group:first-child { margin-top: 0; }
.play { background: var(--stage-raised); border: 2px solid var(--outline); border-radius: var(--r-md); scroll-margin-top: 12px; }
.play > summary { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; }
.play > summary::-webkit-details-marker { display: none; }
.play-badge { font: 400 1.7rem/1 var(--display); letter-spacing: 0.02em; text-align: center; font-variant-numeric: tabular-nums; }
.is-helps > .play-badge, .is-big > .play-badge, .is-upside > .play-badge,
.play.is-helps .play-badge, .play.is-big .play-badge, .play.is-upside .play-badge { color: var(--hot); }
.is-hurts > .play-badge, .is-ceiling > .play-badge,
.play.is-hurts .play-badge, .play.is-ceiling .play-badge { color: var(--cold); }
.is-flat > .play-badge, .is-rule > .play-badge, .is-gap > .play-badge,
.play.is-flat .play-badge, .play.is-rule .play-badge, .play.is-gap .play-badge { color: var(--mid); }
.play.research { display: grid; gap: 10px; padding: 16px 18px 18px; }
.play-text { display: grid; gap: 2px; }
.play-name { font: 400 1.35rem/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.play-claim { color: var(--ink-soft); font-size: 0.97rem; }
.play-tone { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.play[open] > summary { border-bottom: 2px solid var(--outline); }
.play-body { display: grid; gap: 12px; padding: 16px 18px 20px; }
.play-body h3 { font: 600 0.95rem/1.3 var(--body); margin-top: 6px; }
.play-how { font-size: 1.05rem; max-width: 66ch; }
.play-note { font-size: 0.85rem; color: var(--ink-soft); }
.play-gap { color: var(--ink-soft); font-size: 0.95rem; max-width: 70ch; }
.traits { display: grid; gap: 10px; }
.trait { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.trait-effect { font: 400 1.35rem/1.2 var(--display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.trait.is-helps .trait-effect { color: var(--hot); }
.trait.is-hurts .trait-effect { color: var(--cold); }
.trait.is-flat .trait-effect { color: var(--mid); }
.trait-name { font-weight: 600; }
.trait-facts { color: var(--ink-soft); font-size: 0.92rem; max-width: 70ch; }
.trait-genre { color: var(--ink); }
/* one trait: its figure, then its likely range drawn on a scale shared by the whole Playbook */
.effects { display: grid; gap: 14px; }
.effect { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.effect-num { font: 400 1.35rem/1.2 var(--display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.effect.is-helps .effect-num { color: var(--hot); }
.effect.is-hurts .effect-num { color: var(--cold); }
.effect.is-flat .effect-num { color: var(--mid); }
.effect-main { display: grid; gap: 6px; min-width: 0; }
.effect-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 14px; }
.range-text { font-size: 0.82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.range { position: relative; height: 14px; border-radius: 7px; background: var(--stage); border: 2px solid var(--outline); }
.range::after { content: ""; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--ink-soft); } /* no difference */
.range-band { position: absolute; top: 1px; bottom: 1px; min-width: 6px; border-radius: 4px; background: var(--mid); }
.effect.is-helps .range-band { background: var(--hot); }
.effect.is-hurts .range-band { background: var(--cold); }
.range-dot { position: absolute; z-index: 1; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--outline); }
.range-axis { display: grid; grid-template-columns: 1fr auto 1fr; margin: -6px 0 0 76px; font-size: 0.75rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.range-axis span:last-child { text-align: right; }
.more summary { cursor: pointer; width: max-content; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.more summary:hover { color: var(--ink); }
.more-list { display: grid; gap: 6px; margin-top: 8px; font-size: 0.9rem; color: var(--ink-soft); max-width: 70ch; }
.more-list b { color: var(--ink); font-weight: 600; }
.gaps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 28px; }
.gap { display: grid; gap: 4px; }
.gap-rows { display: grid; grid-template-columns: max-content 1fr 3.2ch; gap: 3px 10px; align-items: center; font-size: 0.88rem; color: var(--ink-soft); }
.gap-rows b { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.gap-track { height: 12px; border-radius: 6px; background: var(--stage); border: 2px solid var(--outline); overflow: hidden; }
.gap-track i { display: block; height: 100%; }
.gap-track .is-big { background: var(--mid); }
.gap-track .is-small { background: var(--cold); }
.ex-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px 22px; }
.ex-pair figcaption { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.ex-pair > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ex { display: grid; gap: 4px; text-decoration: none; align-content: start; }
.ex-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-sm); border: 3px solid var(--outline); overflow: hidden; background: var(--stage); }
.ex-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ex.is-viral .ex-thumb { border-color: var(--hot); }
.ex.is-flop .ex-thumb { border-color: var(--cold); }
.ex-title { font-weight: 600; font-size: 0.93rem; line-height: 1.3; }
.ex-note { font-size: 0.85rem; color: var(--ink-soft); }
.ex-note b { font-weight: 600; }
.ex.is-viral .ex-note b { color: var(--hot); }
.ex.is-flop .ex-note b { color: var(--cold); }
.outside { display: grid; gap: 8px; color: var(--ink-soft); font-size: 0.95rem; max-width: 70ch; }
.outside .src { display: block; font-size: 0.85rem; }
.book-all { margin-top: 10px; background: var(--stage-raised); border: 2px solid var(--outline); border-radius: var(--r-md); }
.book-all summary { cursor: pointer; padding: 14px 16px; font-weight: 600; }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--outline); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table-wrap th, .table-wrap td { padding: 8px 14px; text-align: left; }
.table-wrap td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-wrap thead th { background: var(--stage); font-weight: 600; white-space: nowrap; }
.table-wrap tbody tr + tr { border-top: 1px solid var(--stage-line); }
.table-wrap tbody th { font-weight: 500; }
.table-wrap .is-helps td:nth-child(2) { color: var(--hot); font-weight: 600; }
.table-wrap .is-hurts td:nth-child(2) { color: var(--cold); font-weight: 600; }
.book-fine { display: grid; gap: 10px; padding: 14px 16px 18px; border-top: 2px solid var(--outline); color: var(--ink-soft); font-size: 0.93rem; }
.book-fine p { max-width: 70ch; }
.book-fine b { color: var(--ink); font-weight: 600; }

/* ───────────── how it works ───────────── */
.how { width: min(92vw, 680px); max-height: 88dvh; padding: 0; color: var(--ink); background: var(--stage-raised); border: 3px solid var(--outline); border-radius: var(--r-md); box-shadow: 0 10px 0 var(--outline); }
.how::backdrop { background: oklch(0.13 0.05 268 / 0.78); }
.how-inner { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: calc(88dvh - 6px); }
.how-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 2px solid var(--outline); }
.how-head h2 { font: 400 2rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.how-body { overflow: auto; padding: 20px 22px 26px; display: grid; grid-auto-rows: max-content; gap: 12px; }
.how-body p, .how-steps { max-width: 64ch; color: var(--ink-soft); }
.how-body b { color: var(--ink); font-weight: 600; }
.how-body h3 { font: 600 1rem/1.3 var(--body); margin-top: 8px; }
.how-steps { list-style: decimal; padding-left: 1.3em; display: grid; gap: 8px; }

/* agree before play: one short card, one button */
.gate { width: min(92vw, 460px); }
.gate-inner { display: grid; gap: 14px; padding: 26px 26px 22px; }
.gate h2 { font: 400 2.2rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.gate p { color: var(--ink-soft); }
.gate p a { color: var(--ink); font-weight: 600; }
.gate .btn-go { width: 100%; margin-top: 4px; }
.gate-note { font-size: 0.85rem; text-align: center; }

/* terms and privacy: plain reading pages */
.legal { width: min(100%, 760px); margin: 0 auto; padding: 20px var(--pad) 72px; display: grid; gap: 14px; }
.legal-back { justify-self: start; text-decoration: none; }
.legal h1 { font: 400 clamp(2.4rem, 7vw, 3.6rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; margin-top: 6px; }
.legal h2 { font: 600 1.2rem/1.3 var(--body); margin-top: 16px; }
.legal h3 { font: 600 1rem/1.3 var(--body); margin-top: 4px; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.6; max-width: 68ch; }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); }
.legal ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.legal-date { font-size: 0.9rem; }
.legal-short { display: grid; gap: 10px; padding: 16px 20px 18px; background: var(--stage-raised); border: 2px solid var(--outline); border-radius: var(--r-md); }
.legal-short h2 { margin-top: 0; }
.legal-missing { padding: 1px 6px; border-radius: 4px; background: var(--yellow); color: var(--outline); font-weight: 600; }

/* ───────────── short laptop screens: keep the menu on one screen ───────────── */
@media (max-height: 780px) and (min-width: 761px) {
  .logo { font-size: clamp(3rem, 7.4vw, 4.3rem); margin-bottom: 8px; }
  .tagline { margin-bottom: 14px; font-size: 1.05rem; }
  .setup { gap: 11px; }
  .lens { gap: 4px; }
  .lens .seg span { padding-block: 6px; }
  .mode-body { padding: 12px 14px 14px; }
  .mode-art { margin-bottom: 4px; }
  .btn-play { font-size: 1.9rem; padding: 12px; }
  .menu-bar { padding-top: 12px; }
  .menu-main { padding-bottom: 12px; }
  .menu-foot { padding-block: 6px 8px; }
  .round { padding-top: 6px; padding-bottom: 4px; }
  .credit { padding-block: 0 6px; }
  .hud { padding-block: 10px; }
  .stage { gap: 14px; }
  .stage.gut { width: min(100%, clamp(520px, calc((100dvh - 424px) * 16 / 9), 900px)); }
  .verdict { font-size: 2rem; gap: 12px; }
  .reveal { gap: 10px; }
  .lessons { padding-top: 10px; gap: 6px; }
}

/* ───────────── small screens ───────────── */
@media (max-width: 760px) {
  .modes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .answers-bands { gap: 6px; }
  .ans-band { padding: 18px 2px; }
  .ans-band .ans-word { font-size: clamp(1.05rem, 5.2vw, 1.6rem); }
  .ans-band .ans-desc { display: none; }
  .mode-body { padding: 10px 8px 12px; gap: 2px; }
  .mode-art { margin-bottom: 4px; }
  .mode-art i { width: 26px; }
  .mode-art-bars { height: 19px; }
  .mode-art-bars i { width: 7px; }
  .mode-name { font-size: 1.3rem; }
  .mode-desc { font-size: 0.84rem; line-height: 1.3; text-wrap: balance; }
  .go-row { grid-template-columns: 1.5fr 1fr; gap: 10px; position: sticky; bottom: 10px; z-index: 5; }
  .btn-play { font-size: 1.8rem; padding: 14px 10px; }
  .btn-versus { font-size: 1.1rem; padding: 14px 8px; white-space: normal; line-height: 1.05; }
  /* categories become one swipeable row so Play is never far away */
  .setup .chips, .book-tabs .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding: 2px var(--pad) 6px; }
  .setup .chips::-webkit-scrollbar, .book-tabs .chips::-webkit-scrollbar { display: none; }
  .setup .chip span, .book-tabs .chip span { white-space: nowrap; }
  .glance-cols { grid-template-columns: 1fr; }
  .effect { grid-template-columns: 54px 1fr; gap: 10px; }
  .range-axis { margin-left: 64px; }
  .lens .seg span { padding: 9px 4px; font-size: 0.86rem; }
  .scales { gap: 6px; }
  .scales li { padding: 6px 8px 8px; }
  .scale-name { font-size: 0.72rem; }
  .scale-num { font-size: 0.78rem; }
  .options-body, .vs-choices, .lobby-settings { grid-template-columns: 1fr; }
  .menu-bar { flex-direction: column; align-items: flex-start; }
  .hud { grid-template-columns: auto 1fr; }
  .hud-mid { grid-column: 1 / -1; grid-row: 2; }
  .pips li { width: 16px; }
  .stage.gut, .stage.pair, .stage.rank { width: 100%; }
  .ans { grid-template-columns: 1fr; grid-template-areas: "word" "desc"; padding: 12px 12px 14px; }
  .ans-word { font-size: 2rem; }
  .ans-desc { font-size: 0.82rem; line-height: 1.3; }
  .answers { position: sticky; bottom: 10px; z-index: 5; }
  .trio { grid-template-columns: 1fr; }
  .rank-item .card { grid-template-columns: 46% 1fr; grid-template-areas: "thumb badge" "thumb title" "thumb meta"; grid-template-rows: auto auto 1fr; align-content: start; column-gap: 14px; }
  .rank-item .thumb { grid-area: thumb; margin: 0; align-self: start; }
  .rank-item .vtitle { grid-area: title; }
  .rank-item .vmeta { grid-area: meta; }
  .badge { grid-area: badge; font-size: 1.05rem; min-width: 44px; margin: 0 0 4px; padding: 3px 8px 4px; }
  .rank-actions { position: sticky; bottom: 10px; z-index: 5; }
  .rank-actions .btn-go { flex: 1; }
  .reveal-slot { margin-left: auto; }
  .recap li { gap: 12px; }
  .recap-thumbs { width: 84px; }
  .recap-thumbs.n2 { width: 104px; }
  .recap-thumbs.n3 { width: 120px; }
  .play > summary { grid-template-columns: 62px 1fr; }
  .play-tone { grid-column: 2; }
  .lobby-share { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .duo { grid-template-columns: 1fr; }
  .ex-pair > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .wall-strip, .stamp, .badge, .res-title { animation: none; }
  .btn-go, .btn-quiet, .ans, .card, .mode-body, .switch-box::after { transition: none; }
}
