:root { color-scheme: dark; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #111; color: #eee; }
.shell { width: min(96vw, 1000px); padding: 20px 0; }
.game-wrap { position: relative; width: 100%; aspect-ratio: 480 / 272; background: #000; overflow: hidden; border: 1px solid #444; box-shadow: 0 18px 60px rgba(0,0,0,.45); }
canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.30); }
.overlay.hidden { display: none; }
.panel { width: min(78%, 360px); padding: 22px; text-align: center; background: rgba(8,8,8,.88); border: 2px solid #eee; }
h1 { margin: 0; font-size: clamp(24px,5vw,42px); letter-spacing: .06em; }
.subtitle { margin: 4px 0 18px; opacity: .8; }
label { display: block; margin-bottom: 6px; font-weight: 700; }
select, button { width: 100%; min-height: 42px; margin-bottom: 10px; font: inherit; }
button { cursor: pointer; font-weight: 800; }
.small { margin: 7px 0 0; font-size: .84rem; opacity: .75; }
.status { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; padding: 10px 2px 0; font-size: .95rem; }
.note { margin: 8px 2px 0; opacity: .72; line-height: 1.45; font-size: .92rem; }
