:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#081521;color:#edf5fa}
body{margin:0;padding:16px}main{max-width:980px;margin:auto}h1{font-size:1.2rem}
.game-shell{position:relative;width:min(100%,calc((100dvh - 150px)*1.5));margin-inline:auto;aspect-ratio:3/2}
#game{display:block;width:100%;height:auto;aspect-ratio:3/2;touch-action:none;background:#102335;border-radius:12px;outline-offset:4px}
#pause-overlay{position:absolute;inset:0;background:#102335;border-radius:12px;align-items:center;justify-content:center;flex-direction:column}
#pause-overlay:not([hidden]){display:flex}
body.playing h1,body.playing #status{display:none}
body.playing .game-shell{width:min(100%,calc((100dvh - 32px)*1.5))}
button{font:inherit;min-height:44px;padding:8px 20px;background:#ffdc82;color:#102335;border:0;border-radius:8px;cursor:pointer;margin-bottom:12px}
#status{min-height:1.5em;color:#b9d1de}details{margin-top:20px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}#audio-error{color:#ffbdac}
