:root{--accent:#78edca;--muted:#afc6d1;--bg:#08131f}body{background:radial-gradient(ellipse at top,#204b58,#08131f 65%)}#app{position:relative;width:min(100%,480px);padding:0;margin:12px auto}.race-wrap{width:100%;min-width:0;aspect-ratio:480/740;border-radius:28px}.topbar{position:absolute;z-index:5;top:16px;left:18px;right:18px;padding:0;margin:0}.brand-mark{background:linear-gradient(145deg,#8bffda,#40aacb);width:32px;height:36px;border-radius:9px;font-size:24px}.brand{gap:8px}.eyebrow{font-size:8px;color:#d5eff0}.brand h1{font-size:18px;color:#fff;text-shadow:0 2px 12px #052435}.icon{background:#0b263caa;backdrop-filter:blur(12px);border-color:#ffffff30;width:34px;height:34px;border-radius:11px}.overlay{padding:18px;background:#06172480;z-index:3}.panel{border-radius:22px;background:linear-gradient(145deg,#163b4df5,#081b2ef5)}body[data-screen=menu] .overlay{padding:0;background:linear-gradient(180deg,#061a2a55,transparent 38%,#051725 92%),url(assets/art/menu.webp)50%/cover no-repeat}.menu-panel{position:relative;max-width:none;min-height:100%;margin:0!important;padding:88px 22px 20px!important;display:flex;flex-direction:column;border:0;border-radius:0!important;background:0 0;box-shadow:none}.panel-top{font-size:10px}.tag{color:#92f5d5}.live-dot{color:#dfedf4}.menu-panel h2{font-size:38px!important;line-height:1.4;margin:12px 0 4px;text-shadow:0 3px 20px #041a35}.menu-panel h2 em{color:#98ffdc}.menu-panel>.subtitle{color:#eff9ff;text-shadow:0 1px 8px #03253b;font-size:12px}.menu-bottom{margin-top:auto;padding-top:140px}.mode-tabs{background:#071e30d9;backdrop-filter:blur(15px);border:1px solid #ffffff24;padding:5px;border-radius:16px}.mode-tabs button{min-height:48px;border-radius:11px}.mode-tabs button[aria-pressed=true]{background:linear-gradient(130deg,#9df6d3,#63cbd2);color:#073331}.mode-tabs button[aria-pressed=true] small{color:#215956}.mode-info{padding:5px 4px}.mode-info small{display:none}.mode-info strong{font-size:24px}.garage-drawer{border:1px solid #ffffff24;border-radius:12px;background:#0a2335d9;margin:5px 0 10px;backdrop-filter:blur(15px)}.garage-drawer summary{padding:9px 12px;cursor:pointer;font-size:11px;list-style:none;display:flex;justify-content:space-between;color:#d8eeee}.garage-drawer summary span{color:var(--accent)}.garage{padding:8px 12px!important;margin:0!important;border-bottom:0}.garage-preview{width:85px}#garage-car{width:85px;height:90px}.model-options button{min-height:28px}.paints button{width:22px;height:22px}.touch-guide{margin:6px 2px;font-size:9px}.primary{background:linear-gradient(100deg,#8cf5cb,#58cad8);min-height:50px;border-radius:14px;color:#063e3c;box-shadow:0 8px 24px #001e2b55;font-size:15px}.fine-print{color:#b3cbd7;font-size:8px}.stage-info{background:#082335d9;padding:1px 8px;border-radius:12px;margin-top:5px}.stage-grid button{min-height:42px}.race-hud{background:linear-gradient(#04192955,transparent 180px)}.hud-top{padding:72px 18px 6px;background:0 0}.route-box{max-width:135px}.score-box strong{font-size:30px}.route-track{margin:0 18px}.instrument{top:70px;bottom:auto;left:50%;transform:translateX(-50%);text-align:center}.instrument>span{display:none}.instrument b{font-size:36px}.instrument>div{justify-content:center;gap:3px}.speed-track{width:70px;margin:5px auto 0}.boost-light{bottom:24px;left:50%;right:auto;transform:translateX(-50%);white-space:nowrap;display:block;text-align:center}.boost-light small,.boost-dot{display:none}.boost-light b{font-size:9px}.toast{top:23%}.drive-controls{position:absolute;inset:auto 14px 22px;width:auto;margin:0;display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none;z-index:2;gap:8px}.drive-controls button{pointer-events:auto;width:58px!important;height:58px;min-height:44px;background:linear-gradient(145deg,#163a50e8,#081c30e8);border:1px solid #b2e7ff60;box-shadow:0 5px 16px #00152270,inset 0 1px #ffffff20;border-radius:17px!important;display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:2px!important;touch-action:none}.drive-controls svg{width:30px;height:30px}.drive-controls span{font-size:10px}.steering{display:grid;grid-template-columns:58px 58px;gap:8px}.drive-controls #horn{grid-column:1/3;width:54px!important;height:48px;justify-self:center;border-color:#ffce6460}.drive-controls #horn svg{width:23px;height:23px}.drive-controls #horn span{font-size:8px}.pedals{display:flex;align-items:flex-end;gap:8px}.drive-controls #throttle{height:86px;border-color:#7af1c780}.drive-controls #brake{height:67px;border-color:#ff857d80}.drive-controls button:active{transform:translateY(2px);background:#21516c}.drive-controls #throttle[aria-pressed=true]{background:#247a69;box-shadow:0 0 25px #68fbd95a;color:#fff}.drive-controls #brake[aria-pressed=true]{background:#863d4b;color:#fff}body:not([data-screen=playing]) .drive-controls{display:none}body[data-screen=menu] #pause{display:none}.underbar{padding:0 10px}.help{padding:12px 14px;margin:0}.help summary{min-height:28px}.result-panel{backdrop-filter:blur(20px)}@media(max-width:500px){#app{margin:0;width:100%}.race-wrap{border-radius:0;border:0;min-height:640px;height:100svh;aspect-ratio:auto;max-height:900px}.topbar{top:max(14px,env(safe-area-inset-top))}.drive-controls{bottom:max(22px,env(safe-area-inset-bottom))}.menu-panel{padding-bottom:20px!important}}@media(max-width:360px){.drive-controls{left:10px;right:10px}.steering{grid-template-columns:52px 52px;gap:6px}.drive-controls button{width:52px!important}.menu-panel{padding-left:16px!important;padding-right:16px!important}.menu-panel h2{font-size:32px!important}.route-box{max-width:108px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}