/* Sonoridade: visual de instrumento, não de template.
   Cores chapadas (preto, grafite, ouro da marca), cantos 5/7 px, uma família tipográfica
   (Archivo) com largura condensada nos títulos e nos nomes de acorde. Sem brilho, sem degradê,
   sem etiquetas em maiúsculas, sem bolinhas. Texto centralizado nos cartões. */
:root {
  --fundo: #0d0d0c;
  --placa: #171715;
  --placa-2: #20201d;
  --placa-3: #2a2a26;
  --linha: #2e2e2a;
  --texto: #f1ede4;
  --apagado: #99948a;
  --ouro: #e3ad45;
  --ouro-claro: #f2c766;
  --tinta: #191307;          /* texto em cima do ouro */
  --vermelho: #d65f4b;
  --r: 7px;
  --r-p: 5px;
  --fonte: 'Archivo', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }
svg { flex: none; }

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom));
}

/* títulos condensados */
.barra-topo h1, .secao h2, .acorde-cabeca .sim, .grau .g-sim, .passo-seq .g-sim,
.cartao-acorde .sim, .cartao-batida h2, .painel-acorde .nome, .bpm output, .navega .n-sim, .pronta .p-nome {
  font-stretch: 78%;
  font-weight: 800;
  letter-spacing: -.005em;
}

/* ---------- topo das telas ---------- */
.barra-topo { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 18px; }
.voltar {
  width: 44px; height: 44px; border-radius: var(--r); background: var(--placa);
  display: grid; place-items: center; color: var(--texto);
}
.voltar:hover { background: var(--placa-2); }
.voltar svg { width: 22px; height: 22px; }
.barra-topo h1 { font-size: 28px; text-align: center; }
.intro { text-align: center; color: var(--apagado); margin: -6px auto 18px; max-width: 520px; font-size: 15px; }

/* ---------- início ---------- */
/* estúdio ao fundo, preso na tela; a página rola por cima */
.app.app-inicio, .app.app-larga { max-width: 1180px; position: relative; }
.ini-fundo { position: fixed; inset: 0; z-index: -1; background: var(--fundo); overflow: hidden; }
.ini-fundo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: blur(4px) brightness(.6) saturate(.95); transform: scale(1.05);
}
.ini-fundo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,12,.15) 0%, rgba(13,13,12,.5) 50%, rgba(13,13,12,.88) 100%);
}
.ini-topo { text-align: center; padding: 6px 0 22px; }
.ini-logo { width: clamp(150px, 34vw, 230px); height: auto; display: block; margin: 0 auto; cursor: pointer; }

