/* Treino Rítmico: pauta de uma linha, luzes de batida e botão de bater. Reaproveita a lição e a trilha do Ler Notas. */
.pauta.pauta--ritmo { width: auto; max-width: 100%; }   /* largura natural: ritmo curto não vira gigante */
.ritmo__cabeca { fill: var(--cor, var(--tinta)); stroke: var(--cor, var(--tinta)); stroke-width: 1.6; }
.ritmo__cabeca--vazia { fill: #fff; stroke-width: 3; }
.ritmo__haste { stroke: var(--cor, var(--tinta)); stroke-width: 2.6; stroke-linecap: round; }
.ritmo__trave { fill: var(--tinta); }
.ritmo__pausa { fill: none; stroke: var(--tinta); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.ritmo__pausa--cheia { fill: var(--tinta); stroke: none; }
.ritmo__barra { stroke: var(--tinta-suave); stroke-width: 2; }
.ritmo__barra--grossa { stroke-width: 5; }
.ritmo__formula { font-family: var(--fonte); font-weight: 900; font-size: 30px; fill: var(--tinta); }
.ritmo__figura--certa { --cor: var(--principal); }
.ritmo__figura--errada { --cor: var(--destaque-degrau); }
.ritmo__figura--certa .ritmo__trave { fill: var(--principal); }

.pulsos { display: flex; justify-content: center; gap: 10px; min-height: 22px; margin: 6px 0 14px; flex-wrap: wrap; }
.pulso { width: 18px; height: 18px; border-radius: 50%; background: var(--linha); border: 2px solid #d1d5db; transition: transform .06s, background .06s; }
.pulso--acesa { background: var(--destaque); border-color: var(--destaque-degrau); transform: scale(1.3); }

.licao__acao { display: grid; justify-items: center; padding: 8px 20px 0; }
.licao__acao .botao { min-width: 220px; justify-self: center; justify-content: center; }
.bater { display: block; width: min(78vw, 300px); height: 140px; margin: 10px auto 0; border-radius: 28px; border: 3px solid var(--principal-degrau); border-bottom-width: 9px; background: var(--principal); color: #fff; font: 900 28px var(--fonte); touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: pointer; }
.bater:disabled { background: #d1d5db; border-color: #aab0ba; color: #fff; cursor: default; }
.bater--toque:not(:disabled) { border-bottom-width: 3px; transform: translateY(6px); }
@media (prefers-reduced-motion: reduce) { .pulso, .bater { transition: none; } }
.ritmo__toque { stroke: var(--destaque-degrau); stroke-width: 6; stroke-linecap: round; }   /* onde o aluno bateu */
