:root{--paper: #222;--ink: #fff}html,body{margin:0;height:100%;background:var(--paper);color:var(--ink);font-family:system-ui,sans-serif}.stage{position:fixed;top:0;right:0;bottom:0;left:0;transform:scaleX(-1)}video{position:fixed;top:0;left:0;z-index:2;width:1px;height:1px;opacity:0;pointer-events:none}body.debug video{width:min(240px,40vw);height:auto;opacity:1;transform:scaleX(-1)}.debug-panel{display:none}body.debug .debug-panel{display:flex;flex-direction:column;gap:8px;position:fixed;z-index:2;top:calc(min(240px,40vw)*.5625 + 12px);left:8px;margin:0;padding:10px 12px;width:min(240px,40vw);box-sizing:border-box;background:#000000b8;color:#fff;font-size:13px}.debug-panel label{display:flex;align-items:center;gap:8px}.debug-panel input[type=range],.debug-panel select{flex:1;min-width:0}.debug-panel [data-for-mode]{display:none}.debug-panel[data-smooth=simplify] [data-for-mode=simplify],.debug-panel[data-smooth=fft] [data-for-mode=fft]{display:flex}.fullscreen{position:fixed;z-index:3;top:8px;left:8px;width:28px;height:28px;padding:5px;border:0;border-radius:4px;background:#00000073;color:#fff;cursor:pointer}.fullscreen svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.fullscreen.is-fullscreen{display:none}.stage canvas{width:100%;height:100%;display:block}
