:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#fff;background:#000;font-family:monospace}*{box-sizing:border-box}body{margin:0}main{min-height:100dvh;padding:max(4px, env(safe-area-inset-top)) max(4px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));place-items:safe center;display:grid;overflow:hidden}canvas{image-rendering:pixelated;image-rendering:crisp-edges;touch-action:manipulation;outline-offset:4px;display:block}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}#display{background:#000;place-items:center;display:grid}#pwa-status,#storage-status{z-index:4;background:#111;margin:0;padding:8px;font-size:12px;position:fixed;bottom:4px;left:8px;right:8px}#storage-status{bottom:48px}.compact-menu{clip-path:none;white-space:normal;width:min(100%,480px);height:auto;position:static;overflow:visible}.compact-menu h1{font-size:16px}.compact-menu p{font-size:13px}.compact-menu button{width:100%;min-height:44px;font:inherit;margin:2px 0}main:has(.compact-menu:not([hidden])){overflow:auto}.sr-only:focus-within:not(.compact-menu){clip-path:none;white-space:normal;z-index:3;background:#111;width:auto;max-width:calc(100% - 16px);height:auto;padding:8px;position:fixed;bottom:8px;left:8px}#menu.sr-only:focus-within:not(.compact-menu){width:min(480px,100% - 16px);max-height:45dvh;overflow:auto}#menu.sr-only:focus-within:not(.compact-menu) button{width:100%;min-height:44px;display:block}main:has(.compact-menu:not([hidden])){flex-direction:column;justify-content:flex-start;gap:12px;display:flex}body:not([data-screen=title]):not([data-screen=tutorial]) main:has(.compact-menu:not([hidden])) #display{display:none}.compact-menu{padding:12px 12px 96px}canvas:focus:not(:focus-visible){outline:none}body[data-screen=credits] #menu{color:#fff;background:#000}body[data-screen=credits] a{color:#fff}body[data-screen=credits] button{color:#fff;background:#000;border:1px solid #fff}.license-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.5}#key-legend,#waiting-panel{color:#fff;z-index:5;text-align:center;background:#101621;border:1px solid #718499;width:min(94vw,820px);padding:10px;font:14px/1.5 monospace;position:fixed;bottom:8px;left:50%;transform:translate(-50%)}#waiting-panel{top:8px;bottom:auto}#waiting-panel button{color:#fff;cursor:pointer;background:#182c3d;border:1px solid #8da5ba;margin:3px;padding:6px 10px}[hidden]{display:none!important}#key-legend{white-space:pre-line}#online-panel{z-index:20;color:#fff;background:#000;padding:24px max(16px,50vw - 370px);font:16px/1.5 monospace;position:fixed;inset:0;overflow:auto}#online-panel h1{border-bottom:2px solid #fff;padding-bottom:12px;font-size:22px}#online-panel h2{letter-spacing:.15em;margin:12px 0;font-size:34px}#online-panel button,#online-panel input{color:#fff;font:inherit;background:#000;border:1px solid #fff;min-height:44px;margin:4px;padding:12px}#online-panel button:focus-visible,#online-panel button:hover{color:#000;background:#fff}#online-panel button:disabled{opacity:.4}#online-panel input{text-transform:uppercase;width:12em}#online-panel canvas{width:min(100%,504px);height:auto;image-rendering:pixelated;border:1px solid #fff;margin:16px auto;display:block}#online-panel ul{border-top:1px solid #fff;padding:0;list-style:none}#online-panel li{border-bottom:1px solid #fff;padding:8px}#display{position:relative}#app-version{color:#fff;pointer-events:none;background:#000;font:10px/1.2 monospace;position:absolute;bottom:4px;right:6px}body:not([data-screen=title]) #app-version{display:none}html,body{overscroll-behavior:none}canvas,.touch-layer{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}body:has(.touch-layer:not([hidden])){touch-action:none;overflow:hidden}.touch-safe{pointer-events:none;visibility:hidden;padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);position:fixed}.touch-layer{pointer-events:none;z-index:25;color:#fff;--fire-ratio:25%;font:700 12px monospace;position:fixed;inset:0}.touch-zone{color:#0000;border:3px solid #0000;justify-content:center;align-items:center;display:flex;position:absolute}.touch-left{top:0;left:16px;right:50%;bottom:var(--fire-ratio)}.touch-right{top:0;left:50%;right:16px;bottom:var(--fire-ratio)}.touch-fire{height:var(--fire-ratio);bottom:0;left:16px;right:16px}.touch-zone.pressed{border-color:#fff;box-shadow:inset 0 0 0 3px #000}.touch-layer.guide .touch-zone{color:#fff;text-shadow:1px 1px #000,-1px -1px #000;border:1px dashed #fff}.touch-layer.guide .touch-left,.touch-layer.guide .touch-right{align-items:flex-start;padding-top:48px}.touch-layer.flipped .touch-fire{top:0;bottom:auto}.touch-layer.flipped .touch-left,.touch-layer.flipped .touch-right{top:var(--fire-ratio);bottom:0}.touch-flash{background:#000;font-size:24px;position:absolute;bottom:16%;left:49%}.touch-buttons{left:16px;right:16px;bottom:max(8px, env(safe-area-inset-bottom));justify-content:space-between;gap:8px;display:flex;position:absolute}.touch-layer button{pointer-events:auto;touch-action:none;color:#fff;background:#000;border:2px solid #fff;min-width:48px;min-height:48px;font:700 14px monospace}.touch-buttons button{width:15%}.touch-buttons button.pressed{color:#000;background:#fff}.touch-layer.button-scheme .touch-zone{display:none}.touch-pause{position:absolute;top:4px;right:20px}.touch-fullscreen{position:absolute;top:4px;left:20px}.touch-rotate{z-index:100;text-align:center;color:#fff;touch-action:none;background:#000;place-content:center;padding:32px;font:700 24px/1.8 monospace;display:grid;position:fixed;inset:0}body[data-screen=tutorial]:has(.touch-layer:not([hidden])) main{place-items:center;padding:0;display:grid}body[data-screen=tutorial]:has(.touch-layer:not([hidden])) #menu{z-index:26;background:#000;width:auto;max-width:60%;padding:0;position:fixed;top:0;right:70px}:is(body[data-screen=tutorial]:has(.touch-layer:not([hidden])) #menu h1,body[data-screen=tutorial]:has(.touch-layer:not([hidden])) #menu p){display:none}body[data-screen=tutorial]:has(.touch-layer:not([hidden])) #menu button{width:auto;margin:2px;padding:4px 8px}body[data-screen=tutorial]:has(.touch-layer:not([hidden])) main{justify-content:center;width:100%}body:has(.touch-layer:not([hidden])) main{touch-action:none;overscroll-behavior:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}body:has(.touch-layer:not([hidden])) #online-panel{touch-action:none;overscroll-behavior:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}#online-panel.touch-room>canvas{width:auto;max-width:100vw;height:calc(100dvh - 16px);position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}#online-panel.touch-room>p{display:none}#online-room-toggle{z-index:28;color:#fff;background:#000;border:1px solid #fff;min-height:44px;position:fixed;top:4px;right:20px}#online-panel.touch-room.room-menu>div{z-index:27;background:#000;position:relative}body[data-screen=tutorial]:has(.touch-layer:not([hidden])) #menu button{color:#fff;background:#000;border:1px solid #fff}body:has(.touch-layer:not([hidden])) main{justify-content:center;min-height:0;position:fixed;inset:0;overflow:hidden}.touch-layer.guide .touch-left{justify-content:flex-start;padding-left:12px}.touch-layer.guide .touch-right{justify-content:flex-end;padding-right:12px}#online-panel.touch-room>canvas{margin:0}
