:root{--ink:#fffdf6;--ink-soft:#fffdf6bd;--glass:#14261e9e;--glass-strong:#12221be6;--line:#ffffff24;--hover:#ffffff1a;--accent:#e8452f;--accent-deep:#a82c1c;--gold:#ffd34d;--gold-deep:#c99a12;--mint:#8fd16a;--sky:#a9d2ec;--radius:18px;--radius-sm:12px;--font:ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Rounded", system-ui, -apple-system, sans-serif;--safe-l:max(16px, env(safe-area-inset-left,0px));--safe-r:max(16px, env(safe-area-inset-right,0px));--safe-t:max(12px, env(safe-area-inset-top,0px));--safe-b:max(12px, env(safe-area-inset-bottom,0px));--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{background:var(--sky);height:100%;font-family:var(--font);color:var(--ink);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none;overscroll-behavior:none;margin:0;overflow:hidden}button,input{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:2px}[hidden]{display:none!important}#scene{width:100%;height:100%;display:block;position:fixed;inset:0}[class^=ico-],[class*=\ ico-]{width:1.15em;height:1.15em;-webkit-mask:var(--i) center / contain no-repeat;-webkit-mask:var(--i) center / contain no-repeat;mask:var(--i) center / contain no-repeat;background:currentColor;flex:none;display:inline-block}.ico-pause{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='5' width='4.2' height='14' rx='1.4'/%3E%3Crect x='13.8' y='5' width='4.2' height='14' rx='1.4'/%3E%3C/svg%3E")}.ico-play{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.5.86l10.5-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z'/%3E%3C/svg%3E")}.ico-replay{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 1 0 2.4-5.7'/%3E%3Cpath d='M4 4v4.5h4.5'/%3E%3C/svg%3E")}.ico-shop{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.2a1 1 0 0 1-1 .8H7.2a1 1 0 0 1-1-.8z'/%3E%3Cpath d='M9 10V7a3 3 0 0 1 6 0v3' stroke-linecap='round'/%3E%3C/svg%3E")}.ico-route{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 20c0-5 12-4 12-9 0-3-3-4-6-4'/%3E%3Ccircle cx='6' cy='20' r='0.6' fill='black'/%3E%3Cpath d='M15 4l-3 3 3 3'/%3E%3C/svg%3E")}.ico-sound{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9.5h3.5L12 5.5v13l-4.5-4H4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M18 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}.ico-music{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 17.5V6l10-2v11.5' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3Ccircle cx='6.5' cy='17.5' r='2.8'/%3E%3Ccircle cx='16.5' cy='15.5' r='2.8'/%3E%3C/svg%3E")}.ico-close{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='black' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")}.ico-recenter{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 2v4M12 18v4M2 12h4M18 12h4'/%3E%3C/svg%3E")}.ico-edelweiss{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='translate(12 12)'%3E%3Cellipse rx='2.1' ry='5.2' transform='rotate(0) translate(0 -5.6)'/%3E%3Cellipse rx='2.1' ry='5.2' transform='rotate(45) translate(0 -5.6)'/%3E%3Cellipse rx='2.1' ry='5.2' transform='rotate(90) translate(0 -5.6)'/%3E%3Cellipse rx='2.1' ry='5.2' transform='rotate(135) translate(0 -5.6)'/%3E%3Cellipse rx='2.1' ry='5.2' transform='rotate(180) translate(0 -5.6)'/%3E%3Cellipse rx='2.1' ry='5.2' transform='rotate(225) translate(0 -5.6)'/%3E%3Cellipse rx='2.1' ry='5.2' transform='rotate(270) translate(0 -5.6)'/%3E%3Cellipse rx='2.1' ry='5.2' transform='rotate(315) translate(0 -5.6)'/%3E%3Ccircle r='2.6'/%3E%3C/g%3E%3C/svg%3E")}.off .ico-sound,.off .ico-music{opacity:.45}.panel{background:var(--glass);border:1px solid var(--line);border-radius:var(--radius);-webkit-backdrop-filter:blur(10px);box-shadow:0 10px 30px #00000040}.muted{color:var(--ink-soft);margin:0}.small{font-size:12px}.row{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.chip{font-variant-numeric:tabular-nums;background:#00000052;border-radius:999px;align-items:center;gap:5px;padding:5px 11px 5px 8px;font-weight:800;display:inline-flex}.chip.gold{color:var(--gold)}.chip.small{margin-left:4px;padding:2px 8px 2px 6px;font-size:13px}.pill{border:1px solid var(--line);background:#0000004d;border-radius:999px;align-items:center;gap:7px;min-height:44px;padding:8px 16px;font-size:15px;font-weight:700;display:inline-flex}.pill:active{transform:translateY(1px)}.pill.subtle{opacity:.8;font-weight:600}.pill strong{letter-spacing:.12em}.icon-btn{border:1px solid var(--line);background:#0000004d;border-radius:50%;place-items:center;width:44px;height:44px;font-size:18px;display:inline-grid}.icon-btn.off{opacity:.55}.cta{background:var(--accent);min-width:220px;box-shadow:0 5px 0 var(--accent-deep), 0 12px 24px #00000040;letter-spacing:.02em;border:0;border-radius:999px;justify-content:center;align-items:center;gap:10px;padding:16px 40px;font-size:26px;font-weight:900;display:inline-flex}.cta:active{box-shadow:0 2px 0 var(--accent-deep);transform:translateY(3px)}.cta.small{min-width:0;padding:11px 26px;font-size:18px}.cta[disabled]{cursor:default;background:#6b6f6a;box-shadow:0 5px #4b4f4a}.screen{z-index:10;position:fixed;inset:0}#title-screen{padding:var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l);background:linear-gradient(90deg,#0e1c168c,#0e1c1614 55%,#0e1c1640);grid-template-rows:1fr auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 24px;display:grid}body:not(.title) #title-screen{display:none}.title-left{flex-direction:column;justify-content:center;gap:12px;min-width:0;display:flex}.title-right{flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:12px;padding-bottom:6px;display:flex}.logo h1{letter-spacing:.01em;text-shadow:0 3px 10px #00000059;margin:0;font-size:46px;font-weight:900;line-height:1}.logo p{color:var(--ink-soft);margin:4px 0 0;font-size:15px}.title-bar{grid-column:1/-1;align-items:center;gap:8px;display:flex}.title-bar .spacer{flex:1}.current-car{text-shadow:0 2px 8px #00000080;flex-direction:column;align-items:flex-end;gap:4px;display:flex}.current-car strong{font-size:22px;font-weight:900}.current-car .bars{color:var(--ink-soft);gap:12px;font-size:12px;display:flex}.modes{border:1px solid var(--line);background:#00000059;border-radius:999px;padding:4px;display:inline-flex}.modes button{background:0 0;border:0;border-radius:999px;min-height:36px;padding:6px 18px;font-weight:700}.modes button[aria-checked=true]{background:var(--ink);color:#1e3428}.bar{align-items:center;gap:6px;display:inline-flex}.segs{gap:3px;display:inline-flex}.segs i{background:#ffffff38;border-radius:2px;width:12px;height:6px}.segs i.on{background:var(--ink)}.segs i.up{background:var(--gold)}.goals{flex-direction:column;gap:6px;max-width:420px;padding:12px 14px;display:flex}.goals.compact{gap:4px;max-width:none;padding:0}.goals-head{align-items:center;gap:10px;font-size:15px;font-weight:900;display:flex}.goals-head .lvl{background:conic-gradient(var(--mint) calc(var(--p) * 1%), #ffffff2e 0);border-radius:50%;place-items:center;width:34px;height:34px;font-size:15px;display:grid}.goals-head .lvl b{background:#20392d;border-radius:50%;place-items:center;width:26px;height:26px;display:grid}.goals-head small{color:var(--ink-soft);font-weight:600}.goal{align-items:center;gap:10px;font-size:14px;line-height:1.25;display:flex}.goal i{border:2px solid #fff9;border-radius:50%;flex:none;place-items:center;width:20px;height:20px;font-size:12px;font-style:normal;font-weight:900;display:grid}.goal span{flex:1;min-width:0}.goal b{color:var(--ink-soft);font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}.goal.done span{color:var(--ink-soft);text-decoration:line-through}.goal.done i{background:var(--mint);border-color:var(--mint);color:#1e3428}.goal .meter{background:#ffffff26;border-radius:2px;height:3px;margin-top:3px;display:block;overflow:hidden}.goal .meter u{background:var(--mint);height:100%;text-decoration:none;display:block}.sheet{z-index:20;padding:var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l);background:#0a141073;place-items:center;display:grid;position:fixed;inset:0}.dialog{text-align:center;background:var(--glass-strong);flex-direction:column;align-items:center;gap:10px;width:min(420px,100%);max-height:100%;padding:18px 20px;display:flex;position:relative;overflow-y:auto}.dialog.wide{width:min(560px,100%)}.dialog h2{margin:0;font-size:24px;font-weight:900}.dialog .goals{text-align:left;width:100%;max-width:none}.dialog .close{background:var(--hover);border:0;border-radius:50%;place-items:center;width:36px;height:36px;display:grid;position:absolute;top:10px;right:10px}.route-big{letter-spacing:.16em;font-size:40px;font-weight:900;line-height:1}#seed-input{border:1px solid var(--line);color:#1e3428;text-transform:uppercase;letter-spacing:.12em;background:#ffffffeb;border-radius:999px;width:9.5em;min-height:44px;padding:8px 14px;font-weight:700}#seed-input::placeholder{letter-spacing:0;text-transform:none;font-weight:500}#seed-input.invalid{outline:3px solid var(--accent)}.recap-score{flex-direction:column;align-items:center;gap:2px;display:flex}#recap-score{font-variant-numeric:tabular-nums;font-size:54px;font-weight:900;line-height:1}#recap-record{color:var(--gold);font-style:normal;font-weight:900;animation:.6s ease-out pop}.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;display:grid}.stat{border-radius:var(--radius-sm);background:#ffffff12;padding:8px 6px}.stat b{font-variant-numeric:tabular-nums;font-size:20px;font-weight:900;display:block}.stat small{color:var(--ink-soft);font-size:12px}.stat.gold b{color:var(--gold)}@keyframes pop{0%{opacity:0;transform:scale(.6)}60%{opacity:1;transform:scale(1.15)}to{transform:scale(1)}}#shop{padding:var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l);gap:12px;display:flex}.shop-panel{background:var(--glass-strong);flex-direction:column;gap:8px;width:min(52%,520px);min-height:0;padding:12px 14px;display:flex}.shop-head{align-items:center;gap:10px;display:flex}.shop-head h2{flex:1;margin:0;font-size:22px;font-weight:900}.tabs{scrollbar-width:none;gap:6px;display:flex;overflow-x:auto}.tabs button{background:var(--hover);border:0;border-radius:999px;flex:none;min-height:38px;padding:6px 14px;font-size:14px;font-weight:700}.tabs button[aria-selected=true]{background:var(--ink);color:#1e3428}.shop-list{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;min-height:0;padding:2px;display:grid;overflow-y:auto}.shop-item{border-radius:var(--radius-sm);text-align:left;background:#ffffff12;border:2px solid #0000;flex-direction:column;align-items:flex-start;gap:4px;min-height:74px;padding:10px 12px;display:flex;position:relative}.shop-item .name{align-items:center;gap:7px;font-size:15px;font-weight:800;display:flex}.shop-item .state{color:var(--ink-soft);align-items:center;gap:4px;font-size:12px;display:flex}.shop-item .state.price{color:var(--gold);font-weight:800}.shop-item .badge{background:var(--mint);color:#1e3428;border-radius:999px;padding:2px 7px;font-size:11px;font-weight:800;position:absolute;top:8px;right:8px}.swatch{border:1px solid #ffffff59;border-radius:4px;width:14px;height:14px;display:inline-block}.swatch.big{border-radius:50%;width:30px;height:30px}.shop-detail{background:var(--glass-strong);flex-direction:column;align-self:flex-end;gap:8px;width:min(300px,40%);margin-left:auto;padding:14px 16px;display:flex}.shop-detail h3{margin:0;font-size:22px;font-weight:900}.shop-detail p{color:var(--ink-soft);margin:0;font-size:14px}.shop-detail .bars{flex-direction:column;gap:6px;font-size:13px;display:flex}.shop-detail .bar span{width:58px;color:var(--ink-soft)}.shop-detail .cta{width:100%;min-width:0;padding:12px 18px;font-size:18px}.shop-detail .cta.owned{background:#2f5a43;box-shadow:0 5px #1d3a2b}.shop-detail .missing{color:var(--gold);text-align:center;font-size:13px;font-weight:700}#hud{padding:var(--safe-t) var(--safe-r) 0 var(--safe-l);pointer-events:none;z-index:5;justify-content:space-between;align-items:flex-start;display:flex;position:fixed;inset:0 0 auto}body.title #hud,body.title .pedal,body.title #drift-badge,body.title #notices,body.title #chase{display:none}.hud-score{text-shadow:0 2px 6px #00000073}#score{font-variant-numeric:tabular-nums;font-size:34px;font-weight:900;line-height:1}.hud-sub{align-items:center;gap:8px;margin-top:4px;display:flex}#distance{color:var(--ink-soft);font-variant-numeric:tabular-nums;font-size:14px;font-weight:700}.combo{width:36px;height:36px;display:none;position:relative}.combo.on{display:inline-block}.combo b{color:var(--gold);place-items:center;font-size:13px;font-weight:900;display:grid;position:absolute;inset:0}.combo svg{width:36px;height:36px;transform:rotate(-90deg)}.combo circle{fill:#00000059;stroke:var(--gold);stroke-width:3.5px;stroke-linecap:round;stroke-dasharray:100}.hud-right{pointer-events:auto;align-items:center;gap:8px;display:flex}.hud-right .chip{min-height:36px;text-shadow:none;font-size:16px}#drift-badge{opacity:0;pointer-events:none;z-index:4;background:#e8452fe0;border-radius:999px;padding:6px 16px;font-size:20px;font-weight:900;transition:opacity .15s,transform .15s;position:fixed;top:30%;left:50%;transform:translate(-50%)scale(.8)}#drift-badge.on{opacity:1;transform:translate(-50%)scale(1)}#drift-badge.turbo{background:#2f6fd6eb}body.zen #hud .hud-score,body.zen #hud-edelweiss,body.zen #popups,body.zen #drift-badge,body.zen #notices,body.zen #goals{display:none}.pedal{width:50%;height:55%;padding:0 0 var(--safe-b);z-index:2;align-items:flex-end;display:flex;position:fixed;bottom:0}#pedal-brake{padding-left:calc(var(--safe-l) + 8px);justify-content:flex-start;left:0}#pedal-gas{padding-right:calc(var(--safe-r) + 8px);justify-content:flex-end;right:0}.pedal span{background:#00000038;border-radius:999px;padding:14px 22px;font-size:16px;font-weight:800;transition:background .1s,transform .1s}.pedal.active span{background:#fff6;transform:scale(1.08)}.pedal.drift span{background:#e8452fbf;transform:scale(1.15)}body.desktop .pedal{display:none}body.touch-steer .pedal{height:calc(100% - 70px)}body.touch-steer .pedal span{padding:12px 24px;font-size:22px}#fade{opacity:0;pointer-events:none;z-index:8;background:#eef5fa;position:fixed;inset:0}#hint{background:var(--glass-strong);text-align:center;pointer-events:none;z-index:6;border-radius:14px;max-width:min(420px,100% - 32px);padding:12px 18px;font-size:16px;position:fixed;top:30%;left:50%;transform:translate(-50%)}#rotate{z-index:40;background:#2f5a43;justify-content:center;align-items:center;font-size:24px;font-weight:800;display:none;position:fixed;inset:0}@media (orientation:portrait) and (pointer:coarse){#rotate{display:flex}}.lil-gui.lil-root,.lil-gui.root{z-index:30;max-height:calc(100% - 80px);top:calc(var(--safe-t) + 52px)!important;right:var(--safe-r)!important}@media (height<=420px){.logo h1{font-size:34px}.logo p{font-size:13px}.goals{gap:4px;padding:9px 12px}.goal{font-size:13px}.cta{min-width:190px;padding:12px 30px;font-size:22px}.dialog{gap:8px;padding:14px 16px}#recap-score{font-size:42px}.stat b{font-size:16px}.stats{grid-template-columns:repeat(6,minmax(0,1fr))}.stat{padding:5px 4px}.stat small{font-size:11px;line-height:1.1;display:block}.recap-score{flex-direction:row;align-items:baseline;gap:12px}}body.shop #title-screen,body.recap #title-screen,body.recap #hud,body.recap .pedal,body.recap #drift-badge,body.recap #notices,body.recap #popups{display:none}.current-car small{color:var(--ink-soft);letter-spacing:.08em;text-transform:uppercase;font-size:12px;font-weight:700}.segs i.next{background:var(--gold);opacity:.45;animation:1s ease-in-out infinite alternate blink}@keyframes blink{to{opacity:.9}}.cta [class^=ico-],.pill [class^=ico-]{margin-right:6px}.chip.bump{animation:.35s ease-out bump}@keyframes bump{40%{transform:scale(1.25)}}.shop-item.locked .name{opacity:.85}.modes.small button{min-height:32px;padding:4px 13px;font-size:13px}#chase{left:50%;top:calc(var(--safe-t) + 64px);z-index:5;pointer-events:none;background:#141830d9;border-radius:999px;align-items:center;gap:10px;padding:7px 16px;font-weight:900;display:none;position:fixed;transform:translate(-50%)}#chase.on{display:flex}#chase .beacon{border-radius:50%;width:14px;height:14px;animation:.33s step-end infinite beacon}@keyframes beacon{0%{background:#ff3b3b;box-shadow:0 0 10px #ff3b3b}50%{background:#3b7bff;box-shadow:0 0 10px #3b7bff}}#chase .chase-bar{background:#fff3;border-radius:3px;width:90px;height:6px;overflow:hidden}#chase .chase-bar u{background:var(--gold);height:100%;text-decoration:none;display:block}#chase small{color:var(--ink-soft);font-variant-numeric:tabular-nums;min-width:3.2em}#chase.close{background:#8c1414e6}body.zen #chase,body.recap #chase{display:none}.recap-reason{color:#ff8a7a;font-size:18px;font-weight:900}@media (prefers-reduced-motion:reduce){#chase .beacon{background:#ff3b3b;animation:none}}.powers{gap:6px;margin-top:6px;display:flex}.chip.power{padding:4px 10px;font-size:14px}.chip.power.shield{background:#2878c8bf}.chip.power.double{background:#c83ca0bf}body.zen .powers{display:none}.cta.continue{background:var(--gold-deep);box-shadow:0 5px #8a6a08,0 12px 24px #00000040}.cta.continue .ico-edelweiss{margin:0 2px 0 6px}.cta.continue[disabled]{opacity:.55}#chase-glow{pointer-events:none;z-index:3;opacity:0;height:28%;animation:.66s step-end infinite chase-glow;position:fixed;bottom:0;left:0;right:0}@keyframes chase-glow{0%{background:linear-gradient(#0000,#ff28288c)}50%{background:linear-gradient(#0000,#286eff8c)}}body.zen #chase-glow,body.title #chase-glow{display:none}@media (prefers-reduced-motion:reduce){#chase-glow{background:linear-gradient(#0000,#ff282873);animation:none}}.pill.daily{color:var(--gold);border-color:#ffd34d73}.pill.daily.on{background:#ffd34d33}@media (width<=640px){.pill.daily{padding:8px 12px;font-size:14px}}#feed{left:50%;bottom:calc(var(--safe-b) + 6px);pointer-events:none;z-index:4;align-items:center;gap:8px;display:flex;position:fixed;transform:translate(-50%)}#feed #drift-badge,#feed #chase{position:static;top:auto;left:auto;transform:none}#feed #drift-badge{opacity:1;padding:4px 12px;font-size:15px;display:none}#feed #drift-badge.on{display:block}#feed #chase{gap:8px;padding:4px 12px;font-size:14px}#feed #chase .beacon{width:11px;height:11px}#feed #chase .chase-bar{width:70px;height:5px}body.title #feed,body.recap #feed,body.zen #feed{display:none}.dialog.recap-box{text-align:left;flex-direction:row;align-items:stretch;gap:18px;width:min(780px,100%)}.recap-main{text-align:center;flex-direction:column;flex:1.3;justify-content:center;align-items:center;gap:6px;min-width:0;display:flex}.recap-side{flex-direction:column;flex:1;justify-content:center;gap:8px;min-width:0;display:flex}.recap-side .cta{width:100%;min-width:0}.recap-row{gap:8px;display:flex}.recap-row .pill{flex:1;justify-content:center}.recap-side .goals.compact{margin-top:2px}.recap-side .goal{gap:7px;font-size:12px}.recap-side .goal i{width:16px;height:16px;font-size:10px}.recap-box .stats{grid-template-columns:repeat(3,minmax(0,1fr))}.recap-box .recap-score{flex-direction:row;align-items:baseline;gap:10px}@media (height<=420px){.dialog.recap-box{padding:12px 16px}.recap-box #recap-score{font-size:44px}.recap-box .stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.recap-box .stat{padding:4px}.recap-box .stat b{font-size:15px}.recap-side .cta{padding:9px 16px;font-size:17px}.recap-row .pill{min-height:38px;padding:6px 10px}}#race{background:#141830d9;border-radius:999px;align-items:center;gap:8px;padding:4px 12px;font-size:14px;font-weight:900;display:none}#race.on{display:flex}#race .race-track{background:#fff3;border-radius:3px;width:120px;height:6px;margin-right:14px;position:relative}#race .race-track i{border-radius:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}#race .me{z-index:1;background:#e8452f;border:2px solid #fff;width:12px;height:12px}#race .train{background:#6fb3ff;width:10px;height:10px}#race .flag{border-radius:0;font-size:13px;font-style:normal;left:100%;transform:translate(2px,-55%)}#feed{max-width:calc(100% - 2 * var(--safe-l) - 180px);flex-wrap:wrap;justify-content:center}#hint{top:auto;bottom:calc(var(--safe-b) + 44px);padding:8px 14px;font-size:14px}.album-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%;display:grid}.album-card{border-radius:var(--radius-sm);text-align:center;background:#ffffff14;flex-direction:column;align-items:center;gap:2px;padding:8px 6px;display:flex}.album-card .em{font-size:28px;line-height:1.1}.album-card b{font-size:14px}.album-card small{color:var(--ink-soft);font-size:11px;line-height:1.2}.album-card.unknown .em{filter:grayscale()brightness(.2);opacity:.7}.album-card.unknown b{color:var(--ink-soft)}@media (height<=420px){.album-card{padding:5px 4px}.album-card .em{font-size:22px}}.title-bar .pill{white-space:nowrap;padding:8px 13px}#photo-ring{z-index:7;pointer-events:none;border:3px dashed #fff;border-radius:50%;place-items:center;width:66px;height:66px;margin:-33px 0 0 -33px;animation:3s linear infinite ring-spin;display:grid;position:fixed;box-shadow:0 0 0 3px #00000040,0 0 18px #ffffff80}#photo-ring[hidden]{display:none}#photo-ring span{font-size:18px;animation:3s linear infinite reverse ring-spin;position:absolute;top:-26px}#photo-ring small{text-shadow:0 1px 4px #0009;white-space:nowrap;font-size:13px;font-weight:900;animation:3s linear infinite reverse ring-spin;position:absolute;bottom:-24px}@keyframes ring-spin{to{transform:rotate(360deg)}}#photo-flash{opacity:0;pointer-events:none;z-index:7;background:#fff;position:fixed;inset:0}#photo-flash.on{animation:.35s ease-out flash}@keyframes flash{0%{opacity:.8}to{opacity:0}}body.title #photo-ring,body.recap #photo-ring{display:none}#popups,#notices{pointer-events:none;z-index:4;width:0;height:0;position:fixed;left:50%}#popups{bottom:calc(var(--safe-b) + 44px)}#notices{top:calc(var(--safe-t) + 6px)}.popup{transform:translate(-50%, var(--y,0px));white-space:nowrap;text-shadow:0 2px 5px #00000080;align-items:baseline;gap:6px;font-size:16px;font-weight:900;transition:transform .22s ease-out,opacity .3s ease-in;animation:.25s ease-out pop-in;display:flex;position:absolute;bottom:0;left:0}#notices .popup{top:0;bottom:auto}.popup.out{opacity:0}.popup.bump{animation:.3s ease-out pop-bump}.popup .mult{color:var(--gold)}.popup.pickup{color:var(--gold);font-size:14px}.popup.record{color:var(--gold);font-size:18px}.popup.goal{color:#c9f5a6;font-size:14px}.popup.notice{background:var(--glass-strong);color:var(--ink);text-shadow:none;border-radius:999px;padding:4px 14px;font-size:15px}.popup.notice.goal strong{color:#c9f5a6}.popup.notice small{color:var(--ink-soft);letter-spacing:.08em;text-transform:uppercase;font-size:10px;font-weight:700}.popup .sub{color:var(--gold);font-size:12px;font-weight:800}.popup .sub:empty{display:none}@keyframes pop-in{0%{opacity:0;scale:.85}}@keyframes pop-bump{40%{scale:1.15}}@media (prefers-reduced-motion:reduce){.popup{transition:opacity .3s;animation:none}}.muted.tiny{opacity:.7;font-size:11px}@media (width<=720px){.title-bar{gap:6px}.title-bar .pill{min-height:40px;padding:6px 10px;font-size:14px}.title-bar .icon-btn{width:40px;height:40px}#btn-route .lbl{display:none}}@media (width<=600px){#btn-shop .lbl{display:none}}@media (width<=700px){#title-screen{gap:8px 14px}.shop-panel{width:56%}.shop-list{grid-template-columns:repeat(auto-fill,minmax(118px,1fr))}.shop-detail{width:42%;padding:12px}.shop-detail h3{font-size:18px}.shop-detail p{font-size:13px}.shop-detail .cta{padding:10px 12px;font-size:16px}.dialog.recap-box{gap:12px}.recap-box .stat small{font-size:10px}}@media (height<=340px){.logo h1{font-size:28px}.logo p,.current-car small{display:none}.title-left{gap:8px}.title-right{gap:8px;padding-bottom:2px}.goals{gap:3px;padding:7px 10px}.goal{font-size:12px}.goals-head{font-size:13px}.goals-head .lvl{width:28px;height:28px}.goals-head .lvl b{width:22px;height:22px}.current-car strong{font-size:18px}.cta{min-width:170px;padding:10px 24px;font-size:20px}.modes button{min-height:32px;padding:4px 14px}.modes.small button{min-height:28px}.dialog{gap:6px;padding:10px 14px}.dialog h2{font-size:20px}.recap-box #recap-score{font-size:36px}.recap-box .stat b{font-size:14px}.recap-side .cta{padding:8px 14px;font-size:16px}.recap-row .pill,.dialog .pill{min-height:36px;padding:5px 12px;font-size:14px}.route-big{font-size:32px}.album-card small{display:none}}.cta.continue[disabled]{box-shadow:none;color:var(--ink-soft);opacity:1;background:#ffffff14;order:2;padding:6px 12px;font-size:13px}.recap-side #btn-again{order:1}.recap-side .recap-row{order:3}.recap-side #recap-goals{order:4}.recap-main #recap-tabs{margin-top:2px}.stats.hero{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))!important}.stats.hero .stat{padding:10px 8px}.stats.hero .stat b{font-size:30px;line-height:1.05}.stats.hero .stat small{font-size:13px}.stats.details{gap:5px;grid-template-columns:repeat(4,minmax(0,1fr))!important}.stats.details .stat{padding:5px 4px}.stats.details .stat b{font-size:16px}.stats.details .stat small{font-size:11px;line-height:1.15;display:block}.stat .star{color:var(--gold);vertical-align:.15em;font-size:.7em;font-style:normal}@media (height<=340px){.stats.hero .stat b{font-size:24px}.stats.hero .stat{padding:7px 6px}.stats.details .stat b{font-size:14px}.stats.details .stat small{font-size:10px}}.dialog.stats-box{text-align:center;align-items:stretch;width:min(640px,100%)}.stats-box h2{text-align:center}.stats-box h3{letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);text-align:left;margin:8px 0 4px;font-size:12px;font-weight:800}.ico-gear{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M12 2.8l1.6 2.4 2.8-.6.6 2.8 2.4 1.6-1.2 2.6 1.2 2.6-2.4 1.6-.6 2.8-2.8-.6L12 21.2l-1.6-2.4-2.8.6-.6-2.8-2.4-1.6L5.8 12 4.6 9.4 7 7.8l.6-2.8 2.8.6z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E")}#title-screen{background:radial-gradient(at 0 0,#0e1c168c,#0e1c1600 55%)}.title-left{justify-content:flex-start;padding-top:4px;position:relative}.title-right{justify-content:center;gap:14px}.title-bar .pill{background:#00000047}.goal-pill{border:1px solid var(--line);text-align:left;background:#00000052;border-radius:999px;align-self:flex-start;align-items:center;gap:10px;padding:6px 14px 6px 6px;font-weight:700;display:inline-flex}.goal-pill b{font-size:14px;line-height:1.1;display:block}.goal-pill small{color:var(--ink-soft);font-size:12px;font-weight:600;display:block}.goal-pill .lvl{background:conic-gradient(var(--mint) calc(var(--p) * 1%), #ffffff2e 0);border-radius:50%;place-items:center;width:34px;height:34px;display:grid}.goal-pill .lvl b{background:#20392d;border-radius:50%;place-items:center;width:26px;height:26px;font-size:14px;display:grid}.goal-pill .chev{color:var(--ink-soft);font-size:20px;font-style:normal;transition:transform .2s}.goal-pill.open .chev{transform:rotate(90deg)}#goals{z-index:2;width:min(380px,100%);margin-top:6px;animation:.18s ease-out pop-in;position:absolute;top:100%;left:0}.title-left #goals:not([hidden]){position:static}.dialog.settings-box{width:min(600px,100%)}.set-list{flex-direction:column;gap:6px;width:100%;display:flex}.set-row{border-radius:var(--radius-sm);background:#ffffff0d;justify-content:space-between;align-items:center;gap:12px;padding:6px 10px;display:flex}.set-row[hidden]{display:none!important}.set-name{font-size:14px;font-weight:800}.set-ctl{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.set-ctl small{color:var(--ink-soft);font-size:11px}#set-tilt{width:130px;accent-color:var(--gold)}.icon-btn.small{width:34px;height:34px;font-size:15px}.toggle{border:1px solid var(--line);min-height:34px;color:var(--ink-soft);background:0 0;border-radius:999px;align-items:center;gap:6px;padding:4px 12px;font-size:13px;font-weight:700;display:inline-flex}.toggle[aria-pressed=true]{background:var(--ink);color:#1e3428;border-color:var(--ink)}.toggle[hidden]{display:none}.settings-box #build{cursor:default;padding:4px 10px}#stats-sheet{z-index:21}.shop-panel{background:#12221bd1;gap:10px;width:min(44%,430px)}.shop-head{gap:6px}.shop-head .back{margin-top:-3px;font-size:28px;line-height:1}.shop-head h2{font-size:20px}.shop-wallet{top:var(--safe-t);right:var(--safe-r);background:#00000073;min-height:40px;padding:6px 14px 6px 10px;font-size:18px;position:fixed}.tabs{background:#0000004d;border-radius:999px;align-self:flex-start;max-width:100%;padding:3px}.tabs button{background:0 0;min-height:32px;padding:4px 12px;font-size:13px}.shop-list{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));align-content:start;gap:6px}.shop-item{background:#ffffff0f;border-width:2px;flex-direction:row;align-items:center;gap:9px;min-height:48px;padding:8px 10px}.shop-item .swatch{border-width:2px;border-radius:50%;flex:none;width:22px;height:22px}.shop-item .name{flex:1;min-width:0;font-size:14px;line-height:1.15}.shop-item .state{font-size:12px;font-weight:800}.shop-item .state.ok{color:var(--mint);font-size:16px}.shop-item .state.price{color:var(--ink-soft)}.shop-item.affordable .state.price{color:var(--gold)}.shop-item.locked .swatch{opacity:.75}.shop-item.equipped{border-color:#8fd16a8c}.shop-item[aria-selected=true]{border-color:var(--ink);background:#ffffff24}.shop-detail{gap:10px;width:min(290px,36%)}.shop-detail h3{flex-wrap:wrap;align-items:baseline;gap:8px;font-size:20px;display:flex}.shop-detail .tag{letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft);font-size:11px;font-weight:800}.shop-detail .tag.try{color:var(--gold)}@media (height<=340px){.goal-pill{padding:4px 12px 4px 4px}.goal-pill .lvl{width:28px;height:28px}.goal-pill .lvl b{width:22px;height:22px;font-size:12px}.set-row{padding:3px 8px}.settings-box .set-list{gap:3px}.toggle{min-height:30px;padding:2px 10px}.shop-item{min-height:40px;padding:5px 8px}.shop-wallet{min-height:34px;font-size:16px}}@media (width<=700px){.shop-panel{width:50%}.shop-list{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}#set-tilt{width:90px}.set-ctl small{display:none}}.settings-box{gap:8px;padding-top:12px}.settings-box h2{font-size:20px}.settings-box .set-row{min-height:40px;padding:4px 6px 4px 12px}.settings-box .modes{padding:3px}.settings-box .modes button{min-height:30px;padding:3px 12px;font-size:13px}.set-foot{justify-content:space-between;align-items:center;gap:10px;width:100%;display:flex}.set-foot .pill{min-height:36px;padding:5px 14px;font-size:14px}@media (height<=340px){.settings-box{gap:5px;padding:8px 12px}.settings-box h2{font-size:17px}.settings-box .set-row{min-height:34px;padding:2px 4px 2px 10px}.settings-box .modes button{min-height:26px;padding:2px 10px;font-size:12px}.settings-box .close{width:30px;height:30px;top:6px;right:6px}.set-foot .pill{min-height:30px;padding:3px 12px;font-size:13px}}.tabs{align-self:stretch;overflow:visible}.tabs button{white-space:nowrap;text-overflow:ellipsis;flex:1 1 0;min-width:0;padding:4px 6px;overflow:hidden}@media (width<=700px){.tabs button{padding:4px 3px;font-size:12px}.shop-panel{width:58%}.shop-detail{width:39%}}.shop-list,.shop-list[class]{grid-template-columns:1fr!important}:root{--spring:cubic-bezier(.2, .9, .3, 1.25);--out:cubic-bezier(.2, .8, .2, 1)}.sheet:not([hidden]){animation:.2s ease-out sheet-in}.sheet:not([hidden])>.dialog{animation:dialog-in .32s var(--spring)}.sheet.closing{animation:.17s ease-in forwards sheet-out}.sheet.closing>.dialog{animation:.17s ease-in forwards dialog-out}@keyframes sheet-in{0%{background:#0a141000}}@keyframes sheet-out{to{background:#0a141000}}@keyframes dialog-in{0%{opacity:0;transform:translateY(26px)scale(.94)}}@keyframes dialog-out{to{opacity:0;transform:translateY(18px)scale(.96)}}body.title:not(.recap):not(.shop) .title-left>*{animation:from-left .45s var(--out) both}body.title:not(.recap):not(.shop) .title-left>:nth-child(2){animation-delay:60ms}body.title:not(.recap):not(.shop) .title-right>*{animation:from-right .45s var(--out) both}body.title:not(.recap):not(.shop) .title-right>:nth-child(2){animation-delay:70ms}body.title:not(.recap):not(.shop) .title-right>:nth-child(3){animation-delay:.14s}body.title:not(.recap):not(.shop) .title-bar{animation:from-below .45s var(--out) .1s both}@keyframes from-left{0%{opacity:0;transform:translate(-40px)}}@keyframes from-right{0%{opacity:0;transform:translate(40px)}}@keyframes from-below{0%{opacity:0;transform:translateY(30px)}}body.leaving .title-left{opacity:0;transition:transform .26s ease-in,opacity .26s ease-in;transform:translate(-60px)}body.leaving .title-right{opacity:0;transition:transform .26s ease-in,opacity .26s ease-in;transform:translate(60px)}body.leaving .title-bar{opacity:0;transition:transform .26s ease-in,opacity .26s ease-in;animation:none;transform:translateY(40px)}body.leaving #title-screen{background:0 0;transition:background .26s}#btn-go{animation:2.4s ease-in-out .6s infinite breathe}@keyframes breathe{0%,to{box-shadow:0 5px 0 var(--accent-deep), 0 12px 24px #00000040, 0 0 0 0 #e8452f00}50%{box-shadow:0 5px 0 var(--accent-deep), 0 12px 24px #00000040, 0 0 0 10px #e8452f29}}body:not(.title) #hud{animation:from-above .4s var(--out) .1s both}body:not(.title) .pedal span{animation:.5s ease-out .3s both fade-in}@keyframes from-above{0%{opacity:0;transform:translateY(-24px)}}@keyframes fade-in{0%{opacity:0}}#recap:not([hidden]) .recap-main>*,#recap:not([hidden]) .recap-side>*{animation:from-below .4s var(--out) both}#recap:not([hidden]) .recap-main>:nth-child(2){animation-delay:50ms}#recap:not([hidden]) .recap-main>:nth-child(3){animation-delay:.1s}#recap:not([hidden]) .recap-main>:nth-child(4){animation-delay:.15s}#recap:not([hidden]) .recap-side>:first-child{animation-delay:.2s}#recap:not([hidden]) .recap-side>:nth-child(2){animation-delay:.26s}#recap:not([hidden]) .recap-side>:nth-child(3){animation-delay:.32s}#recap:not([hidden]) .recap-side>:nth-child(4){animation-delay:.38s}.stats .stat{animation:tile-in .35s var(--spring) both}.stats .stat:nth-child(2){animation-delay:50ms}.stats .stat:nth-child(3){animation-delay:.1s}.stats .stat:nth-child(4){animation-delay:.15s}.stats .stat:nth-child(5){animation-delay:.2s}.stats .stat:nth-child(6){animation-delay:.25s}.stats .stat:nth-child(7){animation-delay:.3s}.stats .stat:nth-child(8){animation-delay:.35s}@keyframes tile-in{0%{opacity:0;transform:scale(.8)}}#recap-record:not([hidden]){animation:stamp .45s var(--spring);display:inline-block}@keyframes stamp{0%{opacity:0;transform:scale(2.2)rotate(-12deg)}60%{opacity:1;transform:scale(.92)rotate(-4deg)}to{transform:scale(1)rotate(-4deg)}}.icon-btn,.pill,.toggle,.modes button,.tabs button,.shop-item,.goal-pill,.close{transition:transform .12s ease-out,background-color .18s,color .18s,border-color .18s}.icon-btn:active,.pill:active,.toggle:active,.modes button:active,.tabs button:active,.shop-item:active,.goal-pill:active,.close:active{transform:scale(.93)}.cta{transition:transform .1s,box-shadow .1s,filter .15s}.cta:active{filter:brightness(1.08)}body.shop #shop:not([hidden]) .shop-panel{animation:from-left .35s var(--out) both}body.shop #shop:not([hidden]) .shop-detail{animation:from-right .35s var(--out) 60ms both}body.shop #shop:not([hidden]) .shop-wallet{animation:from-above .35s var(--out) .1s both}.shop-list.enter .shop-item{animation:tile-in .28s var(--out) both;animation-delay:calc(var(--i,0) * 30ms)}.shop-detail>*{animation:.22s ease-out both fade-in}.cta.cant{background:#5f645f;box-shadow:0 5px #434843}.shake{animation:.38s ease-in-out shake!important}@keyframes shake{20%{transform:translate(-7px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(2px)}}.burst{z-index:50;pointer-events:none;color:var(--gold);text-shadow:0 2px 4px #0000004d;font-size:18px;font-weight:900;animation:.85s cubic-bezier(.15,.7,.3,1) forwards burst;position:fixed;transform:translate(-50%,-50%)}@keyframes burst{0%{opacity:1;transform:translate(-50%,-50%)scale(.4)}70%{opacity:1}to{opacity:0;transform:translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 40px)) scale(1) rotate(var(--rot))}}#goals:not([hidden]) .goal{animation:from-left .3s var(--out) both}#goals:not([hidden]) .goal:nth-of-type(2){animation-delay:50ms}#goals:not([hidden]) .goal:nth-of-type(3){animation-delay:.1s}.toggle[aria-pressed=true]{animation:.25s ease-out pop-bump}.modes button[aria-checked=true]{transition:background-color .2s,color .2s}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important;animation-delay:0s!important}}.shop-panel{width:min(46%,460px)}.tabs{gap:2px}.tabs button{text-overflow:clip;padding:4px 2px;font-size:12.5px}@media (width<=700px){.shop-panel{width:58%}}
