/* LabBass — player web, visual "estúdio escuro premium".
   Linguagem AmostraLab: ciano #63D7E6 = atividade, âmbar #F2A65A = seleção,
   Montserrat. Pedais em esmalte profundo com luz vinda de cima, knobs de
   metal escovado, LEDs com bloom e micro-animações 150–250ms. */

:root {
  --bg: #05070c;
  --surface0: #0b0f16;
  --surface1: #111823;
  --edge: #1c2636;
  --cyan: #63d7e6;
  --amber: #f2a65a;
  --text: #e7edf4;
  --muted: #91a0b5;
  --cream: #efe1bd;
  --brass: #c9a866;
  --led: #ff5a45;
  --danger: #ee6a68;
  --sans: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* ruído fractal sutil (feTurbulence) usado na cena e nos materiais */
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.04'/></svg>");
  --noise-mat: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.06'/></svg>");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: clip; }
img, svg { max-width: 100%; height: auto; }

/* ---------- cena: estúdio escuro, luz de cima, vinheta, grão ---------- */
body {
  position: relative;
  background:
    radial-gradient(1100px 560px at 50% -180px, #1c2b4a 0%, rgba(28, 43, 74, 0) 62%),
    radial-gradient(820px 520px at 88% 112%, rgba(38, 20, 52, .45), transparent 62%),
    radial-gradient(700px 420px at 6% 104%, rgba(10, 36, 44, .5), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--noise);
  pointer-events: none;
}
body::after {
  /* vinheta do palco */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(130% 95% at 50% 26%, transparent 52%, rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
}
button, .knob { font-family: inherit; }
button { color: inherit; }

/* ---------- chassi ---------- */
.chassis {
  width: min(1180px, calc(100% - 16px));
  margin: 10px auto 26px;
  background:
    var(--noise),
    linear-gradient(180deg, #0e141f 0%, var(--surface0) 18%, #080c13 100%);
  border: 1px solid #222e42;
  border-radius: 18px;
  box-shadow:
    0 50px 90px -24px rgba(0, 0, 0, .78),
    0 22px 44px -18px rgba(0, 0, 0, .65),
    0 2px 10px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .06),
    inset 0 0 0 1px rgba(0, 0, 0, .55);
  overflow: hidden;
  user-select: none;
}

/* ---------- topo: marca, afinador, status ---------- */
.top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 62px;
  padding: 9px 16px;
  background:
    var(--noise),
    linear-gradient(180deg, #16202f, #0b0f16);
  border-bottom: 1px solid #060910;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 8px 18px -10px rgba(0, 0, 0, .7);
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.power-led {
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #2b3647, #141b26 70%);
  box-shadow: inset 0 0 0 1px #000, inset 0 1px 1px rgba(255, 255, 255, .12);
  flex: none;
  transition: background .25s, box-shadow .25s;
}
.power-led.on {
  background: radial-gradient(circle at 36% 30%, #eafcff, var(--cyan) 55%, #1e8a9c);
  box-shadow:
    0 0 6px rgba(99, 215, 230, .95),
    0 0 14px rgba(99, 215, 230, .55),
    0 0 26px rgba(99, 215, 230, .3),
    inset 0 0 0 1px rgba(10, 70, 80, .8);
  animation: led-breathe-cyan 2.6s ease-in-out infinite;
}
.brand .mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.brand-txt strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .8), 0 0 22px rgba(99, 215, 230, .18);
}
.brand-txt strong b { color: var(--cyan); font-weight: 800; }
.brand-txt small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* afinador = display LCD de verdade: vidro fundo, scanlines, glow */
.tuner {
  width: 196px;
  flex: 0 0 auto;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    radial-gradient(130% 150% at 50% -10%, #0d1a2b 0%, #050a13 72%);
  border: 1px solid #01030a;
  border-radius: 10px;
  padding: 4px 10px 5px;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, .85),
    inset 0 0 0 1px rgba(99, 215, 230, .07),
    inset 0 -1px 0 rgba(99, 215, 230, .05),
    0 1px 0 rgba(255, 255, 255, .06);
}
.tune-kicker {
  display: block;
  font-size: 8px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #5d6c82;
  text-align: center;
  font-weight: 700;
}
.tuner-note {
  display: block;
  font-weight: 800;
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  text-align: center;
  color: #aebdd1;
  text-shadow: 0 0 10px rgba(174, 189, 209, .25);
  transition: color .2s, text-shadow .2s;
}
.tuner.ok .tuner-note { color: var(--cyan); text-shadow: 0 0 10px rgba(99, 215, 230, .75), 0 0 26px rgba(99, 215, 230, .4); }
.tuner-scale { position: relative; height: 14px; margin: 2px 6px 1px; }
.tuner-scale span {
  position: absolute;
  top: 2px;
  width: 1px;
  height: 10px;
  background: #33405a;
  box-shadow: 0 0 3px rgba(80, 110, 160, .35);
}
.tuner-scale span:nth-child(1) { left: 0; }
.tuner-scale span:nth-child(2) { left: 25%; }
.tuner-scale span:nth-child(3) { left: 50%; height: 14px; top: 0; width: 2px; background: var(--cyan); box-shadow: 0 0 6px rgba(99, 215, 230, .6); }
.tuner-scale span:nth-child(4) { left: 75%; }
.tuner-scale span:nth-child(5) { left: 100%; }
#tunerNeedle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(var(--amber), #c97f33);
  box-shadow: 0 0 6px rgba(242, 166, 90, .9), 0 0 16px rgba(242, 166, 90, .45);
  transform: translateX(-50%);
  transition: left .12s ease-out, background .12s, box-shadow .12s;
}
.tuner.ok #tunerNeedle {
  background: linear-gradient(#d9fbff, var(--cyan));
  box-shadow: 0 0 8px rgba(99, 215, 230, .95), 0 0 20px rgba(99, 215, 230, .5);
}
.tuner-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  color: #6c7d96;
  font-variant-numeric: tabular-nums;
}
.status {
  margin: 0;
  flex: 1 1 160px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

/* ---------- placas / preset de arquivo ---------- */
.io-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: end;
  padding: 10px 16px;
  background: linear-gradient(180deg, #0d131e, #0a0f18);
  border-bottom: 1px solid #040710;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.io-devices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
.io-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.io-bar label {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.io-bar select {
  width: 100%;
  height: 34px;
  padding: 0 28px 0 12px;
  border: 1px solid #060a12;
  border-radius: 10px;
  background: linear-gradient(180deg, #151d2b, #0e1420) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2391A0B5' d='M1 1.2 6 6.8 11 1.2'/></svg>") no-repeat right 10px center;
  color: var(--text);
  font: 600 12.5px/1 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -4px 8px -6px rgba(0, 0, 0, .7);
}
.io-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #2a3548;
  border-radius: 999px;
  background: linear-gradient(180deg, #19222f, #10161f);
  color: var(--text);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 5px rgba(0, 0, 0, .4);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.io-btn:hover {
  border-color: rgba(99, 215, 230, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 8px rgba(0, 0, 0, .5), 0 0 12px -2px rgba(99, 215, 230, .35);
  transform: translateY(-1px);
}
#tank-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
}

/* ---------- área dos pedais ---------- */
.rack { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.board-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 28px;
}
.board-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(99, 215, 230, .45);
}
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; align-items: center; }
.presets-l {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.presets button {
  background: linear-gradient(180deg, rgba(16, 22, 33, .9), rgba(7, 10, 16, .9));
  border: 1px solid rgba(145, 160, 181, .32);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 5px rgba(0, 0, 0, .4);
  transition: border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.presets button:hover { border-color: var(--muted); transform: translateY(-1px); }
.presets button.on {
  color: #ffd9a8;
  border-color: var(--amber);
  background: linear-gradient(180deg, #2a1c0c, #1c1207);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 0 10px rgba(242, 166, 90, .22),
    0 0 14px -2px rgba(242, 166, 90, .5);
  text-shadow: 0 0 8px rgba(242, 166, 90, .6);
}

/* o "chão" da pedaleira: borracha escura com trama e cabo de sinal */
.pedal-row {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px 11px;
  border-radius: 14px;
  border: 1px solid #1b2535;
  background:
    var(--noise),
    linear-gradient(180deg, rgba(9, 14, 23, .62), rgba(3, 5, 9, .92)),
    repeating-linear-gradient(45deg, #0a0f18 0 7px, #060a11 7px 14px);
  box-shadow:
    inset 0 3px 18px rgba(0, 0, 0, .75),
    inset 0 0 0 1px rgba(99, 215, 230, .05),
    inset 0 -1px 0 rgba(255, 255, 255, .03);
}
.pedal-row::before {
  /* cabo de sinal atrás dos pedais */
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #04070d 10%, #0a101b 50%, #04070d 90%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 -1px 2px rgba(0, 0, 0, .8);
}
.row-pre { grid-template-columns: minmax(0, 1.55fr) repeat(4, minmax(0, 1fr)); }
.row-fx { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.3fr); }

/* ---------- pedal: esmalte profundo, luz do topo, parafusos ---------- */
.pedal {
  --pc: #3a4a63;
  --pshadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    inset 0 12px 18px -14px rgba(255, 255, 255, .26),
    inset 0 -5px 10px rgba(0, 0, 0, .55),
    0 3px 6px rgba(0, 0, 0, .6),
    0 26px 38px -14px rgba(0, 0, 0, .8);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 24px 8px 8px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--pc), #000 58%);
  background:
    /* 4 parafusos */
    radial-gradient(circle at 10px 10px, #f0f4fa 0 .7px, #a9b3c2 1.3px, #434c5c 2px, rgba(0, 0, 0, .6) 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 10px) 10px, #f0f4fa 0 .7px, #a9b3c2 1.3px, #434c5c 2px, rgba(0, 0, 0, .6) 2.5px, transparent 3.2px),
    radial-gradient(circle at 10px calc(100% - 10px), #f0f4fa 0 .7px, #a9b3c2 1.3px, #434c5c 2px, rgba(0, 0, 0, .6) 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #f0f4fa 0 .7px, #a9b3c2 1.3px, #434c5c 2px, rgba(0, 0, 0, .6) 2.5px, transparent 3.2px),
    /* grão do esmalte */
    var(--noise-mat),
    /* oclusão nas laterais: o corpo deixa de ser um retângulo chapado */
    linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, transparent 10% 90%, rgba(0, 0, 0, .3) 100%),
    /* especular estreito no topo, corpo escuro, oclusão forte na base */
    linear-gradient(180deg,
      color-mix(in srgb, var(--pc), #fff 20%) 0%,
      color-mix(in srgb, var(--pc), #05070c 6%) 7%,
      color-mix(in srgb, var(--pc), #05070c 30%) 36%,
      color-mix(in srgb, var(--pc), #04060c 56%) 76%,
      color-mix(in srgb, var(--pc), #04060c 74%) 100%);
  box-shadow: var(--pshadow);
  /* desligado: esmalte dorme (menos saturação e luz) */
  filter: saturate(.8) brightness(.88);
  transition:
    transform .18s var(--ease),
    box-shadow .22s var(--ease),
    filter .25s var(--ease);
}
.pedal::after {
  /* lâmina de luz quando o pedal está ativo */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(130% 85% at 50% -8%, color-mix(in srgb, var(--pc), #fff 60%) 0%, transparent 56%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.pedal:hover { transform: translateY(-2px); }

/* estado ligado: esmalte acende e projeta glow da própria cor */
.pedal:has(> .pedal-led.on),
.pedal:has(> .foot.on),
.pedal:has(.seg button.on:not([data-oct="off"])) {
  filter: saturate(1.18) brightness(1.08);
  box-shadow:
    var(--pshadow),
    0 0 36px -2px color-mix(in srgb, var(--pc), transparent 34%);
}
.pedal:has(> .pedal-led.on)::after,
.pedal:has(> .foot.on)::after,
.pedal:has(.seg button.on:not([data-oct="off"]))::after { opacity: .22; }

/* LED com bloom + pulso */
.pedal-led {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #4a1812, #230a07 72%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .85), inset 0 1px 1px rgba(255, 255, 255, .14), 0 0 0 2px rgba(0, 0, 0, .4);
  transition: background .15s, box-shadow .15s;
}
.pedal-led.on,
.pedal:has(> .foot.on) > .pedal-led,
.pedal:has(.seg button.on:not([data-oct="off"])) > .pedal-led {
  background: radial-gradient(circle at 35% 30%, #fff6f1, var(--led) 54%, #a81409);
  box-shadow:
    0 0 6px 1px rgba(255, 110, 90, .95),
    0 0 14px 3px rgba(255, 90, 69, .6),
    0 0 26px 6px rgba(255, 90, 69, .28),
    inset 0 0 0 1px #7a140c;
  animation: led-breathe 2.3s ease-in-out infinite;
}
@keyframes led-breathe {
  0%, 100% {
    box-shadow:
      0 0 6px 1px rgba(255, 110, 90, .95),
      0 0 14px 3px rgba(255, 90, 69, .6),
      0 0 26px 6px rgba(255, 90, 69, .28),
      inset 0 0 0 1px #7a140c;
  }
  50% {
    box-shadow:
      0 0 5px 1px rgba(255, 110, 90, .8),
      0 0 10px 2px rgba(255, 90, 69, .45),
      0 0 18px 4px rgba(255, 90, 69, .18),
      inset 0 0 0 1px #7a140c;
  }
}
@keyframes led-breathe-cyan {
  0%, 100% {
    box-shadow:
      0 0 6px rgba(99, 215, 230, .95),
      0 0 14px rgba(99, 215, 230, .55),
      0 0 26px rgba(99, 215, 230, .3),
      inset 0 0 0 1px rgba(10, 70, 80, .8);
  }
  50% {
    box-shadow:
      0 0 5px rgba(99, 215, 230, .75),
      0 0 10px rgba(99, 215, 230, .4),
      0 0 18px rgba(99, 215, 230, .18),
      inset 0 0 0 1px rgba(10, 70, 80, .8);
  }
}

/* ícone serigrafado do pedal */
.pedal-ico { display: block; line-height: 0; }
.pedal-ico svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: color-mix(in srgb, #f6f2e6, var(--pc) 14%);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .95;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .65));
}
.pedal-ico circle[fill] { fill: color-mix(in srgb, #f6f2e6, var(--pc) 14%); }

.pedal-knobs { display: flex; align-items: flex-start; justify-content: center; gap: 6px; }

/* footswitch metálico com PRESS físico */
.foot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  margin-top: auto;
  cursor: pointer;
  flex: none;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(0, 0, 0, .45) 53% 62%, rgba(255, 255, 255, .08) 63% 66%, transparent 67%),
    repeating-conic-gradient(rgba(255, 255, 255, .07) 0 6deg, rgba(0, 0, 0, .06) 6deg 12deg),
    radial-gradient(circle at 42% 34%, #6e7b93, #333c4d 54%, #0d1118);
  box-shadow:
    0 0 0 3px #0c1017,
    0 0 0 5px #465062,
    0 0 0 6px #04060a,
    0 5px 0 5px #04060a,
    0 10px 14px rgba(0, 0, 0, .6),
    inset 0 2px 2px rgba(255, 255, 255, .35),
    inset 0 -5px 8px rgba(0, 0, 0, .5);
  transition: transform .09s ease, box-shadow .09s ease;
}
.foot:active {
  transform: translateY(3px);
  box-shadow:
    0 0 0 3px #0c1017,
    0 0 0 5px #465062,
    0 0 0 6px #04060a,
    0 2px 0 5px #04060a,
    0 4px 8px rgba(0, 0, 0, .55),
    inset 0 2px 2px rgba(255, 255, 255, .25),
    inset 0 -3px 6px rgba(0, 0, 0, .55);
}

/* plaqueta serigrafada */
.silk {
  width: calc(100% - 6px);
  margin: auto 0 0;
  padding: 3.5px 4px;
  border-radius: 4px;
  text-align: center;
  font-weight: 800;
  font-style: italic;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.1;
  color: color-mix(in srgb, var(--pc), #0a0d12 72%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
  background: linear-gradient(180deg, #f8f0da, #e7d6ae 58%, #d8c495);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -1px 0 rgba(0, 0, 0, .3),
    inset 0 0 0 1px rgba(0, 0, 0, .35),
    0 1px 3px rgba(0, 0, 0, .55);
}

/* módulos de entrada / saída: caixas DI em alumínio escuro */
.module {
  --mshadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -3px 7px rgba(0, 0, 0, .5),
    0 2px 5px rgba(0, 0, 0, .5),
    0 20px 32px -12px rgba(0, 0, 0, .7);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 8px 8px;
  border-radius: 12px;
  border: 1px solid #0a0e16;
  background:
    radial-gradient(circle at 10px 10px, #f0f4fa 0 .7px, #a9b3c2 1.3px, #434c5c 2px, rgba(0, 0, 0, .6) 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 10px) 10px, #f0f4fa 0 .7px, #a9b3c2 1.3px, #434c5c 2px, rgba(0, 0, 0, .6) 2.5px, transparent 3.2px),
    radial-gradient(circle at 10px calc(100% - 10px), #f0f4fa 0 .7px, #a9b3c2 1.3px, #434c5c 2px, rgba(0, 0, 0, .6) 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #f0f4fa 0 .7px, #a9b3c2 1.3px, #434c5c 2px, rgba(0, 0, 0, .6) 2.5px, transparent 3.2px),
    var(--noise-mat),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #2b3547 0%, #1a2230 42%, #0d1320 100%);
  box-shadow: var(--mshadow);
  transition: transform .18s var(--ease), box-shadow .22s var(--ease);
}
.module:hover { transform: translateY(-2px); }
.module h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #a9b8cc;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .7);
}
.mod-ico { display: inline-flex; line-height: 0; }
.mod-ico svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .85;
  filter: drop-shadow(0 0 4px rgba(99, 215, 230, .4));
}
.mod-row { display: flex; align-items: flex-start; justify-content: center; gap: 10px; }
.mic {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid #3a4455;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, .25), transparent 42%),
    radial-gradient(circle at 38% 30%, #44506a, #1a212c 60%, #10141b);
  box-shadow: 0 4px 0 #04060a, 0 8px 12px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -4px 7px rgba(0, 0, 0, .5);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .09s ease;
}
.mic:active { transform: translateY(2px); box-shadow: 0 2px 0 #04060a, 0 4px 8px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -3px 6px rgba(0, 0, 0, .55); }
.mic.on {
  color: var(--cyan);
  border-color: rgba(99, 215, 230, .65);
  box-shadow: 0 4px 0 #04060a, 0 8px 12px rgba(0, 0, 0, .5), 0 0 18px -2px rgba(99, 215, 230, .5), inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -4px 7px rgba(0, 0, 0, .5);
}
.mic .led, .testbass .led, .clip-note .led {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 36% 30%, #26303f, #131a25 70%);
  box-shadow: inset 0 0 0 1px #000;
  transition: background .15s, box-shadow .15s;
}
.mic.on .led, .testbass.on .led {
  background: radial-gradient(circle at 36% 30%, #eafcff, var(--cyan) 55%, #1e8a9c);
  box-shadow:
    0 0 6px rgba(99, 215, 230, .95),
    0 0 13px rgba(99, 215, 230, .55),
    0 0 24px rgba(99, 215, 230, .28);
  animation: led-breathe-cyan 2.6s ease-in-out infinite;
}
.testbass {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid rgba(242, 166, 90, .55);
  background: linear-gradient(180deg, #2c1d0b, #1d1206);
  color: var(--amber);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .05em;
  padding: 7px 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 6px rgba(0, 0, 0, .45);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .18s var(--ease);
}
.testbass:hover { transform: translateY(-1px); }
.testbass.on {
  background: linear-gradient(180deg, #0f313a, #0a2229);
  color: var(--cyan);
  border-color: rgba(99, 215, 230, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 16px -2px rgba(99, 215, 230, .5), 0 2px 6px rgba(0, 0, 0, .45);
}
.clip-note {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.clip-note .led.on {
  background: radial-gradient(circle at 36% 30%, #fff1ec, var(--led) 55%, #a81409);
  box-shadow: 0 0 6px rgba(255, 90, 69, .95), 0 0 14px rgba(255, 90, 69, .5), 0 0 24px rgba(255, 90, 69, .25);
}

/* ---------- medidores segmentados: janela de vidro fundo ---------- */
.vumeter { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.vu {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  width: 13px;
  height: 66px;
  padding: 2px;
  background: #03060b;
  border: 1px solid #01030a;
  border-radius: 3px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(99, 215, 230, .05), 0 1px 0 rgba(255, 255, 255, .05);
}
.vu i {
  flex: 1 1 0;
  background: #141d2c;
  border-radius: 1px;
  transition: background .07s linear, box-shadow .07s linear;
}
.vu i.on { background: var(--cyan); box-shadow: 0 0 5px rgba(99, 215, 230, .8), 0 0 10px rgba(99, 215, 230, .35); }
.vu i.hot { background: var(--amber); box-shadow: 0 0 5px rgba(242, 166, 90, .85), 0 0 10px rgba(242, 166, 90, .4); }
.vu i.clip { background: var(--led); box-shadow: 0 0 6px rgba(255, 90, 69, .9), 0 0 12px rgba(255, 90, 69, .45); }
.vumeter em {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 800;
}

/* ---------- knob: tampa de metal escovado, arco ciano, ponteiro âmbar ---------- */
.knob {
  --v: 0.5;
  width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  touch-action: none;
  cursor: ns-resize;
  background: transparent;
  border: 0;
  padding: 0;
}
.knob .dial {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  /* poço escuro onde o knob assenta */
  background: radial-gradient(circle, rgba(0, 0, 0, .38) 0 60%, rgba(0, 0, 0, .14) 70%, transparent 74%);
}
.knob .dial::before {
  /* sombra do knob projetada no corpo */
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -3px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .55), transparent 72%);
}
.knob .arc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 225deg, var(--cyan) calc(var(--v) * 270deg), rgba(10, 16, 26, .85) 0 270deg, transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 60% 81%, transparent 85%);
  mask: radial-gradient(circle, transparent 57%, #000 60% 81%, transparent 85%);
  filter: drop-shadow(0 0 3px rgba(99, 215, 230, .55));
}
.knob .cap {
  position: absolute;
  inset: 21%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 46%),
    conic-gradient(from 210deg,
      #2a3240, #495466 8%, #232a36 16%, #414c5c 27%, #1b212b 38%,
      #434e5f 52%, #252c39 63%, #4d596c 75%, #1d242f 87%, #2a3240 100%),
    radial-gradient(circle at 50% 50%, #343e4e, #11161e 78%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .4),
    inset 0 -2px 4px rgba(0, 0, 0, .65),
    0 4px 8px rgba(0, 0, 0, .55),
    0 1px 2px rgba(0, 0, 0, .65);
}
.knob .cap::after {
  /* domo central polido */
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #4c586c, #171d27 75%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), inset 0 -1px 2px rgba(0, 0, 0, .7);
}
.knob .ptr {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.5px;
  height: 28%;
  margin-left: -1.25px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8a5a2d, var(--amber) 55%, #ffd9a8);
  transform-origin: 50% 0;
  transform: rotate(calc(45deg + var(--v) * 270deg));
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 0 5px rgba(242, 166, 90, .6);
}
.knob .ptr::after {
  /* ponta luminosa */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #ffe9c9;
  box-shadow: 0 0 6px 1.5px rgba(242, 166, 90, .95);
}
.knob .val {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-height: 12px;
  transition: color .15s var(--ease), transform .18s var(--ease), text-shadow .18s var(--ease);
}
.knob.adj .val {
  color: var(--cyan);
  font-weight: 700;
  transform: scale(1.22);
  text-shadow: 0 0 9px rgba(99, 215, 230, .6);
}
.knob .lbl {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  line-height: 1.1;
}
.pedal .knob .lbl { color: #f3ecd8; text-shadow: 0 1px 1px rgba(0, 0, 0, .7); }
.pedal .knob .val { color: rgba(255, 255, 255, .78); }
.pedal .knob.adj .val { color: #fff; text-shadow: 0 0 9px rgba(255, 255, 255, .55); }
.pedal .knob .arc { background: conic-gradient(from 225deg, var(--cyan) calc(var(--v) * 270deg), rgba(0, 0, 0, .42) 0 270deg, transparent 0); }

.knob:focus-visible, .foot:focus-visible, .mic:focus-visible, .testbass:focus-visible,
.seg button:focus-visible, .amp:focus-visible, .presets button:focus-visible,
.chip:focus-visible, .power:focus-visible, .key:focus-visible, .io-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- seletor segmentado: calha rebaixada ---------- */
.seg {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(3, 5, 9, .72);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .09);
  width: calc(100% - 6px);
}
.seg button {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: rgba(231, 237, 244, .72);
  border-radius: 6px;
  padding: 5px 3px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.seg button:hover { color: #fff; }
.seg button.on {
  background: linear-gradient(180deg, rgba(242, 166, 90, .26), rgba(242, 166, 90, .12));
  color: #ffd9a8;
  box-shadow: inset 0 0 0 1px var(--amber), 0 0 10px -2px rgba(242, 166, 90, .6);
  text-shadow: 0 0 8px rgba(242, 166, 90, .55);
}

/* ---------- amp head: tolex + piping de latão + faceplate escovada ---------- */
.row-amp {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
  gap: 12px;
}
.amphead, .cab-unit {
  border-radius: 14px;
  background:
    var(--noise-mat),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .016) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(25deg, rgba(0, 0, 0, .25) 0 1px, transparent 1px 4px),
    radial-gradient(130% 95% at 50% -5%, #272320 0%, #161311 52%, #0b0a09 100%);
  border: 1px solid #060505;
  box-shadow:
    inset 0 0 0 2px rgba(201, 168, 102, .4),
    inset 0 0 0 3px rgba(0, 0, 0, .65),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 -14px 24px -18px rgba(0, 0, 0, .9),
    0 3px 7px rgba(0, 0, 0, .55),
    0 26px 44px -14px rgba(0, 0, 0, .75);
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  transition: filter .35s var(--ease);
}
.amp-top { display: flex; align-items: center; gap: 10px; }
.amp-top h2, .cab-unit h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: .05em;
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .85), 0 -1px 0 rgba(255, 255, 255, .12), 0 0 20px rgba(242, 166, 90, .3);
}
.cab-unit h2 { font-size: 12px; }
.amp-top .sub {
  color: #8a8478;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.chip {
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid #55492f;
  background: linear-gradient(180deg, #241b0e, #140f08);
  color: var(--cream);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 5px rgba(0, 0, 0, .5);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.chip:hover { border-color: var(--brass); }
.chip.on { color: #6a6258; border-color: #322b1d; background: #0b0a07; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .7); }
.amp-body { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 10px 14px; align-items: center; }
.amps { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.amps button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  text-align: left;
  background: linear-gradient(180deg, #11161f, #0a0e15);
  color: var(--muted);
  border: 1px solid #23201a;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 3px rgba(0, 0, 0, .45);
  transition: color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.amps button:hover { color: var(--text); border-color: #3a362c; }
.amps button .led {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 36% 30%, #3a1b14, #1c0c08 70%);
  box-shadow: inset 0 0 0 1px #000;
  transition: background .15s, box-shadow .15s;
}
.amps button.on {
  color: #ffd9a8;
  border-color: var(--amber);
  background: linear-gradient(180deg, #221709, #150e05);
  box-shadow: inset 0 0 0 1px rgba(242, 166, 90, .4), inset 0 0 12px rgba(242, 166, 90, .14), 0 0 12px -3px rgba(242, 166, 90, .55);
  text-shadow: 0 0 8px rgba(242, 166, 90, .45);
}
.amps button.on .led {
  background: radial-gradient(circle at 35% 30%, #fff6f1, var(--led) 55%, #a81409);
  box-shadow: 0 0 5px rgba(255, 110, 90, .95), 0 0 11px rgba(255, 90, 69, .55), 0 0 18px rgba(255, 90, 69, .25);
}
.faceplate {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 9px 12px 7px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, rgba(0, 0, 0, .04) 1px 2px),
    linear-gradient(180deg, #27221a 0%, #16120c 55%, #0d0a07 100%);
  border: 1px solid rgba(201, 168, 102, .55);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -8px 14px -10px rgba(0, 0, 0, .85),
    0 2px 6px rgba(0, 0, 0, .5);
}
.faceplate .knob .ptr { background: linear-gradient(180deg, #7d6436, var(--cream) 55%, #fff6dd); box-shadow: 0 0 5px rgba(239, 225, 189, .55); }
.faceplate .knob .ptr::after { background: #fff8e6; box-shadow: 0 0 6px 1.5px rgba(239, 225, 189, .85); }
.faceplate .knob .lbl { color: var(--cream); text-shadow: 0 1px 1px rgba(0, 0, 0, .8); }
.faceplate .knob .cap {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 244, 214, .22), rgba(255, 255, 255, 0) 46%),
    conic-gradient(from 210deg,
      #33291c, #52442c 8%, #241d12 16%, #463a26 27%, #1c160d 38%,
      #4b3f29 52%, #272015 63%, #544731 75%, #1e180e 87%, #33291c 100%),
    radial-gradient(circle at 50% 50%, #3a301f, #0d0a06 78%);
}
.faceplate .knob .cap::after { background: radial-gradient(circle at 36% 28%, #5a4b30, #171208 75%); }
.amphead.bypassed { filter: grayscale(.4) brightness(.72); }
.amphead.bypassed .faceplate, .amphead.bypassed .amps { opacity: .55; }

/* gabinete */
.cab-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.power {
  width: 34px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #3a3428;
  background: linear-gradient(180deg, #0f0d0a, #1c1914);
  cursor: pointer;
  position: relative;
  flex: none;
  padding: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.power::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #52483a, #2a251c 72%);
  transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.power.on {
  border-color: rgba(99, 215, 230, .7);
  background: linear-gradient(180deg, #06181d, #0f2b33);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), 0 0 12px -2px rgba(99, 215, 230, .55);
}
.power.on::after {
  transform: translateX(16px);
  background: radial-gradient(circle at 36% 30%, #eafcff, var(--cyan) 60%);
  box-shadow: 0 0 7px var(--cyan), 0 0 14px rgba(99, 215, 230, .5);
}
.grille {
  flex: 1;
  min-height: 108px;
  border-radius: 8px;
  position: relative;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .06), transparent 55%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .5) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .42) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(45deg, #453e30 0 2px, #332d22 2px 4px);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, .8),
    inset 0 0 0 7px #121110,
    inset 0 0 0 8px rgba(201, 168, 102, .5),
    inset 0 0 0 9px rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.grille .cones { position: absolute; inset: 12px; transition: opacity .25s var(--ease); }
.grille[data-cab="4x10"] .cones {
  background:
    radial-gradient(circle closest-side at 26% 28%, #000 0 9%, rgba(0,0,0,.85) 11% 27%, rgba(14,11,7,.72) 30% 62%, rgba(0,0,0,.75) 66% 74%, rgba(255,255,255,.13) 78% 88%, rgba(0,0,0,.6) 92% 96%, transparent 98%),
    radial-gradient(circle closest-side at 74% 28%, #000 0 9%, rgba(0,0,0,.85) 11% 27%, rgba(14,11,7,.72) 30% 62%, rgba(0,0,0,.75) 66% 74%, rgba(255,255,255,.13) 78% 88%, rgba(0,0,0,.6) 92% 96%, transparent 98%),
    radial-gradient(circle closest-side at 26% 72%, #000 0 9%, rgba(0,0,0,.85) 11% 27%, rgba(14,11,7,.72) 30% 62%, rgba(0,0,0,.75) 66% 74%, rgba(255,255,255,.13) 78% 88%, rgba(0,0,0,.6) 92% 96%, transparent 98%),
    radial-gradient(circle closest-side at 74% 72%, #000 0 9%, rgba(0,0,0,.85) 11% 27%, rgba(14,11,7,.72) 30% 62%, rgba(0,0,0,.75) 66% 74%, rgba(255,255,255,.13) 78% 88%, rgba(0,0,0,.6) 92% 96%, transparent 98%);
}
.grille[data-cab="1x15"] .cones {
  background:
    radial-gradient(circle closest-side at 50% 50%, #000 0 8%, rgba(0,0,0,.88) 10% 20%, rgba(16,12,7,.72) 24% 70%, rgba(0,0,0,.78) 74% 80%, rgba(255,255,255,.12) 84% 92%, rgba(0,0,0,.6) 95% 98%, transparent 100%);
}
.grille .di-tag {
  position: relative;
  z-index: 1;
  display: none;
  padding: 6px 14px;
  border-radius: 6px;
  background: linear-gradient(180deg, #14110c, #0a0806);
  border: 1px solid rgba(201, 168, 102, .6);
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: .16em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .8), 0 0 14px rgba(242, 166, 90, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 3px 8px rgba(0, 0, 0, .6);
}
.grille[data-cab="di"] .cones { opacity: 0; }
.grille[data-cab="di"] .di-tag { display: block; }
.cabbox { transition: filter .35s var(--ease); }
.cabbox.dim { filter: grayscale(.55) brightness(.62); }
.cabbox.dim .grille { filter: brightness(.55); transition: filter .35s var(--ease); }
.cabbox.dim .seg { opacity: .55; }
.cab-unit .seg { width: 100%; background: rgba(8, 7, 5, .8); box-shadow: inset 0 1px 4px rgba(0, 0, 0, .8), inset 0 0 0 1px #262318, 0 1px 0 rgba(255, 255, 255, .06); }
.cab-unit .seg button { color: #9a9284; }
.cab-unit .seg button.on { color: #ffd9a8; }

/* ---------- teclado (baixo de teste) ---------- */
.keys-wrap {
  border-radius: 14px;
  border: 1px solid #1b2535;
  background:
    var(--noise),
    linear-gradient(180deg, #0e1521, #090e17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), inset 0 0 20px rgba(0, 0, 0, .4);
  padding: 8px 10px 10px;
}
.keys-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-bottom: 6px;
}
.keys-head h2 {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(99, 215, 230, .45);
}
.keys-head p, .hint { margin: 0; color: var(--muted); font-size: 11px; }
.hint { margin-top: 6px; }
.manual {
  position: relative;
  height: 118px;
  display: flex;
  background: #04070c;
  border-radius: 8px;
  padding: 0;
  touch-action: none;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .5);
}
.manual::after {
  /* sombra do feltro em cima das teclas */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: linear-gradient(rgba(0, 0, 0, .6), transparent);
  z-index: 4;
  pointer-events: none;
}
.key { border: 0; position: relative; padding: 0; cursor: pointer; }
.key.white {
  flex: 1;
  height: 100%;
  border-right: 2px solid #04070c;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, #f7f2e9 0%, #ece3d2 70%, #cfc2ac 100%);
  color: #3c342c;
  box-shadow: inset 0 -5px 7px -4px rgba(0, 0, 0, .35), inset -2px 0 2px -1px rgba(0, 0, 0, .12);
  transition: transform .12s var(--ease), background .12s var(--ease), box-shadow .12s var(--ease);
  transform-origin: top;
}
.key.white:nth-of-type(14) { border-right: 0; }
.key.white.on {
  background: linear-gradient(180deg, #e3fcff 0%, #a9e6f0 65%, #74cbd9 100%);
  transform: translateY(2px) scaleY(.985);
  box-shadow: inset 0 -8px 12px -5px rgba(30, 138, 156, .55), inset 0 3px 5px rgba(0, 0, 0, .18);
}
.key.black {
  position: absolute;
  top: 0;
  width: calc(100% / 14 * 0.58);
  height: 60%;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #343434 0%, #191714 28%, #0b0a08 100%);
  color: #e7d7c4;
  z-index: 2;
  border: 1px solid #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 5px;
  gap: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -4px 6px -3px rgba(0, 0, 0, .9), 2px 4px 6px -2px rgba(0, 0, 0, .7);
  transition: transform .12s var(--ease), background .12s var(--ease), box-shadow .12s var(--ease);
  transform-origin: top;
}
.key.black.on {
  background: linear-gradient(180deg, #1e6b78 0%, #10434d 45%, #082228 100%);
  color: var(--cyan);
  transform: translateY(2px) scaleY(.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 -4px 8px -3px rgba(99, 215, 230, .4), 1px 2px 4px -2px rgba(0, 0, 0, .7);
}
.key .k, .key .n { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
.key.white .n { bottom: 7px; font-size: 10px; font-weight: 700; }
.key.white .k { bottom: 21px; font-size: 8.5px; opacity: .55; }
.key.black .k, .key.black .n { position: static; display: block; }
.key.black .n { font-size: 9px; font-weight: 700; }
.key.black .k { font-size: 8.5px; opacity: .7; }

/* ---------- pulso de preset (stagger via --pdl definido no JS) ---------- */
@keyframes mod-pulse {
  0% { transform: translateY(0); filter: brightness(1); }
  32% { transform: translateY(-3px); filter: brightness(1.28) saturate(1.22); }
  100% { transform: translateY(0); filter: brightness(1); }
}
.pulse { animation: mod-pulse .55s var(--ease) both; animation-delay: var(--pdl, 0ms); }

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .pedal:hover, .module:hover, .io-btn:hover, .testbass:hover, .presets button:hover { transform: none; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .row-pre { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row-pre .module-in { grid-column: span 3; }
  .row-fx { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row-fx .pedal-wide, .row-fx .module-out { grid-column: span 3; }
  .row-amp { grid-template-columns: 1fr; }
  .status { text-align: left; flex-basis: 100%; }
}
@media (max-width: 720px) {
  .chassis { width: 100%; margin: 0; border-radius: 0; }
  .io-bar { grid-template-columns: 1fr; }
  .io-devices { grid-template-columns: 1fr; }
  .tuner { width: 100%; }
  .presets { margin-left: 0; }
  .row-pre, .row-fx { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .row-pre .module-in, .row-fx .pedal-wide, .row-fx .module-out { grid-column: span 2; }
  .key .k { display: none; }
  .key.white .n { font-size: 9px; }
  .amp-body { grid-template-columns: 1fr; }
  .amps { grid-template-columns: 1fr 1fr; }
  .manual { height: 96px; }
  .grille { min-height: 96px; }
}

/* ===== Modo demo — qualquer plano AmostraLab libera tudo ===== */
.lab-demo-bar{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding:6px 12px;background:rgba(10,14,20,.94);border-bottom:1px solid rgba(255,255,255,.12);color:#aeb8c6;font-size:12.5px;line-height:1.3;position:relative;z-index:80;}
.lab-demo-bar b{color:#e7edf4;font-weight:600;}
.lab-demo-bar a{color:#7fdcec;text-decoration:none;font-weight:600;}
.lab-demo-bar a:hover{text-decoration:underline;}
.lab-locked{position:relative;opacity:.55;}
.lab-lock{position:absolute;top:-7px;right:-7px;box-shadow:0 1px 4px rgba(0,0,0,.5);border:1px solid rgba(242,192,99,.35);z-index:5;display:flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:rgba(7,10,16,.85);color:#f2c063;pointer-events:none;}
.lab-lock svg{width:11px;height:11px;display:block;}
.lab-upsell{position:fixed;inset:0;z-index:400;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(4,6,10,.72);opacity:0;pointer-events:none;transition:opacity .15s ease;}
.lab-upsell.show{opacity:1;pointer-events:auto;}
.lab-upsell-card{position:relative;max-width:420px;width:100%;padding:26px 24px;border-radius:14px;background:#121823;border:1px solid rgba(255,255,255,.14);box-shadow:0 30px 80px rgba(0,0,0,.6);color:#e7edf4;text-align:center;font-size:14px;}
.lab-upsell-card h2{margin:10px 0 8px;font-size:19px;line-height:1.2;}
.lab-upsell-card p{margin:0 0 18px;color:#9aa7b8;font-size:13.5px;line-height:1.5;}
.lab-upsell-ico{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:rgba(242,192,99,.14);color:#f2c063;}
.lab-upsell-ico svg{width:18px;height:18px;}
.lab-upsell-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}
.lab-upsell-actions a{display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border-radius:9px;font-weight:600;font-size:13.5px;text-decoration:none;}
.lab-upsell-actions a.main{background:linear-gradient(180deg,#9fe8f2,#56c9d9);color:#06222a;}
.lab-upsell-actions a.ghost{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);color:#e7edf4;}
.lab-upsell-close{position:absolute;top:10px;right:10px;width:30px;height:30px;border:0;border-radius:8px;background:rgba(255,255,255,.06);color:#9aa7b8;font-size:16px;cursor:pointer;}
.lab-upsell-close:hover{background:rgba(255,255,255,.12);color:#fff;}
@media (prefers-reduced-motion:reduce){.lab-upsell{transition:none;}}
