/* ══════════════════════════════════════════════════════════════════
   BOOMSHED 800 — rhythm synthesis unit
   Industrial design: charcoal steel, walnut cheeks, amber phosphor.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --panel: #24211e;
  --panel-hi: #2e2a26;
  --panel-lo: #191715;
  --ink: #e8e0d0;
  --ink-dim: #9a8f7a;
  --amber: #ffb13c;
  --amber-hot: #ffd88a;
  --steel: #3a3631;
  --steel-edge: #4a443c;
  --wood-a: #5a3a22;
  --wood-b: #3d2513;
  --wood-c: #6e4a2c;
  --danger: #e8563f;
  --screw: #555049;
  --grid-cols: 46px repeat(16, minmax(0, 1fr));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 700px at 50% -10%, #332d26 0%, transparent 60%),
    radial-gradient(900px 600px at 85% 110%, #241f1a 0%, transparent 55%),
    #171411;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  display: flex;
  justify-content: center;
  padding: 22px 14px 40px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ── Machine shell ───────────────────────────────────────────────── */

.machine {
  position: relative;
  width: min(1160px, 100%);
  display: flex;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}

.cheek {
  width: 30px;
  flex: 0 0 30px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(94deg,
      var(--wood-a) 0px, var(--wood-b) 3px, var(--wood-c) 5px,
      var(--wood-b) 8px, var(--wood-a) 11px),
    linear-gradient(var(--wood-a), var(--wood-b));
  box-shadow:
    inset 2px 0 3px rgba(255, 220, 160, 0.18),
    inset -3px 0 5px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.4);
}

.panel {
  flex: 1;
  min-width: 0;
  background:
    linear-gradient(180deg, var(--panel-hi) 0%, var(--panel) 12%, var(--panel) 88%, var(--panel-lo) 100%);
  border-top: 1px solid rgba(255, 240, 210, 0.09);
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  padding: 18px 22px 12px;
  position: relative;
}

/* corner screws */
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #888, var(--screw) 55%, #26221e);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.15), 0 1px 2px rgba(0,0,0,0.6);
}
.panel::before { top: 7px; left: 8px; }
.panel::after { top: 7px; right: 8px; }

/* ── Top strip ───────────────────────────────────────────────────── */

.topstrip {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 240, 210, 0.07);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  width: 46px; height: 46px;
  border-radius: 9px;
  flex: 0 0 46px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 210, 130, 0.9), transparent 42%),
    conic-gradient(from 210deg, #e8563f, var(--amber), #8fd44a, #4a8fd4, #9a6fe0, #e8563f);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.25),
    inset 0 -3px 5px rgba(0,0,0,0.45),
    0 2px 5px rgba(0,0,0,0.5);
  position: relative;
}
.brand-badge::after {
  content: "";
  position: absolute; inset: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a3631, #141210 75%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8), 0 1px 1px rgba(255,240,210,0.12);
}

.brand-name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(180deg, #f5ead2 20%, #c9b98f 75%, #8f8163);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 3px rgba(0,0,0,0.35);
}
.brand-num {
  color: var(--amber);
  -webkit-text-fill-color: var(--amber);
  margin-left: 6px;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 5px;
}

.master-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* tempo display */
.display {
  background: linear-gradient(180deg, #161311, #0c0a09);
  border-radius: 7px;
  border: 1px solid rgba(0,0,0,0.7);
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.85),
    0 1px 1px rgba(255,240,210,0.08);
  padding: 8px 14px 7px;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: baseline;
  column-gap: 10px;
  min-width: 128px;
}
.display-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: #8a5a1e;
  text-transform: uppercase;
  grid-column: 1;
}
.display-digits {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-family: "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 34px;
  font-weight: 700;
  color: var(--amber-hot);
  text-shadow: 0 0 8px rgba(255, 177, 60, 0.55), 0 0 22px rgba(255, 177, 60, 0.28);
  min-width: 3ch;
  text-align: right;
  letter-spacing: 0.04em;
}
.display-swing {
  grid-column: 1;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 11px;
  color: #c98a35;
  text-shadow: 0 0 5px rgba(255, 177, 60, 0.3);
}
.display-swing::before { content: "sw "; color: #8a5a1e; }

/* knob units */
.knob-row {
  display: flex;
  gap: 16px;
}
.knob-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.knob-unit label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.knob {
  position: relative;
  width: 52px;
  height: 52px;
  cursor: ns-resize;
  touch-action: none;
  outline-offset: 3px;
}
.knob:focus-visible { outline: 2px solid var(--amber); border-radius: 50%; }

.knob-arc {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 225deg,
      var(--amber) 0deg, var(--amber) var(--fill, 0deg),
      rgba(255, 240, 210, 0.10) var(--fill, 0deg), rgba(255, 240, 210, 0.10) 270deg,
      transparent 270deg);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
  mask: radial-gradient(circle, transparent 58%, #000 60%);
  filter: drop-shadow(0 0 3px rgba(255, 177, 60, 0.35));
}

.knob-cap {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #57524a 0%, #35312c 45%, #1d1a17 100%);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px rgba(255, 240, 210, 0.22),
    inset 0 -2px 4px rgba(0, 0, 0, 0.55);
  transition: transform 0.02s linear;
}
.knob-pointer {
  position: absolute;
  left: 50%; top: 3px;
  width: 4px; height: 12px;
  margin-left: -2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--amber-hot), var(--amber));
  box-shadow: 0 0 5px rgba(255, 177, 60, 0.7);
}
.knob-value {
  position: absolute;
  left: 50%; bottom: -2px;
  transform: translateX(-50%);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 9px;
  color: var(--ink-dim);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.knob.knob-active .knob-value, .knob:hover .knob-value { opacity: 1; }
.knob.knob-active .knob-cap {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 240, 210, 0.22),
    inset 0 -2px 4px rgba(0, 0, 0, 0.55);
}

