:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #070d10; color: #d4efe5; }
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; }
#game { display: block; width: 100vw; height: 100dvh; background: black; outline: none; }
#welcome { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: #070d10e8; }
.card { max-width: 520px; padding: 32px; border: 1px solid #36554e; border-radius: 16px; background: #102126; }
.eyebrow { color: #85cbb5; font-size: .8rem; letter-spacing: .2em; }
h1 { margin: .6em 0; font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.05; }
p { line-height: 1.6; }
progress { width: 100%; accent-color: #85cbb5; }
button { padding: 11px 18px; border: 1px solid #85cbb5; border-radius: 8px; background: #85cbb5; color: #102126; font: inherit; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .45; cursor: wait; }
button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.controls { font-size: .85rem; color: #b5c7c2; }
.preview { font-size: .75rem; color: #8baba0; }
nav { position: fixed; right: max(12px, env(safe-area-inset-right)); left: 12px; top: max(12px, env(safe-area-inset-top)); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
nav button { background: #102126e8; color: #d4efe5; font-size: .8rem; }
#error { position: fixed; bottom: 12px; left: 12px; right: 12px; padding: 16px; margin: 0; border-radius: 8px; background: #632e37; color: white; }
[hidden] { display: none !important; }
#save-notice { position: fixed; bottom: 12px; left: 12px; padding: 12px; background: #102126e8; border-radius: 8px; }
.wave-picker { display: flex; align-items: center; gap: 6px; padding: 0 8px; background: #102126e8; font-size: .8rem; }
.wave-picker input { width: 56px; padding: 8px; border: 1px solid #36554e; border-radius: 6px; font: inherit; }
