/* OSCILLARIUM — design system.
   Dark lab, neon instruments. Each module card sets --accent; every control
   inside picks it up. */

:root {
  --bg: #07070c;
  --bg2: #0b0b14;
  --panel: #10101c;
  --panel2: #171728;
  --line: #23233a;
  --ink: #e9e7f7;
  --ink-dim: #8d8aa8;
  --ink-faint: #55526e;
  --cyan: #00e5ff;
  --acid: #9dff00;
  --magenta: #ff3ec8;
  --amber: #ffb300;
  --violet: #b26bff;
  --danger: #ff5470;
  --accent: var(--cyan);
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --disp: "Avenir Next", "Futura", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1100px 500px at 15% -5%, rgba(0, 229, 255, 0.07), transparent 60%),
    radial-gradient(1100px 600px at 85% 0%, rgba(255, 62, 200, 0.06), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(178, 107, 255, 0.05), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--disp);
  font-size: 14px;
  min-height: 100vh;
}

::selection { background: var(--magenta); color: #000; }

/* ---- boot overlay ------------------------------------------------------- */

#boot {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(800px 500px at 50% 40%, rgba(0, 229, 255, 0.08), transparent 65%), var(--bg);
  transition: opacity 0.5s ease;
}
#boot.gone { opacity: 0; pointer-events: none; }
#boot-inner { text-align: center; }
#boot-logo {
  font-size: 64px; color: var(--cyan);
  text-shadow: 0 0 30px var(--cyan), 0 0 80px var(--magenta);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
#boot h1 {
  margin: 8px 0 4px; font-size: 40px; letter-spacing: 0.35em; font-weight: 700;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.boot-tag { color: var(--ink-dim); letter-spacing: 0.12em; margin: 0 0 36px; }
#boot-btn {
  font-family: var(--mono); font-size: 18px; letter-spacing: 0.2em;
  color: var(--bg); background: var(--cyan); border: none; border-radius: 6px;
  padding: 16px 42px; cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.5);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
#boot-btn:hover { transform: scale(1.04); box-shadow: 0 0 44px rgba(0, 229, 255, 0.8); }
.boot-hint { color: var(--ink-faint); font-family: var(--mono); font-size: 12px; margin-top: 28px; }

/* ---- header --------------------------------------------------------------- */

#top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 28px 10px; flex-wrap: wrap;
}
#brand h1 {
  margin: 0; font-size: 26px; letter-spacing: 0.3em; font-weight: 700;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#brand p { margin: 2px 0 0; color: var(--ink-dim); font-size: 12px; letter-spacing: 0.1em; }
#master { display: flex; align-items: center; gap: 16px; }
#master-vol { width: 220px; }

/* ---- viz strip ------------------------------------------------------------ */

#viz-strip {
  position: relative; margin: 8px 28px 20px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--bg2);
}
#viz { display: block; width: 100%; height: 250px; }
#viz-modes {
  position: absolute; top: 10px; right: 10px; display: flex; gap: 4px;
  background: rgba(7, 7, 12, 0.6); border: 1px solid var(--line);
  border-radius: 7px; padding: 3px; backdrop-filter: blur(6px);
}
#viz-modes button {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-dim); background: transparent; border: none;
  border-radius: 5px; padding: 5px 10px; cursor: pointer;
}
#viz-modes button:hover { color: var(--ink); }
#viz-modes button.active { color: var(--bg); background: var(--cyan); }

/* ---- module grid ----------------------------------------------------------- */

#modules {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  padding: 0 28px 28px; align-items: start;
}
@media (max-width: 1000px) { #modules { grid-template-columns: 1fr; } }

.module-card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.module-card.wide { grid-column: 1 / -1; }

.mod-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%);
}
.mod-head h2 {
  margin: 0; font-size: 15px; letter-spacing: 0.22em; font-weight: 700;
  color: var(--accent); text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent);
}
.mod-head p { margin: 2px 0 0; color: var(--ink-dim); font-size: 11.5px; letter-spacing: 0.04em; }
.mod-body { padding: 16px 18px 18px; }

/* ---- controls ------------------------------------------------------------- */

.controls-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 18px;
}

