
    :root{--bg:#071b15;--panel:#0d2a20;--panel2:#103328;--border:#285144;--green:#a2ff65;--text:#f1f7ef;--muted:#9cb6ab;--orange:#db8962;--red:#ff867a;--yellow:#f5d787;--shadow:0 22px 76px #010d0955}
    *{box-sizing:border-box}html{min-height:100%}body{background:radial-gradient(ellipse 80% 65% at 50% -12%,#24593d 0%,transparent 63%),var(--bg);color:var(--text);font-family:var(--site-font);line-height:1.4;margin:0;min-height:100vh}
    button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible{outline:3px solid #a2ff6588;outline-offset:3px}button:focus-visible{outline-offset:3px}
    .app{max-width:850px;margin:auto;padding:20px 20px 90px}.top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:30px}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:900;letter-spacing:-.7px}.brand-badge{display:block;flex:none;width:39px;height:39px;border:2px solid #fff;border-radius:25%;object-fit:cover}.label{display:inline-flex;align-items:center;gap:9px;font-size:11px;letter-spacing:1.7px;color:var(--green);font-weight:900;text-transform:uppercase}.live-dot{height:7px;width:7px;display:inline-block;border-radius:100%;background:var(--green);box-shadow:0 0 0 4px #a2ff651c}.kicker{color:var(--green);text-transform:uppercase;font-size:12px;font-weight:900;letter-spacing:2px}.hero{text-align:center;margin:4px auto 22px;max-width:670px}.hero h1{font-size:clamp(37px,7.5vw,67px);line-height:1.02;letter-spacing:-3px;margin:16px 0 16px;font-weight:950}.hero h1 em{font-style:normal;color:var(--green)}.sub{font-size:16px;color:#b7cabd;max-width:510px;margin:0 auto;line-height:1.7}.race-card{position:relative;background:linear-gradient(143deg,#153b2d,#0b231b 75%);border:1px solid var(--border);border-radius:25px;overflow:hidden;padding:16px 20px 0;box-shadow:var(--shadow)}.race-card:after{content:"";position:absolute;inset:auto -5% -100px;height:160px;background:radial-gradient(ellipse,#8bef5530 0%,transparent 70%);pointer-events:none}.race-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;color:#bed8c4;font-size:11px;text-transform:uppercase;letter-spacing:1.3px;font-weight:800}.race-top strong{color:var(--green);font-weight:900}.track{display:block;width:100%;height:auto;max-width:610px;margin:3px auto -4px;overflow:visible}.score-center{font-size:34px;font-weight:950;letter-spacing:-2px;fill:#f7fff5}.score-caption{font-size:11px;font-weight:800;letter-spacing:2px;fill:#9db6a9}.track-foot{display:flex;justify-content:space-between;align-items:center;padding:0px 5px 16px;font-size:11px;color:var(--muted);font-weight:750}.track-foot strong{color:#fff}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0 22px}.stat{border:1px solid #24473b;background:#102d24;border-radius:13px;padding:14px 10px;text-align:center}.stat b{display:block;font-size:21px;letter-spacing:-.8px}.stat span{display:block;margin-top:3px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:1px;font-weight:850}.panel{background:var(--panel);border:1px solid var(--border);border-radius:20px;padding:24px;box-shadow:var(--shadow)}.panel h2{font-size:24px;margin:7px 0 9px;letter-spacing:-.7px}.panel p{color:var(--muted);margin:0;line-height:1.65}.actions{display:flex;gap:10px;margin-top:22px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:12px;background:var(--green);color:#092414;font-weight:900;padding:15px 19px;min-height:51px;transition:transform .13s,background .13s}.button:hover:not(:disabled){transform:translateY(-2px);background:#bcff8a}.button.secondary{background:#183b2e;color:var(--text);border:1px solid #315649}.button.secondary:hover:not(:disabled){background:#245342}.button.ghost{background:transparent;color:#bbd0c5;border:1px solid #315649}.button.grow{flex:1}.fine{font-size:11px!important;color:#89a79a!important;line-height:1.6!important}.rule-row{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 0}.rule{border:1px solid #2c5845;background:#17382c;border-radius:50px;padding:7px 11px;color:#cce2d4;font-size:12px;font-weight:700}.hide{display:none!important}.question-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.count-label{font-weight:850;letter-spacing:1.5px;text-transform:uppercase;font-size:12px;color:#a6e894}.timer{font-size:29px;font-weight:1000;letter-spacing:-1.5px;font-variant-numeric:tabular-nums}.timer.warn{color:#ffaf7c}.timer.danger{color:#ff8783}.timer-bar{height:7px;border-radius:10px;background:#2a4839;margin:12px 0 26px;overflow:hidden}.timer-bar>div{height:100%;width:100%;border-radius:10px;background:var(--green);transition:width .09s linear,background .1s}.timer-bar>div.warn{background:var(--orange)}.timer-bar>div.danger{background:var(--red)}.question{color:#fff;font-size:clamp(26px,4.8vw,38px);font-weight:900;line-height:1.15;letter-spacing:-1.2px;margin:9px 0 14px}.description{font-size:13px!important;color:#a6c3b6!important}.entry{display:flex;gap:9px;margin-top:20px}.answer{width:100%;min-width:0;color:white;background:#071e16;border:1px solid #49745f;border-radius:12px;padding:14px 15px;font-size:16px;font-weight:700}.answer::placeholder{color:#6e927d}.answer:focus{outline:0;border-color:var(--green);box-shadow:0 0 0 3px #a2ff6533}.message{margin-top:12px;font-size:13px;color:var(--yellow);min-height:20px}.feedback{margin-top:17px;padding:17px;border:1px solid #46734b;background:#1b432d;border-radius:14px}.feedback .big{color:var(--green);font-size:27px;line-height:1.2;letter-spacing:-1px;font-weight:950}.feedback .msg{color:#d2ead5;margin-top:4px;font-size:14px}.feedback.missed{background:#3c2926;border-color:#69423b}.feedback.missed .big{color:#ffb2a2}.next{margin-top:13px;width:100%}.dots{display:flex;gap:7px;justify-content:center;margin:18px auto 3px}.dot{height:5px;background:#264d38;flex:1;max-width:70px;border-radius:5px}.dot.done{background:var(--green)}.dot.active{background:#cce6bb}.results-title{text-align:center;font-weight:950;font-size:clamp(36px,7vw,56px);letter-spacing:-2px;line-height:1.1;margin:7px 0 10px}.results-sub{text-align:center;color:var(--muted);font-size:14px}.results-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:19px 0}.result-stat{border:1px solid #3a604a;border-radius:13px;padding:17px;background:#143727;text-align:center}.result-stat strong{display:block;font-size:35px;letter-spacing:-1px}.result-stat span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:1px;font-weight:800}.answer-review{display:grid;gap:8px;margin:18px 0}.review-item{display:flex;gap:10px;align-items:center;background:#102e24;border:1px solid #2b5542;padding:12px 14px;border-radius:11px}.review-index{color:#8aaa98;font-size:12px;font-weight:900;width:25px}.review-name{flex:1;min-width:0;font-weight:800;font-size:13px;word-break:break-word}.review-topic{color:#85a897;font-size:10px;text-transform:uppercase;letter-spacing:.7px;font-weight:800}.review-score{font-size:16px;font-weight:950;color:var(--green)}.more-note{text-align:center;margin-top:12px!important}.footer{text-align:center;padding:33px 10px 15px;font-size:11px;line-height:1.7;color:#719180}.footer strong{color:#add2b8}.announce{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
    @media(max-width:620px){.app{padding:15px 14px 60px}.top{margin-bottom:26px}.brand{font-size:18px}.race-card{padding:14px 12px 0}.track{margin:8px auto 2px}.hero h1{letter-spacing:-2px}.panel{padding:20px 17px}.actions{flex-direction:column}.entry{flex-direction:column}.entry button{width:100%}.stats{gap:7px}.stat{padding:11px 4px}.stat b{font-size:19px}.stat span{font-size:9px}.results-grid{margin-top:15px}.race-top{font-size:10px}}
    .surge-badge{position:absolute;right:20px;top:42px;z-index:3;padding:8px 14px;border-radius:999px;background:#fff;color:#8c2c2c;font-size:11px;font-weight:1000;letter-spacing:1.3px;box-shadow:0 10px 26px #4a0f1266;opacity:0;transform:translateY(-8px) scale(.88);pointer-events:none}.surge-badge.show{animation:surgePop .9s ease forwards}.race-card.surge{animation:cardSurge .85s ease}.race-card.critical{animation:criticalPulse .85s ease-in-out infinite}.track{filter:drop-shadow(0 15px 26px #52151755)}#crowdGlow circle{fill:#fff;opacity:.45;animation:crowdTwinkle 1.9s ease-in-out infinite}#crowdGlow circle:nth-child(2){animation-delay:.35s}#crowdGlow circle:nth-child(3){animation-delay:.7s}#crowdGlow circle:nth-child(4){animation-delay:1.05s}#finishSpark{fill:none;stroke:#fff;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;opacity:.8;animation:finishFlicker 1.2s ease-in-out infinite}.track.suspense #finishSpark{stroke:#ffefb8;opacity:1}#runner{transform-box:fill-box;transform-origin:center}#runner .shadow{fill:#4f1717;opacity:.28}#runner .trail line{stroke:#fff;stroke-width:2.5;stroke-linecap:round;opacity:.65;animation:trailPulse .55s linear infinite}#runner .trail line:nth-child(2){animation-delay:.12s}#runner .trail line:nth-child(3){animation-delay:.24s}#runner .sprite{animation:runnerBob .42s ease-in-out infinite}#runner .head{fill:#fff;stroke:#762a2a;stroke-width:2.2}#runner .torso,#runner .arm,#runner .leg{stroke:#fff;stroke-width:3.8;stroke-linecap:round}#runner .torso{stroke:#fff}#runner .arm.back{animation:armBack .34s ease-in-out infinite;transform-origin:1px -2px}#runner .arm.front{animation:armFront .34s ease-in-out infinite;transform-origin:1px -2px}#runner .leg.back{animation:legBack .34s ease-in-out infinite;transform-origin:1px 7px}#runner .leg.front{animation:legFront .34s ease-in-out infinite;transform-origin:1px 7px}.track.suspense #runner .sprite{animation-duration:.24s}.track.suspense #runner .arm.back,.track.suspense #runner .arm.front,.track.suspense #runner .leg.back,.track.suspense #runner .leg.front{animation-duration:.2s}.timer.pulse{animation:timerPulse .72s ease-in-out infinite}.feedback.surge-good{box-shadow:0 0 0 1px #ffffff36,0 0 26px #fff2}.question{ text-shadow:0 2px 10px #5b161688;}.count-label,.label,.kicker{ text-shadow:0 1px 8px #5b161655;}.button:hover:not(:disabled){box-shadow:0 12px 28px #63181c42}.button:active:not(:disabled){transform:translateY(1px) scale(.99)}@keyframes runnerBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.8px)}}@keyframes armFront{0%,100%{transform:rotate(28deg)}50%{transform:rotate(-34deg)}}@keyframes armBack{0%,100%{transform:rotate(-32deg)}50%{transform:rotate(24deg)}}@keyframes legFront{0%,100%{transform:rotate(28deg)}50%{transform:rotate(-35deg)}}@keyframes legBack{0%,100%{transform:rotate(-30deg)}50%{transform:rotate(24deg)}}@keyframes trailPulse{0%{opacity:.78;transform:translateX(0)}100%{opacity:0;transform:translateX(-11px)}}@keyframes crowdTwinkle{0%,100%{opacity:.25;transform:scale(1)}50%{opacity:.8;transform:scale(1.3)}}@keyframes finishFlicker{0%,100%{opacity:.4}50%{opacity:1}}@keyframes timerPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}@keyframes surgePop{0%{opacity:0;transform:translateY(-10px) scale(.82)}18%{opacity:1;transform:translateY(0) scale(1.05)}70%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-4px) scale(.96)}}@keyframes cardSurge{0%{transform:translateY(0) scale(1);box-shadow:var(--shadow)}30%{transform:translateY(-3px) scale(1.01);box-shadow:0 22px 70px #fff2}100%{transform:translateY(0) scale(1);box-shadow:var(--shadow)}}@keyframes criticalPulse{0%,100%{box-shadow:var(--shadow)}50%{box-shadow:0 0 0 2px #fff3,0 20px 55px #ffefb833}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}

    /* Track red & white — every screen */
    :root{--bg:#742725;--panel:#923b35;--panel2:#a94b41;--border:#d99589;--green:#fff;--text:#fff;--muted:#f8dbd4;--orange:#ffebbc;--red:#ffccbf;--yellow:#fff3d3;--shadow:0 20px 55px #3a0b0e64}
    body{background:radial-gradient(ellipse 85% 65% at 50% -16%,#d66d5b 0%,transparent 70%),linear-gradient(135deg,#973d36,#6b1d22 88%);color:#fff}
    .sub,.description,.panel p,.footer,.footer strong,.fine,.track-foot,.track-foot strong{color:#fff!important}
    .button{background:#fff;color:#8c2c2c}
    .button:hover:not(:disabled){background:#fff0ea}
    .button.secondary,.button.ghost{background:#752724;color:#fff;border:1px solid #efb2a9}
    .button.secondary:hover:not(:disabled){background:#a84b43}
    .race-card{background:linear-gradient(135deg,#ac4b41,#7c2928 92%);border:1px solid #e19b8f}
    .race-card:after{background:radial-gradient(ellipse,#ffffff24 0%,transparent 70%)}
    .race-top,.race-top strong,.score-caption,.score-center{color:#fff;fill:#fff}
    .stat,.result-stat,.review-item{background:#7d2b29;border:1px solid #c57a70}
    .panel{background:#a0453b;border:1px solid #e4a79b}
    .rule{border-color:#e7aaa0;background:#812f2a;color:#fff}
    .label,.kicker,.count-label,.hero h1 em,.feedback .big,.review-score{color:#fff}
    .live-dot{background:#fff;box-shadow:0 0 0 4px #ffffff30}
    .question,.panel h2,.results-title,#questionText{color:#fff!important}
    .timer-bar{background:#6f2828}.timer-bar>div{background:#fff}
    .timer-bar>div.warn{background:#ffe3af}.timer-bar>div.danger{background:#ffb2a1}
    .answer{background:#fff;color:#752622;border:2px solid #fff}
    .answer::placeholder{color:#9c6762}.answer:focus{border-color:#ffe9c2;box-shadow:0 0 0 3px #ffffff3d}
    .answer[aria-invalid="true"]{border-color:#862a2c;box-shadow:0 0 0 2px #ffd4cc}
    @media(prefers-reduced-motion:no-preference){
      .answer[aria-invalid="true"]{animation:answerShake .32s ease-out}
      @keyframes answerShake{
        0%,100%{transform:translateX(0)}
        20%,60%{transform:translateX(-4px)}
        40%{transform:translateX(4px)}
        80%{transform:translateX(2px)}
      }
    }
    .answer-review .review-topic,.review-index,.track-foot{color:#f6d0c9}
    .feedback{background:#762823;border-color:#e4a79b}.feedback .msg{color:#fff}
    .feedback.missed{background:#692227;border-color:#d88e8e}.feedback.missed .big{color:#fff}
    .dot{background:#6e2225}.dot.done{background:#fff}.dot.active{background:#ffdecf}
    .timer.warn{color:#fff0b3}.timer.danger{color:#fff}
    button:focus-visible,input:focus-visible{outline-color:#fff}
    .answer-correction{
      display:block;max-width:100%;min-height:28px;margin:6px 0 0;padding:3px 0;
      border:0;border-radius:4px;background:none;color:#ffe178;font-size:14px;
      font-weight:400;line-height:1.35;text-align:left;overflow-wrap:anywhere;
    }
    .answer-correction:hover .correction-answer,.answer-correction:focus-visible .correction-answer{
      text-decoration:underline;
    }
    .correction-answer{font-weight:700}
    .game-stage #gamePanel .answer-correction:not(.hide) + #answerForm{margin-top:0!important}
    .suggestions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px;background:#792b2a;border:1px solid #ecb3a5;border-radius:12px;padding:10px}
    .suggestions-title{font-weight:850;font-size:12px;color:#fff;margin-right:2px}
    .suggestion{border:1px solid #fff!important;color:#fff!important;background:#a54940!important;padding:9px 12px!important;min-height:35px;border-radius:9px;font-size:12px;font-weight:850}
    .suggestion:hover{background:#fff!important;color:#7c2927!important}
    .suggestions-hint{font-size:11px;color:#ffe5dd;width:100%;margin-top:-1px}
  

    /* 1990s arcade-inspired running sprite: six hand-pixelled stride frames. */
    #pixelRunner,#pixelRunner image{image-rendering:pixelated;image-rendering:crisp-edges;shape-rendering:crispEdges}
    #runner .trail line{stroke:#fbd8ab;stroke-width:2;stroke-dasharray:5 3}
    #runner .shadow{opacity:.38;rx:16}
    #spriteFacing{transform-origin:center}
    @media(prefers-reduced-motion:reduce){#runner .trail line{animation:none;opacity:.35}}
    /* The finish line: an editorial, screenshot-perfect 4:5 race poster. */
    .results-redesign{padding:clamp(16px,4vw,30px)!important;background:linear-gradient(155deg,#9c4038,#822b2a)!important}
    .results-topline{display:flex;justify-content:space-between;align-items:center;gap:8px}
    .results-day-label{color:#ffe1d7;font-size:11px;font-weight:900;letter-spacing:1px;text-transform:uppercase}
    .results-redesign .results-heading{color:#fff;font-size:clamp(33px,6vw,51px);line-height:.97;font-weight:950;letter-spacing:-2px;margin:17px 0 14px}
    .results-heading span{color:#ffd4c2}
    .results-instruction{max-width:540px;color:#fff0e8!important;font-size:13px!important;line-height:1.6!important;margin-bottom:22px!important}
    .share-poster{position:relative;display:flex;flex-direction:column;container-type:inline-size;width:100%;max-width:456px;margin:0 auto;overflow:hidden;padding:5.7%;border-radius:17px;border:1px solid #ffb9a2;background:radial-gradient(ellipse 90% 48% at 88% -6%,#cb6653 0%,transparent 78%),linear-gradient(162deg,#9f3e35 0%,#71302e 53%,#31191c 100%);color:#fff;isolation:isolate;box-shadow:0 24px 65px #4c0d126b,0 0 0 5px #ffffff12;font-variant-numeric:tabular-nums}
    .poster-header{display:flex;align-items:center;justify-content:space-between;gap:8px;line-height:1}
    .poster-wordmark{display:flex;align-items:center;font-size:4.3cqw;font-weight:1000;letter-spacing:-.6px;white-space:nowrap}
    .poster-logomark{display:inline-grid;place-items:center;margin-right:2.3cqw;font-size:4.2cqw;border:1.5px solid white;border-radius:1.2cqw;width:7.2cqw;height:7.2cqw;transform:skew(-8deg);position:relative}
    .poster-logomark span{font-size:2cqw;position:absolute;right:.8cqw;top:.3cqw}
    .poster-stop{color:#ffd2bf}
    .poster-minilabel{font-size:2.25cqw;font-weight:900;line-height:1.28;text-align:right;letter-spacing:.6px;color:#ffe1d5}
    .poster-rule{height:1px;background:#fff5;margin:2.7cqw 0 2.3cqw;flex:none}
    .poster-edition{display:flex;justify-content:space-between;align-items:center;font-size:2.35cqw;letter-spacing:1px;font-weight:900;color:#ffd9c7}
    .poster-title{font-size:9cqw;line-height:.9;letter-spacing:-.55cqw;font-weight:1000;margin:2.5cqw 0 1.4cqw;flex:none;text-transform:uppercase;text-shadow:0 2px 25px #4413163d}
    .poster-scoreline{display:flex;align-items:baseline;gap:2cqw;min-height:17cqw}
    .poster-score{font-size:17cqw;line-height:1;letter-spacing:-1cqw;font-weight:1000}
    .poster-scoresuffix{display:flex;flex-direction:column;gap:.7cqw;white-space:nowrap}
    .poster-scoresuffix b{font-size:5.7cqw;line-height:1}
    .poster-scoresuffix small{font-size:1.95cqw;letter-spacing:1px;font-weight:900;color:#f8d1c5}
    .poster-stats{display:flex;gap:3cqw;margin:1.6cqw 0 2.5cqw}
    .poster-stats span{display:flex;align-items:center;gap:1cqw;border-radius:1cqw;background:#ffffff16;border:1px solid #ffffff35;padding:1.1cqw 1.6cqw;color:#fff1e9;font-size:2.1cqw;letter-spacing:.3px;font-weight:800}
    .poster-stats b{color:#fff;font-size:3.7cqw;line-height:1;font-weight:1000}
    .poster-splits-heading{display:flex;justify-content:space-between;padding-inline-end:calc(max(14px,2.8cqw) + 1.2cqw);padding-bottom:1.35cqw;border-bottom:1px solid #ffffff66;color:#ffe7dd;font-size:2.1cqw;font-weight:950;letter-spacing:1.2px}
    .poster-splits{display:grid;gap:.2cqw;padding:1.2cqw 0}
    .poster-split-row{min-width:0;border-bottom:1px solid #ffffff20}
    .poster-split-row:last-child{border-bottom:0}
    .poster-split{display:grid;grid-template-columns:4cqw minmax(0,1fr) 25cqw max(30px,13.5cqw) max(14px,2.8cqw);align-items:center;gap:1.2cqw;min-height:clamp(36px,7cqw,48px)}
    .poster-split-num{font-size:2.55cqw;color:#f4c8bb;font-weight:900}
    .poster-split-bar{height:1.65cqw;min-width:0;background:#ffffff1c;border-radius:100px;overflow:hidden}
    .poster-split-fill{height:100%;width:var(--split-width);background:var(--split-color);border-radius:100px}
    .poster-split-tier{font-weight:900;letter-spacing:.15px;font-size:2.25cqw;line-height:1.1;color:#ffddcf;overflow-wrap:anywhere}
    .poster-split-points{text-align:right;font-size:3.3cqw;font-weight:1000}
    .poster-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:8px;border-top:1px solid #ffffff66;padding-top:2cqw}
    .poster-bottom>span:first-child{font-weight:800;letter-spacing:.5px;font-size:2.4cqw;line-height:1.4;color:#ffe1d2}
    .poster-bottom b{color:#fff;font-size:3.1cqw}
    .poster-challenge{white-space:nowrap;font-size:2.45cqw;font-weight:950;letter-spacing:.5px;color:#fff}
    .poster-challenge .challenge-arrow{font-size:3.5cqw}
    .share-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-width:456px;margin:17px auto 4px}
    .share-actions .button{font-weight:950;min-height:48px;padding:12px 8px;font-size:12px}
    .share-actions .share-copy{grid-column:1 / -1;min-height:42px}
    .share-detail{font-size:11px!important;text-align:center;max-width:456px;margin:10px auto!important;line-height:1.5!important;color:#ffe1d7!important}
    .share-status{font-size:12px;font-weight:800;color:#fff;min-height:18px;text-align:center;margin:6px 0 13px}
    .race-report{border:1px solid #e5a296;border-radius:14px;max-width:550px;margin:14px auto 0;background:#6e2727;overflow:hidden}
    .race-report summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:16px;font-size:12px;font-weight:950;letter-spacing:1px;color:#fff}
    .race-report summary::-webkit-details-marker{display:none}
    .race-report summary span{font-size:21px;line-height:1;transition:transform .2s}
    .race-report[open] summary span{transform:rotate(45deg)}
    .race-report-body{padding:0 14px 15px}.race-report .result-stat{padding:12px}.race-report .answer-review{margin:8px 0 0}
    .another-race{display:flex;width:100%;max-width:550px;margin:14px auto 3px}
    .results-redesign .more-note{margin-top:16px!important;color:#f9ded6!important;text-align:center}
    @media(max-width:440px){.results-redesign{padding:16px 12px!important}.share-poster{border-radius:12px}.share-actions{gap:7px}.share-actions .button{font-size:11px}}
    @media(prefers-reduced-motion:reduce){.share-poster{animation:none!important}}

    /* Stadium timing board: square dot-matrix LEDs and yellow casing. */
    .share-poster{background:radial-gradient(ellipse 75% 30% at 95% -4%,#bb5b49,transparent 85%),linear-gradient(160deg,#a8473c,#70282a 66%,#271619);padding:5.2%;}
    .poster-edition{font-size:2.15cqw;color:#ffe4cc;margin:0 0 2cqw;letter-spacing:.6px;}
    .matrix-frame{position:relative;flex:none;background:linear-gradient(128deg,#ffe23b 0%,#ffcb05 40%,#d7a500 100%);padding:1.75cqw 1.7cqw 1.2cqw;border:.65cqw solid #ffe764;border-radius:1.4cqw;box-shadow:inset 0 0 0 1px #f3b900,0 1.25cqw 0 #9c5e0b,0 2.2cqw 5cqw #200e10a1;transform:perspective(1200px) rotateX(.5deg);}
    .matrix-frame:before{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 .6cqw 1cqw #fff7;pointer-events:none;}
    .matrix-header{min-height:8.2cqw;display:flex;justify-content:space-between;align-items:center;gap:1cqw;color:#171716;padding:0 1.2cqw .8cqw;}
    .matrix-brand{font:900 5.55cqw/1 var(--site-font);letter-spacing:-.2cqw;white-space:nowrap;}
    .matrix-brand span{font:inherit;color:#151514}
    .matrix-headmeta{font-size:1.8cqw;line-height:1.12;font-weight:1000;letter-spacing:.25px;text-align:right}
    .matrix-screen{background:repeating-linear-gradient(0deg,#191e20 0,#191e20 3px,#202529 4px);border:.8cqw solid #34393a;box-shadow:inset 0 0 0 .6cqw #101417,inset 0 0 3.7cqw #080a0b;position:relative;min-height:28.3cqw;padding:1.2cqw 1.1cqw .7cqw;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;overflow:hidden;}
    .matrix-screen:before{content:'';position:absolute;inset:0;background:linear-gradient(130deg,#ffffff12 0%,transparent 36%,#00000050 88%);pointer-events:none;}
    .matrix-screen-top,.matrix-screen-bottom{z-index:1;display:flex;justify-content:space-between;align-items:center;gap:1cqw;color:#d1d591;}
    .matrix-screen-top,.matrix-screen-bottom,#posterComparison{font:900 1.95cqw/1.3 var(--site-font);letter-spacing:.22cqw}
    .matrix-screen-bottom{color:#d9d2a0}.matrix-screen-bottom strong{color:#f6e82c;font-size:2.5cqw;white-space:nowrap}
    .matrix-screen-value{--led-dot:2.25cqw;--led-gap:.55cqw;--led-space:1.9cqw;display:flex;justify-content:center;align-items:center;flex:1;min-height:22cqw;gap:var(--led-space);position:relative;z-index:1;}
    .matrix-character{display:grid;grid-template-columns:repeat(5,var(--led-dot));grid-template-rows:repeat(7,var(--led-dot));gap:var(--led-gap);flex:none;}
    .matrix-pixel{width:var(--led-dot);height:var(--led-dot);display:block;flex:none;border-radius:.1cqw;background:#595d46;opacity:.22;}
    .matrix-pixel.is-lit{background:#f5f92d;opacity:1;box-shadow:0 0 .2cqw #fbff65,0 0 1.1cqw #daec3275;}
    .matrix-footer{display:flex;justify-content:space-between;align-items:center;padding:1.4cqw 1.3cqw .2cqw;color:#392906;font-weight:1000;letter-spacing:.22cqw;font-size:1.9cqw;}
    #posterComparison{font-size:max(9px,1.95cqw)}
    .poster-title{font-size:6.7cqw;letter-spacing:-.25cqw;line-height:.92;margin:4.1cqw 0 1cqw;text-transform:uppercase;color:white;}
    .poster-stats{margin:1cqw 0 1.6cqw;gap:1.4cqw}
    .poster-stats span{padding:.8cqw 1.2cqw;font-size:2cqw}
    .poster-stats b{font-size:3.2cqw}
    .poster-splits-heading{font-size:2cqw;padding-bottom:.8cqw;}
    .poster-splits{gap:0;padding:.5cqw 0;}
    .poster-split-num{font-size:2.4cqw}.poster-split-points{font-size:3cqw}
    .poster-bottom{padding-top:1.2cqw}.poster-bottom>span:first-child{font-size:2.15cqw}.poster-bottom b{font-size:2.8cqw}.poster-challenge{font-size:2.3cqw}
    @media(max-width:385px){.matrix-brand{font-size:5.4cqw}.matrix-headmeta{font-size:1.65cqw}}
    @media(prefers-reduced-motion:reduce){.matrix-frame{transform:none!important}}
  
    /* Compact yellow stadium scoreboard replaces the old text counter in the track header. */
    .race-top{align-items:flex-start;gap:12px;min-height:83px;}
    .race-label-group{display:flex;flex-direction:column;gap:5px;padding-top:10px;min-width:0;}
    .race-clock{width:148px;min-width:148px;padding:6px 8px 5px;background:linear-gradient(125deg,#fff27e,#fcd31e 47%,#d3a000);border:2px solid #ffe863;border-radius:5px;box-shadow:0 4px 0 #98600c,0 8px 18px #40151770,inset 0 1px 1px #fff7;color:#1b1b16;display:flex;flex-direction:column;gap:4px;}
    .race-clock-brand{font:900 10px/1 var(--site-font);letter-spacing:-.5px;text-align:center;color:#1b1b16;}
    .race-clock-brand span{color:#1b1b16;}
    .race-clock-screen{min-height:37px;display:grid;place-items:center;padding:4px 5px;background:repeating-linear-gradient(0deg,#1a2020 0,#1a2020 3px,#262b29 4px);border:2px solid #383e3e;box-shadow:inset 0 0 0 2px #0d1212,inset 0 0 10px #020505;border-radius:2px;}
    .race-clock-digits{--mini-dot:3.1px;--mini-gap:1.4px;display:flex;justify-content:center;gap:5px;}
    .mini-matrix-character{display:grid;grid-template-columns:repeat(5,var(--mini-dot));grid-template-rows:repeat(7,var(--mini-dot));gap:var(--mini-gap);flex:none;}
    .mini-matrix-pixel{width:var(--mini-dot);height:var(--mini-dot);display:block;border-radius:.25px;background:#556049;opacity:.26;}
    .mini-matrix-pixel.is-lit{background:#f0f827;opacity:1;box-shadow:0 0 3px #eeff4c9c;}
    .race-clock-footer{display:flex;justify-content:space-between;align-items:center;font:900 8px/1.2 var(--site-font);letter-spacing:.4px;color:#40320a;}
    .race-clock-footer strong{color:#40320a!important;}
    @media(max-width:480px){.race-top{min-height:78px;gap:5px}.race-label-group{padding-top:7px}.race-clock{width:133px;min-width:133px;padding:5px 6px 4px}.race-clock-brand{font-size:9px}.race-clock-digits{--mini-dot:2.9px;--mini-gap:1.2px}.race-clock-screen{min-height:34px;padding:3px}.race-clock-footer{font-size:7px}}
    @media(prefers-reduced-motion:reduce){.race-clock{transition:none}}

    /* Compact home composition avoids clipping the oval on shorter laptops. */
    .home-stage #welcomeStats{display:none}
    .home-stage .race-card{flex:0 0 auto}
    .home-stage .race-card .track{max-width:355px}
    .home-stage .hero .sub{max-width:760px}
    @media(max-width:620px){.home-stage .race-card .track{max-width:345px}}
    @media(max-height:710px) and (min-width:700px){.home-stage .race-card .track{max-width:285px}}
    /* Three vertical game scenes: the home screen descends into the timed race,
       then into the finish results. Each scene fills a desktop viewport. */
    html,body{height:100%;overscroll-behavior:none}
    body{overflow:hidden}
    .app{height:100dvh;max-width:980px;padding:10px 16px 0;display:flex;flex-direction:column;overflow:hidden}
    .app>.top{flex:0 0 auto;margin:0 0 10px;min-height:39px}
    .stage-window{flex:1;min-height:0;overflow:hidden;position:relative;border-radius:4px;}
    .stage-strip{height:300%;display:flex;flex-direction:column;transform:translateY(0);transition:transform .82s cubic-bezier(.19,.84,.15,1);will-change:transform}
    .stage{width:100%;height:33.333333%;flex-shrink:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#e4a295 transparent;padding:4px 5px 16px;display:flex;flex-direction:column;gap:10px}
    .app[data-stage="game"] .stage-strip{transform:translateY(-33.333333%)}
    .app[data-stage="results"] .stage-strip{transform:translateY(-66.666667%)}
    .stage main{display:block;flex:none;margin:0}
    .stage .hero{margin:0 auto 2px;max-width:650px}
    .stage .hero h1{font-size:clamp(30px,4.3vw,51px);line-height:1.02;letter-spacing:-1.9px;margin:6px 0 6px}
    .stage .hero .sub{font-size:13px;line-height:1.45;max-width:550px}
    .home-stage .race-card{padding:10px 15px 0;border-radius:18px}
    .home-stage .race-card .track{max-width:410px;margin:-2px auto -2px}
    .home-stage .race-top,.game-stage .race-top{min-height:68px}
    .home-stage .race-label-group,.game-stage .race-label-group{padding-top:5px}
    .home-stage .stats{margin:0;gap:8px}
    .home-stage .stat{padding:7px 6px}
    .home-stage .stat b{font-size:17px}
    .home-stage .stat span{font-size:9px;margin:0}
    .home-stage #homePanel{padding:14px 18px;border-radius:16px}
    .home-stage #homePanel h2{font-size:21px;margin:4px 0}
    .home-stage #homePanel p{font-size:12px;line-height:1.4}
    .home-stage #homePanel .actions{margin-top:10px}
    .home-stage #homePanel .button{min-height:43px;padding:9px 12px}
    .game-stage .race-card{flex:none;padding:8px 14px 0;border-radius:18px;box-shadow:0 15px 40px #3a0b0e4a}
    .game-stage .race-card .track{max-width:345px;margin:-10px auto -2px}
    .game-stage .track-foot{padding-bottom:7px}
    .game-stage #gamePanel{padding:16px 21px;border-radius:17px;flex:none}
    .game-stage #gamePanel .timer-bar{margin:7px 0 13px}
    .game-stage #gamePanel .question{font-size:clamp(21px,3.3vw,30px);line-height:1.18;margin:8px 0}
    .game-stage #gamePanel .description{font-size:11px!important;line-height:1.45!important}
    .game-stage #gamePanel .entry{margin-top:12px}
    .game-stage #gamePanel .answer,.game-stage #gamePanel .entry .button{padding:11px 12px;min-height:44px}
    .game-stage #gamePanel .dots{margin:12px 0 0}
    .game-stage .feedback{margin-top:9px;padding:11px 13px}
    .game-stage .next{margin-top:9px;min-height:41px}
    .game-stage .message{margin-top:6px;min-height:13px;font-size:11px}
    .game-stage .question-top .timer{font-size:25px}
    .stage .panel{box-shadow:0 15px 35px #3a0b0e3b}
    .app>.footer{display:none}
    .results-stage{align-items:center;overflow-y:auto;padding-top:8px}
    .results-stage main{width:100%;max-width:850px}
    .results-stage #resultsPanel{max-width:760px;margin:0 auto}
    .stage-window:after{content:"";position:absolute;inset:0;z-index:3;background:linear-gradient(180deg,#ffc9ae13 0%,transparent 45%,#f7d8ba13 75%,transparent 100%);pointer-events:none;opacity:0;transition:opacity .3s}
    .app.is-descending .stage-window:after{opacity:1}
    .app.is-descending .stage-strip{filter:drop-shadow(0 -15px 40px #240b1460)}
    .stage-view-helper{position:absolute;right:12px;bottom:10px;font-size:10px;color:#fff7;pointer-events:none;z-index:2}
    @media(min-width:950px) and (min-height:640px){
      .results-stage #resultsPanel{display:grid;grid-template-columns:minmax(0,1fr)  minmax(295px,360px);column-gap:18px;row-gap:9px;max-width:920px;padding:17px;align-items:start}
      .results-stage main{max-width:930px}
      .results-topline{grid-column:1/-1}
      .results-redesign .results-heading{grid-column:1;grid-row:2;margin:5px 0;font-size:35px}
      .results-redesign .results-instruction{grid-column:1;grid-row:3;margin:0!important}
      .results-redesign .share-poster{grid-column:2;grid-row:2/span 8;max-width:345px}
      .results-redesign .share-actions{grid-column:1;grid-row:4;margin:12px 0;max-width:none}
      .results-redesign .share-detail{grid-column:1;grid-row:5;max-width:none;text-align:left}
      .results-redesign .share-status{grid-column:1;grid-row:6}
      .results-redesign .race-report{grid-column:1;grid-row:7;margin:2px 0}
      .results-redesign .another-race{grid-column:1;grid-row:8;margin:8px 0}
      .results-redesign .more-note{grid-column:1;grid-row:9}
    }
    @media(max-height:710px) and (min-width:700px){
      .home-stage .race-card .track{max-width:330px}
      .game-stage .race-card .track{max-width:265px}
      .stage .hero h1{font-size:clamp(28px,3.6vw,39px)}
      .game-stage #gamePanel{padding:13px 17px}
      .home-stage .race-card{padding-top:6px}
      .home-stage .stat{padding:5px}
    }
    @media(max-width:620px){
      .app{padding:8px 10px 0}
      .app>.top{margin-bottom:7px}
      .stage{padding:4px 2px 18px;gap:10px}
      .stage .hero h1{font-size:clamp(29px,8vw,42px)}
      .stage .hero .sub{font-size:12px}
      .home-stage .race-card .track{max-width:380px;margin:0 auto}
      .game-stage .race-card .track{max-width:315px;margin:-4px auto 0}
      .game-stage #gamePanel{padding:15px 14px}
      .game-stage #gamePanel .entry{flex-direction:row;flex-wrap:wrap}
      .game-stage #gamePanel .entry .answer{flex:1 1 150px}
      .game-stage #gamePanel .entry .button{width:auto;flex:0 0 auto}
      .home-stage #homePanel .actions{flex-direction:row;flex-wrap:wrap}
      .home-stage #homePanel .actions .button{flex:1 1 145px}
      .home-stage .race-card{padding:8px 10px 0}
      .results-stage{padding:4px 2px 20px}
    }
    @media(max-width:390px){.game-stage #gamePanel .entry .button{padding:8px 9px}.game-stage .race-card .track{max-width:250px}}
    @media(prefers-reduced-motion:reduce){.stage-strip{transition:none!important}}

    /* Track-lane streaks amplify the quick downward scene transition. */
    .stage-window:before{content:"";position:absolute;z-index:4;inset:0;pointer-events:none;opacity:0;background:repeating-linear-gradient(180deg,transparent 0,transparent 72px,#ffd9c11d 74px,transparent 76px);transform:translateY(-100%)}
    .app.is-descending .stage-window:before{animation:laneDescent .82s ease-in-out both}
    @keyframes laneDescent{0%{opacity:0;transform:translateY(-85%)}30%{opacity:.7}100%{opacity:0;transform:translateY(90%)}}
    @media(prefers-reduced-motion:reduce){.app.is-descending .stage-window:before{animation:none}}
    .home-stage{gap:8px;padding-bottom:10px}
    /* Final home track sizing, after responsive style rules. */
    .home-stage .race-card{flex-shrink:0}
    .home-stage #welcomeStats{display:none}
    @media(min-width:621px){.home-stage .race-card .track{max-width:355px}}
    @media(min-width:621px) and (max-height:710px){.home-stage .race-card .track{max-width:285px}}
    @media(max-width:620px){.home-stage .race-card .track{max-width:345px}}
  
    /* Result-first screen: a single shareable clock card with tap-to-explore splits. */
    .results-stage #resultsPanel{display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;width:100%;max-width:555px!important;padding:9px 16px 16px!important;margin:0 auto!important}
    .results-redesign .results-topline,.results-redesign .results-heading,.results-redesign .results-instruction,.results-redesign .race-report,.results-redesign .share-detail,.results-redesign .more-note{display:none!important}
    .results-stage #sharePoster{grid-column:auto!important;grid-row:auto!important;max-width:365px!important;width:100%;margin:0 auto!important;flex:none}
    .results-stage .share-actions{grid-column:auto!important;grid-row:auto!important;width:100%;max-width:365px;margin:0!important}
    .results-stage .share-status{grid-column:auto!important;grid-row:auto!important;margin:0;min-height:0}
    .results-stage .another-race{grid-column:auto!important;grid-row:auto!important;max-width:365px;margin:0 auto!important;min-height:38px;padding:8px 12px;font-size:12px}
    .results-stage .split-help{margin:0!important;letter-spacing:1px;color:#ffe5d2!important;font-size:10px!important;font-weight:900;text-align:center}
    .poster-split{list-style:none;width:100%;border-radius:3px;color:#fff;text-align:left;padding:0;cursor:pointer;transition:background .15s;touch-action:manipulation}
    .poster-split::-webkit-details-marker{display:none}
    .poster-split:hover,.poster-split-row[open]>.poster-split{background:#ffffff18}
    .poster-split:active{background:#ffffff2b}
    .poster-split:focus-visible{outline:2px solid #ffe88c;outline-offset:-2px}
    .split-dialog{border:1px solid #edb18c;border-radius:18px;padding:0;width:min(94vw,540px);max-height:min(82dvh,720px);background:#6c2826;color:#fff;box-shadow:0 25px 90px #160509bb;overscroll-behavior:contain}
    .split-dialog::backdrop{background:#180608d9;backdrop-filter:blur(5px)}
    .split-dialog-header{position:sticky;top:0;z-index:1;background:#953c32;padding:17px 20px;display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #d28e7d}
    .split-dialog-overline{font-size:10px;letter-spacing:1.3px;font-weight:900;color:#ffe2ce}
    .split-dialog h3{font-size:20px;letter-spacing:-.4px;margin:4px 0 0;line-height:1.1;color:white}
    .split-dialog-close{appearance:none;border:1px solid #e9b5a0;background:#712824;color:white;font-size:17px;border-radius:50%;min-width:37px;height:37px;cursor:pointer}
    .split-dialog-close:hover{background:#b35c46}
    .split-dialog-body{padding:16px 20px 23px}
    .split-dialog-question{color:#fff!important;font-size:17px!important;font-weight:850;line-height:1.4;margin:0 0 13px!important}
    .split-dialog-answer{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 12px;border-radius:11px;padding:11px 13px;background:#421b1d;border:1px solid #ac6d62}
    .split-dialog-answer>span{grid-column:1/-1;font-size:10px;letter-spacing:1.2px;color:#dfb3a8;font-weight:900}
    .split-dialog-answer strong{font-size:15px;word-break:break-word}.split-dialog-answer b{font-size:19px;color:#ffe04e}
    .split-dialog-note{font-size:11px!important;line-height:1.45!important;color:#f8cbbb!important;margin:12px 0 14px!important}
    .tier-example-list{display:grid;gap:9px}.tier-example{background:#552121;border:1px solid #a96658;border-radius:10px;padding:10px 12px}
    .tier-example-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#fff0d8;margin-bottom:6px;font-size:11px;letter-spacing:.65px}
    .tier-example-heading span{color:#e9b5a5;font-weight:850}
    .tier-example-items{display:grid;gap:5px}.tier-example-item{display:flex;justify-content:space-between;gap:14px;font-size:13px;line-height:1.3}
    .tier-example-item b{color:#fbe58d;white-space:nowrap}.tier-empty{color:#caa69c;font-style:italic;font-size:12px}
    @media(max-height:710px) and (min-width:720px){.results-stage #sharePoster{max-width:325px!important}.results-stage #resultsPanel{gap:5px;padding:6px 13px!important}.results-stage .share-actions .button{min-height:38px;padding:8px}}
    @media(max-width:430px){.results-stage #resultsPanel{padding:7px 9px 15px!important}.split-dialog-body{padding:13px 14px 18px}}
    /* Single daily-race CTA sits at the foot of the home viewport. */
    .home-stage > main{width:100%;margin-top:auto!important;flex:0 0 auto}
    .home-stage #homePanel{padding:14px 17px 16px}
    .home-stage #homePanel .home-cta-row{margin-top:14px;width:100%;display:block}
    .home-stage #homePanel #startDaily{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:55px;border:1px solid #fff6eb;border-radius:15px;background:linear-gradient(112deg,#fffefd 0%,#fff4e9 65%,#ffe8d9 100%);color:#792b28;box-shadow:0 10px 28px #4b13184d, inset 0 1px 0 #fff;padding:13px 58px 13px 20px;font-size:13px;font-weight:950;letter-spacing:1.25px;transition:transform .2s,box-shadow .2s,background .2s}
    .home-stage #homePanel #startDaily:hover{transform:translateY(-2px);background:linear-gradient(110deg,#fff,#fff0e3);box-shadow:0 14px 32px #4b131866}
    .home-stage #homePanel #startDaily:active{transform:translateY(1px)}
    .home-start-label{display:block;text-align:center;flex:1;white-space:nowrap}
    .home-start-arrow{position:absolute;right:13px;top:50%;transform:translateY(-50%);width:31px;height:31px;display:grid;place-items:center;border-radius:10px;background:#862e2b;color:white;font-size:20px;font-weight:850;line-height:1;animation:homeArrowDrop 1.7s ease-in-out infinite}
    @keyframes homeArrowDrop{0%,100%{transform:translateY(-50%)}50%{transform:translateY(-33%)}}
    @media(max-width:620px){.home-stage #homePanel{padding:12px 13px 14px}.home-stage #homePanel #startDaily{min-height:53px;font-size:12px;letter-spacing:.7px}}
    @media(prefers-reduced-motion:reduce){.home-start-arrow{animation:none!important}}

    /* Larger single-column desktop result, with icon-only sharing tools. */
    .results-stage{padding:2px 2px 8px!important;align-items:center!important}
    .results-stage main{max-width:none!important;display:flex!important;justify-content:center!important;width:100%!important}
    .results-stage #resultsPanel{position:relative;display:flex!important;flex-direction:column!important;align-items:center!important;gap:6px!important;width:100%!important;max-width:min(660px, calc(80dvh - 125px), calc(100vw - 44px))!important;min-width:0;padding:0!important;margin:0 auto!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
    .results-stage #sharePoster{width:100%!important;max-width:none!important;flex:0 0 auto!important;margin:0!important;grid-column:auto!important;grid-row:auto!important;box-shadow:0 18px 55px #330a1166,0 0 0 1px #ffcdb44a!important}
    .result-icon-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:7px;width:100%;min-height:34px;margin:0;flex:none}
    .result-icon-button{appearance:none;display:grid;place-items:center;width:34px;height:34px;min-width:34px;padding:0;border:1px solid #ffd1b488;border-radius:9px;background:#ffffff14;color:#fff8ef;box-shadow:none;cursor:pointer;transition:background .18s,transform .18s,border-color .18s}
    .result-icon-button svg{display:block;width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
    .result-icon-button:hover:not(:disabled){background:#ffffff30;border-color:#fff0d1;transform:translateY(-2px)}
    .result-icon-button:focus-visible{outline:2px solid #ffe57d;outline-offset:3px}
    .result-icon-button:active:not(:disabled){transform:translateY(0)}
    .result-icon-button:disabled{opacity:.45;cursor:wait}
    .results-stage .share-actions{display:none!important}
    .results-stage .share-status{width:auto!important;min-width:0;flex:1;margin:0!important;min-height:0!important;font-size:9px!important;font-weight:900;letter-spacing:.65px;line-height:1.3;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#ffdbc8}
    @media(max-width:620px){.results-stage #resultsPanel{max-width:min(calc(100vw - 24px), calc(80dvh - 125px))!important}.result-icon-toolbar{min-height:38px;gap:9px}.result-icon-button{width:38px;height:38px}.result-icon-button svg{width:18px;height:18px}}
    @media(prefers-reduced-motion:reduce){.result-icon-button{transition:none!important}}

    /* Airport split-flap motion, made from the existing square LED pixels. */
    .matrix-pixel.flip-pixel,.mini-matrix-pixel.flip-pixel{
      position:relative;background:transparent!important;opacity:1!important;
      transform-style:preserve-3d;box-shadow:none!important;
      animation:ledTileFlip 355ms cubic-bezier(.24,.82,.31,1) both;
      animation-delay:var(--flip-delay,0ms);
    }
    .matrix-pixel.flip-pixel::before,.matrix-pixel.flip-pixel::after,
    .mini-matrix-pixel.flip-pixel::before,.mini-matrix-pixel.flip-pixel::after{
      content:"";position:absolute;inset:0;border-radius:inherit;
      backface-visibility:hidden;background:#51584c;opacity:.23;
    }
    .matrix-pixel.flip-pixel::after,.mini-matrix-pixel.flip-pixel::after{transform:rotateX(180deg)}
    .matrix-pixel.flip-pixel.new-lit::after{background:#f5f92d;opacity:1;box-shadow:0 0 .2cqw #fbff65,0 0 1.1cqw #daec3275}
    .matrix-pixel.flip-pixel.old-lit::before{background:#f5f92d;opacity:1;box-shadow:0 0 .2cqw #fbff65,0 0 1.1cqw #daec3275}
    .mini-matrix-pixel.flip-pixel.new-lit::after{background:#f0f827;opacity:1;box-shadow:0 0 3px #eeff4c9c}
    .mini-matrix-pixel.flip-pixel.old-lit::before{background:#f0f827;opacity:1;box-shadow:0 0 3px #eeff4c9c}
    @keyframes ledTileFlip{
      0%{transform:perspective(170px) rotateX(0deg)}
      47%{transform:perspective(170px) rotateX(84deg)}
      53%{transform:perspective(170px) rotateX(96deg)}
      100%{transform:perspective(170px) rotateX(180deg)}
    }
    @media(prefers-reduced-motion:reduce){.flip-pixel{animation:none!important}}

/* Split-flap domino clock: each of the 105 tiles flickers independently. */
.result-back-button{flex:none}
.score-replay{appearance:none;border:0;border-radius:2px;padding:0;margin:0;width:100%;background:transparent;color:inherit;font:inherit;cursor:pointer;touch-action:manipulation}
.score-replay:hover{background:#f7fbb908}.score-replay:focus-visible{outline:2px solid #f5f92d;outline-offset:3px}.score-replay:active{background:#f7fbb915}
.matrix-pixel.flip-pixel,.mini-matrix-pixel.flip-pixel{--old-opacity:.23;--new-opacity:.23;--new-face:#51584c;--new-glow:none;animation:dominoDotFlip 470ms cubic-bezier(.23,.8,.31,1) both;animation-delay:var(--flip-delay,0ms)}
.matrix-pixel.flip-pixel.old-lit,.mini-matrix-pixel.flip-pixel.old-lit{--old-opacity:1}
.matrix-pixel.flip-pixel.new-lit{--new-opacity:1;--new-face:#f5f92d;--new-glow:0 0 .8cqw #f5f92d88}
.mini-matrix-pixel.flip-pixel.new-lit{--new-opacity:1;--new-face:#f0f827;--new-glow:0 0 3px #eeff4c9c}
.matrix-pixel.flip-pixel::before,.mini-matrix-pixel.flip-pixel::before{opacity:var(--old-opacity);animation:dominoOldFaceSpark 470ms steps(1,end) both;animation-delay:var(--flip-delay,0ms)}
.matrix-pixel.flip-pixel::after,.mini-matrix-pixel.flip-pixel::after{opacity:var(--new-opacity);background:var(--new-face);box-shadow:var(--new-glow);animation:dominoNewFaceSpark 470ms steps(1,end) both;animation-delay:var(--flip-delay,0ms)}
@keyframes dominoDotFlip{0%{transform:perspective(160px) rotateX(0deg);filter:brightness(.7)}46%{transform:perspective(160px) rotateX(85deg);filter:brightness(3.2)}54%{transform:perspective(160px) rotateX(95deg);filter:brightness(3.2)}100%{transform:perspective(160px) rotateX(180deg);filter:brightness(1)}}
@keyframes dominoOldFaceSpark{0%,17%{opacity:var(--old-opacity);background:#51584c}18%,27%{opacity:1;background:#fffbc1;box-shadow:0 0 6px #fbf675}28%,100%{opacity:var(--old-opacity);background:#51584c;box-shadow:none}}
@keyframes dominoNewFaceSpark{0%,53%{opacity:.23;background:#51584c;box-shadow:none}54%,63%{opacity:1;background:#fffbd2;box-shadow:0 0 9px #fbf56f}64%,71%{opacity:.18;background:#51584c;box-shadow:none}72%,83%{opacity:1;background:#fff6aa;box-shadow:0 0 7px #fff27a}84%,100%{opacity:var(--new-opacity);background:var(--new-face);box-shadow:var(--new-glow)}}
@media(prefers-reduced-motion:reduce){.matrix-pixel.flip-pixel,.mini-matrix-pixel.flip-pixel,.matrix-pixel.flip-pixel::before,.matrix-pixel.flip-pixel::after,.mini-matrix-pixel.flip-pixel::before,.mini-matrix-pixel.flip-pixel::after{animation:none!important}}

    /* Overlapping airport-board digit cycles: one *whole number* flips at a time. */
    .matrix-character,.mini-matrix-character{transform-origin:50% 50%;will-change:transform,filter}
    .matrix-character.clock-digit-turn,.mini-matrix-character.clock-digit-turn{
      animation:clockColumnFlip 150ms cubic-bezier(.22,.8,.32,1) both;
    }
    .mini-matrix-character.clock-digit-turn{animation-duration:110ms}
    .matrix-character.clock-digit-turn .matrix-pixel.is-lit,
    .mini-matrix-character.clock-digit-turn .mini-matrix-pixel.is-lit{
      animation:clockDotFlash 150ms ease-out both;
    }
    .mini-matrix-character.clock-digit-turn .mini-matrix-pixel.is-lit{animation-duration:110ms}
    @keyframes clockColumnFlip{
      0%{transform:perspective(330px) rotateX(-75deg) translateY(-2px);filter:brightness(.55);opacity:.35}
      42%{transform:perspective(330px) rotateX(-12deg);filter:brightness(2.2);opacity:.92}
      100%{transform:perspective(330px) rotateX(0);filter:brightness(1);opacity:1}
    }
    @keyframes clockDotFlash{
      0%{opacity:.1;filter:brightness(.5)}
      52%{opacity:1;filter:brightness(2.2)}
      100%{opacity:1;filter:brightness(1)}
    }
    @media(prefers-reduced-motion:reduce){
      .matrix-character.clock-digit-turn,.mini-matrix-character.clock-digit-turn,
      .matrix-character.clock-digit-turn .matrix-pixel.is-lit,
      .mini-matrix-character.clock-digit-turn .mini-matrix-pixel.is-lit{animation:none!important}
    }

/* OUTSIDELANE logo behaves as a subtle way back to the top/start. */
.brand-home{appearance:none;border:0;background:transparent;color:inherit;cursor:pointer;padding:0;font-family:inherit;text-align:left}
.brand-home:focus-visible,.result-wordmark-home:focus-visible{outline:2px solid #fff29b;outline-offset:4px;border-radius:4px}
.result-wordmark-home{appearance:none;border:0;background:transparent;text-align:left;color:#171716;cursor:pointer;padding:0;font-family:var(--site-font)}
.result-wordmark-home:hover,.brand-home:hover{filter:brightness(1.1)}
/* A left-to-right 15-column score reveal. Only FINAL lit pixels flash yellow. */
.matrix-pixel.score-dot-reveal.is-lit{
  animation:scoreColumnOn 440ms steps(1,end) both;
  animation-delay:var(--dot-delay,0ms);
  transform-origin:50% 50%;
}
.matrix-pixel.score-dot-reveal:not(.is-lit){
  animation:scoreColumnOff 440ms steps(1,end) both;
  animation-delay:var(--dot-delay,0ms);
  transform-origin:50% 50%;
}
@keyframes scoreColumnOn{
  0%,11%{background:#414841;opacity:.13;box-shadow:none;transform:perspective(95px) rotateX(80deg)}
  12%,23%{background:#fffb99;opacity:1;box-shadow:0 0 1.3cqw #ffff88;transform:perspective(95px) rotateX(25deg)}
  24%,40%{background:#777c38;opacity:.48;box-shadow:none;transform:perspective(95px) rotateX(8deg)}
  41%,56%{background:#f5f92d;opacity:1;box-shadow:0 0 1.1cqw #f7ff69;transform:rotateX(0)}
  57%,70%{background:#919a38;opacity:.53;box-shadow:none}
  71%,86%{background:#fffda0;opacity:1;box-shadow:0 0 1.2cqw #ffff94}
  87%,100%{background:#f5f92d;opacity:1;box-shadow:0 0 .2cqw #fbff65,0 0 1.1cqw #daec3275;transform:none}
}
@keyframes scoreColumnOff{
  0%,11%{background:#333b3a;opacity:.07;box-shadow:none;transform:perspective(95px) rotateX(80deg)}
  12%,23%{background:#4b5149;opacity:.20;box-shadow:none;transform:perspective(95px) rotateX(25deg)}
  24%,40%{background:#363f3c;opacity:.09;box-shadow:none;transform:perspective(95px) rotateX(8deg)}
  41%,56%{background:#545c51;opacity:.20;box-shadow:none;transform:rotateX(0)}
  57%,70%{background:#343b39;opacity:.08;box-shadow:none}
  71%,86%{background:#535c50;opacity:.20;box-shadow:none}
  87%,100%{background:#595d46;opacity:.22;box-shadow:none;transform:none}
}
/* Actual 5x7 square dots for every result in the METRES split column. */
.poster-split-points{display:flex;align-items:center;justify-content:flex-end;gap:.65cqw;font-size:3cqw}
.split-matrix-digits{display:flex;align-items:center;gap:.58cqw}
.split-matrix-character{--sd:clamp(.9px,.30cqw,2.15px);--sg:clamp(.2px,.09cqw,.64px);display:grid;grid-template-columns:repeat(5,var(--sd));grid-template-rows:repeat(7,var(--sd));gap:var(--sg)}
.split-matrix-pixel{display:block;width:var(--sd);height:var(--sd);background:#ffdac6;opacity:.15;border-radius:.1cqw}
.split-matrix-pixel.is-lit{opacity:1;background:#fffaf0;box-shadow:0 0 .5cqw #ffffff6b}
.split-matrix-unit{font-size:3cqw;line-height:1;font-weight:950;color:#fff9ef}
@media(prefers-reduced-motion:reduce){.matrix-pixel.score-dot-reveal{animation:none!important}}

/* Stronger split-score LED numerals; metres unit is conveyed in the column heading. */
.poster-split-points{display:flex;justify-content:flex-end;align-items:center;min-width:0}
.split-matrix-digits{gap:.63cqw}
.split-matrix-character{
  --sd:clamp(1.55px,.50cqw,3.1px);--sg:clamp(.35px,.12cqw,.8px);
  display:grid;grid-template-columns:repeat(5,var(--sd));grid-template-rows:repeat(7,var(--sd));gap:var(--sg)
}
.split-matrix-pixel{background:#d6b8ae;opacity:.10}
.split-matrix-pixel.is-lit{background:var(--split-color,#fffbd7);opacity:1;box-shadow:0 0 .55cqw color-mix(in srgb,var(--split-color,#fffbd7) 60%,transparent)}
.poster-bottom .poster-tagline{font-weight:850;letter-spacing:.02em;color:#ffe1d2}
.poster-bottom .poster-tagline em{font-style:italic;font-weight:1000;color:#fff;font-size:1.18em}
@media(prefers-reduced-motion:reduce){.matrix-pixel.score-dot-reveal{animation:none!important}}

/* Keyboard-first mobile race: keep the question and answer above the OS keyboard. */
.mobile-score-chip{display:none}
@media(max-width:700px) and (pointer:coarse){
  .app.keyboard-open .stage-window{flex:1;min-height:0}
  .app.keyboard-open .game-stage{padding:1px 3px 5px!important;gap:0!important;overflow:hidden;align-items:stretch}
  .app.keyboard-open .game-stage #raceCard{display:none!important}
  .app.keyboard-open .game-stage main{display:flex!important;flex:1 1 auto!important;min-height:0!important;width:100%!important}
  .app.keyboard-open .game-stage #gamePanel{
    width:100%;height:100%;flex:1 1 auto!important;min-height:0!important;
    overflow-y:auto!important;overscroll-behavior:contain;
    border-radius:13px;padding:10px 12px 7px!important;
    display:flex!important;flex-direction:column;gap:0;
    -webkit-overflow-scrolling:touch;
  }
  .app.keyboard-open .game-stage #gamePanel .question-top{order:0;gap:8px;flex:none}
  .app.keyboard-open .game-stage #gamePanel .question-top .count-label{font-size:10px;letter-spacing:.65px;white-space:nowrap}
  .app.keyboard-open .game-stage #mobileScoreChip{
    display:inline-flex;align-items:center;justify-content:center;
    margin-left:auto;padding:3px 8px;border:1px solid #eeb7a1;
    background:#6c2827;color:#ffe9c9;border-radius:7px;
    font:900 12px/1.25 var(--site-font);white-space:nowrap
  }
  .app.keyboard-open .game-stage #gamePanel .question-top .timer{font-size:24px;line-height:1.15;margin:0}
  .app.keyboard-open .game-stage #gamePanel .timer-bar{order:1;flex:none;margin:6px 0 10px!important;height:5px}
  .app.keyboard-open .game-stage #topicLabel{order:2;font-size:9px;letter-spacing:1.1px;flex:none}
  .app.keyboard-open .game-stage #questionText{
    order:3;flex:none;font-size:clamp(17px,4.8vw,21px)!important;line-height:1.17!important;
    letter-spacing:-.5px;margin:5px 0 7px!important
  }
  .app.keyboard-open .game-stage #questionDesc{
    order:4;flex:none;font-size:11px!important;line-height:1.3!important;
    margin:0 0 3px!important
  }
  .app.keyboard-open .game-stage #feedback{order:6;flex:none}
  .app.keyboard-open .game-stage #nextButton{order:7;flex:none}
  .app.keyboard-open .game-stage #answerSuggestions{
    order:8;flex:0 1 auto;min-height:0;max-height:100px;overflow-y:auto;
    margin:5px 0 3px!important;padding:6px!important;gap:5px
  }
  .app.keyboard-open .game-stage #answerSuggestions .suggestion{min-height:30px;padding:6px 9px!important;font-size:11px}
  .app.keyboard-open .game-stage #answerSuggestions .suggestions-hint{display:none}
  .app.keyboard-open .game-stage #validationMessage{
    order:9;flex:none;min-height:0!important;margin:3px 0!important;
    font-size:11px;line-height:1.22
  }
  .app.keyboard-open .game-stage #answerForm{
    order:10;position:sticky;bottom:0;z-index:5;flex:0 0 auto;
    display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
    gap:7px;margin:auto 0 0!important;padding:7px 0 0!important;
    background:#a0453b
  }
  .app.keyboard-open .game-stage #answerInput{
    min-width:0;min-height:46px!important;flex:1 1 0!important;
    padding:10px 11px!important;font-size:16px!important;border-radius:10px
  }
  .app.keyboard-open .game-stage #submitAnswer{
    width:auto!important;flex:0 0 93px!important;min-height:46px!important;
    padding:9px 8px!important;font-size:12px!important;border-radius:10px
  }
  .app.keyboard-open .game-stage #questionDots{order:11;display:none!important}
}

/* Mobile two-state heat: question and keyboard first; runner and earned score next. */
@media(max-width:700px){
  .app.answer-reveal .game-stage{gap:7px;justify-content:flex-start}
  .app.answer-reveal .game-stage #raceCard{display:block!important;flex:0 0 auto!important}
  .app.answer-reveal .game-stage .race-card{padding:7px 10px 0;border-radius:13px}
  .app.answer-reveal .game-stage .race-card .track{max-width:min(92vw,285px);margin:-5px auto -1px}
  .app.answer-reveal .game-stage .race-top{min-height:58px}
  .app.answer-reveal .game-stage .track-foot{padding-bottom:5px;font-size:9px}
  .app.answer-reveal .game-stage main{width:100%;flex:0 0 auto}
  .app.answer-reveal .game-stage #gamePanel{padding:11px 13px 13px!important;border-radius:14px}
  .app.answer-reveal .game-stage #gamePanel .question-top,
  .app.answer-reveal .game-stage #gamePanel .timer-bar,
  .app.answer-reveal .game-stage #topicLabel,
  .app.answer-reveal .game-stage #questionText,
  .app.answer-reveal .game-stage #questionDesc,
  .app.answer-reveal .game-stage #validationMessage,
  .app.answer-reveal .game-stage #questionDots{display:none!important}
  .app.answer-reveal .game-stage #feedback{margin:0!important;padding:11px 12px}
  .app.answer-reveal .game-stage #feedback .big{font-size:clamp(17px,5vw,23px);line-height:1.15}
  .app.answer-reveal .game-stage #feedback .msg{font-size:12px;line-height:1.35}
  .app.answer-reveal .game-stage #nextButton{width:100%;min-height:46px;margin:9px 0 0!important}
}
@media(max-width:700px) and (max-height:640px){
  .app.answer-reveal .game-stage .race-card .track{max-width:225px}
}

/* Single straight sprint. Every question starts again from the 0m line. */
.race-card{--sprint-colour:#aab0b9}
.race-card .straight-track{display:block;width:100%;height:auto;max-width:640px;margin:2px auto -5px;overflow:visible}
.straight-track .sprint-markers text{font-family:var(--site-font);fill:#ffe6d6;font-weight:850;font-size:12px;text-anchor:middle}
.straight-track #progressPath{filter:drop-shadow(0 0 4px var(--sprint-colour));stroke-linecap:round}
.straight-track .trail line{stroke:var(--sprint-colour);filter:drop-shadow(0 0 2px var(--sprint-colour))}
.sprint-track-foot{padding:0 6px 12px;gap:10px}
.sprint-track-foot>span{font-size:9px;letter-spacing:.8px;color:#fff3eb}
.sprint-track-foot strong{text-align:right;font-size:11px;letter-spacing:.45px;color:var(--sprint-colour);transition:color .2s}
.home-stage .race-card .straight-track{max-width:505px!important;margin:1px auto -3px!important}
.game-stage .race-card .straight-track{max-width:550px!important;margin:0 auto -5px!important}
@media(max-width:620px){
  .home-stage .race-card .straight-track{max-width:440px!important}
  .game-stage .race-card .straight-track{max-width:440px!important}
  .sprint-track-foot{padding-bottom:7px}
}
@media(max-width:700px) and (pointer:coarse){
  .app.answer-reveal .game-stage .race-card .straight-track{max-width:min(94vw,410px)!important;margin:0 auto -5px!important}
  .app.answer-reveal .game-stage #raceCard{width:100%}
}
@media(max-width:700px) and (pointer:coarse) and (max-height:640px){
  .app.answer-reveal .game-stage .race-card .straight-track{max-width:310px!important}
}
@media(prefers-reduced-motion:reduce){.sprint-track-foot strong{transition:none}}

/* Clean track: visible sprint feedback lives in the answer panel, not below the lane. */
.sprint-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Scoreboard is the sole visual headline on the result. */
.share-poster .poster-stats{margin:clamp(5px,1.3dvh,10px) 0 5px}
/* One unbroken line; only TRACK has weight, italics and a racetrack oval. */
.share-poster .poster-bottom{display:flex;align-items:center;gap:2cqw}
.share-poster .poster-tagline{display:inline-flex;align-items:center;gap:.8cqw;white-space:nowrap!important;font-weight:450!important;font-size:1.92cqw!important;letter-spacing:.09cqw;text-transform:uppercase;line-height:1.5;color:#ffe5d9}
.share-poster .poster-tagline .track-oval{position:relative;display:inline-flex;align-items:center;justify-content:center;border:1px solid #fff2de;border-radius:50%;padding:.6cqw 1.4cqw;transform:rotate(-8deg);white-space:nowrap}
.share-poster .poster-tagline .track-oval em{display:inline-block;font-weight:950!important;font-style:italic;font-size:2.45cqw;letter-spacing:.05cqw;line-height:1.1;color:#fff;transform:rotate(8deg)}
.share-poster .poster-challenge{
  appearance:none;background:transparent;border:0;padding:0;
  min-height:44px;font-size:max(11px,1.98cqw);white-space:normal;text-align:right;line-height:1.2;
  text-decoration:underline;text-underline-offset:.2em;
}
.share-poster .poster-challenge .challenge-arrow{font-size:2.6cqw}
/* Brief reveal curtain: a moment of suspense before the 15-column dot animation. */
.share-poster .result-reveal-veil{
  position:absolute;inset:0;z-index:25;pointer-events:none;visibility:hidden;opacity:0;
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3cqw;
  color:#fff;text-align:center;background:radial-gradient(ellipse at center,#ad5045 0%,#6b2629 60%,#32191b 100%);
}
.share-poster.result-intro .result-reveal-veil{visibility:visible;animation:scoreVeilIntro 1.65s ease-in-out both}
.result-reveal-veil .veil-overline{color:#ffe0c8;font-weight:750;font-size:2.7cqw;letter-spacing:.6cqw}
.result-reveal-veil strong{font-size:6.1cqw;font-weight:950;letter-spacing:-.1cqw;line-height:1.1}
.result-reveal-veil .veil-pulses{display:flex;align-items:center;gap:1.2cqw}
.result-reveal-veil .veil-pulses i{height:1.9cqw;width:1.9cqw;border-radius:2px;background:#fff7d0;animation:scoreVeilPulse .48s infinite alternate}
.result-reveal-veil .veil-pulses i:nth-child(2){animation-delay:.16s}
.result-reveal-veil .veil-pulses i:nth-child(3){animation-delay:.32s}
.matrix-headmeta.record-caption{font-size:clamp(10px,2.6cqw,17px);white-space:nowrap}
#recordConfetti{position:fixed;inset:0;z-index:30;overflow:hidden;pointer-events:none}
#recordConfetti i{position:absolute;top:-14px;width:7px;height:11px;border-radius:1px;animation:recordConfettiFall var(--fall-time) linear var(--fall-delay) both}
#recordConfetti i:nth-child(3n){width:6px;height:6px;border-radius:50%}
@keyframes recordConfettiFall{
  from{transform:translate3d(0,0,0) rotate(0)}
  to{transform:translate3d(var(--drift),calc(100dvh + 26px),0) rotate(var(--turn))}
}
@media(prefers-reduced-motion:reduce){#recordConfetti{display:none}}
@keyframes scoreVeilIntro{0%,49%{opacity:1;visibility:visible}78%{opacity:.55;visibility:visible}99%{opacity:0;visibility:visible}100%{opacity:0;visibility:hidden}}
@keyframes scoreVeilPulse{from{opacity:.18;transform:rotateX(60deg)}to{opacity:1;transform:rotateX(0)}}
@media(prefers-reduced-motion:reduce){.share-poster.result-intro .result-reveal-veil{animation:none!important;visibility:hidden!important;opacity:0!important}.result-reveal-veil .veil-pulses i{animation:none!important}}

/* Shared athletics-track wordmark: a long stadium oval rather than a circle. */
.home-stage .hero .home-tagline{
  display:flex;align-items:center;justify-content:center;gap:.18em;
  width:100%;margin:8px auto 11px;white-space:nowrap;
  font-family:inherit;font-size:clamp(20px,4.15vw,47px);
  font-weight:450;letter-spacing:-.035em;line-height:1.22;
}
.home-stage .hero .home-tagline .track-oval{
  display:inline-flex;align-items:center;justify-content:center;
  flex:none;border:1.5px solid currentColor;border-radius:999px;
  padding:.13em .39em .17em;transform:rotate(-7deg);
  line-height:1;white-space:nowrap;color:#fff;
}
.home-stage .hero .home-tagline .track-oval em{
  display:block;font-size:1.08em;line-height:1;
  font-style:italic!important;font-weight:950!important;
  color:#fff;letter-spacing:-.035em;transform:rotate(7deg);
}
.share-poster .poster-tagline .track-oval{
  border-radius:999px!important;padding:.5cqw 1.65cqw!important;
}
@media(max-width:480px){
  .home-stage .hero .home-tagline{
    font-size:clamp(16px,5.1vw,25px);
    letter-spacing:-.05em;gap:.13em;
  }
  .home-stage .hero .home-tagline .track-oval{padding:.13em .27em .15em}
}

/* Unified OutsideLane wordmark across home and results (share poster). */
.home-stage .hero .oval-tagline,
.share-poster .poster-bottom .oval-tagline{
  display:flex!important;flex-direction:row;align-items:center;justify-content:center;
  flex-wrap:nowrap;white-space:nowrap!important;text-transform:uppercase;
  font-family:inherit;font-style:normal;line-height:1.15;
}
.home-stage .hero .oval-tagline{
  gap:.23em;margin:10px auto 12px;width:100%;
  font-size:clamp(18px,3.35vw,47px)!important;letter-spacing:-.045em!important;
}
.home-stage .hero .oval-tagline .tagline-lead,
.share-poster .poster-bottom .oval-tagline .tagline-lead{
  display:inline-block;flex:0 0 auto;font-weight:350!important;
  font-style:normal;white-space:nowrap;
}
.home-stage .hero .oval-tagline .track-oval,
.share-poster .poster-bottom .oval-tagline .track-oval{
  display:inline-flex!important;align-items:center;justify-content:center;
  flex:0 0 auto;white-space:nowrap;border:1.5px solid currentColor!important;
  border-radius:999px!important;transform:none;
  background:transparent;
}
.home-stage .hero .oval-tagline .track-oval{
  padding:.12em .39em .15em!important;
}
.home-stage .hero .oval-tagline .track-oval em,
.share-poster .poster-bottom .oval-tagline .track-oval em{
  display:block;font-weight:950!important;font-style:italic!important;
  color:#fff;transform:none;line-height:1.05;white-space:nowrap;
}
.home-stage .hero .oval-tagline .track-oval em{
  font-size:1.07em!important;letter-spacing:-.045em;
}
.share-poster .poster-bottom .oval-tagline{
  justify-content:flex-start;gap:.8cqw;
  font-size:1.92cqw!important;font-weight:350!important;letter-spacing:.09cqw!important;
}
.share-poster .poster-bottom .oval-tagline .track-oval{
  padding:.6cqw 1.7cqw!important;border-width:1px!important;
}
.share-poster .poster-bottom .oval-tagline .track-oval em{
  font-size:2.45cqw!important;letter-spacing:.05cqw;
}
@media(max-width:700px){
  .home-stage .hero .oval-tagline{
    font-size:clamp(14px,4.55vw,29px)!important;gap:.13em;
    letter-spacing:-.055em!important;
  }
  .home-stage .hero .oval-tagline .track-oval{
    padding:.12em .24em .15em!important;
  }
}

/* Wide stadium timing banner: OUTSIDELANE is to the LEFT of the yellow display. */
.race-top .race-clock{
  display:grid;grid-template-columns:minmax(0,1fr) 132px;grid-template-rows:1fr auto;
  align-items:center;gap:3px 8px;width:286px;min-width:286px;
  padding:7px 9px;border-radius:7px;
}
.race-top .race-clock-brand{
  grid-column:1;grid-row:1;justify-self:start;text-align:left;
  font-size:12px;letter-spacing:-.35px;line-height:1.1;
}
.race-top .race-clock-screen{grid-column:2;grid-row:1 / span 2;min-width:0;}
.race-top .race-clock-footer{grid-column:1;grid-row:2;justify-self:start;}
.home-stage .race-clock.clock-result-link{
  cursor:pointer;transition:box-shadow .18s,transform .18s;
}
.home-stage .race-clock.clock-result-link:hover{
  transform:translateY(-2px);box-shadow:0 4px 0 #98600c,0 11px 24px #40151785,0 0 0 3px #fff5;
}
.home-stage .race-clock.clock-result-link:focus-visible{
  outline:3px solid white;outline-offset:4px;
}
@media(max-width:520px){
 .race-top .race-clock{grid-template-columns:minmax(0,1fr) 99px;width:211px;min-width:211px;gap:3px 5px;padding:5px 6px;}
 .race-top .race-clock-brand{font-size:9px;letter-spacing:-.55px;}
 .race-top .race-clock-digits{--mini-dot:2.55px;--mini-gap:.9px;gap:3px}
 .race-top .race-clock-screen{min-height:33px;padding:3px 1px;}
 .race-top .race-clock-footer{font-size:7px;}
}
/* Clean, legible illustrated athlete; coordinated running form instead of flickering pixel sheet. */
.athlete-figure{filter:drop-shadow(1px 2px 1px #29141988);animation:athlete-bob .42s ease-in-out infinite alternate;}
.athlete-leg,.athlete-arm{transform-box:view-box;transform-origin:0px 0px;}
.athlete-leg-front{animation:leg-front .58s ease-in-out infinite alternate;}
.athlete-leg-back{animation:leg-back .58s ease-in-out infinite alternate;}
.athlete-arm-front{animation:arm-front .58s ease-in-out infinite alternate;}
.athlete-arm-back{animation:arm-back .58s ease-in-out infinite alternate;}
@keyframes athlete-bob{from{transform:translateY(0)}to{transform:translateY(-1.5px)}}
@keyframes leg-front{from{transform:rotate(-9deg)}to{transform:rotate(8deg)}}
@keyframes leg-back{from{transform:rotate(9deg)}to{transform:rotate(-8deg)}}
@keyframes arm-front{from{transform:translateX(-1px)}to{transform:translateX(1px)}}
@keyframes arm-back{from{transform:translateX(1px)}to{transform:translateX(-1px)}}
@media(prefers-reduced-motion:reduce){
  .athlete-figure,.athlete-leg,.athlete-arm{animation:none!important}
}

/* Home layout repair: no squeezed track, clipped runner or stacked cards. */
.home-stage{
  justify-content:flex-start!important;align-items:stretch;
  overflow-y:auto!important;overflow-x:hidden!important;
  gap:clamp(10px,1.8vh,19px)!important;
  padding:12px clamp(8px,2vw,18px) 32px!important;
}
.home-stage .hero{width:100%;max-width:100%!important;flex:0 0 auto;text-align:center}
.home-stage .hero .oval-tagline{
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex-flow:row nowrap!important;gap:.22em!important;
  width:100%;max-width:100%;margin:9px auto 10px!important;
  font-size:clamp(18px,3.05vw,43px)!important;
  font-weight:350!important;letter-spacing:-.045em!important;
  line-height:1.28!important;white-space:nowrap!important;
  color:#fff!important;
}
.home-stage .hero .oval-tagline .tagline-lead{font-weight:350!important;flex-shrink:1!important;min-width:0}
.home-stage .hero .oval-tagline .track-oval{
  border:1.5px solid #fff!important;border-radius:999px!important;
  padding:.12em .34em .16em!important;
  flex:0 0 auto;transform:none!important;white-space:nowrap;
}
.home-stage .hero .oval-tagline .track-oval em{
  font-size:1.06em!important;font-style:italic!important;
  font-weight:950!important;transform:none!important;
  color:white!important;
}
.home-stage .hero .sub{max-width:650px!important;margin:0 auto;font-size:clamp(12px,1.3vw,14px)!important;line-height:1.5!important}
.home-stage #welcomeStats{display:none!important}
.home-stage .race-card{
  display:block!important;flex:0 0 auto!important;
  width:100%!important;height:auto!important;min-height:0!important;
  overflow:visible!important;border-radius:20px!important;
  padding:14px clamp(12px,2vw,22px) 8px!important;
  box-sizing:border-box;
}
.home-stage .race-card .race-top{display:flex;min-height:74px!important}
.home-stage .race-card .straight-track{
  display:block!important;width:min(100%,510px)!important;
  max-width:510px!important;height:auto!important;
  margin:10px auto 4px!important;overflow:visible!important;
}
.home-stage > main{
  display:block!important;position:static!important;
  width:100%!important;flex:0 0 auto!important;
  margin:0!important;
}
.home-stage #homePanel{width:100%;padding:16px 20px!important}
.home-stage #homePanel #startDaily{min-height:52px!important}
.home-stage .race-top .race-clock{max-width:54%;min-width:0;grid-template-columns:minmax(0,1fr) minmax(95px,132px)}
.home-stage .race-clock-screen{overflow:hidden}
@media(max-width:700px){
  .home-stage .hero .oval-tagline{
    font-size:clamp(12px,3.65vw,25px)!important;gap:.13em!important;
    letter-spacing:-.055em!important;
  }
  .home-stage .hero .oval-tagline .track-oval{padding:.1em .25em .13em!important}
  .home-stage .race-card .straight-track{width:min(100%,430px)!important;margin:12px auto 6px!important}
  .home-stage .race-top .race-clock{max-width:65%;grid-template-columns:minmax(0,1fr) minmax(70px,110px)}
  .home-stage #homePanel{padding:13px 15px!important}
}
@media(max-width:410px){
  .home-stage .race-top .race-clock{max-width:62%;grid-template-columns:1fr}
  .home-stage .race-top .race-clock-brand{grid-column:1;grid-row:1}
  .home-stage .race-top .race-clock-screen{grid-column:1;grid-row:2}
  .home-stage .race-top .race-clock-footer{grid-column:1;grid-row:3}
}

/* Restored OutsideLane stadium clock: fixed, legible proportions at every width. */
.race-top .race-clock,
.home-stage .race-top .race-clock{
  width:clamp(218px,31vw,298px)!important;
  max-width:100%!important;
  min-width:0!important;
  flex:0 0 auto;
  display:grid!important;
  grid-template-columns:minmax(77px,1fr) minmax(108px,138px)!important;
  grid-template-rows:1fr auto!important;
  column-gap:8px!important;
  row-gap:4px!important;
  align-items:center!important;
  padding:8px 10px 7px!important;
  background:linear-gradient(135deg,#fff178 0%,#fbd72e 58%,#dfa906 100%)!important;
  border:2px solid #ffec73!important;
  border-radius:7px!important;
  box-shadow:0 4px 0 #976010,0 9px 18px #43151675,inset 0 1px 1px #fff9!important;
  box-sizing:border-box!important;
}
.race-top .race-clock-brand,
.home-stage .race-top .race-clock-brand{
  grid-column:1!important;grid-row:1!important;
  font-size:clamp(9px,.95vw,12px)!important;
  font-weight:950!important;letter-spacing:-.035em!important;
  line-height:1.15!important;justify-self:start!important;text-align:left!important;
  color:#181813!important;
}
.race-top .race-clock-footer,
.home-stage .race-top .race-clock-footer{
  grid-column:1!important;grid-row:2!important;align-self:end!important;
  justify-self:start!important;font-size:8px!important;color:#46310d!important;
}
.race-top .race-clock-screen,
.home-stage .race-top .race-clock-screen{
  grid-column:2!important;grid-row:1 / 3!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;
  min-height:41px!important;padding:5px 4px!important;
  overflow:visible!important;
  background:repeating-linear-gradient(0deg,#181e1e 0px,#181e1e 3px,#252b2a 4px)!important;
  border:2px solid #404440!important;border-radius:2px!important;
  box-shadow:inset 0 0 0 2px #0b1010,inset 0 0 11px #030707!important;
}
.race-top .race-clock-digits,
.home-stage .race-top .race-clock-digits{
  --mini-dot:3.1px;--mini-gap:1.35px;
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex-wrap:nowrap!important;gap:4px!important;
  min-width:0!important;
  color:#f2f635;font:900 22px/1 var(--site-font);
}
.race-top .mini-matrix-character{flex:0 0 auto!important}
.race-top .mini-matrix-pixel.is-lit{background:#f0f827!important;box-shadow:0 0 3px #eeff4c9c!important}
@media(max-width:600px){
  .race-top .race-clock,.home-stage .race-top .race-clock{
    width:clamp(171px,53vw,245px)!important;
    grid-template-columns:minmax(49px,1fr) minmax(82px,112px)!important;
    gap:3px 5px!important;padding:6px 7px!important;
  }
  .race-top .race-clock-brand{font-size:clamp(7px,2vw,10px)!important}
  .race-top .race-clock-screen{min-height:36px!important;padding:4px 2px!important}
  .race-top .race-clock-digits{--mini-dot:2.65px;--mini-gap:1px;gap:3px!important}
  .race-top .race-clock-footer{font-size:7px!important}
}
@media(max-width:380px){
  .race-top .race-clock,.home-stage .race-top .race-clock{
    width:170px!important;grid-template-columns:64px 87px!important;column-gap:3px!important;
    padding:5px!important;
  }
  .race-top .race-clock-digits{--mini-dot:2.45px;--mini-gap:.9px;gap:2px!important}
  .race-top .race-label-group{max-width:calc(100% - 180px)}
}

/* HOME REVISION: two generous panels with balanced spacing and no hidden track. */
.home-stage{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  justify-content:flex-start!important;gap:clamp(14px,2.1vh,24px)!important;
  padding:10px clamp(7px,1.3vw,16px) 28px!important;
  overflow-x:hidden!important;overflow-y:auto!important;
}
.home-stage .hero{width:100%!important;max-width:980px!important;margin:0 auto!important;flex:0 0 auto!important}
.home-stage .hero .oval-tagline{
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:center!important;
  gap:.2em!important;width:100%!important;max-width:100%!important;
  white-space:nowrap!important;margin:10px auto!important;
  font-size:clamp(18px,3.7vw,55px)!important;font-weight:350!important;letter-spacing:-.05em!important;
  line-height:1.1!important;
}
.home-stage .hero .oval-tagline .tagline-lead{font-weight:350!important;min-width:0}
.home-stage .hero .oval-tagline .track-oval{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border:1.6px solid #fff!important;border-radius:999px!important;
  padding:.12em .34em .16em!important;transform:none!important;white-space:nowrap!important;
}
.home-stage .hero .oval-tagline .track-oval em{
  font-style:italic!important;font-weight:950!important;font-size:1.06em!important;
  line-height:1!important;transform:none!important;color:#fff!important;
}
.home-stage .hero .sub{max-width:760px!important;margin:0 auto!important;font-size:clamp(12px,1.2vw,16px)!important;line-height:1.45!important}
.home-stage #welcomeStats{display:none!important}
.home-stage .race-card{
  display:flex!important;flex-direction:column!important;justify-content:space-between!important;
  width:100%!important;max-width:1040px!important;min-height:clamp(305px,38vh,440px)!important;
  height:auto!important;margin:0 auto!important;flex:0 0 auto!important;
  border-radius:22px!important;overflow:visible!important;
  padding:16px 18px 13px!important;
}
.home-stage .race-top{min-height:82px!important;align-items:flex-start!important;flex:0 0 auto!important}
.home-stage .race-card .straight-track{
  display:block!important;width:min(100%,560px)!important;max-width:560px!important;
  height:auto!important;flex:0 0 auto!important;
  margin:10px auto 4px!important;overflow:visible!important;
}
.home-stage > main{
  display:block!important;position:static!important;
  width:100%!important;max-width:1040px!important;margin:0 auto!important;
  flex:0 0 auto!important;
}
.home-stage #homePanel{
  width:100%!important;min-height:clamp(200px,24vh,270px)!important;
  display:flex!important;flex-direction:column!important;justify-content:space-between!important;
  padding:20px 22px 18px!important;border-radius:22px!important;
}
.home-stage :is(#homePanel h2,#homeLeagueTitle){font-size:clamp(21px,2vw,30px)!important}
.home-stage #homePanel h2{margin:6px 0 8px!important}
.home-stage :is(#homePanel p,#homeLeagueDetail){font-size:clamp(12px,1.1vw,16px)!important;line-height:1.5!important}
.home-stage #homePanel .actions{margin-top:14px!important}
.home-stage #homePanel #startDaily{min-height:58px!important;font-size:14px!important}
@media(max-width:900px){
  .home-stage .race-card{min-height:305px!important;padding:14px!important}
  .home-stage .race-card .straight-track{width:min(100%,500px)!important}
  .home-stage #homePanel{min-height:190px!important;padding:17px!important}
  .home-stage .hero .oval-tagline{font-size:clamp(18px,4vw,36px)!important}
}
@media(max-width:620px){
  .home-stage{gap:15px!important;padding:8px 5px 24px!important}
  .home-stage .hero .oval-tagline{font-size:clamp(13px,4.2vw,25px)!important;gap:.13em!important}
  .home-stage .hero .oval-tagline .track-oval{padding:.1em .24em .13em!important}
  .home-stage .race-card{min-height:260px!important;padding:12px 10px!important}
  .home-stage .race-card .straight-track{width:min(100%,430px)!important;margin:12px auto 5px!important}
  .home-stage #homePanel{min-height:175px!important;padding:14px!important}
  .home-stage #homePanel #startDaily{min-height:52px!important}
}
/* Articulated stride: knees bend independently of hip drive. */
.athlete-figure{transform-box:view-box;transform-origin:center;animation:runner-bob .56s ease-in-out infinite;}
.leg-front-thigh,.leg-back-thigh,.leg-front-shin,.leg-back-shin,
.athlete-arm-front,.athlete-arm-back{transform-box:view-box;}
.leg-front-thigh{transform-origin:-1px -1px;animation:stride-front .56s ease-in-out infinite;}
.leg-back-thigh{transform-origin:-2px 0px;animation:stride-back .56s ease-in-out infinite;}
.leg-front-shin{transform-origin:12px 8px;animation:knee-front .56s ease-in-out infinite;}
.leg-back-shin{transform-origin:-12px 11px;animation:knee-back .56s ease-in-out infinite;}
.athlete-arm-front{transform-origin:4px -20px;animation:arm-drive-front .56s ease-in-out infinite;}
.athlete-arm-back{transform-origin:-3px -19px;animation:arm-drive-back .56s ease-in-out infinite;}
@keyframes runner-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}
@keyframes stride-front{0%,100%{transform:rotate(-16deg)}50%{transform:rotate(18deg)}}
@keyframes stride-back{0%,100%{transform:rotate(18deg)}50%{transform:rotate(-16deg)}}
@keyframes knee-front{0%,100%{transform:rotate(16deg)}30%{transform:rotate(22deg)}65%{transform:rotate(-14deg)}}
@keyframes knee-back{0%,100%{transform:rotate(-14deg)}30%{transform:rotate(4deg)}65%{transform:rotate(25deg)}}
@keyframes arm-drive-front{0%,100%{transform:rotate(12deg)}50%{transform:rotate(-14deg)}}
@keyframes arm-drive-back{0%,100%{transform:rotate(-14deg)}50%{transform:rotate(12deg)}}
@media(prefers-reduced-motion:reduce){
  .athlete-figure,.leg-front-thigh,.leg-back-thigh,.leg-front-shin,.leg-back-shin,
  .athlete-arm-front,.athlete-arm-back{animation:none!important}
}

/* One reusable stadium scoreboard on home, in-game and at the finish.
   All three use the exact results-board structure and LED animation. */
.race-top .race-clock.matrix-frame,
.home-stage .race-top .race-clock.matrix-frame{
  container-type:inline-size;
  display:block!important;
  width:clamp(242px,34vw,358px)!important;
  max-width:100%!important;min-width:0!important;
  flex:0 0 auto!important;
  padding:1.75cqw 1.7cqw 1.2cqw!important;
  background:linear-gradient(128deg,#ffe23b 0%,#ffcb05 40%,#d7a500 100%)!important;
  border:.65cqw solid #ffe764!important;
  border-radius:1.4cqw!important;
  box-shadow:inset 0 0 0 1px #f3b900,0 1.25cqw 0 #9c5e0b,0 2.2cqw 5cqw #200e10a1!important;
  transform:none;
  color:#171716!important;
  overflow:visible!important;
  align-self:flex-start;
}
.race-clock.matrix-frame .matrix-header{
  display:flex!important;min-height:8.2cqw;justify-content:space-between;align-items:center;
  gap:1cqw;padding:0 1.2cqw .8cqw!important;
}
.race-clock.matrix-frame .matrix-brand{
  font:900 5.55cqw/1 var(--site-font);
  letter-spacing:-.2cqw;white-space:nowrap;
}
.race-clock.matrix-frame .matrix-headmeta{
  font-size:1.8cqw;line-height:1.12;font-weight:1000;letter-spacing:.25px;text-align:right;
}
.race-clock.matrix-frame .matrix-screen{
  display:flex!important;flex-direction:column;align-items:stretch;justify-content:space-between;
  width:100%!important;min-height:28.3cqw!important;padding:1.2cqw 1.1cqw .7cqw!important;
  border:.8cqw solid #34393a!important;
  background:repeating-linear-gradient(0deg,#191e20 0,#191e20 3px,#202529 4px)!important;
  box-shadow:inset 0 0 0 .6cqw #101417,inset 0 0 3.7cqw #080a0b!important;
  overflow:hidden!important;
}
.race-clock.matrix-frame .matrix-screen-top,
.race-clock.matrix-frame .matrix-screen-bottom{
  display:flex;justify-content:space-between;gap:1cqw;color:#d1d591;
  font:900 1.95cqw/1.3 var(--site-font);
  letter-spacing:.22cqw;
}
.race-clock.matrix-frame .matrix-screen-value{
  --led-dot:2.25cqw;--led-gap:.55cqw;--led-space:1.9cqw;
  display:flex!important;justify-content:center;align-items:center;flex:1;
  min-height:22cqw!important;gap:var(--led-space)!important;
}
.race-clock.matrix-frame .matrix-footer{
  padding:1.4cqw 1.3cqw .2cqw;color:#392906;
  font-weight:1000;letter-spacing:.22cqw;font-size:1.9cqw;
}
.home-stage .race-top .race-clock.matrix-frame{max-width:min(48%,358px)!important}
@media(max-width:620px){
  .race-top .race-clock.matrix-frame,.home-stage .race-top .race-clock.matrix-frame{
    width:min(54vw,280px)!important;max-width:58%!important;
  }
}
@media(max-width:390px){
  .race-top .race-clock.matrix-frame,.home-stage .race-top .race-clock.matrix-frame{
    width:56vw!important;max-width:56%!important;
  }
}

/* Motion states are driven by the 12-frame human sprint cycle.
   Keep the sprite still between updates to avoid double-animation jitter. */
#runnerSpriteViewport,#runnerSpriteSheet,#home-runnerSpriteViewport,#home-runnerSpriteSheet{
  animation:none!important;transition:none!important;image-rendering:auto;
}
#runner #spriteFacing,#home-runner #home-spriteFacing{animation:none!important;transform:none!important}
#runner .trail line,#home-runner .trail line{opacity:.28;animation:none!important}
#runner .shadow,#home-runner .shadow{opacity:.22}
@media(prefers-reduced-motion:reduce){#runnerSpriteSheet{animation:none!important}}

/* No decorative motion flair behind the athlete; the scoring line alone marks distance. */
#runner .trail,#home-runner .trail{display:none!important}
/* Character stays within the starting lane, including both hands in the blocks. */
#runnerSpriteViewport,#home-runnerSpriteViewport{overflow:hidden!important}
/* Stadium audio on/off, comfortably tappable on mobile. */
.top-controls{display:flex;gap:12px;align-items:center;justify-content:flex-end;min-width:0}
.sound-toggle{display:grid;place-items:center;min-width:38px;min-height:38px;padding:5px;background:#ffffff14;color:white;border:1px solid #ffffff4d;border-radius:10px;font-size:19px;line-height:1}
.sound-toggle:hover{background:#ffffff2d}
.sound-toggle:focus-visible{outline:3px solid #ffdf74;outline-offset:3px}
@media(max-width:480px){.top-controls{gap:6px}.sound-toggle{min-width:34px;min-height:34px}}

/* Laptop home composition: both complete cards, headline and score clock
   remain in the visible viewport. The SVG spans the race card width. */
@media (min-width: 800px) and (max-height: 950px) {
  .app { padding-top: 7px !important; }
  .app > .top { min-height: 35px !important; margin-bottom: 5px !important; }
  .home-stage {
    gap: clamp(7px, 1.3vh, 12px) !important;
    padding: 3px 7px 6px !important;
    justify-content: flex-start !important;
    align-content: start !important;
  }
  .home-stage .hero {
    flex: none !important;
    margin: 0 auto !important;
  }
  .home-stage .hero .kicker {
    font-size: 10px !important;
    letter-spacing: 1.65px !important;
  }
  .home-stage .hero .oval-tagline {
    font-size: clamp(23px, 3.05vw, 41px) !important;
    margin: 4px auto 6px !important;
    line-height: 1.08 !important;
  }
  .home-stage .hero .sub {
    font-size: 12px !important;
    line-height: 1.32 !important;
    max-width: 760px !important;
  }
  .home-stage .race-card {
    flex: none !important;
    min-height: 0 !important;
    padding: 9px 15px 6px !important;
    justify-content: flex-start !important;
  }
  .home-stage .race-top {
    min-height: 0 !important;
    height: auto !important;
    flex: none !important;
  }
  .home-stage .race-top .race-label-group {
    padding-top: 4px !important;
  }
  .home-stage .race-top .race-clock.matrix-frame {
    width: clamp(215px, 20vw, 250px) !important;
    max-width: 250px !important;
  }
  .home-stage .race-card .straight-track {
    width: 100% !important;
    max-width: 850px !important;
    height: auto !important;
    margin: 2px auto 0 !important;
  }
  .home-stage > main {
    flex: none !important;
    margin: 0 auto !important;
  }
  .home-stage #homePanel {
    min-height: 0 !important;
    padding: 11px 16px 12px !important;
  }
  .home-stage :is(#homePanel h2,#homeLeagueTitle) {
    font-size: 19px !important;
  }
  .home-stage #homePanel h2 {
    margin: 3px 0 3px !important;
  }
  .home-stage :is(#homePanel p,#homeLeagueDetail) {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
  .home-stage #homePanel .actions { margin-top: 7px !important; }
  .home-stage #homePanel #startDaily {
    min-height: 43px !important;
    font-size: 12px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}
@media (min-width: 800px) and (max-height: 780px) {
  .home-stage .hero .oval-tagline { font-size: clamp(21px, 2.8vw, 35px) !important; }
  .home-stage .race-top .race-clock.matrix-frame {
    width: 183px !important; max-width: 183px !important;
  }
  .home-stage .race-card .straight-track {
    max-width: min(100%, 850px) !important;
  }
  .home-stage #homePanel { padding: 7px 12px !important; }
  .home-stage #homePanel #startDaily { min-height: 33px !important; }
}


/* Keep the active question, runner, clock and answer field together on laptops. */
@media (min-width: 800px) and (max-height: 950px) {
  .game-stage { gap: 7px !important; padding: 3px 5px 9px !important; }
  .game-stage #raceCard { padding: 6px 12px 3px !important; }
  .game-stage .race-top { min-height: 0 !important; }
  .game-stage .race-clock.matrix-frame { width: 210px !important; max-width: 210px !important; }
  .game-stage .race-card .straight-track {
    width: min(100%, 625px) !important; max-width: 625px !important;
    height: auto !important; margin: 1px auto 0 !important;
  }
  .game-stage #gamePanel { padding: 11px 17px !important; }
  .game-stage #gamePanel .timer-bar { margin: 4px 0 8px !important; }
  .game-stage #gamePanel .question { margin: 5px 0 7px !important; }
  .game-stage #gamePanel .entry { margin-top: 7px !important; }
  .game-stage #gamePanel .dots { margin-top: 7px !important; }
}
@media (min-width: 800px) and (max-height: 780px) {
  .game-stage .race-clock.matrix-frame { width: 183px !important; max-width: 183px !important; }
  .game-stage .race-card .straight-track { width: min(100%, 590px) !important; max-width: 590px !important; }
  .game-stage #gamePanel { padding: 9px 15px !important; }
}

/* Crisp, vector audio control; no emoji or font-dependent glyphs. */
.sound-toggle .sound-icon{display:block;width:21px;height:21px;flex:none}
.sound-toggle .sound-wave{display:block}
.sound-toggle .sound-slash{display:none}
.sound-toggle.is-muted .sound-wave{display:none}
.sound-toggle.is-muted .sound-slash{display:block}

/* Backend connection status should not change the layout on success. */
.service-message:empty{display:none}.service-message{margin-top:8px!important;font-size:11px!important;color:#ffe7bd!important}

/* Compact round feedback lives ABOVE the straight track, below the score header.
   The same banner works for timeout, missed and accepted answers. */
.game-stage #raceCard #feedback{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:fit-content;max-width:calc(100% - 12px);min-width:min(100%,320px);
  padding:6px 14px!important;margin:1px auto 4px!important;gap:2px;
  border:1px solid #f2beb075;border-radius:9px;
  background:#642427d9;box-shadow:none;text-align:center;
}
.game-stage #raceCard #feedback .big{
  font-size:15px!important;line-height:1.18!important;letter-spacing:.2px;font-weight:900;
}
.game-stage #raceCard #feedback .msg{
  font-size:10.5px!important;line-height:1.3!important;margin:0!important;
  color:#ffebe3!important;font-weight:550;
}
.game-stage #raceCard #feedback.missed{background:#562326dc;border-color:#ecb3ab87}
.game-stage #raceCard #feedback.surge-good{box-shadow:0 0 12px #ffffff2a}
@media(max-width:700px){
  .app.answer-reveal .game-stage #raceCard #feedback{
    padding:5px 9px!important;margin:1px auto 3px!important;
  }
  .app.answer-reveal .game-stage #raceCard #feedback .big{font-size:13.5px!important}
  .app.answer-reveal .game-stage #raceCard #feedback .msg{font-size:9.5px!important}
}


/* Mobile question-play layout: bespoke phone flow for the asking state only. */
.mobile-question-clock{display:none;align-items:center;gap:6px;padding:6px 8px 6px 9px;border-radius:11px;border:1px solid #e4d36a;background:linear-gradient(180deg,#56470f,#322b08);box-shadow:inset 0 1px 0 #fff2,0 4px 12px #00000024;color:#f8f3be;line-height:1;white-space:nowrap}
.mobile-question-clock-label,.mobile-question-clock-unit{font-size:8px;font-weight:900;letter-spacing:1px;color:#f1e289}
.mobile-question-clock-digits{display:flex;align-items:center;gap:2px}
.mobile-question-track{display:none}
.mobile-question-track{width:100%;margin:2px 0 10px}
.mobile-question-track-svg{display:block;width:100%;height:auto;filter:drop-shadow(0 10px 18px #52151733)}
.mobile-question-track #mobileQuestionRunner .shadow{fill:#551b1d;opacity:.28}

@media(max-width:700px) and (pointer:coarse){
  .app[data-stage="game"] .top{margin-bottom:8px!important;align-items:center}
  .app[data-stage="game"] .brand{font-size:16px!important;gap:8px}
  .app[data-stage="game"] .brand-badge{width:32px;height:32px}
  .app[data-stage="game"] .top-controls{gap:8px}
  .app[data-stage="game"]:not(.answer-reveal) #mobileQuestionClock{display:inline-flex}

  .app[data-stage="game"]:not(.answer-reveal) .game-stage{gap:0!important;padding:0 0 calc(env(safe-area-inset-bottom,0px) + 8px)!important;align-items:stretch}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #raceCard{display:none!important}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage main{display:flex!important;flex:1 1 auto!important;min-height:0!important;width:100%!important}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel{
    display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;
    padding:12px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;border-radius:16px!important;overflow-y:auto!important;overscroll-behavior:contain;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top{order:0;display:flex!important;justify-content:flex-end!important;gap:0!important;margin:0 0 4px!important}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top .count-label,
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top #mobileScoreChip{display:none!important}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top .timer{font-size:12px!important;line-height:1!important;letter-spacing:.2px;color:#ffe6d9}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .timer-bar{order:1;flex:none;height:8px;margin:0 0 11px!important;background:#6b2b29}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel #topicLabel,
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel #questionDesc,
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel #questionDots{display:none!important}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel #questionText{order:3;margin:0 0 8px!important;font-size:clamp(22px,6.2vw,30px)!important;line-height:1.12!important;letter-spacing:-.7px}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel #mobileQuestionTrack{display:block;order:4}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel #validationMessage{order:5;font-size:12px;line-height:1.3;min-height:18px;margin:0 0 6px!important}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel #answerSuggestions{order:6;margin:0 0 6px!important}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel #feedback{order:7}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel #nextButton{order:8}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel #answerForm{
    order:9;position:sticky;bottom:0;z-index:4;margin-top:auto!important;padding-top:12px!important;
    background:linear-gradient(180deg,rgba(160,69,59,0) 0%,rgba(160,69,59,.94) 26%,#a0453b 48%);
    display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:8px!important
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel #answerInput{
    flex:1 1 auto!important;min-width:0!important;min-height:48px!important;font-size:16px!important;padding:12px 13px!important;border-radius:12px!important
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel #submitAnswer{
    flex:0 0 108px!important;min-height:48px!important;padding:11px 10px!important;border-radius:12px!important;font-size:12px!important
  }

  .app.keyboard-open[data-stage="game"] #mobileQuestionClock{display:inline-flex}
  .app.keyboard-open[data-stage="game"] .game-stage #raceCard{display:none!important}
  .app.keyboard-open[data-stage="game"] .game-stage #gamePanel{padding:10px 12px calc(8px + env(safe-area-inset-bottom,0px))!important}
  .app.keyboard-open[data-stage="game"] .game-stage #gamePanel .question-top{display:flex!important;justify-content:flex-end!important}
  .app.keyboard-open[data-stage="game"] .game-stage #gamePanel .question-top .count-label,
  .app.keyboard-open[data-stage="game"] .game-stage #gamePanel .question-top #mobileScoreChip{display:none!important}
  .app.keyboard-open[data-stage="game"] .game-stage #gamePanel .question-top .timer{font-size:12px!important;line-height:1!important}
  .app.keyboard-open[data-stage="game"] .game-stage #gamePanel .timer-bar{margin:0 0 9px!important;height:7px}
  .app.keyboard-open[data-stage="game"] .game-stage #gamePanel #questionText{font-size:clamp(19px,5.5vw,24px)!important;margin:0 0 7px!important;line-height:1.14!important}
  .app.keyboard-open[data-stage="game"] .game-stage #gamePanel #mobileQuestionTrack{display:block;margin:0 0 8px}
  .app.keyboard-open[data-stage="game"] .game-stage #gamePanel #questionDesc,
  .app.keyboard-open[data-stage="game"] .game-stage #gamePanel #questionDots,
  .app.keyboard-open[data-stage="game"] .game-stage #gamePanel #topicLabel{display:none!important}
  .app.keyboard-open[data-stage="game"] .game-stage #gamePanel #answerForm{background:linear-gradient(180deg,rgba(160,69,59,0) 0%,rgba(160,69,59,.95) 24%,#a0453b 50%);padding-top:10px!important}
  .app.keyboard-open[data-stage="game"] .game-stage #gamePanel #answerInput{min-height:46px!important}
  .app.keyboard-open[data-stage="game"] .game-stage #gamePanel #submitAnswer{min-height:46px!important;flex-basis:98px!important}
}


/* Question screen: make the straight the focal point and use a compact finish-board clock. */
@media (min-width: 701px) {
  .game-stage #raceCard {
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    padding:10px 13px 4px!important;
    border-radius:18px!important;
    overflow:visible!important;
  }
  .game-stage #raceCard .race-top {
    min-height:0!important;
    height:auto!important;
    align-items:flex-start!important;
    flex:none!important;
    margin-bottom:1px!important;
  }
  .game-stage #raceCard .race-label-group { padding:6px 0 0!important; }
  .game-stage #raceCard .race-clock.matrix-frame {
    width:clamp(145px,15vw,174px)!important;
    min-width:0!important;
    max-width:174px!important;
    flex:0 0 auto!important;
    padding:1.45cqw 1.45cqw .85cqw!important;
    border:.42cqw solid #ffe764!important;
    border-radius:1.15cqw!important;
    box-shadow:inset 0 0 0 1px #f3b900,0 .55cqw 0 #aa720d,0 .95cqw 2.2cqw #200e106b!important;
  }
  .game-stage #raceCard .race-clock.matrix-frame .matrix-header {
    min-height:7cqw!important;
    padding:0 .7cqw .55cqw!important;
  }
  .game-stage #raceCard .race-clock.matrix-frame .matrix-screen {
    min-height:25.6cqw!important;
    border-width:.55cqw!important;
    padding:.85cqw .85cqw .5cqw!important;
    box-shadow:inset 0 0 0 .4cqw #101417,inset 0 0 2.5cqw #080a0b!important;
  }
  .game-stage #raceCard .race-clock.matrix-frame .matrix-screen-value {
    min-height:19.5cqw!important;
    --led-dot:2.12cqw;
    --led-gap:.53cqw;
    --led-space:1.8cqw;
  }
  .game-stage #raceCard .race-clock.matrix-frame .matrix-footer {
    padding:1cqw 1cqw .1cqw!important;
  }
  .game-stage #raceCard .straight-track {
    display:block!important;
    flex:0 0 auto!important;
    width:100%!important;
    max-width:900px!important;
    height:auto!important;
    margin:-2px auto -2px!important;
    overflow:visible!important;
  }
}
@media (min-width:701px) and (max-height:750px) {
  .game-stage #raceCard .race-clock.matrix-frame {
    width:143px!important;
    max-width:143px!important;
  }
  .game-stage #raceCard .straight-track {
    width:min(100%,780px)!important;
    max-width:780px!important;
  }
}


/* ONE SCOREBOARD DESIGN: match the result poster's matrix-frame verbatim.
   Container query units must resolve against the scoreboard width itself.
   The previous question-specific CSS sized the casing against the full card,
   creating the oversized yellow surround shown in the screenshot. */
@media (min-width:701px){
  .game-stage #raceCard .question-clock-container{
    container-type:inline-size;
    width:clamp(205px,22vw,255px);
    max-width:38%;
    min-width:0;
    flex:0 0 auto;
    align-self:flex-start;
  }
  .game-stage #raceCard .question-clock-container .race-clock.matrix-frame{
    display:block!important;
    container-type:normal!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:1.75cqw 1.7cqw 1.2cqw!important;
    border:.65cqw solid #ffe764!important;
    border-radius:1.4cqw!important;
    background:linear-gradient(128deg,#ffe23b 0%,#ffcb05 40%,#d7a500 100%)!important;
    box-shadow:inset 0 0 0 1px #f3b900,0 1.25cqw 0 #9c5e0b,0 2.2cqw 5cqw #200e10a1!important;
    transform:perspective(1200px) rotateX(.5deg)!important;
  }
  .game-stage #raceCard .question-clock-container .matrix-header{
    min-height:8.2cqw!important;
    padding:0 1.2cqw .8cqw!important;
    gap:1cqw!important;
  }
  .game-stage #raceCard .question-clock-container .matrix-screen{
    min-height:28.3cqw!important;
    padding:1.2cqw 1.1cqw .7cqw!important;
    border:.8cqw solid #34393a!important;
    box-shadow:inset 0 0 0 .6cqw #101417,inset 0 0 3.7cqw #080a0b!important;
  }
  .game-stage #raceCard .question-clock-container .matrix-screen-value{
    --led-dot:2.25cqw;
    --led-gap:.55cqw;
    --led-space:1.9cqw;
    min-height:22cqw!important;
    gap:var(--led-space)!important;
  }
  .game-stage #raceCard .question-clock-container .matrix-footer{
    padding:1.4cqw 1.3cqw .2cqw!important;
  }
  .game-stage #raceCard .straight-track{
    width:100%!important;
    max-width:none!important;
  }
}
@media (min-width:701px) and (max-height:750px){
  .game-stage #raceCard .question-clock-container{width:205px;}
}


/* One rarity reaction above the track; no duplicate tier beside the score clock. */
.game-stage #surgeBadge{display:none!important}
.game-stage #raceCard #feedback{
 --round-feedback-colour:#b9c0c8;
 border-color:var(--round-feedback-colour)!important;
}
.game-stage #raceCard #feedback .big,
.game-stage #raceCard #feedback.missed .big{
 color:var(--round-feedback-colour)!important;
 text-shadow:0 0 12px #ffffff13;
}
.game-stage #raceCard #feedback .msg{color:#fff0e8!important;font-size:11px!important}

/* UNIFIED SCOREBOARD + PULL-IN FEEDBACK — all three screens share the
   finish-board internals, sized with a local container instead of the card. */
@media(min-width:701px){
  .home-stage .race-top .home-clock-container{
    container-type:inline-size;width:clamp(205px,22vw,260px);max-width:38%;
    flex:0 0 auto;align-self:flex-start;min-width:0;
  }
  .home-stage .race-top .home-clock-container .race-clock.matrix-frame{
    container-type:normal!important;display:block!important;width:100%!important;
    max-width:100%!important;min-width:0!important;
    padding:1.75cqw 1.7cqw 1.2cqw!important;
    border:.65cqw solid #ffe764!important;border-radius:1.4cqw!important;
    background:linear-gradient(128deg,#ffe23b 0%,#ffcb05 40%,#d7a500 100%)!important;
    box-shadow:inset 0 0 0 1px #f3b900,0 1.25cqw 0 #9c5e0b,0 2.2cqw 5cqw #200e10a1!important;
    transform:perspective(1200px) rotateX(.5deg)!important;
  }
  .home-stage .race-top .home-clock-container .matrix-header{min-height:8.2cqw!important;padding:0 1.2cqw .8cqw!important;gap:1cqw!important}
  .home-stage .race-top .home-clock-container .matrix-screen{min-height:28.3cqw!important;padding:1.2cqw 1.1cqw .7cqw!important;border:.8cqw solid #34393a!important;box-shadow:inset 0 0 0 .6cqw #101417,inset 0 0 3.7cqw #080a0b!important}
  .home-stage .race-top .home-clock-container .matrix-screen-value{--led-dot:2.25cqw;--led-gap:.55cqw;--led-space:1.9cqw;min-height:22cqw!important;gap:var(--led-space)!important}
  .home-stage .race-top .home-clock-container .matrix-footer{padding:1.4cqw 1.3cqw .2cqw!important}
  .game-stage #raceCard .race-top{
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);
    align-items:center!important;gap:12px!important;
  }
  .game-stage #raceCard .race-label-group{grid-column:1;grid-row:1;align-self:start}
  .game-stage #raceCard .question-clock-container{
    grid-column:3;grid-row:1;justify-self:end;max-width:100%;
  }
  .game-stage #raceCard .race-top #feedback{
    --round-feedback-colour:#b9c0c8;
    display:flex;grid-column:2;grid-row:1;align-self:center;min-width:0!important;
    width:max-content!important;max-width:100%!important;
    margin:0 auto!important;padding:9px 14px!important;
    background:#16191ecc!important;border:3px solid var(--round-feedback-colour)!important;
    border-radius:11px!important;box-shadow:0 4px 0 #270e1230!important;
    overflow:hidden;
  }
  .game-stage #raceCard .race-top #feedback .big{
    font-size:clamp(15px,1.85vw,28px)!important;line-height:1.08!important;
    letter-spacing:-.4px!important;font-weight:1000!important;font-style:italic!important;
    text-transform:uppercase;white-space:normal;text-wrap:balance;
    -webkit-text-stroke:.35px currentColor;
  }
  .game-stage #raceCard .race-top #feedback .msg{display:none!important}
}
@keyframes feedbackPullIn{
  0%{opacity:0;transform:scale(.3);filter:blur(3px)}
  65%{opacity:1;transform:scale(1.10);filter:blur(0)}
  82%{transform:scale(.97)}
  100%{opacity:1;transform:scale(1);filter:none}
}
.game-stage #raceCard #feedback.feedback-pull-in{animation:feedbackPullIn 560ms cubic-bezier(.16,.87,.22,1) both}
@media(max-width:700px){
  .game-stage #raceCard .race-top #feedback{max-width:100%!important}
  .game-stage #raceCard #feedback .big{font-weight:1000!important;font-style:italic!important;text-transform:uppercase;letter-spacing:-.3px!important}
  .game-stage #raceCard #feedback .msg{display:none!important}
}
@media(prefers-reduced-motion:reduce){.game-stage #raceCard #feedback.feedback-pull-in{animation:none!important}}




/* Eight-lap scoreboard: one current outline, completed squares hold their rarity colours. */
.app>.top{position:relative}
.lap-progress{display:none;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;padding:0 10px}
.app[data-stage="game"] .lap-progress{display:flex}
@media(min-width:701px){
  .app[data-stage="game"] > .top{
    display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  }
  .app[data-stage="game"] > .top .brand{justify-self:start}
  .app[data-stage="game"] > .top .top-controls{justify-self:end}
}
.lap-square{width:15px;height:15px;flex:0 0 15px;border-radius:4px;border:2px solid #ffffff3b;background:#2b19224a;box-shadow:inset 0 0 0 1px #00000018;transition:background .25s,border-color .25s,box-shadow .25s}
.lap-square.is-current:not(.is-complete){border-color:#fff;box-shadow:0 0 0 1px #ffffff55;background:transparent}
.lap-square.is-complete{background:var(--lap-colour,#9ca3af);border-color:var(--lap-colour,#9ca3af);box-shadow:0 0 8px color-mix(in srgb,var(--lap-colour) 35%,transparent)}
/* The original bottom dots are superseded by the compact header tracker. */
.game-stage #questionDots{display:none!important}
/* Keep the one-second anticipation dim, without stadium spotlights. */
.app.result-pending[data-stage="game"] .game-stage #raceCard .straight-track{filter:brightness(.55) saturate(.78)!important;transition:filter .17s ease}
.app.result-pending[data-stage="game"] .game-stage #raceCard .race-clock{filter:brightness(.76);transition:filter .17s ease}
@media(max-width:700px){
  .lap-progress{gap:4px;padding:0 4px}
  .lap-square{width:12px;height:12px;flex-basis:12px;border-radius:3px;border-width:1.5px}
  .app[data-stage="game"] .brand{font-size:clamp(12px,3.8vw,16px)!important}
  .app[data-stage="game"] .top-controls{gap:4px!important}
}
@media(max-width:390px){.lap-progress{gap:3px;padding:0 2px}.lap-square{width:10px;height:10px;flex-basis:10px}}
@media(prefers-reduced-motion:reduce){.lap-square{transition:none}}

/* OutsideLane mobile question layout — layout-only adaptation of the approved
   keyboard-open mockup. Desktop styles and existing visual language are intact.
   The OS keyboard is NOT drawn or simulated by the site. */
@media (max-width:700px) and (pointer:coarse) {
  /* Fit live timer into the clock's deliberately reserved right-hand space.
     Original timer node still owns its timer updates, warning and sound logic. */
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top{
    display:contents!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top .count-label,
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel #mobileScoreChip{
    display:none!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top .timer{
    display:block!important;
    position:absolute!important;
    top:18px!important;
    right:51px!important;
    z-index:12!important;
    width:47px!important;
    margin:0!important;
    padding:0!important;
    font-size:12px!important;
    font-weight:900!important;
    line-height:22px!important;
    text-align:center!important;
    font-variant-numeric:tabular-nums;
    pointer-events:none;
    color:#fff0c0!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .timer-bar{
    display:none!important;
  }

  /* Question -> compact straight track -> input and compact submit. */
  .app[data-stage="game"]:not(.answer-reveal) .game-stage{
    flex:1 1 auto!important;
    min-height:0!important;
    padding:0 0 5px!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage main{
    flex:1 1 auto!important;
    min-height:0!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    height:100%!important;
    padding:12px 12px 8px!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #questionText{
    order:1!important;
    flex:0 0 auto!important;
    font-size:clamp(20px,5.8vw,26px)!important;
    line-height:1.16!important;
    letter-spacing:-.45px!important;
    margin:0 0 13px!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #mobileQuestionTrack{
    display:block!important;
    order:2!important;
    flex:0 0 auto!important;
    width:100%!important;
    margin:0 0 12px!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #mobileQuestionTrack svg{
    display:block!important;
    width:100%!important;
    max-height:115px!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #topicLabel,
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #questionDesc,
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #questionDots{
    display:none!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #validationMessage{
    order:3!important;
    flex:0 0 auto!important;
    min-height:0!important;
    margin:0 0 4px!important;
    font-size:11px!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #answerSuggestions{
    order:4!important;
    max-height:75px;
    overflow-y:auto;
    margin:0 0 5px!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #answerForm{
    order:5!important;
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:stretch!important;
    gap:7px!important;
    flex:0 0 auto!important;
    position:sticky!important;
    bottom:0!important;
    z-index:5!important;
    margin:auto 0 0!important;
    padding:7px 0 0!important;
    background:transparent!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #answerInput{
    flex:1 1 0!important;
    width:0!important;
    min-width:0!important;
    height:46px!important;
    min-height:46px!important;
    padding:10px 12px!important;
    font-size:16px!important; /* prevents iOS zoom on focus */
    border-radius:10px!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #submitAnswer{
    flex:0 0 82px!important;
    width:82px!important;
    min-width:82px!important;
    min-height:46px!important;
    height:46px!important;
    padding:8px 6px!important;
    font-size:11px!important;
    border-radius:10px!important;
    white-space:nowrap!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #nextButton{
    order:6!important;
  }

  .app.keyboard-open[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel{
    padding:7px 10px 5px!important;
  }
  .app.keyboard-open[data-stage="game"]:not(.answer-reveal) .game-stage #questionText{
    margin-bottom:7px!important;
    font-size:clamp(18px,5.15vw,23px)!important;
  }
  .app.keyboard-open[data-stage="game"]:not(.answer-reveal) .game-stage #mobileQuestionTrack{
    margin-bottom:7px!important;
  }
  .app.keyboard-open[data-stage="game"]:not(.answer-reveal) .game-stage #answerForm{
    padding-top:5px!important;
  }
}
@media (max-width:370px) and (pointer:coarse) {
  .app[data-stage="game"]:not(.answer-reveal) #mobileQuestionClock{
    padding-right:45px!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top .timer{
    right:49px!important;
    width:41px!important;
    font-size:11px!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #submitAnswer{
    flex-basis:72px!important;
    width:72px!important;
    min-width:72px!important;
    font-size:10px!important;
  }
}

/* Mobile masthead for questions and answer feedback. */
@media (max-width:700px) and (pointer:coarse) {
  .app[data-stage="game"] > .top {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    column-gap:7px!important;
    row-gap:5px!important;
    justify-content:stretch!important;
    align-content:start!important;
    align-items:center!important;
    height:auto!important;
    min-height:0!important;
    margin-bottom:9px!important;
    padding:0 2px!important;
  }
  .app[data-stage="game"] > .top .brand {
    grid-column:1!important;
    grid-row:1!important;
    order:initial!important;
    justify-self:start!important;
    max-width:100%!important;
    min-width:0!important;
    line-height:1.1!important;
  }
  .app[data-stage="game"] > .top .lap-progress {
    grid-column:1!important;
    grid-row:2!important;
    order:initial!important;
    width:auto!important;
    flex:none!important;
    min-width:0!important;
    max-width:100%!important;
    justify-content:flex-start!important;
    gap:4px!important;
    margin:0!important;
    padding:0!important;
    align-self:start!important;
  }
  .app[data-stage="game"] .lap-square {
    width:10px!important;
    height:10px!important;
    flex:0 0 10px!important;
    border-radius:2px!important;
    border-width:1.5px!important;
  }
  .app[data-stage="game"] > .top .top-controls {
    grid-column:2!important;
    grid-row:1 / 3!important;
    order:initial!important;
    flex:none!important;
    margin:0!important;
    justify-self:end!important;
    align-self:center!important;
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
  }

  /* The three animated score numerals are the same DOM and pixel animation
     as before: only their enclosure becomes a small physical race clock. */
  .app[data-stage="game"] #mobileQuestionClock {
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:8px 27px 7px!important;
    width:132px!important;
    min-width:132px!important;
    min-height:0!important;
    height:auto!important;
    gap:2px!important;
    align-items:center!important;
    padding:4px 5px 5px!important;
    border:2px solid #ffe764!important;
    border-radius:7px!important;
    background:linear-gradient(128deg,#ffe23b 0%,#ffcb05 45%,#d7a500 100%)!important;
    box-shadow:inset 0 0 0 1px #f3b900,0 3px 0 #9c5e0b,0 6px 12px #240d1480!important;
    color:#171716!important;
    container-type:normal!important;
    overflow:hidden!important;
  }
  .app[data-stage="game"] .mobile-question-clock-label {
    display:block!important;
    grid-column:1!important;
    grid-row:1!important;
    font:900 7px/1 var(--site-font)!important;
    letter-spacing:.6px!important;
    color:#251d08!important;
    text-align:left!important;
    padding-left:2px!important;
  }
  .app[data-stage="game"] .mobile-question-clock-digits {
    grid-column:1!important;
    grid-row:2!important;
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    gap:1px!important;
    min-width:0!important;
    min-height:27px!important;
    height:27px!important;
    padding:3px 2px!important;
    background:repeating-linear-gradient(0deg,#191e20 0,#191e20 3px,#202529 4px)!important;
    border:2px solid #34393a!important;
    border-radius:2px!important;
    box-shadow:inset 0 0 0 1px #101417,inset 0 0 8px #080a0b!important;
    --mini-dot:1.45px;
    --mini-gap:.43px;
  }
  .app[data-stage="game"] .mobile-question-clock-unit {
    grid-column:1!important;
    grid-row:3!important;
    display:block!important;
    text-align:center!important;
    font-size:6px!important;
    line-height:1!important;
    font-weight:950!important;
    letter-spacing:1px!important;
    color:#3b2a0a!important;
    margin:0!important;
  }
  /* Restore the original live 25s timer and desktop-style progress bar.
     Both sit below the mobile header and above the question text. */
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top,
  .app.keyboard-open[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top {
    display:flex!important;
    order:-2!important;
    flex:0 0 auto!important;
    justify-content:flex-end!important;
    align-items:center!important;
    margin:0 0 4px!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top .count-label,
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top #mobileScoreChip {
    display:none!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top .timer,
  .app.keyboard-open[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top .timer {
    display:block!important;
    position:static!important;
    width:auto!important;
    font-size:clamp(15px,4.3vw,19px)!important;
    font-weight:950!important;
    line-height:1.15!important;
    color:#fff!important;
    margin:0!important;
    padding:0!important;
    pointer-events:auto!important;
    font-variant-numeric:tabular-nums;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top .timer.warn {color:#ffe3af!important}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .question-top .timer.danger {color:#ffb2a1!important}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .timer-bar,
  .app.keyboard-open[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .timer-bar {
    display:block!important;
    order:-1!important;
    flex:0 0 auto!important;
    width:100%!important;
    height:7px!important;
    margin:0 0 10px!important;
    background:#6f2828!important;
    border-radius:10px!important;
    overflow:hidden!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .timer-bar > div {
    height:100%!important;
    background:#fff!important;
    border-radius:10px!important;
    transition:width .09s linear,background .1s;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .timer-bar > div.warn {background:#ffe3af!important}
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel .timer-bar > div.danger {background:#ffb2a1!important}

}
@media (max-width:370px) and (pointer:coarse) {
  .app[data-stage="game"]:not(.answer-reveal) #mobileQuestionClock{
    width:116px!important;
    min-width:116px!important;
    grid-template-rows:7px 25px 7px!important;
    gap:1px 2px!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .mobile-question-clock-digits{
    --mini-dot:1.25px;
    --mini-gap:.35px;
    min-height:25px!important;
    height:25px!important;
  }
}

/* The mobile masthead owns the score display. */
@media (max-width:700px) and (pointer:coarse) {
  .app[data-stage="game"] .game-stage #raceCard .question-clock-container,
  .app[data-stage="game"] .game-stage #raceCard #raceClock {
    display:none!important;
  }
  .app.answer-reveal[data-stage="game"] .game-stage #raceCard .race-top {
    min-height:0!important;
    height:auto!important;
    align-items:center!important;
  }
  .app.answer-reveal[data-stage="game"] .game-stage #raceCard {
    padding-top:5px!important;
  }
}


/* Mobile question scoreboard — exact contents/visual hierarchy of the full
   OutsideLane race/result board, faithfully miniaturised to header size.
   The results screen displays its score on the poster. */
@media (max-width:700px) and (pointer:coarse) {
  .app[data-stage="game"] #mobileQuestionClock.mobile-question-clock {
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:space-between!important;
    --score-width:124px;
    --score-height:60px;
    flex:0 0 var(--score-width)!important;
    width:var(--score-width)!important;
    min-width:var(--score-width)!important;
    max-width:var(--score-width)!important;
    height:var(--score-height)!important;
    min-height:var(--score-height)!important;
    max-height:var(--score-height)!important;
    gap:2px!important;
    padding:4px 4px 3px!important;
    border:2px solid #ffe764!important;
    border-radius:6px!important;
    background:linear-gradient(128deg,#ffe23b 0%,#ffcb05 45%,#d7a500 100%)!important;
    box-shadow:inset 0 0 0 1px #f3b900,0 3px 0 #9c5e0b,0 6px 12px #240d1480!important;
    color:#171716!important;
    container-type:normal!important;
    overflow:hidden!important;
    transform:none!important;
    white-space:normal!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .matrix-header {
    display:flex!important;
    flex:0 0 11px!important;
    flex-direction:row!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:2px!important;
    width:100%!important;
    min-height:11px!important;
    height:11px!important;
    padding:0 1px!important;
    color:#151515!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .matrix-brand{
    font:1000 8.2px/.95 var(--site-font)!important;
    letter-spacing:-.35px!important;
    color:#151515!important;
    white-space:nowrap!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .matrix-headmeta {
    font:1000 4.2px/1.01 var(--site-font)!important;
    text-align:right!important;
    letter-spacing:.65px!important;
    color:#151515!important;
    white-space:nowrap!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .matrix-screen {
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:6px minmax(0,1fr) 6px!important;
    flex:1 1 auto!important;
    align-items:center!important;
    min-width:0!important;
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    gap:0!important;
    padding:2px 3px 1px!important;
    border:2px solid #34393a!important;
    border-radius:1px!important;
    background:repeating-linear-gradient(0deg,#191e20 0,#191e20 3px,#202529 4px)!important;
    box-shadow:inset 0 0 0 1px #101417,inset 0 0 7px #080a0b!important;
    overflow:hidden!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .matrix-screen-top {
    display:flex!important;
    grid-column:1 / 3!important;
    grid-row:1!important;
    justify-content:space-between!important;
    align-items:flex-start!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    font:900 4.3px/1 var(--site-font)!important;
    letter-spacing:.2px!important;
    color:#cdd19c!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .matrix-screen-bottom {
    display:block!important;
    grid-column:1 / 3!important;
    grid-row:3!important;
    align-self:end!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    font:900 4.3px/1 var(--site-font)!important;
    letter-spacing:.2px!important;
    color:#cdd19c!important;
  }
  .app[data-stage="game"] #mobileQuestionClock #mobileQuestionClockDigits.mobile-question-clock-digits {
    --mini-dot:1.95px!important;
    --mini-gap:.48px!important;
    display:flex!important;
    grid-column:1 / 3!important;
    grid-row:2!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    flex:0 0 auto!important;
    align-self:center!important;
    justify-self:center!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:none!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .mini-matrix-character {
    display:grid!important;
    grid-template-columns:repeat(5,var(--mini-dot))!important;
    grid-template-rows:repeat(7,var(--mini-dot))!important;
    gap:var(--mini-gap)!important;
    flex:0 0 auto!important;
    margin:0!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .mini-matrix-pixel {
    display:block!important;
    width:var(--mini-dot)!important;
    height:var(--mini-dot)!important;
    border-radius:0!important;
    background:#595d46!important;
    opacity:.22!important;
    box-shadow:none!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .mini-matrix-pixel.is-lit {
    background:#f5f92d!important;
    opacity:1!important;
    box-shadow:0 0 2px #fbff65,0 0 4px #daec3275!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .matrix-footer {
    display:flex!important;
    flex:0 0 6px!important;
    align-items:center!important;
    justify-content:flex-start!important;
    min-height:6px!important;
    height:6px!important;
    margin:0!important;
    padding:0 1px!important;
    font:1000 5px/1 var(--site-font)!important;
    letter-spacing:.7px!important;
    color:#171716!important;
  }
}
@media (max-width:370px) and (pointer:coarse) {
  .app[data-stage="game"] #mobileQuestionClock.mobile-question-clock {
    --score-width:110px;
    --score-height:55px;
  }
  .app[data-stage="game"] #mobileQuestionClock #mobileQuestionClockDigits.mobile-question-clock-digits {
    --mini-dot:1.7px!important;
    --mini-gap:.43px!important;
  }
}

/* The mobile sprint track uses the masthead for its race context. */
@media (max-width:700px) and (pointer:coarse) {
  .app[data-stage="game"] .game-stage #raceCard .race-label-group { display:none!important; }
}

/* Score-only mini scoreboard and slightly taller mobile question-track lanes.
   Preserve the header clock footprint and the compact keyboard-open layout. */
@media (max-width:700px) and (pointer:coarse) {
  .app[data-stage="game"] #mobileQuestionClock .matrix-screen {
    grid-template-rows:6px minmax(0,1fr)!important;
  }
  .app[data-stage="game"] #mobileQuestionClock #mobileQuestionClockDigits {
    grid-row:2!important;
  }
}

@media (max-width:700px) and (pointer:coarse) {
  /* Keep the active screen in its own scrollport as the keyboard resizes it. */
  .app > .stage-window > .stage-strip {
    height:100%;
    transform:none;
    transition:none;
    will-change:auto;
  }
  .stage-strip > .stage {
    height:100%;
  }
  /* The home layout declares display with !important. Inactive scenes must
     still leave the mobile scrollport before the next scene is laid out. */
  .stage-strip > .stage[inert] {
    display:none!important;
  }
  .app:is([data-stage="game"],[data-stage="results"]) {
    position:fixed;
    top:var(--mobile-viewport-top,0px);
    inset-inline:0;
    height:var(--mobile-visible-height,100dvh);
    padding-top:max(8px,env(safe-area-inset-top));
    overflow:clip;
  }
  .app:is([data-stage="game"],[data-stage="results"]) > .stage-window {
    overflow:clip;
  }
  .app[data-stage="game"] > .top {
    flex:none;
  }
  .app[data-stage="game"] > .top .brand {
    font-size:clamp(12px,3.6vw,16px)!important;
    white-space:nowrap;
  }
  .app[data-stage="game"] > .top .lap-progress {
    display:flex;
  }
  .game-stage {
    overflow-anchor:none;
  }

  .app[data-stage="game"]:not(.answer-reveal) .game-stage {
    overflow-y:auto;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage main {
    flex:0 0 auto!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel {
    height:auto!important;
    overflow:visible!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #questionText {
    overflow-wrap:anywhere;
    line-height:1.22!important;
  }
  .app.keyboard-open[data-stage="game"]:not(.answer-reveal) .game-stage #gamePanel #mobileQuestionTrack > svg {
    max-height:80px!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #answerCorrection {
    order:4;
    flex:none;
    margin:0;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #answerForm {
    position:static!important;
    margin:0!important;
    padding:0!important;
    background:none!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #validationMessage {
    order:6!important;
    font-size:13px!important;
    margin:6px 0 0!important;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #validationMessage:empty {
    display:none;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #answerSuggestions {
    order:7!important;
    max-height:none;
    overflow:visible;
  }
  .app[data-stage="game"]:not(.answer-reveal) .game-stage #answerSuggestions .suggestion {
    min-height:44px;
  }

  .app:is([data-stage="game"],[data-stage="results"]) .sound-toggle,
  .result-icon-button {
    flex:0 0 44px!important;
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
  }
  .results-stage #resultsPanel {
    max-width:480px!important;
  }
  .result-icon-toolbar {
    display:grid;
    grid-template-columns:auto minmax(0,1fr) repeat(3,auto);
  }
  .results-stage .share-status {
    white-space:normal;
    overflow-wrap:anywhere;
    font-size:11px!important;
  }
}

/* The landing preview follows the height of the clock and track. */
.home-stage #homeRaceCard {
  min-height:0!important;
  justify-content:flex-start!important;
  gap:clamp(12px,1.3vw,18px);
}
.home-stage #homeRaceCard .race-top {
  min-height:0!important;
  justify-content:flex-end;
}
.home-stage #homeRaceCard .race-clock {
  margin-inline-start:auto;
}
.home-stage #homeRaceCard .straight-track {
  width:100%!important;
  max-width:430px!important;
  margin:0 0 0 auto!important;
}
@media (min-width:701px) {
  .home-stage #homeRaceCard .straight-track {
    max-width:none!important;
  }
}

/* ---- round flow: read countdown, "did you mean" correction, result reveal ---- */
.read-countdown{display:flex;align-items:center;justify-content:center;gap:16px;margin:14px 0 4px;padding:10px 14px;border-radius:12px;background:#0000001f}
.read-countdown .read-label{font-size:11px;font-weight:900;letter-spacing:3px;color:#ffe5dd}
.read-countdown .read-digit{font-size:34px;font-weight:1000;line-height:1;color:#fff;min-width:28px;text-align:center;font-variant-numeric:tabular-nums}
.read-countdown .read-digit.pop{animation:readPop .55s ease-out}
.app.question-reading #answerForm{opacity:.45}
.app.question-reading #answerInput::placeholder{color:transparent}
@keyframes readPop{0%{transform:scale(1.6);opacity:0}35%{opacity:1}100%{transform:scale(1);opacity:1}}

#gamePanel .answer-correction{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;margin:12px 0 8px;padding:10px 12px;border-radius:12px;background:#0000002b;color:#fff;text-align:center;font-size:17px;cursor:pointer}
#gamePanel .answer-correction.hide{display:none!important}
#gamePanel .answer-correction .correction-input{color:#ffd6cc;opacity:.85}
#gamePanel .answer-correction .correction-arrow{margin:0 6px;opacity:.8}
#gamePanel .answer-correction .correction-answer{color:#ffe178;font-weight:800}
#gamePanel .answer-correction .correction-hint{font-size:11px;letter-spacing:1.6px;color:#ffe5dd;opacity:.85;text-transform:lowercase}
#gamePanel .answer-correction.correction-pop{animation:correctionPop .35s ease-out}
@keyframes correctionPop{0%{transform:translateY(6px);opacity:0}100%{transform:none;opacity:1}}

#feedback.reveal{text-align:center;padding:18px 16px 16px!important}
#feedback.reveal .reveal-tier{font-size:clamp(22px,4.4vw,32px);font-weight:1000;letter-spacing:4px;color:var(--round-feedback-colour,#fff);text-shadow:0 0 18px #0006}
#feedback.reveal .reveal-name{font-size:15px;font-weight:800;color:#fff;margin-top:6px;min-height:0}
#feedback.reveal .reveal-name:empty{display:none}
#feedback.reveal .big{font-size:clamp(24px,4vw,30px)!important;font-weight:1000;color:#fff!important;margin-top:8px;letter-spacing:1px;font-variant-numeric:tabular-nums}
#feedback.reveal .msg{font-size:12px!important;letter-spacing:2px;color:#ffe5dd!important;margin-top:6px}
#feedback.reveal.missed .reveal-tier{color:#c9ced6}
.app.answer-reveal #gamePanel #nextButton:not(.hide){animation:correctionPop .3s ease-out}

/* ---- game layout: 1) question card + bottom bar  2) the run  3) the score ---- */
.app[data-stage="game"] #gameStage{gap:0!important;overflow:hidden!important;padding:0 0 calc(env(safe-area-inset-bottom,0px) + 10px)!important}
.app[data-stage="game"] #gameStage > main{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;width:100%!important;max-width:none!important;margin:0!important;gap:0}
.app[data-stage="game"] #gameStage #gamePanel{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;flex:1 1 auto!important;min-height:0!important;background:none!important;border:0!important;box-shadow:none!important;padding:10px 4px!important;overflow-y:auto}
.app[data-stage="game"] #gameStage #gamePanel .question-top,.app[data-stage="game"] #gameStage #mobileQuestionTrack,.app[data-stage="game"] #gameStage #questionDots{display:none!important}
.app[data-stage="game"] #gameStage .question-body{width:min(640px,100%);flex:none;display:block;text-align:left;background:#2b1114e6;border:1px solid #f2b6a840;border-radius:14px;padding:26px 32px 22px;box-shadow:0 18px 50px #2a080a66}
.app[data-stage="game"] #gameStage .question-body #topicLabel{display:block!important;font-size:11px!important;letter-spacing:3.5px!important;color:#ff9f8c!important;text-shadow:none}
.app[data-stage="game"] #gameStage .question-body #questionText{display:block!important;font-size:clamp(21px,2.5vw,30px)!important;font-weight:850!important;line-height:1.28!important;letter-spacing:-.4px!important;text-align:left;margin:12px 0 14px!important;max-width:none;-webkit-line-clamp:unset!important;overflow:visible!important;text-shadow:none}
.app[data-stage="game"] #gameStage .question-body #questionDesc{display:block!important;font-size:12px!important;letter-spacing:.6px;color:#f3c9bf!important;margin:0!important}
@keyframes qFade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

.app[data-stage="game"] #gameStage #answerDock{flex:none;width:min(720px,100%);margin:0 auto;display:flex;flex-direction:column;gap:0;padding:10px 12px 0!important;background:#2b1114d9!important;border:1px solid #f2b6a833!important;border-radius:14px;box-shadow:0 12px 34px #2a080a55}
.app[data-stage="game"] #gameStage #answerDock .entry-row{display:flex;align-items:center;gap:10px}
.app[data-stage="game"] #gameStage #answerDock #timer {
  flex:0 0 4.5ch;
  text-align:center;
  white-space:nowrap;
  font-family:var(--site-font);
  font-size:clamp(15px,2.2vw,19px);
  font-weight:700;
  font-variant-numeric:tabular-nums;
  line-height:1;
  letter-spacing:normal;
  margin:0;
  color:var(--countdown-colour);
}
.app[data-stage="game"] #gameStage #answerDock #answerForm{display:flex!important;flex:1 1 auto;flex-direction:row!important;gap:8px;margin:0!important}
.app[data-stage="game"] #gameStage #answerDock #answerForm.hide{display:none!important}
.app[data-stage="game"] #gameStage #answerDock #answerInput{flex:1 1 auto;min-height:48px;font-size:16px;background:#1a0a0c!important;color:#fff!important;border:1px solid #f2b6a855!important}
.app[data-stage="game"] #gameStage #answerDock #answerInput::placeholder{color:#c99a90}
.app[data-stage="game"] #gameStage #answerDock #submitAnswer{flex:none;width:auto!important;min-height:48px;padding:0 18px}
.app[data-stage="game"] #gameStage #answerDock .timer-bar{height:3px!important;margin:10px -12px 0!important;border-radius:0 0 14px 14px;background:#ffffff1a}
.app[data-stage="game"] #gameStage #answerDock .answer-correction{margin:0 0 10px!important}
.app[data-stage="game"] #gameStage #answerDock #answerSuggestions{margin:8px 0 0}
.app[data-stage="game"] #gameStage #answerDock #validationMessage{margin:6px 0 0;min-height:0;text-align:center}
.app[data-stage="game"] #gameStage #answerDock #validationMessage:empty{display:none}
.app[data-stage="game"] #gameStage #answerDock #nextButton{width:100%;margin:0 0 10px!important;min-height:50px}

/* the starter: small, at the bottom, in place of the answer box */
.app[data-stage="game"] #gameStage #answerDock .read-countdown{height:50px;margin:0 0 10px;padding:0;background:none;display:flex;align-items:center;justify-content:center}
.app[data-stage="game"] #gameStage #answerDock .read-countdown.hide{display:none!important}
.app[data-stage="game"] #gameStage #answerDock .read-digit{font-size:14px!important;font-weight:900;letter-spacing:5px;color:#ffe5dd;min-width:0}
.app[data-stage="game"] #gameStage #answerDock .read-digit.pop{animation:starterIn .45s ease-out}
@keyframes starterIn{from{opacity:0;letter-spacing:12px}to{opacity:1;letter-spacing:5px}}
.app.question-reading[data-stage="game"] #gameStage #answerDock .entry-row,
.app.question-reading[data-stage="game"] #gameStage #answerDock .timer-bar{display:none!important}

/* screens */
.app[data-stage="game"] #gameStage #roundScore{display:none}
.app[data-stage="game"]:not(.answer-reveal) #gameStage #raceCard{display:none!important}
.app.answer-reveal[data-stage="game"] #gameStage #gamePanel{display:none!important}
.app.answer-reveal[data-stage="game"]:not(.round-scored) #gameStage #answerDock{display:none!important}
.app.answer-reveal[data-stage="game"]:not(.round-scored) #gameStage{justify-content:center!important}
.app.answer-reveal[data-stage="game"]:not(.round-scored) #gameStage #raceCard{display:flex!important;flex-direction:column;justify-content:center;flex:1 1 auto!important;width:100%;max-width:none;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;animation:qFade .35s ease}
.app.answer-reveal[data-stage="game"] #gameStage #raceCard:after{display:none}
.app.answer-reveal[data-stage="game"] #gameStage #raceCard .race-top{display:none!important}
.app.answer-reveal[data-stage="game"] #gameStage #raceCard .straight-track{width:100%!important;max-width:680px!important;margin:0 auto!important}
.app.answer-reveal[data-stage="game"]:not(.round-scored) #gameStage > main{flex:0 0 auto!important}
.app.round-scored[data-stage="game"] #gameStage #raceCard{display:none!important}
.app.round-scored[data-stage="game"] #gameStage #roundScore{display:flex;flex:1 1 auto;align-items:center;justify-content:center;min-height:0;padding:10px 4px}
.app[data-stage="game"] #gameStage #roundScore #feedback{width:min(440px,100%);margin:0!important;text-align:center;padding:30px 26px 26px!important;background:#2b1114e6!important;border:1px solid var(--round-feedback-colour,#f2b6a8)!important;border-radius:16px;box-shadow:0 18px 50px #2a080a66;animation:scoreIn .5s cubic-bezier(.2,.8,.2,1)}
.app[data-stage="game"] #gameStage #roundScore .reveal-tier{font-size:13px!important;letter-spacing:.12em!important;font-weight:800;color:var(--round-feedback-colour,#fff)!important}
.app[data-stage="game"] #gameStage #roundScore .reveal-name{font-size:15px!important;margin-top:10px!important;color:#fff;font-weight:800}
.app[data-stage="game"] #gameStage #roundScore .big{font-size:clamp(46px,7vw,64px)!important;font-weight:800!important;letter-spacing:-.035em!important;color:var(--round-feedback-colour,#fff)!important;margin:8px 0 0!important;line-height:1.05;font-style:normal!important}
.app[data-stage="game"] #gameStage #roundScore .msg{display:block!important;font-size:clamp(13px,2.2vw,15px)!important;line-height:1.45;letter-spacing:normal!important;color:#ffe5dd!important;margin-top:6px!important}
.app[data-stage="game"] #gameStage #roundScore .reveal-total{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#e9b3a7;margin-top:18px;font-weight:700}
@keyframes scoreIn{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:620px){
  .app[data-stage="game"] #gameStage .question-body{padding:20px 20px 18px}
  .app[data-stage="game"] #gameStage #answerDock{padding:8px 8px 0!important}
  .app[data-stage="game"] #gameStage #answerDock #submitAnswer{padding:0 12px}
  .app[data-stage="game"] #gameStage #answerDock .timer-bar{margin:8px -8px 0!important}
}

.app[data-stage="game"] #gameStage #answerDock #answerForm{flex:1 1 auto!important;width:auto!important;min-width:0!important}
.app[data-stage="game"] #gameStage #answerDock #answerInput{width:100%!important;min-width:0!important}
.app[data-stage="game"] #gameStage #answerDock > *{order:0!important}
.app[data-stage="game"] #gameStage #answerDock #readCountdown{order:1!important}
.app[data-stage="game"] #gameStage #answerDock #answerCorrection{order:2!important}
.app[data-stage="game"] #gameStage #answerDock .entry-row{order:3!important}
.app[data-stage="game"] #gameStage #answerDock .timer-bar{order:4!important}
.app[data-stage="game"] #gameStage #answerDock #answerSuggestions{order:5!important}
.app[data-stage="game"] #gameStage #answerDock #validationMessage{order:6!important}
.app[data-stage="game"] #gameStage #answerDock #nextButton{order:7!important;margin-top:10px!important}
.app.round-scored[data-stage="game"] #gameStage #answerDock .entry-row,
.app.round-scored[data-stage="game"] #gameStage #answerDock .timer-bar{display:none!important}

.app[data-stage="game"] #gameStage #answerDock .answer-correction{display:flex!important;flex-direction:column;align-items:center;gap:3px;width:100%;margin:0 0 10px!important;padding:8px 12px;border:0;border-radius:12px;background:#00000033;color:#fff;text-align:center;font-size:16px;cursor:pointer}
.app[data-stage="game"] #gameStage #answerDock .answer-correction.hide{display:none!important}
.app[data-stage="game"] #gameStage #answerDock .correction-line{display:block}
.app[data-stage="game"] #gameStage #answerDock .correction-input{color:#ffd6cc;opacity:.85;font-weight:500}
.app[data-stage="game"] #gameStage #answerDock .correction-arrow{margin:0 6px;opacity:.8}
.app[data-stage="game"] #gameStage #answerDock .correction-answer{color:#ffe178;font-weight:800;text-decoration:none!important}
.app[data-stage="game"] #gameStage #answerDock .correction-hint{display:block;font-size:11px;letter-spacing:1.5px;color:#ffe5dd;opacity:.85}
.app[data-stage="game"] #gameStage #answerDock .answer-correction.correction-pop{animation:correctionPop .35s ease-out}

/* ---- full-screen track (track.js) and the dark glass game look ---- */
#trackCanvas{position:fixed;inset:0;width:100vw;height:100vh;z-index:0;display:block;opacity:0;pointer-events:none;transition:opacity .5s ease,filter .45s ease}
#trackCanvas:not([data-phase="off"]){opacity:1}
#trackCanvas[data-phase="question"],#trackCanvas[data-phase="score"]{filter:blur(7px) brightness(.42) saturate(.8)}
.app{position:relative;z-index:1}
.app[data-stage="game"] #gameStage{background:none!important}
.app[data-stage="game"] #gameStage #raceCard{display:none!important}

.app[data-stage="game"] #gameStage .question-body{background:rgba(20,22,26,.82)!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 20px 50px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.08)!important;border-radius:20px!important;width:min(680px,100%)!important}
.app[data-stage="game"] #gameStage .question-body #topicLabel{color:#FBBF24!important;font-family:var(--site-font);font-weight:800!important}
.app[data-stage="game"] #gameStage .question-body #questionText{color:#fff!important}
.app[data-stage="game"] #gameStage .question-body #questionDesc{color:#9CA3AF!important}

.app[data-stage="game"] #gameStage #answerDock{background:rgba(20,22,26,.82)!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 20px 50px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.08)!important;border-radius:18px!important}
.app[data-stage="game"] #gameStage #answerDock #answerInput{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:12px!important;color:#fff!important}
.app[data-stage="game"] #gameStage #answerDock #answerInput:focus{background:rgba(255,255,255,.1)!important;border-color:rgba(251,191,36,.7)!important;box-shadow:0 0 0 3px rgba(245,158,11,.18)!important;outline:0}
.app[data-stage="game"] #gameStage #answerDock #answerInput::placeholder{color:#9CA3AF}
.app[data-stage="game"] #gameStage #answerDock #submitAnswer,.app[data-stage="game"] #gameStage #answerDock #nextButton{background:linear-gradient(90deg,#F59E0B,#EA580C)!important;color:#fff!important;border:0!important;border-radius:12px!important;letter-spacing:.6px;box-shadow:0 10px 24px rgba(234,88,12,.25)!important}
.app[data-stage="game"] #gameStage #answerDock #submitAnswer:hover:not(:disabled),.app[data-stage="game"] #gameStage #answerDock #nextButton:hover:not(:disabled){background:linear-gradient(90deg,#FBBF24,#F97316)!important}
.app[data-stage="game"] #gameStage #answerDock #submitAnswer:disabled{opacity:.45}
.app[data-stage="game"] #gameStage #answerDock{--countdown-colour:#fff}
.app[data-stage="game"] #gameStage #answerDock[data-timer-phase="warning"]{--countdown-colour:#fbbf24}
.app[data-stage="game"] #gameStage #answerDock[data-timer-phase="danger"]{--countdown-colour:#f87171}
.app[data-stage="game"] #gameStage #answerDock .timer-bar{background:rgba(255,255,255,.08)!important}
.app[data-stage="game"] #gameStage #answerDock #timerFill{background:var(--countdown-colour);transition:width .09s linear}
.app[data-stage="game"] #gameStage #answerDock .read-digit{font-family:var(--site-font);color:#FBBF24!important}
.app[data-stage="game"] #gameStage #answerDock .answer-correction{background:rgba(245,158,11,.1)!important;border:1px solid rgba(245,158,11,.3)!important}
.app[data-stage="game"] #gameStage #answerDock .correction-input{color:#9CA3AF!important}
.app[data-stage="game"] #gameStage #answerDock .correction-answer{color:#FBBF24!important}
.app[data-stage="game"] #gameStage #answerDock .correction-hint{color:#D1D5DB!important}
.app[data-stage="game"] #gameStage #answerDock #validationMessage{color:#FCD34D}
.app[data-stage="game"] #gameStage #answerDock .suggestions{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.12)!important}
.app[data-stage="game"] #gameStage #answerDock .suggestion{background:rgba(245,158,11,.14)!important;border:1px solid rgba(245,158,11,.4)!important;color:#FDE68A!important}

.app[data-stage="game"] #gameStage #roundScore #feedback{font-family:var(--site-font);background:rgba(20,22,26,.82)!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 20px 50px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.08)!important;border-radius:22px!important;border-color:color-mix(in srgb,var(--round-feedback-colour,#fff) 55%,transparent)!important}
.app[data-stage="game"] #gameStage #roundScore .msg{color:#D1D5DB!important}
.app[data-stage="game"] #gameStage #roundScore .reveal-total{color:#9CA3AF!important}

.app.answer-reveal.answer-reveal[data-stage="game"] #gameStage #raceCard,.app.round-scored.round-scored[data-stage="game"] #gameStage #raceCard,.app.app[data-stage="game"]:not(.answer-reveal) #gameStage #raceCard{display:none!important}
#trackCanvas[data-phase="question"],#trackCanvas[data-phase="score"]{transform:scale(1.06)}
body:has(#trackCanvas:not([data-phase="off"])){background:#111317}

/* question card: one brief rise-and-fade, no per-word animation */
.app[data-stage="game"] #gameStage .question-body.q-enter{animation:qEnter .55s cubic-bezier(.2,.8,.2,1) both}
@keyframes qEnter{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.app[data-stage="game"] #gameStage .question-body.q-enter{animation:none}}

/* ---- scoreboard: top corner for the whole game, every screen size ---- */
  .app[data-stage="game"] #mobileQuestionClock.mobile-question-clock {
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:space-between!important;
    --score-width:124px;
    --score-height:60px;
    flex:0 0 var(--score-width)!important;
    width:var(--score-width)!important;
    min-width:var(--score-width)!important;
    max-width:var(--score-width)!important;
    height:var(--score-height)!important;
    min-height:var(--score-height)!important;
    max-height:var(--score-height)!important;
    gap:2px!important;
    padding:4px 4px 3px!important;
    border:2px solid #ffe764!important;
    border-radius:6px!important;
    background:linear-gradient(128deg,#ffe23b 0%,#ffcb05 45%,#d7a500 100%)!important;
    box-shadow:inset 0 0 0 1px #f3b900,0 3px 0 #9c5e0b,0 6px 12px #240d1480!important;
    color:#171716!important;
    container-type:normal!important;
    overflow:hidden!important;
    transform:none!important;
    white-space:normal!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .matrix-header {
    display:flex!important;
    flex:0 0 11px!important;
    flex-direction:row!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:2px!important;
    width:100%!important;
    min-height:11px!important;
    height:11px!important;
    padding:0 1px!important;
    color:#151515!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .matrix-brand{
    font:1000 8.2px/.95 var(--site-font)!important;
    letter-spacing:-.35px!important;
    color:#151515!important;
    white-space:nowrap!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .matrix-headmeta {
    font:1000 4.2px/1.01 var(--site-font)!important;
    text-align:right!important;
    letter-spacing:.65px!important;
    color:#151515!important;
    white-space:nowrap!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .matrix-screen {
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:6px minmax(0,1fr) 6px!important;
    flex:1 1 auto!important;
    align-items:center!important;
    min-width:0!important;
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    gap:0!important;
    padding:2px 3px 1px!important;
    border:2px solid #34393a!important;
    border-radius:1px!important;
    background:repeating-linear-gradient(0deg,#191e20 0,#191e20 3px,#202529 4px)!important;
    box-shadow:inset 0 0 0 1px #101417,inset 0 0 7px #080a0b!important;
    overflow:hidden!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .matrix-screen-top {
    display:flex!important;
    grid-column:1 / 3!important;
    grid-row:1!important;
    justify-content:space-between!important;
    align-items:flex-start!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    font:900 4.3px/1 var(--site-font)!important;
    letter-spacing:.2px!important;
    color:#cdd19c!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .matrix-screen-bottom {
    display:block!important;
    grid-column:1 / 3!important;
    grid-row:3!important;
    align-self:end!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    font:900 4.3px/1 var(--site-font)!important;
    letter-spacing:.2px!important;
    color:#cdd19c!important;
  }
  .app[data-stage="game"] #mobileQuestionClock #mobileQuestionClockDigits.mobile-question-clock-digits {
    --mini-dot:1.95px!important;
    --mini-gap:.48px!important;
    display:flex!important;
    grid-column:1 / 3!important;
    grid-row:2!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    flex:0 0 auto!important;
    align-self:center!important;
    justify-self:center!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:none!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .mini-matrix-character {
    display:grid!important;
    grid-template-columns:repeat(5,var(--mini-dot))!important;
    grid-template-rows:repeat(7,var(--mini-dot))!important;
    gap:var(--mini-gap)!important;
    flex:0 0 auto!important;
    margin:0!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .mini-matrix-pixel {
    display:block!important;
    width:var(--mini-dot)!important;
    height:var(--mini-dot)!important;
    border-radius:0!important;
    background:#595d46!important;
    opacity:.22!important;
    box-shadow:none!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .mini-matrix-pixel.is-lit {
    background:#f5f92d!important;
    opacity:1!important;
    box-shadow:0 0 2px #fbff65,0 0 4px #daec3275!important;
  }
  .app[data-stage="game"] #mobileQuestionClock .matrix-footer {
    display:flex!important;
    flex:0 0 6px!important;
    align-items:center!important;
    justify-content:flex-start!important;
    min-height:6px!important;
    height:6px!important;
    margin:0!important;
    padding:0 1px!important;
    font:1000 5px/1 var(--site-font)!important;
    letter-spacing:.7px!important;
    color:#171716!important;
  }
.app[data-stage="game"] #mobileQuestionClock.mobile-question-clock{display:flex!important;visibility:visible!important}
@media(min-width:701px){.app[data-stage="game"] #mobileQuestionClock.mobile-question-clock{zoom:1.45}}

/* ---- landing page: same night-stadium look as the game, kept light-touch ---- */
body:has(.app[data-stage="home"]){background:#111317}
#trackCanvas[data-phase="home"]{opacity:1;filter:blur(6px) brightness(.5) saturate(.85);transform:scale(1.06)}
.home-stage .hero h1,.home-stage .home-tagline{color:#F3F4F6;text-shadow:0 4px 24px rgba(0,0,0,.45)}
.home-stage .track-oval{border-color:rgba(251,191,36,.75)!important;box-shadow:0 0 0 1px rgba(251,191,36,.15),0 0 28px rgba(245,158,11,.25)}
.home-stage .track-oval em{color:#FBBF24!important}
.home-stage .sub{color:var(--site-text-secondary)!important}
.home-stage :is(#homeRaceCard,#homePanel,#homeLeagueBanner){background:var(--site-surface)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid var(--site-surface-border)!important;box-shadow:var(--site-surface-shadow)!important;border-radius:var(--site-surface-radius)!important}
.home-stage #homeRaceCard{border-radius:24px!important}
.home-stage #homeRaceCard:after{background:radial-gradient(ellipse,rgba(245,158,11,.14) 0%,transparent 70%)!important}
.home-stage #homeRaceCard .straight-track{filter:drop-shadow(0 16px 30px rgba(0,0,0,.45))}
.home-stage #homePanel .label{color:var(--site-accent)!important}
.home-stage #homePanel .live-dot{background:#F59E0B!important;box-shadow:0 0 0 4px rgba(245,158,11,.2)!important}
.home-stage :is(#homePanel h2,#homeLeagueTitle){color:var(--site-text)}
.home-stage :is(#homePanel p,#homeLeagueDetail){color:var(--site-text-muted)!important}
.home-stage .home-start{background:var(--site-action)!important;color:var(--site-text)!important;border:0!important;box-shadow:0 12px 30px rgba(234,88,12,.3)!important}
.home-stage .home-start:hover:not(:disabled){background:var(--site-action-hover)!important}
.home-stage .home-start .home-start-arrow{background:rgba(17,19,23,.35)!important;color:#fff!important}
.home-stage #homePanel #startDaily.home-start-result{min-height:60px!important}
.home-stage .stat{background:rgba(20,22,26,.62)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 20px 50px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.08)!important}
.home-stage .stat b{color:#fff}
.app[data-stage="home"] .top .button,.app[data-stage="home"] #toggleGameSound{background:rgba(20,22,26,.6)!important;border-color:rgba(255,255,255,.14)!important}

/* the starting gun: a bright flash across the answer bar as it opens */
.app[data-stage="game"] #gameStage #answerDock.gun-fired{animation:gunFlash .5s ease-out}
@keyframes gunFlash{0%{box-shadow:0 0 0 2px #fff,0 0 60px 12px rgba(251,191,36,.75);border-color:#fff!important}100%{box-shadow:0 20px 50px rgba(0,0,0,.55)}}
@media(prefers-reduced-motion:reduce){.app[data-stage="game"] #gameStage #answerDock.gun-fired{animation:none}}

/* SEO: crawlable About copy below the fold of the home stage, plus the no-JS fallback. */
.seo-about{flex:0 0 auto!important;width:100%;max-width:760px;margin:28px auto 8px;padding:20px 22px;border-radius:16px;background:rgba(36,11,20,.28);border:1px solid rgba(242,182,168,.28);color:#fff6ea;text-align:left;font-size:14px;line-height:1.55}
.seo-about h2{font-size:19px;margin:0 0 8px;letter-spacing:-.02em}
.seo-about h3{font-size:12px;letter-spacing:.14em;text-transform:uppercase;margin:16px 0 6px;color:#e2b448}
.seo-about p{margin:0 0 10px}
.seo-about a{color:#e2b448;font-weight:700}
.seo-bands{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:4px}
.seo-bands b{display:inline-block;min-width:48px;padding:1px 5px;margin-right:4px;border-radius:4px;background:#181b22;color:var(--tier-color,#e2b448);text-align:center;font-variant-numeric:tabular-nums}
.footer a{color:inherit}
.noscript-note{max-width:640px;margin:40px auto;padding:20px;color:#fff6ea;font-family:var(--site-font)}
.noscript-note a{color:#e2b448}

/* ---- Finish page: share actions and split reviews ---- */
#resultsStage #resultsPanel{max-width:min(100%,470px)!important}
#resultsStage #sharePoster{padding:clamp(8px,1.7dvh,15px) clamp(9px,3vw,16px)}
.result-actions{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:8px;width:100%;flex:none}
.result-pill{flex:none;appearance:none;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 13px;border:1px solid #ffd1b488;border-radius:999px;background:#ffffff14;color:#fff8ef;font:inherit;font-size:12px;font-weight:900;letter-spacing:.6px;text-transform:uppercase;cursor:pointer;transition:background .18s,transform .18s,border-color .18s}
.result-pill svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.result-pill:hover:not(:disabled){background:#ffffff30;border-color:#fff0d1;transform:translateY(-1px)}
.result-pill:focus-visible{outline:2px solid #ffe57d;outline-offset:3px}
.result-pill:disabled{opacity:.5;cursor:wait}
.results-stage .share-status{flex:none!important;width:100%!important;min-height:0!important;margin:0!important;white-space:normal!important;text-align:center!important;font-size:10px!important;letter-spacing:.5px}
.results-stage .share-status:empty{display:none}
.poster-split-chevron{justify-self:center;width:7px;height:7px;border-right:2px solid #ffe5d2;border-bottom:2px solid #ffe5d2;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
.poster-split-row[open] .poster-split-chevron{transform:translateY(2px) rotate(225deg)}
.answer-body{padding:12px;margin:0 0 7px;border-radius:0 0 8px 8px;background:#230d12aa;text-align:left;overflow-wrap:anywhere}
.answer-prompt{margin:0 0 5px;color:#fff;font-size:clamp(14px,3cqw,17px);line-height:1.35}
.answer-body .answer-yours{margin:0;color:#ffe5d2;font-size:13px}
.answer-yours strong{color:#fff}
.answer-body .answer-note{margin:9px 0;color:#f4cdc3;font-size:12px}
.answer-bands{display:grid;gap:12px}
.answer-band{padding-top:9px;border-top:1px solid #e5a29655}
.answer-band-heading{display:flex;align-items:baseline;gap:8px;margin:0 0 7px;color:#fff;font-size:12px;font-weight:800;letter-spacing:.06em}
.answer-band-heading span{font-size:13px;color:var(--tier-color,#fff)}
.answer-names{display:flex;flex-wrap:wrap;gap:5px;margin:0;padding:0;list-style:none}
.answer-chip{padding:4px 8px;background:#ffffff12;border:1px solid #ffffff1f;border-radius:6px;font-size:13px;line-height:1.35;color:#fff6ea}
.answer-chip.is-yours{border-color:var(--tier-color);font-weight:700}
.answer-chip-label{font-size:11px;color:#f4cdc3}
.answer-control{min-height:38px;padding:6px 10px;border:1px solid #e5a29688;border-radius:8px;background:#ffffff14;color:#fff8ef;font-size:12px;font-weight:700}
.answer-control:hover{background:#ffffff26}
.answer-body>.answer-control{margin-top:12px}
@media(max-width:480px){.result-pill{padding:0 11px;font-size:11px}}
@media(pointer:coarse){.poster-split,.answer-control{min-height:44px}}
@media(prefers-reduced-motion:reduce){.result-pill,.poster-split-chevron{transition:none!important}}

@media (max-width:700px), (pointer:coarse) and (max-height:540px) {
  #resultsStage {padding-bottom:max(6px,env(safe-area-inset-bottom))!important}
  #resultsStage #resultsPanel {max-width:min(100%,480px)!important}
  .share-poster .poster-overview,.share-poster .poster-bottom {flex:none}
  .share-poster .poster-edition {margin-bottom:4px;font-size:max(9px,2.15cqw)}
  .share-poster .result-pill {height:32px;padding:0 7px;gap:4px}
  .share-poster .result-pill svg {width:13px;height:13px}
  .share-poster .matrix-header {min-height:clamp(18px,4dvh,29px)}
  .share-poster .matrix-screen {min-height:0}
  .share-poster #posterScore {
    --led-dot:clamp(3px,min(2.1cqw,1.05dvh),8px);
    --led-gap:clamp(1px,min(.5cqw,.24dvh),2px);
    min-height:0;
    padding-block:2px;
  }
  .share-poster .poster-stats span {font-size:max(9px,2cqw)}
  .share-poster .poster-split-section {min-width:0}
  .share-poster .poster-splits-heading {font-size:max(9px,2cqw)}
  .share-poster .poster-split {min-height:clamp(34px,5.3dvh,44px)}
  .share-poster .poster-split-tier {font-size:clamp(9px,2.25cqw,13px)}
  .share-poster .poster-bottom {justify-content:space-between;gap:6px}
  .share-poster .poster-bottom .poster-tagline {display:none!important}
  .share-poster .poster-challenge {min-height:34px;font-size:clamp(11px,2.9cqw,15px);text-align:left}
}

@media (orientation:landscape) and (max-height:540px), (min-width:701px) and (max-height:690px) {
  #resultsStage #resultsPanel {max-width:min(100%,690px)!important}
  #resultsStage #sharePoster {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);grid-template-rows:1fr auto;gap:0 12px}
  .share-poster .poster-overview {grid-column:1;grid-row:1;container-type:inline-size}
  .share-poster .poster-split-section {grid-column:2;grid-row:1 / span 2;container-type:inline-size}
  .share-poster .poster-split {min-height:clamp(30px,5dvh,40px)}
  .share-poster .poster-bottom {grid-column:1;grid-row:2}
  .share-poster .poster-bottom .poster-tagline {display:none!important}
  .share-poster .poster-stats {margin-bottom:4px}
}

@media (orientation:portrait) and (max-width:700px) and (max-height:720px) {
  .share-poster .poster-split {min-height:clamp(30px,4.9dvh,36px)}
}

@media (orientation:portrait) and (max-width:700px) and (max-height:620px) {
  .app[data-stage="results"] > .top {margin-bottom:6px!important}
  #resultsStage #resultsPanel {gap:3px!important}
  #resultsStage #sharePoster {padding-block:5px}
  .share-poster .poster-edition {margin-bottom:3px}
  .share-poster .matrix-header {min-height:17px}
  .share-poster #posterScore {--led-dot:clamp(3px,min(1.65cqw,.84dvh),6px);--led-gap:1px}
  .share-poster .poster-stats {margin:4px 0 3px}
  .share-poster .poster-splits {padding-block:1px}
  .share-poster .poster-bottom {padding-top:3px}
  .share-poster .poster-challenge {min-height:32px}
}

/* ---- Player accounts: header button, sign-in dialog, results prompt ---- */
.account-button{position:relative}
.account-button .account-initial{display:none;font-weight:900;font-size:15px;line-height:1}
.account-button.signed-in .account-icon{display:none}
.account-button.signed-in .account-initial{display:block}
.account-button.signed-in{background:#ffe57d;color:#3b1418;border-color:#ffe57d}
.app[data-stage="game"] .account-button{display:none}
.account-button[hidden]{display:none}

.account-dialog{width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:30px 26px 22px;border:1px solid #ffffff2e;border-radius:20px;background:#1b1214;color:#fff8ef;box-shadow:0 30px 80px #000a;font-family:var(--site-font)}
.account-dialog::backdrop{background:#0b0607c4;backdrop-filter:blur(3px)}
.account-dialog h2{margin:0 0 8px;padding-inline:12px;font-size:24px;line-height:1.15;letter-spacing:-.01em;text-align:center}
.account-dialog .account-sub{margin:0 0 20px;color:#f3d9cc;font-size:14px;line-height:1.45;text-align:center}
.account-dialog label{display:block;margin:0 0 6px;font-size:13px;font-weight:800;letter-spacing:.02em}
.account-dialog input{box-sizing:border-box;width:100%;height:48px;padding:0 14px;border:1px solid #ffffff55;border-radius:10px;background:#ffffff12;color:#fff;font:inherit;font-size:16px}
.account-dialog input:focus{outline:2px solid #ffe57d;outline-offset:1px;border-color:transparent}
.account-dialog .code-input{text-align:center;font-size:26px;font-weight:800;letter-spacing:.35em;font-variant-numeric:tabular-nums}
.account-primary,.account-provider,.account-secondary{display:flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;width:100%;height:48px;margin-top:14px;border-radius:10px;font:inherit;font-size:15px;font-weight:900;cursor:pointer}
.account-primary{border:0;background:linear-gradient(90deg,#F59E0B,#EA580C);color:#fff;letter-spacing:.03em}
.account-primary:disabled,.account-provider:disabled,.account-secondary:disabled{opacity:.65;cursor:wait}
.account-provider{border:1px solid #ffffff66;background:#fff;color:#1f1f1f}
.account-provider:hover{background:#f1f1f1}
.account-secondary{border:1px solid #ffffff55;background:#ffffff12;color:#fff8ef}
.account-or{display:flex;align-items:center;gap:12px;margin:18px 0 4px;color:#f3d9cc;font-size:13px}
.account-or::before,.account-or::after{content:"";flex:1;height:1px;background:#ffffff2e}
.account-or[hidden],.account-provider[hidden],#emailForm[hidden]{display:none}
.account-error{min-height:1.3em;margin:12px 0 0;color:#ffb4a3;font-size:13px;text-align:center}
.account-error:empty{min-height:0;margin:0}
.account-legal{margin:16px 0 0;color:#d9bfb2;font-size:12px;line-height:1.5;text-align:center}
.account-legal a{color:#fff8ef}
.account-links{margin:16px 0 0;text-align:center;font-size:13px;color:#d9bfb2}
.account-link{padding:0;border:0;background:none;color:#ffe57d;font:inherit;text-decoration:underline;cursor:pointer}
.account-danger{color:#ffb4a3}
.account-close{position:absolute;top:10px;right:12px;width:36px;height:36px;border:0;border-radius:50%;background:none;color:#f3d9cc;font-size:26px;line-height:1;cursor:pointer}
.account-close:hover{background:#ffffff14}
.account-dialog{position:fixed}
.account-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:4px 0 6px}
.account-stats div{padding:14px 10px;border:1px solid #ffffff22;border-radius:12px;background:#ffffff0d;text-align:center}
.account-stats b{display:block;font-size:26px;color:#ffe57d;font-variant-numeric:tabular-nums}
.account-stats span{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#f3d9cc}
.account-actions{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:8px}
.account-actions .account-danger{font-size:12px}

.save-streak{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 12px;margin:10px auto 0;padding:10px 14px;max-width:520px;border:1px dashed #ffe57d88;border-radius:14px;text-align:center}
.save-streak[hidden]{display:none}
.save-streak p{margin:0;color:#fff8ef;font-size:13px;font-weight:700}

.account-hint{margin:-8px 0 16px;padding:10px 12px;border-radius:10px;background:#ffffff10;color:#f3d9cc;font-size:13px;line-height:1.45;text-align:center}
.account-hint[hidden]{display:none}
.save-streak .save-streak-signin{flex-basis:100%;font-size:12px}

/* ---- Share to Story (phone-first) ---- */
.story-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;padding:6px 8px;border:0;border-radius:10px;cursor:pointer;
  background:linear-gradient(90deg,#F59E0B,#EA580C 55%,#d9367a);color:#fff;font:inherit;font-size:14px;font-weight:950;letter-spacing:.02em;box-shadow:0 10px 26px #0005}
.story-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}
.story-button:active{transform:translateY(1px)}
.story-button:disabled{opacity:.7;cursor:wait}
.story-hint{margin:2px 0 0;padding:10px 14px;border-radius:12px;background:#ffffff17;border:1px solid #ffffff2e;color:#fff;font-size:13px;font-weight:700;line-height:1.45;text-align:center}
.story-hint[hidden]{display:none}
.story-hint b{color:#ffe57d}

/* ---- Easter eggs: James method flag, perfect-score interrogation ---- */
.egg-flag{position:fixed;left:50%;top:18px;z-index:1000;transform:translate(-50%,-140%);padding:9px 16px;border-radius:999px;background:#ffe04e;color:#171716;font-family:var(--site-font);font-weight:900;font-size:14px;letter-spacing:.2px;box-shadow:0 10px 30px #0008;pointer-events:none;transition:transform .35s cubic-bezier(.2,1.4,.4,1);white-space:nowrap}
.egg-flag.show{transform:translate(-50%,0) rotate(-2deg)}
.egg-dialog{width:min(400px,calc(100vw - 28px));padding:28px 24px 22px;border:1px solid #ffffff2e;border-radius:20px;background:#1b1214;color:#fff8ef;box-shadow:0 30px 80px #000a;font-family:var(--site-font);text-align:center}
.egg-dialog::backdrop{background:#0b0607c4;backdrop-filter:blur(3px)}
.egg-dialog.egg-pop{animation:eggPop .32s cubic-bezier(.2,1.5,.4,1)}
@keyframes eggPop{from{transform:scale(.9);opacity:.4}to{transform:none;opacity:1}}
.egg-over{margin:0 0 6px;color:#ffe04e;font-size:11px;font-weight:900;letter-spacing:1.6px;text-transform:uppercase}
.egg-dialog h2{margin:0 0 8px;font-size:26px;line-height:1.15;letter-spacing:-.01em}
.egg-text{margin:0 0 4px;color:#f3d9cc;font-size:15px;line-height:1.45}
.egg-buttons{display:flex;flex-direction:column;gap:9px;margin-top:20px}
.egg-buttons button{appearance:none;border-radius:12px;padding:12px 14px;font-weight:900;font-size:15px}
.egg-primary{border:0;background:#ffe04e;color:#171716}
.egg-secondary{border:1px solid #ffffff38;background:transparent;color:#fff8ef}
@media(prefers-reduced-motion:reduce){.egg-dialog.egg-pop{animation:none}.egg-flag{transition:none}}

/* ---- streak line + day-3 nudge ---- */
.streak-line{display:flex;align-items:center;justify-content:center;gap:6px;margin:10px 0 0;color:#ffe57d;font-size:13px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
#homePanel #homeStreak{margin-top:10px}
.streak-line svg{width:15px;height:15px;fill:#fbbf24}
.streak-line .streak-sub{color:#ffdbc8;font-weight:800;letter-spacing:.04em;text-transform:none}
.streak-line[hidden]{display:none}
.poster-edition{align-items:center}
.poster-streak{margin:0 0 0 auto;gap:4px;font-size:inherit;white-space:nowrap}
.poster-streak svg{flex:none;width:1.3em;height:1.3em}
.save-streak{position:relative}
.save-streak-x{position:absolute;top:2px;right:6px;width:26px;height:26px;border:0;background:none;color:#ffdbc8;font-size:20px;line-height:1;cursor:pointer}
p.streak-line{color:#ffe57d!important;opacity:1!important}
p.streak-line .streak-sub{color:#ffdbc8!important}

/* No visible scroll bars in the game: everything still scrolls by touch, trackpad, wheel and keyboard. */
html,body,*{scrollbar-width:none}
*::-webkit-scrollbar{display:none;width:0;height:0}

/* Home league card and the account-panel link */
.league-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 0;padding:14px clamp(14px,2vw,22px);color:var(--site-text);text-decoration:none}
.league-banner[hidden]{display:none}
.home-stage #homeLeagueBanner:hover,.home-stage #homeLeagueBanner:focus-visible{border-color:var(--site-accent)!important}
.league-banner:focus-visible{outline:2px solid var(--site-accent);outline-offset:3px}
.league-banner-copy{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.league-banner-copy strong{font-weight:700;letter-spacing:-.7px;line-height:1.2}
.league-banner-arrow{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:#ffffff12;color:var(--site-accent);font-size:18px}
.account-leagues{display:flex;justify-content:space-between;align-items:center;margin:14px 0 4px;padding:12px 16px;border-radius:12px;border:1px solid var(--site-surface-border);background:#ffffff12;color:var(--site-text);font-weight:900;text-decoration:none;letter-spacing:.02em}
.account-leagues span:last-child{color:var(--site-accent)}
.account-leagues:hover,.account-leagues:focus-visible{border-color:var(--site-accent)}
