@charset "UTF-8";
:root{--ink:#253048;--paper:#fff6e4;--coral:#ff744c;--yellow:#ffd55a;--blue:#527ef4;--muted:#727789;--line:#e7deca;--shadow:0 8px 0 rgba(53,45,39,.08);font-family:"Trebuchet MS",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a,select{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}button:focus-visible,a:focus-visible,select:focus-visible{outline:4px solid var(--blue);outline-offset:5px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}
#game{height:100dvh;min-height:320px;position:relative;overflow:hidden;isolation:isolate}#race-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}body.racing{overscroll-behavior:none}.topbar{position:absolute;top:0;left:0;right:0;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:18px 30px;pointer-events:none;gap:12px}.topbar>*{pointer-events:auto}.club-brand{display:flex;align-items:center;gap:10px;background:rgba(255,248,230,.94);border-radius:15px;padding:5px 13px 5px 6px;box-shadow:0 3px 0 #0000000b}.club-brand img{height:42px;width:58px;object-fit:contain}.club-brand span{font-size:10px;letter-spacing:2px;font-weight:900;line-height:1.5;display:block}.club-brand b{display:block;letter-spacing:3px}.toolbar{display:flex;gap:8px;align-items:center}.icon-button,.language-label{border:1px solid #fff7e97a;background:rgba(255,248,230,.94);border-radius:14px;height:44px;min-width:44px;display:grid;place-items:center;font-weight:900;color:var(--ink);box-shadow:0 3px 0 #0000000b}.icon-button{font-size:24px}.icon-button[aria-pressed=false]{color:#8c8790}.language-label{display:flex;padding:0 8px;gap:4px}.language-label select{border:0;background:transparent;font-weight:900;font-size:12px;color:var(--ink);padding:6px 0}.pad-indicator{padding:9px;border-radius:14px;background:var(--paper)}
.loading{position:absolute;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--paper);text-align:center;padding:25px}.loading h1{font-size:48px;line-height:.98;letter-spacing:-3px;margin:15px}.loading h1 b{display:block;color:var(--coral);font-size:62px}.loading p{color:var(--muted);font-size:15px}.loading-wheel{font-size:52px;color:var(--coral);animation:turn 3s linear infinite}.loading-line{width:150px;height:6px;border-radius:10px;background:linear-gradient(90deg,var(--yellow),var(--coral),var(--yellow));background-size:200%;animation:load 1.2s infinite}.loading.fading{opacity:0;pointer-events:none;transition:opacity .35s}
.menu-layer{position:absolute;inset:0;z-index:10;overflow:auto;padding:100px 4.5vw 32px;background:linear-gradient(90deg,#fff6e4 0%,#fff6e4fa 24%,#fff6e4e0 38%,#fff6e400 70%)}#screen{min-height:100%;outline:none}.menu-layer.selection{background:#fff6e4e8;backdrop-filter:blur(5px)}.home-screen{display:flex;min-height:calc(100dvh - 132px);align-items:center;gap:32px}.home-copy{width:min(490px,52%);padding:8px 0 30px}.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:900;letter-spacing:2.5px;text-transform:uppercase;color:#a46541}.eyebrow:before{content:"";width:19px;height:3px;border-radius:8px;background:currentColor}.edition{display:inline-block;transform:rotate(-5deg);font-size:11px;background:var(--yellow);border-radius:7px;padding:7px 12px;font-weight:900;letter-spacing:1px;margin-left:10px}.game-title{font-size:clamp(63px,8vw,118px);font-weight:1000;letter-spacing:-7px;line-height:.83;margin:32px 0 20px;transform:rotate(-3deg);text-shadow:0 5px 0 #fff6e4,0 8px 0 #25304810}.game-title span{display:block;color:var(--coral);font-size:1.38em;letter-spacing:-9px;-webkit-text-stroke:1.5px var(--coral)}.tagline{font-weight:900;font-size:clamp(16px,1.7vw,22px);line-height:1.45;margin:30px 0 22px;max-width:350px}.home-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:min(375px,100%)}.button{border:0;border-radius:15px;min-height:51px;padding:13px 21px;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:900;font-size:16px;line-height:1.2;box-shadow:0 4px 0 #25304812;transition:transform .13s,background .13s}.button:hover{transform:translateY(-2px)}.button:active{transform:translateY(2px);box-shadow:0 1px 0 #25304812}.primary{background:var(--coral);color:#fff;box-shadow:0 5px 0 #cc5037}.yellow{background:var(--yellow);color:var(--ink);box-shadow:0 5px 0 #dfa93b}.light{background:#fffdf6;color:var(--ink);border:2px solid #e9dfcb}.text-button{background:transparent;box-shadow:none;font-size:13px;color:var(--muted);min-height:40px}.home-actions>.primary{grid-column:1/-1;justify-content:space-between;font-size:21px;min-height:65px;padding-inline:25px}.home-actions>.text-button{justify-content:flex-start;padding-left:2px}.home-meta{display:flex;gap:13px;flex-wrap:wrap;margin-top:25px;font-size:11px;color:var(--muted);font-weight:700}.home-meta span:before{content:"✦ ";color:var(--coral)}.scene-label{position:absolute;right:7%;bottom:8%;background:var(--paper);padding:14px 22px;border-radius:15px;transform:rotate(-4deg);box-shadow:0 5px 0 #25304816}.scene-label small{display:block;font-size:10px;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-bottom:5px}.scene-label b{font-size:24px}.home-footer{font-size:10px;position:absolute;bottom:16px;left:4.5vw;color:var(--muted)}
.selection-screen{max-width:1200px;margin:0 auto}.step-line{display:flex;align-items:center;gap:14px;justify-content:space-between}.back-button{background:transparent;border:0;color:var(--muted);font-size:13px;font-weight:900;padding:10px 0;display:inline-flex;gap:8px;align-items:center}.step-dots{display:flex;gap:7px}.step-dots i{width:30px;height:5px;border-radius:5px;background:#e3d8c3}.step-dots i.active{background:var(--coral)}.selection-heading{margin:18px 0 25px;display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.selection-heading h1,.info-screen h1{font-size:clamp(28px,4vw,48px);letter-spacing:-2px;line-height:1.05;margin:9px 0 0}.selection-heading p{color:var(--muted);font-size:13px;line-height:1.5;max-width:320px;margin:0}.racers-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.racer-card{position:relative;text-align:left;border:2px solid #e6dcc7;border-radius:23px;padding:13px;background:#fffcf4;color:var(--ink);box-shadow:var(--shadow);min-width:0;transition:transform .18s,border-color .18s}.racer-card:hover{transform:translateY(-5px)}.racer-card.selected{border-color:var(--racer);box-shadow:0 6px 0 color-mix(in srgb,var(--racer),transparent 70%);transform:translateY(-5px)}.select-check{position:absolute;top:12px;right:12px;width:24px;height:24px;border:2px solid #ded6c5;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:14px}.selected .select-check{background:var(--racer);border-color:var(--racer);color:#fff}.portrait{width:100%;height:148px;display:block;overflow:visible}.racer-card h2{font-size:23px;letter-spacing:-.7px;margin:1px 0 5px}.racer-card p{min-height:35px;font-size:11px;line-height:1.5;color:var(--muted);margin:0 0 15px}.stat{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px;font-size:10px;font-weight:700;margin-top:7px}.stat-bar{display:flex;gap:3px}.stat-bar i{height:6px;width:11px;border-radius:5px;background:#e9e2d5}.stat-bar i.filled{background:var(--racer)}.selection-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:25px;padding-top:21px;border-top:2px solid #e9dfcd}.selected-info{display:flex;align-items:center;gap:15px}.selected-info strong{font-size:20px}.selected-info small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.selected-dot{width:36px;height:36px;display:grid;place-items:center;background:var(--coral);border-radius:11px;font-size:22px;color:white}.selection-footer>.button{min-width:205px}.cup-toggle{display:flex;gap:8px;background:#e8dfcc;border-radius:13px;padding:4px}.cup-toggle button{border:0;background:transparent;border-radius:9px;min-height:37px;padding:8px 14px;font-weight:900;font-size:12px;color:var(--muted)}.cup-toggle button.active{background:#fffdf6;color:var(--ink);box-shadow:0 2px 0 #2530480a}
.tracks-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.track-card{background:#fffdf5;position:relative;border:2px solid #e6dcc7;border-radius:20px;overflow:hidden;text-align:left;padding:0;color:var(--ink);box-shadow:var(--shadow);transition:transform .15s,border-color .15s}.track-card.selected{border-color:var(--world);transform:translateY(-4px);box-shadow:0 5px 0 color-mix(in srgb,var(--world),transparent 70%)}.track-art{width:100%;height:133px;display:block}.track-card .track-copy{display:block;padding:14px}.track-card h2{font-size:18px;letter-spacing:-.5px;margin:0 0 6px}.track-card p{font-size:10px;color:var(--muted);line-height:1.4;min-height:28px;margin:0}.track-data{display:flex;align-items:center;justify-content:space-between;margin-top:13px;font-size:10px;font-weight:900}.track-record{display:block;font-family:ui-monospace,monospace;font-size:11px;font-weight:900;color:var(--muted);margin-top:10px}.difficulty{display:flex;gap:2px}.difficulty i{width:6px;height:10px;border-radius:2px;background:#e8e1d4}.difficulty i.filled{background:var(--world)}.track-options{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:20px}.difficulty-picker{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.difficulty-picker button{border:2px solid #e4dac7;background:#fffaf0;border-radius:9px;padding:7px 11px;font-weight:900;color:var(--muted)}.difficulty-picker button.active{border-color:var(--ink);color:var(--ink)}.cup-note{font-size:12px;color:var(--muted);max-width:560px;line-height:1.5}.record-notice{font-size:10px;color:var(--muted);margin:15px 0 0}
.info-screen{max-width:940px;margin:0 auto}.info-intro{font-size:15px;color:var(--muted);line-height:1.6;margin-bottom:24px}.control-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.control-card{background:#fffdf5;border:2px solid var(--line);border-radius:20px;padding:23px}.control-card h2{font-size:18px;margin:0 0 16px}.control-row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;margin:12px 0;color:var(--muted)}kbd{font-family:inherit;font-weight:900;font-size:11px;border-radius:6px;padding:5px 8px;border:1px solid #dfd4bf;background:#f7edda;box-shadow:0 2px 0 #dfd4bf;color:var(--ink);white-space:nowrap}.items-explained{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:18px 0}.item-explain{background:#fffdf5;border:2px solid var(--line);border-radius:16px;padding:12px}.item-explain>span{font-size:24px}.item-explain b{display:block;margin:9px 0 5px;font-size:12px}.item-explain p{font-size:10px;line-height:1.6;color:var(--muted);margin:0}.how-tip{background:#fff0b9;border-radius:16px;padding:17px;font-size:13px;line-height:1.6}.credits-card{background:#fffdf5;border:2px solid var(--line);border-radius:24px;padding:28px;margin:25px 0;display:grid;grid-template-columns:1fr 1fr;gap:25px}.credits-card h2{font-size:17px;margin:0 0 8px}.credits-card p{color:var(--muted);font-size:13px;line-height:1.7;margin:0}.credits-card a{text-decoration:underline;text-underline-offset:3px}.info-screen>.button{margin-top:18px;width:fit-content}
.hud{position:absolute;inset:0;pointer-events:none;z-index:12;color:var(--ink)}.hud button{pointer-events:auto}.race-status{position:absolute;top:92px;left:25px;display:flex;gap:8px}.position-card{background:var(--coral);color:#fff;border-radius:19px;padding:9px 15px;min-width:93px;box-shadow:0 5px 0 #c8563b}.position-card>b{font-size:51px;font-weight:1000;line-height:1}.position-card>span{font-size:14px;font-weight:900}.lap-card{background:var(--paper);border-radius:16px;padding:10px 14px;box-shadow:0 4px 0 #25304818;min-width:130px}.lap-card>span:first-child{font-size:9px;font-weight:900;letter-spacing:2px;display:block;color:var(--muted)}.lap-card>b{display:block;font-size:29px;line-height:1.2}.lap-card>b small{font-size:15px;color:var(--muted)}#hud-world{font-size:8px;display:block;font-weight:900;letter-spacing:.6px;color:var(--muted);margin-top:4px}.timer-card{position:absolute;top:92px;left:50%;transform:translateX(-50%);background:var(--paper);border-radius:16px;display:flex;gap:20px;padding:14px 20px;box-shadow:0 4px 0 #25304818}.timer-card span{display:block;font-size:8px;font-weight:900;letter-spacing:1.6px;color:var(--muted);margin-bottom:4px}.timer-card b{font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap}.record-time{padding-left:18px;border-left:1px solid #e1d6c2}.record-time b{color:#b1743e}.cup-round{position:absolute;top:168px;left:50%;transform:translateX(-50%);font-size:10px;font-weight:900;border-radius:10px;background:var(--paper);padding:8px 15px;white-space:nowrap}.item-area{position:absolute;bottom:86px;left:26px;display:flex;align-items:flex-end;gap:12px}.item-slot{height:114px;width:101px;border:3px solid #fff6e4;border-radius:20px;background:#293451e8;color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-shadow:0 4px 0 #00000020}.item-slot.ready{background:var(--yellow);color:var(--ink);animation:item-pop .5s ease-out}.item-slot>span{font-size:37px;font-weight:900;line-height:1.1}.item-slot>small{font-size:8px;font-weight:900;letter-spacing:.6px}.item-slot kbd{font-size:8px;padding:3px 7px;box-shadow:none}.drift-meter{background:var(--paper);border-radius:13px;padding:11px;width:136px;font-weight:900;opacity:.55;transition:opacity .15s}.drift-meter.charging{opacity:1}.drift-meter>span{font-size:8px;letter-spacing:1px}.drift-meter>div{height:6px;border-radius:9px;background:#e3d8c3;margin:8px 0;overflow:hidden}.drift-meter i{height:100%;width:0%;display:block;background:#6acde7;transition:background .1s}.drift-meter b{font-size:10px;letter-spacing:5px;color:#68c9e5}.map-speed{position:absolute;bottom:40px;right:25px;display:flex;align-items:flex-end;gap:12px}.speed-card{text-align:right;text-shadow:0 3px 0 #25304828;color:#fff}.speed-card strong{font-size:68px;line-height:1;font-weight:1000;font-variant-numeric:tabular-nums;letter-spacing:-3px}.speed-card span{display:block;font-size:10px;letter-spacing:2px;font-weight:900;padding-right:4px;margin-top:4px}.speed-card b{display:block;font-size:11px;background:var(--yellow);color:var(--ink);border-radius:7px;padding:5px;margin-top:7px;text-shadow:none}.minimap{width:172px;height:164px;background:#fff6e4e8;border:2px solid #fff5e4;border-radius:22px;padding:8px;box-shadow:0 4px 0 #25304818;display:flex;flex-direction:column;align-items:center}.minimap canvas{display:block;width:100%;height:132px}.minimap span{font-size:8px;font-weight:900;letter-spacing:1.5px}.keyboard-hint{position:absolute;bottom:18px;left:26px;color:white;font-size:10px;font-weight:900;background:#26334f80;padding:8px 12px;border-radius:9px}.countdown{position:absolute;top:43%;left:50%;transform:translate(-50%,-50%) rotate(-7deg);font-weight:1000;font-size:clamp(100px,19vw,200px);z-index:20;color:var(--paper);text-shadow:0 8px 0 var(--coral),0 13px 25px #25304860;pointer-events:none;letter-spacing:-9px}.countdown.pop{animation:count .75s ease-out}.toast{position:absolute;top:205px;left:50%;transform:translateX(-50%) rotate(-2deg);z-index:35;background:var(--paper);border-radius:12px;padding:12px 21px;font-size:15px;font-weight:900;text-align:center;box-shadow:0 4px 0 #25304820;white-space:nowrap;max-width:95%;overflow:hidden;text-overflow:ellipsis}
.touch-controls{position:absolute;inset:0;z-index:15;pointer-events:none}.touch-controls button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;border:3px solid #fff6e4b0;background:#fff6e4d9;border-radius:24px;color:var(--ink);font-weight:900;font-size:27px;width:68px;height:62px;box-shadow:0 4px 0 #25304822}.touch-controls button.pressed{transform:translateY(3px);background:var(--yellow);box-shadow:none}.touch-steering{position:absolute;left:18px;bottom:25px;display:flex;gap:10px}.touch-actions{position:absolute;right:18px;bottom:25px;display:flex;gap:9px;align-items:flex-end}.touch-controls .touch-drift{font-size:10px;width:66px;height:52px;background:#a78beaeb;color:#fff}.touch-controls .touch-gas{background:#ff744ce8;color:#fff;height:76px}.touch-controls .touch-brake{height:55px;background:#fff6e4a8}.modal-layer{position:absolute;inset:0;z-index:45;display:flex;justify-content:center;align-items:center;overflow:auto;padding:25px;background:#25304885;backdrop-filter:blur(7px)}.pause-card{width:min(400px,100%);background:var(--paper);border-radius:28px;padding:35px;text-align:center;box-shadow:0 8px 0 #2530483a}.pause-card h2{font-size:32px;line-height:1.1;letter-spacing:-1px;margin:16px 0}.pause-card p{color:var(--muted);font-size:13px;line-height:1.6;margin:0 0 23px}.pause-card>.button{width:100%;margin-top:11px}.results-screen{max-width:1000px;margin:auto}.result-head{text-align:center;margin-bottom:25px}.result-head .eyebrow{color:#af8546}.result-head h1{font-size:48px;letter-spacing:-2px;margin:8px 0}.result-head p{color:var(--muted);font-size:13px}.trophy{font-size:62px;display:block;filter:drop-shadow(0 5px 0 #d9a36a30)}.results-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:20px}.result-stat-panel{background:#fffdf5;border:2px solid var(--line);padding:24px;border-radius:22px}.result-stat-panel .result-time{font-size:36px;font-weight:900;font-variant-numeric:tabular-nums;display:block;margin:8px 0 20px;letter-spacing:-1px}.result-stat-panel h2{font-size:13px;margin:0;color:var(--muted)}.lap-result{display:flex;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding:10px 0;font-size:12px}.lap-result b{font-variant-numeric:tabular-nums}.record-badge{display:block;background:#fff0b6;color:#926a23;padding:9px 13px;border-radius:10px;font-size:10px;font-weight:900;margin:10px 0}.standings{background:#fffdf5;border:2px solid var(--line);border-radius:22px;padding:16px}.standing{display:flex;align-items:center;gap:12px;padding:10px 13px;border-radius:12px}.standing.mine{background:#ffeec7}.standing>b{width:17px;color:var(--muted);font-size:13px}.standing .tiny-racer{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:#fff;font-weight:900}.standing strong{font-size:13px;flex:1}.standing small{font-size:10px;color:var(--muted)}.standing .standing-time{font-size:12px;font-variant-numeric:tabular-nums}.result-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:23px}.result-actions .button{min-width:170px}
@keyframes turn{to{transform:rotate(360deg)}}@keyframes load{to{background-position:200%}}@keyframes count{0%{opacity:.1;transform:translate(-50%,-50%) rotate(-7deg) scale(1.35)}25%{opacity:1}100%{transform:translate(-50%,-50%) rotate(-7deg) scale(.9)}}@keyframes item-pop{0%,100%{transform:scale(1)}35%{transform:scale(1.12)}}
@media(min-width:1500px){.home-copy{margin-left:4vw}.scene-label{right:13%}.game-title{font-size:130px}.home-actions{width:420px}.menu-layer{padding-top:115px}.racer-card{padding:20px}.portrait{height:180px}.track-art{height:158px}}
@media(max-width:1000px){.topbar{padding:14px 20px}.racers-grid,.tracks-grid{gap:10px}.racer-card{padding:10px}.portrait{height:125px}.racer-card h2{font-size:21px}.stat{font-size:9px}.stat-bar i{width:9px}.track-copy{padding:11px!important}.track-card h2{font-size:15px}.track-art{height:120px}.selection-heading p{max-width:240px}.timer-card{left:auto;right:20px;transform:none;gap:13px}.item-area{bottom:85px}.home-copy{width:53%}.game-title{letter-spacing:-4px}.game-title span{letter-spacing:-6px}}
@media(max-width:760px){.menu-layer{padding:88px 20px 25px}.topbar{padding:12px 16px}.club-brand span{display:none}.club-brand img{height:32px;width:47px}.club-brand{padding:3px 6px}.icon-button,.language-label{height:38px;min-width:38px;border-radius:12px}.icon-button{font-size:21px}.toolbar{gap:6px}.home-screen{min-height:calc(100dvh - 120px)}.home-copy{width:58%;padding-bottom:40px}.game-title{font-size:clamp(48px,10vw,78px);letter-spacing:-4px;margin:27px 0}.game-title span{letter-spacing:-5px}.tagline{font-size:15px;margin-top:25px}.edition{font-size:9px;margin:8px 0 0}.eyebrow{font-size:9px;letter-spacing:1.7px}.home-actions{grid-template-columns:1fr;gap:10px}.home-actions>.primary{min-height:54px;font-size:18px}.home-actions>.light{font-size:13px;min-height:44px}.home-actions>.text-button{padding:0;min-height:26px}.home-actions>.text-button:last-child{display:none}.home-meta{font-size:9px;gap:8px;line-height:1.6}.scene-label{right:4%;bottom:12%;padding:11px 16px}.scene-label b{font-size:20px}.scene-label small{font-size:8px}.selection-heading{align-items:flex-start;flex-direction:column;gap:10px;margin-top:12px;margin-bottom:20px}.selection-heading p{max-width:none;font-size:12px}.racers-grid,.tracks-grid{display:grid;grid-template-columns:repeat(5,180px);overflow-x:auto;padding:8px 2px 15px;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#cfbfa3 transparent;margin:0 -4px}.racer-card,.track-card{scroll-snap-align:center}.portrait{height:130px}.racer-card p{font-size:11px}.stat{font-size:10px}.stat-bar i{width:10px}.selection-footer{padding-top:15px;gap:10px;margin-top:15px;flex-wrap:wrap}.selection-footer>.button{min-width:0;flex:1;min-height:48px;font-size:14px}.selected-info strong{font-size:16px}.selected-info small{font-size:10px}.selected-dot{width:30px;height:30px;font-size:18px}.cup-toggle button{font-size:10px;padding:7px 10px}.track-options{align-items:flex-start}.cup-note{font-size:11px}.control-card{padding:16px}.control-grid{gap:10px}.control-row{font-size:10px}.control-row kbd{font-size:9px}.items-explained{grid-template-columns:repeat(3,1fr)}.credits-card{grid-template-columns:1fr;padding:22px;gap:18px}.race-status{top:73px;left:14px}.position-card{min-width:70px;padding:9px 10px;border-radius:15px}.position-card>b{font-size:40px}.position-card>span{font-size:11px}.lap-card{min-width:107px;padding:9px 10px;border-radius:13px}.lap-card>b{font-size:24px}.lap-card>span:first-child{font-size:8px}.timer-card{top:73px;right:14px;padding:12px;gap:10px;border-radius:13px}.timer-card b{font-size:13px}.timer-card span{font-size:7px;letter-spacing:1px}.record-time{display:none}.cup-round{top:152px;font-size:9px}.toast{top:178px;font-size:12px;padding:10px 14px}.minimap{width:123px;height:122px;border-radius:18px;padding:5px}.minimap canvas{height:98px}.speed-card strong{font-size:46px}.map-speed{right:14px;bottom:125px;gap:8px}.speed-card span{font-size:8px}.item-area{left:14px;bottom:125px;gap:8px;flex-direction:column;align-items:flex-start}.item-slot{width:75px;height:88px;border-radius:17px}.item-slot>span{font-size:28px}.item-slot>small{font-size:7px}.item-slot kbd{font-size:7px}.drift-meter{width:115px;padding:8px}.drift-meter>span{font-size:7px}.drift-meter b{font-size:8px}.keyboard-hint{display:none}.result-head h1{font-size:35px}.trophy{font-size:45px}.results-grid{grid-template-columns:1fr;gap:14px}.result-stat-panel{padding:19px}.result-stat-panel .result-time{font-size:29px;margin-bottom:13px}.result-actions .button{min-width:130px;font-size:13px}.home-footer{font-size:9px;left:20px}.info-screen h1{font-size:35px}.info-intro{font-size:12px}}
@media(max-width:440px){.menu-layer{background:linear-gradient(90deg,#fff6e4 0%,#fff6e4f2 20%,#fff6e4ad 45%,#fff6e420 100%)}.menu-layer.selection{background:#fff6e4f0}.home-copy{width:63%}.game-title{font-size:50px;margin-top:23px}.game-title span{font-size:1.3em}.tagline{font-size:13px;max-width:215px;line-height:1.5}.scene-label{right:4%;bottom:11%;padding:9px 11px}.scene-label b{font-size:18px}.scene-label small{letter-spacing:1px}.home-meta{max-width:210px}.race-status{gap:5px}.position-card{min-width:57px}.position-card>b{font-size:33px}.position-card>span{font-size:9px}.lap-card{min-width:88px;padding:8px}.lap-card>b{font-size:22px}#hud-world{font-size:7px;max-width:92px}.timer-card{gap:7px;padding:10px;right:11px}.timer-card b{font-size:11px}.timer-card span{font-size:6px}.control-grid{grid-template-columns:1fr}.touch-controls button{width:54px;height:57px;font-size:23px;border-radius:20px}.touch-steering{left:10px;gap:7px}.touch-actions{right:10px;gap:6px}.touch-controls .touch-drift{width:53px;font-size:9px}.touch-controls .touch-gas{height:70px}.touch-controls .touch-brake{width:45px}.map-speed{bottom:116px}.item-area{bottom:116px}.selected-info small{max-width:135px;line-height:1.4}.selection-footer>.button{max-width:160px}.track-options{gap:12px}.difficulty-picker{font-size:10px;flex-wrap:wrap}.difficulty-picker button{font-size:10px}}
@media(max-height:560px) and (min-width:600px){.topbar{padding:9px 18px}.club-brand img{height:30px}.icon-button,.language-label{height:35px;min-width:35px}.menu-layer{padding:65px 30px 20px}.home-screen{min-height:calc(100dvh - 86px)}.home-copy{padding:0;width:45%}.eyebrow{font-size:9px}.game-title{font-size:60px;margin:15px 0}.game-title span{font-size:1.15em}.tagline{font-size:13px;margin:15px 0;max-width:none}.home-actions{grid-template-columns:1fr 1fr;gap:8px}.home-actions>.primary{grid-column:auto;min-height:42px;font-size:16px;padding:9px 15px}.home-actions>.light{min-height:42px;font-size:12px;padding:9px}.home-actions>.text-button{font-size:10px;min-height:26px}.home-meta{display:none}.edition{font-size:8px;padding:5px 8px}.scene-label{bottom:8%}.selection-heading{margin:5px 0 13px;flex-direction:row;align-items:center}.selection-heading h1{font-size:28px}.selection-heading p{font-size:10px;max-width:220px}.step-line .back-button{font-size:10px}.portrait{height:85px}.racer-card h2{font-size:17px}.racer-card p{font-size:9px;margin-bottom:8px;min-height:27px}.racer-card{padding:8px}.stat{font-size:8px;margin-top:5px}.stat-bar i{width:9px;height:5px}.racers-grid,.tracks-grid{grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;padding:6px 0 10px}.track-art{height:82px}.track-card h2{font-size:13px}.track-card p{font-size:8px;min-height:22px}.track-copy{padding:9px!important}.track-data{margin-top:7px;font-size:8px}.track-record{font-size:9px;margin-top:7px}.selection-footer{padding-top:10px;margin-top:8px}.selection-footer>.button{min-height:40px;padding:10px 16px;flex:0 1 200px}.selected-info strong{font-size:15px}.selected-info small{font-size:9px}.selected-dot{width:28px;height:28px}.track-options{margin-top:9px}.difficulty-picker button{padding:5px 8px}.cup-note{font-size:10px}.record-notice{font-size:9px;margin:8px 0 0}.race-status,.timer-card{top:57px}.position-card>b{font-size:32px}.position-card{min-width:64px}.lap-card{padding:7px 9px}.lap-card>b{font-size:22px}.cup-round{top:125px}.toast{top:139px;font-size:11px}.item-area{bottom:109px;left:16px;flex-direction:row;gap:9px}.item-slot{height:70px;width:65px}.item-slot>span{font-size:24px}.drift-meter{width:102px}.map-speed{bottom:104px;right:16px}.minimap{width:108px;height:98px}.minimap canvas{height:78px}.speed-card strong{font-size:40px}.touch-controls button{height:46px;width:55px;font-size:22px;border-radius:18px}.touch-steering,.touch-actions{bottom:14px}.touch-controls .touch-gas{height:60px}.touch-controls .touch-brake{height:43px}.touch-controls .touch-drift{height:44px;width:60px;font-size:9px}.result-head{margin-bottom:13px}.result-head h1{font-size:30px}.result-head p{margin:7px}.trophy{font-size:36px}.results-grid{grid-template-columns:1fr 1.2fr}.result-stat-panel{padding:17px}.result-stat-panel .result-time{font-size:28px;margin-bottom:12px}.standing{padding:7px 10px}.standing .tiny-racer{width:25px;height:25px;font-size:11px}.result-actions{margin-top:14px}.pause-card{padding:23px;max-width:365px}.pause-card h2{font-size:26px;margin:10px 0}.pause-card p{margin-bottom:15px}.pause-card>.button{min-height:42px;margin-top:8px}.info-screen h1{font-size:30px}.info-intro{font-size:11px;margin:10px 0}.control-card{padding:15px}.control-row{margin:9px 0}.items-explained{grid-template-columns:repeat(5,1fr)}.item-explain{padding:9px}.item-explain p{font-size:9px}.home-footer{bottom:9px}.keyboard-hint{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
body.touch-mode .keyboard-hint{display:none}
@media(min-width:761px){body.touch-mode .map-speed,body.touch-mode .item-area{bottom:124px}}
@media(max-height:560px) and (min-width:761px){body.touch-mode .map-speed,body.touch-mode .item-area{bottom:104px}}