.ctl { min-width: 0; }
.ctl-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; gap: 8px; }
.ctl-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim); white-space: nowrap;
}
.ctl-value {
  font-family: var(--mono); font-size: 12px; color: var(--accent); white-space: nowrap;
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 45%, transparent);
}

.ctl-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0; }

.ctl-group {
  border: 1px solid var(--line); border-radius: 9px;
  padding: 12px 14px; margin: 12px 0;
  background: rgba(0, 0, 0, 0.18);
}
.ctl-group-title {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px;
}

/* range inputs */
input.range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; }
input.range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 65%, transparent), var(--line));
}
input.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; border-radius: 50%; margin-top: -5.5px;
  background: var(--accent); border: 2px solid var(--bg);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 75%, transparent);
}
input.range::-moz-range-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 65%, transparent), var(--line));
}
input.range::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 75%, transparent);
}

/* selects & number boxes */
.select, .numbox {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 6px;
  padding: 7px 9px; width: 100%; outline: none;
}
.select:focus, .numbox:focus { border-color: var(--accent); }
.ctl-num { max-width: 130px; }

/* buttons */
.btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink); background: var(--panel2);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 14px; cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary {
  color: var(--bg); background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn.primary:hover { color: var(--bg); filter: brightness(1.15); }
.btn.ghost { background: transparent; }
.btn.danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn.danger:hover { background: var(--danger); color: var(--bg); box-shadow: 0 0 16px rgba(255, 84, 112, 0.5); }
.btn.active { color: var(--bg); background: var(--accent); border-color: var(--accent); }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch-track {
  width: 34px; height: 18px; border-radius: 9px; position: relative; flex: none;
  background: var(--line); transition: background 0.15s ease;
}
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-dim); transition: transform 0.15s ease, background 0.15s ease;
}
.switch input:checked + .switch-track { background: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.switch input:checked + .switch-track::after {
  transform: translateX(16px); background: var(--accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 80%, transparent);
}
.switch-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }

/* power button (module header) */
.power {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: var(--bg2);
  color: var(--ink-faint); font-size: 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.power:hover { border-color: var(--accent); color: var(--accent); }
.power.on {
  color: var(--bg); background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 80%, transparent),
              0 0 46px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* preset chips */
.chips-wrap { margin: 12px 0 2px; }
.chips-label {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 7px;
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--mono); font-size: 11px; color: var(--ink-dim);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; cursor: pointer;
  transition: all 0.12s ease;
}
.chip:hover { color: var(--accent); border-color: var(--accent); }
.chip.active {
  color: var(--bg); background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* readouts */
.readout {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line);
  border-radius: 6px; padding: 7px 10px; letter-spacing: 0.04em;
}
.readout.big { font-size: 15px; color: var(--accent); text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); }

/* module-local canvases (rhythm wheel, etc.) */
.mini-canvas {
  display: block; width: 100%; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg2);
}

/* pads (chords etc.) */
.pads { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 8px; margin: 10px 0; }
.pad {
  font-family: var(--mono); font-size: 13px; color: var(--ink);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 6px; cursor: pointer; text-align: center; line-height: 1.35;
  transition: all 0.1s ease;
}
.pad small { display: block; color: var(--ink-faint); font-size: 10px; }
.pad:hover { border-color: var(--accent); }
.pad.active {
  color: var(--bg); background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 70%, transparent);
}
.pad.active small { color: color-mix(in srgb, var(--bg) 70%, var(--accent)); }

/* ---- drum machine grid ------------------------------------------------------- */

