:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #111b30; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; color: #f7f8fc; background: radial-gradient(circle at 50% 0%, #24395d 0, #111b30 58%); }
.game-shell { width: min(100%, 540px); padding: 22px 20px 20px; }
.topbar { height: 48px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.brand { letter-spacing: .26em; font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 9px; color: #dfe7f7; }
.brand-mark { color: #ffcb4d; font-size: 20px; }
.score-card { display: grid; text-align: right; gap: 2px; }
.score-label, .eyebrow, .controls { font: 500 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; color: #a7b7d2; }
.score-card strong { font-size: 22px; line-height: 1; color: #ffcb4d; }
.game-wrap { position: relative; width: 100%; overflow: hidden; border: 1px solid #425475; border-radius: 18px; box-shadow: 0 20px 50px #080f1e99; }
canvas { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; background: #73cbed; touch-action: none; user-select: none; }
.hud { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: linear-gradient(180deg, #12203d12, #101a3199); }
.intro-card, .game-over-card { width: min(100%, 300px); padding: 32px 28px 28px; border: 1px solid #ffffff2b; border-radius: 16px; background: #162440e8; box-shadow: 0 16px 30px #0a132b66; text-align: center; backdrop-filter: blur(8px); }
h1, h2 { margin: 12px 0 16px; font-size: 48px; line-height: .9; letter-spacing: -.07em; }
h1 span { color: #ffcb4d; } h2 { font-size: 34px; letter-spacing: -.05em; }
.hint { margin: 0 0 24px; color: #b9c5da; font-size: 12px; line-height: 1.7; }
kbd { padding: 3px 5px; border-radius: 4px; background: #2b3b5b; color: #f5f7fc; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
button { width: 100%; border: 0; border-radius: 9px; padding: 14px 16px; cursor: pointer; color: #17233d; background: #ffcb4d; font: 800 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; transition: transform .15s, background .15s; }
button:hover { transform: translateY(-2px); background: #ffd86f; } button span { float: right; font-size: 17px; line-height: 10px; }
.final-score { margin: 0 0 24px; color: #a7b7d2; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }.final-score strong { display: block; margin-top: 6px; color: #ffcb4d; font: 800 32px Inter, ui-sans-serif, system-ui, sans-serif; }
.controls { margin: 14px 3px 0; font-size: 9px; text-align: center; color: #8192b1; }.controls span { color: #c7d1e3; margin-left: 5px; }.controls i { display: inline-block; width: 4px; height: 4px; margin: 0 13px 2px; border-radius: 50%; background: #4c6083; }
[hidden] { display: none; }
@media (max-height: 760px) { body { place-items: start center; }.game-shell { padding-top: 12px; }.game-wrap { max-height: calc(100vh - 96px); }.game-wrap canvas { max-height: calc(100vh - 96px); object-fit: contain; } }