/* transport */
.transport {
  display: flex;
  align-items: center;
  gap: 12px;
}

.transport-btn {
  font-family: inherit;
  border: none;
  cursor: pointer;
  border-radius: 9px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--steel-edge), var(--steel) 40%, #26221e);
  box-shadow:
    0 3px 0 #16130f,
    0 5px 8px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 240, 210, 0.18);
  transition: transform 0.04s, box-shadow 0.04s;
}
.transport-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #16130f,
    0 2px 4px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 240, 210, 0.18);
}

.tap-btn {
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.tap-btn.tapped { animation: tapblink 0.14s ease-out; }
@keyframes tapblink {
  0% { background: linear-gradient(180deg, #6b5a35, #54452a); }
  100% { }
}

.play-btn {
  width: 58px; height: 52px;
  position: relative;
  display: grid;
  place-items: center;
}
.play-btn svg { fill: var(--ink); grid-area: 1/1; }
.play-btn .icon-stop { display: none; }
.play-btn.is-playing .icon-play { display: none; }
.play-btn.is-playing .icon-stop { display: block; }
.play-btn.is-playing {
  background: linear-gradient(180deg, #7a5a20, #5e4417 40%, #43300f);
}
.play-led {
  position: absolute;
  top: 5px; right: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #40392f;
  transition: background 0.05s;
}
.play-led.led-on {
  background: var(--amber-hot);
  box-shadow: 0 0 7px rgba(255, 177, 60, 0.9);
}

/* ── Pattern bank ────────────────────────────────────────────────── */

.pattern-bank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.bank-slots {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.bank-slot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px 7px 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-dim);
  background: linear-gradient(180deg, #262019, #1b1712);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.6),
    0 1px 1px rgba(255, 240, 210, 0.07);
  transition: color 0.12s;
}
.bank-slot:hover { color: var(--ink); }

.slot-num {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #0e0c0a;
  color: #6e6353;
}
.slot-name {
  font-size: 11px;
  letter-spacing: 0.05em;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bank-slot.slot-empty .slot-name { font-style: italic; opacity: 0.55; }

.bank-slot.slot-active {
  color: var(--amber-hot);
  background: linear-gradient(180deg, #33291a, #241c11);
}
.bank-slot.slot-active .slot-num {
  background: var(--amber);
  color: #241a08;
  box-shadow: 0 0 9px rgba(255, 177, 60, 0.5);
}
.bank-slot.slot-queued .slot-num {
  animation: queuedblink 0.5s steps(2) infinite;
}
@keyframes queuedblink {
  50% { background: var(--amber); color: #241a08; }
}

.bank-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-btn {
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: var(--ink-dim);
  background: linear-gradient(180deg, var(--steel-edge), var(--steel) 40%, #26221e);
  box-shadow:
    0 2px 0 #16130f,
    0 3px 5px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 240, 210, 0.15);
}
.mini-btn:hover:not(:disabled) { color: var(--ink); }
.mini-btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #16130f, inset 0 1px 1px rgba(255, 240, 210, 0.15);
}
.mini-btn:disabled { opacity: 0.35; cursor: default; }
.mini-btn-danger:hover:not(:disabled) { color: var(--danger); }

.chain-toggle { cursor: pointer; }
.chain-toggle input { display: none; }
.chain-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--ink-dim);
  background: linear-gradient(180deg, #1c1916, #14110e);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7), 0 1px 1px rgba(255, 240, 210, 0.06);
  transition: all 0.12s;
}
.chain-toggle input:checked + .chain-pill {
  color: #241a08;
  background: linear-gradient(180deg, var(--amber-hot), var(--amber));
  box-shadow: 0 0 12px rgba(255, 177, 60, 0.45), inset 0 1px 1px rgba(255,255,255,0.4);
}

/* ── Body: mixstrip + grid ───────────────────────────────────────── */

.body-section {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

/* mixer strip — one console channel per voice, each with level & tone pots */
.mixstrip {
  display: flex;
  gap: 4px;
  background: linear-gradient(180deg, #1e1b17, #171411);
  border-radius: 8px;
  padding: 9px 8px 8px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.55), 0 1px 1px rgba(255, 240, 210, 0.05);
  margin-bottom: 12px;
}

.strip {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px 2px 5px;
  border-radius: 6px;
}
.strip:hover { background: rgba(255, 240, 210, 0.03); }

.strip-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 2px;
}

.strip-led {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3a342c;
  cursor: pointer;
  flex: 0 0 8px;
}
.strip-led.led-flash {
  animation: ledflash 0.22s ease-out;
}
@keyframes ledflash {
  0% {
    background: var(--vc, var(--amber));
    box-shadow: 0 0 9px var(--vc, var(--amber));
  }
  100% { background: #3a342c; box-shadow: none; }
}

.strip-name {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--vc, var(--ink));
  cursor: pointer;
}
.strip-name:hover { filter: brightness(1.35); }

.strip-lab {
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5e5545;
  margin-top: -2px;
}

.strip-level, .strip-tone {
  position: relative;
  width: 34px; height: 34px;
  cursor: ns-resize;
  touch-action: none;
}
.strip-level:focus-visible, .strip-tone:focus-visible {
  outline: 2px solid var(--amber);
  border-radius: 50%;
}
.strip-level .knob-arc, .strip-tone .knob-arc {
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%);
  mask: radial-gradient(circle, transparent 52%, #000 54%);
}
.strip-level .knob-cap, .strip-tone .knob-cap { inset: 5px; }
.strip-level .knob-pointer, .strip-tone .knob-pointer { width: 3px; height: 8px; margin-left: -1.5px; }
.strip-level .knob-value, .strip-tone .knob-value { display: none; }

.strip-mute {
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  width: 22px; height: 15px;
  margin-top: 2px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  color: #6e6353;
  background: #14110e;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7);
}
.strip-mute.muted {
  color: #fff;
  background: var(--danger);
  box-shadow: 0 0 8px rgba(232, 86, 63, 0.6);
}

/* ── Step grid ───────────────────────────────────────────────────── */

.grid-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.grid-header {
  display: grid;
  grid-template-columns: var(--grid-cols);
  gap: 4px;
  padding: 0 0 4px 0;
}
.gh-cell {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 9px;
  text-align: center;
  color: #55503f;
}
.gh-cell.gh-beat { color: #a3925f; font-weight: 700; }

.step-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lane {
  display: grid;
  grid-template-columns: var(--grid-cols);
  gap: 4px;
  align-items: center;
}

.lane-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--vc);
  text-shadow: 0 0 6px color-mix(in srgb, var(--vc) 40%, transparent);
  overflow: hidden;
}

.lane-cells {
  display: contents;
}

.pad {
  position: relative;
  border: none;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1 / 0.82;
  min-width: 0;
  border-radius: 5px;
  background: transparent;
  font-family: inherit;
}

.pad-face {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #35302a 0%, #28241f 60%, #201d19 100%);
  box-shadow:
    0 2px 0 #141110,
    0 3px 5px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 240, 210, 0.10);
  transition: transform 0.04s ease-out, box-shadow 0.04s ease-out, background 0.12s;
}
.pad:active .pad-face {
  transform: translateY(2px);
  box-shadow:
    0 0 0 #141110,
    0 1px 2px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 240, 210, 0.10);
}
.pad-beat .pad-face {
  background: linear-gradient(180deg, #3e3830 0%, #2e2922 60%, #252119 100%);
}

/* on state — voice-coloured glow */
.pad-on .pad-face {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--vc) 78%, #fff 8%) 0%,
    var(--vc) 55%,
    color-mix(in srgb, var(--vc) 72%, #000) 100%);
  box-shadow:
    0 2px 0 color-mix(in srgb, var(--vc) 45%, #000),
    0 3px 6px rgba(0, 0, 0, 0.45),
    0 0 10px color-mix(in srgb, var(--vc) 55%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* ghost notes are dimmer */
.pad-ghost .pad-face {
  filter: saturate(0.65) brightness(0.75);
}

/* accent ring */
.pad-accent::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 7px;
  border: 2px solid var(--amber-hot);
  box-shadow: 0 0 7px rgba(255, 216, 138, 0.5);
  pointer-events: none;
}

/* probability label */
.pad-prob {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  color: rgba(20, 14, 8, 0.85);
  pointer-events: none;
}
.pad-probset .pad-face { opacity: 0.85; }

/* playhead sweep */
.pad-playhead .pad-face {
  filter: brightness(1.3);
}
.pad-on.pad-playhead .pad-face {
  filter: brightness(1.22);
  box-shadow:
    0 2px 0 color-mix(in srgb, var(--vc) 45%, #000),
    0 3px 6px rgba(0, 0, 0, 0.45),
    0 0 16px color-mix(in srgb, var(--vc) 80%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* trigger hit pulse */
.pad-hit .pad-face {
  animation: padhit 0.18s ease-out;
}
@keyframes padhit {
  0% { transform: translateY(2px) scale(0.96); filter: brightness(2.1); }
  100% { transform: none; filter: none; }
}

.grid-foot {
  padding-top: 8px;
}
.hint {
  font-size: 10px;
  color: #5e5545;
  letter-spacing: 0.04em;
}
.hint kbd {
  font-family: inherit;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  background: #262019;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 1px 1px rgba(255, 240, 210, 0.05);
  color: #a3925f;
}

/* ── Footer strip ────────────────────────────────────────────────── */

.machine-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4e4738;
}

/* ── Toast ───────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(16px);
  background: linear-gradient(180deg, #33291a, #241c11);
  color: var(--amber-hot);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 9px 18px;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 177, 60, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 30;
}
.toast.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 920px) {
  .mixstrip { flex-wrap: wrap; }
  .strip { flex: 1 1 62px; }
}

@media (max-width: 640px) {
  body { padding: 8px 4px 24px; }
  .cheek { width: 10px; flex-basis: 10px; }
  .panel { padding: 12px 8px 8px; }
  .brand-name { font-size: 21px; }
  .topstrip { gap: 10px; }
  .master-controls { gap: 10px; }
  .display { min-width: 96px; padding: 6px 9px 5px; }
  .display-digits { font-size: 24px; }
  .knob { width: 42px; height: 42px; }
  .lane, .grid-header { gap: 2px; }
  :root { --grid-cols: 30px repeat(16, minmax(0, 1fr)); }
  .lane-label { font-size: 8px; }
  .slot-name { display: none; }
  .step-grid { gap: 3px; }
  .gh-cell { font-size: 7px; }
  .machine-foot { display: none; }
}

/* ── Compact heights: short windows get the tight console ────────── */

@media (max-height: 700px) {
  body { padding: 4px 8px 8px; }
  .panel { padding-top: 10px; padding-bottom: 8px; }
  .brand-name { font-size: 21px; }
  .brand-sub { display: none; }
  .brand-badge { width: 34px; height: 34px; flex-basis: 34px; }
  .topstrip { padding-bottom: 8px; gap: 12px; }
  .knob { width: 38px; height: 38px; }
  .knob-row { gap: 10px; }
  .display { padding: 5px 10px 4px; min-width: 102px; }
  .display-digits { font-size: 25px; }
  .play-btn { width: 50px; height: 40px; }
  .tap-btn { padding: 9px 12px; font-size: 11px; }
  .pattern-bank { padding: 5px 0; }
  .bank-slot { padding: 5px 8px 5px 6px; }
  .slot-num { width: 17px; height: 17px; font-size: 10px; }
  .slot-name { font-size: 10px; max-width: 74px; }
  .mini-btn, .chain-pill { padding: 6px 9px; font-size: 9px; }
  .mixstrip { padding: 5px 6px 4px; margin-bottom: 7px; }
  .strip-level, .strip-tone { width: 24px; height: 24px; }
  .strip-level .knob-cap, .strip-tone .knob-cap { inset: 3px; }
  .strip-level .knob-pointer, .strip-tone .knob-pointer { width: 2px; height: 6px; margin-left: -1px; }
  .strip-lab { display: none; }
  .strip { gap: 2px; padding-bottom: 2px; }
  .grid-header { padding-bottom: 2px; }
  .gh-cell { font-size: 8px; }
  .step-grid { gap: 3px; }
  .lane, .grid-header { gap: 3px; }
  .pad { aspect-ratio: 1 / 0.5; border-radius: 4px; }
  .pad-face { border-radius: 4px; }
  .grid-foot { display: none; }
  .machine-foot { display: none; }
}

/* ── Reduced motion: keep it calm but legible ────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .pad-hit .pad-face,
  .strip-led.led-flash,
  .tap-btn.tapped,
  .bank-slot.slot-queued .slot-num {
    animation: none;
  }
  .pad-face { transition: none; }
  .strip-led.led-flash {
    background: var(--vc, var(--amber));
    box-shadow: 0 0 6px var(--vc, var(--amber));
  }
}