.drum-grid { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.drum-row { display: flex; align-items: center; gap: 5px; }
.drum-label {
  flex: none; width: 52px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim);
}
.drum-cell {
  flex: 1; aspect-ratio: 1; min-width: 0; max-width: 34px;
  border: 1px solid var(--line); border-radius: 5px;
  background: var(--bg2); cursor: pointer; padding: 0;
  transition: background 0.08s ease, box-shadow 0.08s ease;
}
.drum-cell.beatmark { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.drum-cell:hover { border-color: var(--accent); }
.drum-cell.on { background: color-mix(in srgb, var(--accent) 55%, var(--bg2)); }
.drum-cell.acc {
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.drum-cell.playhead {
  box-shadow: 0 0 0 2px var(--ink), 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.drum-cell.ghost { opacity: 0.15; pointer-events: none; }

/* ---- footer ----------------------------------------------------------------- */

#foot {
  padding: 10px 28px 34px; color: var(--ink-faint);
  font-family: var(--mono); font-size: 11px; line-height: 1.7;
  max-width: 900px;
}
#foot p { margin: 6px 0; }

/* ===================== VIBE DECK ===================== */

body:not(.vibe) #vibe-deck { display: none; }
body.vibe #modules { display: none; }
body.vibe #viz { height: 320px; }

/* header LAB|VIBE and EN|RU rockers */
#mode-switch, #lang-switch {
  display: flex; padding: 0; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg2); cursor: pointer;
}
#lang-switch[aria-pressed="false"] .ms-half:first-child,
#lang-switch[aria-pressed="true"] .ms-half:last-child {
  background: var(--ink-dim); color: var(--bg);
}
.ms-half {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  padding: 9px 14px; color: var(--ink-dim); transition: all 0.15s ease;
}
#mode-switch[aria-pressed="false"] .ms-half:first-child {
  background: var(--cyan); color: var(--bg);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}
#mode-switch[aria-pressed="true"] .ms-half:last-child {
  background: var(--amber); color: var(--bg);
  box-shadow: 0 0 12px rgba(255, 179, 0, 0.45);
}

#vibe-deck { padding: 0 28px 36px; --accent: var(--amber); }

/* the wooden chassis */
.deck-frame {
  max-width: 1020px; margin: 0 auto; padding: 16px; border-radius: 22px;
  background:
    repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.13) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(88deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 11px),
    linear-gradient(180deg, #5a4130, #3c2a1c 55%, #281a10);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.22),
    inset 0 -3px 6px rgba(0, 0, 0, 0.55),
    0 18px 50px rgba(0, 0, 0, 0.6);
}

/* the brushed faceplate */
.deck-face {
  position: relative; border-radius: 12px; padding: 24px 30px 26px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #23242c, #15161c);
  border: 1px solid #0a0a10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.6);
}
.deck-screw {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #cfd3dc, #6a6f7c 60%, #3a3e48);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), inset 0 0 2px rgba(0, 0, 0, 0.5);
}
.deck-screw::after {
  content: ""; position: absolute; left: 2px; right: 2px; top: 6px; height: 2px;
  background: #262932; border-radius: 1px; transform: rotate(-24deg);
}
.deck-screw.tl { top: 10px; left: 10px; }
.deck-screw.tr { top: 10px; right: 10px; transform: rotate(40deg); }
.deck-screw.bl { bottom: 10px; left: 10px; transform: rotate(70deg); }
.deck-screw.br { bottom: 10px; right: 10px; transform: rotate(15deg); }

