:root{color-scheme:dark;font:16px system-ui;background:#0c1624;color:#e9f1fb}main{max-width:1100px;margin:2rem auto;padding:0 1rem}a{color:#82dccb}button,.open{padding:.7rem 1rem;margin:.3rem;border:1px solid #53657e;border-radius:.4rem;background:#203149;color:inherit}button:disabled{opacity:.5}canvas{max-width:100%;height:auto}pre{white-space:pre-wrap;overflow:auto}#status{min-height:1.5em}#frame{position:relative}input{max-width:100%}

.program-window{margin:0}
.program-window main{display:grid;grid-template:1fr / 1fr;place-items:center;max-width:none;height:100dvh;margin:0;padding:0;background:#090e17}
.program-window #player-chrome,.program-window #output,.program-window #console:not([data-available=true]){display:none}
.program-window #frame{display:grid;place-items:center;grid-area:1/1;width:100%;height:100%;min-width:0;min-height:0}
.program-window canvas{max-width:100%;max-height:100dvh;width:auto;height:auto;object-fit:contain}
.program-window #status,.program-window #console,.program-window #input-form{grid-area:1/1;z-index:1;margin:1rem;padding:.5rem .75rem;background:#090e17;color:#e9f1fb}
.program-window #console{align-self:end;justify-self:start;max-height:40dvh}
.program-window #input-form{align-self:end;justify-self:end}

.gpu-window-stack{display:grid;place-items:center;min-width:0;max-width:100%}
.gpu-window-stack>canvas{grid-area:1/1}
.gpu-window-stack>canvas[data-gpu-presentation]{pointer-events:none}
.gpu-window-stack>canvas[data-gpu-window]{opacity:0}
.gpu-window-stack:has(canvas[data-gpu-window]:focus-visible)>canvas[data-gpu-presentation]{outline:2px solid Highlight;outline-offset:-2px}
