:root {
  --bg: #05070c;
  --surface0: #0b0f16;
  --surface1: #111823;
  --cyan: #63d7e6;
  --amber: #f2a65a;
  --text: #e7edf4;
  --muted: #91a0b5;
  --edge: #1c2636;
  --tolex: #121212;
  --piping: #8a7244;
  --cream: #efe1bd;
  --led: #ff5a45;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --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.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.05'/></svg>");
  font-family: Montserrat, "Avenir Next", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; }
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 42% at 50% -6%, #203252 0%, rgba(32, 50, 82, 0) 70%),
    radial-gradient(ellipse 120% 90% at 50% 120%, #000 0%, rgba(0, 0, 0, 0) 60%),
    var(--noise),
    var(--bg);
}
button, .knob { font-family: inherit; }
button { color: inherit; }

.chassis {
  width: min(1180px, calc(100% - 16px));
  margin: 8px auto 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(0, 0, 0, .12)),
    var(--surface0);
  border: 1px solid var(--edge);
  border-radius: 18px;
  box-shadow:
    0 40px 90px -20px rgba(0, 0, 0, .75),
    0 10px 30px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
}

/* ---------- Header: vidro escuro ---------- */
.top {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-height: 64px;
  height: auto;
  padding: 8px 16px;
  background:
    linear-gradient(180deg, rgba(26, 38, 60, .66), rgba(10, 14, 21, .82));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 215, 230, .35) 30%, rgba(99, 215, 230, .35) 70%, transparent);
  pointer-events: none;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.logo { height: 36px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.mark { height: 32px; width: 32px; margin-left: auto; opacity: .9; }
.status {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: normal;
  overflow: hidden;
}
.sources { display: flex; gap: 8px; flex: 0 0 auto; }
.pill {
  background: linear-gradient(180deg, #192232, #0f1520);
  border: 1px solid #2a3548;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 6px rgba(0, 0, 0, .35);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.pill:hover { border-color: #3d4d64; transform: translateY(-1px); }
.pill[aria-pressed="true"] {
  background: linear-gradient(180deg, #123239, #0c242b);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(99, 215, 230, .3), inset 0 0 10px rgba(99, 215, 230, .12);
}

/* ---------- Afinador: display LCD ---------- */
.tuner {
  width: 196px;
  flex: 0 0 auto;
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px),
    radial-gradient(130% 100% at 50% 0%, #0b1a22 0%, #04090e 78%);
  border: 1px solid #1f2b3c;
  border-radius: 10px;
  padding: 4px 10px 6px;
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, .75),
    inset 0 0 0 1px rgba(99, 215, 230, .08),
    0 1px 0 rgba(255, 255, 255, .05);
}
.tuner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .07), transparent 38%);
  pointer-events: none;
}
.tune-kicker {
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #5d7488;
  text-align: center;
}
.tune-note {
  font-weight: 800;
  font-style: italic;
  font-size: 26px;
  line-height: 1;
  text-align: center;
  color: var(--text);
  text-shadow: 0 0 14px rgba(231, 237, 244, .22);
  transition: color .2s var(--ease), text-shadow .2s var(--ease);
}
.tune-note.ok { color: var(--cyan); text-shadow: 0 0 14px rgba(99, 215, 230, .6), 0 0 34px rgba(99, 215, 230, .3); }
.tune-scale {
  position: relative;
  height: 16px;
  margin: 3px 6px 1px;
}
.tune-scale span {
  position: absolute;
  top: 2px;
  width: 1px;
  height: 12px;
  background: #33415a;
}
.tune-scale span:nth-child(1) { left: 0; }
.tune-scale span:nth-child(2) { left: 25%; }
.tune-scale span:nth-child(3) { left: 50%; height: 16px; top: 0; width: 2px; background: var(--cyan); box-shadow: 0 0 6px rgba(99, 215, 230, .5); }
.tune-scale span:nth-child(4) { left: 75%; }
.tune-scale span:nth-child(5) { left: 100%; }
#tune-needle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 16px;
  margin: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffd9a8, var(--amber));
  box-shadow: 0 0 10px rgba(242, 166, 90, .85), 0 0 22px rgba(242, 166, 90, .4);
  transform: translateX(-50%);
  transition: left .12s ease-out, background .12s, box-shadow .12s;
}
.tuner.ok #tune-needle {
  background: linear-gradient(180deg, #d8fbff, var(--cyan));
  box-shadow: 0 0 12px rgba(99, 215, 230, .95), 0 0 26px rgba(99, 215, 230, .5);
}
.tune-cents {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Palco: pedalboard ---------- */
.board {
  position: relative;
  margin: 12px;
  padding: 12px 12px 20px;
  border-radius: 16px;
  border: 1px solid #1b2535;
  background:
    radial-gradient(85% 65% at 50% -8%, rgba(120, 160, 235, .17), transparent 62%),
    radial-gradient(60% 45% at 50% 8%, rgba(99, 215, 230, .05), transparent 70%),
    linear-gradient(180deg, rgba(4, 6, 10, .46), rgba(4, 6, 10, .74)),
    url("../assets/labguitar-pedalboard-background-v1.png") center / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(99, 215, 230, .07),
    inset 0 24px 48px -24px rgba(0, 0, 0, .9),
    inset 0 -30px 50px -30px rgba(0, 0, 0, .85);
  isolation: isolate;
}
.board::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(60% 55% at 50% 0%, rgba(99, 215, 230, .08), transparent 72%);
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
  z-index: 2;
}
.board.live::after { opacity: 1; }
.board-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.board-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
.board-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(99, 215, 230, .45);
}
.scenes { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.preset {
  background: rgba(5, 8, 13, .78);
  border: 1px solid rgba(145, 160, 181, .3);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.preset:hover { border-color: rgba(242, 166, 90, .6); transform: translateY(-1px); }
.preset.on {
  color: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 14px rgba(242, 166, 90, .35), inset 0 0 8px rgba(242, 166, 90, .15);
  text-shadow: 0 0 8px rgba(242, 166, 90, .5);
}

.pedals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 12px;
}
.pedals .pedal { width: 116px; }

/* ---------- Pedal: esmalte profundo, parafusos, ícone, luz de cima ---------- */
.pedal {
  --c: #5a5e66;
  --ink: #efe1bd;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 128px;
  padding: 10px 8px 9px;
  border-radius: 10px;
  background:
    var(--noise),
    radial-gradient(130% 50% at 50% -14%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--c) 72%, #fff) 0%,
      var(--c) 8%,
      color-mix(in srgb, var(--c) 88%, #000) 46%,
      color-mix(in srgb, var(--c) 72%, #000) 74%,
      color-mix(in srgb, var(--c) 50%, #000) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 1px 0 0 rgba(255, 255, 255, .12),
    inset -1px 0 0 rgba(0, 0, 0, .25),
    inset 0 -3px 5px rgba(0, 0, 0, .45),
    0 30px 26px -18px rgba(0, 0, 0, .9),
    0 10px 14px -8px rgba(0, 0, 0, .7),
    0 1px 0 #000;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s var(--ease);
}
.pedal:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 1px 0 0 rgba(255, 255, 255, .12),
    inset -1px 0 0 rgba(0, 0, 0, .25),
    inset 0 -3px 5px rgba(0, 0, 0, .45),
    0 38px 30px -18px rgba(0, 0, 0, .92),
    0 14px 18px -8px rgba(0, 0, 0, .7),
    0 1px 0 #000;
}
.pedal:has(.p-stomp[aria-pressed="true"]) {
  filter: brightness(1.07) saturate(1.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 1px 0 0 rgba(255, 255, 255, .12),
    inset -1px 0 0 rgba(0, 0, 0, .25),
    inset 0 -3px 5px rgba(0, 0, 0, .45),
    0 30px 26px -18px rgba(0, 0, 0, .9),
    0 0 34px -8px color-mix(in srgb, var(--c) 72%, #fff),
    0 1px 0 #000;
}
.pedal.preset-pulse {
  animation: presetPulse .55s var(--ease) var(--pp-delay, 0ms) both;
}
@keyframes presetPulse {
  0% { transform: translateY(0); filter: brightness(1); }
  35% { transform: translateY(-4px); filter: brightness(1.3); }
  100% { transform: translateY(0); filter: brightness(1); }
}

.p-screws { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.p-screws i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #d7dce2, #868d96 48%, #41464d 78%, #23262b);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, .55), 0 1px 1px rgba(0, 0, 0, .55);
}
.p-screws i::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, .55);
  transform: rotate(38deg);
}
.p-screws i:nth-child(1) { top: 3px; left: 3px; }
.p-screws i:nth-child(2) { top: 3px; right: 3px; }
.p-screws i:nth-child(2)::after { transform: rotate(-24deg); }
.p-screws i:nth-child(3) { bottom: 3px; left: 3px; }
.p-screws i:nth-child(3)::after { transform: rotate(72deg); }
.p-screws i:nth-child(4) { bottom: 3px; right: 3px; }
.p-screws i:nth-child(4)::after { transform: rotate(-58deg); }

.p-icon {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  opacity: .95;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .22));
}
.p-icon svg { width: 20px; height: 20px; display: block; }

.p-plate {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 4px 26px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #20252d, #0d1116);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, .7),
    inset 0 -1px 0 rgba(255, 255, 255, .05),
    0 1px 0 rgba(255, 255, 255, .22);
}

.p-led {
  width: 9px;
  height: 9px;
  margin-top: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #6a1f18, #230a07);
  box-shadow: inset 0 0 0 1px #000, inset 0 1px 1px rgba(255, 255, 255, .12), 0 0 0 2px rgba(0, 0, 0, .45);
  transition: background .15s ease, box-shadow .15s ease;
}
.pedal:has(.p-stomp[aria-pressed="true"]) .p-led {
  background: radial-gradient(circle at 35% 32%, #fff7f2, var(--led) 55%, #a01209);
  box-shadow:
    0 0 4px 1px rgba(255, 128, 110, .95),
    0 0 12px 4px rgba(255, 90, 69, .7),
    0 0 26px 9px rgba(255, 90, 69, .3),
    0 0 0 2px rgba(0, 0, 0, .45);
  animation: ledPulse 2s ease-in-out infinite;
}
@keyframes ledPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(.8); }
}

