:root{font-family:'DM Sans',sans-serif;color:#173e3a;background:#bedbd1;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}#game{position:fixed;inset:0;width:100%;height:100%;display:block}header,footer{position:fixed;left:0;right:0;z-index:2;display:flex;align-items:center;justify-content:space-between}header{top:0;padding:30px 42px}.brand{font-family:Manrope,sans-serif;font-weight:800;font-size:31px;letter-spacing:-1.7px;text-decoration:none;color:#173e3a}.brand span{font-weight:400}.brand i{font-style:normal;color:#ed6b3d;margin-left:9px}.location{font-size:10px;font-weight:700;letter-spacing:2px;display:flex;align-items:center;gap:12px}.live-dot{height:6px;width:6px;background:#ed6b3d;border-radius:50%}.route{border-left:1px solid #173e3a40;padding-left:15px;opacity:.6}.icon-button{border:1px solid #173e3a35;background:#f5f5e97a;padding:10px 14px;border-radius:100px;color:#173e3a;cursor:pointer;font:700 15px 'DM Sans',sans-serif}.icon-button span{font-size:9px;letter-spacing:1px;margin-left:6px}button{transition:transform .2s,background .2s}button:hover{transform:translateY(-2px)}button:focus-visible{outline:3px solid #173e3a;outline-offset:4px}.panel{position:absolute;left:7%;top:23%;max-width:520px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;display:flex;gap:10px;align-items:center}.eyebrow>span{height:1px;width:24px;background:#173e3a}h1{font-family:Manrope,sans-serif;font-size:clamp(54px,6.5vw,94px);line-height:1.02;letter-spacing:-5px;margin:24px 0}h1 span,h2 span{color:#ed6b3d}p{font-size:14px;line-height:1.9;color:#365e55;margin-bottom:28px}.primary{background:#ed6b3d;color:#fff9ed;border:0;border-radius:5px;padding:19px 23px;font:700 11px 'DM Sans',sans-serif;letter-spacing:1.5px;min-width:211px;text-align:left;cursor:pointer;box-shadow:0 7px 20px #8c4d2220}.primary span{float:right;font-size:20px;line-height:14px;margin-left:35px}.primary:hover{background:#db5b30}.controls{display:flex;align-items:center;gap:6px;margin-top:24px;font-size:10px;color:#49695e}.controls span{margin:0 8px}.controls b{margin:0 3px}kbd{font:10px 'DM Sans',sans-serif;border:1px solid #173e3a30;border-radius:4px;padding:5px 7px;background:#f9f4df60}.best-line{font-size:9px;letter-spacing:1.5px;margin-top:35px;opacity:.65}.best-line strong{margin-left:16px;font-size:11px;letter-spacing:0}.hud{position:absolute;top:108px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:42px;background:#fff9e8d9;border:1px solid #fff8e5;border-radius:12px;padding:17px 24px;box-shadow:0 5px 30px #173e3a0c}.label{display:block;font-size:9px;font-weight:700;letter-spacing:1.5px;margin-bottom:6px}.hud strong{font-family:Manrope,sans-serif;font-size:26px}.hud small{font-size:12px;font-weight:500}.coin-value{color:#d27b20}.modal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(470px,90vw);background:#f9f6e9ef;border:1px solid #fff9e5;padding:40px;border-radius:15px;box-shadow:0 25px 100px #173e3a30;backdrop-filter:blur(15px)}h2{font:800 38px/1.1 Manrope,sans-serif;letter-spacing:-1.6px;margin:20px 0}.results{display:flex;gap:50px;margin:25px 0 30px}.results strong{font:800 28px Manrope,sans-serif}.ride-hint{position:absolute;bottom:85px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:2px;background:#fff9e8c0;padding:12px 20px;border-radius:100px}footer{bottom:0;padding:24px 42px;font-size:9px;font-weight:700;letter-spacing:1.6px;color:#173e3aa0}.footer-right{display:flex;align-items:center;gap:22px}footer i{font-size:25px;font-style:normal;color:#ed6b3d}.hidden{display:none!important}.touch{position:absolute;bottom:80px;left:20px;right:20px;display:flex;justify-content:space-between;pointer-events:none}.touch button{pointer-events:auto;width:65px;height:65px;background:#fff9e8b0;border:1px solid #fff9e8;border-radius:50%;font-size:26px;color:#173e3a;touch-action:manipulation}@media(max-width:700px){header{padding:22px}.location{display:none}.brand{font-size:26px}.panel{left:7%;top:20%;max-width:86%}h1{font-size:58px;letter-spacing:-3px}.panel p{font-size:12px}.controls{flex-wrap:wrap}.best-line{margin-top:22px}footer{padding:18px 22px;font-size:8px}.footer-right{display:none}.hud{top:85px;gap:24px;padding:13px 18px}.ride-hint{display:none}.modal{padding:30px}.touch.hidden{display:none!important}}@media(min-width:701px) and (pointer:fine){.touch{display:none}}@media(max-height:650px){.panel{top:19%}h1{font-size:60px;margin:16px 0}.panel p{margin-bottom:18px}.best-line{margin-top:16px}.controls{margin-top:16px}}
/* Lagos Overdrive */
#speedometer{position:absolute;left:20px;top:100px;min-width:105px;padding:14px 18px;background:#132739eb;border:1px solid #819cab;border-radius:10px;color:#fff5df;text-align:left;pointer-events:none}#speedometer>span{display:block;font-size:9px;letter-spacing:2px;color:#b5c8d4}#speedometer strong{display:block;font:800 36px/1.2 Manrope,sans-serif;font-variant-numeric:tabular-nums}#speedometer small{font-size:10px;letter-spacing:1.5px;color:#f4c76c}@media(max-width:700px){#speedometer{left:10px;top:85px;min-width:75px;padding:10px 12px}#speedometer strong{font-size:28px}}
:root{color:#182b3e;background:#9cb7ce}
.brand,.icon-button{color:#182b3e}.brand i,h1 span,h2 span{color:#e94b32}
.panel{top:21%;max-width:650px}.panel h1{font-size:clamp(50px,6.2vw,88px);letter-spacing:-4px}
body:has(#intro:not(.hidden))::before{content:'';position:fixed;inset:0;background:linear-gradient(90deg,#e3edf3ee 0%,#e3edf3c9 27%,#e3edf300 64%);pointer-events:none}
.eyebrow>span{background:#182b3e}.panel p,.controls{color:#344a5e}.primary{background:#e94b32}.primary:hover{background:#cf3d26}
.hud{background:#13222fea;color:#f1f5f8;border:1px solid #66849a;border-radius:8px;gap:32px;padding:15px 24px}.hud .label{color:#a5bacb}.hud .icon-button{color:#e7eff5;background:#233b4d;border-color:#58758b}.speed-value{color:#ff7755}.hud strong{font-variant-numeric:tabular-nums}.hud small{font-size:10px}.coin-value{color:#ffd16a}
.ride-hint{background:#13222fc9;color:#dce8f0}.modal{background:#eaf0f5f2;color:#182b3e}.modal p{color:#344a5e}footer{color:#263e53}footer i{color:#e94b32}
#boost{font-size:12px;font-weight:800;border-radius:12px;color:#fff;background:#e94b32d9;width:85px;touch-action:none}#boost.active{background:#ffc23d;color:#172a3b;box-shadow:0 0 30px #ffc23d88}
@media(max-width:700px){.panel{top:22%;max-width:92%}.panel h1{font-size:54px;letter-spacing:-3px}.hud{gap:16px;padding:12px 15px;white-space:nowrap}.hud strong{font-size:21px}.hud .label{font-size:8px}.hud small{font-size:9px}body:has(#intro:not(.hidden))::before{background:linear-gradient(90deg,#e3edf3f0,#e3edf3aa 60%,#e3edf300)}.controls span{margin:0 4px}}
@media(max-height:650px){.panel{top:20%}.panel h1{font-size:55px}}
.bus-warning{position:absolute;left:50%;top:205px;transform:translateX(-50%);background:#ffc438ee;color:#251e11;padding:12px 22px;border:2px solid #241e14;border-radius:8px;text-align:center;pointer-events:none;box-shadow:0 5px 25px #101c2940}.bus-warning strong{display:block;font-size:17px;font-weight:800;letter-spacing:1px}.bus-warning span{display:block;font-size:9px;letter-spacing:2px;margin-top:5px}#jump{font-size:12px;font-weight:800;border-radius:12px;color:#fff;background:#244e75dd;width:75px;touch-action:manipulation}.controls{flex-wrap:wrap}@media(max-width:700px){.bus-warning{top:170px;white-space:nowrap}.bus-warning strong{font-size:14px}.touch{gap:10px}.touch button{width:54px;height:58px}#boost,#jump{width:65px}.ride-hint{display:none}}
.encounter-warning{position:absolute;top:280px;left:50%;transform:translateX(-50%);background:#17293dee;color:#ffe4a3;border:1px solid #c4a761;border-radius:7px;padding:12px 20px;font-size:11px;font-weight:700;letter-spacing:1px;text-align:center;pointer-events:none;max-width:90vw;width:max-content}#encounter-progress{position:absolute;right:42px;bottom:90px;color:#e8f0f8;background:#17293de8;border-radius:6px;padding:12px 16px;font-size:9px;letter-spacing:1.5px}#encounter-progress strong{margin-left:12px;color:#ffce6d}#encounter-progress span{display:block;margin-top:6px;color:#a3b7c9;font-size:8px}@media(max-width:700px){.encounter-warning{top:245px;font-size:10px}#encounter-progress{right:20px;bottom:158px;font-size:8px;padding:9px 12px}#encounter-progress span{display:none}}
#course-counter{position:absolute;top:108px;right:42px;min-width:140px;padding:16px 20px;background:#142537ed;border:1px solid #718697;border-radius:8px;color:#f6f3e7;box-shadow:0 6px 22px #172a3330}#course-counter>span{display:block;font-size:9px;letter-spacing:2px;color:#b8cada;font-weight:700}#course-counter strong{display:block;font:800 32px Manrope,sans-serif;font-variant-numeric:tabular-nums;color:#ffce6d;margin-top:4px}#course-counter small{font-size:13px;color:#d6e2e9}.median-warning{position:absolute;left:50%;bottom:145px;transform:translateX(-50%);padding:12px 20px;border-radius:6px;background:#ed4b2fee;color:white;font-size:11px;font-weight:800;letter-spacing:1px;white-space:nowrap}@media(max-width:700px){#course-counter{top:160px;right:20px;min-width:100px;padding:10px 12px}#course-counter strong{font-size:24px}#course-counter>span{font-size:7px}.median-warning{bottom:225px;font-size:10px}}
#opening-cue{position:absolute;top:230px;left:50%;transform:translateX(-50%);background:#132739ed;color:#ffe4a1;padding:14px 22px;border-radius:8px;border:1px solid #b5985c;max-width:90vw;font-size:11px;font-weight:700;letter-spacing:1px;text-align:center;pointer-events:none}#opening-cue:empty{display:none}@media(max-width:700px){#opening-cue{top:265px;font-size:10px}}
#course-counter{left:50%;right:auto;transform:translateX(-50%);top:95px;text-align:center;min-width:160px}#hud{position:absolute;right:42px;top:108px}#opening-cue{top:210px}@media(max-width:700px){#course-counter{left:50%;right:auto;top:85px;min-width:140px}#hud{right:20px;top:90px}#opening-cue{top:195px}}
#accelerate-sign{position:absolute;top:145px;left:50%;transform:translateX(-50%);z-index:8;padding:10px 25px;background:#ffdf32;color:#182330;border:3px solid #fff;font-size:clamp(20px,3vw,36px);font-weight:900;pointer-events:none;animation:accelerate-flash .55s steps(2,end) infinite}#accelerate-sign[hidden]{display:none}@keyframes accelerate-flash{50%{background:#ed3939;color:#fff;box-shadow:0 0 30px #ffd731}}
.name-label{display:block;font-size:9px;font-weight:700;letter-spacing:1.5px;margin:0 0 9px}#player-name{display:block;width:260px;max-width:90%;padding:13px 15px;border:1px solid #6a8599;border-radius:5px;background:#f8fbf2dd;color:#172d41;font:16px DM Sans,sans-serif;margin:0 0 15px}#record-panel{position:absolute;right:42px;top:108px;background:#142537ed;color:#ffe4a1;padding:14px 20px;min-width:130px;border-radius:8px;text-align:right}#record-panel>span{display:block;font-size:9px;letter-spacing:2px;color:#b8cada}#record-panel strong{display:block;font-size:24px;margin:5px 0}#record-panel small{display:block;font-size:11px;color:#d4e1e7}#hud{top:215px}.panel{top:17%}.panel h1{font-size:clamp(48px,5.8vw,78px)}@media(max-width:700px){#record-panel{right:15px;top:85px;min-width:95px;padding:10px}#record-panel strong{font-size:18px}#record-panel>span{font-size:7px}#course-counter{left:35%;min-width:110px}#hud{top:178px}.panel{top:19%}.panel h1{font-size:48px}}

.touch button{width:clamp(44px,12vw,65px);height:clamp(44px,12vw,65px);font-size:12px;font-weight:700}.touch #left,.touch #right{font-size:26px}#game{touch-action:none}@media(max-width:700px){.touch{bottom:max(55px,env(safe-area-inset-bottom));left:12px;right:12px}.panel{max-height:calc(100dvh - 170px);overflow:auto}.panel h1{font-size:clamp(34px,10vw,48px)}.controls{gap:3px}.controls span{margin:0 3px}}@media(max-height:500px){.panel{top:85px;max-height:calc(100dvh - 120px);overflow:auto}.panel h1{font-size:34px;margin:8px 0}.panel p{font-size:11px;margin:8px 0}.controls{margin:8px 0}#course-counter,#speedometer,#record-panel{top:65px}}

.brand{font-size:clamp(18px,2.2vw,28px);letter-spacing:-.7px;line-height:1.2}header{gap:12px}@media(max-width:700px){.brand{font-size:18px;max-width:calc(100% - 75px)}}

@media(max-width:700px){#course-counter{left:50%;min-width:110px;padding:10px 12px}#speedometer{left:12px;min-width:75px;padding:10px}#speedometer strong{font-size:28px}#record-panel{right:12px;min-width:85px}}

#intro h1{font-size:clamp(32px,4vw,58px);letter-spacing:-2px;line-height:1.08;margin:20px 0;max-width:580px}@media(max-width:700px){#intro h1{font-size:clamp(30px,8.6vw,40px);letter-spacing:-1px}}@media(max-height:500px){#intro h1{font-size:30px;margin:8px 0}}

.touch button{display:flex;align-items:center;justify-content:center;padding:0;line-height:1;user-select:none;-webkit-user-select:none}.touch svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
@media(max-width:700px),(pointer:coarse){.touch{display:grid;grid-template-columns:76px 1fr 64px 76px;grid-template-rows:64px 76px;gap:10px 8px;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));align-items:center;justify-items:center}.touch button{width:64px;height:64px;font-size:11px}.touch #left,.touch #right{width:76px;height:76px}.touch #left{grid-column:1;grid-row:2}.touch #brake{grid-column:1;grid-row:1}.touch #jump{grid-column:3;grid-row:2}.touch #right{grid-column:4;grid-row:2}.touch #boost{grid-column:4;grid-row:1;width:76px;font-size:10px}.touch button:hover{transform:none}.touch button:active{transform:scale(.95)}}

/* Gameplay communicates obstacles through the scene, without hint overlays. */
#opening-cue,#ride-hint,#median-warning,#encounter-warning,#bus-warning,#accelerate-sign{display:none!important}

@media(max-width:700px),(pointer:coarse){.touch{grid-template-columns:76px 1fr 64px 76px}.touch #jump{grid-column:3;grid-row:1}.touch #right,.touch #boost{grid-column:4}}

#game-version{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:5px 10px;border-radius:20px;background:#f5f5e9b3;color:#173e3a;font-size:11px;font-weight:600;letter-spacing:.5px;pointer-events:none}
