:root { color-scheme: dark; --fg:#9dffc4; --dim:#5a8a6e; --bg:#000000; }
  * { box-sizing: border-box; }
  html, body { margin:0; height:100%; background:var(--bg); color:var(--fg);
    font:12px/1.4 ui-monospace,Menlo,Consolas,monospace; overflow:hidden; }
  #stage { position:fixed; inset:0; }
  canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
  #hud { position:fixed; left:10px; top:8px; color:var(--dim); pointer-events:none; white-space:pre; opacity:.8; }
  #drop { position:fixed; inset:0; display:none; align-items:center; justify-content:center;
    background:rgba(0,20,10,.75); font-size:20px; z-index:5; pointer-events:none; }
  body.dragging #drop { display:flex; }
  #bar { position:fixed; left:0; right:0; bottom:0; padding:8px 12px; display:flex; gap:8px; align-items:center;
    background:linear-gradient(transparent,rgba(0,0,0,.7)); transition:opacity .3s; z-index:4; }
  body.idle #bar { opacity:0; }
  button, label.btn { background:rgba(20,50,35,.6); color:var(--fg); border:1px solid #1f4a35; border-radius:4px;
    padding:4px 9px; font:inherit; cursor:pointer; }
  button:hover, label.btn:hover { background:rgba(40,100,70,.6); }
  button.on { background:#1f6a48; }
  input[type=range] { accent-color:#3fd68a; }
  #seek { flex:1; min-width:80px; }
  #time { min-width:96px; text-align:center; color:var(--dim); }
  #drawer { position:fixed; right:10px; bottom:52px; width:230px; padding:10px; background:rgba(0,12,6,.85);
    border:1px solid #1f4a35; border-radius:6px; display:none; z-index:4; }
  #drawer.open { display:block; }
  #drawer .row { display:flex; align-items:center; gap:6px; margin:6px 0; }
  #drawer .row span { width:72px; color:var(--dim); }
  #drawer input[type=range] { flex:1; min-width:0; }
  #msg { position:fixed; left:50%; top:50%; transform:translate(-50%,-50%); text-align:center; color:var(--dim);
    pointer-events:none; }
  input[type=file] { display:none; }
  select { flex:1; min-width:0; background:#000; color:var(--fg); border:1px solid #1f4a35; border-radius:4px; font:inherit; padding:2px; }
  #cue { position:fixed; left:50%; bottom:14%; transform:translateX(-50%); color:var(--dim); opacity:0; transition:opacity .6s; pointer-events:none; }
  #cue.show { opacity:.85; }
  body.tv #bar, body.tv #hud, body.tv #drawer, body.tv #cue, body.tv #msg { display:none !important; }
  body.tv { cursor:none; }
  #gate { position:fixed; left:50%; top:50%; transform:translate(-50%,-50%); display:none; z-index:6;
    padding:18px 28px; font-size:1.6em; color:var(--fg); background:rgba(0,12,6,.85);
    border:1px solid #1f4a35; border-radius:8px; text-align:center; }