.p-name {
  max-width: 100%;
  font-weight: 800;
  font-style: italic;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .26), 0 -1px 1px rgba(0, 0, 0, .35);
}
.p-sub {
  margin-top: -3px;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .75;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .18);
}

/* ---------- Footswitch cromado ---------- */
.p-stomp {
  position: relative;
  width: 100%;
  height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  background:
    var(--noise),
    linear-gradient(180deg, #14161a, #1d2025 50%, #101216);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, .8),
    inset 0 -1px 0 rgba(255, 255, 255, .06),
    0 1px 0 rgba(255, 255, 255, .2);
}
.p-stomp::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 20deg, #3b4047, #15181d 22%, #434a53 46%, #121519 70%, #3b4047 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .22),
    inset 0 -2px 3px rgba(0, 0, 0, .65),
    0 4px 7px rgba(0, 0, 0, .55);
}
.p-stomp::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 31px;
  height: 31px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    linear-gradient(118deg, transparent 32%, rgba(255, 255, 255, .55) 40%, transparent 49%),
    radial-gradient(circle at 36% 28%, #ffffff 0%, #dde3e9 16%, #949da7 48%, #4b525b 76%, #2c3036 100%);
  box-shadow:
    inset 0 -2px 4px rgba(0, 0, 0, .35),
    inset 0 1px 1px rgba(255, 255, 255, .8),
    0 5px 8px rgba(0, 0, 0, .65),
    0 2px 3px rgba(0, 0, 0, .5);
  transition: transform .09s ease, box-shadow .09s ease;
}
.p-stomp:active::after {
  transform: translate(-50%, calc(-50% + 2px));
  box-shadow:
    inset 0 -2px 4px rgba(0, 0, 0, .35),
    inset 0 1px 1px rgba(255, 255, 255, .8),
    0 2px 3px rgba(0, 0, 0, .6),
    0 1px 2px rgba(0, 0, 0, .5);
}
.p-stomp[aria-pressed="true"]::after {
  box-shadow:
    inset 0 -2px 4px rgba(0, 0, 0, .35),
    inset 0 1px 1px rgba(255, 255, 255, .8),
    0 4px 7px rgba(0, 0, 0, .6),
    0 0 14px rgba(99, 215, 230, .35);
}
.p-stomp.stomped::before { animation: stompRipple .5s ease-out; }
@keyframes stompRipple {
  0% {
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, .22),
      inset 0 -2px 3px rgba(0, 0, 0, .65),
      0 4px 7px rgba(0, 0, 0, .55),
      0 0 0 0 rgba(99, 215, 230, .4);
  }
  100% {
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, .22),
      inset 0 -2px 3px rgba(0, 0, 0, .65),
      0 4px 7px rgba(0, 0, 0, .55),
      0 0 0 16px rgba(99, 215, 230, 0);
  }
}
.p-stomp:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Deck: palco do amplificador ---------- */
.deck {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  margin: 0 12px 12px;
  padding: 14px 12px;
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(120, 140, 180, .08), transparent 60%),
    var(--noise),
    linear-gradient(180deg, #16161a, #0c0c0f);
  border-radius: 16px;
  border: 1px solid #26262c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    inset 0 0 0 1px rgba(138, 114, 68, .28),
    inset 0 -26px 40px -30px rgba(0, 0, 0, .9);
}
.drive-col { display: flex; flex-direction: column; gap: 10px; align-items: center; grid-column: span 3; }
.pedal.drive { max-width: 148px; }
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 148px;
}
.thumb {
  padding: 2px;
  border-radius: 5px;
  border: 1px solid #2a2a2e;
  background: linear-gradient(180deg, #11151d, #0a0d12);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 2px 5px rgba(0, 0, 0, .4);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.thumb:hover { transform: translateY(-1px); border-color: #3a3f48; }
.thumb img { width: 100%; height: 36px; object-fit: contain; display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.thumb.on {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 0 12px rgba(242, 166, 90, .3);
}

.amp-unit { min-width: 0; grid-column: span 5; }
.tolex {
  background:
    var(--noise),
    radial-gradient(ellipse at 50% 0%, #1b1b1d, #0e0e10 72%);
  border-radius: 12px;
  padding: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    inset 0 0 0 1px #28282c,
    inset 0 0 0 2px rgba(138, 114, 68, .3);
}
.amp-photo-wrap {
  position: relative;
  background:
    radial-gradient(60% 24% at 50% 88%, rgba(120, 150, 200, .10), transparent 72%),
    radial-gradient(ellipse at 50% 85%, #17181c, #030304 74%);
  border-radius: 8px;
  min-height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .03);
}
.amp-photo-wrap::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 4px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .85), transparent 70%);
  pointer-events: none;
}
#amp-photo {
  position: relative;
  z-index: 1;
  width: 86%;
  height: 172px;
  margin-top: -6px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .75));
  transition: filter .25s var(--ease), transform .25s var(--ease);
  -webkit-box-reflect: below -40px linear-gradient(transparent 76%, rgba(255, 255, 255, .14));
}
.amp-unit.bypassed #amp-photo { filter: grayscale(.6) brightness(.35) drop-shadow(0 14px 16px rgba(0, 0, 0, .75)); }
.nameplate {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  margin-top: 8px;
}
.nameplate button {
  background: transparent;
  border: 0;
  color: var(--amber);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: text-shadow .2s var(--ease), transform .2s var(--ease);
}
.nameplate button:hover { text-shadow: 0 0 10px rgba(242, 166, 90, .8); transform: scale(1.15); }
#amp-silk {
  margin: 0;
  text-align: center;
  font-weight: 800;
  font-style: italic;
  font-size: 18px;
  letter-spacing: .08em;
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .8), 0 0 20px rgba(242, 166, 90, .3);
}
#amp-readout {
  margin: 0 0 8px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}