/* top row */
.deck-top { display: flex; align-items: stretch; gap: 26px; flex-wrap: wrap; }
.vu-box {
  flex: none; padding: 6px 8px 4px; border-radius: 8px;
  background: linear-gradient(180deg, #f6eed7, #e6d9b6);
  box-shadow: inset 0 2px 8px rgba(60, 40, 10, 0.4), 0 1px 0 rgba(255, 255, 255, 0.07);
}
.vu-box canvas { display: block; }
.vu-title {
  text-align: center; font-family: Georgia, serif; font-size: 9px;
  letter-spacing: 0.34em; color: #6b5a33; padding: 2px 0 1px;
}
.deck-plate {
  flex: 1; min-width: 220px; border-radius: 8px; padding: 12px 18px;
  background: linear-gradient(180deg, #1b1c23, #101117);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
}
.plate-etch {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em; color: #565b6e;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9);
}
.plate-name {
  font-family: Georgia, serif; font-size: 24px; letter-spacing: 0.14em; color: #d9c896;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 0 22px rgba(255, 179, 0, 0.22);
}
.plate-blurb { font-family: Georgia, serif; font-style: italic; font-size: 13px; color: #97917f; }
.deck-lamps { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.lamp-wrap { display: flex; align-items: center; gap: 9px; }
.lamp-wrap.hidden { visibility: hidden; }
.lamp-cap { font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; color: #6a6f83; text-transform: uppercase; }
.lamp {
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a2024, #1e0d10);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.05);
}
.lamp.on {
  background: radial-gradient(circle at 35% 30%, #ffd9a8, #ff7b3d 55%, #7a2410);
  box-shadow: 0 0 14px rgba(255, 140, 60, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}
.breath-lamp {
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b8fff2, #2a9d8a 55%, #0d4a40);
  opacity: 0.3;
}

/* middle row: selector + macro knobs */
.deck-mid {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; margin-top: 20px; flex-wrap: wrap;
}
.selector-area { position: relative; width: 420px; height: 300px; flex: none; }
.selector-area .selector {
  position: absolute; left: 210px; top: 150px; transform: translate(-50%, -50%);
}
.selector-area .knob { cursor: pointer; }
.selector .knob-ind::before {
  top: 3%; height: 44%; width: 10px; margin-left: -5px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #f3efe4, #b9b3a2 70%, #8d8776);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.scene-label {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  color: #767b8e; background: none; border: none; cursor: pointer;
  padding: 4px 6px; white-space: nowrap; transition: color 0.15s ease;
}
.scene-label:hover { color: var(--ink); }
.scene-label.active { color: var(--amber); text-shadow: 0 0 10px rgba(255, 179, 0, 0.65); }

.deck-knobs { display: flex; gap: 26px; flex-wrap: wrap; }

/* rotary knobs */
.knob-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity 0.2s ease; }
.knob {
  position: relative; border-radius: 50%; cursor: ns-resize; outline: none; touch-action: none;
  background: radial-gradient(circle at 50% 36%, #3c3f49, #23252d 62%, #121319 100%);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    inset 0 -3px 6px rgba(0, 0, 0, 0.55),
    0 0 0 4px #0c0d12,
    0 0 0 5px rgba(255, 255, 255, 0.05);
}
.knob::before {
  content: ""; position: absolute; inset: 7%; border-radius: 50%;
  background: conic-gradient(from 20deg,
    #363943, #4a4e5a, #313640, #4a4e5a, #363943, #4a4e5a, #313640, #4a4e5a, #363943);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.55), inset 0 -1px 2px rgba(255, 255, 255, 0.06);
}
.knob:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent), 0 6px 14px rgba(0, 0, 0, 0.65); }
.knob-ind { position: absolute; inset: 0; transform: rotate(var(--rot, 0deg)); pointer-events: none; }
.knob-ind::before {
  content: ""; position: absolute; left: 50%; top: 10%; width: 3px; height: 24%;
  margin-left: -1.5px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 80%, transparent);
}
.knob-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: #8f93a5;
}
.knob-value { font-family: var(--mono); font-size: 11px; color: var(--ink); min-height: 14px; }
.inert-ctl { opacity: 0.28; pointer-events: none; filter: saturate(0.2); }

/* bottom row: switches + stop */
.deck-bottom { display: flex; align-items: flex-end; gap: 30px; margin-top: 18px; }
.deck-spacer { flex: 1; }
.sw-wrap { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.sw {
  position: relative; width: 34px; height: 58px; border-radius: 7px; cursor: pointer;
  background: linear-gradient(180deg, #0e0f14, #1b1d25);
  border: 1px solid #08090d;
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sw-lever {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 28px;
  margin: -14px 0 0 -7px; border-radius: 7px;
  background: linear-gradient(0deg, #c6cad4, #6d7280 45%, #3f434e);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.75), inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(13px);
  transition: transform 0.1s ease, background 0.1s ease;
}
.sw.on .sw-lever {
  transform: translateY(-13px);
  background: linear-gradient(180deg, #eef0f5, #9aa0af 45%, #575c69);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.sw-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: #8f93a5; }
.stop-mush {
  width: 66px; height: 66px; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 40% 32%, #ff8a97, #d81f36 55%, #7c0f1e);
  border: 4px solid #14151b;
  color: #fff; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  box-shadow: 0 6px 0 #5a0a14, 0 12px 26px rgba(0, 0, 0, 0.6), inset 0 2px 3px rgba(255, 255, 255, 0.35);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.stop-mush:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 #5a0a14, 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 2px 3px rgba(255, 255, 255, 0.35);
}

@media (max-width: 760px) {
  .deck-mid { justify-content: center; }
  .deck-top { justify-content: center; }
}
