/* kit 6.3.1: resposta visual de clique (clique.js). Reaproveitável: é só incluir este CSS e o clique.js.
   Apertou: o botão encolhe (0.96) e solta um brilho curto (120 a 200 ms). Ação do painel: "trabalhando", depois ✓ ou ✗.
   Só scale, box-shadow e opacity (nada de layout). prefers-reduced-motion: sem encolher, sem brilho, sem girar. */
.clique-alvo { transition: scale 120ms cubic-bezier(.2, 0, 0, 1); }
.clique-apertado { scale: .96; }   /* scale, não transform: não briga com o transform que o botão já tenha */
.clique-brilho { animation: clique-brilho 200ms cubic-bezier(.2, 0, 0, 1); }
@keyframes clique-brilho {
  from { box-shadow: 0 0 0 0 rgb(var(--turbo-acao-rgb, 27 84 255) / .45); }
  to   { box-shadow: 0 0 0 7px rgb(var(--turbo-acao-rgb, 27 84 255) / 0); }
}
.clique-trabalhando { cursor: progress !important; opacity: .85; }
.clique-trabalhando::after, .clique-ok::after, .clique-erro::after { display: inline-block; margin-left: 6px; line-height: 1; }
.clique-trabalhando::after { content: ""; width: .8em; height: .8em; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; vertical-align: -.1em; animation: clique-gira 600ms linear infinite; }
.clique-ok::after { content: "✓"; font-weight: 700; animation: clique-surge 160ms cubic-bezier(.2, 0, 0, 1); }
.clique-erro::after { content: "✗"; font-weight: 700; animation: clique-surge 160ms cubic-bezier(.2, 0, 0, 1); }
.clique-ok { box-shadow: 0 0 0 2px rgb(var(--turbo-ok-rgb, 18 122 74) / .55) !important; }
.clique-erro { box-shadow: 0 0 0 2px rgb(var(--turbo-urgente-rgb, 194 55 47) / .55) !important; }
@keyframes clique-gira { to { transform: rotate(360deg); } }
@keyframes clique-surge { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .clique-alvo { transition: none; }
  .clique-apertado { scale: none; }
  .clique-brilho, .clique-ok::after, .clique-erro::after { animation: none; }
  .clique-trabalhando::after { content: "…"; width: auto; height: auto; border: 0; animation: none; }
}
