:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:-apple-system,system-ui,sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:#bfe3f5;height:100%;margin:0;overflow:hidden}#game,#touch{width:100%;height:100%;display:block;position:fixed;inset:0}#touch{touch-action:none;z-index:1}#hud{pointer-events:none;z-index:2;color:#fff;text-shadow:0 1px 3px #0009;position:fixed;inset:0}#ui{pointer-events:none;z-index:10;position:fixed;inset:0}.hud-speed{top:calc(env(safe-area-inset-top) + 12px);left:calc(env(safe-area-inset-left) + 14px);font-variant-numeric:tabular-nums;font-size:34px;font-weight:800;position:absolute}.hud-speed small{opacity:.85;font-size:14px;font-weight:600}.hud-toast{text-align:center;letter-spacing:.04em;opacity:0;width:100%;font-size:30px;font-weight:900;transition:opacity .15s,transform .15s;position:absolute;top:18%;transform:scale(.9)}.hud-toast.show{opacity:1;transform:scale(1)}.hud-indicator{top:calc(env(safe-area-inset-top) + 56px);right:calc(env(safe-area-inset-right) + 14px);opacity:0;background:#141e2873;border-radius:14px;width:52px;height:52px;padding:6px;transition:opacity .1s;position:absolute}.hud-indicator.show{opacity:1}.hud-prompt{bottom:calc(env(safe-area-inset-bottom) + 12%);text-align:center;width:100%;font-size:20px;font-weight:700;position:absolute}.hud-gear{pointer-events:auto;top:calc(env(safe-area-inset-top) + 8px);right:calc(env(safe-area-inset-right) + 10px);color:#fff;background:#141e2873;border:0;border-radius:22px;width:44px;height:44px;font-size:22px;position:absolute}.hud-debug{left:calc(env(safe-area-inset-left) + 10px);bottom:calc(env(safe-area-inset-bottom) + 8px);background:#00000073;border-radius:6px;margin:0;padding:6px 8px;font:11px/1.35 ui-monospace,monospace;display:none;position:absolute}.stick-ring{width:0;height:0;display:none;position:absolute;top:0;left:0}.stick-ring:before{content:"";background:#ffffff1f;border:3px solid #ffffffa6;border-radius:50%;width:140px;height:140px;position:absolute;top:-70px;left:-70px}.stick-knob{background:#fffc;border-radius:50%;width:56px;height:56px;position:absolute;top:-28px;left:-28px;box-shadow:0 2px 8px #0000004d}.tuning{pointer-events:auto;color:#eef;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);width:min(360px,52vw);padding-top:env(safe-area-inset-top);background:#0f1923db;flex-direction:column;font-size:13px;display:flex;position:absolute;top:0;bottom:0;right:0}.tuning[hidden]{display:none}@media (orientation:portrait){.tuning{border-radius:14px 14px 0 0;width:auto;height:52vh;padding-top:0;top:auto;left:0}}.tuning-bar{border-bottom:1px solid #ffffff26;align-items:center;gap:6px;padding:8px 10px;display:flex}.tuning-bar strong{flex:1}.tuning-bar button{color:#fff;background:#ffffff24;border:0;border-radius:8px;padding:8px 10px;font-size:13px}.tuning-body{-webkit-overflow-scrolling:touch;touch-action:pan-y;padding-bottom:env(safe-area-inset-bottom);flex:1;overflow-y:auto}.tuning summary{background:#ffffff0f;padding:12px;font-weight:700;position:sticky;top:0}.tuning-row{grid-template-columns:1fr auto;gap:2px 8px;padding:8px 12px;display:grid}.tuning-row input[type=range]{grid-column:1/-1;width:100%;height:28px}.tuning-row input[type=checkbox]{grid-column:1/-1;width:28px;height:28px}.tuning-row output{opacity:.8;font-variant-numeric:tabular-nums}.hud-pause{pointer-events:auto;top:calc(env(safe-area-inset-top) + 8px);right:calc(env(safe-area-inset-right) + 62px);color:#fff;letter-spacing:-2px;background:#141e2873;border:0;border-radius:22px;width:44px;height:44px;font-size:14px;position:absolute}#screens{z-index:15;pointer-events:none;position:fixed;inset:0}.screen{pointer-events:auto;color:#fff;-webkit-backdrop-filter:blur(8px);padding:calc(env(safe-area-inset-top) + 12px) calc(env(safe-area-inset-right) + 16px) calc(env(safe-area-inset-bottom) + 14px) calc(env(safe-area-inset-left) + 16px);background:#0c16229e;flex-direction:column;display:flex;position:absolute;inset:0}.screen-header h1{margin:0;font-size:28px}.screen-content{-webkit-overflow-scrolling:touch;flex:1;padding:12px 0;overflow-y:auto}.screen-footer{flex-direction:column-reverse;align-items:stretch;gap:10px;display:flex}@media (orientation:landscape){.screen-footer{flex-direction:row-reverse;justify-content:flex-start}.screen-footer .btn{flex:0 260px}}.btn{color:#fff;background:#ffffff2e;border:0;border-radius:16px;min-height:56px;padding:0 20px;font-size:18px;font-weight:700}.btn:active{transform:scale(.98)}.btn-primary{background:#2e86de}.btn:disabled{opacity:.4}.hud-coins{top:calc(env(safe-area-inset-top) + 76px);left:calc(env(safe-area-inset-left) + 14px);color:#ffd84a;font-variant-numeric:tabular-nums;font-size:20px;font-weight:800;position:absolute}.screen-footer{flex-wrap:wrap}.big{margin-bottom:6px;font-size:30px;font-weight:800}.stars{letter-spacing:6px;color:#ffd84a;margin-bottom:4px;font-size:38px}.accent{color:#7bed9f;margin:4px 0;font-weight:700}.muted{opacity:.75;margin:6px 0}.group{letter-spacing:.08em;text-transform:uppercase;opacity:.7;margin:18px 0 8px;font-size:15px}.card{color:#fff;text-align:left;background:#ffffff21;border:0;border-radius:16px;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:64px;margin-bottom:10px;padding:12px 14px;font-size:17px;display:flex}.card:disabled{opacity:.5}.card:not(.static):active{background:#ffffff38}.card-title{font-weight:700}.card-sub{opacity:.8;margin-top:2px;font-size:13px}.card-right{color:#ffd84a;letter-spacing:2px;white-space:nowrap;font-size:22px}.buy{color:#fff;background:#2e86de;border:0;border-radius:14px;min-width:76px;min-height:48px;font-size:17px;font-weight:800}.buy:disabled{opacity:.6;background:#fff3}.lines{max-width:460px;margin:8px 0}.line{border-bottom:1px solid #ffffff1f;justify-content:space-between;padding:5px 0;display:flex}.hud-boost{pointer-events:auto;left:calc(env(safe-area-inset-left) - 8px);bottom:calc(env(safe-area-inset-bottom) - 4px);box-sizing:content-box;touch-action:none;background:conic-gradient(#ffb02e var(--fill,0deg), #141e288c 0);filter:drop-shadow(0 3px 6px #00000059);background-clip:padding-box;border:26px solid #0000;border-radius:50%;place-items:center;width:84px;height:84px;padding:0;transition:transform 80ms;display:grid;position:absolute}.hud-boost:before{content:"";background:#2e86de;border-radius:50%;position:absolute;inset:8px}.hud-boost svg{width:44px;height:44px;position:relative}.hud-boost.active{filter:drop-shadow(0 0 10px #ffb02ed9)drop-shadow(0 0 6px #ffb02e99);transform:scale(1.12)}.hud-boost.empty:before{background:#5b6b7a}.hud-boost.off{opacity:.35}.set-row{border-bottom:1px solid #ffffff1f;grid-template-columns:1fr auto;gap:4px 10px;padding:12px 0;display:grid}.set-row input[type=range]{grid-column:1/-1;width:100%;height:32px}.set-row.toggle{align-items:center}.set-row.toggle input{width:32px;height:32px}.screen-content .btn{width:100%;max-width:460px;margin:12px 0 0;display:block}.hud-speed.low{color:#ff5a4d;animation:.5s infinite alternate lowblink}@keyframes lowblink{0%{opacity:1}to{opacity:.45}}.hud-powerups{top:calc(env(safe-area-inset-top) + 108px);left:calc(env(safe-area-inset-left) + 14px);pointer-events:none;flex-direction:column;align-items:flex-start;gap:6px;display:flex;position:absolute}.pw-chip{color:#fff;background:#0a14288c;border-radius:999px;align-items:center;gap:6px;padding:3px 10px 3px 4px;font:700 15px system-ui,sans-serif;display:flex}.pw-chip svg{display:block}.pw-chip.ready{animation:.9s ease-in-out infinite pwpulse}@keyframes pwpulse{50%{transform:scale(1.08)}}.hud-timeline{top:calc(env(safe-area-inset-top) + 14px);pointer-events:none;width:min(44vw,380px);position:absolute;left:50%;transform:translate(-50%)}.tl-track{background:#0a142859;border-radius:4px;height:8px;position:relative;box-shadow:0 0 0 1px #ffffff59}.tl-fill{background:linear-gradient(90deg,#5ac8ff,#7dffb2);border-radius:4px;width:0;position:absolute;inset:0 auto 0 0}#tlmarks i{background:#ffffffbf;border-radius:1px;width:2px;height:14px;margin-left:-1px;position:absolute;top:-3px}.tl-best{background:#ffd23f;border-radius:2px;width:4px;height:20px;margin-left:-2px;display:none;position:absolute;top:-6px;box-shadow:0 0 6px #ffd23f}.tl-dot{box-sizing:border-box;background:#fff;border:3px solid #2e86de;border-radius:50%;width:16px;height:16px;margin-left:-8px;position:absolute;top:-4px}.hud-distance{top:calc(env(safe-area-inset-top) + 54px);left:calc(env(safe-area-inset-left) + 14px);color:#fff;text-shadow:0 1px 3px #00000073;font-variant-numeric:tabular-nums;pointer-events:none;font-size:15px;font-weight:700;position:absolute}.coin-pop{top:calc(env(safe-area-inset-top) + 76px);left:calc(env(safe-area-inset-left) + 120px);pointer-events:none;color:#ffd84a;text-shadow:0 2px 4px #0006;white-space:nowrap;align-items:baseline;gap:8px;font-weight:800;animation:1.6s ease-out forwards coinpop;display:flex;position:absolute}.coin-pop b{font-size:26px}.coin-pop span{color:#fff;font-size:14px}@keyframes coinpop{0%{opacity:0;transform:translateY(14px)scale(.6)}15%{opacity:1;transform:translateY(0)scale(1.15)}30%{transform:scale(1)}80%{opacity:1}to{opacity:0;transform:translateY(-26px)}}.hud-coins.bump{animation:.35s ease-out coinbump}@keyframes coinbump{40%{transform:scale(1.25)}}.card.with-preview{grid-template-columns:96px 1fr;align-items:start;gap:10px 12px;display:grid}.card.with-preview .buy{grid-column:1/-1;width:100%}.stat-list{margin-top:6px}.stat-row{border-bottom:1px solid #ffffff14;justify-content:space-between;gap:10px;padding:3px 0;font-size:14px;display:flex}.stat-row b{color:#9ff5c0;font-variant-numeric:tabular-nums;white-space:nowrap}.more{opacity:.85;margin-top:6px;font-size:12px}.more summary{cursor:pointer;padding:4px 0}.gear-preview{object-fit:contain;background:linear-gradient(#bfe6ff,#eef8ff);border-radius:12px;width:96px;height:80px;display:block}.card-sub.look{color:#ffe08a;font-weight:700}.stat-grid{grid-template-columns:1fr 1fr;column-gap:14px;display:grid}.stat-grid .card-sub{font-size:12px}.hud-boost.cooling:before{background:#5b6b7a}.hud-boost.cooling svg{opacity:.35}.hud-boost.cooling:after{content:attr(data-cd);color:#fff;text-shadow:0 2px 4px #00000080;background:conic-gradient(#ffffff47 var(--cd), transparent 0);border-radius:50%;justify-content:center;align-items:center;font:800 30px system-ui,sans-serif;display:flex;position:absolute;inset:0}.tl-storm{background:#ffffffd9;border-radius:4px;width:0;display:none;position:absolute;inset:0 auto 0 0;box-shadow:0 0 8px 2px #bedcffcc}.hud-storm{top:calc(env(safe-area-inset-top) + 34px);color:#fff;text-shadow:0 1px 3px #0000008c;pointer-events:none;font-size:15px;font-weight:800;position:absolute;left:50%;transform:translate(-50%)}.hud-storm.danger{color:#ff8a8a;animation:.5s ease-in-out infinite alternate stormpulse}@keyframes stormpulse{to{transform:translate(-50%)scale(1.12)}}.storm-fog{pointer-events:none;opacity:0;background:radial-gradient(#ebf4fc00 35%,#ebf4fc8c 70%,#fafcfff2 100%);transition:opacity .15s linear;position:absolute;inset:0}.hud-rear{box-sizing:border-box;pointer-events:none;border:3px solid #ffffffe6;border-radius:12px;width:176px;height:100px;display:none;position:absolute;top:70px;right:14px;box-shadow:0 2px 10px #00000059}.hud-rear span{letter-spacing:.08em;color:#fff;text-shadow:0 1px 2px #0009;font:800 10px system-ui,sans-serif;position:absolute;top:3px;left:6px}.tl-flag{color:#7dffb2;text-shadow:0 1px 2px #0009;margin-left:-7px;font-size:16px;line-height:1;position:absolute;top:-18px}.storm-fog.buried{background:radial-gradient(#f5faff8c 0%,#fafcfff7 70%)}.storm-doom{pointer-events:none;opacity:0;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:6px;transition:opacity .8s;display:flex;position:absolute;inset:0}.storm-doom.show{opacity:1}.storm-doom b{letter-spacing:.06em;color:#274a6b;text-shadow:0 2px #fffc,0 0 18px #ffffffe6;font:900 clamp(26px,6vw,46px) system-ui,sans-serif}.storm-doom span{color:#3d6a91;font:700 16px system-ui,sans-serif}.bar{background:#ffffff2e;border-radius:4px;height:8px;margin:6px 0 2px;overflow:hidden}.bar i{background:#35e06b;border-radius:4px;height:100%;display:block}@font-face{font-family:Lilita One;src:url(/fonts/LilitaOne-Regular.woff2)format("woff2");font-weight:400;font-style:normal;font-display:swap}:root{--display:"Lilita One", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;--gold:#ffd84a;--gold-dark:#e8a317;--blue:#2e86de;--ink:#274a6b}.fun,.fun-sm,.screen-header h1,.group,.big,.logo{font-family:var(--display);letter-spacing:.02em;font-weight:400}.fun-sm{color:#fff;text-shadow:0 2px #1428468c;font-size:20px}.screen-header h1{color:#fff;-webkit-text-stroke:3px var(--ink);paint-order:stroke fill;text-shadow:0 4px #14284680;font-size:34px}.big{color:var(--gold);-webkit-text-stroke:2px #274a6be6;paint-order:stroke fill;text-shadow:0 3px #14284673}.group{opacity:1;color:#bfe3f5;letter-spacing:.1em;text-shadow:0 2px #14284680;font-size:16px}.logo{text-align:center;color:#fff;-webkit-text-stroke:4px var(--ink);paint-order:stroke fill;text-shadow:0 6px #1428468c;margin:6px 0 14px;font-size:clamp(38px,11vw,60px);line-height:1}.logo span{background:linear-gradient(#fff 35%,#bfe3f5);-webkit-background-clip:text;background-clip:text;animation:2.4s ease-in-out infinite bob;display:inline-block}.logo .sp{width:.3em}@keyframes bob{0%,to{transform:translateY(0)rotate(-1deg)}50%{transform:translateY(-6px)rotate(1deg)}}@media (prefers-reduced-motion:reduce){.logo span,.tab-play:after{animation:none}}.screen-shell{padding:0}.shell-header{padding:calc(env(safe-area-inset-top) + 8px) 14px 6px;align-items:center;gap:8px;display:flex}.shell-header .spacer{flex:1}.pill{color:var(--gold);font:400 18px var(--display);background:#0a14288c;border:2px solid #ffffff2e;border-radius:999px;align-items:center;gap:6px;padding:4px 12px 4px 6px;display:flex}.icon{justify-content:center;align-items:center;line-height:1;display:inline-flex}.icon img{object-fit:contain;width:1.4em;height:1.4em}.icon-btn{color:#fff;background:#0a14288c;border:2px solid #ffffff38;border-radius:22px;justify-content:center;align-items:center;width:44px;height:44px;font-size:22px;display:flex}.screen-shell .screen-content{padding:4px 14px 12px}.tabbar{padding:6px 6px calc(env(safe-area-inset-bottom) + 6px);background:linear-gradient(#0e1c2edb,#0a1422f5);border-top:2px solid #ffffff24;justify-content:space-around;align-items:flex-end;display:flex}.tab{color:#ffffff9e;font:400 13px var(--display);letter-spacing:.04em;background:0 0;border:0;flex-direction:column;flex:1;align-items:center;gap:2px;min-height:56px;padding:6px 2px;display:flex}.tab-icon{font-size:26px}.tab-icon img{width:34px;height:34px}.tab.active{color:var(--gold)}.tab.active .tab-icon{filter:drop-shadow(0 0 8px #ffd84a99);transform:translateY(-2px)scale(1.12)}.tab-play{color:#fff;flex:0 0 100px;justify-content:center;align-self:center;margin-top:-38px;position:relative}.tab-play .tab-icon{background:radial-gradient(circle at 35% 30%, #5db2ff, var(--blue) 60%, #1b5fa8);border:4px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:78px;height:78px;font-size:34px;display:flex;box-shadow:0 6px #14487d,0 10px 18px #00000059}.play-tri{clip-path:polygon(0 0,100% 50%,0 100%);filter:drop-shadow(0 2px #14487d99);background:#fff;border-radius:4px;width:32px;height:36px;margin-left:6px;display:block}.tab-play:after{content:"";pointer-events:none;border-radius:50%;width:86px;height:86px;margin:-43px 0 0 -43px;animation:2.2s ease-out infinite ring;position:absolute;top:50%;left:50%;box-shadow:0 0 #5db2ffb3}.tab-play:active .tab-icon{transform:translateY(4px);box-shadow:0 2px #14487d,0 4px 10px #00000059}@keyframes ring{0%{box-shadow:0 0 #5db2ffa6}80%,to{box-shadow:0 0 0 12px #5db2ff00}}.rider-card{background:linear-gradient(135deg,#2e86de8c,#5d3ca080);border:2px solid #ffffff40}.chips{grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px;display:grid}.chip{color:#fff;text-align:center;background:#ffffff1a;border:2px solid #ffffff29;border-radius:16px;flex-direction:column;align-items:center;gap:2px;padding:10px 4px;font-size:14px;display:flex}.chip-emoji{font-size:30px}.chip .chip-pic{background:0 0;width:72px;height:60px}.chip .chip-pic .preview-emoji{font-size:34px}.stat-tiles{grid-template-columns:repeat(2,1fr);gap:8px;display:grid}.tile{background:#ffffff1f;border-radius:16px;flex-direction:column;align-items:flex-start;gap:0;padding:10px 12px;display:flex}.tile b{color:var(--gold);font-size:24px}.tile span{opacity:.8;font-size:13px}.tile-icon{font-size:22px}.card.rider{grid-template-columns:56px 1fr auto;align-items:center;gap:12px;display:grid}.card.rider.locked{opacity:.8}.card.rider.current{border:2px solid var(--gold)}.rider-face{background:#ffffff1f;border-radius:16px;width:56px;height:56px;font-size:40px}.rider-face img{border-radius:12px;width:52px;height:52px}.buy{font-family:var(--display);letter-spacing:.03em;font-weight:400;box-shadow:0 4px #14487d}.buy:active{transform:translateY(3px);box-shadow:0 1px #14487d}.buy:disabled{box-shadow:none;opacity:.55}.world-row{scroll-snap-type:none;-webkit-overflow-scrolling:touch;gap:12px;margin:0 -14px;padding:4px 14px 12px;display:flex;overflow-x:hidden}.world-card{scroll-snap-align:center;color:#fff;text-align:left;background:#0c1622b8;border:3px solid #fff9;border-radius:22px;flex-direction:column;flex:0 0 min(82vw,340px);padding:0;display:flex;overflow:hidden;box-shadow:0 8px #0a142873}.world-card:disabled{opacity:1}.world-card:not(:disabled):active{transform:translateY(3px);box-shadow:0 4px #0a142873}.world-banner{background:linear-gradient(160deg, var(--c1), var(--c2));justify-content:center;align-items:center;height:150px;display:flex;position:relative;overflow:hidden}.world-banner img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.world-emoji{filter:drop-shadow(0 6px #14284659);font-size:76px;position:relative}.world-card.locked .world-banner{filter:grayscale(.85)brightness(.6)}.world-body{flex-direction:column;gap:6px;padding:12px 14px 14px;display:flex}.world-name{color:#fff;text-shadow:0 3px #14284699;font-size:26px}.world-stats{align-items:center;gap:14px;margin-top:4px;display:flex}.ring{background:conic-gradient(var(--gold) var(--p), #ffffff2e 0);border-radius:50%;justify-content:center;align-items:center;width:62px;height:62px;display:flex;position:relative}.ring:before{content:"";background:#0e1c2eeb;border-radius:50%;position:absolute;inset:7px}.ring b{font:400 17px var(--display);color:var(--gold);position:relative}.world-note{background:#ffffff1f;border-radius:12px;margin-top:4px;padding:8px 10px;font-size:14px}.world-go{background:var(--blue);font:400 18px var(--display);border-radius:14px;align-self:flex-start;margin-top:6px;padding:8px 18px;box-shadow:0 4px #14487d}.world-card.soon .world-banner{filter:saturate(.5)}.world-head{background:linear-gradient(135deg, var(--c1), var(--c2));color:#fff;border:2px solid #ffffff80;border-radius:18px;align-items:center;gap:12px;margin-bottom:12px;padding:12px;display:flex}.world-head .fun{text-shadow:0 3px #14284699;font-size:24px}.world-head .card-sub{color:#fff}.back-chip{color:#fff;font:400 16px var(--display);background:#0a14288c;border:0;border-radius:12px;padding:8px 12px}.level-card{grid-template-columns:64px 1fr auto;align-items:center;gap:12px;display:grid}.level-num{color:#fff;justify-content:center;align-items:center;width:64px;height:64px;font-size:24px;display:flex;position:relative}.level-num .node-art,.level-num .node-art img{width:100%;height:100%;position:absolute;inset:0}.level-num .node-label{color:#1b2d4a;text-shadow:0 1px #fff9;position:relative}.level-num.node-locked .node-label{color:#dfe6ee;text-shadow:none}.level-num .node-boss-emblem{filter:drop-shadow(0 2px 3px #00000080);width:44px;height:44px;margin-left:-22px;position:absolute;top:-14px;left:50%}.level-num .node-boss-emblem img{width:100%;height:100%}.level-card.boss{background:#ff5a462e;border:2px solid #ff7b6b}.preview{background:radial-gradient(circle at 50% 35%,#ffffff47,#ffffff0f);border-radius:16px;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.preview img{object-fit:contain;width:100%;height:100%}.preview-emoji{font-size:34px}.preview.locked img{filter:grayscale(.85)brightness(.5)}.preview.locked .preview-emoji{opacity:.55}.preview-lock{text-shadow:0 1px 3px #0009;font-size:16px;position:absolute;bottom:2px;right:4px}.card.with-pic{grid-template-columns:112px 1fr auto;align-items:center;gap:12px;display:grid}.card.with-pic .preview{width:112px;height:84px}.card.with-pic>div:last-child{flex-direction:column;gap:6px;display:flex}.card.rider .preview-rider,.rider-face.preview{width:64px;height:76px}.card.rider{grid-template-columns:72px 1fr auto}.rider-face.preview{background:radial-gradient(circle at 50% 35%,#ffffff4d,#ffffff0f)}.sheet-backdrop{z-index:40;background:#080e188c;align-items:flex-end;animation:.18s ease-out fade;display:flex;position:fixed;inset:0}.sheet{width:100%;max-height:88vh;padding:8px 16px calc(env(safe-area-inset-bottom) + 16px);color:#fff;background:linear-gradient(#27496d,#16293f);border-top:3px solid #ffffff80;border-radius:26px 26px 0 0;animation:.24s cubic-bezier(.2,.9,.3,1.1) rise;overflow-y:auto}.sheet-grab{background:#ffffff59;border-radius:3px;width:44px;height:5px;margin:4px auto 10px}.sheet-title{text-shadow:0 3px #0a142899;font-size:28px}.sheet-sub{color:var(--gold);letter-spacing:6px;margin:8px 0 2px;font-size:30px}.star-row{opacity:.85;align-items:center;gap:8px;padding:3px 0;font-size:15px;display:flex}.star-row.done{opacity:1;color:#9ff5c0}.star-mark{color:var(--gold);width:20px}.star-open{color:#9ff5c0;background:#7bed9f33;border-radius:8px;margin-left:auto;padding:2px 8px;font-size:11px}.hazards{flex-wrap:wrap;gap:8px;display:flex}.hazard{background:#ffffff1f;border-radius:12px;align-items:center;gap:6px;padding:6px 10px;font-size:14px;display:flex}.hazard.deadly{background:#ff5a4647;border:1px solid #ff826e99}.hazard-icon{font-size:20px}.hazard b{font-family:var(--display);color:var(--gold);font-weight:400}.ride-check{background:#ffffff1f;border-left:6px solid #7bed9f;border-radius:16px;flex-direction:column;gap:2px;padding:12px;display:flex}.ride-check.tough{border-color:#ffd84a}.ride-check.very-tough{border-color:#ff6b6b}.ride-check.easy{border-color:#5db2ff}.sheet-play{background:linear-gradient(#5db2ff, var(--blue));color:#fff;width:100%;min-height:64px;font:400 28px var(--display);letter-spacing:.06em;text-shadow:0 3px #0a142873;border:0;border-radius:20px;margin-top:16px;display:block;box-shadow:0 6px #14487d}.sheet-play:active{transform:translateY(4px);box-shadow:0 2px #14487d}.sheet-close{color:#ffffffb3;background:0 0;border:0;width:100%;min-height:44px;margin-top:10px;font-size:16px;display:block}@keyframes rise{0%{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}@keyframes fade{0%{opacity:0}to{opacity:1}}.confetti-layer{z-index:60;pointer-events:none;position:fixed;inset:0;overflow:hidden}.confetti-layer i{opacity:0;border-radius:2px;width:10px;height:16px;animation-name:confetti;animation-timing-function:ease-in;animation-fill-mode:forwards;position:absolute;top:-16px}@keyframes confetti{0%{opacity:1;transform:translate(0)rotate(0)}to{transform:translate(var(--dx), 105vh) rotate(var(--rot));opacity:1}}.world-card.unlocking{animation:1.1s ease-out unlock}.world-card.is-new:after{content:"NEW!";color:#fff;font:400 18px var(--display);background:#ff5a46;border-radius:12px;padding:4px 12px;position:absolute;top:10px;right:10px;transform:rotate(6deg)}.world-card{position:relative}@keyframes unlock{0%{filter:grayscale()brightness(.6);transform:scale(.92)}55%{filter:none;transform:scale(1.06)}to{transform:scale(1)}}@media (prefers-reduced-motion:reduce){.world-card.unlocking,.sheet,.sheet-backdrop{animation:none}}.seg{background:#0a142880;border-radius:16px;gap:6px;margin:6px 0 10px;padding:4px;display:flex}.seg-btn{color:#ffffffb3;min-height:40px;font:400 17px var(--display);background:0 0;border:0;border-radius:12px;flex:1}.seg-btn.on{background:var(--blue);color:#fff;box-shadow:0 3px #14487d}.stage{background:radial-gradient(at 50% 85%,#ffffff80,#fff0 55%),linear-gradient(#5f9fd6,#2a5b8d);border:3px solid #ffffff73;border-radius:22px;height:230px;position:relative;overflow:hidden}.stage:after{content:"";pointer-events:none;background:radial-gradient(#ffffffb3,#fff0 70%);border-radius:50%;height:26px;position:absolute;bottom:14px;left:12%;right:12%}.turntable-canvas{width:100%;height:100%;position:absolute;inset:0}.stage-name{font:400 26px var(--display);color:#fff;text-shadow:0 3px #14284699;max-width:60%;position:absolute;top:10px;left:14px}.stage-badge{color:#fff;font:400 15px var(--display);letter-spacing:.06em;background:#0a142899;border-radius:12px;padding:4px 12px;position:absolute;top:12px;right:12px}.stage-badge.on{background:#2fa84f}.stage-badge.locked{background:#5b6672}.stage-lock{pointer-events:none;background:#080e1847;justify-content:center;align-items:center;font-size:56px;display:flex;position:absolute;inset:0}.stage-fallback{justify-content:center;align-items:center;font-size:90px;display:flex;position:absolute;inset:0}.pips{gap:5px;margin:12px 0 2px;display:flex}.pips i{background:#ffffff2e;border-radius:6px;flex:1;height:12px}.pips i.on{background:#35e06b;box-shadow:0 0 6px #35e06b99}.pips i.max{background:var(--gold);box-shadow:0 0 8px #ffd84acc}.pip-label{margin-bottom:8px}.goal-box{background:#ffffff1f;border-radius:14px;margin-top:10px;padding:10px 12px;font-size:16px}.garage-actions{gap:10px;margin-top:12px;display:flex}.big-buy{flex:1;min-height:54px;font-size:18px}.big-buy.equip{background:#2fa84f;box-shadow:0 4px #1b6a31}.big-buy.equip:disabled{box-shadow:none;background:#3a4a5a}.strip{scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;gap:10px;margin-top:4px;padding:14px 2px 6px;display:flex;overflow-x:auto}.thumb{color:#fff;scroll-snap-align:center;background:#ffffff1a;border:2px solid #ffffff29;border-radius:16px;flex-direction:column;flex:0 0 104px;align-items:center;gap:2px;padding:6px 4px 8px;font-size:12px;display:flex}.thumb.sel{border-color:var(--gold);background:#ffd84a29}.thumb.equipped .thumb-name:after{content:" ✓";color:#7bed9f}.thumb .preview{width:92px;height:66px}.thumb-name{font:400 13px var(--display);text-align:center;min-height:28px;line-height:1.1}.thumb-lv{opacity:.8}.rider-blurb{text-align:center;color:#e8f6ff;margin:12px 0 6px;font-size:17px;font-style:italic}.thumb .preview-rider{width:92px;height:66px}.garage-info>.big-buy{width:100%;margin-top:12px;display:block}.screen-shell .shell-header,.screen-shell .screen-content{padding-left:max(14px,50% - 320px);padding-right:max(14px,50% - 320px)}.tabbar{padding-left:max(6px,50% - 320px);padding-right:max(6px,50% - 320px)}.screen:not(.screen-shell) .screen-content,.screen:not(.screen-shell) .screen-header,.screen:not(.screen-shell) .screen-footer{width:100%;max-width:640px;margin-left:auto;margin-right:auto}.sheet{max-width:640px;margin:0 auto}.stage{height:clamp(220px,32vh,360px)}.stage-tall{height:clamp(280px,40vh,440px)}.world-row{margin-left:0;margin-right:0;padding-left:max(14px,50% - 320px);padding-right:max(14px,50% - 320px)}.stage-hint{text-align:center;color:#ffffffbf;pointer-events:none;text-shadow:0 1px 2px #0006;font-size:12px;position:absolute;bottom:8px;left:0;right:0}.turntable-canvas{cursor:grab}.stage-lock{background:#0a142899;border-radius:50%;width:48px;height:48px;font-size:26px;inset:auto auto 12px 14px}.card.trophy{grid-template-columns:48px 1fr auto;align-items:center;gap:12px;display:grid}.trophy-badge{font-size:34px}.trophy-badge img{width:44px;height:44px}.card.trophy.tier-0 .trophy-badge{filter:grayscale();opacity:.6}.card.trophy.tier-3{border:2px solid var(--gold)}.medals{gap:6px;margin-top:4px;font-size:16px;display:flex}.medals span{opacity:.3;filter:grayscale()}.medals span.got{opacity:1;filter:none}.celebrate{z-index:70;background:#080e18c7;justify-content:center;align-items:center;animation:.2s ease-out fade;display:flex;position:fixed;inset:0}.rays{background:repeating-conic-gradient(from 0deg, #ffd84a38 0 10deg, #ffd84a00 10deg 20deg);width:160vmax;height:160vmax;margin:-80vmax 0 0 -80vmax;animation:14s linear infinite spin;position:absolute;top:50%;left:50%;-webkit-mask-image:radial-gradient(circle,#000 8%,#0000 45%);mask-image:radial-gradient(circle,#000 8%,#0000 45%)}@keyframes spin{to{transform:rotate(360deg)}}.celebrate-card{text-align:center;color:#fff;background:linear-gradient(#2d5b8a,#17304a);border:4px solid #fff;border-radius:28px;flex-direction:column;align-items:center;gap:10px;width:min(88vw,420px);padding:22px 18px 18px;animation:.5s cubic-bezier(.2,1.3,.4,1) pop;display:flex;position:relative;box-shadow:0 12px #0a142880}.celebrate-title{font:400 34px var(--display);color:var(--gold);-webkit-text-stroke:2px #274a6b;paint-order:stroke fill;text-shadow:0 4px #0a142880;letter-spacing:.04em}.celebrate-name{font:400 30px var(--display);text-shadow:0 3px #0a14288c}.celebrate-emoji{filter:drop-shadow(0 8px #0a142859);font-size:96px;animation:2.4s ease-in-out infinite bob}.celebrate-reward{font:400 26px var(--display);color:#9ff5c0}.celebrate-pic{width:100%;height:190px}.celebrate-actions{width:100%}.celebrate-card .sheet-play{margin-top:8px}@keyframes pop{0%{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}.confetti-layer{z-index:80}@media (prefers-reduced-motion:reduce){.rays,.celebrate-card,.celebrate-emoji{animation:none}}.screen-content.enter>*{animation:.26s ease-out both tabIn}.screen-content.enter>:nth-child(2){animation-delay:35ms}.screen-content.enter>:nth-child(3){animation-delay:70ms}.screen-content.enter>:nth-child(4){animation-delay:.105s}.screen-content.enter>:nth-child(n+5){animation-delay:.14s}@keyframes tabIn{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}.screen{animation:.18s ease-out fade}.tip{background:#ffd84a24;border:1px solid #ffd84a66;border-radius:14px;margin:14px 0 6px;padding:10px 12px;font-size:14px;line-height:1.35}@media (prefers-reduced-motion:reduce){.screen-content.enter>*,.screen{animation:none}}.screen-shell.shell-home{background:linear-gradient(#13294930,#13294921 36%,#0c1c30df 100%),url(/art/ui/shell/backdrop-home.jpg) 50% 52%/cover}.screen-shell.shell-trophies{background:linear-gradient(#101d32a8,#101d32d9),url(/art/ui/trophies/trophy-room-bg.jpg) 50%/cover}.home-wordmark{object-fit:contain;width:min(310px,86%);height:auto;max-height:clamp(94px,20vh,160px)}.screen-shell .home-next-run{background:linear-gradient(132deg,#153659f5,#234678f5);border:2px solid #fff}.home-run-action{justify-items:end;gap:4px;display:grid}.home-launch-label{color:#16243a;font:400 18px var(--display);background:#ffd758;border-radius:12px;padding:6px 14px}.screen-shell .home-goal{background:#142944ee;flex-direction:column;align-items:stretch;gap:3px;display:flex}.home-goal .bar{margin:5px 0 0}.stage.stage-workshop{background:linear-gradient(#16223860,#16223818),url(/art/ui/garage/backdrop.jpg) 50% 60%/cover}.world-card:focus-visible,.home-next-run:focus-visible,.home-goal:focus-visible,.tab:focus-visible{outline-offset:2px;outline:3px solid #ffd758}.level-route{background:#173450 50%/cover;border-radius:20px;gap:16px;padding:24px 12px;display:grid}.level-route-alpine{background-image:linear-gradient(#162b4360,#152b4355),url(/art/ui/worlds/map-bg-w1.jpg)}.level-route-city{background-image:linear-gradient(#162b4360,#152b4355),url(/art/ui/worlds/map-bg-w2.jpg)}.level-route-ice-caves{background-color:#14405f;background-image:linear-gradient(#0f2a4a99,#123a5a88),url(/art/ui/worlds/map-bg-w3.jpg)}.level-route-frozen-forest{background-color:#1d4d3a;background-image:linear-gradient(#16304a66,#15402d66),url(/art/ui/worlds/map-bg-w4.jpg)}.level-route .level-card{background:#162b43e8;margin:0}.level-route .level-current{border:2px solid #ffdb67;box-shadow:0 4px #112537,0 0 18px #ffda5850}.level-next-label{color:#ffdf68;font:400 15px var(--display)}.pips-art{align-items:center;gap:2px}.pips-art .pip{flex:1;display:flex}.pips-art .pip img{width:100%;max-width:34px;height:auto;margin:0 auto}.stat-name{align-items:center;gap:8px;display:flex}.stat-icon,.stat-icon img{width:22px;height:22px}.thumb .preview.portrait{background:0 0;width:80px;height:80px}.thumb .preview.portrait .icon{justify-content:center;width:100%;height:100%;display:flex}.thumb .preview.portrait img{width:auto;height:100%}.stage-tall{background:url(/art/ui/riders/frame-glow.png) 50% 60%/80% no-repeat,radial-gradient(at 50% 85%,#ffffff80,#fff0 55%),linear-gradient(#5f9fd6,#2a5b8d)}.boost-icon,.boost-icon img{width:36px;height:36px}.boost-title{align-items:center;gap:8px;display:flex}.boost-locked .boost-icon,.boost-locked .boost-icon img{width:64px;height:64px}.world-row{scrollbar-width:none}.world-row::-webkit-scrollbar{display:none}.world-dots{justify-content:center;gap:8px;margin:4px 0 8px;display:flex}.world-dots i{background:#ffffff4d;border-radius:50%;width:8px;height:8px;transition:background .2s,transform .2s}.world-dots i.on{background:var(--gold);transform:scale(1.35)}.profile-btn{background:0 0;border:0;width:44px;height:44px;padding:0}.profile-badge{color:#fff;letter-spacing:.5px;background:#2e86de;border:2px solid #ffffffb3;border-radius:22px;flex:none;justify-content:center;align-items:center;width:44px;height:44px;font-size:16px;font-weight:800;display:inline-flex}.profile-row{padding:8px 10px}.profile-row.active{box-shadow:inset 0 0 0 2px #ffd84a}.profile-pick{min-height:48px;color:inherit;font:inherit;text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:12px;padding:0;display:flex}.profile-pick .card-sub{margin-left:auto}.profile-row .icon-btn{flex:none;width:40px;height:40px;font-size:18px}
