:root { color-scheme: dark; color: #f3f1e8; background: #111822; font: 16px/1.55 system-ui, sans-serif; }
body { margin: 0; }
main { max-width: 72rem; margin: auto; padding: clamp(1rem, 4vw, 3rem); }
h1, h2 { line-height: 1.13; }
h1 { font-family: Georgia, serif; font-size: clamp(2rem, 6vw, 4rem); margin: .5rem 0; }
a { color: #a8dbff; }
nav, .controls { display: flex; flex-wrap: wrap; gap: .65rem; margin-block: 1rem; }
nav a, button, input, select { color: inherit; background: #22334a; border: 1px solid #557089; border-radius: .4rem; padding: .55rem .75rem; font: inherit; }
nav a { text-decoration: none; }
button:enabled { cursor: pointer; }
button:disabled { opacity: .5; }
:focus-visible { outline: 3px solid #b0e0ff; outline-offset: 2px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; color: #b4d7ec; }
.muted { color: #bac7d5; }
#game { width: 100%; aspect-ratio: 4 / 3; max-height: 75vh; background: #05070a; position: relative; }
.file-controls label { display: grid; gap: .25rem; min-width: 0; }
.file-controls input { box-sizing: border-box; max-width: 100%; min-width: 0; width: 19rem; }
.track-list, .grid { padding: 0; list-style: none; display: grid; gap: .7rem; }
.track-list li, article, .grid li { background: #1c2a3b; border-radius: .45rem; padding: .85rem; }
.grid { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
img, video { max-width: 100%; }
#scenes { display: grid; gap: 1rem; }
#scenes video { width: min(100%, 40rem); background: #05070a; }
dialog { width: min(90vw, 54rem); padding: 1rem; color: inherit; background: #172536; border: 1px solid #557089; border-radius: .5rem; }
dialog::backdrop { background: #06090dcc; }
.image-scroll { overflow: auto; max-height: 65vh; }
.image-scroll img, .grid img { image-rendering: pixelated; }
[hidden] { display: none !important; }
