:root {
  --bg: #0e0f13;
  --panel: #181a21;
  --line: #2a2d38;
  --text: #e8e9ee;
  --muted: #8b8fa0;
  --accent: #7c5cff;
  --meter: #3ddc97;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 system-ui, sans-serif;
}
main { max-width: 1280px; margin: 0 auto; padding: 16px; }
.stage { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
video { width: 100%; height: 100%; display: block; }
.start {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); border: 0; color: #fff; font-size: 20px; cursor: pointer;
}
.start[hidden] { display: none; }
.stems { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.stem {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  display: grid; gap: 10px;
}
.stem.off { opacity: .55; }
.stem-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stem-name { font-weight: 600; }
.toggle {
  appearance: none; width: 44px; height: 24px; border-radius: 12px; background: var(--line);
  position: relative; cursor: pointer; margin: 0; transition: background .15s;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .15s;
}
.toggle:checked { background: var(--accent); }
.toggle:checked::after { transform: translateX(20px); }
.toggle:focus-visible, input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.meter { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; background: var(--meter); }
.note { color: var(--muted); margin-top: 12px; min-height: 1.4em; }
