*{box-sizing:border-box}html,body{background:#0d1117;height:100%;margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif;overflow:hidden}#game{width:100vw;height:100vh;display:block}#hud{pointer-events:none;color:#fff;text-shadow:0 2px #00000073;position:fixed;inset:0}#pos{letter-spacing:.08em;font-size:18px;font-weight:700;position:absolute;top:16px;left:20px}#pos b{font-size:44px;font-style:italic}#time{font-variant-numeric:tabular-nums;font-size:26px;font-weight:800;position:absolute;top:20px;left:50%;transform:translate(-50%)}#progress{background:#00000059;border-right:4px solid #ffd23f;border-radius:3px;width:min(30vw,280px);height:6px;position:absolute;top:28px;right:24px}#track-line{width:100%;height:100%;position:relative}.dot{background:#cfcfcf;border:2px solid #333;border-radius:50%;width:12px;height:12px;margin-left:-6px;position:absolute;top:-3px}.dot.me{z-index:1;background:#e63946;border-color:#fff}#bars{gap:8px;display:grid;position:absolute;bottom:52px;left:20px}.bar{align-items:center;gap:10px;display:flex}.label{letter-spacing:.1em;width:76px;font-size:13px;font-weight:800}.meter{background:#00000073;border:2px solid #fffc;width:min(36vw,220px);height:12px}.meter>div{background:linear-gradient(90deg,#e63946,#ffd23f);width:100%;height:100%;transition:width .15s}#hp-player{background:linear-gradient(90deg,#2a9d8f,#8ce99a)}#speedo{text-align:right;position:absolute;bottom:50px;right:24px}#kmh{font-variant-numeric:tabular-nums;font-size:64px;font-style:italic;font-weight:900;line-height:1}.unit{letter-spacing:.2em;opacity:.85;font-size:13px;font-weight:800}.rev{background:#0006;width:180px;height:8px;margin-top:6px;margin-left:auto}#rev-fill{background:linear-gradient(90deg,#8ce99a,#ffd23f 70%,#e63946);width:0;height:100%}#msg{text-align:center;letter-spacing:.04em;font-size:clamp(32px,7vw,72px);font-style:italic;font-weight:900;position:absolute;top:30%;left:0;right:0}#help{text-align:center;opacity:.9;background:#00000059;border-radius:4px;width:max-content;max-width:calc(100% - 32px);padding:5px 12px;font-size:14px;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}#overlay{color:#fff;text-align:center;background:#0a0e148c;place-content:safe center;justify-items:center;gap:12px;padding:16px;transition:opacity .3s;display:grid;position:fixed;inset:0;overflow-y:auto}#overlay.hidden{opacity:0;pointer-events:none}#overlay h1{letter-spacing:.02em;color:#ffd23f;text-shadow:4px 4px #d7263d;margin:0;font-size:clamp(48px,10vw,104px);font-style:italic;font-weight:900}#overlay p{letter-spacing:.15em;text-transform:uppercase;opacity:.9;margin:0;font-size:18px}#results{gap:4px;min-width:min(90vw,320px);display:grid}#results div{font-variant-numeric:tabular-nums;text-align:left;background:#ffffff14;grid-template-columns:48px 1fr auto;gap:12px;padding:4px 10px;display:grid}#results .me{background:#d7263d;font-weight:800}#start{font:inherit;letter-spacing:.08em;color:#111;cursor:pointer;background:#ffd23f;border:0;border-radius:4px;margin-top:8px;padding:12px 22px;font-weight:800}#overlay .credits{letter-spacing:.02em;text-transform:none;opacity:.6;max-width:520px;margin-top:4px;font-size:11px}#start:disabled{opacity:.7;cursor:progress}#pause{color:#fff;background:#0a0e1499;place-items:center;padding:16px;display:grid;position:fixed;inset:0}#pause.hidden{display:none}#pause .panel{text-align:center;background:#141820eb;border:2px solid #ffffff26;border-radius:6px;gap:10px;min-width:min(90vw,280px);padding:24px;display:grid}#pause h2{color:#ffd23f;text-shadow:3px 3px #d7263d;margin:0 0 6px;font-size:36px;font-style:italic;font-weight:900}#pause button{font:inherit;letter-spacing:.06em;color:#111;cursor:pointer;background:#ffd23f;border:0;border-radius:4px;padding:12px 18px;font-weight:800}#pause button.secondary{color:#fff;background:0 0;border:2px solid #ffffff80}#pause button:focus-visible,#start:focus-visible{outline-offset:2px;outline:3px solid #fff}#pause .hint{opacity:.7;margin:4px 0 0;font-size:12px}#settings{color:#fff;z-index:2;background:#0a0e14b3;place-items:center;padding:16px;display:grid;position:fixed;inset:0;overflow-y:auto}#settings.hidden{display:none}#settings .panel{background:#141820f5;border:2px solid #ffffff26;border-radius:6px;gap:14px;width:min(100%,440px);padding:24px;display:grid}#settings h2{color:#ffd23f;text-shadow:3px 3px #d7263d;text-align:center;margin:0;font-size:32px;font-style:italic;font-weight:900}#settings fieldset{border:1px solid #ffffff26;border-radius:4px;gap:10px;margin:0;padding:12px 14px;display:grid}#settings legend{letter-spacing:.14em;text-transform:uppercase;color:#ffd23f;padding:0 6px;font-size:12px;font-weight:800}#settings .row{justify-content:space-between;align-items:center;gap:16px;font-size:15px;display:flex}#settings .row span{display:grid}#settings small{opacity:.7;font-size:12px}#settings input[type=range]{accent-color:#ffd23f;width:160px}#settings input[type=checkbox]{accent-color:#ffd23f;width:20px;height:20px}#settings .keys{grid-template-columns:auto 1fr;gap:6px 16px;margin:0;font-size:14px;display:grid}#settings dt{white-space:nowrap;font-weight:800}#settings dd{opacity:.85;margin:0}#settings button,#title-settings{font:inherit;letter-spacing:.06em;color:#111;cursor:pointer;background:#ffd23f;border:0;border-radius:4px;padding:12px 18px;font-weight:800}#title-settings.link{color:#fff;text-underline-offset:3px;background:0 0;padding:6px 12px;text-decoration:underline}#settings :focus-visible,#title-settings:focus-visible{outline-offset:2px;outline:3px solid #fff}#overlay #touch-tip{letter-spacing:normal;text-transform:none;opacity:.9;max-width:360px;margin:0;font-size:15px;line-height:1.45}#overlay #touch-tip[hidden]{display:none}@media (width<=600px){#progress{width:auto;top:64px;left:20px;right:20px}#time{font-size:22px;top:18px}}.key{letter-spacing:.04em;color:#111;min-width:22px;height:22px;text-shadow:none;vertical-align:middle;background:linear-gradient(#f4f4f4,#d6d6d6);border-radius:4px;place-items:center;margin:0 1px;padding:0 5px;font:800 11px/1 system-ui,sans-serif;display:inline-grid;box-shadow:0 2px #8a8a8a,0 2px 4px #0006}.key.wide{min-width:44px}.ico{width:14px;height:14px}.ico.right{transform:rotate(90deg)}.ico.down{transform:rotate(180deg)}.ico.left{transform:rotate(-90deg)}#help{flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 6px;line-height:1;display:flex}#help .sep{opacity:.5}#settings .keys dt{align-items:center;gap:2px;display:flex}#settings .keys dd{align-self:center}#settings .or{opacity:.7;margin:0 4px;font-size:12px;font-weight:400}#settings small .key{transform:scale(.85)}#settings .version{text-align:center;opacity:.6;margin:-4px 0 0;font-size:12px}#update-banner{z-index:3;color:#fff;background:#141820f5;border:2px solid #ffd23f;border-radius:6px;align-items:center;gap:12px;max-width:calc(100% - 32px);padding:10px 12px 10px 16px;font-size:14px;display:flex;position:fixed;top:16px;left:50%;transform:translate(-50%);box-shadow:0 6px 20px #0006}#update-banner[hidden]{display:none}#update-banner button{font:inherit;color:#111;cursor:pointer;background:#ffd23f;border:0;border-radius:4px;padding:8px 12px;font-weight:800}#update-banner .later{color:#fff;text-underline-offset:3px;background:0 0;text-decoration:underline}#rush{background:linear-gradient(90deg,#ff7f11,#ffd23f);width:0;transition:width .2s}#rush-bar.boosting #rush{animation:.25s ease-in-out infinite alternate rush-pulse;width:100%!important}@keyframes rush-pulse{0%{filter:brightness()}to{filter:brightness(1.6)}}@media (prefers-reduced-motion:reduce){#rush-bar.boosting #rush{animation:none}}#touch{z-index:1;pointer-events:none;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;position:fixed;inset:0}#touch[hidden]{display:none}.t-btn{pointer-events:auto;touch-action:none;letter-spacing:.06em;color:#fff;-webkit-tap-highlight-color:transparent;background:#0f121a73;border:2px solid #ffffff8c;border-radius:50%;place-items:center;width:76px;height:76px;padding:0;font:900 14px/1 system-ui,sans-serif;display:grid}.t-btn.pressed{color:#111;background:#ffd23f8c;border-color:#ffd23f}.t-btn .ico{width:34px;height:34px}.t-btn.big{width:96px;height:96px;font-size:16px}.t-btn.small{border-radius:10px;width:44px;height:44px;font-size:14px}#t-pause{top:calc(12px + env(safe-area-inset-top));left:calc(14px + env(safe-area-inset-left));position:absolute}.t-left-hand{left:calc(20px + env(safe-area-inset-left));bottom:calc(20px + env(safe-area-inset-bottom));gap:14px;display:flex;position:absolute}.t-right-hand{right:calc(20px + env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));grid-template-columns:auto auto;grid-template-areas:"gas kick""brake punch";align-items:end;gap:12px;display:grid;position:absolute}#t-gas{grid-area:gas}#t-brake{grid-area:brake}#t-kick{grid-area:kick;justify-self:end}#t-punch{grid-area:punch}#t-gas[hidden],body.touch #help{display:none}body.touch #bars{top:64px;bottom:auto;left:calc(16px + env(safe-area-inset-left));gap:6px}body.touch .meter{width:min(28vw,160px);height:9px}body.touch .label{width:56px;font-size:11px}body.touch #speedo{top:52px;bottom:auto;right:calc(16px + env(safe-area-inset-right))}body.touch #kmh{font-size:40px}body.touch .rev{width:120px}body.touch #time{top:14px}body.touch #pos{top:10px;left:calc(68px + env(safe-area-inset-left))}body.touch #pos b{font-size:34px}body.touch #msg{font-size:clamp(26px,6vw,52px);top:26%}body.touch #overlay h1{font-size:clamp(40px,9vw,80px)}#rotate{z-index:5;color:#fff;text-align:center;background:#0d1117;place-items:center;padding:24px;display:grid;position:fixed;inset:0}#rotate .big{margin:0 0 10px;font-size:20px;font-weight:800}#rotate .hint{color:#a7abb8;margin:0 0 22px;font-size:15px}#rotate>div{justify-items:center;gap:12px;display:grid}#rotate button{font:inherit;color:#111;background:#ffd23f;border:0;border-radius:6px;padding:12px 18px;font-weight:800}#rotate button[hidden]{display:none}#rotate button.secondary{color:#fff;background:0 0;border:2px solid #ffffff80}body.portrait-ok #rotate,#rotate[hidden]{display:none}@media (orientation:landscape){#rotate{display:none!important}}.whats-new{color:#ffd23f;text-underline-offset:3px;font-weight:800}#install-sheet{z-index:6;background:#05080c99;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}#install-sheet[hidden]{display:none}#install-sheet .sheet{width:min(100%,520px);max-height:92vh;padding:20px 20px calc(20px + env(safe-area-inset-bottom));color:#e8e9ee;background:#161b24;border:1px solid #ffffff1a;border-bottom:0;border-radius:18px 18px 0 0;overflow-y:auto;box-shadow:0 -10px 30px #0006}.sheet-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.sheet-head h2{margin:0;font-size:18px;font-weight:800}.sheet .close{color:#a7abb8;cursor:pointer;background:0 0;border:0;border-radius:8px;width:36px;height:36px;font-size:24px;line-height:1}.app-card{background:#ffffff0d;border-radius:12px;align-items:center;gap:14px;margin:16px 0;padding:12px;display:flex}.app-card img{border-radius:12px}.app-card div{display:grid}.app-card span{color:#a7abb8;font-size:14px}.sheet ol{gap:14px;margin:0;padding-left:22px;font-size:15px;line-height:1.9;display:grid}.sheet ol li::marker{color:#a7abb8}.chip{vertical-align:middle;background:#ffffff14;border:1px solid #ffffff26;border-radius:8px;align-items:center;gap:6px;margin:0 2px;padding:2px 10px;font-size:14px;line-height:1.6;display:inline-flex}.chip svg{fill:currentColor;width:16px;height:16px}.sheet .fallback{color:#a7abb8;margin:16px 0 0;font-size:13px;line-height:1.6}#install[hidden]{display:none}#install.link{font:inherit;color:#ffd23f;text-underline-offset:3px;cursor:pointer;background:0 0;border:0;padding:6px 12px;font-weight:800;text-decoration:underline}@media (orientation:portrait){body.touch .t-btn:not(.small){width:62px;height:62px}body.touch .t-btn.big{width:78px;height:78px}body.touch .t-btn .ico{width:28px;height:28px}body.touch .t-left-hand{left:calc(14px + env(safe-area-inset-left));bottom:calc(28px + env(safe-area-inset-bottom));gap:10px}body.touch .t-right-hand{right:calc(14px + env(safe-area-inset-right));bottom:calc(28px + env(safe-area-inset-bottom));gap:8px}body.touch #time{left:auto;right:calc(16px + env(safe-area-inset-right));font-size:20px;top:16px;transform:none}body.touch #progress{top:58px}body.touch #bars{top:78px}body.touch #speedo{top:74px}}@media (height<=600px){#overlay{gap:8px;padding:10px 16px}#overlay h1,body.touch #overlay h1{font-size:clamp(30px,9vh,56px);line-height:1.1}#overlay p{font-size:14px}#results{grid-template-rows:repeat(6,auto);grid-template-columns:1fr 1fr;grid-auto-flow:column;gap:3px 10px;min-width:min(92vw,560px)}#results div{grid-template-columns:36px 1fr auto;gap:8px;padding:2px 8px;font-size:14px}#start{margin-top:2px;padding:10px 18px}#overlay .credits{font-size:10px}}
