:root { --gold: #ffd34d; --ink: #0c0c10; --cyan: #7ff3ff; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: #fff; font-family: "Arial Black", Arial, sans-serif; }
#app canvas { display: block; }

#hud { position: fixed; inset: 0; pointer-events: none; text-shadow: 0 2px 0 #000, 0 0 8px #000; }
#cred { position: absolute; top: 14px; left: 18px; font-size: 34px; color: var(--gold); }
#time { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 30px; }
#stars { position: absolute; top: 12px; right: 18px; font-size: 34px; color: #777; letter-spacing: 2px; }
#stars.hot { color: #ff4d4d; animation: flash .5s steps(2) infinite; }
@keyframes flash { 50% { color: #4d7dff; } }
#upgrades { position: absolute; top: 56px; left: 18px; font: 13px Arial, sans-serif; color: var(--cyan); max-width: 50vw; }
#msg { position: absolute; top: 24%; left: 0; right: 0; text-align: center; font-size: 30px; line-height: 1.35; }
#map { position: absolute; left: 16px; bottom: 16px; width: 200px; height: 200px; border: 3px solid #000; border-radius: 10px; opacity: .9; }
#street { position: absolute; left: 232px; bottom: 20px; font-size: 20px; }
#radio { position: absolute; left: 232px; bottom: 48px; font: bold 15px Arial, sans-serif; color: var(--cyan); }
#speed { position: absolute; right: 22px; bottom: 14px; font-size: 56px; }
#speed small { font-size: 18px; }
#shades { position: fixed; inset: 0; pointer-events: none; display: none; background: radial-gradient(ellipse at 30% 50%, rgba(40,20,0,.18) 30%, transparent 31%), radial-gradient(ellipse at 70% 50%, rgba(40,20,0,.18) 30%, transparent 31%), rgba(40,20,0,.16); }

.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(5,5,10,.55); padding: 16px; overflow: auto; }
.card { background: rgba(12,12,16,.92); border: 2px solid var(--gold); border-radius: 18px; padding: 26px 30px; max-width: 900px; width: 100%; box-shadow: 0 0 40px rgba(255,211,77,.25); }
.card.small { max-width: 380px; text-align: center; }
h1 { margin: 0; font-size: clamp(40px, 8vw, 78px); letter-spacing: 3px; color: var(--gold); text-shadow: 4px 4px 0 #8a1c1c; }
h1 span { color: var(--cyan); text-shadow: 4px 4px 0 #1c3a8a; }
h2 { margin: 0 0 14px; color: var(--gold); }
h3 { margin: 0 0 6px; color: var(--cyan); font-size: 15px; }
.sub { font: 17px Arial, sans-serif; color: #ddd; }
.buttons { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 18px 0 8px; }
button, #vrbutton { font: 20px "Arial Black", Arial, sans-serif !important; padding: 12px 22px !important; border-radius: 10px !important; border: 0 !important; cursor: pointer; background: var(--gold) !important; color: var(--ink) !important; opacity: 1 !important; }
#vrslot #vrbutton { position: static !important; left: auto !important; bottom: auto !important; width: auto !important; }
#vrbutton[disabled], #vrslot a { background: #444 !important; color: #bbb !important; font-size: 14px !important; text-decoration: none; }
#vrslot a { position: static !important; display: inline-block; padding: 12px 16px; border-radius: 10px; width: auto !important; left: auto !important; bottom: auto !important; }
#best { font: 15px Arial, sans-serif; color: var(--gold); }
.help { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; font: 14px/1.55 Arial, sans-serif; color: #ccc; }
.help b { color: #fff; }
.big { font-size: 40px; color: var(--gold); margin: 6px 0; }
#bestline { font: 15px Arial, sans-serif; margin-bottom: 16px; }
