* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #050711; color: #fff; font-family: Arial, Helvetica, sans-serif; }
body { touch-action: none; user-select: none; }
.game-shell { position: relative; width: 100%; height: 100%; min-height: 280px; overflow: hidden; background: radial-gradient(circle at 50% 120%, #312e81, #050711 65%); }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.hud { position: absolute; inset: 14px 14px auto; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
.hud p { margin: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 13px; background: rgba(5,7,17,.62); color: #94a3b8; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(8px); }
.hud strong { margin-left: 5px; color: #67e8f9; font-size: 14px; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(5,7,17,.62); backdrop-filter: blur(5px); transition: opacity .2s ease; }
.overlay.hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.panel { width: min(440px, 100%); padding: clamp(22px, 6vw, 42px); border: 1px solid rgba(255,255,255,.15); border-radius: 28px; background: linear-gradient(145deg, rgba(49,46,129,.88), rgba(15,23,42,.9)); text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,.4); }
.kicker { margin: 0; color: #67e8f9; font-size: 10px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
h1 { margin: 10px 0 0; font-size: clamp(32px, 8vw, 56px); line-height: .95; letter-spacing: -.055em; text-transform: uppercase; }
#screen-copy { margin: 16px auto 0; max-width: 330px; color: #cbd5e1; font-size: 14px; line-height: 1.6; }
button { margin-top: 22px; border: 0; border-radius: 999px; padding: 13px 22px; background: #67e8f9; color: #0f172a; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; box-shadow: 0 10px 30px rgba(34,211,238,.2); transition: transform .15s, background .15s; }
button:hover { transform: translateY(-2px); background: #fff; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.controls { margin: 18px 0 0; color: #94a3b8; font-size: 10px; font-weight: 700; letter-spacing: .05em; }
@media (max-height: 400px) { .panel { padding: 18px 26px; } .controls { margin-top: 10px; } button { margin-top: 14px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
