* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #0f1117; color: #e8eaf2; font: 16px/1.4 system-ui, sans-serif; }
#stage { position: relative; width: min(100vw, 800px); aspect-ratio: 4 / 3; }
canvas { width: 100%; height: 100%; display: block; border-radius: 8px; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 17, 23, .75); border-radius: 8px; }
.panel { text-align: center; padding: 24px; max-width: 480px; }
.panel h1 { margin: 0 0 8px; font-size: 36px; }
.sub, .hint { color: #8a90a3; }
.btn { background: #6b7bff; color: #fff; border: 0; border-radius: 8px; padding: 12px 28px; font: inherit; font-weight: 700; cursor: pointer; }
.btn + .btn { margin-left: 8px; }
.score { position: absolute; top: 12px; left: 16px; font-weight: 700; font-size: 22px; }
.hidden { display: none; }
