:root { color-scheme: dark; font-family: monospace; background: #080d09; color: #dbdfc9; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
#stage { position: fixed; inset: 0; }
/* Both dimensions are explicit: SDL reads this box to size its drawing buffer. */
canvas { display: block; width: 100%; height: 100%; outline: none; image-rendering: pixelated; visibility: hidden; }
.playing canvas { visibility: visible; }
#loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #080d09; padding: 24px; }
#loading[hidden] { display: none; }
#status { max-width: 600px; overflow-wrap: anywhere; }
progress { width: 260px; accent-color: #c5cf91; }
button { margin-top: 20px; font: inherit; padding: 8px 16px; }
#fullscreen-prompt { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 24px; background: #101710; border: 1px solid #68724e; text-align: center; }
