* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #071225; color: #f4f8ff; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif; }
body { overscroll-behavior: none; }
.game { position: fixed; inset: 0; overflow: hidden; background: #071225; touch-action: none; user-select: none; -webkit-user-select: none; }
#scene { display: block; width: 100%; height: 100%; touch-action: none; }
.hud { position: absolute; z-index: 2; top: max(16px, env(safe-area-inset-top)); left: 18px; right: 18px; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; text-shadow: 0 2px 12px #020711; }
.score-box { display: grid; gap: 2px; }
.label, .over-kicker { color: #8faac8; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.score-box strong { font-size: 25px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lives { display: flex; gap: 7px; padding-top: 3px; }
.life { width: 20px; height: 20px; color: #ff765f; filter: drop-shadow(0 0 7px #ff594b); }
.life.lost { opacity: .23; filter: grayscale(1); }
.hint { position: absolute; bottom: max(23px, env(safe-area-inset-bottom)); left: 0; right: 0; z-index: 2; text-align: center; color: #a4b4c9; font-size: 12px; pointer-events: none; opacity: .8; }
.game-over { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; padding: 24px; background: #030914b8; }
.game-over[hidden] { display: none; }
.over-panel { width: min(100%, 330px); padding: 30px 24px 26px; text-align: center; border: 1px solid #55708b; border-radius: 12px; background: #0c1c31f2; box-shadow: 0 18px 60px #0008; }
.over-panel h1 { margin: 9px 0 21px; font-size: 26px; }
.over-panel p { margin: 0 0 5px; color: #a6b8ca; font-size: 13px; }
.over-panel > strong { display: block; font-size: 38px; font-variant-numeric: tabular-nums; }
.over-panel button { width: 100%; min-height: 48px; margin-top: 24px; border: 0; border-radius: 8px; background: #ff8a3d; color: #1b1720; font: inherit; font-weight: 800; font-size: 16px; }
