*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#171c21;color:#f1f2ee;font-family:Inter,"PingFang SC",system-ui,sans-serif;overscroll-behavior:none}body{display:flex;flex-direction:column;touch-action:none}button{font:inherit;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;border:0}header{height:90px;padding:16px 32px;display:flex;align-items:center;gap:12px;background:#171c21;z-index:2;border-bottom:1px solid #343b41}.brand{display:flex;gap:12px;align-items:center;font-size:19px;font-weight:700;letter-spacing:2px}.brand small{display:block;font-size:9px;color:#98a19f;letter-spacing:2px;margin-top:6px}.mark{width:43px;height:43px;border:2px solid #d2fa60;font-size:27px;display:flex;align-items:center;justify-content:center;color:#d2fa60;position:relative}.mark span{position:absolute;right:-5px;top:-10px;background:#171c21;font-size:20px}.stats{margin-left:auto;display:flex;gap:40px}.stats small{display:block;font-size:9px;letter-spacing:1.4px;color:#a7afac;margin-bottom:5px}.stats b{font-size:23px;font-weight:500;font-variant-numeric:tabular-nums}.stats em{font-size:13px;font-style:normal;color:#7d8985}.tool{background:#293138;color:#e1e7e3;width:38px;height:38px;border-radius:50%;font-size:23px}main{position:relative;flex:1;min-height:0;background:#a3aaa9}canvas{width:100%;height:100%;display:block}.tag{position:absolute;top:23px;left:28px;color:#313c3a;font-size:10px;letter-spacing:2px;display:flex;align-items:center;gap:8px}.tag i{width:6px;height:6px;background:#536344;border-radius:50%}.tag span{opacity:.7;letter-spacing:0}.speed{position:absolute;right:26px;top:20px;text-align:right;color:#23312b;pointer-events:none}.speed strong{font-size:52px;font-weight:600;letter-spacing:-3px;line-height:1}.speed span{font-size:10px;margin-left:7px}.speed small{display:block;font-size:11px;margin-top:5px}.controls{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:26px;right:26px;display:flex;align-items:flex-end;justify-content:space-between;pointer-events:none}.controls button{pointer-events:auto;border:1px solid #ffffff35;box-shadow:0 5px 0 #18232255;backdrop-filter:blur(8px);border-radius:16px;color:#fff;background:#24302ccc}.steering,.pedals{display:flex;gap:12px}.steering button{width:76px;height:72px;font-size:25px}.pedals button{height:72px;font-size:16px;font-weight:600}.pedals .brake{width:70px;background:#e8eae5dd;color:#3b4642}.pedals .gas{width:110px;background:#d2fa60;color:#283519}.gas span{font-size:25px;margin-left:15px}.controls .recover{padding:10px 13px;font-size:11px;background:#26302b88;margin:0 10px 5px}.controls button.pressed{transform:translateY(4px);box-shadow:none;background:#fff;color:#1c2924}.overlay{position:absolute;inset:0;background:linear-gradient(90deg,#17221ef5,#17221ec0 48%,#17221e22);display:flex;align-items:center;padding:40px 8%;z-index:3}.overlay[hidden]{display:none}.eyebrow{font-size:10px;letter-spacing:3px;color:#d2fa60}h1{font-size:clamp(28px,5vw,62px);line-height:1.24;letter-spacing:-1.5px;margin:20px 0}p{font-size:14px;color:#bdc9c1;line-height:1.9}.keys{font-size:12px;margin:25px 0 18px}.keys span{color:#d2fa60;margin:0 14px}.primary{background:#d2fa60;padding:17px 24px;border-radius:4px;font-size:16px;font-weight:700;min-width:240px;text-align:left;color:#25321d}.primary span{float:right}.hint{display:block;font-size:10px;color:#9aa9a0;margin-top:14px}.track-label{position:absolute;right:40px;bottom:35px;font-size:10px;line-height:2;letter-spacing:3px;color:#eef2e7b0}.track-label b{font-size:12px}#toast{position:absolute;top:28%;left:50%;transform:translateX(-50%);background:#182820db;border:1px solid #d2fa60;color:#d2fa60;border-radius:5px;padding:12px 25px;display:none;z-index:2;white-space:nowrap}button:focus-visible{outline:3px solid #fff;outline-offset:3px}@media(max-width:700px){header{height:66px;padding:10px 14px;gap:8px}.brand{font-size:14px;gap:8px}.mark{width:32px;height:32px;font-size:21px}.brand small{font-size:7px;letter-spacing:1px}.stats{gap:16px}.stats b{font-size:17px}.stats small{font-size:8px}.best{display:none}.tool{width:30px;height:30px;font-size:19px}.tag{top:16px;left:15px;font-size:9px}.tag span{display:none}.speed{right:15px;top:12px}.speed strong{font-size:38px}.controls{left:14px;right:14px;bottom:max(18px,env(safe-area-inset-bottom))}.steering button{width:61px;height:64px}.pedals button{height:64px}.pedals .gas{width:86px}.pedals .brake{width:57px}.steering,.pedals{gap:8px}.gas span{margin-left:5px}.overlay{padding:28px 7%}h1{margin:12px 0}p{font-size:12px}.keys{margin:15px 0}.track-label{display:none}.controls .recover{font-size:9px;padding:10px 8px;margin:0 3px 5px}}@media(max-height:500px){header{height:58px;padding:8px 20px}.brand{font-size:14px}.brand small{font-size:7px}.mark{width:32px;height:32px;font-size:21px}.stats b{font-size:18px}.stats{gap:30px}.overlay{padding:16px 7%}h1{font-size:30px;margin:10px 0}p{font-size:12px;margin:8px 0}.keys{margin:10px 0}.primary{padding:12px 20px}.hint{margin-top:9px}.controls{bottom:16px}.steering button,.pedals button{height:58px}.tag{top:12px}.speed{top:10px}.speed strong{font-size:38px}}
.views{position:absolute;top:18px;left:50%;transform:translateX(-50%);display:flex;gap:3px;padding:4px;background:#182820d9;border:1px solid #ffffff25;border-radius:9px;z-index:2;white-space:nowrap}.views button{padding:9px 13px;background:transparent;border-radius:5px;color:#d9e3d8;font-size:12px}.views button[aria-pressed=true]{background:#d2fa60;color:#24351c;font-weight:700}body.perspective .tag,body.perspective .speed{color:#f3f6ea;text-shadow:0 1px 5px #17251c}.perspective .controls .recover{background:#1e2c25dd}@media(max-width:700px){.views{top:15px}.views button{font-size:10px;padding:8px 9px}.perspective .tag{display:none}}@media(max-height:500px){.views{top:10px}.views button{padding:7px 12px}.perspective .tag{display:none}}
.feedback{position:absolute;left:50%;top:27%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 20px;min-width:210px;border-radius:8px;background:#3e301be8;border:1px solid #f8cc78;color:#ffe4a0;text-align:center;pointer-events:none;z-index:2}.feedback[hidden]{display:none}.feedback b{font-size:18px;letter-spacing:2px}.feedback span{font-size:11px}.feedback[data-kind=impact],.feedback[data-kind=fall]{background:#48251eea;border-color:#ff9c77;color:#ffd2bd}.feedback[data-kind=edge]{background:#4b2e13eb;border-color:#ffc265;color:#ffdb8a}#toast{top:18%;font-size:12px}@media(max-height:500px){.feedback{top:30%;padding:8px 14px;gap:4px}.feedback b{font-size:15px}#toast{top:20%;padding:7px 14px;font-size:10px}}

.map-menu{position:absolute;left:18px;top:16px;z-index:2;max-width:240px;padding:10px 12px;border-radius:6px;background:#182820e8;border:1px solid #ffffff30;color:#e4eddb;font-size:11px;letter-spacing:.4px}.route-hud{position:absolute;left:20px;top:59px;color:#fff4d6;text-shadow:0 1px 3px #1a3028;font-size:10px;letter-spacing:.3px;pointer-events:none}.map-picker{display:flex;gap:6px;margin-bottom:20px}.map-picker button{padding:10px 13px;background:#ffffff0d;color:#b7c7ba;border:1px solid #ffffff28;border-radius:5px;font-size:11px}.map-picker button[aria-pressed=true]{background:#d2fa60;color:#26341c;border-color:#d2fa60;font-weight:700}.overlay section{max-width:640px}.map-menu:focus-visible,.map-picker button:focus-visible{outline:2px solid #d2fa60;outline-offset:3px}
@media(max-width:600px){.map-menu{left:12px;top:12px;font-size:10px;padding:9px;max-width:240px}.route-hud{top:50px;left:14px;font-size:9px}.views{top:76px}.map-picker{gap:5px;margin-bottom:18px}.map-picker button{font-size:10px;padding:10px}.overlay{padding:24px 7%}.overlay h1{font-size:34px}.overlay .keys{margin:18px 0}.speed strong{font-size:35px}}
@media(max-height:500px){.map-menu{top:10px;padding:7px 9px;font-size:10px}.route-hud{top:44px;font-size:9px}.map-picker{margin-bottom:10px}.map-picker button{padding:7px 10px;font-size:10px}.overlay h1{font-size:26px;margin:8px 0}.overlay .eyebrow{font-size:8px;letter-spacing:2px}.overlay .keys{display:none}.overlay p{line-height:1.6;margin:9px 0}.overlay .hint{font-size:9px}.primary{padding:11px 18px}}
.map-picker{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));max-width:560px;gap:6px!important}.map-picker button{min-height:40px;white-space:normal}.overlay>section{max-height:100%;overflow-y:auto;touch-action:pan-y;scrollbar-width:thin;padding:3px 4px 8px 0}.route-hud{max-width:calc(100% - 210px)}
@media(max-width:600px){.map-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.map-picker button{font-size:11px;padding:8px!important}.overlay h1{font-size:29px}.route-hud{max-width:calc(100% - 20px);font-size:9px}.controls{gap:4px}.controls .recover{flex-shrink:0}}
@media(max-height:500px){.map-picker{grid-template-columns:repeat(5,minmax(0,1fr));max-width:700px;margin-bottom:10px!important}.map-picker button{font-size:10px;padding:6px 8px!important;min-height:32px}.overlay h1{font-size:24px;line-height:1.12}.overlay p{font-size:11px;line-height:1.55}.overlay .keys{margin:8px 0}.overlay .hint{margin-top:7px}.overlay>section{width:100%}}

@media(max-width:360px){header{padding:8px 10px;gap:6px}.brand{font-size:12px;letter-spacing:1px;gap:5px}.brand small{display:none}.mark{width:26px;height:26px;font-size:18px}.stats{gap:10px}.stats b{font-size:15px}.stats small{font-size:7px}.tool{width:28px;height:28px;flex-shrink:0}.steering button{width:48px}.steering,.pedals{gap:6px}.pedals .brake{width:46px}.pedals .gas{width:66px}.pedals button{font-size:12px}.gas span{font-size:18px;margin-left:1px}.controls .recover{font-size:8px;padding:9px 6px;margin:0 1px 5px}}

.team-hud{position:absolute;right:18px;top:105px;display:grid;gap:5px;max-width:245px;padding:10px 12px;border:1px solid #ffffff30;border-radius:8px;background:#172b27e8;color:#edf5ed;pointer-events:none;font-variant-numeric:tabular-nums;z-index:1}.team-hud b{font-size:15px;color:#8dd6ff}.team-hud span{font-size:11px}.team-hud small{font-size:10px;line-height:1.4;color:#d0ddd2}.team-hud small:last-child{color:#8dd6ff}.team-note{color:#a5dbf4;font-size:12px}@media(max-width:600px){.team-hud{top:128px;right:10px;padding:8px;max-width:185px;gap:4px}.team-hud b{font-size:13px}.team-hud span,.team-hud small{font-size:9px}.team-note{font-size:11px}}@media(max-height:500px){.team-hud{top:76px;right:12px;max-width:205px;padding:7px 9px;gap:3px}.team-hud b{font-size:12px}.team-hud span,.team-hud small{font-size:9px}.team-note{font-size:10px}}
.presentation-settings{position:absolute;right:26px;bottom:110px;display:flex;gap:5px;z-index:2}.presentation-settings button{background:#192c2de8;border:1px solid #83b7a56b;border-radius:5px;color:#dbe8dd;font-size:10px;padding:7px 10px}.presentation-settings button[aria-pressed=true]{color:#d2fa60;border-color:#d2fa6070}.race-progress{position:absolute;bottom:0;left:0;width:100%;height:3px;background:#172b27a0;pointer-events:none}.race-progress:after{content:"";display:block;width:var(--progress,0%);height:100%;background:#d2fa60;transition:width .2s linear}@media(max-width:600px){.presentation-settings{right:14px;bottom:99px}.presentation-settings button{padding:6px 8px;font-size:9px}}@media(max-height:500px){.presentation-settings{right:18px;bottom:85px}.presentation-settings button{padding:5px 8px;font-size:9px}}@media(prefers-reduced-motion:reduce){.race-progress:after{transition:none}}
