@font-face{font-family:FridaySans;src:url("assets/fonts/Roboto-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
*{box-sizing:border-box}body{margin:0;background:#080b10;color:#eee;font-family:Arial,sans-serif}main{max-width:560px;margin:auto;padding:16px}h1{font-size:1rem;letter-spacing:.3em;font-weight:500;color:#aaa}#status{min-height:1.5em;font-size:.85rem}label{display:block;margin:16px 0}input:not([type=range]){display:block;width:100%;margin-top:6px;padding:12px;background:#171c24;color:white;border:1px solid #48505d;border-radius:4px}button{padding:10px 14px;margin:4px;background:#242a34;color:white;border:1px solid #59616d;border-radius:4px;cursor:pointer}button:focus-visible,canvas:focus-visible{outline:2px solid #ff4a10}button:disabled{opacity:.5}canvas{display:block;width:100%;aspect-ratio:1;touch-action:none;background:#090c11}details{margin:16px 0}summary{cursor:pointer}#controls{display:flex;flex-wrap:wrap;padding-top:12px}[hidden]{display:none!important}

/* The GPU surface fills the screen; only the control viewport is bounded. */
#screen{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;aspect-ratio:auto;z-index:0}
.panel-open main{position:relative;z-index:1;pointer-events:none;max-width:none}
.panel-open button,.panel-open details{pointer-events:auto}
.panel-open h1,.panel-open #status{width:fit-content;background:#080b10b3}
#app-viewport{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:100vmin;height:100vmin;pointer-events:none}
@supports(height:100dvh){#app-viewport{top:50dvh;width:min(100vw,100dvh);height:min(100vw,100dvh)}}
@media(min-width:900px) and (hover:hover) and (pointer:fine){#app-viewport{width:50vmin;height:50vmin}}
#panel-actions{position:fixed;bottom:16px;left:16px;max-width:calc(100vw - 32px);max-height:30vh;overflow:auto;background:#080b10b3}
#panel-actions details{margin:0}#panel-actions summary{padding:8px}
