@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHpv4kjgoGqM7EPCw.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHqv4kjgoGqM7E3_-gc4A.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHqv4kjgoGqM7E30-8c4A.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHqv4kjgoGqM7E3t-4c4A.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHqv4kjgoGqM7E3q-0c4A.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlowcondensed/v13/HTxyL3I-JCGChYJ8VI-L6OO_au7B6xTrf3fWvA.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlowcondensed/v13/HTxyL3I-JCGChYJ8VI-L6OO_au7B6xTrW3bWvA.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlowcondensed/v13/HTxwL3I-JCGChYJ8VI-L6OO_au7B46r2_3E.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlowcondensed/v13/HTxwL3I-JCGChYJ8VI-L6OO_au7B47b1_3E.ttf) format('truetype');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlowcondensed/v13/HTxwL3I-JCGChYJ8VI-L6OO_au7B45L0_3E.ttf) format('truetype');
}

:root{--ink:#14282e;--paper:#f7f5ef;--orange:#ff783e;--lime:#d6f581;--font:'Barlow',Arial,sans-serif;--display:'Barlow Condensed','Arial Narrow',Impact,sans-serif}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--ink);color:var(--paper);font:16px var(--font)}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible+span{outline:3px solid var(--lime);outline-offset:4px}a{color:inherit}fieldset{border:0;margin:0;padding:0;min-width:0}legend{padding:0}#game-shell,#game{position:absolute;inset:0;width:100%;height:100%}#game{outline:0;touch-action:none}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#0c1e20d9 0%,#0c1e208c 29%,transparent 65%),linear-gradient(0deg,#0e1f228c,transparent 28%);transition:opacity .5s}.playing .vignette{opacity:.12}
.topbar{position:absolute;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:25px 36px;z-index:4;pointer-events:none;background:linear-gradient(180deg,#09191c66,transparent)}.brand{display:flex;gap:13px;align-items:center}.brand-mark{font:italic 900 36px var(--display);letter-spacing:-.13em;background:var(--orange);color:var(--ink);width:52px;height:52px;display:flex;align-items:center;justify-content:center;padding-right:5px;transform:skew(-8deg);border-radius:3px}.brand-mark span{margin-left:-2px;color:var(--paper)}.brand strong{font:italic 900 29px/1 var(--display);letter-spacing:.04em}.brand-dot{color:var(--orange)}.brand-owner{display:block;font-size:12px;letter-spacing:.19em;font-weight:700;margin-top:5px}.track-label{display:flex;align-items:center;gap:12px;font-size:14px;letter-spacing:.12em;font-weight:700}.tag-number{width:40px;height:40px;display:grid;place-items:center;border:1px solid #ffffff60;border-radius:50%;font:700 18px var(--display)}.track-sub{display:block;font-size:12px;font-weight:500;opacity:.65;margin-top:3px}.top-actions{display:flex;gap:8px;pointer-events:auto}.icon-button{display:grid;place-items:center;width:42px;height:42px;border:1px solid #ffffff30;border-radius:50%;background:#10262f38;backdrop-filter:blur(8px)}.icon-button:hover{background:#ffffff25}.icon-button svg{width:20px;height:20px}.sound-on{display:none}.sound-enabled .sound-on{display:block}.sound-enabled .sound-off{display:none}
.start-screen{position:absolute;z-index:3;top:50%;left:5.5%;transform:translateY(-45%);width:390px;max-height:calc(100dvh - 145px);overflow:auto;scrollbar-width:thin;scrollbar-color:#ffffff40 transparent;padding:0 8px 8px 0}.eyebrow{font-size:12px;letter-spacing:.16em;font-weight:800;color:var(--lime);margin:0 0 15px;display:flex;align-items:center;gap:9px}.eyebrow>span{width:7px;height:7px;border-radius:50%;background:var(--lime)}h1{font:italic 900 clamp(58px,5.8vw,86px)/.88 var(--display);letter-spacing:-.018em;margin:0 0 19px}h1 em{font-style:inherit;color:var(--orange)}.intro{font-size:17px;line-height:1.45;color:#e1e5df;margin:0 0 23px}.setup-panel{padding:20px;background:#10252ce0;backdrop-filter:blur(16px);border:1px solid #ffffff1c;border-radius:13px;box-shadow:0 12px 45px #00000014}.car-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.car-choices legend{font-size:12px;font-weight:700;letter-spacing:.11em;margin-bottom:11px;color:#c6cfd0}.car-choice input,.mode-choices input{position:absolute;opacity:0;width:1px;height:1px}.car-option{position:relative;display:block;overflow:hidden;border:1px solid #ffffff28;border-radius:7px;background:#21373b;cursor:pointer}.car-photo{display:block;height:69px;overflow:hidden;background:#fafafa}.car-photo img{width:100%;height:100%;object-fit:contain;display:block}.car-name{display:block;padding:9px 10px;font-weight:700;font-size:14px;white-space:nowrap}.car-name small{display:block;font-size:12px;margin-top:4px;color:#b8c4c6;font-weight:400}.car-name b{font-size:11px;padding:2px 3px;background:var(--orange);color:var(--ink);border-radius:2px}.choice-check{position:absolute;top:6px;right:6px;color:var(--ink);background:var(--lime);border-radius:50%;width:21px;height:21px;text-align:center;line-height:21px;font-size:14px;display:none}.car-choice input:checked+.car-option{border-color:var(--lime);background:#2e423d}.car-choice input:checked+.car-option .choice-check{display:block}.mode-choices{display:flex;background:#061c23a0;border-radius:6px;padding:4px;margin:13px 0;gap:4px}.mode-choices label{flex:1}.mode-choices span{display:block;text-align:center;padding:9px 3px;border-radius:4px;cursor:pointer;font-size:14px;font-weight:600;white-space:nowrap;color:#b0bdbd}.mode-choices small{font-size:12px;margin-left:3px;opacity:.6}.mode-choices input:checked+span{background:#3f5153;color:white}.primary-button{display:flex;width:100%;align-items:center;justify-content:space-between;border-radius:6px;background:var(--orange);color:#12262b;padding:15px 20px;font:800 23px var(--display);letter-spacing:.035em;box-shadow:0 4px 0 #b3442090;transition:transform .15s,background .15s}.primary-button:hover{background:#ff9566;transform:translateY(-1px)}.primary-button:active{transform:translateY(2px)}.primary-button span{font-size:26px;line-height:1}.personal-best{text-align:center;font-size:12px;color:#b8c4c5;margin:13px 0 0}.scene-caption{position:absolute;right:9%;bottom:19%;display:flex;align-items:center;gap:13px;z-index:2;text-shadow:0 1px 5px #14282eaa}.scene-line{width:48px;height:1px;background:#ffffffe0;transform:rotate(-30deg)}.scene-caption p{font-size:13px;letter-spacing:.12em;font-weight:700}.scene-caption small{display:block;font-size:13px;letter-spacing:0;margin-top:7px;font-weight:400}.start-footer{position:absolute;bottom:24px;left:36px;right:36px;display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#e6ece9b0;gap:16px}.start-footer>span{display:flex;align-items:center;gap:7px}.start-footer i{width:1px;height:14px;background:#ffffff35;margin:0 8px}.start-footer a{text-decoration:none;white-space:nowrap}.start-footer a:hover{color:white}kbd{font:600 11px var(--font);display:inline-block;border:1px solid #ffffff3b;background:#ffffff0d;border-radius:3px;padding:3px 5px;margin-right:3px;white-space:nowrap}
.hud{position:absolute;inset:0;pointer-events:none;z-index:2}.hud-top{position:absolute;top:112px;left:36px;right:36px;display:flex;justify-content:space-between;align-items:flex-start}.timer-box{display:flex;flex-direction:column;padding:15px 20px;border-radius:9px;background:#12272ecd;min-width:205px;border-left:3px solid var(--orange);backdrop-filter:blur(8px)}.hud-label{font-size:12px;letter-spacing:.12em;font-weight:700;color:#cbd4d4}.timer-box>strong{font:italic 800 58px/1.05 var(--display);font-variant-numeric:tabular-nums}.timer-box>strong span{font-size:31px;color:#c0cdca}.timer-box>span:last-child{font-size:11px;margin-top:7px;color:#c1cbca}.timer-box.urgent{border-color:#ff4e45;color:#ff8369}.progress-box{text-align:right;padding:14px 18px;background:#12272eba;backdrop-filter:blur(8px);border-radius:9px}.progress-box>strong{display:block;margin-top:5px;font-size:21px;font-weight:700}.gate-dots{display:flex;justify-content:flex-end;gap:6px;margin-top:13px}.gate-dots span{width:22px;height:4px;border-radius:3px;background:#ffffff35}.gate-dots .done{background:var(--lime)}.gate-dots .active{background:var(--orange)}.direction-indicator{position:absolute;top:27%;left:50%;font:42px/1 Arial;color:var(--orange);text-shadow:0 2px 8px #14282e;transform-origin:50% 50%}.combo{position:absolute;left:50%;top:39%;text-align:center;transform:translateX(-50%) rotate(-4deg);text-shadow:0 2px 4px #0007}.combo>span{display:block;color:var(--lime);font:800 20px var(--display);letter-spacing:.12em}.combo>strong{font:italic 800 48px var(--display)}.hud-bottom{position:absolute;left:36px;right:36px;bottom:27px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.map-panel{width:177px;padding:8px 11px 11px;border:1px solid #ffffff25;background:#132a31ce;backdrop-filter:blur(10px);border-radius:12px}.map-panel canvas{display:block;width:100%;height:auto}.map-panel>span{display:flex;justify-content:space-between;font-size:11px;letter-spacing:.08em;font-weight:700;color:#c7d2d3}.map-panel b{color:var(--orange)}.race-controls{display:flex;flex-direction:column;gap:9px;align-items:center;pointer-events:auto}.desktop-help{font-size:13px;color:#fff;text-shadow:0 1px 4px #12272e}.subtle-button{font-size:13px;padding:9px 13px;border:1px solid #ffffff40;background:#132a3199;backdrop-filter:blur(8px);border-radius:7px}.subtle-button:hover{background:#28454bdd}.telemetry{width:169px;text-shadow:0 2px 6px #10252c}.telemetry>span{font-size:11px;letter-spacing:.12em;font-weight:700}.speed-number{display:flex;gap:13px;align-items:center;justify-content:flex-end}.speed-number>strong{font:italic 800 80px/1 var(--display);font-variant-numeric:tabular-nums}.speed-number>span{font-size:12px;font-weight:600;letter-spacing:.07em;line-height:1.5}.speed-number small{display:block;font-size:10px;opacity:.7}.speed-meter{background:#ffffff42;height:5px;border-radius:4px;margin:5px 0 12px;overflow:hidden}.speed-meter>span{height:100%;width:0;display:block;background:var(--orange)}.score-row{display:flex;justify-content:space-between;font-size:12px;letter-spacing:.08em}.score-row b{font-size:17px;letter-spacing:0;color:var(--lime)}
.overlay{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;padding:24px;background:#10252c92;backdrop-filter:blur(9px);overflow:auto}.overlay-card{padding:32px;border-radius:16px;max-width:100%;background:#142b32;border:1px solid #ffffff24;box-shadow:0 25px 80px #0004}.pause-card{width:390px;text-align:center}.pause-card .eyebrow{justify-content:center}h2{font:italic 900 49px/1 var(--display);letter-spacing:-.01em;margin:12px 0 24px}.secondary-button{width:100%;padding:13px;border-radius:6px;border:1px solid #ffffff45;background:#ffffff0b;margin-top:13px;font-weight:600}.text-button{background:none;color:#bfcdcd;text-decoration:underline;text-underline-offset:4px;padding:13px 8px;font-size:14px}.control-note{font-size:12px;line-height:2.1;color:#b3c3c5;border-top:1px solid #ffffff20;padding-top:18px;margin:10px 0 0}.results-card{padding:0;display:grid;grid-template-columns:1.13fr 1fr;width:720px;overflow:hidden}.result-main{padding:31px;text-align:center}.result-main .eyebrow{justify-content:center}.result-main h2{margin-bottom:10px}.medal{display:flex;align-items:center;justify-content:center;margin:10px auto 0;font-size:35px;width:64px;height:64px;border:2px solid #d6f58199;background:#d6f58118;border-radius:50%;color:var(--lime)}#result-message{font-size:15px;color:#c5d1ce;line-height:1.5}.result-stats{display:grid;grid-template-columns:1.3fr 1fr .7fr;gap:10px;border-top:1px solid #ffffff20;border-bottom:1px solid #ffffff20;padding:18px 0;margin:21px 0 12px}.result-stats span{display:block;font-size:11px;color:#b3c3c3;letter-spacing:.08em}.result-stats strong{display:block;font:700 27px var(--display);margin-top:6px;font-variant-numeric:tabular-nums}.record-message{color:var(--lime);font-size:13px;min-height:17px;margin:10px 0 17px}.result-product{background:var(--paper);color:var(--ink);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px 24px}.product-eyebrow{font-size:11px;letter-spacing:.09em;font-weight:800}.result-product img{display:block;width:100%;height:180px;object-fit:contain;margin:20px 0 5px;border-radius:8px;background:#fff}.result-product h3{font:700 29px var(--display);margin:12px 0 0}.result-product p{font-size:14px;line-height:1.5;margin:8px 0 19px;color:#586565}.shop-button{display:block;width:100%;text-decoration:none;background:var(--ink);color:white;font-size:15px;font-weight:700;padding:14px;border-radius:6px}.shop-button:hover{background:#2e484f}.result-product>small{font-size:12px;color:#697775;margin-top:13px;line-height:1.5}.countdown{position:absolute;inset:0;z-index:6;display:flex;align-items:center;justify-content:center;font:italic 900 150px var(--display);color:var(--lime);text-shadow:0 8px 35px #14282e60;pointer-events:none}.toast{position:absolute;top:33%;left:50%;transform:translateX(-50%);background:#142b32ef;border:1px solid #ffffff25;border-radius:7px;padding:10px 18px;font-size:15px;color:var(--lime);pointer-events:none;z-index:5;max-width:90%;text-align:center}
.touch-controls{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:20px;right:20px;z-index:5;justify-content:space-between;align-items:flex-end;pointer-events:none;display:none;touch-action:none;user-select:none}.touch-controls button{touch-action:none;user-select:none;pointer-events:auto;width:66px;height:66px;border:1px solid #ffffff77;background:#16313dbd;border-radius:15px;font-size:23px;font-weight:700;backdrop-filter:blur(5px)}.touch-controls button.pressed{background:var(--orange);color:var(--ink);transform:scale(.94)}.steer-pad{display:flex;gap:12px}.pedal-pad{display:flex;align-items:flex-end;gap:10px}.pedal-pad .gas-pedal{height:88px;width:74px;background:#ff783edc;color:#132b31;font-size:14px}.pedal-pad .brake-pedal{font-size:12px}.pedal-pad .drift-pedal{font-size:12px;background:#ccea89d9;color:#19313a;width:62px;height:50px;margin-bottom:18px}.loading{position:absolute;inset:0;z-index:15;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--ink);gap:18px}.loading-mark{font:italic 900 62px var(--display)}.loading-mark>span{color:var(--orange)}#loading-message{font-size:15px;color:#c4d0cd;max-width:340px;line-height:1.5;text-align:center;padding:0 15px}.loading-line{height:3px;width:130px;background:linear-gradient(90deg,transparent,var(--orange),transparent);animation:load 1.3s infinite}.no-script{position:absolute;inset:0;z-index:20;background:var(--ink);display:grid;place-items:center;padding:40px;text-align:center}@keyframes load{50%{opacity:.35;transform:scaleX(.55)}}
@media(min-width:1500px){.start-screen{width:440px}.car-photo{height:90px}.car-name{font-size:15px;padding:11px}.mode-choices span{padding:11px 4px}}
@media(max-height:780px) and (min-width:761px){.start-screen{top:92px;transform:none;max-height:calc(100dvh - 138px);width:355px}.start-copy h1{font-size:63px}.intro{font-size:15px;margin-bottom:13px}.eyebrow{margin-bottom:10px}.setup-panel{padding:14px}.car-photo{height:54px}.car-name{padding:7px 9px}.mode-choices{margin:10px 0}.primary-button{padding:11px 17px}.personal-best{margin-top:10px}}
@media(pointer:coarse){.playing .touch-controls{display:flex}.playing .hud-bottom{bottom:145px}.desktop-help,.start-footer>span{display:none}.start-footer:before{content:'Pelaa suoraan kosketusnäytöllä.';font-size:12px}.playing .map-panel{width:130px}.playing .telemetry{width:128px}.playing .speed-number>strong{font-size:55px}}
@media(max-width:760px){.topbar{padding:17px 18px;gap:10px}.brand{gap:9px}.brand-mark{width:39px;height:39px;font-size:28px}.brand strong{font-size:24px}.brand-owner{font-size:10px;letter-spacing:.12em}.track-label{display:none}.top-actions{gap:5px}.icon-button{width:35px;height:35px}.icon-button svg{width:17px;height:17px}#fullscreen{display:none}.start-screen{left:18px;right:18px;top:auto;bottom:57px;transform:none;width:auto;max-height:calc(100dvh - 138px);padding:0;display:flex;flex-direction:column;gap:18px}.start-copy h1{font-size:62px;line-height:.86;margin-bottom:12px}.start-copy .eyebrow{font-size:10px;margin-bottom:10px}.intro{font-size:15px;margin-bottom:0}.setup-panel{padding:15px;max-width:460px;width:100%;align-self:center}.car-photo{height:57px}.car-name{padding:8px 10px}.car-choices legend{font-size:11px;margin-bottom:8px}.mode-choices{margin:11px 0}.primary-button{font-size:23px;padding:12px 18px}.personal-best{margin-top:11px}.vignette{background:linear-gradient(0deg,#0c1e20f2 0%,#0c1e20cc 32%,#0c1e200a 95%)}.scene-caption{display:none!important}.start-footer{left:20px;right:20px;bottom:19px;font-size:11px}.start-footer a{font-size:11px}.start-footer>span{display:none}.start-footer:before{content:'WASD tai kosketusohjaus';font-size:11px}.hud-top{top:82px;left:15px;right:15px;gap:10px}.timer-box{min-width:137px;padding:12px 13px}.timer-box>strong{font-size:43px}.timer-box>strong span{font-size:24px}.hud-label{font-size:10px}.timer-box>span:last-child{font-size:9px;max-width:120px;line-height:1.45}.progress-box{padding:12px}.progress-box>strong{font-size:16px;max-width:155px}.gate-dots{gap:4px;margin-top:10px}.gate-dots span{width:12px}.hud-bottom{left:17px;right:17px;gap:8px;bottom:23px}.map-panel{width:127px;border-radius:9px;padding:5px 7px 7px}.map-panel>span{font-size:9px}.race-controls{position:absolute;left:50%;transform:translateX(-50%);bottom:6px}.subtle-button{font-size:11px;padding:8px 10px;white-space:nowrap}.desktop-help{display:none}.telemetry{width:116px}.telemetry>span{font-size:9px}.speed-number{gap:7px}.speed-number>strong{font-size:54px}.speed-number>span{font-size:10px}.speed-number small{font-size:9px}.score-row{font-size:10px}.score-row b{font-size:14px}.touch-controls{left:15px;right:15px;bottom:max(20px,env(safe-area-inset-bottom))}.touch-controls button{width:55px;height:59px;border-radius:12px}.steer-pad{gap:8px}.pedal-pad{gap:7px}.pedal-pad .gas-pedal{width:59px;height:79px;font-size:12px}.pedal-pad .brake-pedal{width:51px;font-size:10px}.pedal-pad .drift-pedal{width:49px;height:42px;font-size:10px;margin-bottom:12px}.playing .hud-bottom{bottom:122px}.playing .map-panel{width:115px}.playing .telemetry{width:111px}.direction-indicator{top:30%;font-size:36px}.combo{top:43%}.combo>strong{font-size:39px}.combo>span{font-size:16px}.toast{top:35%;font-size:13px;width:max-content;max-width:90%}.overlay{padding:16px}.overlay-card{padding:23px}.results-card{display:block;padding:0;width:380px;max-height:calc(100dvh - 32px);overflow:auto}.result-main{padding:23px 23px 9px}.result-main h2{font-size:43px}.result-main .eyebrow{font-size:10px}.result-stats{margin:14px 0 8px;padding:13px 0}.result-stats strong{font-size:24px}.medal{width:46px;height:46px;font-size:26px}.result-product{padding:21px}.result-product img{height:130px;margin:12px 0 0}.result-product h3{font-size:25px;margin:8px 0 0}.result-product p{margin:5px 0 12px}.result-product>small{font-size:11px}.record-message{margin:10px 0 13px}.countdown{font-size:112px}}
@media(max-width:760px) and (max-height:740px){.start-screen{gap:12px;bottom:47px}.start-copy h1{font-size:49px}.intro{display:none}.car-photo{height:47px}.setup-panel{padding:12px}.mode-choices{margin:9px 0}.personal-best{margin-top:9px}.start-footer{bottom:14px}}
@media(max-height:510px) and (orientation:landscape){.topbar{padding:12px 18px}.brand-mark{width:34px;height:34px;font-size:26px}.brand strong{font-size:23px}.brand-owner{font-size:9px}.track-label{display:none}.start-screen{left:24px;right:auto;top:75px;bottom:24px;transform:none;width:calc(100% - 48px);max-height:none;display:grid;grid-template-columns:1fr 300px;gap:20px;align-items:center}.start-copy h1{font-size:59px}.start-copy .eyebrow{font-size:10px}.intro{font-size:14px}.setup-panel{padding:12px}.car-photo{height:42px}.car-name{font-size:12px;padding:6px 8px}.car-name small{font-size:10px}.mode-choices{margin:8px 0}.mode-choices span{font-size:12px;padding:7px 2px}.primary-button{padding:9px 14px;font-size:20px}.personal-best{font-size:10px;margin-top:8px}.start-footer,.scene-caption{display:none!important}.hud-top{top:69px}.timer-box{min-width:130px;padding:9px 12px}.timer-box>strong{font-size:36px}.timer-box>span:last-child{display:none}.progress-box{padding:10px 12px}.progress-box>strong{font-size:15px}.gate-dots{margin-top:8px}.hud-bottom,.playing .hud-bottom{bottom:90px}.map-panel,.playing .map-panel{width:95px}.telemetry,.playing .telemetry{width:105px}.speed-number>strong,.playing .speed-number>strong{font-size:40px}.touch-controls{bottom:12px}.touch-controls button{height:51px}.pedal-pad .gas-pedal{height:64px}.results-card{display:grid;grid-template-columns:1.1fr 1fr;width:660px;max-height:calc(100dvh - 24px);overflow:auto}.result-main{padding:19px}.result-main h2{font-size:35px;margin:6px 0}.medal{display:none}.result-stats{padding:10px 0;margin:12px 0 8px}.result-product{padding:19px}.result-product img{height:110px}.result-product p{font-size:12px}.record-message{margin:8px 0}.result-product h3{font-size:22px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Keep small-screen controls and metadata legible. */
.brand-owner,.track-sub,.car-choices legend,.car-name small,.personal-best,.product-eyebrow,.result-stats span,.telemetry>span,.speed-number>span,.speed-number small,.score-row,.map-panel>span,.hud-label,.timer-box>span:last-child,.result-product>small,.pedal-pad .brake-pedal,.pedal-pad .drift-pedal,kbd{font-size:12px}.car-name b{font-size:12px}.start-copy .eyebrow{font-size:12px}.start-footer,.start-footer a,.start-footer:before{font-size:12px}.subtle-button{font-size:13px}
@media(max-width:380px){.topbar{padding-left:13px;padding-right:13px}.brand-owner{letter-spacing:.03em}.brand{gap:7px}.top-actions{gap:4px}.car-name{font-size:13px}.hud-top{left:12px;right:12px}.progress-box{padding:10px}.gate-dots span{width:10px}.progress-box>strong{font-size:14px;max-width:135px}.timer-box{min-width:129px;padding:10px}.hud-label{font-size:12px}.timer-box>span:last-child{display:none}.race-controls{bottom:0}.subtle-button{font-size:12px;padding:7px}.map-panel>span{font-size:12px;flex-wrap:wrap;gap:4px}.playing .telemetry{width:98px}.telemetry>span{font-size:12px;letter-spacing:0}.score-row{font-size:12px}.start-footer:before{max-width:112px}.start-footer a{max-width:162px;white-space:normal;text-align:right}.touch-controls{left:10px;right:10px}.touch-controls button{width:48px}.steer-pad{gap:6px}.pedal-pad{gap:6px}.pedal-pad .gas-pedal{width:54px}.pedal-pad .brake-pedal{width:48px}.pedal-pad .drift-pedal{width:48px}}

/* Olohuone Cup: progression, live racing and results. */
.cup-selected .start-copy h1{font-size:clamp(58px,5.3vw,76px);margin-bottom:14px}
.cup-selected .intro{margin-bottom:16px}
.cup-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.cup-choice input,.paint-choice input{position:absolute;opacity:0;width:1px;height:1px}
.cup-choice>span{display:flex;min-height:62px;flex-direction:column;justify-content:center;gap:5px;padding:9px 7px;border:1px solid #ffffff25;border-radius:6px;background:#ffffff05;cursor:pointer}
.cup-choice b{font:700 19px var(--display);color:var(--cup-color)}
.cup-choice small{font-size:12px;line-height:1.2;color:#b9c9c9}
.cup-choice input:checked+span{border-color:var(--cup-color);background:#ffffff10;box-shadow:inset 0 -2px var(--cup-color)}
.cup-choice input:disabled+span{opacity:.5;cursor:not-allowed}
.cup-description{font-size:13px;line-height:1.35;color:#c4d2d0;margin:9px 0 13px}
.paint-choices{margin:12px 0 16px}
.paint-choices legend{font-size:12px;letter-spacing:.07em;color:#c2cfcd;margin-bottom:9px;width:100%}
.paint-choices legend span{float:right;letter-spacing:0;color:#f0f4ed}
#paint-options{display:flex;gap:12px}
.paint-choice>span{display:grid;place-items:center;width:32px;height:32px;background:var(--paint-color);border-radius:50%;border:4px solid #142b32;box-shadow:0 0 0 1px #ffffff33;cursor:pointer;color:#142b32;font-weight:800}
.paint-choice input:checked+span{box-shadow:0 0 0 2px var(--lime)}
.paint-choice input:disabled+span{opacity:.4;cursor:not-allowed}
.challenge-banner{display:flex;align-items:center;gap:8px;background:#d6f58110;border-left:2px solid var(--lime);padding:8px 10px;margin-bottom:12px;font-size:13px;line-height:1.4}
.challenge-banner .text-button{margin-left:auto;text-decoration:none;padding:6px}
.cup-hud{position:absolute;top:112px;left:50%;transform:translateX(-50%);min-width:212px;text-align:center;border-radius:9px;background:#12272ee0;backdrop-filter:blur(8px);padding:13px 20px 10px}
.cup-status{display:flex;justify-content:center;gap:24px}
.cup-status>div+div{border-left:1px solid #ffffff25;padding-left:24px}
.cup-status span{display:block;color:#cbd4d4;font-size:12px;letter-spacing:.12em;font-weight:700}
.cup-status strong{font:italic 800 43px/1.15 var(--display);color:var(--lime);font-variant-numeric:tabular-nums}
.cup-status small{font:700 20px var(--display);color:#b8c9c7}
#race-gap{font-size:12px;color:#cbd4d4;margin:5px 0 0}
.live-standings{position:absolute;top:280px;left:36px;list-style:none;margin:0;padding:10px 12px;width:205px;background:#12272ed6;backdrop-filter:blur(8px);border-radius:9px}
.live-standings li{display:flex;gap:9px;align-items:center;padding:7px 5px;font-size:14px;color:#cad5d5}
.live-standings li+li{border-top:1px solid #ffffff16}
.live-standings b{font:700 19px var(--display);min-width:12px}
.live-standings i{width:7px;height:7px;border-radius:50%;background:var(--driver);flex:none}
.live-standings small{font-size:12px;margin-left:auto;color:#9cafb0}
.live-standings .is-player{color:var(--lime);font-weight:700}
.cup-selected.playing .direction-indicator{top:255px}
.results-card{max-height:calc(100dvh - 48px);overflow:auto;scrollbar-width:thin;scrollbar-color:#ffffff40 transparent}
.cup-results{margin:10px 0 16px;text-align:left}
.cup-results>p{font-size:12px;color:#b7c8c8;margin:0 0 9px}
.cup-results table{border-collapse:collapse;width:100%;font-size:13px;font-variant-numeric:tabular-nums}
.cup-results th{color:#9fb6b7;text-align:left;font-size:12px;font-weight:500;padding:0 6px 7px}
.cup-results td{padding:8px 6px;border-top:1px solid #ffffff18}
.cup-results th:last-child,.cup-results td:last-child{text-align:right}
.cup-results .is-player{color:var(--lime);background:#d6f58109;font-weight:700}
.unlock-banner{border:1px solid #d6f58150;background:#d6f58112;color:var(--lime);font-size:13px;line-height:1.4;padding:12px;margin:0 0 12px;border-radius:6px}
#next-cup{margin:0 0 12px;border-color:#d6f58170;color:var(--lime)}
.share-status{font-size:12px;line-height:1.4;color:#bfcecc;margin:9px 0 0}
.share-status:empty{display:none}
.share-fallback{text-align:left;margin-top:12px}
.share-fallback label{display:block;font-size:12px;color:#c5d4d0;margin-bottom:6px}
.share-fallback input{width:100%;padding:10px;border:1px solid #ffffff40;border-radius:5px;background:#0c2027;color:white;font-size:13px}
@media(min-width:761px){.cup-selected .start-screen{top:105px;transform:none;max-height:calc(100dvh - 155px)}}
@media(max-height:900px){.cup-selected .start-copy h1{font-size:58px}.cup-selected .intro{font-size:15px;margin-bottom:12px}.cup-selected .car-photo{height:54px}.cup-selected .setup-panel{padding:15px}}
@media(max-width:1100px) and (min-width:761px){.cup-hud{min-width:184px;padding:12px}.cup-status{gap:15px}.cup-status>div+div{padding-left:15px}.timer-box{max-width:235px}.timer-box>span:last-child{line-height:1.35}}
@media(max-width:760px){
 .cup-selected .start-screen{gap:12px}.cup-selected .start-copy h1{font-size:49px}.cup-selected .intro{display:none}
 .cup-selected .car-photo{height:47px}.cup-selected .setup-panel{padding:13px}.cup-choice>span{min-height:59px}
 .cup-hud{top:220px;min-width:186px;padding:9px 14px}.cup-status{gap:18px}.cup-status>div+div{padding-left:18px}.cup-status strong{font-size:33px}.cup-status small{font-size:18px}
 .live-standings{display:none}.cup-selected.playing .direction-indicator{top:327px;font-size:32px}.cup-selected.playing .toast{top:375px}
 .results-card{max-height:calc(100dvh - 32px)}
}
@media(max-height:600px){.cup-selected .start-copy{display:none}.cup-selected .start-screen{display:block}.cup-selected .paint-choices{margin:10px 0 13px}.cup-selected .car-photo{height:42px}.cup-selected .personal-best{margin-top:10px}}
@media(max-height:600px) and (orientation:landscape){.cup-hud{top:69px;padding:8px 14px;min-width:175px}.cup-status strong{font-size:29px}.cup-status{gap:16px}.cup-status>div+div{padding-left:16px}.live-standings{display:none}.cup-selected.playing .direction-indicator{top:175px}.cup-selected.playing .toast{top:218px}.cup-selected .start-screen{top:69px;max-height:calc(100dvh - 84px)}.cup-selected .setup-panel{margin-left:auto}.results-card{max-height:calc(100dvh - 24px)}}

/* Drift Hall and two-thumb driving. */
.start-screen{top:101px;transform:none;max-height:calc(100dvh - 149px)}
.start-copy h1,.cup-selected .start-copy h1{font-size:58px;margin-bottom:13px}
.start-copy .intro{font-size:15px;margin-bottom:15px}
.car-photo,.cup-selected .car-photo{height:55px}
.mode-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:12px 0}
.mode-choices span{padding:10px 3px;font-size:14px}
.mode-choices input:checked+span{background:#4a5d59;color:var(--lime)}
.cup-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
.cup-choice>span{min-height:64px}
.cup-choice:nth-last-child(-n+2)>span{background:#ffffff0b}
.drift-formats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.drift-formats input{position:absolute;opacity:0;width:1px;height:1px}
.drift-formats span{display:block;border:1px solid #ffffff35;padding:9px 5px;text-align:center;border-radius:5px;font-size:13px;cursor:pointer}
.drift-formats input:checked+span{border-color:var(--orange);color:#ffc9a9;background:#ff783e12}
.drift-instruction{font-size:14px;line-height:1.4;color:#cbd7d3;margin:11px 0}
.drift-targets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:9px 0;border-top:1px solid #ffffff20;border-bottom:1px solid #ffffff20}
.drift-targets>span{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#c7d2cf;text-align:center}
.drift-targets b{font-size:14px;color:var(--target-color)}
.toggle-option{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;cursor:pointer;line-height:1.3}
.toggle-option input{accent-color:var(--lime);width:19px;height:19px;flex-shrink:0;margin:0}
.toggle-option input:focus-visible{outline:3px solid var(--lime);outline-offset:3px}
.toggle-option small{display:block;font-size:12px;color:#b9cbc9;margin-top:3px}
.auto-drift-option{margin:10px 0 3px}
.pause-auto-drift{justify-content:center;text-align:left;margin-top:12px}
#ghost-option{margin-top:7px;color:#c3d7e8}
.paint-choices{margin-top:10px}
#paint-options{gap:11px}
.drift-hud{position:absolute;top:112px;left:50%;transform:translateX(-50%);width:228px;text-align:center;padding:14px 20px;border-radius:9px;background:#12272ee0;backdrop-filter:blur(8px)}
.drift-hud>strong{display:block;font:italic 800 47px/1.15 var(--display);color:var(--lime);font-variant-numeric:tabular-nums}
.drift-meter{height:4px;background:#ffffff25;border-radius:4px;overflow:hidden;margin:7px 0 8px}
.drift-meter>span{display:block;width:0;height:100%;background:var(--lime)}
#drift-target-label{font-size:12px;color:#d2ddda}
.drift-live{position:absolute;top:266px;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(3,1fr);gap:4px 17px;padding:12px 17px;text-align:center;border-radius:8px;background:#12272ecf;backdrop-filter:blur(8px);min-width:248px}
.drift-live>div>span{font-size:12px;color:#bdcece;letter-spacing:.05em}
.drift-live strong{display:block;font:700 27px var(--display);font-variant-numeric:tabular-nums}
#drift-feedback{grid-column:1/-1;margin:4px 0 0;color:var(--lime);font-size:12px;letter-spacing:.05em;font-weight:700;min-height:15px}
.drift-live.perfect{background:#344832eb;box-shadow:0 0 22px #d6f58125}
.drift-selected.playing .direction-indicator{top:380px;font-size:31px}
.drift-selected.playing .toast{top:425px}
.drift-selected .telemetry .score-row{display:none}
.touch-drift-status{position:absolute;left:50%;top:-31px;transform:translateX(-50%);font-size:12px;font-weight:700;letter-spacing:.07em;color:var(--lime);white-space:nowrap;text-shadow:0 1px 5px #14282e}
.auto-drift .drift-pedal{display:none}
.touch-device.playing .touch-controls{display:flex}
.touch-device .desktop-help{display:none}
.touch-device.playing .hud-bottom{bottom:137px}
.auto-drift.touch-device .touch-controls button{width:63px;height:65px}
.auto-drift.touch-device .pedal-pad .gas-pedal{height:84px;width:70px}
.drift-results{margin:12px 0 16px;text-align:left}
.drift-results table{border-collapse:collapse;width:100%;font-size:14px;font-variant-numeric:tabular-nums}
.drift-results th{color:#adc3c3;font-size:12px;font-weight:500;padding:5px 7px;text-align:left}
.drift-results td{padding:10px 7px;border-top:1px solid #ffffff20}
.drift-results th:nth-child(2),.drift-results td:nth-child(2){text-align:right}
.drift-results th:last-child,.drift-results td:last-child{text-align:right}
.drift-results .is-best{background:#d6f5810e;color:var(--lime);font-weight:700}
#next-attempt{margin:0 0 10px;font-size:23px}
.drift-selected .result-stats{grid-template-columns:1fr 1fr 1.2fr}
.drift-selected .result-stats strong{font-size:25px}
@media(max-height:850px){.start-copy{display:none}.start-screen,.cup-selected .start-screen{top:96px;max-height:calc(100dvh - 140px)}.setup-panel{padding:14px}}
@media(max-width:760px){
 .start-screen,.cup-selected .start-screen{left:16px;right:16px;top:84px;bottom:auto;width:auto;max-height:calc(100dvh - 136px);display:block}.start-copy{display:none}
 .setup-panel{max-width:430px;margin:auto;padding:13px}.car-photo,.cup-selected .car-photo{height:47px}.mode-choices{margin:10px 0}
 .drift-hud{top:82px;left:15px;transform:none;width:calc(50% - 21px);padding:12px 10px}.drift-hud>strong{font-size:39px}
 .drift-selected .hud-top .timer-box{position:absolute;top:120px;left:0;min-width:0;width:calc(50% - 6px);padding:7px 10px}.drift-selected .timer-box>strong{font-size:27px}.drift-selected .timer-box>strong span{font-size:18px}.drift-selected #best-hud{display:none}
 .drift-selected .progress-box{margin-left:auto;max-width:calc(50% - 6px)}.drift-selected .gate-dots{gap:3px}.drift-selected .gate-dots span{width:8px}
 .drift-live{top:183px;left:auto;right:15px;transform:none;width:calc(50% - 21px);min-width:0;padding:10px 6px;gap:4px}.drift-live>div>span{letter-spacing:0}.drift-live strong{font-size:23px}#drift-feedback{letter-spacing:0;line-height:1.3;min-height:30px}
 .drift-selected.playing .direction-indicator{top:296px}.drift-selected.playing .toast{top:336px}
 .touch-device.playing .hud-bottom{bottom:128px}.auto-drift.touch-device .touch-controls button{width:56px;height:63px}.auto-drift.touch-device .pedal-pad .gas-pedal{width:65px;height:80px}
 .start-footer:before{content:'WASD tai kosketusohjaus'}
}
@media(max-width:380px){.auto-drift.touch-device .touch-controls button{width:54px}.auto-drift.touch-device .pedal-pad .gas-pedal{width:59px}.drift-formats span{font-size:12px}.drift-instruction{font-size:14px}.drift-hud{left:12px;width:calc(50% - 18px)}.drift-live{right:12px;width:calc(50% - 18px)}.cup-choice small{font-size:12px}.car-name small{font-size:12px}}
@media(max-height:600px) and (orientation:landscape){
 .start-screen,.cup-selected .start-screen{top:72px;max-height:calc(100dvh - 87px);width:360px;left:22px;right:auto}.setup-panel{margin:0;max-width:none}.drift-hud{top:68px;left:50%;transform:translateX(-50%);width:185px;padding:8px 12px}.drift-hud>strong{font-size:31px}.drift-meter{margin:4px 0}.drift-selected .hud-top .timer-box{position:static;min-width:130px;width:auto}.drift-live{top:166px;left:50%;right:auto;transform:translateX(-50%);width:200px;padding:8px;gap:3px}.drift-live strong{font-size:21px}#drift-feedback{min-height:15px}.drift-selected .hud-top{top:69px}.drift-selected .progress-box{max-width:180px}.drift-selected.playing .direction-indicator{top:255px}.drift-selected.playing .toast{top:285px}.touch-device.playing .hud-bottom{bottom:96px}.touch-device.playing .map-panel{width:95px}.touch-drift-status{display:none!important}
}

/* Natural drifting and a two-thumb boost pedal. */
.handling-note{margin:12px 0 6px;border-left:2px solid #72d9ef;padding:3px 0 3px 12px}
.handling-note>b{font-size:13px;letter-spacing:.08em;color:#8beaff}
.handling-note p{font-size:14px;line-height:1.5;margin:4px 0;color:#d0dedd}
.nitro-hud{margin:8px 0 11px;color:#92eafa;text-shadow:none}
.nitro-hud>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:4px;font-size:13px;line-height:1.4}
.nitro-hud b{font-weight:700;letter-spacing:.05em}.nitro-hud kbd{font-size:12px;margin-left:3px;padding:1px 3px}
.nitro-hud small{display:block;font-size:12px;line-height:1.3;color:#c2dfe3;min-height:16px}
.nitro-meter{height:7px;border-radius:3px;background:#102f3ecc;overflow:hidden;margin:5px 0}
.nitro-meter>span{display:block;height:100%;width:100%;background:#82e4f8;box-shadow:0 0 9px #7adef1}
.nitro-hud.charging .nitro-meter>span{background:var(--lime)}
.boosting .speed-number>strong{color:#8feeff;text-shadow:0 0 18px #61dfff88}.boosting .speed-meter>span{background:#8feeff}
.boosting #nitro-hint{color:#8feeff}
.touch-device .nitro-hud kbd{display:none}
.touch-controls .pedal-pad{display:grid;grid-template-columns:54px 66px;grid-template-rows:46px 72px;gap:7px;align-items:end}
.touch-controls .pedal-pad .nitro-pedal{grid-column:2;grid-row:1;width:66px;height:46px;border-color:#a0f2ff;background:#5dd8eddd;color:#103847;font-size:14px;line-height:1.1}
.nitro-pedal>span{display:block;font-size:12px;margin-top:3px;letter-spacing:.05em}.nitro-pedal.empty{background:#31596bd9!important;color:#a7c5ce!important;border-color:#7b9ba9!important}
.touch-controls .pedal-pad .brake-pedal{grid-column:1;grid-row:2;width:54px;height:58px;font-size:12px}
.touch-controls .pedal-pad .gas-pedal{grid-column:2;grid-row:2;width:66px;height:72px;font-size:14px}
.touch-controls .steer-pad button{width:60px;height:65px}
.touch-device.playing .hud-bottom{bottom:157px}
@media(pointer:coarse){.nitro-hud kbd{display:none}.playing .hud-bottom{bottom:157px}}
@media(max-width:760px){.nitro-hud{margin:6px 0 4px}.nitro-hud kbd{display:none}.nitro-hud>div:first-child{font-size:12px}.nitro-hud small{font-size:12px}.playing .telemetry{width:118px}.touch-controls .steer-pad button{width:54px;height:63px}.touch-device.playing .hud-bottom{bottom:156px}.playing .map-panel{width:105px}.touch-device .race-controls{bottom:-18px}}
@media(max-width:380px){.touch-controls .pedal-pad{grid-template-columns:49px 58px;grid-template-rows:44px 64px;gap:6px}.touch-controls .pedal-pad .nitro-pedal{width:58px;height:44px}.touch-controls .pedal-pad .gas-pedal{width:58px;height:64px}.touch-controls .pedal-pad .brake-pedal{width:49px;height:54px}.touch-controls .steer-pad button{width:51px;height:59px}.playing .telemetry{width:109px}}
@media(max-height:600px) and (orientation:landscape){.touch-controls .pedal-pad{grid-template-rows:40px 56px;gap:5px}.touch-controls .pedal-pad .nitro-pedal{height:40px}.touch-controls .pedal-pad .gas-pedal{height:56px}.touch-controls .pedal-pad .brake-pedal{height:49px}.touch-device.playing .hud-bottom{bottom:120px}.nitro-hud{margin:4px 0}.nitro-hud small{display:none}.touch-device .race-controls{bottom:-22px}}

/* Flow hall: skill progress stays with the minimap, clear of the driving view. */
.skill-panel{border-top:1px solid #ffffff25;margin-top:10px;padding-top:10px}
.skill-panel summary{font-size:14px;cursor:pointer;color:#dce9e5;line-height:1.5}
.skill-panel summary>span{float:right;color:var(--lime);font-variant-numeric:tabular-nums}
.skill-list{list-style:none;padding:0;margin:12px 0 0}
.skill-list li{display:flex;align-items:flex-start;gap:10px;border-top:1px solid #ffffff15;padding:10px 0;font-size:14px;line-height:1.4}
.skill-list li:first-child{border-top:0;padding-top:0}
.skill-check{width:20px;flex-shrink:0;color:#bdd3d3;font-size:18px}
.skill-list b{display:block;font-weight:600}.skill-list small{display:block;color:#c3d3d0;font-size:12px;margin-top:2px;font-variant-numeric:tabular-nums}
.skill-list p{font-size:14px;color:#becfce;margin:5px 0 0}.skill-list .done,.skill-list .done .skill-check{color:var(--lime)}
.skill-list .done p{display:none}
.drift-course-note{font-size:12px;line-height:1.4;margin:9px 0 0;color:#b6cccd}
.skill-results{margin:16px 0;text-align:left;border-top:1px solid #ffffff25;padding-top:12px}
.skill-results>p{font-size:12px;letter-spacing:.06em;color:#b6cccd;margin:0}.skill-results .skill-list p{display:none}
.skill-hud{border-top:1px solid #ffffff25;margin-top:8px;padding:8px 3px 2px;text-align:left;line-height:1.35}
.skill-hud>span{font-size:12px;color:#b9cfcd;letter-spacing:.05em}
.skill-hud strong{display:block;font-size:14px;color:#fff;line-height:1.3;margin:3px 0 5px;font-weight:600}
.skill-hud small{display:block;font-size:12px;color:#d8e5df;font-variant-numeric:tabular-nums}
.skill-meter{height:4px;background:#ffffff28;border-radius:3px;overflow:hidden;margin-bottom:4px}
.skill-meter>span{display:block;width:0;height:100%;background:var(--lime)}
.skill-hud.complete strong,.skill-hud.complete small{color:var(--lime)}
#drift-transition{grid-column:1/-1;color:#bcd3d5;font-size:12px;line-height:1.3;min-height:16px;margin:1px 0 0;font-variant-numeric:tabular-nums}
.drift-live.transition #drift-transition{color:#ffc993}
.drift-selected.playing .direction-indicator{top:402px}.drift-selected.playing .toast{top:445px}
@media(max-width:760px){
 .drift-selected.playing .map-panel{width:145px}
 .drift-selected .map-panel canvas{width:100%;height:72px;object-fit:contain}
 .drift-selected.playing .direction-indicator{top:326px}.drift-selected.playing .toast{top:366px}
 .skill-hud{margin-top:5px;padding-top:5px}.skill-hud strong{margin:2px 0 4px}.skill-list li{padding:9px 0}
}
@media(max-height:650px) and (orientation:portrait){.drift-selected .map-panel canvas,.drift-selected .map-panel>span{display:none}.drift-selected .skill-hud{border-top:0;margin-top:0}}
@media(max-height:600px) and (orientation:landscape){
 .drift-selected.playing .map-panel{width:156px}.drift-selected .map-panel canvas,.drift-selected .map-panel>span{display:none}
 .drift-selected .skill-hud{border-top:0;margin-top:0;padding-top:3px}.skill-hud>span{letter-spacing:0}
 .drift-selected.playing .direction-indicator{top:277px}.drift-selected.playing .toast{top:310px}
}
/* The garage stays folded during setup; driving HUDs remain unobstructed. */
.garage{margin:10px 0 14px;border:1px solid #68818466;border-radius:8px;background:#10272c}
.garage>summary{padding:14px;font-weight:700;cursor:pointer;color:#d6f581}
.garage[open]{padding:0 12px 12px}.garage[open]>summary{padding-left:0}
.garage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0;border:0;padding:0}
.garage-choice{min-width:0;position:relative;cursor:pointer}.garage-choice input{position:absolute;opacity:0;inset:0;pointer-events:none}
.garage-choice>span{display:flex;flex-direction:column;overflow:hidden;border:1px solid #68818466;border-radius:6px;background:#213a40;height:100%}
.garage-choice img{width:100%;height:68px;object-fit:contain;background:#f5f4ef}.garage-choice b{font-size:11px;padding:5px 4px 0}.garage-choice small{font-size:10px;padding:1px 4px 5px;color:#bfcdcf}
.garage-choice input:checked+span{border-color:#d6f581;box-shadow:0 0 0 1px #d6f581}.garage-choice input:focus-visible+span{outline:3px solid #ff7b37;outline-offset:2px}
.garage-preview{display:grid;grid-template-columns:40% 1fr;gap:12px;margin-top:14px;align-items:center}.garage-preview>img{width:100%;height:150px;object-fit:contain;background:#f5f4ef;border-radius:6px}
.garage-preview h3{font-size:18px;margin:0 0 4px}.garage-preview p{font-size:12px;margin:0 0 10px;color:#bfcdcf}.garage-preview small{font-size:11px;color:#d6f581}
.garage-stats>div{display:grid;grid-template-columns:65px 1fr 26px;align-items:center;gap:5px;font-size:11px;margin:5px 0}.garage-stats meter{width:100%;height:9px;accent-color:#d6f581}.garage-stats b{text-align:right;font-size:11px}
#garage-lock{font-size:12px;color:#d6f581;margin:12px 0 8px}.garage-note{display:block;font-size:10px;color:#9cb2b6;margin-top:9px}.garage button:disabled{opacity:.45;cursor:default}
.cup-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.cup-choice small{font-size:10px;line-height:1.3}#house-route:disabled{opacity:1;color:#d6f581;cursor:default}
@media(max-width:420px){.garage-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.garage-preview{grid-template-columns:32% 1fr;gap:8px}.garage-preview>img{height:130px}.garage-stats>div{grid-template-columns:60px 1fr 23px}}