/* grade: celular = grandes um embaixo do outro + pequenos em 2 colunas (o último ocupa a linha) */
.ini-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ini-cartao, .cb-cartao {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r);
  min-height: 150px; display: flex; align-items: flex-end; justify-content: center; text-align: center;
  background: var(--placa); outline: 1px solid rgba(227,173,69,.18); outline-offset: -1px;
  transition: outline-color .2s;
}
.ini-cartao img, .cb-cartao img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s;
  filter: brightness(.82);
}
.ini-cartao::before, .cb-cartao::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,13,12,0) 25%, rgba(13,13,12,.55) 58%, rgba(13,13,12,.94) 100%);
}
.ini-cartao:hover, .ini-cartao:focus-visible, .cb-cartao:hover, .cb-cartao:focus-visible { outline-color: var(--ouro); }
.ini-cartao:hover img, .cb-cartao:hover img { transform: scale(1.05); filter: brightness(.95); }
.ini-nome {
  display: block; width: 100%; padding: 0 10px 18px;
  font-stretch: 78%; font-weight: 800; font-size: 23px; line-height: 1; letter-spacing: .01em;
  color: var(--texto); text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.ini-cartao.grande { grid-column: 1 / -1; min-height: 200px; }
/* ainda não liberado: preto e branco, sem clique */
.ini-cartao.breve { cursor: default; }
.ini-cartao.breve img { filter: grayscale(1) brightness(.6); }
.ini-cartao.breve:hover { outline-color: rgba(227,173,69,.18); }
.ini-cartao.breve:hover img { transform: none; filter: grayscale(1) brightness(.6); }
.ini-cartao.breve .ini-nome, .ini-cartao.grande.breve .ini-nome { color: #c9c4ba; }
.ini-breve {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  padding: 5px 12px; border-radius: var(--r-p); background: rgba(13,13,12,.78);
  color: var(--ouro-claro); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.ini-cartao.grande .ini-nome { font-size: 34px; color: var(--ouro-claro); }
.ini-cartao:last-child { grid-column: 1 / -1; min-height: 130px; }

/* tablet: os dois grandes lado a lado; pequenos em 3 + 2 */
@media (min-width: 640px) {
  .ini-grade { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .ini-cartao.grande { grid-column: span 3; min-height: 280px; }
  .ini-cartao { grid-column: span 2; min-height: 190px; }
  .ini-cartao:nth-child(6), .ini-cartao:last-child { grid-column: span 3; min-height: 170px; }
}
/* PC: grandes 3/5 + 2/5 em cima, cinco iguais embaixo */
@media (min-width: 1024px) {
  .ini-grade { grid-template-columns: repeat(10, 1fr); gap: 14px; }
  .ini-cartao.grande:first-child { grid-column: span 6; }
  .ini-cartao.grande:nth-child(2) { grid-column: span 4; }
  .ini-cartao.grande { min-height: 340px; }
  .ini-cartao, .ini-cartao:nth-child(6), .ini-cartao:last-child { grid-column: span 2; min-height: 240px; }
  .ini-cartao.grande .ini-nome { font-size: 44px; }
  .ini-nome { font-size: 26px; padding-bottom: 22px; }
}

/* entrada dos cartões (depois da abertura ou direto) */
.app-inicio .ini-topo, .app-inicio .ini-cartao { opacity: 0; transform: translateY(14px); }
.app-inicio.ini-pronto .ini-topo, .app-inicio.ini-pronto .ini-cartao {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}

/* ---------- abertura: vídeo de 3,4 s feito no Remotion (img/abertura/) ---------- */
body.com-abertura { overflow: hidden; }
.abertura {
  position: fixed; inset: 0; z-index: 100; background: #090807; overflow: hidden; cursor: pointer;
  transition: opacity .7s ease;
}
.abertura.saindo { opacity: 0; pointer-events: none; }
.ab-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-tocar {
  position: absolute; bottom: calc(17% + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  border: 1px solid rgba(227,173,69,.55); background: rgba(9,8,7,.6); color: var(--texto);
  padding: 13px 24px 13px 18px; border-radius: 99px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; min-height: 48px;
  transition: opacity .35s, border-color .2s; animation: ab-chama 2.2s ease-in-out infinite;
}
.ab-tocar svg { width: 18px; height: 18px; color: var(--ouro-claro); }
.ab-tocar:hover { border-color: var(--ouro); }
@keyframes ab-chama { 50% { box-shadow: 0 0 0 7px rgba(227,173,69,.1); } }
.abertura.tocando .ab-tocar { opacity: 0; pointer-events: none; }
.ab-pular {
  position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; border: 0; background: none;
  color: var(--apagado); font: inherit; font-size: 14px; padding: 10px 12px; cursor: pointer; min-height: 44px;
}
.ab-pular:hover { color: var(--texto); }


/* ---------- Cifras: biblioteca (mesmo padrão do início) ---------- */
.cb-cartao { border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; min-height: 128px; }
.cb-nome {
  display: block; width: 100%; padding: 0 8px 14px;
  font-stretch: 78%; font-weight: 800; font-size: 18px; line-height: 1.05; letter-spacing: .01em;
  color: var(--texto); text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.cb-cartao.ativo { outline: 2px solid var(--ouro); outline-offset: -2px; }
.cb-cartao.ativo .cb-nome { color: var(--ouro-claro); }
.cb-atalhos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
/* carrossel de categorias: rola sozinho, setas nas pontas, arrasta com o dedo */
.cb-carrossel { position: relative; margin-top: 10px; }
.cb-janela { overflow: hidden; border-radius: var(--r); }
.cb-categorias {
  display: flex; gap: 10px; will-change: transform; touch-action: pan-y; cursor: grab; user-select: none;
}
.cb-categorias.arrastando { cursor: grabbing; }
.cb-categorias.arrastando .cb-cartao { pointer-events: none; }
.cb-categorias img { pointer-events: none; }
.cb-categorias .cb-cartao { flex: 0 0 calc((100% - 2 * 10px) / 2.6); min-height: 104px; }
.cb-categorias .cb-nome { font-size: 19px; }
.cb-seta {
  position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; margin-top: -18px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(227,173,69,.45); background: rgba(13,13,12,.82); color: var(--ouro-claro);
  box-shadow: 0 4px 16px rgba(0,0,0,.5); transition: opacity .2s, background .15s;
}
.cb-seta svg { width: 18px; height: 18px; }
.cb-seta:hover { background: var(--ouro); color: var(--tinta); }
.cb-seta:disabled { opacity: 0; pointer-events: none; }
.cb-seta.esq { left: -6px; }
.cb-seta.dir { right: -6px; }
.cb-cartao.embreve { cursor: default; }
.cb-cartao.embreve img { filter: grayscale(.75) brightness(.38); transform: none; }
.cb-cartao.embreve .cb-nome { color: #a9a294; }
.cb-cartao.embreve:hover { outline-color: rgba(227,173,69,.18); }
.cb-breve {
  position: absolute; top: 11px; left: 0; right: 0; text-align: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ouro);
}
/* busca: gruda no topo quando a lista rola */
.cb-busca-faixa {
  position: sticky; top: 0; z-index: 5; margin: 6px -16px 0; padding: 14px 16px 12px;
  transition: background .2s;
}
/* só ganha fundo quando gruda no topo (a lista passa por baixo) */
.cb-busca-faixa.grudada { background: linear-gradient(180deg, rgba(13,13,12,.96) 72%, rgba(13,13,12,0)); }
.cb-marca-busca { height: 1px; }
.cb-busca { margin: 0; background: rgba(23,23,21,.96); outline: 1px solid rgba(227,173,69,.28); outline-offset: -1px; }
.cb-busca input { padding: 16px 0; font-size: 17px; }
.cb-busca input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.cb-limpar { border: 0; background: none; color: var(--apagado); width: 38px; height: 38px; margin-right: -8px; display: grid; place-items: center; cursor: pointer; border-radius: var(--r-p); }
.cb-limpar:hover { color: var(--texto); background: var(--placa-2); }
.cb-limpar svg { width: 18px; height: 18px; }
.cb-cabeca { display: grid; justify-items: center; gap: 2px; margin: 6px 0 12px; text-align: center; }
.cb-cabeca h2 { font-size: 22px; font-stretch: 78%; font-weight: 800; }
.cb-todas { border: 0; background: none; color: var(--ouro); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 10px; }
.cb-todas:hover { color: var(--ouro-claro); text-decoration: underline; text-underline-offset: 3px; }
.musica-trecho { font-size: 13.5px; color: #cfc8ba; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.musica mark { background: rgba(227,173,69,.26); color: var(--ouro-claro); border-radius: 2px; }
@media (min-width: 640px) {
  .cb-atalhos { gap: 12px; }
  .cb-cartao { min-height: 180px; }
  .cb-nome { font-size: 24px; padding-bottom: 18px; }
  .cb-categorias { gap: 12px; }
  .cb-categorias .cb-cartao { flex-basis: calc((100% - 3 * 12px) / 4); min-height: 130px; }
  .cb-categorias .cb-nome { font-size: 21px; }
  .cb-seta { width: 42px; height: 42px; margin-top: -21px; }
  .cb-seta.esq { left: -14px; }
  .cb-seta.dir { right: -14px; }
}
@media (min-width: 900px) {
  .cb-categorias .cb-cartao { flex-basis: calc((100% - 5 * 12px) / 6); min-height: 140px; }
  .cb-busca-faixa { margin: 8px 0 0; padding: 16px 0 12px; }
  .cb-secao .lista-musicas { grid-template-columns: 1fr 1fr; gap: 8px; }
}
@media (min-width: 1024px) {
  .cb-atalhos { gap: 14px; }
  .cb-atalhos .cb-cartao { min-height: 240px; }
  .cb-atalhos .cb-nome { font-size: 32px; padding-bottom: 22px; }
  .cb-categorias { gap: 14px; }
  .cb-categorias .cb-cartao { flex-basis: calc((100% - 5 * 14px) / 6); min-height: 150px; }
  .cb-seta.esq { left: -21px; }
  .cb-seta.dir { right: -21px; }
  .cb-categorias .cb-nome { font-size: 22px; }
}

/* ---------- controles comuns ---------- */
.segmentado {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px;
  background: var(--placa); border-radius: var(--r); margin-bottom: 12px;
}
.segmentado button {
  border: 0; background: transparent; padding: 10px; border-radius: var(--r-p); cursor: pointer;
  font-weight: 600; color: var(--apagado);
}
.segmentado button.ativo { background: var(--placa-3); color: var(--texto); }

.opcoes-linha { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; }
.opcao-linha {
  border: 0; background: var(--placa); border-radius: var(--r-p); padding: 9px 13px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--texto); text-align: center; line-height: 1.2;
}
.opcao-linha:hover { background: var(--placa-2); }
.opcao-linha.ativo { background: var(--ouro); color: var(--tinta); }
.opcao-linha small { display: block; font-size: 11.5px; font-weight: 500; color: var(--apagado); margin-top: 2px; }
.opcao-linha.ativo small { color: #4a3812; }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 13px 16px; border-radius: var(--r-p); border: 0; background: var(--placa-2);
  font-weight: 700; cursor: pointer; transition: background .15s;
}
.botao:hover { background: var(--placa-3); }
.botao svg { width: 18px; height: 18px; }
.botao.principal { background: var(--ouro); color: var(--tinta); }
.botao.principal:hover { background: var(--ouro-claro); }
.botao:disabled, .botao.desligado { opacity: .4; pointer-events: none; }
.botao.largo { width: 100%; margin-top: 4px; }

.secao { margin-top: 26px; }
.secao h2 { font-size: 22px; text-align: center; margin-bottom: 12px; }
.dica-grupo { text-align: center; color: var(--apagado); font-size: 14.5px; margin: 0 0 14px; }

/* ---------- lista de acordes ---------- */
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.cartao-acorde {
  display: grid; justify-items: center; text-align: center; gap: 2px; padding: 14px 6px 12px;
  border-radius: var(--r); background: var(--placa); transition: background .15s;
}
.cartao-acorde:hover { background: var(--placa-2); }
.cartao-acorde .sim { font-size: 40px; line-height: 1; color: var(--ouro-claro); }
.cartao-acorde .ext { font-size: 12.5px; color: var(--apagado); line-height: 1.25; }
.cartao-acorde .grau-txt { font-size: 13px; color: var(--ouro); font-weight: 700; }

/* ---------- acorde ---------- */
.acorde-cabeca { text-align: center; margin: 0 0 12px; }
.acorde-cabeca .sim { font-size: clamp(76px, 24vw, 112px); line-height: .9; color: var(--ouro-claro); }
.acorde-cabeca .ext { font-size: 19px; font-weight: 600; margin-top: 4px; }
.acorde-cabeca .extra { font-size: 14px; color: var(--apagado); margin-top: 2px; }

.palco-braco { border-radius: var(--r); padding: 16px 8px 8px; background: var(--placa); }
.braco { width: 100%; height: auto; display: block; }
.braco.vertical { max-width: 360px; margin: 0 auto; }
.b-nome { font-family: var(--fonte); fill: var(--apagado); font-weight: 600; }
.b-nota { fill: var(--texto); font-weight: 500; }
.b-casa { font-family: var(--fonte); fill: var(--apagado); }
.b-num { font-family: var(--fonte); font-weight: 800; fill: var(--tinta); }
.b-x path { stroke: var(--vermelho); stroke-width: 3.5; stroke-linecap: round; }
.b-o { fill: none; stroke: var(--texto); stroke-width: 3; }
.b-dedo { animation: aparecer .18s ease-out both; }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }

.legenda-dedos { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 4px; font-size: 13.5px; color: var(--apagado); }
.legenda-dedos b { color: var(--ouro); margin-right: 4px; font-weight: 800; }

.acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }

.dicas { list-style: none; padding: 0; margin: 0; border-radius: var(--r); background: var(--placa); overflow: hidden; }
.dicas li { padding: 12px 16px; text-align: center; font-size: 15px; }
.dicas li + li { border-top: 1px solid var(--linha); }

.navega { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.navega a {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: var(--r);
  background: var(--placa); transition: background .15s;
}
.navega a:hover { background: var(--placa-2); }
.navega a svg { width: 20px; height: 20px; color: var(--apagado); }
.navega .n-sim { font-size: 28px; color: var(--ouro-claro); line-height: 1; }
.navega .n-txt { font-size: 12.5px; color: var(--apagado); display: block; }
.navega a.vazio { visibility: hidden; }

/* ---------- batidas ---------- */
.legenda-batida { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; color: var(--apagado); font-size: 14px; margin-bottom: 14px; }
.legenda-batida span { display: inline-flex; align-items: center; gap: 4px; }
.legenda-batida svg { width: 18px; height: 18px; }

.s-batida { width: 22px; height: 22px; display: block; }
.s-baixo { fill: var(--ouro); }
.s-cima { fill: var(--texto); }
.s-abafa { color: var(--vermelho); }
.s-vazio { fill: var(--placa-3); }
.s-dedo circle { fill: var(--placa-3); }
.s-dedo text { fill: var(--texto); font: 800 13px var(--fonte); }
.s-polegar circle { fill: var(--ouro); }
.s-polegar text { fill: var(--tinta); }
.passo.agora .s-dedo circle { fill: var(--tinta); }
.passo.agora .s-dedo text { fill: var(--ouro-claro); }

.lista-batidas { display: grid; gap: 8px; }
.cartao-batida {
  display: grid; gap: 10px; justify-items: center; text-align: center; padding: 18px 14px;
  border-radius: var(--r); background: var(--placa); transition: background .15s;
}
.cartao-batida:hover { background: var(--placa-2); }
.cartao-batida h2 { font-size: 26px; line-height: 1; }
.cartao-batida .nivel-txt { font-size: 13px; color: var(--ouro); font-weight: 700; margin-top: -4px; }
.cartao-batida p { margin: 0; font-size: 14px; color: var(--apagado); max-width: 440px; }

.passos { display: flex; justify-content: center; gap: 4px; width: 100%; }
.passo {
  flex: 1 1 0; min-width: 0; max-width: 46px; display: grid; justify-items: center; gap: 3px; padding: 7px 0 5px;
  border-radius: var(--r-p); background: var(--placa-2);
}
.passo .conta { font-size: 11.5px; color: var(--apagado); }
.passo.tempo .conta { color: var(--texto); font-weight: 700; }
.passo.agora { background: var(--ouro); }
.passo.agora .conta { color: var(--tinta); }
.passo.agora .s-baixo, .passo.agora .s-cima { fill: var(--tinta); }

/* ---------- treino ---------- */
.painel-acorde {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: end;
  padding: 14px 14px 10px; border-radius: var(--r); background: var(--placa); margin-bottom: 8px;
}
.painel-acorde .rotulo { font-size: 13px; color: var(--apagado); font-weight: 600; }
.painel-acorde .nome { font-size: 62px; line-height: .9; color: var(--ouro-claro); }
.painel-acorde .prox { text-align: right; }
.painel-acorde .prox .nome { font-size: 40px; color: var(--texto); }
.painel-acorde .troca { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--placa-3); overflow: hidden; margin-top: 8px; }
.painel-acorde .troca i { display: block; height: 100%; width: 0; background: var(--ouro); }
.painel-acorde .mini { grid-column: 1 / -1; margin-top: 6px; }

.esteira-caixa { position: relative; border-radius: var(--r); overflow: hidden; background: #121211; margin-bottom: 8px; }
.esteira { display: block; width: 100%; height: 150px; }
.contagem {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-size: 92px; font-weight: 800; font-stretch: 78%; color: var(--ouro-claro); background: rgba(13, 13, 12, .55);
}

.controles { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 16px 0 6px; }
.controles .lado { display: flex; justify-content: center; }
.play {
  width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer; background: var(--ouro); color: var(--tinta);
  display: grid; place-items: center;
}
.play:hover { background: var(--ouro-claro); }
.play svg { width: 30px; height: 30px; }
.redondo {
  width: 48px; height: 48px; border-radius: var(--r); border: 0; background: var(--placa-2);
  display: grid; place-items: center; cursor: pointer;
}
.redondo:hover { background: var(--placa-3); }
.redondo svg { width: 20px; height: 20px; }
.bpm { display: grid; justify-items: center; text-align: center; }
.bpm output { font-size: 44px; line-height: 1; color: var(--ouro-claro); }
.bpm small { color: var(--apagado); font-size: 13px; }
input[type=range] { width: 100%; accent-color: var(--ouro); margin-top: 8px; }

/* ---------- sequências ---------- */
.campo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grau, .passo-seq {
  display: grid; justify-items: center; text-align: center; gap: 0; padding: 12px 4px 10px; border: 0; cursor: pointer;
  border-radius: var(--r); background: var(--placa); transition: background .15s;
}
.grau:hover { background: var(--placa-2); }
.grau:active { background: var(--placa-3); }
.g-num { font-size: 14px; font-weight: 800; color: var(--ouro); }
.g-sim { font-size: 36px; line-height: 1.05; color: var(--texto); }
.g-fun { font-size: 12px; color: var(--apagado); }

.sequencia {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; min-height: 84px; padding: 6px;
  border-radius: var(--r); background: #121211;
}
.passo-seq { background: var(--placa-2); padding: 10px 4px 8px; }
.passo-seq .g-sim { color: var(--ouro-claro); font-size: 32px; }
.passo-seq.agora { background: var(--ouro); }
.passo-seq.agora .g-sim, .passo-seq.agora .g-num { color: var(--tinta); }
.sequencia .vazio { grid-column: 1 / -1; align-self: center; text-align: center; color: var(--apagado); margin: 0; font-size: 14.5px; }
.acoes-seq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.acoes-seq .botao { padding: 12px 6px; font-size: 14px; }

.lista-prontas { display: grid; gap: 8px; }
.pronta {
  display: grid; justify-items: center; text-align: center; gap: 2px; padding: 14px; border: 0; border-radius: var(--r);
  background: var(--placa); cursor: pointer; transition: background .15s;
}
.pronta:hover { background: var(--placa-2); }
.p-nome { font-size: 20px; line-height: 1.1; }
.p-acordes { font-size: 17px; font-weight: 700; color: var(--ouro-claro); word-spacing: .3em; }
.p-dica { font-size: 13.5px; color: var(--apagado); }
.pronta.salva { grid-template-columns: 1fr auto; align-items: center; padding: 0; cursor: default; }
.pronta.salva:hover { background: var(--placa); }
.p-abrir { display: grid; justify-items: center; gap: 2px; padding: 14px; border: 0; background: transparent; cursor: pointer; }
.p-lixo { width: 52px; height: 100%; border: 0; background: transparent; color: var(--apagado); cursor: pointer; display: grid; place-items: center; }
.p-lixo:hover { color: var(--vermelho); }
.p-lixo svg { width: 20px; height: 20px; }

@media (min-width: 680px) {
  .campo { grid-template-columns: repeat(6, 1fr); }
  .sequencia { grid-template-columns: repeat(8, 1fr); }
}
@media (min-width: 900px) {
  .app { max-width: 860px; }
}

/* ---------- aulas (vitrine estilo Netflix) ---------- */
.destaque {
  display: block; position: relative; border-radius: var(--r); overflow: hidden; background: var(--placa);
  margin: 4px 0 8px;
}
.destaque-capa { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.destaque-capa img, .aula-capa img, .video-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.destaque-texto {
  display: grid; justify-items: center; text-align: center; gap: 4px; padding: 16px 16px 18px;
  background: var(--placa);
}
.destaque-trilha { font-size: 13px; font-weight: 700; color: var(--ouro); }
.destaque-titulo { font-size: clamp(28px, 7vw, 40px); line-height: 1; font-weight: 800; font-stretch: 78%; }
.destaque-meta { font-size: 14px; color: var(--apagado); }
.destaque-botao { margin-top: 8px; min-width: 180px; }
@media (min-width: 680px) {
  .destaque-texto {
    position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
    width: min(520px, calc(100% - 36px)); border-radius: var(--r); background: rgba(13, 13, 12, .86);
  }
}

.fileira { margin-top: 24px; }
.fileira h2 { font-size: 22px; font-weight: 800; font-stretch: 78%; margin: 0 0 10px; }
.fileira-caixa { position: relative; }
.fileira-trilho {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 44%); gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px;
}
.fileira-trilho::-webkit-scrollbar { display: none; }
.aula-cartao { display: grid; justify-items: center; text-align: center; gap: 4px; scroll-snap-align: start; }
.aula-capa {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden;
  background: var(--placa-2); transition: transform .18s;
}
.aula-cartao:hover .aula-capa { transform: scale(1.03); }
.aula-dur, .aula-vista {
  position: absolute; bottom: 6px; padding: 2px 6px; border-radius: var(--r-p); font-size: 12px; font-weight: 700;
  background: rgba(13, 13, 12, .85); color: var(--texto);
}
.aula-dur { right: 6px; }
.aula-vista { left: 6px; display: inline-flex; align-items: center; gap: 3px; background: var(--ouro); color: var(--tinta); }
.aula-vista svg { width: 13px; height: 13px; }
.aula-cartao.vista .aula-capa img { opacity: .55; }
.aula-titulo {
  font-size: 15px; font-weight: 700; line-height: 1.25; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.aula-nivel { font-size: 12.5px; color: var(--apagado); }

.fileira-seta {
  position: absolute; top: 0; z-index: 2; width: 40px; aspect-ratio: auto; height: calc((100% - 44px)); border: 0;
  display: none; place-items: center; cursor: pointer; color: var(--texto); background: rgba(13, 13, 12, .78);
}
.fileira-seta svg { width: 26px; height: 26px; }
.fileira-seta.esq { left: 0; border-radius: var(--r) 0 0 var(--r); }
.fileira-seta.dir { right: 0; border-radius: 0 var(--r) var(--r) 0; }
@media (min-width: 680px) {
  .fileira-trilho { grid-auto-columns: calc((100% - 30px) / 4); margin: 0; padding: 0 0 4px; scroll-padding: 0; }
  .fileira-seta { display: grid; }
  .fileira-seta[hidden] { display: none !important; }
}

/* página da aula */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-capa { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ouro); color: var(--tinta);
}
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-capa:hover .video-play { background: var(--ouro-claro); }
.aula-info { display: grid; justify-items: center; text-align: center; gap: 4px; margin-top: 14px; }
.aula-nome { font-size: clamp(26px, 6.5vw, 36px); line-height: 1.05; font-weight: 800; font-stretch: 78%; }
.aula-info p { margin: 6px 0 0; color: var(--texto); max-width: 520px; }
.aula-info .acoes { width: 100%; }
.aula-fonte { font-size: 12.5px; color: var(--apagado); }

/* ---------- Tocar cifra: biblioteca ---------- */
.busca {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  padding: 0 14px; border-radius: var(--r); background: var(--placa); color: var(--apagado);
}
:where(button, a, input, select, [tabindex]):focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; }
.busca:focus-within { outline: 2px solid var(--ouro); outline-offset: -2px; }
.busca svg { width: 20px; height: 20px; }
.busca input {
  flex: 1; min-width: 0; padding: 14px 0; border: 0; background: transparent;
  color: var(--texto); font: inherit; font-size: 16px; outline: none;
}
.busca input::placeholder { color: var(--apagado); }
.lista-musicas { display: grid; gap: 6px; }
.musica {
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px;
  padding: 8px 12px 8px 8px; border-radius: var(--r); background: var(--placa);
}
.musica:hover { background: var(--placa-2); }
.musica-link { display: grid; grid-template-columns: 1fr; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; align-self: stretch; }
/* capa = botão de ouvir o refrão */
.musica-ouvir { position: relative; width: 56px; height: 56px; padding: 0; border: 0; border-radius: var(--r-p); background: none; cursor: pointer; overflow: hidden; }
.musica-ouvir .musica-capa { display: block; }
.musica-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(13, 13, 12, .45); color: var(--texto); transition: background .15s;
}
.musica-play svg { width: 22px; height: 22px; grid-area: 1 / 1; }
.musica-play svg + svg { display: none; }
.musica-ouvir:hover .musica-play { background: rgba(13, 13, 12, .25); color: var(--ouro-claro); }
.musica.ouvindo { outline: 1px solid rgba(227,173,69,.55); outline-offset: -1px; background: var(--placa-2); }
.musica.ouvindo .musica-play { background: rgba(13, 13, 12, .55); color: var(--ouro-claro); }
.musica.ouvindo:not(.pausado) .musica-play svg:first-child { display: none; }
.musica.ouvindo:not(.pausado) .musica-play svg + svg { display: block; }
.musica.carregando .musica-play svg { animation: piscar 1s ease-in-out infinite; }
@keyframes piscar { 50% { opacity: .35; } }
/* anel dourado em volta da capa = quanto da prévia já tocou (--prog de 0 a 1) */
.musica-anel {
  position: absolute; inset: 0; border-radius: var(--r-p); padding: 3px; display: none; pointer-events: none;
  background: conic-gradient(var(--ouro-claro) calc(var(--prog, 0) * 360deg), rgba(241,237,228,.18) 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.musica.ouvindo .musica-anel { display: block; }
.musica-ouvir.falhou { cursor: default; }
.musica-ouvir.falhou .musica-play { opacity: .25; }

/* tocador do refrão, preso embaixo */
.refrao {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--fundo);
  border-top: 1px solid var(--linha); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  animation: subir .18s ease-out;
}
.refrao > * { max-width: 688px; margin-left: auto; margin-right: auto; }
.refrao-video { aspect-ratio: 16 / 9; width: 100%; max-width: 420px; border-radius: var(--r-p); overflow: hidden; background: #000; }
.refrao-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.refrao-info { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; margin-top: 8px; }
.refrao-texto { display: grid; min-width: 0; line-height: 1.2; }
.refrao-texto b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refrao-rotulo { font-size: 12.5px; color: var(--ouro); font-weight: 700; }
.refrao-info .botao { padding: 10px 14px; font-size: 14px; }
.refrao-info .redondo { width: 40px; height: 40px; }
.refrao-info .redondo svg { width: 18px; height: 18px; }
.refrao .troca { height: 4px; border-radius: 2px; background: var(--placa-3); overflow: hidden; margin-top: 8px; }
.refrao .troca i { display: block; height: 100%; width: 0; background: var(--ouro); }
.refrao-espaco { height: 340px; }
@media (min-width: 700px) {
  .refrao { padding-left: max(16px, calc(50% - 430px)); padding-right: max(16px, calc(50% - 430px)); }
  .refrao { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
  .refrao > * { max-width: none; margin: 0; }
  .refrao-video { grid-row: 1 / 3; width: 240px; }
  .refrao-info { margin-top: 0; }
  .refrao-espaco { height: 170px; }
}
.musica-capa { width: 56px; height: 56px; border-radius: var(--r-p); object-fit: cover; background: var(--placa-3); }
.musica-texto { display: grid; min-width: 0; }
.musica-nome { font-weight: 700; font-size: 17px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.musica-artista { color: var(--apagado); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.musica-versoes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.versao {
  font-size: 11.5px; font-weight: 600; line-height: 1; padding: 4px 7px 4px; border-radius: 4px;
  color: #d8d1c2; background: var(--placa-3);
}
.versao.apagada { color: var(--apagado); }
.vazio-lista { text-align: center; color: var(--apagado); margin: 24px 0; }

/* ---------- Tocar cifra: a música ---------- */
.cf-cabeca { display: grid; justify-items: center; text-align: center; gap: 2px; margin-bottom: 16px; }
.cf-capa { width: 96px; height: 96px; border-radius: var(--r); object-fit: cover; margin-bottom: 8px; background: var(--placa-3); }
.cf-titulo { font-size: clamp(30px, 8vw, 40px); line-height: 1; font-weight: 800; font-stretch: 78%; }
.cf-artista { color: var(--apagado); font-size: 16px; }
.cf-resumo { color: var(--ouro); font-weight: 600; font-size: 14.5px; margin-top: 4px; }

.cf-ajustes { display: grid; gap: 8px; }
.cf-ajustes .segmentado { margin: 0; }
#afin button { padding-left: 4px; padding-right: 4px; white-space: nowrap; font-size: 14.5px; }
.segmentado button:disabled { opacity: .35; cursor: default; }
.cf-controles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cf-controle { display: grid; justify-items: center; gap: 6px; padding: 12px 8px 10px; border-radius: var(--r); background: var(--placa); text-align: center; }
.cf-rotulo { font-size: 13px; color: var(--apagado); font-weight: 600; }
.cf-passo { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 6px; width: 100%; max-width: 220px; }
.cf-passo .redondo { width: 40px; height: 40px; }
.cf-passo output { font-size: 30px; line-height: 1; font-weight: 800; font-stretch: 78%; color: var(--ouro-claro); white-space: nowrap; }
.cf-volta { font-size: 12.5px; color: var(--apagado); background: none; border: 0; padding: 8px 6px; min-height: 36px; }
button.cf-volta:not(:disabled) { color: var(--ouro); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.cf-desenhos { margin-top: 22px; }
.cf-desenhos h3, .cf-junto-ajustes h2 { text-align: center; }
.cf-desenhos h3 { font-size: 18px; margin-bottom: 10px; }
.cf-trilho {
  display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 8px;
  overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--placa-3) transparent;
}
.cf-desenho {
  display: grid; justify-items: center; gap: 4px; padding: 8px 4px 6px; border: 0;
  border-radius: var(--r); background: var(--placa); cursor: pointer; scroll-snap-align: start;
}
.cf-desenho:hover { background: var(--placa-2); }
.cf-desenho .braco.vertical { width: 92px; }
.cf-desenho-nome { font-size: 20px; font-weight: 800; font-stretch: 78%; color: var(--ouro-claro); line-height: 1.1; }
.cf-sem { color: var(--apagado); font-size: 12.5px; text-align: center; }

.cf-letra-ajuste { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px 0 6px; color: var(--apagado); font-size: 13px; }
.cf-letra-ajuste .redondo { width: 38px; height: 38px; font-weight: 800; }
.cf-letra-ajuste .redondo span { font-size: 13px; }
.cf-letra-ajuste .redondo .maior { font-size: 19px; }

/* a cifra em si: letra alinhada à esquerda, acorde em cima da sílaba */
.cifra { font-size: 17px; line-height: 1.5; padding: 8px 2px 0; overflow-wrap: anywhere; }
.cf-secao {
  font-size: .82em; font-weight: 700; color: var(--apagado); margin: 1.6em 0 .35em;
  padding-left: 10px; border-left: 3px solid var(--ouro);
}
.cf-secao:first-child { margin-top: .4em; }
.cf-vazia { height: .7em; }
.cf-ln { white-space: pre-wrap; }
.cf-ln.com-ac { line-height: 2.75; }
.cf-ln.so-ac { line-height: 1.5; margin: .25em 0; }
.cf-anc { position: relative; display: inline-block; line-height: 1.4; }
.cf-ac {
  font: inherit; font-size: .86em; font-weight: 800; font-stretch: 82%; color: var(--ouro);
  background: none; border: 0; padding: 0 .12em; margin: 0 0 0 -.12em; border-radius: 4px; cursor: pointer; line-height: 1.25;
}
.cf-ac { position: relative; }
.cf-ac::after { content: ''; position: absolute; inset: -9px -6px; }
.cf-anc .cf-ac { position: absolute; left: 0; bottom: 100%; white-space: nowrap; }
.cf-ln.so-ac .cf-ac { margin-right: .5em; font-size: .95em; }
.cf-ac:hover { color: var(--ouro-claro); background: var(--placa-2); }
.cf-ac.prox { color: var(--texto); background: var(--placa-3); }
.cf-ac.agora { color: var(--tinta); background: var(--ouro); }
.cf-tab { margin: .4em 0; border-radius: var(--r); background: var(--placa); }
.cf-tab summary { cursor: pointer; padding: 9px 12px; font-size: 14px; color: var(--apagado); font-weight: 600; }
.cf-tab summary:hover { color: var(--texto); }
.cf-tab pre {
  margin: 0; padding: 4px 12px 12px; overflow-x: auto; font-size: 13px; line-height: 1.35;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--texto);
}
.cf-junto-ajustes .segmentado { margin-top: 8px; }
.cf-secao-batida {
  margin-left: 10px; padding: 1px 7px; border-radius: 4px; background: var(--placa-2);
  color: var(--ouro); font-size: .92em; font-weight: 600; white-space: nowrap;
}
.cf-partes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 10px; }
.cf-parte { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: var(--r); background: var(--placa); text-align: center; }
.cf-parte-nome { font-size: 13px; color: var(--apagado); font-weight: 600; }
.cf-parte-batida { font-size: 19px; font-weight: 800; font-stretch: 78%; color: var(--ouro-claro); line-height: 1.1; }
.cf-parte .passos { margin-top: 4px; gap: 2px; }
.cf-parte .passo { padding: 4px 1px; min-width: 0; }
.cf-parte .s-batida { width: 17px; height: 17px; }
.cf-nota { text-align: center; color: var(--apagado); font-size: 13px; margin: 10px 0 0; }
.cf-velocidade {
  display: grid; justify-items: center; gap: 2px; text-align: center; margin: 16px 0 4px;
  padding: 12px; border-radius: var(--r); background: var(--placa); font-size: 15px;
}
.cf-velocidade b { color: var(--ouro-claro); }
.cf-gravacao { color: var(--apagado); font-size: 12.5px; }
.cf-sub { text-align: center; font-size: 15px; color: var(--apagado); font-weight: 600; margin: 16px 0 0; }
.dj-batida { text-align: center; font-size: 12.5px; color: var(--apagado); font-weight: 600; margin-top: 4px; }
.cf-espaco { height: calc(var(--doca-h, 150px) + 24px); }

/* barra de baixo: velocidade, play e rolar; quando toca, mostra o acorde atual */
.doca {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--fundo); border-top: 1px solid var(--linha);
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
}
.doca > * { max-width: 688px; margin: 0 auto; }
.doca-barra { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.doca .play { width: 60px; height: 60px; }
.doca .play svg { width: 26px; height: 26px; }
.doca-lado { display: flex; align-items: center; justify-content: center; gap: 6px; }
.doca-lado .redondo { width: 40px; height: 40px; }
.doca-lado .redondo svg { width: 16px; height: 16px; }
.doca-bpm { display: grid; justify-items: center; line-height: 1; min-width: 38px; }
.doca-bpm output { font-size: 22px; font-weight: 800; font-stretch: 78%; color: var(--ouro-claro); }
.doca-bpm small { font-size: 11px; color: var(--apagado); }
.doca-rolar {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: var(--r);
  background: var(--placa-2); color: var(--texto); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.doca-rolar svg { width: 18px; height: 18px; }
.doca-rolar.ativo { background: var(--ouro); color: var(--tinta); }
.doca-junto { margin-bottom: 8px; }
.dj-linha { display: grid; grid-template-columns: 1fr minmax(0, 170px) 1fr; align-items: center; gap: 8px; }
.dj-agora, .dj-prox { display: grid; line-height: 1; }
.dj-prox { justify-items: end; text-align: right; }
.dj-linha .rotulo { font-size: 12px; color: var(--apagado); font-weight: 600; margin-bottom: 3px; }
.dj-agora b { font-size: 40px; font-weight: 800; font-stretch: 78%; color: var(--ouro-claro); }
.dj-prox b { font-size: 26px; font-weight: 800; font-stretch: 78%; }
.dj-mini .braco { display: block; }
.doca .troca { height: 4px; border-radius: 2px; background: var(--placa-3); overflow: hidden; margin-top: 6px; }
.doca .troca i { display: block; height: 100%; width: 0; background: var(--ouro); }

/* folha com o desenho de um acorde */
.folha { position: fixed; inset: 0; z-index: 40; display: grid; align-items: end; justify-items: center; }
.folha-fundo { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); }
.folha-caixa {
  position: relative; width: 100%; max-width: 560px; text-align: center;
  background: var(--placa); border-radius: 12px 12px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  animation: subir .18s ease-out;
}
@keyframes subir { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) { .folha { align-items: center; } .folha-caixa { border-radius: 12px; } }
.folha-nome { font-size: 56px; line-height: .95; font-weight: 800; font-stretch: 78%; color: var(--ouro-claro); }
.folha-ext { color: var(--apagado); font-size: 15px; margin: 4px 0 10px; min-height: 1.2em; }
.folha-braco { border-radius: var(--r); background: var(--fundo); padding: 10px 6px 4px; }
.folha .acoes { margin: 10px 0 8px; }
.folha .botao.largo { margin-top: 8px; }
.cf-fechar { background: transparent; color: var(--apagado); }

/* ---------- Acordes: mural ---------- */
.mural-cartao .mural-sim, .mural-cabeca h2, .mural-grau { font-stretch: 78%; font-weight: 800; letter-spacing: -.005em; }

/* qualquer acorde */
.qualquer { margin-bottom: 18px; }
.qualquer-campo { margin-bottom: 8px; }
.qualquer-rotulo { color: var(--ouro); font-weight: 700; font-size: 14px; white-space: nowrap; }
.qualquer-campo input { font-size: 18px; font-weight: 600; }
.qualquer-exemplos { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.qualquer-exemplos .opcao-linha { padding: 6px 11px; font-size: 13.5px; background: transparent; border: 1px solid var(--linha); }
.qualquer-exemplos .opcao-linha:hover { border-color: var(--ouro); }
.qualquer-resultado { margin-top: 12px; }
.qualquer-cartao { padding: 16px 12px 14px; text-align: center; }
.qualquer-topo { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 10px; }
.qualquer-cartao .mural-sim { font-size: 56px; }
.qualquer-cartao .acoes { margin-top: 12px; }
.qualquer-nada { text-align: center; color: var(--apagado); padding: 18px 12px; margin: 0; background: var(--placa); border-radius: var(--r); }

/* índice que acompanha a rolagem */
.mural-indice {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px 6px; padding: 10px 16px; background: var(--fundo); border-bottom: 1px solid var(--linha);
}
.mural-indice::-webkit-scrollbar { display: none; }
.mural-indice a {
  flex: none; padding: 7px 12px; border-radius: var(--r-p); background: var(--placa);
  color: var(--apagado); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.mural-indice a.ativo { background: var(--ouro); color: var(--tinta); }

/* grupos */
.mural-grupo { scroll-margin-top: 60px; padding-top: 22px; }
.mural-cabeca { text-align: center; margin-bottom: 14px; }
.mural-cabeca h2 { margin: 0; font-size: 30px; line-height: 1; color: var(--texto); }
.mural-cabeca p { margin: 6px auto 0; max-width: 46ch; color: var(--apagado); font-size: 14.5px; line-height: 1.45; }

/* cartões */
.mural { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mural-cartao {
  position: relative; display: flex; flex-direction: column; background: var(--placa);
  border-radius: var(--r); overflow: hidden; outline: 2px solid transparent; outline-offset: -2px;
  transition: outline-color .3s;
}
.mural-tocar {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px 8px;
  border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: center;
}
.mural-tocar:hover { background: var(--placa-2); }
.mural-sim { font-size: 42px; line-height: .95; color: var(--ouro-claro); }
.mural-ext { font-size: 12.5px; color: var(--apagado); line-height: 1.25; min-height: 2.5em; display: flex; align-items: center; }
.mural-tocar .braco { margin-top: 6px; max-width: 150px; }
.mural-abrir {
  display: flex; align-items: center; justify-content: center; gap: 4px; padding: 9px;
  border-top: 1px solid var(--linha); color: var(--apagado); text-decoration: none; font-size: 13.5px; font-weight: 600;
}
.mural-abrir svg { width: 15px; height: 15px; }
.mural-abrir:hover { color: var(--ouro); background: var(--placa-2); }

/* acorde soando: contorno dourado que se apaga */
.mural-cartao.soando { animation: soando 1.1s ease-out; }
.mural-cartao.soando .mural-sim { animation: sim-soando 1.1s ease-out; }
@keyframes soando { 0% { outline-color: var(--ouro); } 100% { outline-color: transparent; } }
@keyframes sim-soando { 0% { color: var(--texto); } 100% { color: var(--ouro-claro); } }

/* por tom */
.mural-grau { display: flex; flex-direction: column; align-items: center; font-size: 22px; color: var(--ouro); line-height: 1; margin-bottom: 6px; }
.mural-grau small { font: 600 11.5px var(--fonte); color: var(--apagado); margin-top: 3px; letter-spacing: 0; }
.tom-ouvir { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
.tom-ouvir .botao { justify-content: center; }
.tom-legenda { text-align: center; color: var(--apagado); font-size: 13px; margin: 10px 0 0; }

@media (min-width: 520px) { .mural { grid-template-columns: repeat(3, 1fr); } .tom-ouvir { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .mural { grid-template-columns: repeat(4, 1fr); } .mural-tom { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Tocar cifra: gravação original ---------- */
.cf-original {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 18px 10px 12px;
  border: 1px solid var(--linha); border-radius: var(--r); background: var(--placa); color: var(--texto);
  cursor: pointer; text-align: left; max-width: 100%;
}
.cf-original > svg { flex: none; width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: var(--ouro); color: var(--tinta); }
.cf-original span { display: grid; line-height: 1.25; min-width: 0; }
.cf-original b { font-size: 15.5px; }
.cf-original small { color: var(--apagado); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-original:hover { border-color: var(--ouro); }
.cf-original.ativo { border-color: var(--ouro); background: var(--placa-2); }

.doca-original { display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: 12px; align-items: center; }
.do-video { aspect-ratio: 16 / 9; border-radius: var(--r-p); overflow: hidden; background: #000; }
.do-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.do-lado { display: grid; gap: 6px; min-width: 0; }
.do-acordes { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px; }
.do-acordes .dj-agora b { font-size: 36px; min-height: 1em; }
.do-acordes .dj-prox b { font-size: 22px; min-height: 1em; }
.doca-original .troca { margin-top: 0; }
.do-botoes { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.do-botoes .redondo { width: 40px; height: 40px; }
.do-botoes .redondo svg { width: 17px; height: 17px; }
.do-tempo { font-variant-numeric: tabular-nums; color: var(--apagado); font-size: 13px; font-weight: 600; }
.do-aviso {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  text-align: center; font-size: 13px; color: var(--apagado); padding: 6px 8px; border-radius: var(--r-p); background: var(--placa);
}
.do-aviso .cf-volta { color: var(--ouro); font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (min-width: 700px) {
  .doca-original { grid-template-columns: 300px 1fr; gap: 18px; }
  .do-acordes .dj-agora b { font-size: 46px; }
}

/* ---------- Afinador ---------- */
.af-mostrador { position: relative; margin: 6px auto 14px; max-width: 420px; text-align: center; padding: 14px 12px 16px; border-radius: var(--r); background: var(--placa); }
.af-dial { width: 100%; display: block; }
.af-dial line { stroke: var(--apagado); stroke-width: 2; stroke-linecap: round; }
.af-dial line.m-grande { stroke: var(--texto); stroke-width: 3; }
.af-dial line.m-zero { stroke: var(--ouro); stroke-width: 4; }
.af-trilho { fill: none; stroke: var(--placa-3); stroke-width: 3; }
.af-zona { fill: none; stroke: var(--ouro); stroke-width: 12; opacity: .28; }
.af-sinal { fill: var(--apagado); font: 600 12px var(--fonte); }
.af-agulha { transform-origin: 160px 170px; transition: transform .14s ease-out; }
.af-agulha line { stroke: var(--texto); stroke-width: 3.5; stroke-linecap: round; }
.af-agulha circle { fill: var(--texto); }
.af-mostrador.afinado .af-agulha line, .af-mostrador.afinado .af-agulha circle { stroke: var(--ouro-claro); fill: var(--ouro-claro); }
.af-mostrador.afinado .af-zona { opacity: .7; }
.af-mostrador.fora .af-agulha line { stroke: var(--vermelho); }
.af-nota { display: grid; justify-items: center; margin-top: 6px; line-height: 1; }
.af-nota b { font-size: 64px; font-weight: 800; font-stretch: 78%; color: var(--texto); min-height: 1em; }
.af-mostrador.afinado .af-nota b { color: var(--ouro-claro); }
.af-nota small { color: var(--apagado); font-size: 13px; margin-top: 4px; min-height: 1.2em; font-variant-numeric: tabular-nums; }
.af-dica { margin: 10px 0 0; font-weight: 700; font-size: 16px; min-height: 1.3em; }
.af-mostrador.afinado .af-dica { color: var(--ouro-claro); }
.af-cordas { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 60px); justify-content: center; gap: 6px; }
.af-corda {
  position: relative; display: grid; justify-items: center; width: 100%; padding: 9px 0 7px; border-radius: var(--r);
  border: 2px solid transparent; background: var(--placa); color: var(--texto); cursor: pointer; line-height: 1;
}
.af-corda b { font-size: 24px; font-weight: 800; font-stretch: 78%; }
.af-corda small { font-size: 11.5px; color: var(--apagado); margin-top: 3px; }
.af-corda.agora { border-color: var(--linha); background: var(--placa-2); }
.af-corda.travada { border-color: var(--ouro); }
.af-corda.certa b { color: var(--ouro-claro); }
.af-corda.certa::after { content: ''; position: absolute; top: 5px; right: 6px; width: 7px; height: 4px; border: solid var(--ouro); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.af-legenda { text-align: center; color: var(--apagado); font-size: 13.5px; margin: 10px auto 0; max-width: 40ch; line-height: 1.4; }
.af-acoes { display: block; margin-top: 16px; }
.af-acoes .botao { width: 100%; }
.af-aviso { text-align: center; font-size: 14px; color: var(--texto); background: var(--placa); border-radius: var(--r); padding: 12px; margin-top: 10px; line-height: 1.5; }
.af-aviso a { color: var(--ouro); font-weight: 700; word-break: break-all; }

/* ---------- Exercícios ---------- */
.ex-lista { display: grid; gap: 10px; }
.ex-cartao {
  display: grid; justify-items: center; text-align: center; gap: 4px; padding: 18px 16px 16px;
  border-radius: var(--r); background: var(--placa); color: var(--texto); text-decoration: none;
}
.ex-cartao:hover { background: var(--placa-2); }
.ex-cartao .icone { width: 46px; height: 46px; color: var(--ouro); fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ex-cartao .icone .cheio { fill: currentColor; stroke: none; }
.ex-cartao h2 { margin: 6px 0 0; font-size: 24px; font-weight: 800; font-stretch: 78%; }
.ex-cartao p { margin: 0; color: var(--apagado); font-size: 14.5px; line-height: 1.4; max-width: 42ch; }
.ex-recorde { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--ouro); }
@media (min-width: 680px) { .ex-lista { grid-template-columns: 1fr 1fr; } }

.ex-palco { border-radius: var(--r); background: var(--placa); padding: 12px 8px 6px; margin-bottom: 10px; }
.bracinho { width: 100%; display: block; }
.bc-madeira { fill: #3a2716; }
.bc-traste { stroke: #b9b2a3; stroke-width: 3; }
.bc-pestana { stroke: #e9e2cf; stroke-width: 8; }
.bc-corda { stroke: #ddd5c2; }
.bc-ponto { fill: #c9b994; opacity: .55; }
.bc-casa { fill: var(--apagado); font: 700 17px var(--fonte); text-anchor: middle; }
.bc-marca circle { fill: var(--placa-3); stroke: var(--ouro); stroke-width: 2.5; }
.bc-marca text { fill: var(--texto); font: 800 20px var(--fonte); text-anchor: middle; }
.bc-agora circle { fill: var(--ouro); stroke: none; }
.bc-agora text { fill: var(--tinta); }
.bc-certo circle { fill: var(--ouro-claro); }
.bc-errado circle { fill: var(--vermelho); }
.bc-errado text { fill: var(--texto); }

.ex-placar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; }
.ex-placar > div { display: grid; justify-items: center; padding: 10px 4px; border-radius: var(--r); background: var(--placa); line-height: 1; }
.ex-placar .rotulo { font-size: 12px; color: var(--apagado); font-weight: 600; margin-bottom: 5px; }
.ex-placar b { font-size: 30px; font-weight: 800; font-stretch: 78%; color: var(--ouro-claro); font-variant-numeric: tabular-nums; }

.ex-tecla {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 96px; margin: 4px 0 12px;
  border: 0; border-radius: var(--r); background: var(--ouro); color: var(--tinta); cursor: pointer;
  font: 800 30px var(--fonte); font-stretch: 78%; touch-action: manipulation; user-select: none;
}
.ex-tecla svg { width: 30px; height: 30px; }
.ex-tecla:active { transform: scale(.985); }
.ex-tecla.valendo { background: var(--placa-2); color: var(--ouro-claro); outline: 2px solid var(--ouro); outline-offset: -2px; }
.ex-par { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 6px; }
.ex-acorde { display: grid; justify-items: center; gap: 4px; padding: 10px 8px 8px; border: 0; border-radius: var(--r); background: var(--placa); color: inherit; cursor: pointer; outline: 2px solid transparent; outline-offset: -2px; }
.ex-acorde .braco { max-width: 150px; }
.ex-acorde .mural-sim { font-size: 38px; font-weight: 800; font-stretch: 78%; }
.ex-acorde.agora { outline-color: var(--ouro); }
.ex-resultado { text-align: center; background: var(--placa); border-radius: var(--r); padding: 12px; margin: 10px 0 0; line-height: 1.45; }
.ex-resultado b { color: var(--ouro-claro); }

.ex-agora { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin: 0 0 12px; min-height: 1.6em; }
.ex-agora #dedo { font-size: 26px; font-weight: 800; font-stretch: 78%; color: var(--ouro-claro); }
.ex-agora #onde { color: var(--apagado); font-size: 14.5px; }
.ex-ajustes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
.ex-ajustes .cf-controle { min-width: 0; padding-left: 6px; padding-right: 6px; }
.ex-ajustes .cf-passo { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 4px; }
.ex-ajustes output { font-size: 21px; min-width: 0; white-space: nowrap; }
.ex-ajustes .redondo { width: 40px; height: 40px; flex: none; }
.bc-apagada circle { fill: var(--placa-3); stroke: var(--linha); }
.bc-apagada text { fill: var(--apagado); }

.ex-pergunta { text-align: center; font-size: 17px; margin: 4px 0 12px; min-height: 1.4em; line-height: 1.4; }
.ex-pergunta span { color: var(--apagado); font-size: 14.5px; display: block; }
.ex-pergunta b { color: var(--ouro-claro); }
.ex-quase { color: var(--vermelho); font-weight: 700; }
.ex-respostas { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; }
.ex-respostas.grandes { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.ex-resposta { display: grid; justify-items: center; gap: 2px; padding: 12px 4px 10px; border: 2px solid transparent; border-radius: var(--r); background: var(--placa); color: var(--texto); cursor: pointer; line-height: 1.1; }
.ex-resposta b { font-size: 20px; font-weight: 800; font-stretch: 78%; }
.ex-resposta small { color: var(--apagado); font-size: 12px; }
.ex-resposta:hover { background: var(--placa-2); }
.ex-resposta.certa { border-color: var(--ouro); background: var(--placa-2); }
.ex-resposta.certa b { color: var(--ouro-claro); }
.ex-resposta.errada { border-color: var(--vermelho); }
.ex-dica-inicio { grid-column: 1 / -1; text-align: center; color: var(--apagado); margin: 6px 0; }

/* ---------- metrônomo ---------- */
.mt-tempos { display: flex; justify-content: center; gap: 12px; margin: 8px 0 18px; }
.mt-tempo { width: 30px; height: 30px; border-radius: 50%; background: var(--placa-3); transition: background .08s, transform .08s; }
.mt-tempo.forte { box-shadow: inset 0 0 0 2px var(--ouro); }
.mt-tempo.agora { background: var(--ouro-claro); transform: scale(1.18); }
.mt-bpm { display: flex; align-items: center; justify-content: center; gap: 18px; }
.mt-bpm output { font-stretch: 75%; font-weight: 800; font-size: 76px; line-height: 1; min-width: 3ch; text-align: center; font-variant-numeric: tabular-nums; }
.mt-bpm .redondo { width: 52px; height: 52px; }
.mt-rotulo { text-align: center; color: var(--apagado); margin: 4px 0 14px; }
.mt-faixa { width: 100%; accent-color: var(--ouro); margin: 0 0 6px; height: 32px; }

/* ---------- troca de tela: zoom (main.js põe data-zoom = entra | sai | lado no <html>) ---------- */
/* entra: a tela nova cresce a partir do ponto tocado e a velha passa "por cima" da câmera;
   sai: o contrário, a tela atual encolhe e a de trás volta. Tudo parece uma tela só. */
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .52s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); animation-fill-mode: both;
  mix-blend-mode: normal;
}
html[data-zoom="entra"]::view-transition-old(root) { animation-name: vt-velha-passa; transform-origin: var(--zx, 50%) var(--zy, 50%); }
html[data-zoom="entra"]::view-transition-new(root) { animation-name: vt-nova-cresce; transform-origin: var(--zx, 50%) var(--zy, 50%); }
html[data-zoom="sai"]::view-transition-old(root) { animation-name: vt-atual-encolhe; transform-origin: 50% 40%; }
html[data-zoom="sai"]::view-transition-new(root) { animation-name: vt-tras-volta; transform-origin: 50% 40%; }
html[data-zoom="lado"]::view-transition-old(root) { animation-name: vt-some; animation-duration: .3s; }
html[data-zoom="lado"]::view-transition-new(root) { animation-name: vt-aparece; animation-duration: .3s; }
@keyframes vt-velha-passa { to { transform: scale(1.18); opacity: 0; } }
@keyframes vt-nova-cresce { from { transform: scale(.42); opacity: 0; border-radius: 24px; } 35% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes vt-atual-encolhe { to { transform: scale(.55); opacity: 0; } }
@keyframes vt-tras-volta { from { transform: scale(1.14); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes vt-some { to { opacity: 0; } }
@keyframes vt-aparece { from { opacity: 0; } }
html[data-zoom="sai"]::view-transition-old(root) { z-index: 2; }
/* navegador sem View Transitions: só a tela nova cresce */
.app.zoom-entra-sozinha { animation: vt-nova-cresce .5s cubic-bezier(.22, .8, .24, 1) both; transform-origin: var(--zx, 50%) var(--zy, 50%); }
html[data-zoom="sai"] .app.zoom-entra-sozinha { animation-name: vt-tras-volta; transform-origin: 50% 40%; }


/* ---------- Exercício: batida no tempo ---------- */
.rt-batida { display: grid; justify-items: center; gap: 10px; background: var(--placa); border-radius: var(--r); padding: 14px 10px 12px; margin-bottom: 10px; }
.rt-batida .passo svg { width: 30px; height: 30px; }
.rt-dica { margin: 0; color: var(--apagado); font-size: 14.5px; line-height: 1.4; text-align: center; max-width: 46ch; }
.rt-sensib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; width: 100%; }
.rt-sensib button { border: 0; border-radius: var(--r-p); background: var(--placa-2); color: var(--apagado); font: 600 13px var(--fonte); padding: 9px 2px; cursor: pointer; }
.rt-sensib button.ativo { background: var(--placa-3); color: var(--texto); }
.rt-aviso-fone { text-align: center; color: var(--ouro-claro); font-size: 13.5px; margin: -4px 0 10px; line-height: 1.4; }
#play.largo { margin: 4px 0 12px; }

.rt-painel { position: relative; display: grid; gap: 12px; background: #121211; border-radius: var(--r); padding: 16px 12px 12px; }
.rt-contagem { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13, 13, 12, .88); border-radius: var(--r); font-size: 96px; font-weight: 800; font-stretch: 78%; color: var(--ouro-claro); z-index: 2; }
.rt-tempo { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.rt-numero { display: grid; justify-items: center; line-height: 1; min-width: 92px; }
.rt-numero b { font-size: 56px; font-weight: 800; font-stretch: 78%; color: var(--ouro-claro); font-variant-numeric: tabular-nums; }
.rt-numero span { font-size: 12px; color: var(--apagado); font-weight: 600; margin-top: 4px; }
.rt-recado { font-size: 17px; line-height: 1.35; }
.rt-recado b { color: var(--vermelho); }
.rt-recado b.ok, .rt-veredito b.ok { color: #8fc46a; }

.rt-regua { position: relative; height: 46px; }
.rt-regua::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 10px; border-radius: 5px; background: var(--placa-3); }
.rt-faixa { position: absolute; top: 10px; height: 10px; background: #4f7a39; border-radius: 3px; }
.rt-regua::after { content: ''; position: absolute; left: 50%; top: 5px; width: 2px; height: 20px; margin-left: -1px; background: var(--texto); opacity: .6; }
.rt-ponteiro { position: absolute; top: 2px; width: 16px; height: 26px; margin-left: -8px; border-radius: 4px; transition: left .25s ease-out; }
.rt-ponteiro.certo { background: #8fc46a; }
.rt-ponteiro.fora { background: var(--vermelho); }
.rt-regua small { position: absolute; bottom: 0; font-size: 11.5px; color: var(--apagado); }
.rt-esq { left: 0; } .rt-dir { right: 0; }
.rt-meio { left: 50%; transform: translateX(-50%); color: var(--texto) !important; font-weight: 700; }

.rt-conferencia .passo { outline: 2px solid transparent; outline-offset: -2px; }
.rt-conferencia .passo.r-ok { background: #24361b; outline-color: #8fc46a; }
.rt-conferencia .passo.r-falta { outline-color: var(--vermelho); outline-style: dashed; }
.rt-conferencia .passo.r-sobra { background: #3a1d17; outline-color: var(--vermelho); }
.rt-conferencia .passo.r-trocado { background: #3a2c12; outline-color: var(--ouro); }
.rt-conferencia .passo.agora { background: var(--ouro); }
.rt-veredito { margin: 0; text-align: center; min-height: 1.4em; font-size: 15.5px; line-height: 1.4; }
.rt-veredito b { color: var(--ouro-claro); }
.rt-nivel { height: 4px; border-radius: 2px; background: var(--placa-2); overflow: hidden; }
.rt-nivel i { display: block; height: 100%; width: 0; background: var(--apagado); transition: width .08s linear; }

/* ---------- acordes: tela de entrada (Notas, Acordes, Campo harmônico) ---------- */
.ah-topo { position: relative; }
.ah-grade { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ah-grade .ah-cartao.ini-cartao { grid-column: auto; min-height: 190px; }
.ah-texto { display: block; width: 100%; padding: 0 14px 18px; }
.ah-cartao .ini-nome { padding: 0 0 6px; font-size: 32px; color: var(--ouro-claro); }
.ah-dica { display: block; font-size: 14.5px; line-height: 1.35; color: #d8d2c6; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
@media (min-width: 640px) {
  .ah-grade { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .ah-grade .ah-cartao.ini-cartao { min-height: 360px; }
}
@media (min-width: 1024px) {
  .ah-grade .ah-cartao.ini-cartao { min-height: 470px; }
  .ah-cartao .ini-nome { font-size: 40px; }
  .ah-texto { padding-bottom: 26px; }
}

/* ---------- notas do braço ---------- */
.nt-controles { display: grid; gap: 0 10px; max-width: 640px; margin: 0 auto; }
@media (min-width: 700px) { .nt-controles { grid-template-columns: 1fr 1fr; } }
.nt-escolha { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 2px 0 16px; }
.nt-chip {
  min-width: 46px; min-height: 40px; padding: 6px 10px; border: 0; border-radius: var(--r-p); cursor: pointer;
  background: var(--placa-2); color: var(--texto); font-weight: 700; font-size: 15px; transition: background .15s, color .15s;
}
.nt-chip.sust { background: var(--placa); color: var(--apagado); font-size: 14px; }
.nt-chip:hover { background: var(--placa-3); }
.nt-chip.ativo { background: var(--ouro); color: var(--tinta); }
.nt-braco { border-radius: var(--r); background: #100e0c; padding: 6px 4px; }
.nt-braco svg { display: block; width: 100%; height: auto; font-family: var(--fonte); user-select: none; }
.nt-braco.em-pe { max-width: 460px; margin: 0 auto; }
.nt-traste { stroke: #8e8981; stroke-width: 2.6; }
.nt-pestana { stroke: #e7dcc6; stroke-width: 9; stroke-linecap: round; }
.nt-corda { stroke: #d8d0c0; opacity: .85; }
.nt-corda.grossa { stroke: #c2a46e; }
.nt-bolinha { fill: #e2d8c4; opacity: .22; }
.nt-num { fill: var(--apagado); font-size: 13px; font-weight: 600; }
.nt-num.forte { fill: var(--texto); font-weight: 800; }
.nt-cnum { fill: var(--ouro); font-size: 13px; font-weight: 800; }
.nt-nota { cursor: pointer; outline: none; }
.nt-nota circle { fill: #15130f; stroke: rgba(227,173,69,.42); stroke-width: 1.5; transition: fill .15s, stroke .15s; }
.nt-nota text { fill: var(--texto); font-weight: 800; pointer-events: none; }
.nt-nota.sust circle { fill: #0e0d0b; stroke: rgba(241,237,228,.14); }
.nt-nota.sust text { fill: var(--apagado); font-weight: 700; }
.nt-nota.aberta circle { stroke: var(--ouro); stroke-width: 2; }
.nt-nota:hover circle, .nt-nota:focus-visible circle { stroke: var(--ouro-claro); stroke-width: 2.5; }
.nt-nota.marcada circle { fill: var(--ouro); stroke: var(--ouro); }
.nt-nota.marcada text { fill: var(--tinta); }
.nt-nota.mesma circle { fill: var(--ouro-claro); stroke: #fff; stroke-width: 3.5; }
.nt-nota.soando { animation: nt-pulsa .6s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes nt-pulsa { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
.nt-legenda { text-align: center; color: var(--apagado); font-size: 14.5px; margin: 12px auto 0; max-width: 560px; min-height: 2.9em; }
.nt-legenda strong { color: var(--ouro-claro); }
.nt-dicas { display: grid; gap: 8px; margin-top: 18px; }
@media (min-width: 700px) { .nt-dicas { grid-template-columns: repeat(3, 1fr); } }
.nt-dicas div { background: var(--placa); border-radius: var(--r); padding: 14px 16px; text-align: center; }
.nt-dicas strong { display: block; color: var(--ouro-claro); font-size: 16px; margin-bottom: 4px; }
.nt-dicas span { color: var(--apagado); font-size: 14px; line-height: 1.45; }

/* ---------- campo harmônico ---------- */
.ch-cabeca { text-align: center; margin: -4px 0 8px; }
.ch-cabeca h2 { margin: 0; font-size: 40px; line-height: 1; font-stretch: 78%; font-weight: 800; color: var(--ouro-claro); }
.ch-cabeca p { margin: 8px auto 0; max-width: 46ch; color: var(--apagado); font-size: 15px; }
.ch-bloco { margin-top: 34px; }
.ch-bloco h3 { margin: 0 0 8px; text-align: center; font-size: 23px; font-stretch: 78%; font-weight: 800; }
.ch-texto { text-align: center; color: var(--apagado); font-size: 14.5px; max-width: 56ch; margin: 0 auto 14px; }
.ch-texto strong { color: var(--texto); }
.ch-acoes { display: flex; justify-content: center; }
.ch-escala { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr) auto) minmax(0, 1fr); align-items: center; gap: 3px; margin: 6px 0 14px; }
.ch-nota {
  display: grid; justify-items: center; gap: 1px; padding: 10px 0 8px; border: 0; border-radius: var(--r-p);
  background: var(--placa-2); color: var(--texto); cursor: pointer; transition: background .15s;
}
.ch-nota b { font-size: 15px; line-height: 1.1; }
.ch-nota small { font-size: 11px; color: var(--apagado); }
.ch-nota:hover { background: var(--placa-3); }
.ch-nota.soando { background: var(--ouro); color: var(--tinta); }
.ch-nota.soando small { color: #4a3812; }
.ch-passo { font-size: 12px; font-weight: 700; color: var(--apagado); text-align: center; }
.ch-passo.meio { color: var(--ouro); font-weight: 800; }
@media (min-width: 640px) {
  .ch-escala { gap: 6px; }
  .ch-nota b { font-size: 19px; }
  .ch-nota { padding: 14px 0 10px; }
  .ch-passo { font-size: 14px; }
}
.ch-pulo { background: var(--placa); border-radius: var(--r); padding: 16px 10px 4px; }
.ch-pulo-linha { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.ch-pulo-nota { min-width: 40px; padding: 8px 6px; border-radius: var(--r-p); text-align: center; font-weight: 700; background: var(--placa-2); opacity: .25; }
.ch-pulo-nota.pega { opacity: 1; background: var(--ouro); color: var(--tinta); }
.ch-pulo-nota.pulada { opacity: .5; text-decoration: line-through; }
.ch-pulo-res { text-align: center; font-size: 18px; margin: 12px 0; }
.ch-pulo-res b { color: var(--ouro-claro); font-size: 24px; }
.ch-pulo-graus { margin-bottom: 10px; }
.ch-graus { display: flex; flex-wrap: wrap; justify-content: center; }
.ch-graus .mural-cartao { width: calc((100% - 10px) / 2); }
@media (min-width: 640px) { .ch-graus .mural-cartao { width: calc((100% - 30px) / 4); } }
.ch-tipo { font-size: 13px; color: var(--texto); font-weight: 600; }
.ch-notas { font-size: 12.5px; color: var(--apagado); }
.ch-grau.raro .mural-tocar { opacity: .72; }
.ch-raro { display: block; padding: 9px 6px; border-top: 1px solid var(--linha); text-align: center; color: var(--apagado); font-size: 12.5px; }
.ch-regra { text-align: center; margin: 18px auto 12px; font-size: 17px; font-weight: 800; color: var(--ouro-claro); }
.ch-regra small { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--apagado); }
.ch-seqs { display: grid; gap: 10px; }
@media (min-width: 640px) { .ch-seqs { grid-template-columns: 1fr 1fr; } }
.ch-seq {
  display: grid; gap: 12px; padding: 16px 14px 14px; border-radius: var(--r); background: var(--placa); text-align: center;
  outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .3s;
}
.ch-seq.tocando { outline-color: var(--ouro); }
.ch-seq-topo strong { display: block; font-size: 17px; }
.ch-seq-topo small { display: block; color: var(--apagado); font-size: 13.5px; margin-top: 6px; }
.ch-seq-acordes { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.ch-seq-acordes i {
  font-style: normal; font-weight: 800; font-size: 20px; min-width: 46px; padding: 4px 8px; border-radius: var(--r-p);
  background: var(--placa-2); color: var(--ouro-claro); transition: background .15s, color .15s;
}
.ch-seq-acordes i.agora { background: var(--ouro); color: var(--tinta); }
.ch-seq-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
