#world{display:block;touch-action:none}.garage-actions{display:flex;gap:10px;align-items:center}.garage-bottom .primary{min-width:280px}.garage-actions .plate{font-size:16px}.garage-bottom>span{max-width:38%}.garage-copy .control-hint{font-size:14px}#offline{display:flex;justify-content:center;align-items:center;background:linear-gradient(120deg,#092d3df5,#184756da),url('assets/title-bg.webp') center/cover}.offline-panel{width:min(870px,92%);padding:28px;text-align:center}.offline-panel h1{font-size:clamp(24px,3vw,38px)}.offline-panel p{max-width:700px;margin:14px auto}.offline-actions{display:flex;gap:12px;justify-content:center;margin-top:18px}.offline-actions .plate{font-size:17px;min-width:140px}.offline-actions .primary{min-width:230px}#raceHud{position:absolute;inset:0;pointer-events:none;overflow:hidden}.driver{position:absolute;left:16px;top:12px;width:286px;height:106px;display:flex;justify-content:space-between;gap:10px;padding:0 7px 13px;color:#fff5d9}.driver .lapcol{display:flex;flex-direction:column;justify-content:center;min-width:0}.driver small{font-size:12px;letter-spacing:.04em;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.driver strong{font-size:27px;line-height:31px;letter-spacing:-.6px;font-variant-numeric:tabular-nums;text-shadow:2px 2px #061f29}.driver span{font-size:12px;line-height:16px;color:#c5e9df;white-space:nowrap}.driver .drivecol{display:flex;flex-direction:column;justify-content:center;text-align:right;max-width:92px;min-width:65px}.driver .drivecol b{font-size:25px;line-height:26px;font-style:italic;color:#aaffdf}.driver .drivecol span{overflow:hidden;text-overflow:ellipsis}.boostbar{position:absolute;bottom:3px;left:10px;right:10px;height:5px;background:#193e43;border:1px solid #7cb5aa}.boostbar i{height:100%;display:block;background:#76ffe0;box-shadow:0 0 9px #aaffc975}#roundHud{position:absolute;top:12px;left:314px;width:192px;height:106px;padding:0 8px;display:flex;flex-direction:column;justify-content:center;text-align:center}#roundHud small{font-size:12px;letter-spacing:.04em;color:#ffe6aa}#roundHud strong{font-size:31px;font-variant-numeric:tabular-nums;color:#8bffe3;line-height:35px}#roundHud span{font-size:12px;line-height:14px;color:#d0e5d9}#map3{position:absolute;right:16px;top:82px;width:178px;height:118px;padding:0}#map3 canvas{width:100%;height:100%;display:block}#hint3{position:absolute;left:16px;top:126px;max-width:58%;padding:4px 9px;font-size:14px;color:#ffedbc}#message3{position:absolute;left:50%;top:37%;transform:translateX(-50%);max-width:75%;padding:9px 26px;background:linear-gradient(90deg,transparent,#0a3546eb 9%,#0a3546eb 91%,transparent);text-align:center;font-size:18px;color:#fff1ba;text-shadow:1px 2px #142e33}#splitLine{position:absolute;left:50%;top:0;bottom:0;width:2px;background:linear-gradient(#75e5d955,#183f45,#75e5d955)}body.local #hud1{width:286px;left:14px}body.local #hud2{width:286px;left:calc(50% + 14px)}body.local #roundHud{top:126px;left:50%;transform:translateX(-50%);width:260px;height:60px;flex-direction:row;align-items:center;gap:12px;padding:0 10px}body.local #roundHud small{max-width:150px;white-space:normal}body.local #roundHud strong{font-size:24px}body.local #roundHud span{display:none}body.local #map3,body.local #hint3{display:none}body.local #message3{top:47%}body.local [data-action="boost1"]:after,body.local [data-action="item1"]:after{content:'1'}body.local [data-action="boost2"]:after,body.local [data-action="item2"]:after{content:'2'}body.local [data-action]:after{position:absolute;top:1px;left:5px;color:#fff7d6;font-size:17px;text-shadow:1px 1px #092d3a;line-height:20px}.end-actions{display:flex;justify-content:center;gap:12px}#ending .end-panel{max-width:800px}#endTitle{font-size:38px}#endBest{font-size:24px}#endHint{font-size:15px}.end-actions .plate{font-size:16px}body.webgl-error #offline{display:flex!important}
.driftbar{position:absolute;bottom:10px;left:10px;right:10px;height:4px;background:#0c2a31b0;border-radius:2px;overflow:hidden}.driftbar i{display:block;height:100%;width:0;background:#fff4dc;transition:background .15s}.driftbar i.l1{background:#6ff7e6;box-shadow:0 0 8px #6ff7e6}.driftbar i.l2{background:#ffa64a;box-shadow:0 0 9px #ffa64a}.driftbar i.l3{background:#ff6fd8;box-shadow:0 0 11px #ff6fd8}
#speedFx{position:absolute;inset:-12%;pointer-events:none;opacity:0;transition:opacity .35s;background:repeating-conic-gradient(from 0deg at 50% 50%,#fff0 0deg,#fff0 3.2deg,#fff7e44d 3.6deg,#fff0 4.3deg,#fff0 7.1deg,#d8fff52e 7.4deg,#fff0 8deg);-webkit-mask-image:radial-gradient(ellipse 52% 50% at 50% 50%,transparent 52%,#000 96%);mask-image:radial-gradient(ellipse 52% 50% at 50% 50%,transparent 52%,#000 96%);animation:speedLines .3s steps(4) infinite}#speedFx.on{opacity:.6}body.local #speedFx{display:none}@keyframes speedLines{from{transform:rotate(0)}to{transform:rotate(4deg)}}
.intro-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:url('assets/intro-first.webp') center/cover;opacity:0;transition:opacity .45s;z-index:1}.intro-video.show{opacity:1}#cinema #skip,#cinema .subtitle{z-index:3}
@media(max-height:520px){.garage-head{height:16%}.garage-main{height:48%}.skin-row{height:20%}.garage-bottom{height:16%}.garage-copy p{font-size:14px;line-height:1.25;margin:4px 0}.garage-copy .control-hint{font-size:14px}.garage-copy h2{font-size:18px}.garage-bottom .primary{min-width:235px}.garage-bottom .plate{font-size:14px;padding:3px 13px}.garage-bottom>span{max-width:32%;font-size:12px}.driver{left:10px;top:9px;width:264px;height:96px;border-width:10px;padding:0 7px 12px}.driver strong{font-size:25px;line-height:28px}.driver .drivecol b{font-size:22px}.driver .drivecol{min-width:60px;max-width:80px}.driver small,.driver span{font-size:12px;line-height:15px}.driftbar{bottom:9px}#roundHud{top:9px;left:284px;width:178px;height:96px;border-width:10px;padding:0 7px}#roundHud strong{font-size:28px}#map3{right:68px;top:9px;width:134px;height:96px;border-width:10px}#hint3{top:113px;left:10px;max-width:72%;font-size:14px;border-width:10px;padding:3px 8px}#message3{font-size:16px;top:43%;padding:7px 22px}.offline-panel{padding:16px 20px}.offline-panel h1{font-size:25px}.offline-panel p{font-size:14px;line-height:1.4;margin:10px auto}.offline-actions{margin-top:12px;gap:9px}.offline-actions .plate{font-size:15px;min-width:140px}.offline-actions .primary{min-width:230px}body.local #hud1,body.local #hud2{width:272px;height:96px}body.local #roundHud{top:112px;height:52px;width:240px;border-width:10px}body.local #message3{top:47%}#ending .end-panel{width:78%;padding:18px}#endTitle{font-size:29px}#endReward{font-size:21px}#endBest{font-size:21px}#endHint{font-size:14px;margin:8px 0}.end-actions .plate{min-height:44px;padding:3px 18px}}
@media(max-width:760px){body.local #hud1,body.local #hud2{width:calc(50% - 32px)}.driver .drivecol{min-width:42px}.driver strong{font-size:21px}.driver .drivecol span{max-width:66px}#roundHud{width:150px;left:276px}#map3{display:none}}
