:root { color-scheme: dark; font-family: system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at top, #283b7b, #11152d 62%); }
.game-shell { width: min(100%, 510px); padding: 24px 18px; text-align: center; }
header { margin-bottom: 16px; }
.eyebrow { color: #fcd34d; font-size: .72rem; font-weight: 800; letter-spacing: .18em; margin: 0; }
h1 { font-size: clamp(2rem, 7vw, 3rem); margin: 3px 0 0; }
.game-card { position: relative; overflow: hidden; border: 4px solid #fff; border-radius: 24px; box-shadow: 0 18px 45px #0008; background: #79c9f4; }
canvas { display: block; width: 100%; height: auto; touch-action: manipulation; }
.hud { position: absolute; top: 15px; inset-inline: 18px; z-index: 1; display: flex; justify-content: space-between; font-size: 1rem; text-shadow: 0 2px 2px #163a66; }
.lives { color: #ff5f73; font-size: 1.2rem; letter-spacing: .08em; line-height: 1; }
.overlay { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; padding: 28px; background: #10204aa8; text-shadow: 0 2px 3px #0008; }
.overlay.hidden { display: none; }
h2 { margin: 0; font-size: 1.6rem; }
.overlay p { margin: 0 0 10px; line-height: 1.5; }
button { margin: auto; padding: 12px 24px; border: 0; border-radius: 999px; color: #392800; background: #fcd34d; box-shadow: 0 4px #bf7a16; cursor: pointer; font: inherit; font-weight: 900; }
button:active { transform: translateY(3px); box-shadow: 0 1px #bf7a16; }
.tip { color: #ccd8ff; font-size: .9rem; }
