@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/bebas-neue-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/inter-latin-wght-normal.woff2) format("woff2"); }

:root {
  --bg: #0b1511; --surface: #12201a; --surface-2: #172a22; --line: rgba(233, 240, 230, .12); --line-2: rgba(233, 240, 230, .22);
  --text: #e9f0e6; --muted: #a3b8ab; --faint: #7d9487;
  --accent: #f2c14e; --accent-ink: #1d1604; --bad: #ff8a8a; --good: #6be39a;
  --t-deep: #f2c14e; --t-rare: #b99cff; --t-sharp: #5fe09a; --t-known: #74b9ff; --t-chalk: #cdd6d0; --t-miss: #3d4c45;
  --display: "Bebas Neue", "Oswald", Impact, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px; --gutter: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1200px 500px at 70% -10%, rgba(242, 193, 78, .07), transparent 60%),
              repeating-linear-gradient(90deg, transparent 0 119px, rgba(233, 240, 230, .025) 119px 120px); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffd77a; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1; }
h2 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.small { font-size: .86rem; color: var(--muted); }
kbd { font: 600 .7rem var(--body); border: 1px solid currentColor; border-radius: 4px; padding: 1px 5px; margin-left: 6px; opacity: .65; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(11, 21, 17, .92); z-index: 5; }
.header-row { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--display); font-size: 1.65rem; letter-spacing: .04em; line-height: 1; padding-top: 3px; }
.brand-tag { color: var(--faint); font-size: .8rem; display: none; }
.tabs { display: flex; gap: 4px; width: 100%; }
.tabs a { flex: 1; text-align: center; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .86rem; padding: 7px 4px; border-radius: 9px; border: 1px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); background: var(--surface); }
.tabs a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--text); border-radius: 9px 9px 4px 4px; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 .95rem var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #ffd56e; color: var(--accent-ink); }
.btn:disabled { opacity: .5; cursor: default; }
.linkish { background: none; border: 0; padding: 4px 2px; color: var(--muted); font: inherit; font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--text); }
.chip { display: inline-block; font: 700 .72rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; color: #0b1511; background: var(--t-chalk); white-space: nowrap; }
.chip.deep { background: var(--t-deep); } .chip.rare { background: var(--t-rare); } .chip.sharp { background: var(--t-sharp); }
.chip.known { background: var(--t-known); } .chip.chalk { background: var(--t-chalk); } .chip.miss { background: var(--t-miss); color: var(--text); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); text-decoration: none; font-size: .86rem; font-weight: 600; }
.pill:hover { color: var(--text); border-color: var(--text); }
.pill.on { color: var(--text); background: var(--surface-2); border-color: var(--text); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- game layout ---------- */
.game-shell { padding: 16px 0 28px; }
.game-grid { display: grid; gap: 18px; }
.game-main { min-width: 0; }
.game-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.game-head h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.game-head .lede { flex-basis: 100%; order: 3; margin: 2px 0 0; color: var(--muted); font-size: .95rem; max-width: 62ch; }
.game-head .day-tag { margin: 0; color: var(--faint); font-weight: 600; font-size: .85rem; }
.game-head .pills { flex-basis: 100%; order: 4; margin-top: 8px; }

.game { padding: 16px; position: relative; overflow: hidden; scroll-margin-top: 8px; }
.hud { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .88rem; color: var(--muted); }
.hud b { color: var(--text); font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: .03em; vertical-align: -2px; }
.hud-score { text-align: right; }
.timer { position: relative; height: 26px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.timer-fill { position: absolute; inset: 0; background: linear-gradient(90deg, #3d8f62, var(--t-sharp)); transform-origin: left center; transition: transform .1s linear; }
.timer.hurry .timer-fill { background: linear-gradient(90deg, #c0563f, var(--bad)); }
.timer-n { position: relative; display: block; text-align: center; font: 400 1.25rem/26px var(--display); letter-spacing: .05em; color: #071009; }
.prompt-meta { margin: 0 0 6px; color: var(--faint); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.prompt { font-size: clamp(1.4rem, 3.2vw, 2.05rem); line-height: 1.2; margin: 0 0 6px; font-weight: 750; letter-spacing: -.01em; }
.prompt-note { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.guess { display: flex; gap: 8px; }
.guess input { flex: 1; min-width: 0; height: 54px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #0a130f; color: var(--text); font: 600 1.15rem var(--body); padding: 0 14px; }
.guess input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 193, 78, .2); }
.guess .btn { height: 54px; padding: 0 20px; }
.shake { animation: shake .32s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.stage-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; }
.feedback { margin: 0; min-height: 1.5em; color: var(--muted); font-size: .9rem; }
.feedback.bad { color: var(--bad); }
.dots { list-style: none; display: flex; gap: 6px; padding: 0; margin: 16px 0 0; }
.dots li { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.dots li.now { border-color: var(--accent); }
.dots .is-deep { background: var(--t-deep); } .dots .is-rare { background: var(--t-rare); } .dots .is-sharp { background: var(--t-sharp); }
.dots .is-known { background: var(--t-known); } .dots .is-chalk { background: var(--t-chalk); } .dots .is-miss { background: var(--t-miss); }

/* reveal after each prompt */
.reveal-q { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.hit { border-radius: 12px; padding: 14px 16px; background: var(--surface-2); border: 1.5px solid var(--t-chalk); }
.hit.tier-deep { border-color: var(--t-deep); background: linear-gradient(90deg, rgba(242, 193, 78, .14), var(--surface-2)); }
.hit.tier-rare { border-color: var(--t-rare); } .hit.tier-sharp { border-color: var(--t-sharp); } .hit.tier-known { border-color: var(--t-known); }
.hit.tier-miss { border-color: var(--t-miss); }
.hit-name { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin: 8px 0 2px; line-height: 1.15; }
.hit-desc { color: var(--muted); font-size: .85rem; margin: 0 0 6px; }
.hit-score { margin: 0; color: var(--muted); }
.hit-score b { color: var(--text); font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .03em; vertical-align: -3px; }
.est { font-size: .72rem; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; }
.first { margin: 8px 0 0; color: var(--accent); font-weight: 700; }
.reveal-more { display: grid; gap: 14px; margin: 14px 0; }
.more-h { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; }
.reveal-more ol, .reveal-more ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.reveal-more li { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 5px 9px; font-size: .88rem; }
.reveal-more .chip { font-size: .66rem; padding: 3px 6px; }
.reveal-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.report-inline { display: flex; gap: 8px; margin-top: 10px; }
.report-inline input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: #0a130f; color: var(--text); padding: 0 12px; font: inherit; }

/* summary */
.summary { text-align: center; }
.sum-label { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; }
.sum-score { margin: 0; font-family: var(--display); line-height: 1; }
.sum-score b { font-weight: 400; font-size: 5rem; color: var(--text); }
.sum-score span { font-size: 1.8rem; color: var(--muted); }
.sum-grid { display: flex; justify-content: center; gap: 6px; margin: 8px 0 10px; }
.sq { display: inline-block; width: 30px; height: 30px; border-radius: 7px; background: var(--t-chalk); }
.sq.deep { background: var(--t-deep); } .sq.rare { background: var(--t-rare); } .sq.sharp { background: var(--t-sharp); }
.sq.known { background: var(--t-known); } .sq.chalk { background: var(--t-chalk); } .sq.miss { background: var(--t-miss); }
.sum-links { color: var(--muted); font-size: .9rem; }
.game.is-summary .hud, .game.is-summary .dots { display: none; }
.timer.stopped .timer-fill { background: var(--surface-2); }
.timer.stopped .timer-n { color: var(--muted); font-family: var(--body); font-size: .8rem; font-weight: 700; letter-spacing: 0; }
.sum-rank { font-weight: 700; margin: 0 0 6px; min-height: 1.5em; }
.sum-actions, .sum-next { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0 6px; }
.share-note { min-height: 1.4em; white-space: pre-line; }
.sum-list { list-style: none; padding: 0; margin: 14px 0 6px; text-align: left; display: grid; gap: 6px; }
.sum-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; font-size: .88rem; }
.sum-list .sq { grid-row: span 2; width: 18px; height: 18px; border-radius: 5px; }
.sum-q { color: var(--muted); font-size: .8rem; }
.sum-a { grid-column: 2; font-weight: 700; }
.sum-list b { grid-row: 1 / span 2; grid-column: 3; font-family: var(--display); font-weight: 400; font-size: 1.4rem; }

/* side panel */
.side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.side-card { padding: 16px; }
.side-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 10px; }
.ladder { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.ladder li { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.ladder .chip { text-align: center; font-size: .66rem; padding: 5px 4px; }
.ladder b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--text); min-width: 2.2em; text-align: right; }
.modes { margin-top: 14px; }
.modes-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin-bottom: 8px; }
.modes-head .side-h { margin: 0; }
.mode-list { display: grid; gap: 6px; }
.mode-link { position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.mode-link:hover { border-color: var(--accent); color: var(--text); }
.mode-link.on { border-color: var(--line-2); background: var(--surface-2); }
.mode-link > span:first-child { white-space: nowrap; font-size: .95rem; text-align: center; }
.mode-link small { display: block; color: var(--muted); font-size: .78rem; }
.mode-link b { font-size: .92rem; }
.mode-link i { font-style: normal; font-weight: 700; color: var(--good); font-size: .85rem; }
.next-reset { margin: 0; }

/* ---------- bands & pages ---------- */
.band { padding: 26px 0; border-top: 1px solid var(--line); }
.band-alt { background: rgba(23, 42, 34, .35); }
.band h2 { font-size: 1.05rem; }
.band p { color: var(--muted); }
.cols2, .cols3 { display: grid; gap: 4px 28px; }
.page-head { padding: 28px 0 14px; }
.page-head .lede { color: var(--muted); max-width: 70ch; }
.prose { max-width: 780px; padding-bottom: 40px; }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose li { margin-bottom: .35em; }
.prose p, .prose li { color: #d3ddd6; }
.notice { background: rgba(107, 227, 154, .12); border: 1px solid rgba(107, 227, 154, .4); border-radius: 10px; padding: 12px 14px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }

.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.jump .day-nav { margin: 0 0 0 6px; gap: 14px; justify-content: flex-start; }
.day-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-weight: 600; font-size: .92rem; margin: 6px 0; }
.answers-wrap { padding-bottom: 20px; }
.answers-game { margin-bottom: 30px; }
.answers-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; margin-bottom: 12px; }
.answers-head h2 { margin: 0; font-size: 1.4rem; }
.answer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.answer-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.answer-card h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 10px 0 8px; }
.answer-cols { display: grid; gap: 4px 24px; }
.common { margin: 0; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 5px; }
.common li { counter-increment: c; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .92rem; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.common li::before { content: counter(c); color: var(--faint); font-size: .78rem; width: 1.4em; }
.ans-name { flex: 1; min-width: 0; }
.deep-list { margin: 0 0 6px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.deep-list li { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; font-size: .88rem; }
.checker { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.checker label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.checker-row { display: flex; gap: 8px; margin: 6px 0 4px; max-width: 460px; }
.checker input { flex: 1; min-width: 0; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: #0a130f; color: var(--text); padding: 0 12px; font: inherit; }
.checker .btn { min-height: 42px; }
.checker p { margin: 0; min-height: 1.3em; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; color: var(--muted); vertical-align: 1px; }

.archive { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.arch-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.arch-links { display: flex; flex-wrap: wrap; gap: 6px; }
.arch-links a { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 8px; text-decoration: none; font-size: .86rem; font-weight: 600; color: var(--text); }
.arch-links a.arch-ans { border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding-left: 4px; }
.arch-links a.played::before { content: "✓ "; color: var(--good); }
.arch-links a:hover { border-color: var(--accent); }


.report { display: grid; gap: 6px; max-width: 560px; margin-bottom: 20px; }
.report label { font-weight: 600; font-size: .9rem; margin-top: 8px; }
.report input, .report select, .report textarea { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: #0a130f; color: var(--text); font: inherit; padding: 8px 12px; }
.report button { justify-self: start; margin-top: 10px; }

.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-tiles div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.stat-tiles b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.4rem; color: var(--accent); line-height: 1; }
.stat-tiles span { color: var(--muted); font-size: .82rem; }
.stat-list { list-style: none; padding: 0; display: grid; gap: 4px; }
.stat-list li { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; border-bottom: 1px solid var(--line); padding: 6px 0; }

/* ---------- footer & consent ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 10px; color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; gap: 20px; }
.footer-grid nav { display: grid; gap: 6px; align-content: start; }
.footer-grid nav a { color: var(--muted); text-decoration: none; }
.footer-grid nav a:hover { color: var(--text); }
.footer-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 0 4px; font-weight: 700; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.4rem; color: var(--text); margin-bottom: 8px; }
.footer-legal { font-size: .8rem; color: var(--faint); }
.consent-panel { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); max-width: 520px; font-size: .9rem; }
.consent-title { font-weight: 700; margin-bottom: 4px; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .tabs { width: auto; }
  .tabs a { flex: none; padding: 7px 12px; font-size: .9rem; }
  .brand-tag { display: inline; }
  .game { padding: 22px 24px; }
  .reveal-more { grid-template-columns: 1fr 1fr; }
  .cols2 { grid-template-columns: 1fr 1fr; }
  .answer-cols { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .cols3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) and (min-height: 501px) {
  .game-shell { padding-top: 26px; }
  .game-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
  .game { padding: 28px 32px; }
  .mode-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mode-link { grid-template-columns: 1fr; gap: 2px; align-content: start; padding: 12px; }
  .mode-link i { position: absolute; }
  .side { position: sticky; top: 16px; }
}
/* phone held sideways: one screen of game, secondary text hidden */
@media (min-width: 600px) and (max-height: 500px) {
  .site-header { position: static; }
  .header-row { padding-top: 6px; padding-bottom: 6px; flex-wrap: nowrap; }
  .brand-tag { display: none; }
  .brand-name { font-size: 1.35rem; }
  .tabs a { padding: 5px 9px; font-size: .82rem; }
  .game-shell { padding-top: 8px; }
  .game-head { margin-bottom: 6px; }
  .game-head h1 { font-size: 1.7rem; }
  .game-head .lede { display: none; }
  .game { padding: 12px 16px; }
  .hud { margin-bottom: 8px; }
  .prompt { font-size: 1.3rem; }
  .prompt-note { margin-bottom: 8px; }
  .guess input, .guess .btn { height: 46px; }
  .dots { margin-top: 10px; }
  .game-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
  .sum-score b { font-size: 3.6rem; }
}
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } .timer-fill { transition: none; } }

@media (min-width: 1000px) and (min-height: 501px) {
  .mode-link .mode-ico { text-align: left; }
  .mode-link i { top: 10px; right: 12px; }
}
@media (min-width: 600px) and (max-height: 500px) {
  .page-head { padding: 10px 0 6px; }
  .page-head h1 { font-size: 1.8rem; }
  .page-head .lede { font-size: .88rem; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hit { padding: 10px 12px; }
  .hit-desc { display: none; }
  .reveal-q { font-size: .82rem; margin-bottom: 6px; }
  .hit-name { font-size: 1.3rem; margin-top: 4px; }
  .reveal-actions { margin-top: 10px; }
}
.reveal-actions { margin-top: 12px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ================= match scene ================= */
.game { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "pitch" "stage" "dots"; }
.game > .pitch { grid-area: pitch; }
.game > .hud { grid-area: pitch; align-self: start; position: relative; z-index: 3; }
.game > .stage, .game > .reveal { grid-area: stage; min-width: 0; }
.game > .dots { grid-area: dots; }
.pitch { position: relative; overflow: hidden; margin: -16px -16px 14px; aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0;
  background: #070c15; container-type: inline-size; isolation: isolate; }
.pitch canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s, filter .35s; }
.pitch.is-3d canvas { opacity: 1; }
.pitch.is-3d .p2d { visibility: hidden; }
.pitch.is-freeze canvas { filter: grayscale(.9) contrast(1.15) brightness(.85); }
/* scorebug: the HUD sits on the pitch like a TV score bar */
.game > .hud { margin: 0; padding: 5px 6px 5px 10px; gap: 10px; border-radius: 10px; background: rgba(6, 11, 10, .82); border: 1px solid rgba(233, 240, 230, .14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35); font-size: .78rem; color: #c4d3ca; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.game > .hud b { font-size: 1.2rem; }
.game > .hud .timer { height: 22px; }
.game > .hud .timer-n { line-height: 22px; font-size: 1.1rem; }
.game > .hud .hud-score b { color: var(--accent); }
/* overlay: captions, keeper bubble, transitions */
.pitch-ov { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.cap { position: absolute; left: 0; bottom: 7%; margin: 0; padding: 6px 22px 4px 18px; max-width: 92%; opacity: 0; transform: translateX(-105%) skewX(-10deg);
  background: #e9f0e6; color: #0b1511; box-shadow: 6px 6px 0 rgba(0, 0, 0, .4); transition: opacity .35s, transform .35s; }
.cap b { display: block; font: 400 clamp(1.35rem, 5.2cqw, 2.4rem)/.95 var(--display); letter-spacing: .03em; white-space: nowrap; }
.cap span { display: block; font: 800 clamp(.72rem, 2.2cqw, .95rem)/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.cap span:empty { display: none; }
.cap.on { opacity: 1; transform: translateX(0) skewX(-10deg); animation: cap-in .5s cubic-bezier(.2, 1.5, .35, 1); }
@keyframes cap-in { from { transform: translateX(-105%) skewX(-10deg); } }
.cap.tier-sharp b { font-size: clamp(1.5rem, 6cqw, 2.9rem); } .cap.tier-rare b { font-size: clamp(1.6rem, 6.8cqw, 3.3rem); } .cap.tier-deep b { font-size: clamp(1.75rem, 7.8cqw, 3.8rem); }
.cap.tier-known { background: var(--t-known); } .cap.tier-sharp { background: var(--t-sharp); } .cap.tier-rare { background: var(--t-rare); }
.cap.tier-deep { background: linear-gradient(100deg, #f2c14e 0 40%, #fff4cf 48%, #f2c14e 56%) 0 0 / 250% 100%; animation: cap-in .5s cubic-bezier(.2, 1.5, .35, 1), cap-shine 1.2s .4s linear 3; }
@keyframes cap-shine { to { background-position: -250% 0; } }
.cap.tier-miss { background: #0b1511; color: #f2f5f1; border-left: 6px solid var(--bad); }
.bubble { position: absolute; left: 0; top: 0; margin: 0; padding: 7px 12px; border-radius: 14px; background: #fff; color: #0b1511; font: 800 clamp(.95rem, 3.4cqw, 1.4rem)/1.2 var(--body);
  white-space: nowrap; opacity: 0; transition: opacity .2s; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; transform: translateX(-50%); }
.bubble.on { opacity: 1; }
.bubble.pop { animation: pop .35s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes pop { from { scale: .4; } }
.wipe { position: absolute; inset: 0 -60%; transform: translateX(-110%); background: linear-gradient(110deg, transparent 0 28%, #f2c14e 28% 36%, #0b1511 36% 64%, #f2c14e 64% 72%, transparent 72%); }
.wipe.go { animation: wipe .5s cubic-bezier(.6, 0, .3, 1); }
@keyframes wipe { from { transform: translateX(-75%); } to { transform: translateX(75%); } }
.flash { position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen; }
.flash.go { animation: flash .45s ease-out; }
@keyframes flash { from { opacity: .42; } to { opacity: 0; } }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height .3s; }
.bars::before { top: 0; } .bars::after { bottom: 0; }
.is-slowmo .bars::before, .is-slowmo .bars::after { height: 11%; }
.mute { position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(233, 240, 230, .25);
  background: rgba(6, 11, 10, .7); color: var(--text); cursor: pointer; padding: 0; }
.mute:hover { border-color: var(--accent); }
.mute .mute-off, .mute.is-muted .mute-on { display: none; }
.mute.is-muted .mute-off { display: inline; }
.hit.slam { animation: slam .55s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes slam { from { opacity: 0; transform: scale(1.18) rotate(-1.5deg); } }

/* ---------- 2D pitch (before the 3D scene loads, and the fallback) ---------- */
.p2d { position: absolute; inset: 0; }
.p2d i { position: absolute; display: block; }
.p-sky { inset: 0; background: radial-gradient(70% 50% at 50% 30%, #1b2638, #070c15 70%); }
.p-lights { left: 4%; right: 4%; top: 5%; height: 14%;
  background: radial-gradient(circle at 6% 50%, #fff7dd 0 3px, rgba(255, 240, 200, .45) 5px, transparent 34px), radial-gradient(circle at 94% 50%, #fff7dd 0 3px, rgba(255, 240, 200, .45) 5px, transparent 34px),
    radial-gradient(circle, rgba(255, 246, 216, .85) 0 1.5px, transparent 2.5px) 0 50% / 8% 100% repeat-x; }
.p-crowd { left: 0; right: 0; top: 20%; height: 27%; background: radial-gradient(circle, rgba(220, 210, 190, .38) 0 1.6px, transparent 2.4px) 0 0 / 7px 6px, radial-gradient(circle, rgba(242, 193, 78, .3) 0 1.6px, transparent 2.4px) 3px 3px / 11px 9px, linear-gradient(#161e2b, #263247); }
.p-crowd::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: #f2c14e; }
.p-grass { left: -30%; right: -30%; bottom: -4%; height: 58%; transform-origin: 50% 100%; transform: perspective(180px) rotateX(42deg);
  background: repeating-linear-gradient(90deg, #2f7a3c 0 6%, #286c34 6% 12%); }
.p-goal { left: 50%; top: 27%; width: 38%; height: 22%; transform: translateX(-50%); border: 3px solid #f4f6f2; border-bottom: 0;
  background: repeating-linear-gradient(0deg, rgba(240, 244, 240, .35) 0 1px, transparent 1px 7px), repeating-linear-gradient(90deg, rgba(240, 244, 240, .35) 0 1px, transparent 1px 7px), rgba(0, 0, 0, .25); }
.p-posts { display: none !important; left: 50%; top: 6%; width: 18%; height: 34%; transform: translateX(-50%); border: solid #f2c14e; border-width: 0 4px; }
.p-posts::before { content: ""; position: absolute; left: -4px; right: -4px; bottom: 0; height: 4px; background: #f2c14e; }
.p-posts::after { content: ""; position: absolute; left: calc(50% - 2px); top: 100%; width: 4px; height: 40%; background: #f2c14e; }
.sport-nfl .p-posts { display: block !important; }
.sport-nfl .p-goal, .sport-nfl .p-keeper { display: none; }
.p-keeper { left: 50%; top: 35%; width: 5.5%; height: 12%; transform: translateX(-50%); transform-origin: 50% 100%; background: #16c2ae; border-radius: 45% 45% 12% 12%; }
.p-keeper::before { content: ""; position: absolute; left: 18%; top: -40%; width: 64%; aspect-ratio: 1; border-radius: 50%; background: #8a5636; }
.p-keeper::after { content: ""; position: absolute; left: -55%; top: 12%; width: 210%; height: 18%; border-radius: 6px; background: #0c6d63; }
.p-ball { left: 50%; top: 84%; width: clamp(12px, 4cqw, 26px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 35%, #fff 0 30%, #dfe3e0 60%, #9ea6a2); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.sport-nfl .p-ball { border-radius: 50% / 38%; width: clamp(14px, 4.6cqw, 30px); background: radial-gradient(circle at 35% 35%, #a65a2c, #6b3519); }
/* outcomes: the class sets the end state, the animation only describes where it came from */
.o-l { --gx: 37%; --kx: 62%; --kr: 72deg; } .o-r { --gx: 63%; --kx: 38%; --kr: -72deg; } .o-mid { --gx: 51%; --kx: 34%; --kr: -72deg; }
.o-top { --gy: 31%; }
.o-goal .p-ball, .o-save .p-ball, .o-post .p-ball, .o-bar .p-ball, .o-held .p-ball, .o-crowd .p-ball { animation: p-shot .45s cubic-bezier(.25, .7, .4, 1) both; }
@keyframes p-shot { from { left: 50%; top: 84%; transform: translate(-50%, -50%) scale(1); } }
.o-goal .p-ball { left: var(--gx, 50%); top: var(--gy, 42%); transform: translate(-50%, -50%) scale(.5); }
.o-goal .p-keeper, .o-save .p-keeper { left: var(--kx); transform: translateX(-50%) rotate(var(--kr)); animation: p-dive .4s .08s ease-out both; }
@keyframes p-dive { from { left: 50%; transform: translateX(-50%) rotate(0); } }
.o-save { --kx: var(--gx); } .o-save.o-l { --kr: -72deg; } .o-save.o-r { --kr: 72deg; }
.o-save .p-ball { left: var(--gx); top: 39%; transform: translate(-50%, -50%) scale(.5); }
.o-post .p-ball { left: 31%; top: 38%; transform: translate(-50%, -50%) scale(.5); }
.o-post.o-r .p-ball { left: 69%; }
.o-bar .p-ball { left: var(--gx); top: 26%; transform: translate(-50%, -50%) scale(.48); }
.o-post .p-goal, .o-bar .p-goal { animation: p-clang .35s .4s 2; }
@keyframes p-clang { 50% { translate: 3px 0; } }
.o-goal .p-goal { animation: p-net .5s .4s; }
.o-goal.t-rare .p-goal, .o-goal.t-deep .p-goal { animation: p-net .5s .4s 3; }
@keyframes p-net { 40% { scale: 1.06 1.1; } }
.t-rare .p-lights, .t-deep .p-lights, .o-summary .p-lights { animation: p-flood .18s .45s 8 alternate; }
@keyframes p-flood { to { filter: brightness(2.2); } }
.t-sharp .p-crowd, .t-rare .p-crowd, .t-deep .p-crowd, .o-summary .p-crowd, .o-crowd .p-crowd { animation: p-cheer .22s .45s 10 alternate; }
@keyframes p-cheer { to { background-position: 0 -3px, 3px 0, 0 0; } }
.o-whistle .p2d { filter: grayscale(.9); transition: filter .3s .3s; }
.o-held .p-ball { left: 50%; top: 41%; transform: translate(-50%, -50%) scale(.5); animation-duration: 1s; }
.o-crowd .p-ball { left: 32%; top: 14%; transform: translate(-50%, -50%) scale(.35); animation-duration: .8s; }
.sport-nfl .o-goal .p-ball, .sport-nfl.o-goal .p-ball { top: 16%; left: calc(50% + (var(--gx, 50%) - 50%) / 5); }
.sport-nfl.o-save .p-ball { top: 62%; left: 50%; }
.sport-nfl.o-post .p-ball { top: 18%; left: 41%; } .sport-nfl.o-post.o-r .p-ball { left: 59%; }
.sport-nfl.o-bar .p-ball { top: 14%; left: 22%; }
.sport-nfl.o-held .p-ball { top: 64%; }
.sport-nfl.o-crowd .p-ball { top: 18%; left: 59%; }
.o-post .p-posts, .o-goal.t-rare .p-posts, .o-goal.t-deep .p-posts { animation: p-clang .3s .9s 3; }

/* ---------- scene layouts ---------- */
@media (min-width: 640px) {
  .pitch { margin: -22px -24px 16px; }
  .game > .hud { font-size: .8rem; }
}
@media (min-width: 1000px) and (min-height: 501px) {
  .pitch { margin: -28px -32px 20px; aspect-ratio: 16 / 7; }
  .game > .hud { max-width: 620px; justify-self: center; width: 100%; }
}
/* phone held sideways: scene on the left, prompt and input on the right, side panel moves below */
@media (min-width: 600px) and (max-height: 500px) {
  .game-grid { grid-template-columns: minmax(0, 1fr); }
  .game { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; grid-template-areas: "pitch stage" "pitch dots"; column-gap: 16px; }
  .pitch { margin: -12px 0 0 -16px; aspect-ratio: auto; align-self: start; position: sticky; top: 8px; height: clamp(236px, calc(100svh - 92px), 330px); border-radius: var(--radius) 0 0 var(--radius); }
  .game > .hud { margin: 0; font-size: .72rem; padding: 4px 5px 4px 8px; gap: 8px; }
  .game > .stage, .game > .reveal { align-self: center; padding-top: 4px; }
  .game > .dots { margin-top: 8px; }
  .cap b { font-size: clamp(1.5rem, 9cqw, 2.6rem); }
  .game.is-summary { grid-template-rows: auto; grid-template-areas: "pitch stage"; }
  .game.is-summary > .reveal { align-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .pitch *, .pitch *::before, .pitch *::after, .hit.slam { animation: none !important; transition: none !important; }
}

/* review fixes: the current-prompt cell must not look like a Deep Cut result; no keyboard hint on touch screens */
.dots li.now { border-color: var(--text); }
@media (pointer: coarse) { .reveal-actions kbd { display: none; } }
/* 2D pitch: a goal tints the net in the tier colour, so a goal never reads like a save */
.o-goal .p-goal { box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--tc, #e8eee9) 30%, transparent); }
.t-known { --tc: var(--t-known); } .t-sharp { --tc: var(--t-sharp); } .t-rare { --tc: var(--t-rare); } .t-deep { --tc: var(--t-deep); }
.o-save .p-keeper { left: var(--gx); transform: translateX(-50%) rotate(0deg); }

/* ==============================================================   FLOODLIT LAYER (feat/taste) — site shell, page heads, bands, answers,
   archive, prose. Everything below overrides by cascade order; the game
   card (.game and its children) is not touched here.
   ===================================================================== */
@font-face { font-family: "Archivo Wide"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/assets/archivo-latin-standard-italic.woff2) format("woff2"); }
:root {
  --fl-display: "Archivo Wide", "Arial Black", Impact, sans-serif;
  --fl-night: #050b08; --fl-pitch: #0d2418; --fl-pitch-2: #113020;
  --fl-chalk: #f4f7ef; --fl-gold-hot: #ffd76a; --fl-gold-deep: #c8931c;
  --fl-slash: 13deg; --fl-ease: cubic-bezier(.2, .8, .2, 1);
}
/* one display voice: extra-wide black italic caps */
.fl-type, .game-head h1, .page-head h1, .brand-name, .footer-word, .scoreline b,
.band h2, .prose h2, .answers-head h2, .side-h, .modes .side-h, .footer-h, .mode-link b, .arch-day b {
  font-family: var(--fl-display); font-style: italic; font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em;
}

/* ---------- ground: floodlights over a mown pitch ---------- */
body { background-color: var(--fl-night);
  background-image:
    radial-gradient(900px 520px at 12% -120px, rgba(255, 244, 214, .10), transparent 62%),
    radial-gradient(900px 520px at 88% -120px, rgba(255, 244, 214, .08), transparent 62%),
    linear-gradient(180deg, rgba(5, 11, 8, 0) 0, rgba(5, 11, 8, .55) 520px, var(--fl-night) 1100px),
    repeating-linear-gradient(90deg, rgba(20, 58, 37, .30) 0 160px, transparent 160px 320px),
    linear-gradient(180deg, var(--fl-pitch) 0, var(--fl-night) 1100px);
  background-size: 100% 100%, 100% 100%, 100% 1100px, 100% 1100px, 100% 1100px;
  background-repeat: no-repeat; }
body::before { display: none; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

/* ---------- header: broadcast bar with slanted tabs ---------- */
.site-header { position: relative; background: rgba(5, 11, 8, .86); border-bottom: 0; backdrop-filter: blur(8px); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line); }
.brand { gap: 10px; }
.brand .mark { width: 34px; height: 34px; transition: transform .35s var(--fl-ease); }
.brand:hover .mark { transform: rotate(-18deg); }
.brand-name { font-size: 1.5rem; padding-top: 0; letter-spacing: -.02em; }
.brand-tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 10px; margin-left: 4px; }
.tabs { gap: 2px; }
.tabs a { position: relative; isolation: isolate; border: 0; border-radius: 0; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; padding: 10px 4px; transition: color .2s; }
.tabs a::before { content: ""; position: absolute; inset: 2px 0; z-index: -1; transform: skewX(calc(var(--fl-slash) * -1)); border-radius: 3px; background: transparent; transition: background .2s, transform .2s var(--fl-ease); }
.tabs a:hover { background: none; color: var(--fl-chalk); }
.tabs a:hover::before { background: rgba(244, 247, 239, .08); }
.tabs a[aria-current="page"] { color: var(--fl-night); background: none; box-shadow: none; border-radius: 0; }
.tabs a[aria-current="page"]::before { background: var(--fl-chalk); }
.tabs a:active::before { transform: skewX(calc(var(--fl-slash) * -1)) scale(.96); }

/* ---------- shared controls: step on hover, press on click ---------- */
.btn { transition: transform .16s var(--fl-ease), background-color .16s, border-color .16s, box-shadow .16s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary:hover { box-shadow: 0 8px 24px rgba(242, 193, 78, .3); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- game page head (around the card) ---------- */
.game-shell { position: relative; isolation: isolate; }
.game-shell::before { content: ""; position: absolute; z-index: -1; pointer-events: none; top: 0; bottom: 0; right: 0; width: min(46vw, 640px);
  background: linear-gradient(calc(90deg + var(--fl-slash)), transparent 0 38%, rgba(242, 193, 78, .10) 38% 41%, transparent 41% 46%, rgba(242, 193, 78, .05) 46% 47%, transparent 47%); }
.game-head { position: relative; gap: 6px 16px; margin-bottom: 16px; }
.game-head h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); line-height: .92; color: var(--fl-chalk); text-shadow: 0 2px 0 rgba(0, 0, 0, .4); animation: fl-slam .7s var(--fl-ease) both; }
.game-head h1::after { content: ""; display: block; height: .14em; width: 2.6em; margin-top: .14em; background: var(--accent); transform: skewX(calc(var(--fl-slash) * -1)); transform-origin: left; animation: fl-wipe .8s .15s var(--fl-ease) both; }
.game-head .day-tag { order: -1; flex-basis: 100%; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.game-head .day-tag::before { content: ""; display: inline-block; width: 18px; height: 10px; margin-right: 8px; background: var(--accent); transform: skewX(calc(var(--fl-slash) * -1)); vertical-align: 0; }
.game-head .lede { color: #c4d3c9; font-size: 1rem; max-width: 60ch; }
@keyframes fl-slam { from { transform: translateX(-28px) skewX(-8deg); } to { transform: none; } }
@keyframes fl-wipe { from { transform: skewX(calc(var(--fl-slash) * -1)) scaleX(0); } to { transform: skewX(calc(var(--fl-slash) * -1)) scaleX(1); } }

/* today's games: ticket-style cards */
.modes { margin-top: 20px; }
.modes .side-h, .side-h { font-size: .86rem; color: var(--fl-chalk); letter-spacing: .01em; }
.modes .next-reset { font-size: .82rem; }
.mode-link { border-radius: 12px; border-color: var(--line-2); background: rgba(18, 32, 26, .72); transition: transform .2s var(--fl-ease), border-color .2s, background-color .2s; overflow: hidden; }
.mode-link:hover { transform: translateY(-2px); border-color: var(--fl-chalk); }
.mode-link.on { border-color: var(--fl-chalk); background: rgba(244, 247, 239, .07); }
.mode-link b { display: block; font-size: .9rem; line-height: 1.1; margin-bottom: 2px; }
.mode-link small { color: var(--muted); }
.mode-link { grid-template-columns: 48px 1fr auto; }
.mode-link > span.mode-ico { font-size: 1.15rem; text-align: left; }

/* rarity ladder: a scoreboard with a bar per tier */
.side-card { background: linear-gradient(180deg, rgba(23, 42, 34, .92), rgba(12, 22, 18, .95)); border-color: var(--line-2); border-radius: 16px; position: relative; overflow: hidden; }
.side-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--t-chalk), var(--t-known), var(--t-sharp), var(--t-rare), var(--t-deep)); }
.side-card .side-h { font-size: 1.05rem; margin: 4px 0 14px; }
.ladder { gap: 4px; }
.ladder li { grid-template-columns: 88px 1fr auto; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ladder .tier-miss { border-bottom: 0; }
.ladder .tier-deep { margin: 2px -10px; padding: 8px 10px; border: 1px solid rgba(242, 193, 78, .55); border-radius: 10px; background: rgba(242, 193, 78, .08); }
.ladder b { font-family: var(--fl-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 1.3rem; }
.ladder .tier-deep b { color: var(--accent); font-size: 1.6rem; }

/* ---------- scoreline: the one type moment on game pages ---------- */
.scoreline { position: relative; isolation: isolate; overflow: hidden; padding: 40px 0; background: var(--fl-night); border-top: 1px solid var(--line); }
.scoreline::before { content: ""; position: absolute; z-index: -1; inset: 0;
  background: repeating-linear-gradient(calc(90deg + var(--fl-slash)), rgba(20, 58, 37, .35) 0 90px, transparent 90px 180px); }
.scoreline::after { content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: 50%; width: 22px; background: var(--accent); transform: translateX(-50%) skewX(calc(var(--fl-slash) * -1)); box-shadow: 0 0 60px rgba(242, 193, 78, .45); }
.scoreline-row { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; }
.scoreline-side { margin: 0; display: grid; gap: 2px; }
.scoreline-k { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.scoreline b { font-size: clamp(4.2rem, 22vw, 6rem); line-height: .86; color: var(--fl-chalk); font-weight: 900; }
.scoreline .is-deep b { color: var(--accent); text-shadow: 0 0 40px rgba(242, 193, 78, .35); }
.scoreline .is-deep .scoreline-k { color: var(--accent); }
.scoreline-vs { justify-self: start; margin-left: 6px; font: italic 900 1rem/1 var(--fl-display); font-stretch: 125%; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 8px 14px; transform: skewX(calc(var(--fl-slash) * -1)); }
.scoreline::after { display: none; }
/* ---------- bands ---------- */
.band { padding: 40px 0; border-top: 1px solid var(--line); }
.band h2 { font-size: 1.05rem; color: var(--fl-chalk); letter-spacing: 0; margin-bottom: .6em; }
.band p { color: #b9cbbf; }
.band-steps .cols3 { counter-reset: fl-step; gap: 26px 36px; }
.band-steps .cols3 > div { counter-increment: fl-step; position: relative; padding-top: 4px; }
.band-steps .cols3 > div::before { content: "0" counter(fl-step); display: block; font: italic 900 3.4rem/1 var(--fl-display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 1.5px rgba(242, 193, 78, .75); margin-bottom: 10px; }
.band-next { background: linear-gradient(180deg, rgba(17, 48, 32, .55), rgba(5, 11, 8, .2)); }
.band-next .cols2 { gap: 18px 28px; }
.band-next .btn { margin: 4px 0 14px; }
.band-next .cols2 > div { border: 1px solid var(--line-2); border-radius: 14px; background: rgba(18, 32, 26, .6); padding: 20px 22px 6px; }

/* ---------- page heads (answers, archive, info pages) ---------- */
.page-head { position: relative; isolation: isolate; padding: 34px 0 22px; overflow: hidden; }
.page-head::before { content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(calc(90deg + var(--fl-slash)), transparent 0 64%, rgba(242, 193, 78, .10) 64% 66%, transparent 66% 70%, rgba(242, 193, 78, .05) 70% 71%, transparent 71%); }
.page-head h1 { font-size: clamp(1.8rem, 7.4vw, 3.4rem); line-height: .95; color: var(--fl-chalk); max-width: 22ch; animation: fl-slam .7s var(--fl-ease) both; }
.page-head h1::after { content: ""; display: block; height: 8px; width: 92px; margin-top: 14px; background: var(--accent); transform: skewX(calc(var(--fl-slash) * -1)); transform-origin: left; animation: fl-wipe .8s .15s var(--fl-ease) both; }
.page-head .lede { color: #c4d3c9; font-size: 1.02rem; }

/* answers: tabs as slanted pills, cards with a gold edge */
.jump { gap: 4px; margin-top: 14px; }
.jump .pill { position: relative; isolation: isolate; border: 0; border-radius: 0; padding: 10px 16px; font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: none; }
.jump .pill::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line-2); border-radius: 3px; transform: skewX(calc(var(--fl-slash) * -1)); transition: background-color .2s, border-color .2s; }
.jump .pill:hover { color: var(--fl-chalk); }
.jump .pill:hover::before { border-color: var(--fl-chalk); }
.jump .pill.on { color: var(--fl-night); background: none; }
.jump .pill.on::before { background: var(--fl-chalk); border-color: var(--fl-chalk); }
.day-nav a { text-decoration: none; }
.day-nav a:hover { text-decoration: underline; }
.answers-head { border-bottom: 0; position: relative; padding-bottom: 12px; margin-bottom: 16px; }
.answers-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line-2); height: 1px; }
.answers-head h2 { font-size: clamp(1.25rem, 4.6vw, 1.7rem); color: var(--fl-chalk); }
.answer-card { position: relative; border-radius: 14px; border-color: var(--line-2); background: linear-gradient(180deg, rgba(23, 42, 34, .9), rgba(14, 26, 21, .92)); padding: 18px; overflow: hidden; transition: border-color .2s; }
.answer-card:hover { border-color: rgba(242, 193, 78, .5); }
.answer-card h3 { font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 800; letter-spacing: -.01em; }
.answer-card h4 { color: var(--accent); letter-spacing: .12em; }
.answer-card .answer-cols > div:first-child h4 { color: var(--muted); }
.answer-cols { grid-template-columns: minmax(0, 1fr); }
.answer-cols > div { min-width: 0; }
.common li { border-bottom: 1px solid var(--line); padding: 3px 0 5px; }
.common li::before { font: italic 900 .95rem/1 var(--fl-display); font-stretch: 112%; color: var(--faint); width: 1.8em; }
.deep-list li { background: rgba(244, 247, 239, .05); border-color: transparent; color: var(--fl-chalk); font-weight: 600; }
.deep-list li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 2px; }
.checker { margin-top: 16px; background: rgba(5, 11, 8, .55); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
.checker-row { max-width: none; }
.checker label { color: var(--fl-chalk); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; }
.checker input { height: 46px; background: var(--fl-night); }
.checker input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 193, 78, .2); }
.checker .btn { min-height: 46px; }
.band-foot { background: rgba(5, 11, 8, .6); }

/* archive: a fixture list */
.archive { gap: 8px; }
.arch-row { border-radius: 12px; border-color: var(--line-2); background: linear-gradient(90deg, rgba(23, 42, 34, .92), rgba(14, 26, 21, .9)); padding: 12px 16px; transition: transform .2s var(--fl-ease), border-color .2s; }
.arch-row:hover { transform: translateY(-2px); border-color: rgba(242, 193, 78, .5); }
.arch-day { display: inline-flex; align-items: baseline; gap: 12px; color: #c4d3c9; font-weight: 600; }
.arch-day b { font-size: 1.6rem; line-height: 1; color: var(--accent); }
.arch-links a { position: relative; isolation: isolate; border: 0; border-radius: 0; padding: 9px 14px; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; font-weight: 800; }
.arch-links a::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line-2); border-radius: 3px; transform: skewX(calc(var(--fl-slash) * -1)); transition: background-color .2s, border-color .2s; }
.arch-links a:hover::before { border-color: var(--accent); background: rgba(242, 193, 78, .1); }
.arch-links a.arch-ans { color: var(--fl-chalk); text-decoration: underline; text-underline-offset: 4px; padding-left: 14px; }
.arch-links a.arch-ans::before { border-color: transparent; }
.arch-links a.arch-ans:hover::before { background: none; border-color: transparent; }

@media (max-width: 639px) { .arch-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; } .arch-links a { text-align: center; padding: 11px 4px; } }

/* info pages: readable prose with display headings */
.is-plain .prose { padding-top: 6px; }
.prose h2 { font-size: 1.1rem; color: var(--fl-chalk); margin-top: 2em; display: flex; align-items: center; gap: 12px; }
.prose h2::before { content: ""; flex: none; width: 22px; height: 10px; background: var(--accent); transform: skewX(calc(var(--fl-slash) * -1)); }
.prose p, .prose li { color: #cdd9d1; font-size: 1.02rem; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li::marker { color: var(--accent); font-weight: 800; }
.prose .table-wrap { border: 1px solid var(--line-2); border-radius: 14px; background: rgba(18, 32, 26, .7); }
.prose table td:last-child { font: italic 900 1.15rem var(--fl-display); font-stretch: 112%; color: var(--fl-chalk); }
.prose tr:last-child td { border-bottom: 0; }
.prose .table-wrap { margin-bottom: 1em; }
.prose .cta-row { margin-top: 26px; }
.report input, .report select, .report textarea { background: var(--fl-night); }

/* 404: a giant number behind the head, on the content edge */
.is-404 .page-head { padding: 60px 0 90px; }
.is-404 .page-head .wrap { position: relative; }
.is-404 .page-head .wrap::after { content: "404"; position: absolute; z-index: -1; right: var(--gutter); bottom: -110px; display: none; font: italic 900 clamp(7rem, 30vw, 15rem)/1 var(--fl-display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 2px rgba(242, 193, 78, .28); pointer-events: none; }
.is-404 .page-head .lede { max-width: 46ch; }
@media (min-width: 1000px) and (min-height: 501px) { .is-404 .page-head .wrap::after { display: block; font-size: 13rem; } .is-404 .page-head h1 { max-width: 13ch; } .is-404 .page-head { padding-bottom: 120px; } }

/* ---------- footer: statement wordmark ---------- */
.site-footer { position: relative; border-top: 0; margin-top: 0; padding-bottom: 0; background: linear-gradient(180deg, rgba(5, 11, 8, .4), var(--fl-night) 40%); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); }
.footer-brand { font-family: var(--fl-display); font-style: italic; font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 1.15rem; letter-spacing: -.01em; }
.footer-h { color: var(--accent); font-size: .8rem; letter-spacing: .02em; }
.footer-grid nav a { padding: 3px 0; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat; justify-self: start; transition: background-size .25s var(--fl-ease), color .2s; }
.footer-grid nav a:hover { background-size: 100% 1px; color: var(--fl-chalk); }
.footer-legal { max-width: 62ch; }
.footer-word { margin: 26px 0 -0.16em; font-size: calc((min(100vw, 1240px) - 2 * var(--gutter)) / 6.9); line-height: .82; color: transparent; -webkit-text-stroke: 1.5px rgba(244, 247, 239, .2); white-space: nowrap; letter-spacing: -.03em; user-select: none; }
.footer-word span { color: var(--accent); -webkit-text-stroke: 0; margin: 0 .04em; }

/* ---------- sizes ---------- */
@media (max-width: 999.98px) and (min-height: 501px) {
  .game-main { display: contents; }
  .side { order: 1; }
  .modes { order: 2; margin-top: 0; }
}
@media (min-width: 640px) {
  .tabs a { padding: 9px 16px; font-size: .8rem; }
  .game-head h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
  .answer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scoreline-row { grid-template-columns: 1fr auto 1fr; gap: 24px; }
  .scoreline-side.is-deep { text-align: right; }
  .scoreline-vs { justify-self: center; }
}
@media (min-width: 1000px) and (min-height: 501px) {
  .game-head h1 { font-size: clamp(3rem, 4.4vw, 4.1rem); }
  .mode-link { grid-template-columns: 1fr; }
  .scoreline { padding: 56px 0; }
  .scoreline b { font-size: clamp(6rem, 11vw, 10rem); }
  .scoreline::after { display: block; }
  .scoreline-vs { visibility: hidden; }
  .band { padding: 56px 0; }
  .band h2 { font-size: 1.15rem; }
  .page-head { padding: 52px 0 30px; }
  .side { top: 20px; }
}
@media (min-width: 600px) and (max-height: 500px) {
  .site-header { backdrop-filter: none; }
  .brand .mark { width: 28px; height: 28px; }
  .brand-name { font-size: 1.15rem; }
  .tabs a { padding: 6px 11px; font-size: .74rem; }
  .game-shell { padding-top: 16px; }
  .game-head h1 { font-size: 1.6rem; animation: none; }
  .game-head h1::after { display: none; }
  .game-head .day-tag { order: 2; flex-basis: 100%; font-size: .68rem; }
  .game-head .day-tag::before { display: none; }
  .page-head h1 { font-size: 1.5rem; max-width: none; animation: none; }
  .page-head h1::after { display: none; }
  .page-head .lede { font-size: .82rem; line-height: 1.45; -webkit-line-clamp: unset; display: block; margin-bottom: 8px; }
  .jump { margin-top: 6px; }
  .jump .pill { padding: 7px 12px; font-size: .72rem; }
  .answers-head { padding-bottom: 6px; margin-bottom: 10px; }
  .answers-head h2 { font-size: 1.1rem; }
  .answers-head .btn { min-height: 38px; }
  .scoreline { padding: 26px 0; }
  .scoreline b { font-size: 4.6rem; }
  .band { padding: 28px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .game-head h1, .game-head h1::after, .page-head h1, .page-head h1::after { animation: none; }
  .btn, .mode-link, .arch-row, .tabs a::before, .brand .mark, .footer-grid nav a { transition: none; }
  .btn:hover, .btn:active, .mode-link:hover, .arch-row:hover { transform: none; }
}

/* ---------- autocomplete (opens below the input, so the question stays readable) ---------- */
.game.ac-open { overflow: visible; }
.guess { position: relative; }
.ac { position: static; flex: 1; min-width: 0; display: flex; }
.ac input { width: 100%; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 4px;
  background: #0f1c16; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); max-height: min(18.5rem, 36vh); overflow-y: auto; }
.ac-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px; min-height: 44px; border-radius: 8px; cursor: pointer; }
.ac-list li b { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-list li span { color: var(--faint); font-size: .78rem; white-space: nowrap; flex: none; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--surface-2); outline: 1px solid var(--accent); }
@media (min-width: 600px) and (max-height: 500px) { .ac-list { max-height: 9.5rem; } .ac-list li { padding: 7px 10px; min-height: 36px; } }

/* ---------- /r/ highlight reel ---------- */
.reel-wrap { max-width: 980px; }
.reel .hud { grid-template-columns: auto 1fr auto; }
.reel-stage { grid-area: stage; text-align: center; }
.reel-bar { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 16px; }
.reel-bar li { flex: 1; height: 12px; border-radius: 6px; background: transparent; border: 1px dashed var(--line-2); transition: background-color .25s; }
.reel-bar li[class^="is-"] { border-style: solid; border-color: transparent; }
.reel-bar .is-miss { background: var(--t-miss); border-color: var(--line-2); }
.reel:not(.is-playing) .reel-hud { visibility: hidden; }
.reel-bar li.now { border-color: var(--accent); }
.reel-bar .is-deep { background: var(--t-deep); } .reel-bar .is-rare { background: var(--t-rare); } .reel-bar .is-sharp { background: var(--t-sharp); }
.reel-bar .is-known { background: var(--t-known); } .reel-bar .is-chalk { background: var(--t-chalk); } .reel-bar .is-miss { background: var(--t-miss); }
.reel-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.reel > .reel-stage { grid-area: stage; }
.reel-start { grid-area: pitch; place-self: center; z-index: 4; display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 26px 0 12px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 800 1.05rem var(--body); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.reel-start:hover { background: #ffd56e; }
.reel-start:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.reel-start-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); font-size: .95rem; padding-left: 3px; }
.reel-actions { align-items: center; gap: 14px; }
.reel-actions .small { margin: 0; }
.reel-end .sum-score b { font-size: 4.2rem; }
.reel-cta { min-height: 60px; padding: 0 34px; font-size: 1.2rem; margin: 10px 0 8px; }
.reel-answers { margin-top: 16px; }
/* the page a shared link opens: playing today's game is the one filled button; watching the replay is the second thing */
.reel .reel-start { background: rgba(5, 11, 8, .82); color: #f4f7ef; border: 1px solid rgba(244, 247, 239, .45); backdrop-filter: blur(6px); }
.reel .reel-start:hover { background: rgba(5, 11, 8, .92); border-color: #f4f7ef; }
.reel .reel-start-ico { background: var(--accent); color: var(--accent-ink); }
.reel-actions { flex-direction: column; }
/* Play today's game sits under the title, above the picture: on the first screen at any height and while the moment plays.
   The copy under the picture shows only where the title block has no room for it (phones held sideways). */
.reel-cta-head { order: 5; margin: 12px 0 0; min-height: 56px; padding: 0 30px; font-size: 1.1rem; }
.reel-cta-top { display: none; margin: 0; align-self: stretch; }
.reel-bar li.now { box-shadow: 0 0 0 2px #f4f7ef; }
@media (min-width: 600px) and (max-height: 500px) { .reel-cta-head { display: none; } .reel-cta-top { display: inline-flex; } }
@media (max-width: 699px) { .reel-cta-head { flex-basis: 100%; } }
/* a short laptop screen: the picture never runs past the first screen, so the caption of the moment is not cut off */
@media (min-width: 700px) and (min-height: 501px) { .reel > .pitch { aspect-ratio: auto; height: clamp(240px, calc(100svh - 330px), 428px); } }
/* phones held sideways: one line of what the game is, under the title */
@media (min-width: 600px) and (max-height: 500px) { .is-reel .game-head .lede { display: block; flex-basis: 100%; margin: 0; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.reel-foot { margin: 16px 0 0; } .reel-foot .reel-cta { width: 100%; margin: 0; }
.reel-answers .sum-list { max-width: none; }
@media (min-width: 600px) and (max-height: 500px) {
  .is-reel .game-head h1 { font-size: 1.5rem; }
  .reel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "pitch stage"; gap: 0 16px; align-items: center; }
  .reel > .pitch { margin: -12px 0 -12px -16px; border-radius: var(--radius) 0 0 var(--radius); }
  .reel > .hud { grid-area: pitch; }
  .reel-start { min-height: 50px; font-size: .95rem; }
  .reel-end .sum-score b { font-size: 3rem; }
  .reel-cta { min-height: 50px; margin: 6px 0; }
}
=======
/* local effects lab (localhost ?lab only) */
.fxlab { position: fixed; right: 12px; bottom: 12px; z-index: 30; width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 10px 12px 12px;
  background: rgba(10, 16, 14, .96); border: 1px solid var(--accent); border-radius: 12px; box-shadow: 0 12px 36px rgba(0, 0, 0, .55); font-size: .8rem; }
.fxlab-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; } .fxlab-h span { color: var(--muted); } .fxlab-h [data-x] { margin-left: auto; }
.fxlab-s { margin: 8px 0 4px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; }
.fxlab-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 4px; }
.fxlab-row .chip { min-width: 70px; text-align: center; }
.fxlab button { font: 600 .78rem var(--body); color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 5px 8px; cursor: pointer; }
.fxlab button:hover { border-color: var(--accent); } .fxlab button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- five-level moments: captions by level, speed lines, impact frame, ON FIRE, replay bug ---------- */
.cap.lv-1 b { font-size: clamp(1.45rem, 5.8cqw, 2.7rem); }
.cap.lv-2 b { font-size: clamp(1.55rem, 6.4cqw, 3rem); }
.cap.lv-3 b { font-size: clamp(1.65rem, 7cqw, 3.3rem); }
.cap.lv-4 b { font-size: clamp(1.75rem, 7.6cqw, 3.7rem); }
.cap.lv-5 b { font-size: clamp(1.85rem, 8.4cqw, 4.1rem); }
.cap.lv-4.on, .cap.lv-5.on { animation: cap-in .5s cubic-bezier(.2, 1.5, .35, 1), cap-jolt .14s .5s 3 alternate; }
.cap.tier-deep.lv-5.on, .cap.tier-deep.lv-4.on { animation: cap-in .5s cubic-bezier(.2, 1.5, .35, 1), cap-jolt .14s .5s 3 alternate, cap-shine 1.2s .4s linear 3; }
@keyframes cap-jolt { to { translate: 0 -3px; } }
.cap.is-gasp { background: linear-gradient(100deg, #ff9f43 0 40%, #ffe28a 48%, #ff9f43 56%) 0 0 / 250% 100%; color: #1a0d00; }
.cap.is-gasp.on { animation: cap-in .5s cubic-bezier(.2, 1.5, .35, 1), cap-shine 1s .3s linear 2; }
.speed { position: absolute; inset: -25%; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: repeating-conic-gradient(from 0deg at 50% 50%, transparent 0 2.4deg, rgba(255, 255, 255, .55) 2.4deg 2.8deg, transparent 2.8deg 6deg);
  -webkit-mask: radial-gradient(closest-side, transparent 42%, #000 85%); mask: radial-gradient(closest-side, transparent 42%, #000 85%); }
.speed.go { animation: speed .42s ease-out; }
.speed.go-long { animation: speed 1.3s ease-out; }
@keyframes speed { from { opacity: .85; transform: scale(1.18) rotate(4deg); } to { opacity: 0; transform: scale(1); } }
.pitch.is-impact canvas { filter: contrast(1.35) saturate(1.5) brightness(1.18); transition: none; }
.onfire { position: absolute; right: 10px; top: 46px; margin: 0; padding: 5px 11px 3px; opacity: 0; transform: skewX(-10deg); border-radius: 6px;
  font: 400 clamp(.95rem, 3.4cqw, 1.35rem)/1 var(--display); letter-spacing: .07em; color: #1a0d00;
  background: linear-gradient(180deg, #ffe28a, #ff9f43 55%, #ff5a1f); box-shadow: 0 0 16px rgba(255, 120, 40, .6); transition: opacity .25s; }
.onfire::before { content: ""; display: inline-block; width: .62em; height: .8em; margin-right: .35em; vertical-align: -.05em; background: #1a0d00;
  clip-path: polygon(50% 0, 78% 38%, 70% 18%, 100% 62%, 82% 100%, 18% 100%, 0 62%, 28% 30%, 34% 52%); }
.onfire.on { opacity: 1; animation: pop .4s cubic-bezier(.2, 1.8, .4, 1), fire-flicker .45s .4s infinite alternate; }
@keyframes fire-flicker { to { box-shadow: 0 0 26px rgba(255, 140, 40, .95); filter: brightness(1.12); } }
.bug { position: absolute; left: 10px; top: 46px; margin: 0; padding: 4px 9px 3px; opacity: 0; border-radius: 5px; background: rgba(6, 11, 10, .82);
  border: 1px solid rgba(242, 193, 78, .6); color: #e9f0e6; font: 800 clamp(.62rem, 2cqw, .8rem)/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; transition: opacity .3s; }
.bug b { color: var(--accent); }
.bug i { display: inline-block; width: .6em; height: .6em; margin-right: .45em; border-radius: 50%; background: #ff5a4f; vertical-align: .02em; }
.bug.on { opacity: 1; }
.bug.on i { animation: rec .8s steps(2) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.is-replay .bars::before, .is-replay .bars::after { height: 9%; }
.is-replay canvas { filter: saturate(.85) contrast(1.05); }

/* 2D fallback: rough equivalents of the five levels (end states; keyframes only describe where they came from) */
.p-fx { inset: 0; pointer-events: none; opacity: 0; }
.lv-1 .p-goal { animation: p-net .35s .4s 2; }
.o-curve .p-ball { animation: p-curve .6s cubic-bezier(.3, .6, .4, 1) both; }
@keyframes p-curve { from { left: 50%; top: 84%; transform: translate(-50%, -50%) scale(1); } 50% { left: calc(var(--gx, 50%) + 22%); top: 50%; } }
.o-rip .p-ball { top: 24%; transform: translate(-50%, -50%) scale(.38); }
.o-rip .p-goal::after { content: ""; position: absolute; left: calc(var(--gx, 50%) - 31% - 7%); top: 18%; width: 30%; height: 52%; border-radius: 44% 52% 48% 40%; background: rgba(7, 12, 21, .85); box-shadow: 0 0 0 2px rgba(240, 244, 240, .6); }
.o-stands .p-ball { top: 18%; transform: translate(-50%, -50%) scale(.3); }
.o-stands .p-crowd { filter: brightness(1.5) saturate(1.4); }
.o-stands .p-fx, .o-space .p-fx { opacity: 1; background: radial-gradient(circle, #f2c14e 0 2px, transparent 3px) 0 0 / 23px 19px, radial-gradient(circle, #74b9ff 0 2px, transparent 3px) 9px 7px / 29px 23px, radial-gradient(circle, #ff8a8a 0 2px, transparent 3px) 4px 12px / 31px 27px, radial-gradient(circle, #b99cff 0 2px, transparent 3px) 15px 3px / 19px 29px;
  animation: p-confetti 1.4s .45s ease-in both; }
@keyframes p-confetti { from { opacity: 0; background-position: 0 -60px, 9px -90px, 4px -40px, 15px -120px; } 20% { opacity: 1; } }
.o-space .p-ball { top: -6%; transform: translate(-50%, -50%) scale(.2); }
.o-space .p-sky { background: radial-gradient(circle at 70% 18%, #fff7d6 0 2%, #f2c14e 3%, rgba(242, 193, 78, .35) 9%, transparent 22%), radial-gradient(70% 50% at 50% 30%, #1b2638, #070c15 70%); animation: p-flood .16s .5s 6 alternate; }
.o-space .p-lights, .o-stands .p-lights { filter: brightness(1.8) hue-rotate(40deg); }
.o-block .p-ball { left: 30%; top: 70%; }
.is-fire .p-ball { box-shadow: 0 0 10px 4px rgba(255, 140, 40, .8), 0 -6px 12px rgba(255, 90, 30, .6); }
.o-space .p-fx { background: radial-gradient(circle at 78% 34%, #fff7d6 0 2.5%, #f2c14e 3.5% 5.5%, rgba(242, 193, 78, .45) 8%, transparent 16%), radial-gradient(circle, #f2c14e 0 2px, transparent 3px) 0 0 / 23px 19px, radial-gradient(circle, #74b9ff 0 2px, transparent 3px) 9px 7px / 29px 23px, radial-gradient(circle, #ff8a8a 0 2px, transparent 3px) 4px 12px / 31px 27px; }

/* captions: clear of the mute button, two lines allowed, lifted above slow-motion bars; smaller on narrow pitches */
.cap { max-width: calc(100% - 62px); }
.cap b { white-space: normal; text-wrap: balance; }
.is-slowmo .cap, .is-replay .cap { bottom: 13%; }
@container (max-width: 520px) {
  .cap.lv-1 b, .cap.lv-2 b { font-size: 1.3rem; }
  .cap.lv-3 b, .cap.lv-4 b { font-size: 1.42rem; }
  .cap.lv-5 b { font-size: 1.55rem; }
  .cap { padding: 4px 14px 3px 12px; bottom: 5%; }
  .is-slowmo .cap, .is-replay .cap { bottom: 12%; }
}
/* phone held sideways: the pitch bottom can sit below the fold, so the caption goes up under the scorebug */
@media (min-width: 600px) and (max-height: 500px) {
  .cap { bottom: auto; top: 44px; }
  .is-slowmo .cap, .is-replay .cap { bottom: auto; top: 44px; }
}
@media (min-width: 600px) and (max-height: 500px) { .bug { left: auto; right: 10px; } }
@container (max-width: 520px) { .cap.tier-miss b { font-size: 1.2rem; } }
@media (min-width: 600px) and (max-height: 500px) { .is-replay .cap { top: 74px; } }
@media (min-width: 600px) and (max-height: 500px) {
  .cap, .is-slowmo .cap { top: var(--hud-b, 44px); }
  .is-replay .cap { top: calc(var(--hud-b, 44px) + 28px); }
}

/* summary: Unlimited is the main next step after a daily game; share and answers sit below it */
.sum-more { max-width: 420px; margin: 14px auto 2px; }
.sum-more .btn-keep { width: 100%; min-height: 54px; font-size: 1.05rem; }
.sum-more .small { margin: 6px 0 0; color: var(--muted); }
.sum-actions-2 { align-items: center; gap: 6px 16px; margin-top: 10px; }
.btn-text { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { color: var(--text); }
/* Unlimited cap: shown in place when both extra games are used */
.cap-note { max-width: 420px; margin: 12px auto 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface-2); text-align: left; font-size: .92rem; }
.cap-note p { margin: 0; }
.cap-note p + p { margin-top: 6px; color: var(--muted); }
.cap-note a { font-weight: 700; }
.game.is-capped .summary { padding: 18px 0 6px; }

/* =====================================================================
   The arena (src/pages.mjs arena(), public/play.mjs).
   One block, two modes: the lobby is part of the web page; html.is-playing fixes the arena to the visual viewport.
   Three layouts, each laid out on its own:
     wide            stadium fills the screen, broadcast graphics on top, question and input in one strip along the bottom
     phone landscape same idea, everything pressed to the edges (≤500px tall)
     phone portrait  stadium on top, dock below it sitting on the keyboard */
.arena { --dock-h: 0px; --t: 1; --ink: #050b08; --chalk: #f4f7ef; --hot: #ff5a4f; --glass: rgba(5, 11, 8, .9); --edge: rgba(244, 247, 239, .16); --slash: -13deg;
  --pad: max(24px, calc((100% - 1240px) / 2));
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  background: #070c15; color: var(--chalk); }
.arena > .pitch { position: absolute; inset: 0; margin: 0; height: auto; aspect-ratio: auto; border-radius: 0; z-index: 0; align-self: stretch; justify-self: stretch; }
.arena .pitch > .mute { display: none; }
.arena-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.arena-wipe { position: absolute; inset: 0 -60%; z-index: 8; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(110deg, transparent 0 26%, #f2c14e 26% 34%, #050b08 34% 66%, #f2c14e 66% 74%, transparent 74%); }
.arena-wipe.go { animation: arena-wipe .6s cubic-bezier(.6, 0, .3, 1); }
@keyframes arena-wipe { from { transform: translateX(-80%); } to { transform: translateX(80%); } }
.arena kbd { font: 700 .62rem var(--body); letter-spacing: .04em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 4px; padding: 2px 5px; margin-left: 10px; opacity: .6; font-style: normal; font-stretch: 100%; }
@media (pointer: coarse), (hover: none), (max-width: 699px), (max-height: 500px) { .arena kbd { display: none; } }

/* ================= lobby (the web page) ================= */
.arena { height: clamp(520px, calc(100svh - 124px), 860px); }
.arena-shade { background: linear-gradient(90deg, rgba(5, 11, 8, .94) 0, rgba(5, 11, 8, .78) 30%, rgba(5, 11, 8, 0) 62%), linear-gradient(0deg, rgba(5, 11, 8, .85) 0, rgba(5, 11, 8, 0) 26%); }
.lobby { grid-row: 1 / -1; grid-column: 1; z-index: 3; align-self: center; justify-self: start; box-sizing: content-box; width: min(540px, calc(100% - 48px));
  padding: 0 24px 0 max(24px, calc((100vw - 1240px) / 2 + 16px)); }
.lobby .day-tag { margin: 0 0 12px; color: #c4d3c9; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lobby .day-tag::before { content: ""; display: inline-block; width: 18px; height: 10px; margin-right: 8px; background: var(--chalk); transform: skewX(var(--slash)); }
.lobby h1 { margin: 0 0 16px; font-family: var(--fl-display); font-style: italic; font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(3rem, 5.4vw, 5rem); line-height: .9; color: var(--chalk); text-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.lobby .lede { margin: 0; max-width: 44ch; color: #d3dfd6; font-size: 1.06rem; line-height: 1.5; }
.lobby-start { margin-top: 26px; }
.opener { margin: 0 0 16px; padding: 14px 18px 15px; border-radius: 14px; background: var(--glass); border: 1px solid var(--edge); backdrop-filter: blur(10px); }
.opener-k { margin: 0 0 5px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #a9bdb0; }
.opener-q { margin: 0; font: 800 1.3rem/1.22 var(--body); letter-spacing: -.01em; text-wrap: balance; }
.opener-q .lobby-score { font: 900 italic 2.6rem/1 var(--fl-display); font-stretch: 125%; color: var(--chalk); }
.opener-q span { color: #a9bdb0; font-size: 1.1rem; margin-left: 4px; }
.kick { display: inline-flex; align-items: center; justify-content: center; min-width: 250px; height: 66px; padding: 0 30px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 0 #9a7412, 0 18px 34px rgba(0, 0, 0, .5); transition: transform .08s, box-shadow .08s, background .15s;
  font-family: var(--fl-display); font-style: italic; font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 1.4rem; letter-spacing: -.01em; white-space: nowrap; }
.kick:hover { background: #ffd56e; }
.kick:active { transform: translateY(4px); box-shadow: 0 2px 0 #9a7412, 0 8px 18px rgba(0, 0, 0, .5); }
.kick:focus-visible { outline: 3px solid var(--chalk); outline-offset: 4px; }
.lobby-hint { margin: 14px 0 0; font-size: .9rem; color: #a9bdb0; }
.lobby-hint a { color: var(--chalk); font-weight: 700; }
.lobby .pills { margin-top: 14px; }
.lobby .lede a { color: var(--chalk); }
.kick[hidden] + .lobby-hint { margin-top: 0; }
.arena-nojs { position: relative; z-index: 6; grid-row: 3; margin: 0; padding: 10px 16px; background: var(--ink); font-size: .9rem; }

.arena .hud, .arena .qband, .arena .strap, .arena .result, .arena .board, .arena .stinger { display: none; }
.after { padding: 28px 0 8px; }
.after-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .after-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .after .mode-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ================= playing: fixed to the visual viewport ================= */
html.is-playing, html.is-playing body { overflow: hidden; overscroll-behavior: none; }
.is-playing .arena { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100dvh); min-height: 0; max-height: none; z-index: 60; }
.is-playing .lobby { display: none; }
.is-playing .arena-shade { background: linear-gradient(180deg, rgba(5, 11, 8, .5) 0, rgba(5, 11, 8, 0) 16%); }
.arena.is-hurry::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 140px rgba(255, 90, 79, .5); animation: hurry .5s ease-in-out infinite alternate; }
@keyframes hurry { from { opacity: .35; } }
.arena.is-hurry .onfire { opacity: 0; }

/* ---------- scorebug, clock, tools ---------- */
.is-playing .arena .hud { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 10px; grid-row: 1; grid-column: 1; z-index: 5; margin: 0; padding: 18px 20px 0;
  background: none; border: 0; box-shadow: none; border-radius: 0; pointer-events: none; color: var(--chalk); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.arena .hud > * { pointer-events: auto; }
.sb { display: flex; align-items: stretch; height: 46px; justify-self: start; min-width: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--edge); background: var(--glass); backdrop-filter: blur(10px); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
.sb > * { display: flex; align-items: center; margin: 0; white-space: nowrap; }
.sb-brand { gap: 8px; padding: 0 14px 0 10px; border-right: 1px solid var(--edge); font-family: var(--fl-display); font-style: italic; font-weight: 900; font-stretch: 125%; font-size: .92rem; letter-spacing: -.01em; }
.sb-brand .mark { width: 26px; height: 26px; }
.sb-round { gap: 5px; padding: 0 4px 0 14px; color: #c4d3c9; }
.arena .hud .sb-round b { font: 900 italic 1.2rem/1 var(--fl-display); font-stretch: 125%; color: var(--chalk); letter-spacing: -.02em; vertical-align: 0; margin-left: 2px; }
.sb-round i { font-style: normal; opacity: .5; }
.sb-pips { gap: 5px; padding: 0 14px 0 10px; list-style: none; }
.sb-pips li { width: 15px; height: 12px; border-radius: 2px; transform: skewX(var(--slash)); background: rgba(244, 247, 239, .16); }
.sb-pips li.now { background: none; box-shadow: inset 0 0 0 2px var(--chalk); animation: pip .9s ease-in-out infinite alternate; }
@keyframes pip { from { opacity: .45; } }
.sb-pips li.is-deep { background: var(--t-deep); } .sb-pips li.is-rare { background: var(--t-rare); } .sb-pips li.is-sharp { background: var(--t-sharp); }
.sb-pips li.is-known { background: var(--t-known); } .sb-pips li.is-chalk { background: var(--t-chalk); }
.sb-pips li.is-miss { background: repeating-linear-gradient(90deg, #a9bdb0 0 3px, transparent 3px 6px); }
.sb-score { gap: 6px; padding: 0 16px 0 14px; border-left: 1px solid var(--edge); color: #c4d3c9; }
.arena .hud .sb-score b { font: 900 italic 1.55rem/1 var(--fl-display); font-stretch: 125%; color: var(--chalk); letter-spacing: -.02em; vertical-align: 0; min-width: 1.6ch; text-align: right; font-variant-numeric: tabular-nums; }
.clock { display: flex; align-items: center; justify-content: center; gap: 8px; justify-self: center; min-width: 118px; padding: 5px 16px 4px; border-radius: 12px; border: 1px solid var(--edge); background: var(--glass); backdrop-filter: blur(10px); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
.clock::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; background: conic-gradient(currentColor calc(var(--t) * 360deg), transparent 0); opacity: .8; }
.arena .hud .clock b { display: block; font: 900 italic 2.7rem/1 var(--fl-display); font-stretch: 125%; color: var(--chalk); letter-spacing: -.03em; font-variant-numeric: tabular-nums; vertical-align: 0; }
.is-hurry .clock { background: var(--hot); border-color: var(--hot); color: #fff; animation: beat .5s ease-in-out infinite alternate; }
.arena.is-hurry .hud .clock b { color: #fff; }
@keyframes beat { to { transform: scale(1.08); } }
.arena[data-state="result"] .clock, .arena[data-state="fx"] .clock, .arena[data-state="summary"] .clock { visibility: hidden; }
.arena[data-state="summary"] .sb-round, .arena[data-state="summary"] .sb-pips, .arena[data-state="summary"] .sb-score { display: none; }
.arena[data-state="summary"] .sb-brand { border-right: 0; }
.tools { display: flex; gap: 8px; justify-self: end; }
.tool { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border-radius: 12px; border: 1px solid var(--edge); background: var(--glass); backdrop-filter: blur(10px); color: var(--chalk); cursor: pointer; }
.tool:hover { border-color: var(--chalk); }
.tool .snd-off, .tool.is-muted .snd-on { display: none; } .tool.is-muted .snd-off { display: inline; }
/* flag kits: the flag on the shooter's shirt, a native <select> laid over it (public/kits.mjs) */
.kit-pick { position: relative; cursor: pointer; }
.kit-pick[hidden] { display: none; }
.kit-pick img { display: block; width: 24px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(244, 247, 239, .35); object-fit: cover; }
.kit-pick img[hidden], .kit-pick .kit-none[hidden] { display: none; }
.kit-none { display: grid; place-items: center; color: var(--chalk); }
.kit-pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; appearance: none; }
.kit-pick:focus-within { outline: 2px solid var(--chalk); outline-offset: 2px; }
.kit-lobby { position: absolute; top: 16px; right: max(16px, calc((100% - 1240px) / 2)); z-index: 4; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px;
  border-radius: 999px; border: 1px solid var(--edge); background: var(--glass); backdrop-filter: blur(10px); color: var(--chalk); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kit-lobby:hover { border-color: var(--chalk); }
.kit-lobby::after { content: ""; width: 6px; height: 6px; margin-left: 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.is-playing .kit-lobby { display: none; }
/* in the game's tools: a small ⌄ in the corner says it opens a choice */
/* in the game's tools: flag, KIT and a ⌄, so it reads as "change the kit", not a language switch; phones: flag and ⌄ */
.tools .kit-pick { width: auto; display: flex; align-items: center; gap: 7px; padding: 0 11px 0 10px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.tools .kit-pick::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); opacity: .75; }
.kit-word { pointer-events: none; }
@media (max-width: 699px) { .tools .kit-word { display: none; } .tools .kit-pick { gap: 5px; padding: 0 8px; } }
.is-playing .arena .stinger { display: block; position: absolute; left: 50%; top: 34%; z-index: 4; margin: 0; padding: 8px 30px 6px; pointer-events: none; opacity: 0; white-space: nowrap;
  transform: translate(-50%, -50%) skewX(var(--slash)); background: var(--chalk); color: var(--ink); box-shadow: 8px 8px 0 rgba(0, 0, 0, .45);
  font: 900 italic clamp(1.8rem, 5vw, 3.6rem)/1 var(--fl-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; }
.arena .stinger.go { animation: stinger .9s cubic-bezier(.2, 1.2, .3, 1); }
@keyframes stinger { 0% { opacity: 0; transform: translate(-90%, -50%) skewX(var(--slash)); } 18%, 70% { opacity: 1; transform: translate(-50%, -50%) skewX(var(--slash)); } 100% { opacity: 0; transform: translate(-10%, -50%) skewX(var(--slash)); } }
/* captions and badges from the effects layer: above whatever is docked at the bottom */
.is-playing .arena .pitch .cap { top: auto; bottom: calc(var(--dock-h) + 24px); }
.is-playing .arena[data-state="result"] .cap span { display: none; }
.is-playing .arena .cap.tier-miss { border-left: 0; box-shadow: inset 0 0 0 2px var(--bad), 6px 6px 0 rgba(0, 0, 0, .4); }
.is-playing .arena .onfire { right: 20px; } .is-playing .arena .bug { left: 20px; }

/* ---------- dock: a lower-third strip, question on the left, the shot bar on the right ---------- */
.is-playing .arena[data-state="live"] .qband { display: grid; }
.qband, .result { position: relative; grid-row: 3; grid-column: 1; z-index: 5; padding: 0 var(--pad); border-top: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(5, 11, 8, .86), rgba(5, 11, 8, .97) 70%); backdrop-filter: blur(12px); }
.qband { grid-template-columns: fit-content(560px) minmax(460px, 580px); justify-content: center; column-gap: 48px; animation: dock-in .35s cubic-bezier(.2, .9, .3, 1); }
@keyframes dock-in { from { opacity: 0; transform: translateY(26px); } }
/* the clock as a fuse along the top edge of the strip, burning down to the left */
.fuse { position: absolute; left: 0; right: 0; top: -3px; height: 5px; background: rgba(244, 247, 239, .14); }
.fuse i { position: absolute; inset: 0; background: var(--chalk); transform-origin: left; transform: scaleX(var(--t)); transition: transform .1s linear; }
.fuse::after { content: ""; position: absolute; top: 50%; left: calc(var(--t) * 100%); width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px rgba(255, 255, 255, .75); transition: left .1s linear; }
.is-hurry .fuse i { background: var(--hot); } .is-hurry .fuse::after { background: #ffd0cc; box-shadow: 0 0 16px 5px rgba(255, 90, 79, .9); }
.q { align-self: center; padding: 22px 0; min-width: 0; }
.q-meta { margin: 0 0 6px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #a9bdb0; }
.q-text { margin: 0; font: 800 clamp(1.5rem, 2.3vw, 2.15rem)/1.14 var(--body); letter-spacing: -.015em; text-wrap: balance; color: var(--chalk); text-transform: none; font-style: normal; }
.q-note { margin: 6px 0 0; font-size: .9rem; color: #a9bdb0; }
.q-note:empty { display: none; }
/* the bar never moves: messages stack above it in a slot of fixed height */
.shot { align-self: end; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "fb fb" "bar pass"; gap: 8px 10px; padding: 14px 0 22px; min-width: 0; }
.fb { grid-area: fb; display: flex; align-items: flex-end; margin: 0; min-height: 2.9em; font-size: .9rem; line-height: 1.45; color: #c4d3c9; }
.fb b { color: var(--chalk); }
.fb.bad { color: var(--bad); font-weight: 600; }
.bar { grid-area: bar; position: relative; display: flex; min-width: 0; border-radius: 14px; border: 2px solid rgba(244, 247, 239, .34); background: rgba(244, 247, 239, .07); }
.bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 193, 78, .16); }
.shot-in { flex: 1; min-width: 0; height: 60px; padding: 0 18px; border: 0; border-radius: 12px 0 0 12px; background: none; color: var(--chalk); font: 650 1.35rem var(--body); outline: none; }
.shot-in::placeholder { color: #8fa397; font-weight: 500; }
.shot-in:disabled { opacity: .6; }
.shot-in.shake { animation: shake .32s; }
.shoot { flex: none; height: 60px; padding: 0 28px; border: 0; border-radius: 0 11px 11px 0; cursor: pointer; background: var(--accent); color: var(--accent-ink);
  font-family: var(--fl-display); font-style: italic; font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 1.1rem; letter-spacing: -.01em; }
.shoot:hover { background: #ffd56e; } .shoot:disabled { opacity: .6; }
.pass { grid-area: pass; height: 64px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(244, 247, 239, .28); background: none; cursor: pointer; color: #c4d3c9; font: 800 .8rem var(--body); letter-spacing: .08em; text-transform: uppercase; }
.pass:hover { color: var(--chalk); border-color: var(--chalk); }
/* suggestions: a list opening upward on wide screens, a strip of chips on phones */
.sugg { position: absolute; left: -2px; right: -2px; bottom: calc(100% + 10px); z-index: 2; margin: 0; padding: 6px; list-style: none; border-radius: 13px; border: 1px solid rgba(244, 247, 239, .22); background: rgba(8, 16, 12, .98); box-shadow: 0 -14px 40px rgba(0, 0, 0, .5); }
.sugg li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 1rem; }
.sugg li b { font-weight: 700; } .sugg li span { color: #a9bdb0; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg li:hover, .sugg li[aria-selected="true"] { background: rgba(244, 247, 239, .12); }

/* ---------- dock: the shot in flight, then the result ---------- */
.is-playing .arena[data-state="fx"] .strap { display: flex; }
.strap { grid-row: 3; grid-column: 1; z-index: 5; justify-self: center; align-items: center; gap: 16px; margin: 0 0 30px; padding: 10px 14px 10px 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--edge); background: var(--glass); color: var(--chalk); cursor: pointer; font: inherit; animation: dock-in .25s; }
.strap-k { padding: 0 0 0 16px; color: #a9bdb0; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.strap b { font: 800 1.3rem var(--body); letter-spacing: -.01em; }
.strap-skip { display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(244, 247, 239, .28); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c4d3c9; }
.strap-q { display: none; }
.roul { display: flex; align-items: center; gap: 4px; }
.roul-k { margin-left: 8px; font-size: .78rem; font-weight: 600; color: #a9bdb0; white-space: nowrap; }
.roul i { width: 26px; height: 8px; border-radius: 2px; transform: skewX(var(--slash)); opacity: .25; animation: roul .75s linear infinite; }
.roul .t-chalk { background: var(--t-chalk); } .roul .t-known { background: var(--t-known); animation-delay: .15s; } .roul .t-sharp { background: var(--t-sharp); animation-delay: .3s; }
.roul .t-rare { background: var(--t-rare); animation-delay: .45s; } .roul .t-deep { background: var(--t-deep); animation-delay: .6s; }
@keyframes roul { 0%, 19% { opacity: 1; } 20%, 100% { opacity: .25; } }

.is-playing .arena[data-state="result"] .result { display: grid; }
.result { --tier-c: var(--t-chalk); grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr) auto; align-items: stretch; border-top: 5px solid var(--tier-c); }
.result.slam { animation: slam .5s cubic-bezier(.2, 1.5, .4, 1) both; }
.result.tier-deep { --tier-c: var(--t-deep); } .result.tier-rare { --tier-c: var(--t-rare); } .result.tier-sharp { --tier-c: var(--t-sharp); } .result.tier-known { --tier-c: var(--t-known); }
.result.tier-miss { --tier-c: #6a7b72; }
/* the score is a number, not a button: tier colour on the figure, never a filled block */
.r-tier { display: grid; align-content: center; justify-items: start; gap: 6px; min-width: 150px; padding: 18px 28px 18px 0; color: var(--tier-c); }
.r-tier b { font: 900 italic 4rem/.85 var(--fl-display); font-stretch: 125%; letter-spacing: -.04em; }
.r-tier span { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.r-who { align-self: center; padding: 16px 24px 16px 0; min-width: 0; }
.r-name { margin: 0 0 4px; font: 800 1.75rem/1.1 var(--body); letter-spacing: -.02em; text-wrap: balance; }
.r-pct { margin: 0; font-size: .95rem; color: #c4d3c9; }
.r-pct b { color: var(--chalk); font-size: 1.05rem; }
.r-report { display: inline-block; margin-top: 6px; padding: 2px 0; color: #c4d3c9; }
.result .report-inline { margin-top: 8px; }
.result .small { margin: 8px 0 0; }
.r-col { align-self: center; padding: 14px 20px; min-width: 0; border-left: 1px solid var(--edge); }
.r-h { margin: 0 0 6px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #a9bdb0; }
.r-col ol, .r-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .92rem; }
.r-col li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.r-col li > span:first-child, .r-col ul li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-col ul li { display: block; }
.r-col .chip { font-size: .64rem; padding: 4px 7px; background: rgba(244, 247, 239, .14); color: var(--chalk); }
.r-load { color: #6a7b72; }
.r-go { display: grid; align-content: center; padding: 14px 0 14px 12px; }
.next { height: 64px; padding: 0 28px; border: 0; border-radius: 14px; cursor: pointer; white-space: nowrap; background: var(--accent); color: var(--accent-ink);
  font-family: var(--fl-display); font-style: italic; font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 1.05rem; letter-spacing: -.01em; }
.next:hover { background: #ffd56e; } .next:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; }

/* ---------- full time ---------- */
.is-playing .arena[data-state="summary"] .board { display: grid; }
.board { grid-row: 2 / 4; grid-column: 1; z-index: 5; justify-self: end; align-self: stretch; align-content: start; gap: 14px; width: min(520px, 44vw); margin: 14px 20px 22px 0; padding: 22px 26px; overflow: auto; overscroll-behavior: contain;
  border-radius: 20px; border: 1px solid var(--edge); background: rgba(5, 11, 8, .93); backdrop-filter: blur(12px); box-shadow: 0 22px 60px rgba(0, 0, 0, .55); animation: board-in .45s cubic-bezier(.2, .9, .3, 1); }
@keyframes board-in { from { opacity: 0; transform: translateX(40px); } }
.b-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; align-items: center; }
.b-label { grid-column: 1 / -1; margin: 0 0 6px; font: 900 italic 1rem/1 var(--fl-display); font-stretch: 125%; text-transform: uppercase; color: #c4d3c9; }
.b-score { grid-row: 2 / span 3; margin: 0; line-height: .85; white-space: nowrap; }
.b-score b { font: 900 italic 5rem/.85 var(--fl-display); font-stretch: 125%; letter-spacing: -.04em; color: var(--chalk); font-variant-numeric: tabular-nums; }
.b-score span { margin-left: 6px; font: 900 italic 1.3rem var(--fl-display); font-stretch: 125%; color: #7d9487; }
.b-grid { display: flex; gap: 4px; margin: 0 0 6px; }
.b-grid .sq { width: 20px; height: 20px; border-radius: 4px; }
.b-grid .sq.miss { background: none; box-shadow: inset 0 0 0 2px #6a7b72; }
.b-rank { margin: 0; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.b-streak, .b-small { margin: 4px 0 0; font-size: .84rem; color: #a9bdb0; }
.b-streak b { color: var(--chalk); }
.b-streak a, .b-links a, .b-next a, .cap-note a { color: var(--chalk); }
.b-next { margin-top: 10px; } .b-next a { font-weight: 700; white-space: nowrap; }
.b-actions .keep + .b-small { margin-top: 10px; }
.nowrap { white-space: nowrap; }
.keep { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; padding: 8px 20px; border: 0; border-radius: 13px; cursor: pointer; text-decoration: none; text-align: center; background: var(--accent); color: var(--accent-ink);
  font-family: var(--fl-display); font-style: italic; font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: 1rem; letter-spacing: -.01em; }
.keep:hover { background: #ffd56e; color: var(--accent-ink); }
/* the extra game is used: the button stays where it was, but it is no longer the thing to press */
.keep.is-spent, .keep.is-spent:hover { min-height: 46px; background: none; color: #a9bdb0; box-shadow: inset 0 0 0 1px rgba(244, 247, 239, .2); font-size: .86rem; }
.board.is-spent .share-go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.board.is-spent .share-card:hover .share-go { background: #ffd56e; border-color: #ffd56e; }
.unl-used .pills { display: none; } .keep:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; }
.board .cap-note { margin: 10px 0 0; max-width: none; }
.share-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 12px 12px 12px 16px; text-align: left; cursor: pointer; border-radius: 13px; border: 1px solid rgba(244, 247, 239, .28); background: rgba(244, 247, 239, .06); color: var(--chalk); font: inherit; }
.share-card:hover { border-color: var(--chalk); }
.share-text { display: grid; gap: 3px; min-width: 0; font-size: .92rem; line-height: 1.4; }
.share-text b { font-weight: 700; }
.share-sq { display: flex; gap: 3px; } .share-sq .sq { width: 15px; height: 15px; border-radius: 3px; } .share-sq .sq.miss { background: none; box-shadow: inset 0 0 0 2px #6a7b72; }
.share-url { font-size: .78rem; color: #8fa397; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-go { display: grid; place-items: center; min-width: 84px; height: 46px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--chalk); font-weight: 800; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; }
.share-note { overflow-wrap: anywhere; white-space: pre-line; }
.b-list { list-style: none; margin: 0; padding: 0; display: grid; }
.b-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 5px 0; border-top: 1px solid rgba(244, 247, 239, .1); }
.b-list .sq { grid-row: 1 / span 2; width: 16px; height: 16px; border-radius: 4px; }
.b-list .sq.miss { background: none; box-shadow: inset 0 0 0 2px #6a7b72; }
.b-q { grid-column: 2; font-size: .78rem; line-height: 1.3; color: #a9bdb0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-a { grid-column: 2; font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-list b { grid-column: 3; grid-row: 1 / span 2; font: 900 italic 1.25rem var(--fl-display); font-stretch: 125%; min-width: 2.4ch; text-align: right; }
.b-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: .9rem; color: #a9bdb0; }
.b-links > a { font-weight: 700; }

/* ---------- share sheet ---------- */
.sheet { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(5, 11, 8, .76); backdrop-filter: blur(6px); }
.sheet-card { width: min(470px, 100%); max-height: 100%; overflow: auto; overscroll-behavior: contain; padding: 16px 20px 18px; border-radius: 20px; border: 1px solid var(--edge); background: #0a130f; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: dock-in .25s; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet-h { margin: 0; font: 900 italic 1.05rem var(--fl-display); font-stretch: 125%; text-transform: uppercase; }
.sheet-x { width: 38px; height: 38px; margin-right: -8px; border: 0; border-radius: 10px; background: none; color: #c4d3c9; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.sheet-x:hover { color: var(--chalk); background: rgba(244, 247, 239, .08); }
.sheet-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 12px; border: 1px solid var(--edge); background: #07110c; }
.sheet-text { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--edge); background: rgba(244, 247, 239, .05); white-space: pre-line; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.5; }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sh { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(244, 247, 239, .2); background: rgba(244, 247, 239, .05); color: var(--chalk); font: 700 .92rem var(--body); text-align: left; text-decoration: none; cursor: pointer; }
.sh:hover { border-color: var(--chalk); color: var(--chalk); }
.sh:focus-visible { outline: 3px solid var(--chalk); outline-offset: 2px; }
.sh.is-main { grid-column: 1 / -1; justify-content: center; min-height: 54px; border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-family: var(--fl-display); font-style: italic; font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: 1rem; }
.sh.is-main:hover { background: #ffd56e; color: var(--accent-ink); }
.sh-i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(244, 247, 239, .14); color: #fff; font: 800 .82rem var(--body); font-style: normal; }
.sh.is-main .sh-i { background: rgba(29, 22, 4, .16); color: var(--accent-ink); }
.sh-x, .sh-th { background: #000; box-shadow: inset 0 0 0 1px #4a4a4a; } .sh-wa { background: #128c4a; } .sh-fb { background: #1877f2; } .sh-rd { background: #e0400a; } .sh-bs { background: #0a7aff; }
.sh-ig { background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #833ab4); font-size: .68rem; }
.b-dare { margin: 0 0 6px; }
.sheet-note { margin: 10px 0 0; min-height: 1.4em; font-size: .86rem; line-height: 1.4; color: #c4d3c9; overflow-wrap: anywhere; white-space: pre-line; }

/* ---------- menu ---------- */
.menu { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; padding: 16px; background: rgba(5, 11, 8, .74); backdrop-filter: blur(6px); }
.menu-card { width: min(430px, 100%); max-height: 100%; overflow: auto; padding: 22px 24px; border-radius: 20px; border: 1px solid var(--edge); background: #0a130f; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.menu-h { margin: 0 0 10px; font: 900 italic 1.1rem var(--fl-display); font-stretch: 125%; text-transform: uppercase; }
.menu-note { margin: 10px 0 0; font-size: .86rem; color: #a9bdb0; }
.menu-actions { display: grid; gap: 8px; margin-top: 16px; }
.menu-actions .btn { width: 100%; min-height: 48px; }
.menu-sound { display: none; }
.arena:not([data-state="live"]) .menu-clock { display: none; }

/* ================= between phone and desktop (tablets, small windows): same full-bleed layout, tighter ================= */
@media (min-width: 700px) and (max-width: 1099px) and (min-height: 501px) {
  .lobby { width: min(440px, 56%); }
  .lobby h1 { font-size: clamp(2.6rem, 6vw, 3.6rem); }
  .sb-brand span { display: none; } .sb-brand { padding: 0 10px; }
  .qband { grid-template-columns: minmax(0, 1fr) minmax(360px, 50%); justify-content: stretch; column-gap: 22px; }
  .result { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "tier who who go" "tier common deep go"; }
  .r-tier { grid-area: tier; min-width: 130px; } .r-who { grid-area: who; padding-bottom: 8px; } .r-go { grid-area: go; }
  .r-col { border-left: 0; border-top: 1px solid var(--edge); padding: 10px 22px 14px 0; } .r-col[data-common] { grid-area: common; } .r-col[data-deep] { grid-area: deep; }
  .board { width: min(460px, 52vw); }
}

/* ================= phone portrait: stadium on top, dock on the keyboard ================= */
@media (max-width: 699px) {
  .arena { --pad: 16px; height: auto; grid-template-rows: min(44svh, 330px) auto; background: var(--ink); }
  .arena > .pitch { position: relative; inset: auto; grid-row: 1; grid-column: 1; min-height: 0; }
  .arena-shade { inset: 0 0 auto; height: min(44svh, 330px); background: linear-gradient(0deg, var(--ink) 0, rgba(5, 11, 8, .55) 30%, rgba(5, 11, 8, 0) 62%); }
  .lobby { grid-row: 2; align-self: start; justify-self: stretch; width: auto; margin-top: -104px; padding: 0 16px 22px; }
  .lobby h1 { font-size: clamp(2.5rem, 12.5vw, 3.3rem); margin-bottom: 12px; }
  .lobby .lede { font-size: .98rem; }
  .lobby-start { margin-top: 18px; }
  .opener-q { font-size: 1.15rem; }
  .kick { width: 100%; height: 62px; }
  .lobby-hint { text-align: center; }

  .is-playing .arena { grid-template-rows: minmax(120px, 1fr) auto; }
  .is-playing .arena-shade { inset: 0 0 auto; height: 100%; grid-row: 1; background: linear-gradient(180deg, rgba(5, 11, 8, .55) 0, rgba(5, 11, 8, 0) 26%); }
  .is-playing .arena .hud { grid-row: 1; align-self: start; grid-template-columns: minmax(0, 1fr) auto auto; padding: 8px 8px 0; gap: 6px; font-size: .6rem; letter-spacing: .06em; }
  .sb { height: 40px; border-radius: 10px; }
  .sb-brand { display: none; }
  .sb-round { padding: 0 2px 0 9px; gap: 3px; } .arena .hud .sb-round b { font-size: 1.05rem; }
  .is-playing .arena .hud { padding-top: calc(18px + env(safe-area-inset-top)); }
  .sb { backdrop-filter: none; overflow: visible; }
  .sb-pips { position: absolute; left: 8px; right: 8px; top: calc(6px + env(safe-area-inset-top)); height: 8px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; gap: 4px; padding: 0; }
  .sb-pips li { width: auto; height: 4px; border-radius: 2px; transform: none; background: rgba(244, 247, 239, .22); }
  .sb-pips li.now { height: 8px; border-radius: 4px; background: #fff; box-shadow: 0 0 10px 2px rgba(255, 255, 255, .7); }
  .sb-pips li.is-chalk { background: #8fa397; }
  .sb-round { padding-right: 9px; }
  .is-hurry .clock { animation: none; }
  .arena[data-state="summary"] .sb-brand { display: flex; padding: 0 12px 0 8px; }
  .sb-score { padding: 0 9px 0 8px; gap: 4px; } .arena .hud .sb-score b { font-size: 1.2rem; }
  .clock { min-width: 66px; gap: 5px; padding: 4px 8px 2px; border-radius: 10px; } .arena .hud .clock b { font-size: 1.8rem; } .clock::before { width: 11px; height: 11px; }
  .tools { gap: 6px; } .tool { width: 40px; height: 40px; border-radius: 10px; }
  .tools [data-sound] { display: none; }
  .menu-sound { display: flex; }
  .is-playing .arena .stinger { top: 50%; }
  .is-playing .arena .pitch .cap { bottom: 7%; }
  .is-playing .arena .pitch.is-slowmo .cap, .is-playing .arena .pitch.is-replay .cap { bottom: 14%; }
  .is-playing .arena .onfire { right: 8px; } .is-playing .arena .bug { left: 8px; }

  .qband, .result, .board { grid-row: 2; margin: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; background: var(--ink); animation: none; }
  .qband { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .q { align-self: start; padding: 16px 62px 2px 0; }
  .q-text { font-size: 1.5rem; line-height: 1.16; }
  .kb-open .q { align-self: start; padding-top: 12px; padding-bottom: 0; } .kb-open .q-meta, .kb-open .q-note { display: none; } .kb-open .q-text { font-size: 1.12rem; }
  .shot { grid-template-columns: minmax(0, 1fr); grid-template-areas: "fb" "bar"; gap: 6px; padding: 4px 0 calc(12px + env(safe-area-inset-bottom)); margin: 0 -4px; }
  .kb-open .shot { padding-bottom: 8px; }
  .fb { min-height: 44px; font-size: .86rem; line-height: 1.35; padding: 0 4px; }
  .pass { grid-area: auto; position: absolute; top: 10px; right: 10px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: .7rem; }
  .bar { border-radius: 13px; }
  .shot-in { height: 52px; font-size: 1.15rem; padding: 0 14px; } .shoot { height: 52px; padding: 0 20px; font-size: .95rem; }
  .sugg { left: -2px; right: -2px; bottom: calc(100% + 8px); display: flex; gap: 6px; padding: 0; border: 0; border-radius: 0; background: var(--ink); box-shadow: 0 0 0 4px var(--ink); overflow-x: auto; scrollbar-width: none; }
  .sugg li { flex: none; padding: 9px 13px; border-radius: 999px; background: rgba(244, 247, 239, .12); font-size: .92rem; white-space: nowrap; }
  .sugg li span { display: none; }

  /* in flight: the five tiers as a ladder, lit one after another, until the ball lands */
  .strap { grid-row: 2; align-self: stretch; justify-self: stretch; min-height: calc(var(--vvh, 100dvh) * .42); margin: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 0; border-width: 1px 0 0; animation: none; background: var(--ink);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; text-align: left; }
  .strap-k { padding: 0; }
  .strap-q { display: block; font-size: .92rem; line-height: 1.35; color: #a9bdb0; }
  .strap b { margin-top: 6px; font-size: 2rem; line-height: 1.08; letter-spacing: -.02em; }
  .roul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 10px; } .roul i { width: auto; height: 8px; transform: none; }
  .roul-k { grid-column: 1 / -1; margin: 6px 0 0; font-size: .88rem; }
  .strap-skip { align-self: flex-start; margin-top: 14px; height: 40px; padding: 0 16px; }

  .result { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tier who" "common deep" "go go"; align-content: start; min-height: calc(var(--vvh, 100dvh) * .42); }
  .r-tier { grid-area: tier; min-width: 0; padding: 14px 18px 12px 0; } .r-tier b { font-size: 3rem; } .r-tier span { font-size: .7rem; }
  .r-who { grid-area: who; padding: 12px 0; } .r-name { font-size: 1.35rem; } .r-pct { font-size: .88rem; } .r-pct b { font-size: .95rem; }
  .r-col { align-self: start; padding: 12px 12px 4px 0; border-left: 0; border-top: 1px solid var(--edge); }
  .r-col[data-common] { grid-area: common; } .r-col[data-deep] { grid-area: deep; padding-left: 12px; }
  .r-col ol, .r-col ul { font-size: .86rem; } .r-col li > span:first-child, .r-col ul li { white-space: normal; }
  .r-go { grid-area: go; align-self: end; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin: 0 -4px; }
  .next { width: 100%; height: 56px; }

  /* full time: one scrolling page, the pitch scrolls away with it */
  .is-playing .arena[data-state="summary"] { grid-template-rows: calc(var(--vvh, 100dvh) * .24) auto; overflow-y: auto; overscroll-behavior: contain; }
  /* the share sheet comes up from the bottom edge, over the page that scrolls */
  .sheet { position: fixed; place-items: end stretch; padding: 0; }
  .sheet-card { width: 100%; max-height: 92%; border-radius: 20px 20px 0 0; border-width: 1px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
  .board { grid-row: 2; justify-self: stretch; width: auto; overflow: visible; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); gap: 14px; border-width: 1px 0 0; }
  .b-score b { font-size: 3.2rem; } .b-score span { font-size: 1rem; } .b-head { column-gap: 14px; } .b-rank { font-size: .9rem; }
  .keep { font-size: .92rem; padding: 8px 10px; }
}
@media (max-width: 369px) { .sb-score > span { display: none; } }

/* ================= phone landscape: full-bleed, everything pressed to the edges ================= */
@media (min-width: 600px) and (max-height: 500px) {
  .arena { --pad: 14px; height: max(300px, calc(100svh - 48px)); }
  .lobby { align-self: end; justify-self: stretch; width: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 40%); align-items: end; column-gap: 28px; padding: 0 20px 18px; }
  .arena-shade { background: linear-gradient(0deg, rgba(5, 11, 8, .94) 0, rgba(5, 11, 8, .6) 42%, rgba(5, 11, 8, 0) 78%); }
  .lobby h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 8px; }
  .lobby .day-tag { margin-bottom: 8px; }
  .lobby .lede { font-size: .86rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lobby-start { margin-top: 0; }
  .opener { margin-bottom: 10px; padding: 10px 14px; } .opener-q { font-size: 1rem; }
  .kick { width: 100%; height: 52px; font-size: 1.15rem; min-width: 0; }
  .lobby-hint { margin-top: 8px; font-size: .8rem; text-align: center; }

  .is-playing .arena .hud { padding: 8px 10px 0; font-size: .64rem; }
  .sb { height: 36px; border-radius: 9px; } .sb-brand span { display: none; } .sb-brand { padding: 0 8px; } .sb-brand .mark { width: 22px; height: 22px; }
  .sb-round { padding: 0 2px 0 10px; } .arena .hud .sb-round b { font-size: 1rem; }
  .sb-pips { padding: 0 10px 0 8px; gap: 4px; } .sb-pips li { width: 12px; height: 10px; }
  .arena .hud .sb-score b { font-size: 1.2rem; } .sb-score { padding: 0 12px 0 10px; }
  .clock { min-width: 76px; padding: 2px 10px 1px; border-radius: 9px; } .arena .hud .clock b { font-size: 1.8rem; } .clock::before { width: 11px; height: 11px; }
  .tool { width: 36px; height: 36px; border-radius: 9px; }
  .is-playing .arena .pitch .cap { bottom: calc(var(--dock-h) + 10px); max-width: 60%; }
  .is-playing .arena .pitch .cap b { font-size: 1.5rem; } .is-playing .arena .pitch .cap span { font-size: .68rem; }
  .arena.kb-open .onfire, .arena.kb-open .pitch .cap, .arena.kb-open .sb-pips { display: none; }
  .is-playing .arena .stinger { top: 40%; }

  .qband { grid-template-columns: minmax(0, 1fr) minmax(330px, 50%); justify-content: stretch; column-gap: 16px; }
  .fuse { height: 4px; top: -2px; }
  .q { padding: 10px 0; } .q-meta { margin-bottom: 2px; font-size: .62rem; } .q-text { font-size: 1.08rem; line-height: 1.2; } .q-note { margin-top: 2px; font-size: .78rem; }
  .shot { padding: 8px 0 10px; gap: 4px 8px; }
  .fb { min-height: 1.3em; font-size: .78rem; line-height: 1.3; }
  .bar { border-radius: 11px; } .shot-in { height: 44px; font-size: 1.05rem; padding: 0 12px; } .shoot { height: 44px; padding: 0 18px; font-size: .9rem; border-radius: 0 8px 8px 0; }
  .pass { height: 48px; padding: 0 12px; border-radius: 11px; font-size: .68rem; }
  .kb-open .q-meta, .kb-open .q-note { display: none; } .kb-open .q-text { font-size: .95rem; } .kb-open .q { padding: 6px 0; }
  .kb-open .shot { padding: 6px 0; } .kb-open .fb:empty { display: none; }
  .sugg { display: flex; gap: 6px; padding: 5px; bottom: calc(100% + 6px); overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
  .sugg li { flex: none; padding: 6px 11px; border-radius: 999px; background: rgba(244, 247, 239, .12); font-size: .84rem; white-space: nowrap; }
  .sugg li span { display: none; }

  .strap { margin-bottom: 12px; padding: 7px 10px 7px 0; gap: 12px; } .strap b { font-size: 1.05rem; } .roul i { width: 20px; } .strap-skip { height: 28px; }
  .result { grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr) auto; border-top-width: 4px; }
  .r-tier { min-width: 96px; padding: 8px 16px 8px 0; gap: 3px; } .r-tier b { font-size: 2.5rem; } .r-tier span { font-size: .62rem; }
  .r-who { padding: 8px 14px 8px 0; } .r-name { font-size: 1.15rem; } .r-pct { font-size: .78rem; } .r-pct b { font-size: .86rem; }
  .r-col { padding: 8px 12px; } .r-h { margin-bottom: 3px; font-size: .6rem; } .r-col ol, .r-col ul { font-size: .78rem; gap: 2px; } .r-col .chip { font-size: .58rem; padding: 3px 5px; }
  .r-go { padding: 8px 0 8px 6px; } .next { height: 50px; padding: 0 18px; font-size: .86rem; border-radius: 11px; }

  .board { width: min(700px, 84vw); margin: 8px 10px 8px 0; padding: 14px 16px; gap: 8px 20px; border-radius: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head share" "actions list" "links list"; grid-template-rows: auto auto 1fr; }
  .b-head { grid-area: head; } .b-actions { grid-area: actions; } .b-share { grid-area: share; } .b-list { grid-area: list; } .b-links { grid-area: links; align-self: start; }
  .b-list li { padding: 2px 0; } .b-q { -webkit-line-clamp: 1; } .share-note { display: none; }
  .b-head { column-gap: 14px; } .b-score b { font-size: 3rem; } .b-score span { font-size: 1rem; }
  .b-rank { font-size: .84rem; } .b-streak { margin: 0; font-size: .78rem; } .b-grid .sq { width: 16px; height: 16px; }
  .keep { min-height: 48px; font-size: .88rem; }
  /* share sheet: the card on the left, the buttons in three columns beside it */
  .sheet { padding: 8px; }
  .sheet-card { width: min(780px, 100%); display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 10px 14px 12px; }
  .sheet-head { grid-column: 1 / -1; margin-bottom: 6px; } .sheet-x { width: 32px; height: 32px; }
  .sheet-grid { margin-top: 0; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .sh { min-height: 40px; gap: 7px; padding: 0 8px; font-size: .78rem; } .sh.is-main { min-height: 42px; font-size: .86rem; } .sh-i { width: 24px; height: 24px; }
  .sheet-note { grid-column: 1 / -1; margin-top: 6px; font-size: .78rem; }
  /* menu: the way back is beside the points table, never below the fold */
  .menu { padding: 10px; }
  .menu-card { width: min(700px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: 22px; align-items: center; padding: 14px 18px; }
  .menu-card .ladder li { padding: 3px 0; } .menu-h { margin-bottom: 4px; } .menu-main .menu-note { display: none; }
  .menu-actions { margin-top: 0; }
}

/* local screenshots only (?kb=N on localhost): a stand-in keyboard, so shots show what is left of the screen while typing */
html.fake-kb::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: var(--fake-kb, 0px); z-index: 90;
  background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255, 255, 255, .16) 3px calc(10% - 3px), transparent calc(10% - 3px) 10%) 0 10px / 100% 46px repeat-y, #1b1d21; border-top: 1px solid #000; }

@media (prefers-reduced-motion: reduce) {
  .roul i { animation: none; opacity: .6; }
  .qband, .strap, .board, .result.slam, .is-hurry .clock, .arena.is-hurry::after, .sb-pips li.now, .shot-in.shake { animation: none; }
  .fuse i, .fuse::after { transition: none; }
}

/* the local effects lab (?lab) floats over the full-screen game */
.fxlab { position: fixed; z-index: 80; right: 12px; top: 76px; bottom: auto; width: min(400px, calc(100vw - 24px)); max-height: calc(100vh - 260px); overflow: auto; padding: 10px 12px 12px; border-radius: 12px; border: 1px solid rgba(244, 247, 239, .2); background: rgba(5, 11, 8, .92); font-size: .8rem; }
/* before the 3D scene is up (and on the 2D fallback) the flat pitch slides right on wide screens, clear of the title */
@media (min-width: 700px) and (min-height: 501px) { html:not(.is-playing) .arena .p2d { transform: translateX(20%); } }

/* ---------- the name a score earns; the short share sheet ---------- */
.b-title { margin: 0 0 4px; font: 900 italic 1.25rem/1.05 var(--fl-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em; color: var(--accent); }
.share-brag { font-size: .86rem; color: #c4d3c9; text-wrap: pretty; } .share-brag:empty { display: none; }
.b-dare b { color: var(--chalk); }
/* Copy link across the top, then X, Instagram and TikTok side by side */
.sheet-card > .sheet-img { margin-bottom: 10px; }
.sheet-grid { grid-template-columns: 1fr 1fr 1fr; }
.sheet-grid.is-short { grid-template-columns: 1fr; }
.sheet-grid .sh:not(.is-main) { justify-content: center; padding: 0 8px; }
.sh-tt { background: #000; box-shadow: inset 0 0 0 1px #4a4a4a; }
/* the shared page says what the score made them */
.reel-rank { order: 3; flex-basis: 100%; margin: 6px 0 0; font-weight: 700; color: var(--muted); }
.reel-rank b { margin-right: 10px; font: 900 italic 1.15rem/1 var(--fl-display); font-stretch: 125%; text-transform: uppercase; color: var(--accent); }
@media (min-width: 600px) and (max-height: 500px) {
  /* phones held sideways: the picture on the left, the words and the four buttons on the right, all on one screen */
  .sheet-card { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .sheet-card > * { grid-column: 2; }
  .sheet-card > .sheet-head, .sheet-card > .sheet-note { grid-column: 1 / -1; }
  .sheet-card > .sheet-img { grid-column: 1; grid-row: 2 / span 2; margin: 0; align-self: start; }
  .sheet-card > .sheet-text { font-size: .8rem; padding: 8px 10px; line-height: 1.4; margin-bottom: 8px; }
  /* the shared page: the name the score earned takes the date's line, so the way into the game stays on the first screen */
  .is-reel .game-head .day-tag { display: none; }
  .reel-rank { margin: 0; font-size: .82rem; } .reel-rank b { font-size: .95rem; }
}

/* ---------- result screen: "I had one" on a missed question; "How was today's game?" at the bottom ---------- */
.b-had { margin-left: 6px; font-size: .8rem; font-weight: 600; color: #c4d3c9; }
.b-had-form { grid-column: 2 / -1; display: flex; gap: 6px; margin: 6px 0 2px; }
.b-had-form input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(244, 247, 239, .25); background: rgba(244, 247, 239, .06); color: var(--chalk); font: inherit; font-size: .9rem; }
.b-had-form .btn, .b-fb-form .btn { min-height: 40px; padding: 0 14px; }
.b-had-done { grid-column: 2 / -1; margin: 4px 0 2px; font-size: .8rem; color: #a9bdb0; }
.b-fb { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding-top: 12px; border-top: 1px solid rgba(244, 247, 239, .1); }
.b-fb-q { margin: 0; font-weight: 700; font-size: .92rem; }
.b-fb-votes { display: flex; gap: 6px; }
.b-fb-v { width: 46px; height: 40px; border-radius: 10px; border: 1px solid rgba(244, 247, 239, .22); background: rgba(244, 247, 239, .05); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.b-fb-v:hover:not(:disabled) { border-color: var(--chalk); }
.b-fb-v:disabled { cursor: default; opacity: .5; }
.b-fb-v.on { opacity: 1; border-color: var(--chalk); background: rgba(244, 247, 239, .14); }
.b-fb-form { grid-column: 1 / -1; display: flex; gap: 6px; align-items: stretch; }
.b-fb-form textarea { flex: 1; min-width: 0; min-height: 40px; padding: 8px 10px; border-radius: 9px; border: 1px solid rgba(244, 247, 239, .25); background: rgba(244, 247, 239, .06); color: var(--chalk); font: inherit; font-size: .9rem; resize: vertical; }
.b-fb-done { grid-column: 1 / -1; margin: 0; font-size: .84rem; color: #a9bdb0; }
.b-fb-done:empty { display: none; }
@media (min-width: 600px) and (max-height: 500px) {
  /* feedback sits at the foot of the left column, under the links, in a quiet weight (sharing is top right) */
  .board { grid-template-areas: "head share" "actions list" "links list" "fb list"; grid-template-rows: auto auto auto 1fr; }
  .b-fb { grid-area: fb; align-self: end; padding-top: 8px; } .b-fb-q { font-weight: 600; font-size: .84rem; color: #c4d3c9; }
}
