:root{font-family:Inter,PingFang SC,Microsoft YaHei,sans-serif;color:#f3f5f7;background:#080d18;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #c5fb66;outline-offset:5px}#world{position:fixed;inset:0;width:100%;height:100%;display:block}.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(4,10,22,.82),transparent 64%),linear-gradient(0deg,rgba(4,8,17,.82),transparent 25%,transparent 80%,rgba(4,8,17,.38))}header{position:absolute;top:0;left:0;width:100%;padding:34px 4%;display:flex;align-items:center;justify-content:space-between;z-index:3}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-weight:800;font-size:21px;letter-spacing:2px}.brand small{display:block;font-size:8px;letter-spacing:2.5px;color:#aab3c4;margin-top:6px;font-weight:500}.brand-icon{display:block;width:39px;height:39px;flex:none}.top-center{font-size:10px;letter-spacing:2px;color:#c3ccdc;display:flex;gap:12px;align-items:center}.live-dot{display:inline-block;width:5px;height:5px;background:#c5fb66;border-radius:50%;box-shadow:0 0 10px #c5fb6660}.divider{opacity:.3;margin:0 4px}.icon-button{background:#111e2a80;border:1px solid #a9c1da25;color:#eef4fa;padding:11px 14px;border-radius:5px;display:flex;align-items:center;gap:10px}.icon-button span{font-size:10px;color:#b4bfce}.intro{position:absolute;left:7%;top:26%;z-index:2}.eyebrow{font-size:9px;letter-spacing:2.5px;color:#b8c6d8;display:flex;align-items:center;gap:15px}.eyebrow i{display:block;width:42px;height:1px;background:#c5fb66}h1{font-size:clamp(46px,5.3vw,84px);line-height:1.19;letter-spacing:-3px;margin:26px 0 22px;font-weight:800}h1 span{color:#c5fb66}.intro p{font-size:12px;line-height:2.1;color:#a8b5c7;letter-spacing:1px;margin:0 0 31px}.start-button{border:0;background:#c5fb66;color:#152019;padding:18px 23px;min-width:202px;display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;border-radius:3px;transition:background .2s,transform .2s}.start-button:hover{background:#dbff9b;transform:translateY(-2px)}.start-button span{font-size:21px}.start-note{font-size:8px;letter-spacing:1.4px;color:#8d9aab;margin-top:15px}.start-note span{margin:0 9px}.route-card{position:absolute;right:4%;bottom:18%;width:288px;padding:23px;background:linear-gradient(135deg,#142232d6,#0b1422d6);border:1px solid #b2c8df28;border-radius:7px;backdrop-filter:blur(18px)}.card-label{font-size:9px;color:#aab9ca;letter-spacing:1px;display:flex;justify-content:space-between}.card-label span{color:#c5fb66;font-size:15px}.route-card h2{font-size:23px;letter-spacing:3px;margin:18px 0 8px}.route-card p{font-size:8px;letter-spacing:2.6px;color:#8399ae;margin:0}.route-art{margin:12px 0 18px}.route-art svg{width:100%;height:72px;overflow:visible}.route-art path{fill:none}.route-shadow{stroke:#c5fb6613;stroke-width:13}.route-line{stroke:#c5fb66;stroke-width:2}.route-art circle{fill:#c5fb66;stroke:#244235;stroke-width:4}.route-art span{font-size:7px;color:#9aa9ba}.route-art span:last-child{float:right}.route-stats{border-top:1px solid #aab9ca20;display:flex;justify-content:space-between;padding-top:16px;font-size:9px}.route-stats small{display:block;color:#7d90a7;font-size:8px;margin-bottom:8px}footer{position:absolute;bottom:0;padding:28px 4%;width:100%;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #b2c8df14}.controls{display:flex;gap:23px}.control-item{display:flex;align-items:center;gap:4px}.control-item span{font-size:9px;color:#8997ab;margin-left:5px}kbd{display:inline-flex;justify-content:center;align-items:center;font-family:inherit;font-size:9px;width:22px;height:23px;border:1px solid #8b9cb644;color:#b5c0d1;border-radius:3px;background:#0b162470}.wide{width:43px}.footer-note{font-size:8px;color:#8391a4;letter-spacing:2px}.footer-note span{color:#c5fb66;margin:0 9px}.hidden{display:none!important}.hud{position:absolute;top:139px;left:4%;right:4%;display:flex;justify-content:space-between;align-items:flex-start}.run-info>div{margin:10px 0 6px}.run-info b{font-family:Avenir Next Condensed,Arial Narrow,sans-serif;font-size:39px;letter-spacing:1px;font-weight:500}.run-info span{font-size:10px;color:#9bacbf}.run-info .eyebrow{font-size:9px}.run-info small{font-size:8px;letter-spacing:1px;color:#90a3b8}.run-info small span{font-size:8px}.status{display:flex;gap:9px;align-items:center;font-size:10px;letter-spacing:2px;background:#12233390;border:1px solid #b2c8df20;padding:11px 15px;border-radius:30px}.speed-panel{position:absolute;right:5%;bottom:16%;width:215px}.speed-heading{font-size:9px;letter-spacing:3px;color:#8da2b6}.speed-heading span{float:right;background:#c5fb66;color:#122114;padding:3px 6px;margin-top:-4px;font-size:11px;letter-spacing:0;font-weight:700}.speed-digits{display:flex;align-items:baseline;gap:12px}.speed-digits b{font-family:Avenir Next Condensed,Arial Narrow,sans-serif;font-size:100px;line-height:1.1;font-weight:600;letter-spacing:1px;font-variant-numeric:tabular-nums}.speed-digits>span{font-size:9px;color:#91a3b6;letter-spacing:1px}.rev-bars{display:flex;gap:3px;margin:4px 0 22px;height:8px;transform:skew(-18deg)}.rev-bars i{flex:1;background:#8495ab30}.rev-bars i.active{background:#c5fb66}.rev-bars i.active:last-child{background:#ff765d}.nitro-label{font-size:10px;color:#c5fb66;font-weight:600}.nitro-label span{font-size:8px;color:#94a4b8;margin-left:9px;font-weight:400}.nitro-label b{float:right;font-size:9px;color:#d7e2ed}.nitro-track{height:3px;background:#76869b40;margin-top:9px}.nitro-track>div{width:100%;height:100%;background:#c5fb66;box-shadow:0 0 12px #c5fb6640}.toast{position:absolute;top:30%;left:50%;transform:translate(-50%);font-size:16px;letter-spacing:3px;color:#c5fb66;opacity:0;transition:opacity .25s;text-shadow:0 2px 20px #000}.toast.show{opacity:1}.modal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#0b1625ee;backdrop-filter:blur(20px);border:1px solid #8ba4c342;padding:40px;border-radius:8px;z-index:6;min-width:320px}.modal h2{font-size:34px;margin:22px 0 10px}.modal p{font-size:12px;color:#a6b7ca;margin-bottom:28px}.modal .start-button{width:100%}.restart-button{display:block;margin:20px auto 0;background:none;border:0;color:#9eafc3;font-size:11px}#flash{position:absolute;inset:0;pointer-events:none;z-index:5;opacity:0;background:#ff492f55;transition:opacity .15s}#touch-controls{display:none}body.playing .vignette{background:linear-gradient(0deg,#050a15b0,transparent 25%,transparent 80%,#050a1555)}@media(max-width:850px){.top-center,.footer-note{display:none}.route-card{width:240px;right:4%;bottom:20%;padding:18px}.intro{left:6%;top:24%}h1{font-size:58px}.controls{gap:12px}.speed-panel{right:5%;width:180px}.speed-digits b{font-size:80px}header{padding:25px 5%}.brand{font-size:17px}.hud{top:110px}}@media(max-width:600px){.route-card{display:none}.intro{top:24%;left:8%}h1{font-size:60px}.intro p{font-size:11px}footer{padding:22px 5%;bottom:0}.controls{gap:9px;flex-wrap:wrap}.control-item span{font-size:8px}kbd{width:18px;height:20px;font-size:8px}.control-item:nth-child(3),.control-item:nth-child(5){display:none}.brand small{font-size:6px}.hud .status{display:none}.speed-panel{bottom:24%;width:150px}.speed-digits b{font-size:70px}.speed-digits>span{font-size:8px}.rev-bars{margin-bottom:14px}body.playing footer{display:none}body.touch-layout.playing #touch-controls{position:absolute;bottom:28px;left:5%;right:5%;display:flex;justify-content:space-between;gap:8px}#touch-controls button{touch-action:none;width:55px;height:58px;color:#dce9f7;background:#14263ba8;border:1px solid #9bb9d344;border-radius:8px;font-size:20px;user-select:none}#touch-controls button:nth-child(3){color:#c5fb66;font-size:14px}#touch-controls button:nth-child(4){font-size:11px}#touch-controls button:last-child{background:#c5fb66;color:#172820}.run-info b{font-size:32px}.modal{padding:30px;min-width:290px}}.race-panel{position:absolute;left:50%;top:210px;transform:translate(-50%);width:min(360px,40vw);padding:15px 18px;background:#0d1b2cbf;border:1px solid #a9c1da25;border-radius:7px;backdrop-filter:blur(12px)}.race-summary{display:flex;justify-content:space-between;align-items:center;color:#a5b5c8;font-size:9px;letter-spacing:1px}.race-summary b{color:#c5fb66;font-size:22px;letter-spacing:0;margin-left:10px}.race-summary>span:last-child{font-variant-numeric:tabular-nums;font-size:16px;color:#eef4ff}.race-progress{height:3px;margin:23px 8px 16px 2px;background:#697d954f;position:relative}.race-progress i{position:absolute;top:-4px;width:9px;height:9px;border-radius:50%;transform:translate(-50%);background:#c5fb66;z-index:2;transition:left .1s linear;box-shadow:0 0 8px #c5fb6650}.race-progress #rival-progress{background:#75b9ff;top:2px;z-index:1}.race-progress>span{position:absolute;right:-12px;top:-11px;color:#fff;font-size:17px}.race-legend{display:flex;gap:13px;font-size:8px;color:#c5fb66;align-items:center}.race-legend span:nth-child(2){color:#75b9ff}.race-legend strong{margin-left:auto;font-weight:400;color:#aebdd0}.countdown{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);font-family:Avenir Next Condensed,Arial Narrow,sans-serif;font-size:140px;font-weight:700;color:#c5fb66;text-shadow:0 0 60px #162c34;pointer-events:none}@media(max-width:600px){.race-panel{top:210px;width:85vw}.race-summary b{font-size:18px}.countdown{top:48%;font-size:110px}}.garage{position:absolute;z-index:2;left:4%;top:145px;width:min(860px,61vw);padding:28px 30px 20px;background:linear-gradient(135deg,#0a1525f2,#101e2bdc);border:1px solid #a9c1da26;border-radius:10px;backdrop-filter:blur(20px);max-height:calc(100dvh - 240px);overflow:auto;scrollbar-width:thin;scrollbar-color:#506277 #142133}.garage-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.garage-heading h1{font-size:30px;letter-spacing:-1px;margin:14px 0 0;line-height:1.3}.garage-heading h1 span{color:#c5fb66;margin-left:8px}.garage-heading .eyebrow{font-size:8px}.garage-badge{font-size:8px;letter-spacing:1px;color:#a9bfd3;border:1px solid #aac5de28;padding:8px;white-space:nowrap}.selection-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin:0 0 12px;letter-spacing:1px}.selection-label b{font-family:Avenir Next Condensed,Arial Narrow,sans-serif;color:#c5fb66;font-size:15px;margin-right:8px}.selection-label small{font-size:8px;letter-spacing:.5px;color:#8197ae}.map-options,.car-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:22px}.map-option,.car-option{font:inherit;color:#f0f4f9;text-align:left;position:relative;border:1px solid #a1b8d126;background:#142334a0;border-radius:6px;padding:0;overflow:hidden;transition:border-color .15s,background .15s,transform .15s}.map-option:hover,.car-option:hover{border-color:#9ebcc577;transform:translateY(-2px)}.map-option.selected,.car-option.selected{border-color:#c5fb66;background:#25362955;box-shadow:0 0 0 1px #c5fb6620}.map-thumb{height:94px;position:relative;overflow:hidden;background:linear-gradient(var(--map-high),var(--map-low))}.option-number{position:absolute;left:10px;top:9px;font-family:Avenir Next Condensed,Arial Narrow,sans-serif;letter-spacing:1px;font-size:13px;color:#e1e9efb0;z-index:1}.selection-check{display:none;position:absolute;right:9px;top:9px;color:#122016;background:#c5fb66;width:16px;height:16px;line-height:16px;text-align:center;border-radius:50%;font-size:10px;z-index:2}.selected .selection-check{display:block}.mini-mountains{position:absolute;inset:22px -15px -4px;background:var(--map-mountain);clip-path:polygon(0 100%,0 65%,15% 20%,29% 74%,47% 0,63% 54%,78% 12%,100% 65%,100% 100%)}.map-thumb svg{position:absolute;bottom:0;width:100%;height:55px}.option-copy{padding:12px}.option-copy strong{font-size:13px;font-weight:600;letter-spacing:1px}.option-copy small{display:block;font-size:8px;color:#94a6b9;letter-spacing:1px;margin-top:6px}.option-copy small span{letter-spacing:0}.car-option{padding-top:10px}.car-role{font-size:8px;color:#a9b9ca;padding-left:12px;letter-spacing:1px}.car-illustration{padding:0 8px;height:82px;background:radial-gradient(ellipse at center,var(--car-color),transparent 70%);background-size:100% 14%;background-repeat:no-repeat;background-position:center 90%}.car-illustration svg{width:100%;height:100%;display:block}.car-illustration.r svg{transform:scaleY(.86) scaleX(1.03);transform-origin:center bottom}.car-illustration.rs svg{transform:scaleX(.92)}.car-option .option-copy{padding-top:4px;padding-bottom:10px}.car-bars{padding:0 12px 14px;display:flex;flex-direction:column;gap:6px}.car-bars>span{display:flex;align-items:center;gap:8px;font-size:7px;color:#8da3b9}.car-bars i{flex:1;height:3px;background:#7a93ad25}.car-bars b{display:block;height:100%;background:var(--car-color);opacity:.8}.garage-bottom{display:flex;gap:20px;justify-content:space-between;align-items:flex-end}.garage-bottom>div{flex:1}.difficulty-options{display:flex;gap:7px}.difficulty-options button{background:#122135;color:#aebdd0;border:1px solid #8fa9c32b;border-radius:4px;font-size:10px;padding:10px 12px;flex:1}.difficulty-options button small{display:block;font-size:7px;white-space:nowrap;color:#7f95aa;margin-top:5px}.difficulty-options button.selected{color:#c5fb66;border-color:#c5fb6690;background:#c5fb6610}.garage-bottom .start-button{min-width:185px;height:54px}.garage-note{border-top:1px solid #aac3df19;padding-top:14px;margin-top:19px;font-size:8px;color:#829aaf;letter-spacing:.6px}.vehicle-preview{position:absolute;right:4%;top:25%;width:26%;text-align:right;pointer-events:none}.vehicle-preview .eyebrow{justify-content:flex-end;font-size:8px}.vehicle-preview h2{font-size:40px;font-weight:700;letter-spacing:4px;margin:17px 0 11px}.vehicle-preview p{font-size:10px;color:#aebfd0;line-height:1.7}.preview-specs{display:flex;gap:27px;justify-content:flex-end;margin-top:25px}.preview-specs small{display:block;font-size:8px;color:#97aabd;margin-bottom:8px}.preview-specs b{font-family:Avenir Next Condensed,Arial Narrow,sans-serif;font-size:25px;color:#d6e5ee;font-weight:500}.preview-caption{display:block;font-size:8px;color:#7e96ac;letter-spacing:1px;margin-top:18px}#garage{color:#c5fb66;border-top:1px solid #9bb7d126;padding-top:16px;width:100%}.modal{max-width:90vw}.modal p{line-height:1.9}@media(max-height:850px)and (min-width:851px){.garage{top:112px;max-height:calc(100dvh - 195px);padding:20px 24px}.garage-heading{margin-bottom:15px}.garage-heading h1{font-size:25px}.map-thumb{height:68px}.map-options,.car-options{margin-bottom:15px}.car-illustration{height:57px}.garage-note{margin-top:12px;padding-top:10px}.car-bars{gap:4px;padding-bottom:10px}.option-copy{padding:9px}.garage-bottom .start-button{min-width:155px}.garage-badge{display:none}}@media(max-width:1000px){.garage{width:65vw;padding:23px 20px}.garage-badge{display:none}.garage-heading h1{font-size:24px}.vehicle-preview{width:24%;right:3%}.vehicle-preview h2{font-size:27px}.vehicle-preview p{font-size:9px}.preview-specs{gap:14px}.preview-specs b{font-size:21px}.garage-bottom{gap:12px}.garage-bottom .start-button{min-width:145px;padding:15px}.difficulty-options button{padding:9px}.map-options,.car-options{gap:8px}.option-copy strong{font-size:12px}.option-copy small{font-size:7px;letter-spacing:.2px}.garage-heading .eyebrow{font-size:7px}}@media(max-width:650px){.garage{left:4%;right:4%;width:auto;top:105px;max-height:calc(100dvh - 180px);padding:21px 16px}.vehicle-preview{display:none}.garage-heading h1{font-size:23px;margin-top:11px}.garage-heading h1 span{display:block;margin:4px 0 0}.garage-heading{margin-bottom:20px}.map-thumb{height:67px}.map-options,.car-options{gap:7px;margin-bottom:20px}.option-copy{padding:9px 7px}.option-copy strong{font-size:11px;letter-spacing:.3px}.option-copy small{font-size:7px;line-height:1.6}.option-copy small span{display:block}.selection-label small{font-size:7px}.car-illustration{height:54px;padding:0 3px}.car-role{font-size:7px;padding-left:7px}.car-bars{padding:0 7px 12px}.car-bars>span{font-size:7px;gap:5px}.car-option .option-copy{padding-left:7px}.car-option .option-copy small{font-size:6px;letter-spacing:.3px}.garage-bottom{flex-direction:column;align-items:stretch;gap:18px}.garage-bottom .start-button{width:100%;height:50px}.garage-note{font-size:7px;line-height:1.7;margin-top:14px;padding-top:11px}.selection-check{height:13px;width:13px;line-height:13px;right:6px;top:6px;font-size:8px}.preview-caption{display:none}}.turn-hint{position:absolute;left:4%;top:285px;display:flex;align-items:center;gap:14px;padding:14px 20px 14px 15px;border:1px solid #a3bed738;background:#102132d9;border-radius:6px;backdrop-filter:blur(10px)}.turn-hint>b{font-size:48px;line-height:1;color:#c5fb66}.turn-hint strong{display:block;font-size:12px;font-weight:500;letter-spacing:1px}.turn-hint small{display:block;margin-top:8px;font-size:10px;color:#9db3c8}.turn-hint.in-corner{border-color:#ffbc6970}.turn-hint.in-corner>b{color:#ffbc69}@media(max-width:600px){.turn-hint{top:auto;bottom:25%;left:5%;padding:10px 12px;gap:8px}.turn-hint>b{font-size:36px}.turn-hint strong{font-size:9px}.turn-hint small{font-size:8px}}#opponent-progress i{top:2px;width:6px;height:6px;opacity:.9;z-index:1;box-shadow:none}.race-progress #player-progress{z-index:3;box-shadow:0 0 10px #c5fb6690}.leaderboard{position:absolute;top:405px;left:4%;width:195px;padding:14px;background:#0c1b2bd9;border:1px solid #a8c0da29;border-radius:6px;backdrop-filter:blur(10px)}.leaderboard-title{display:flex;justify-content:space-between;font-size:7px;letter-spacing:1px;color:#8da5bc;margin-bottom:12px}.leaderboard-title span{color:#c5fb66;font-size:6px}.leaderboard-row{display:flex;align-items:center;gap:9px;min-height:27px;font-size:9px;color:#a5b6c9;border-bottom:1px solid #9db4ce0b}.leaderboard-row:last-child{border-bottom:0}.leaderboard-row b{font-family:Avenir Next Condensed,Arial Narrow,sans-serif;font-size:13px;width:10px;color:#90a4bb}.leaderboard-row i{width:3px;height:10px;border-radius:1px}.leaderboard-row>span{font-size:9px;letter-spacing:.5px}.leaderboard-row small{margin-left:auto;font-size:7px;color:#7f97ae;font-variant-numeric:tabular-nums}.leaderboard-row.you{color:#c5fb66;background:#c5fb660b}.leaderboard-row.you b{color:#c5fb66}.leaderboard-row small.boost-active{color:#65dbff;font-weight:700;text-shadow:0 0 8px #47caff70}@media(max-height:850px)and (min-width:601px){.leaderboard{top:auto;bottom:105px;width:170px;padding:11px}.leaderboard-row{min-height:22px}.turn-hint{top:270px}}@media(max-width:600px){.leaderboard{top:325px;left:5%;width:127px;padding:9px}.leaderboard-title{font-size:5px;letter-spacing:.2px;margin-bottom:6px}.leaderboard-title span{font-size:5px}.leaderboard-row{gap:5px;min-height:21px}.leaderboard-row>span{font-size:7px}.leaderboard-row small{font-size:6px}.leaderboard-row b{font-size:11px}.leaderboard-row i{height:7px;width:2px}.race-legend{font-size:7px;gap:9px}}@media(max-height:680px)and (max-width:600px){.leaderboard{display:none}}.race-results{margin:0 0 22px;border-top:1px solid #96b4d32b;padding-top:10px}.result-row{display:flex;align-items:center;gap:14px;min-height:27px;font-size:10px;border-bottom:1px solid #96b4d310;color:#aebed0}.result-row b{font-family:Avenir Next Condensed,Arial Narrow,sans-serif;font-size:15px;width:12px}.result-row small{margin-left:auto;font-size:9px;font-variant-numeric:tabular-nums}.result-row.you{color:#c5fb66}.modal{max-height:90dvh;overflow:auto}.modal:has(.race-results:not(.hidden)){min-width:370px;padding:28px 32px}.modal:has(.race-results:not(.hidden)) h2{margin-top:16px}.modal:has(.race-results:not(.hidden)) p{margin-bottom:18px;font-size:10px}@media(max-width:600px){.modal:has(.race-results:not(.hidden)){min-width:290px;padding:24px}.result-row{min-height:25px}.modal:has(.race-results:not(.hidden)) h2{font-size:28px}}.terrain-readout{border-top:1px solid #a1b8cf30;margin-top:18px;padding-top:12px;font-size:9px;letter-spacing:.4px;color:#a6b9cc}.terrain-readout>div{display:flex;justify-content:space-between;align-items:center;gap:9px}.terrain-readout b{font-family:Avenir Next Condensed,Arial Narrow,sans-serif;font-size:20px;font-weight:500;font-variant-numeric:tabular-nums}.terrain-readout>div+div{margin-top:8px;color:#819aaf}.terrain-readout small{font-size:8px}.terrain-readout.uphill>div:first-child{color:#ffc085}.terrain-readout.downhill>div:first-child{color:#8ee5ff}@media(max-width:600px){.terrain-readout{margin-top:12px;padding-top:8px;font-size:7px}.terrain-readout b{font-size:17px}.terrain-readout small{font-size:7px}}.map-options{max-height:290px;overflow-y:auto;padding:2px 4px 3px 2px;scrollbar-width:thin;scrollbar-color:#5a7182 transparent}.car-options{max-height:340px;overflow-y:auto;padding:2px 4px 3px 2px;scrollbar-width:thin;scrollbar-color:#5a7182 transparent}.garage-bottom{position:sticky;bottom:-20px;background:#0d1b2bf5;padding-top:14px;padding-bottom:6px;z-index:4;border-top:1px solid #9db7d321}.garage-note{position:relative}.map-option,.car-option{flex-shrink:0}.car-illustration.x svg{transform:scaleY(.86)}.car-illustration.rx svg{transform:scaleY(1.08)}.car-illustration.e svg{transform:scaleY(.95)}@media(min-height:900px){.map-thumb{height:75px}.car-illustration{height:66px}.map-options{max-height:292px}.car-options{max-height:330px}}@media(max-height:850px)and (min-width:651px){.map-options{max-height:140px}.car-options{max-height:180px}.garage-bottom{bottom:-16px}}@media(max-width:650px){.map-options{max-height:265px}.car-options{max-height:310px}.garage-bottom{position:static;padding-top:16px}.garage{max-height:calc(100dvh - 170px)}.map-option .option-copy small span{font-size:6px}}.race-settings{display:flex;gap:18px;flex-wrap:wrap;margin:20px 0 12px}.race-settings label{display:flex;align-items:center;gap:10px;font-size:12px;color:#aebbc6}.race-settings select{font:inherit;color:#e7eff5;background:#17232e;border:1px solid #42515d;border-radius:7px;padding:9px 26px 9px 11px;cursor:pointer}.weather-readout{display:flex;justify-content:space-between;border-top:1px solid #ffffff15;margin-top:10px;padding-top:10px;font-size:12px;color:#d9e5ec}.weather-readout small{color:#96abb8;font-size:10px}.touch-guide{display:none}body.touch-layout{--touch-bottom:max(18px,env(safe-area-inset-bottom));-webkit-touch-callout:none}body.touch-layout header{padding:max(18px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) 14px max(24px,env(safe-area-inset-left))}body.touch-layout .top-center,body.touch-layout .footer-note,body.touch-layout .controls,body.touch-layout .vehicle-preview{display:none}body.touch-layout .brand{font-size:18px}body.touch-layout .icon-button{min-width:46px;min-height:46px;justify-content:center}body.touch-layout .garage{top:88px;left:50%;right:auto;transform:translate(-50%);width:calc(100% - 48px);max-width:900px;max-height:calc(100dvh - 146px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:24px;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}body.touch-layout .garage-heading{margin-bottom:20px}body.touch-layout .garage-heading h1{font-size:28px}body.touch-layout .garage-heading h1 span{display:inline;margin-left:8px}body.touch-layout .map-options,body.touch-layout .car-options{max-height:none;overflow:visible;gap:12px;margin-bottom:22px}body.touch-layout .map-thumb{height:75px}body.touch-layout .car-illustration{height:70px}body.touch-layout .option-copy{padding:12px}body.touch-layout .option-copy strong{font-size:13px}body.touch-layout .option-copy small{font-size:9px}body.touch-layout .car-bars>span{font-size:9px}body.touch-layout .selection-label{font-size:13px}body.touch-layout .selection-label small{font-size:10px}body.touch-layout .garage-bottom{position:sticky;bottom:-24px;flex-direction:row;align-items:flex-end;padding:16px 0 8px;gap:20px}body.touch-layout .difficulty-options button{min-height:48px;font-size:13px}body.touch-layout .difficulty-options button small{font-size:9px}body.touch-layout .garage-bottom .start-button{min-height:54px;width:auto;font-size:14px}body.touch-layout .race-settings{gap:16px}body.touch-layout .race-settings label{font-size:13px}body.touch-layout .race-settings select{min-height:44px;font-size:16px}body.touch-layout .garage-note{font-size:10px;line-height:1.7}body.touch-layout footer{padding:16px 24px max(16px,env(safe-area-inset-bottom));justify-content:center}body.touch-layout .touch-guide{display:block;font-size:12px;color:#b8cad8}body.touch-layout.playing footer{display:none}body.touch-layout .hud{top:94px;left:24px;right:24px;z-index:3}body.touch-layout .hud .status{display:none}body.touch-layout .race-panel{top:94px;width:min(350px,40vw);padding:12px 16px}body.touch-layout .speed-panel{bottom:calc(var(--touch-bottom) + 126px);right:24px;width:180px}body.touch-layout .speed-digits b{font-size:78px}body.touch-layout .rev-bars{margin-bottom:14px}body.touch-layout .terrain-readout{margin-top:12px;padding-top:8px}body.touch-layout .turn-hint{top:240px;left:24px;bottom:auto;padding:12px;gap:12px}body.touch-layout .turn-hint>b{font-size:38px}body.touch-layout .leaderboard{top:auto;bottom:calc(var(--touch-bottom) + 126px);left:24px;width:160px;padding:10px}body.touch-layout .leaderboard-row{min-height:23px}body.touch-layout .toast{top:190px;max-width:80vw;text-align:center;font-size:14px}body.touch-layout.playing #touch-controls{position:fixed;display:flex;justify-content:space-between;align-items:flex-end;gap:24px;bottom:var(--touch-bottom);left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));z-index:4;pointer-events:none;touch-action:none}body.touch-layout #touch-controls>div{display:flex;gap:12px;pointer-events:auto}body.touch-layout #touch-controls button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:clamp(64px,8vw,96px);height:clamp(72px,9vw,100px);padding:8px;color:#e9f3fa;background:#122638d9;border:1px solid #adc4d763;border-radius:14px;font-size:32px;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 4px 22px #0003}body.touch-layout #touch-controls button small{font-size:12px;font-weight:600;letter-spacing:1px}body.touch-layout #touch-controls [data-key=shift]{color:#c5fb66;font-size:25px}body.touch-layout #touch-controls [data-key=arrowup]{background:#c5fb66;color:#172820;border-color:#d4ff92}body.touch-layout #touch-controls button.pressed{background:#4e6b66;border-color:#d4ff92;transform:scale(.96)}body.touch-layout #touch-controls [data-key=arrowup].pressed{background:#e0ffb0}body.touch-layout[data-race-mode=paused] #touch-controls,body.touch-layout[data-race-mode=over] #touch-controls{display:none}@media(orientation:portrait){body.touch-layout .race-panel{top:210px;width:min(420px,calc(100vw - 48px))}body.touch-layout .turn-hint{top:340px}body.touch-layout .countdown{top:48%}}@media(max-height:650px)and (orientation:landscape){body.touch-layout header{padding-top:12px}body.touch-layout .brand small{display:none}body.touch-layout .garage{top:76px;max-height:calc(100dvh - 100px);padding:18px 24px}body.touch-layout .garage-bottom{bottom:-18px}body.touch-layout .hud,body.touch-layout .race-panel{top:76px}body.touch-layout .run-info b{font-size:26px}body.touch-layout .turn-hint{top:180px}body.touch-layout .leaderboard{display:none}body.touch-layout .speed-panel{bottom:calc(var(--touch-bottom) + 96px);width:150px}body.touch-layout .speed-digits b{font-size:60px}body.touch-layout .terrain-readout{display:none}body.touch-layout #touch-controls button{width:64px;height:66px;font-size:28px}}@media(max-width:600px){body.touch-layout .garage{width:calc(100% - 24px);top:80px;padding:16px;max-height:calc(100dvh - 128px)}body.touch-layout .garage-heading h1{font-size:22px}body.touch-layout .garage-heading h1 span{display:block;margin-left:0}body.touch-layout .garage-bottom{flex-direction:column;align-items:stretch;bottom:-16px;gap:12px}body.touch-layout .garage-bottom .start-button{width:100%}body.touch-layout .map-options,body.touch-layout .car-options{gap:7px}body.touch-layout .map-thumb{height:56px}body.touch-layout .car-illustration{height:48px}body.touch-layout .option-copy{padding:8px 6px}body.touch-layout .option-copy strong{font-size:11px}body.touch-layout .option-copy small{font-size:7px}body.touch-layout .selection-label small{font-size:8px}body.touch-layout header{padding-left:16px;padding-right:16px}body.touch-layout .hud{left:16px;right:16px}body.touch-layout .race-panel{top:195px}body.touch-layout .turn-hint{top:320px;left:16px}body.touch-layout .leaderboard{display:none}body.touch-layout .speed-panel{right:16px;width:145px;bottom:calc(var(--touch-bottom) + 106px)}body.touch-layout .speed-digits b{font-size:64px}body.touch-layout.playing #touch-controls{left:12px;right:12px;gap:12px}body.touch-layout #touch-controls>div{gap:6px}body.touch-layout #touch-controls button{width:clamp(48px,14vw,68px);height:68px;font-size:25px;border-radius:10px}body.touch-layout #touch-controls button small,body.touch-layout .touch-guide{font-size:10px}}body.touch-layout .pedal-controls:has([data-key=shift].pressed) [data-key=arrowup]{background:#e0ffb0;border-color:#d4ff92;box-shadow:0 0 20px #c5fb6655}@media(orientation:portrait){body.touch-layout .race-panel,body.touch-layout .turn-hint{display:none}}.loading-screen{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:28px;background:radial-gradient(ellipse at 75% 20%,#1a3542 0,transparent 55%),#080f1b;color:#eff6f7;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,sans-serif}.loading-screen[hidden]{display:none}.loading-card{width:min(420px,100%)}.loading-brand{font-size:18px;font-weight:800;letter-spacing:3px}.loading-brand b{color:#c5fb66;font-size:30px}.loading-card h1{font-size:clamp(28px,5vw,40px);letter-spacing:-1px;line-height:1.3;margin:32px 0 16px}.loading-card p{color:#a9bdca;font-size:13px;line-height:1.9;margin:0 0 36px}.loading-meta{display:flex;justify-content:space-between;gap:15px;font-size:12px;margin-bottom:12px;color:#b7cbd7}.loading-meta b{color:#c5fb66;font-variant-numeric:tabular-nums}#loading-progress{display:block;appearance:none;-webkit-appearance:none;border:0;width:100%;height:5px;background:#354956;border-radius:8px;overflow:hidden}#loading-progress::-webkit-progress-bar{background:#354956;border-radius:8px}#loading-progress::-webkit-progress-value{background:#c5fb66;border-radius:8px}#loading-progress::-moz-progress-bar{background:#c5fb66;border-radius:8px}.loading-card>small{display:block;margin-top:17px;color:#718b9c;font-size:10px;letter-spacing:1px}.loading-card .start-button{margin-top:28px}.loading-card [hidden]{display:none}body.loading>header,body.loading>main,body.loading>footer,body.loading>#touch-controls{visibility:hidden}button:disabled{cursor:wait;opacity:.5}.speed-panel.boost-active .nitro-label{color:#65dbff}.speed-panel.boost-active .nitro-track>div{background:#65dbff;box-shadow:0 0 18px #47caff90}.speed-panel.nitro-locked .nitro-label span{color:#ffcb87}html,body{touch-action:pan-x pan-y;overscroll-behavior:none}#world,.loading-screen{touch-action:none}button,a,input,select,textarea{touch-action:manipulation}.garage,.modal,.map-options,.car-options{touch-action:pan-y;overscroll-behavior:contain}html.touch-browser select,html.touch-browser input,html.touch-browser textarea{font-size:16px}.weather-readout{gap:8px;flex-wrap:wrap;line-height:1.5}.weather-readout small{margin-left:auto}.turn-hint small{line-height:1.5}.leaderboard-row .driver-style{font-style:normal;font-size:6px;color:#9cb8c8;margin-left:4px;letter-spacing:0;white-space:nowrap}@media(max-width:600px){.leaderboard-row .driver-style{display:none}}.map-thumb .map-scenic{inset:0;width:100%;height:100%;display:block}.map-thumb .option-number{text-shadow:0 1px 5px #102133}.finish-view{position:absolute;right:4%;top:104px;width:280px;z-index:4;border:1px solid #b6d4de66;border-radius:8px;overflow:hidden;background:#112333;box-shadow:0 8px 25px #0004;pointer-events:none}.finish-view-label{display:flex;justify-content:space-between;gap:8px;padding:9px 11px;font-size:9px;color:#d6e6ec;background:#122431}.finish-view-label b{font-size:8px;color:#c5fb66;font-weight:500}.finish-viewport{width:100%;height:160px;background:transparent}.finish-banner{position:absolute;left:50%;top:16%;transform:translate(-50%);z-index:5;text-align:center;pointer-events:none;animation:finish-arrival .65s ease-out;min-width:250px;padding:18px 30px;background:linear-gradient(110deg,#0e2531ee,#1f3841dc);border:1px solid #c5fb6670;border-radius:8px;box-shadow:0 10px 40px #0004}.finish-banner:before{content:"";display:block;height:8px;background:repeating-conic-gradient(#eff5ed 0% 25%,#172832 0% 50%) 0/16px 16px;margin:-18px -30px 16px}.finish-banner span{font-size:8px;letter-spacing:3px;color:#c1d4df}.finish-banner strong{display:block;margin:10px 0;font-size:32px;color:#d1ff88}.finish-banner small{font-size:10px;color:#ccdae1}@keyframes finish-arrival{0%{opacity:0;transform:translate(-50%,-20px)}to{opacity:1;transform:translate(-50%)}}body[data-race-mode=finishing] #touch-controls,body[data-race-mode=finishing] #pause,body[data-race-mode=over] #pause{display:none!important}@media(max-width:650px){.finish-view{top:100px;right:12px;width:170px}.finish-viewport{height:98px}.finish-view-label{padding:6px;font-size:8px}.finish-view-label b{font-size:6px}.finish-banner{top:29%;min-width:210px;padding:15px 20px}.finish-banner:before{margin:-15px -20px 14px}.finish-banner strong{font-size:25px}}.finish-view{background:transparent}@media(min-width:901px){.finish-view{right:calc(4% + 100px)}}@media(min-width:651px)and (max-width:900px){.finish-view{right:calc(4% + 85px);width:220px}.finish-viewport{height:125px}}@media(max-width:650px){.finish-view{top:158px;width:160px}.finish-viewport{height:92px}}body:has(.finish-view:not(.hidden)) .hud .status{max-width:280px;margin-right:310px;font-size:9px;letter-spacing:.5px;line-height:1.5}body[data-race-mode=finishing] .hud .status,body[data-race-mode=over] .hud .status{visibility:hidden}@media(max-width:650px){.finish-banner{top:34%}body[data-race-mode=over] .modal:has(.race-results:not(.hidden)){top:auto;bottom:12px;transform:translate(-50%);max-height:44dvh;width:calc(100% - 24px);min-width:0}}@media(max-width:900px)and (max-height:550px){.finish-view{top:90px;right:14px;width:160px}.finish-viewport{height:90px}body[data-race-mode=over] .modal:has(.race-results:not(.hidden)){top:auto;bottom:8px;transform:translate(-50%);max-height:45dvh}}@media(max-width:650px){.finish-banner strong{font-size:22px;white-space:nowrap}}#touch-controls,#touch-controls *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.header-actions{display:flex;align-items:center;gap:10px}.language-switch{display:flex;align-items:center;gap:8px;color:#b4bfce;font-size:10px}.language-switch select{font:inherit;color:#eef4fa;background:#142431e6;border:1px solid #a9c1da40;border-radius:5px;padding:11px 8px;min-height:38px;cursor:pointer}.language-switch select:focus-visible{outline:2px solid #c5fb66;outline-offset:3px}.i18n-copy{font-size:inherit!important;color:inherit!important;letter-spacing:inherit}html[lang=en] .status,html[lang=en] .toast{letter-spacing:.5px}html[lang=en] .map-option strong{font-size:12px}html[lang=en] .car-bars>span{font-size:9px}html[lang=en] .turn-hint small{line-height:1.5}@media(max-width:850px){.language-switch>span{display:none}.header-actions{gap:7px}}@media(max-width:600px){.language-switch select{min-height:42px;max-width:94px;padding:9px 5px;font-size:12px}header .brand{font-size:16px;letter-spacing:1px}.header-actions #sound span{display:none}.header-actions #sound{min-width:42px;min-height:42px;justify-content:center}.garage-heading h1{letter-spacing:-.7px}html[lang=en] .selection-label small{max-width:57%;text-align:right;line-height:1.5}html[lang=en] .touch-guide{letter-spacing:0;font-size:10px}}html[lang=en] .weather-readout{gap:6px;align-items:flex-start}html[lang=en] .weather-readout>span{min-width:0;flex:1;line-height:1.4}html[lang=en] .weather-readout small{max-width:36%;flex-shrink:0;text-align:right;line-height:1.4}html[lang=en] .leaderboard-row .driver-style{display:block;margin-left:0;max-width:78px;overflow:hidden;text-overflow:ellipsis}@media(max-width:600px){html[lang=en] .leaderboard-row .driver-style{display:none}}body.playing .leaderboard{top:auto;bottom:100px;left:max(12px,env(safe-area-inset-left));width:170px;padding:10px;background:#08121d47;border-color:#dcefff24;backdrop-filter:none;pointer-events:none;opacity:0;visibility:hidden;transform:translate(-8px);transition:opacity .25s,transform .25s,visibility .25s;text-shadow:0 1px 4px #000,0 0 8px #0009}body.playing .leaderboard.is-peeking{opacity:1;visibility:visible;transform:translate(0)}body.playing .leaderboard-row{min-height:22px;gap:6px;color:#e7f0f6}body.playing .leaderboard-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.playing .leaderboard-row small{flex-shrink:0;color:#d0e1ed}body.playing .leaderboard-row .driver-style{display:none}body.playing .leaderboard-title{color:#e0eaf2;margin-bottom:7px}body.playing .leaderboard-row.you{background:#c5fb6617;color:#dbff9f}body.touch-layout.playing .leaderboard{bottom:calc(var(--touch-bottom) + 126px);left:max(12px,env(safe-area-inset-left));width:150px}@media(prefers-reduced-motion:reduce){body.playing .leaderboard{transition:none;transform:none}}body.playing .race-panel{left:auto;right:max(12px,env(safe-area-inset-right));top:210px;transform:none;width:190px;padding:10px 12px;background:#08121d2e;backdrop-filter:none;pointer-events:none;text-shadow:0 1px 5px #000}body.playing .race-summary{font-size:8px;letter-spacing:0}body.playing .race-summary b{font-size:19px;margin-left:6px}body.playing .race-summary>span:last-child{font-size:12px}body.playing .race-panel .race-progress,body.playing .race-panel .race-legend{display:none}body.playing .race-panel.is-peeking .race-progress{display:block;margin:13px 8px 12px 2px}body.playing .race-panel.is-peeking .race-legend{display:flex;font-size:7px;gap:5px}body.playing .race-panel .race-legend>span{display:none}body.touch-layout.playing .race-panel{left:auto;right:max(12px,env(safe-area-inset-right));top:132px;width:180px;padding:9px 11px}body.touch-layout #touch-controls #drive-stick{position:relative;display:block;flex:0 0 auto;width:clamp(124px,17vw,160px);height:clamp(124px,17vw,160px);border-radius:50%;border:1px solid #adc4d75c;background:radial-gradient(circle,#193649bf 0 28%,#112638a6 29% 58%,#adc4d71a 59% 60%,#11263899 61%);box-shadow:inset 0 0 24px #0a172655,0 4px 22px #0003;touch-action:none;pointer-events:auto;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}#drive-stick .stick-axis{position:absolute;pointer-events:none;background:#adc4d72a;left:50%;top:50%;transform:translate(-50%,-50%)}#drive-stick .stick-vertical{width:1px;height:75%}#drive-stick .stick-horizontal{height:1px;width:75%}#drive-stick .stick-direction{position:absolute;color:#c6d8e1a6;font:17px sans-serif;pointer-events:none}#drive-stick .stick-up{top:8%;left:50%;transform:translate(-50%)}#drive-stick .stick-down{bottom:8%;left:50%;transform:translate(-50%)}#drive-stick .stick-left{left:9%;top:50%;transform:translateY(-50%)}#drive-stick .stick-right{right:9%;top:50%;transform:translateY(-50%)}#drive-knob{--stick-x:0px;--stick-y:0px;position:absolute;left:50%;top:50%;width:39%;height:39%;border-radius:50%;border:1px solid #cde4c09e;background:radial-gradient(circle at 35% 28%,#98b29a,#466e64 65%,#294b48);box-shadow:0 3px 13px #0006,inset 0 1px 4px #f0ffe03b;transform:translate(calc(-50% + var(--stick-x)),calc(-50% + var(--stick-y)));pointer-events:none}#drive-stick.pressed #drive-knob{border-color:#d4ff92;box-shadow:0 0 15px #c5fb6629,0 3px 13px #0006}body.touch-layout #touch-controls .nitro-controls [data-key=shift]{width:clamp(76px,11vw,108px);height:clamp(76px,11vw,108px);border-radius:50%;color:#c5fb66;background:#122638bd}body.touch-layout #touch-controls .nitro-controls [data-key=shift].pressed{background:#4e6b66;border-color:#d4ff92}@media(max-height:500px)and (orientation:landscape){body.touch-layout #touch-controls #drive-stick{width:116px;height:116px}body.touch-layout #touch-controls .nitro-controls [data-key=shift]{width:72px;height:72px}}body.touch-layout .speed-panel{bottom:calc(var(--touch-bottom) + clamp(124px,17vw,160px) + 12px)}@media(max-height:500px)and (orientation:landscape){body.touch-layout .speed-panel{bottom:calc(var(--touch-bottom) + 128px)}}
