:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --brand: #bdb133;
  --brand-hover: #aea32f;
  --brand-active: #a0992c;
  --ink: #111;
}

* { box-sizing: border-box; }
body { margin: 0; background: #071521; color: #e7eef7; }

/* palco */
.stage {
  border: 3px solid var(--brand);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  background: #06111a;
}

/* cartão do pedal */
.pedal-card {
  width: min(560px, 92vw);
  min-height: 480px;         /* dá mais “altura” */
  padding: 24px 28px 26px;   /* menos “bochecha” */
  border-radius: 14px;
  background: #1a2029;
  color: #e7eef7;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
}
.pedal-head { text-align: center; margin-bottom: 12px; }

.pedal-logo {
  height: 85px; /* Tamanho equilibrado para a logo */
  max-width: 500px; /* Garante que a logo não ultrapasse o container */
  object-fit: contain;
  margin-bottom: 15px; /* Adiciona espaço abaixo da logo */
}

.pedal-sub   { font-size: 10px; letter-spacing: .4px; color: #9aa3ad; margin-top: 2px; }

/* conectar */
.connect-row { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; }
.connect-row button {
  background: var(--brand);
  color: #1a1a1a;
  border: 1px solid var(--brand-active);
  border-radius: 10px;
  box-shadow: none;
  padding: 6px 10px;
}
.connect-row button:hover { background: var(--brand-hover); }
.connect-row button:active { background: var(--brand-active); }
.badge { background: #cfd7e6; color: #1b2433; padding: 4px 9px; border-radius: 999px; font-size: .85rem; border: 1px solid rgba(189,177,51,.45); }

/* blocos */
.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 6px 4px 2px; }
.block {
  background: #2a3342; /* Cinza-azulado para destacar sutilmente */
  border-radius: 14px;
  height: 280px; /* ← Reduzido de 305px para 280px */
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.2);
}

/* botão do rótulo do algoritmo */
.block-btn {
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #e7eef7;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: color .12s ease, background-color .12s ease, border-color .12s ease, transform .06s ease;
}
.block-btn:active { transform: translateY(1px); }
/* Hover invertendo cores (ex.: SPRING/EXPAND) */
.block-btn:hover {
  color: #111;
  background: var(--brand);
  border-color: var(--brand);
}

/* conteúdo do bloco (título → controles → rodapé) */
.block-content {
  width: 80%;
  max-width: 360px;
  margin: 12px 0;
  display: flex; /* ← Mudado de grid para flex */
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* ← Distribui os elementos */
  height: 100%; /* ← Usa toda a altura disponível */
  padding: 8px 0; /* ← Adiciona padding vertical */
}

/* controles High/Low/New */
.ctrls { 
  width: 100%; 
  max-width: 320px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  flex: 1;
  padding: 0;
  margin-top: -10px; /* ← Aumentado de -20px para -35px */
}

.ctrl {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 10px;
  margin: 0;
}

/* Remove o espaçamento extra entre controles */
.ctrl + .ctrl { margin-top: 0; }

/* Labels dos parâmetros - ajuste de tamanho */
.ctrl-label {
  color: #e7eef7;
  font-size: 11px; /* ← Reduzido de 12px para 11px */
  font-weight: 600;
  letter-spacing: .2px;
  text-align: left;
  white-space: nowrap; /* Evita quebra de linha */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* barra */
.bar {
  height: 12px;
  background: #2a3342;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.06);
}
.bar-fill {
  position: absolute; inset: 0 auto 0 0;
  width: 50%;
  border-radius: 10px;
  background: linear-gradient(180deg, #c9be3c 0%, var(--brand-active) 100%);
  transition: width .14s ease;
}
.bar:hover { outline: 2px solid rgba(0,0,0,.06); }

/* rodapé do bloco (botão Salvar) */
.block-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px; /* ← Reduzido de 18px para 12px */
  display: flex;
  justify-content: center;
}
.send-btn {
  min-width: 88px;
  padding: 6px 12px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .2px;
  color: #f0f3f7;
  background: var(--brand);
  border: 1px solid var(--brand-active);
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  transition: background .12s ease, transform .06s ease;
}
.send-btn:hover   { background: var(--brand-hover); }
.send-btn:active  { background: var(--brand-active); transform: translateY(1px); }
.send-btn:focus-visible { outline: 2px solid rgba(189,177,51,.45); outline-offset: 2px; }

/* modal */
.hidden { display: none !important; }
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal-wrap {
  width: min(520px, 96vw); background: #0f1622; color: #e7eef7;
  border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); padding: 14px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal-title { font-weight: 700; }
.modal-close {
  border: 0; background: #2a3342; color: #e7eef7; width: 36px; height: 36px;
  border-radius: 8px; font-size: 20px; cursor: pointer;
}
.reverb-list { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.reverb-item { background: #131d2b; border: 1px solid #1f2a3a; border-radius: 10px; padding: 12px; cursor: pointer; }
.reverb-item:hover { background: #152238; color: #fff; }
.reverb-name { font-weight: 600; color: #fff; }
.reverb-sub  { color: #e6ecf2; opacity: .8; display: none !important; }

/* Space Grotesk nos labels High/Low */
.ctrl-label {
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 600;
}