:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #eeeae4; background: #0b0c0d; font-size: 16px; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100%, 72rem); margin: 0 auto; padding: 1rem clamp(1rem, 3vw, 2rem); }
#stage { position: relative; width: min(100%, calc((100svh - 10rem) * 4 / 3)); min-width: 0; aspect-ratio: 4 / 3; margin: 0 auto; background: #000; border: 1px solid #3d3530; }
canvas { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; outline-offset: 3px; }
#launch, #failure { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .85rem; padding: 1.5rem; text-align: center; background: radial-gradient(ellipse at 50% 100%, #4b1d10 0%, #19130f 48%, #0b0c0d 85%); }
[hidden] { display: none !important; }
#launch h1 { margin: 0; font: 900 clamp(3.5rem, 12vw, 8rem)/1 ui-monospace, monospace; letter-spacing: -.08em; color: #f7ae64; text-shadow: 0 4px #7d3521; }
p { margin: 0; line-height: 1.6; }
.eyebrow { color: #c9bfb3; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; }
.hint { color: #c9bfb3; font-size: .875rem; }
button { font: inherit; font-weight: 650; min-height: 2.75rem; padding: .6rem 1rem; border: 1px solid #675143; border-radius: .3rem; background: #261c16; color: #eeeae4; cursor: pointer; }
button:hover:enabled { background: #432b1e; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, summary:focus-visible, canvas:focus-visible { outline: 2px solid #f7ae64; outline-offset: 4px; }
#play { margin-top: .4rem; background: #f7ae64; border-color: #f7ae64; color: #1b1009; padding-inline: 2rem; }
#play:hover:enabled { background: #ffc58c; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .75rem 0; }
#status { color: #c9bfb3; font-size: .875rem; }
.controls, details { font-size: .875rem; color: #c9bfb3; }
.controls { text-align: center; line-height: 2; }
kbd { font: inherit; font-weight: 650; color: #eeeae4; white-space: nowrap; }
details { margin-top: .65rem; padding-bottom: 1rem; }
summary { cursor: pointer; width: fit-content; padding: .4rem 0; }
details p { margin: .6rem 0; }
a { color: #f7ae64; text-underline-offset: .2em; }
#stage:fullscreen { width: 100vw; height: 100vh; border: 0; background: #000; }
#stage:fullscreen canvas { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 36rem) { main { padding-top: 1.5rem; } #stage { width: 100%; } #launch { gap: .5rem; padding: .75rem; } #launch h1 { font-size: 3.5rem; } .toolbar { align-items: flex-start; } .hint { max-width: 16rem; } }