.faceplate {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  padding: 10px 8px 28px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #171512, #0b0a08);
  border: 1px solid rgba(138, 114, 68, .55);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    inset 0 -4px 10px rgba(0, 0, 0, .6);
}
.bypass {
  align-self: center;
  margin-top: 8px;
  background: linear-gradient(180deg, #221a0f, #130e07);
  color: var(--cream);
  border: 1px solid var(--piping);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 5px rgba(0, 0, 0, .4);
  transition: color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.bypass:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 10px rgba(242, 166, 90, .25); }
.bypass[aria-pressed="true"] {
  color: #6a6258;
  border-color: #423b2e;
  background: #0b0a08;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6);
}
.amps {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 2px 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #2a3548 transparent;
}
.amp {
  flex: 0 0 78px;
  background: linear-gradient(180deg, #11151d, #0a0d12);
  border: 1px solid #26262c;
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.amp:hover { transform: translateY(-1px); border-color: #3a3f48; }
.amp img { width: 100%; height: 42px; object-fit: contain; display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.amp span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.15;
}
.amp.on {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 0 12px rgba(242, 166, 90, .3);
}

/* ---------- Gabinete ---------- */
.cab-unit { display: flex; flex-direction: column; gap: 8px; grid-column: span 2; min-width: 0; }
.cab-unit header, .neck-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cab-unit h2, .neck-bar h2 {
  margin: 0;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.power {
  width: 34px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #3a3428;
  background: linear-gradient(180deg, #14120e, #1d1a14);
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6);
  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 35% 30%, #4a443a, #2c2820);
  transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.power[aria-pressed="true"] {
  border-color: var(--cyan);
  background: linear-gradient(180deg, #0b2026, #10262c);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5), 0 0 10px rgba(99, 215, 230, .25);
}
.power[aria-pressed="true"]::after {
  transform: translateX(16px);
  background: radial-gradient(circle at 35% 30%, #c8f4fb, var(--cyan));
  box-shadow: 0 0 8px var(--cyan);
}
.grille {
  flex: 1;
  min-height: 150px;
  border-radius: 8px;
  background:
    radial-gradient(70% 50% at 50% 28%, rgba(255, 255, 255, .06), transparent 65%),
    repeating-linear-gradient(45deg, #221e18 0 3px, #161310 3px 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .5) 0 3px, transparent 3px 6px),
    #171410;
  box-shadow:
    inset 0 0 0 9px #141414,
    inset 0 0 0 10px rgba(138, 114, 68, .6),
    inset 0 0 40px rgba(0, 0, 0, .8);
  position: relative;
  transition: filter .25s var(--ease);
}
.grille i {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  bottom: 16px;
  background:
    radial-gradient(circle 54px at 50% 26%,
      rgba(0, 0, 0, .8) 0 10px,
      rgba(42, 36, 26, .5) 11px 38px,
      rgba(0, 0, 0, .85) 39px 48px,
      rgba(255, 255, 255, .08) 49px 51px,
      transparent 52px),
    radial-gradient(circle 54px at 50% 74%,
      rgba(0, 0, 0, .8) 0 10px,
      rgba(42, 36, 26, .5) 11px 38px,
      rgba(0, 0, 0, .85) 39px 48px,
      rgba(255, 255, 255, .08) 49px 51px,
      transparent 52px),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .04), transparent 55%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .4) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.cab-unit.bypassed .grille { filter: brightness(.4); }
.cab-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cab {
  background: linear-gradient(180deg, #1d1a14, #12100c);
  color: var(--cream);
  border: 1px solid #3a3428;
  border-radius: 6px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.cab small { display: block; font-weight: 500; color: var(--muted); font-size: 9px; }
.cab.on {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: inset 0 0 0 1px var(--amber), 0 0 10px rgba(242, 166, 90, .25);
}

/* ---------- Master ---------- */
.master {
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-column: span 2;
  min-width: 0;
  gap: 8px;
  padding-top: 2px;
}
.vmeters { display: flex; gap: 8px; align-items: flex-end; }
.vmeter { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.vmeter span, .clip {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}
.meter {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  width: 12px;
  height: 72px;
  padding: 2px;
  background: #04070b;
  border: 1px solid var(--edge);
  border-radius: 3px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .7);
}
.meter i {
  flex: 1 1 0;
  background: #161e2c;
  border-radius: 1px;
  transition: background .09s linear, box-shadow .09s linear;
}
.meter i.on { background: var(--cyan); box-shadow: 0 0 6px rgba(99, 215, 230, .65); }
.meter i.hot { background: var(--amber); box-shadow: 0 0 6px rgba(242, 166, 90, .7); }
.meter i.clip { background: var(--led); box-shadow: 0 0 6px rgba(255, 90, 69, .8); }
.meter i.pk { background: rgba(99, 215, 230, .5); box-shadow: 0 0 4px rgba(99, 215, 230, .4); }
.clip { opacity: .35; transition: opacity .2s var(--ease); }
.clip.on { opacity: 1; color: var(--led); text-shadow: 0 0 8px var(--led); }

/* ---------- Knob premium ---------- */
.knob {
  --v: 0.5;
  position: relative;
  width: 54px;
  height: 54px;
  touch-action: none;
  cursor: ns-resize;
  flex: 0 0 auto;
}
.knob .skirt { display: none; }
.knob .arc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 225deg, var(--cyan) calc(var(--v) * 270deg), #223044 0 270deg, transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 61% 80%, transparent 83%);
  mask: radial-gradient(circle, transparent 58%, #000 61% 80%, transparent 83%);
  filter: drop-shadow(0 0 3px rgba(99, 215, 230, .4));
  transition: filter .2s var(--ease);
}
.knob .cap {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 48%),
    conic-gradient(from 80deg,
      #272d36, #39414d 11%, #21262e 23%, #343b46 36%, #1d2229 49%,
      #39414d 61%, #242a32 73%, #3e4753 86%, #272d36 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    inset 0 1px 1px rgba(255, 255, 255, .3),
    inset 0 -2px 4px rgba(0, 0, 0, .6),
    0 5px 9px rgba(0, 0, 0, .6),
    0 1px 2px rgba(0, 0, 0, .7);
}
.knob .ptr {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 28%;
  margin-left: -1px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(242, 166, 90, .2), var(--amber) 55%, #ffd9a8);
  transform-origin: 50% 0;
  transform: rotate(calc(45deg + var(--v) * 270deg));
  pointer-events: none;
}
.knob .ptr::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ffe2b8;
  box-shadow: 0 0 6px 1px rgba(242, 166, 90, .9);
}
.knob .kv, .knob .name {
  position: absolute;
  left: -8px;
  right: -8px;
  text-align: center;
  pointer-events: none;
}
.knob .kv {
  top: calc(100% + 1px);
  font-size: 9px;
  font-weight: 700;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: scale(.82) translateY(-2px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.knob .name {
  top: calc(100% + 12px);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}
.knob:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 50%; }
.knob.adjusting .kv {
  opacity: 1;
  transform: none;
  text-shadow: 0 0 8px rgba(99, 215, 230, .55);
}
.knob.adjusting .arc { filter: drop-shadow(0 0 6px rgba(99, 215, 230, .75)); }

/* Knob dentro do pedal: menor, com valor e nome logo abaixo. */
.p-plate .knob { width: 44px; height: 44px; }
.p-plate .knob .kv { color: var(--cyan); }
.p-plate .knob .name {
  color: #d5dde8;
  letter-spacing: .12em;
  font-size: 8px;
}
.knob.amp .ptr { background: linear-gradient(180deg, rgba(239, 225, 189, .2), var(--cream) 55%, #fff6df); }
.knob.amp .ptr::after { background: #fff6df; box-shadow: 0 0 6px 1px rgba(239, 225, 189, .8); }
.master > .knob, .pair .knob { margin-bottom: 26px; }
.pair { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pair:has(.power[aria-pressed="false"]) .knob { opacity: .38; transition: opacity .25s var(--ease); }

/* ---------- Guitarra de teste ---------- */
.neck {
  margin: 0 12px 12px;
  padding: 8px 12px 12px;
  border-radius: 12px;
  background:
    var(--noise),
    linear-gradient(180deg, rgba(0, 0, 0, .4), rgba(0, 0, 0, .6)),
    repeating-linear-gradient(90deg, #33200f 0 14px, #422a14 14px 16px);
  border: 1px solid #54391f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -16px 30px -20px rgba(0, 0, 0, .9);
}
.neck-bar h2 { color: #f0d7b0; }
.oct { display: flex; align-items: center; gap: 8px; color: #f0d7b0; font-size: 12px; font-weight: 700; }
.oct button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #8a6844;
  background: linear-gradient(180deg, #33200f, #22140a);
  color: #f0d7b0;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 4px rgba(0, 0, 0, .5);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.oct button:hover { border-color: #b8975a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 8px rgba(184, 151, 90, .4); }

.io-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: end;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(14, 20, 31, .9), rgba(9, 13, 20, .95));
  border-bottom: 1px solid var(--edge);
}
.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: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.io-bar select {
  width: 100%;
  height: 36px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--surface1) 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 13px/1 Montserrat, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  appearance: none;
}
.io-btn {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #2a3548;
  border-radius: 999px;
  background: linear-gradient(180deg, #18202e, #10151f);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.io-btn:hover { border-color: #3d4d64; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 10px rgba(99, 215, 230, .12); }
#tank-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  line-height: 1.35;
}

.keys { position: relative; height: 92px; user-select: none; touch-action: none; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); }
.key {
  position: absolute;
  top: 0;
  border: 0;
  padding: 0 0 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
}
.key.white {
  height: 92px;
  background: linear-gradient(180deg, #f4efe6 0%, #ebe2d2 70%, #cfc2ad 100%);
  color: #3c342c;
  z-index: 1;
  border-right: 1px solid #b7aa98;
  box-shadow: inset 0 -4px 6px rgba(0, 0, 0, .12);
}
.key.black {
  height: 54px;
  background: linear-gradient(180deg, #322b24 0%, #15110d 60%, #060504 100%);
  color: #e7d7c4;
  z-index: 2;
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 3px 5px rgba(0, 0, 0, .55);
}
.key.down.white { background: linear-gradient(180deg, #d8fbff, #9fe8ef); box-shadow: inset 0 2px 8px rgba(0, 80, 100, .3); }
.key.down.black { background: linear-gradient(180deg, #8fe3ef, var(--cyan)); color: #06222a; box-shadow: 0 0 10px rgba(99, 215, 230, .5); }
.key small { font-size: 10px; font-weight: 700; pointer-events: none; }

@media (max-width: 1100px) {
  /* Gabinete largo: alto-falantes lado a lado. */
  .grille i {
    background:
      radial-gradient(circle 54px at 28% 50%,
        rgba(0, 0, 0, .8) 0 10px,
        rgba(42, 36, 26, .5) 11px 38px,
        rgba(0, 0, 0, .85) 39px 48px,
        rgba(255, 255, 255, .08) 49px 51px,
        transparent 52px),
      radial-gradient(circle 54px at 72% 50%,
        rgba(0, 0, 0, .8) 0 10px,
        rgba(42, 36, 26, .5) 11px 38px,
        rgba(0, 0, 0, .85) 39px 48px,
        rgba(255, 255, 255, .08) 49px 51px,
        transparent 52px),
      radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .04), transparent 55%),
      repeating-linear-gradient(90deg, rgba(0, 0, 0, .4) 0 1px, transparent 1px 4px);
  }
  .io-bar { grid-template-columns: 1fr; }
  .drive-col, .amp-unit { grid-column: span 12; }
  .cab-unit, .master { grid-column: span 6; }
  .master { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  #amp-photo { height: 150px; }
}
@media (max-width: 720px) {
  .io-devices { grid-template-columns: 1fr; }
  .chassis { width: 100%; margin: 0; border-radius: 0; }
  .board, .deck { margin-inline: 8px; }
  .drive-col, .amp-unit, .cab-unit, .master { grid-column: span 12; }
  .pedal.drive, .thumbs { width: min(148px, 100%); }
  .pedals { gap: 14px 8px; }
  .pedals .pedal { width: 104px; }
  .sources, .tuner { width: 100%; }
  .tuner { flex: 1 1 100%; }
  .logo { height: 28px; }
  .neck { margin-inline: 8px; }
  .keys { height: 78px; }
  .key.white { height: 78px; }
  .key.black { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .pedal:hover { transform: none; }
}

/* ===== 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;}}
