*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;overflow:hidden;background:#1b2530;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#fff;touch-action:none;-webkit-user-select:none;user-select:none}
#c{position:fixed;inset:0;width:100%;height:100%;display:block}
.hide{display:none}
#speedo{position:fixed;right:22px;bottom:20px;text-align:right;text-shadow:0 2px 10px rgba(0,0,0,.45)}
#spd{font-size:64px;font-weight:300;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-1px}
.unit{font-size:14px;letter-spacing:3px;opacity:.85;margin-top:2px}
#cruise{display:inline-block;margin-top:8px;font-size:11px;letter-spacing:2px;padding:3px 8px;border-radius:5px;border:1px solid rgba(255,255,255,.5);opacity:.35}
#cruise.on{opacity:1;background:rgba(80,200,120,.85);border-color:transparent}
#topbar{position:fixed;top:14px;right:14px;display:flex;gap:8px}
#topbar button{width:42px;height:42px;border-radius:21px;border:0;background:rgba(15,22,30,.45);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);font-size:19px;cursor:pointer;color:#fff}
#help{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);font-size:13px;background:rgba(15,22,30,.45);padding:7px 14px;border-radius:16px;white-space:nowrap;transition:opacity 1.5s;backdrop-filter:blur(6px)}
#help.fade{opacity:0}
#touch{display:none}
body.touch #touch{display:block}
body.touch #help{display:none}
body.touch #speedo{right:auto;left:50%;transform:translateX(-50%);bottom:auto;top:14px;text-align:center}
body.touch #spd{font-size:44px}
#touch .tl{position:fixed;left:14px;bottom:calc(18px + env(safe-area-inset-bottom));display:flex;gap:12px}
#touch .tr{position:fixed;right:14px;bottom:calc(18px + env(safe-area-inset-bottom));display:flex;gap:12px;align-items:flex-end}
#touch button{border:0;color:#fff;font-weight:600;background:rgba(15,22,30,.42);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border-radius:18px;font-size:15px;letter-spacing:1px}
#tLeft,#tRight{width:78px;height:78px;font-size:26px!important}
#tGas{width:80px;height:110px;background:rgba(60,170,100,.55)!important}
#tBrake{width:80px;height:78px;background:rgba(200,70,60,.5)!important}
#tCruise{width:64px;height:44px;font-size:11px!important}
#tCruise.on{background:rgba(80,200,120,.85)!important}
#touch button.down{filter:brightness(1.5);transform:scale(.96)}
#intro{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,rgba(10,16,24,.35),rgba(10,16,24,.65));transition:opacity .8s}
#intro.gone{opacity:0;pointer-events:none}
.card{text-align:center;padding:30px 34px;max-width:420px}
.card h1{font-size:44px;font-weight:300;letter-spacing:1px;margin-bottom:10px}
.card p{opacity:.9;margin-bottom:22px;line-height:1.4}
.card .small{font-size:13px;opacity:.7;margin:18px 0 0}
#start{font-size:18px;padding:14px 44px;border-radius:30px;border:0;background:#fff;color:#1b2530;font-weight:600;cursor:pointer}
#start:disabled{opacity:.6}
#start:focus-visible,#topbar button:focus-visible{outline:3px solid #7fc8ff;outline-offset:2px}
body.touch #cruise{display:none}
.card .credit{font-size:11px;opacity:.5;margin-top:10px}

#mm{position:fixed;left:14px;top:14px;border-radius:50%;box-shadow:0 4px 18px rgba(0,0,0,.35);cursor:pointer}
#route{position:fixed;left:50%;top:14px;transform:translateX(-50%);text-align:center;pointer-events:none;text-shadow:0 2px 8px rgba(0,0,0,.5)}
#rname{display:inline-block;background:#0f6b3a;border:2px solid #fff;border-radius:7px;padding:4px 12px;font-weight:700;font-size:16px;letter-spacing:1px}
#nexit{margin-top:6px;font-size:14px;background:rgba(15,22,30,.5);padding:4px 12px;border-radius:12px;display:inline-block;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
#mile{margin-top:4px;font-size:11px;opacity:.85;letter-spacing:1px}
#nexit:empty,#mile:empty{display:none}
#speedo.boost #spd{color:#ffb347}
#bigmap{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:14px;box-shadow:0 10px 40px rgba(0,0,0,.6);display:none;cursor:pointer;z-index:5}
#bigmap.show{display:block}
.gcol{display:flex;flex-direction:column;gap:10px}
#tBoost{width:80px;height:46px;background:rgba(230,140,40,.6)!important;font-size:12px!important}
body.touch #route{top:66px}
body.touch #rname{font-size:13px;padding:3px 9px}
body.touch #nexit{font-size:12px}
body.touch #mile{display:none}
@media (max-height:430px){body.touch #route{top:58px} body.touch #spd{font-size:36px}}
