*{box-sizing:border-box}html,body{margin:0;padding:0;background:#0b0f14;color:#e7ecf2;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial}
#game{display:block;width:100vw;height:56.25vw;max-width:960px;max-height:540px;margin:0 auto;background:#0a0a10;border:1px solid #1f2937;border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.4)}
#ui{position:fixed;top:0;left:0;width:100%;padding:8px 12px;pointer-events:none}
.brand{font-weight:800;letter-spacing:.5px;opacity:.8}
.hud{display:flex;gap:12px;justify-content:center;font-size:14px;margin-top:6px;opacity:.9}
.menu,.overlay{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:rgba(3,6,12,.6);backdrop-filter:blur(4px);text-align:center}
.menu h1{margin:.2rem 0 0 0}
.menu button,.overlay button,.scores-container .button, #btnClear{pointer-events:auto;background:#1f2937;color:#e7ecf2;border:1px solid #334155;padding:10px 16px;border-radius:12px;font-weight:700;cursor:pointer}
.menu .link,.overlay .link{pointer-events:auto;color:#93c5fd;text-decoration:none}
.menu .tips{opacity:.8;font-size:14px;max-width:600px}
.overlay.hidden{display:none}
#touchControls{position:fixed;inset:0;display:flex;justify-content:space-between;align-items:flex-end;padding:16px;gap:16px;pointer-events:none}
#touchControls .pad{display:flex;gap:12px}
#touchControls button{pointer-events:auto;background:#111827;color:#e7ecf2;border:1px solid #374151;width:64px;height:64px;border-radius:50%;font-size:24px;font-weight:900;opacity:.8}
#touchControls .jump{width:84px;height:84px;border-radius:50%}
@media (min-width:1000px){#touchControls{display:none}}
.scores-container{max-width:720px;margin:40px auto;padding:16px}
.scores-container .row{display:flex;gap:12px}
.warn{background:#7f1d1d;border-color:#991b1b}

#btnRun{pointer-events:auto;background:#1e3a8a;color:#e7ecf2;border:1px solid #1d4ed8;width:64px;height:64px;border-radius:50%;font-size:20px;opacity:.8}
