/* v0.56: logo KOC animado (templates/_logo_koc.html). Duas camadas: a espiral vermelha (aro) e o "KOC" dourado (ouro).
   A cada 7 s: a espiral dá um giro com um pequeno vai-e-volta e um brilho passa sobre o "KOC"; o resto do tempo, parado.
   Só transform/opacity (a placa de vídeo faz o trabalho: não pesa no celular). Centro da espiral: koc/centro.txt. */
.koc-logo { position: relative; display: inline-block; width: 160px; aspect-ratio: 720 / 545; line-height: 0; }
.koc-camada { position: absolute; inset: 0; width: 100%; height: 100%; }
.koc-aro { transform-origin: 49.5% 50%; animation: koc-giro 7s cubic-bezier(.45, .05, .25, 1) 1.2s infinite; will-change: transform; }
.koc-brilho { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: url("/static/koc/ouro.webp") center / 100% 100% no-repeat; mask: url("/static/koc/ouro.webp") center / 100% 100% no-repeat; }
.koc-brilho::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 45%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 238, 180, .25) 25%, #fff 50%, rgba(255, 238, 180, .25) 75%, transparent 100%);
  transform: translateX(-120%) skewX(-12deg); animation: koc-brilho 7s ease-in-out 1.2s infinite; will-change: transform; }
@keyframes koc-giro {
  0%, 70% { transform: rotate(0deg); }
  84% { transform: rotate(375deg); }
  91% { transform: rotate(352deg); }
  97%, 100% { transform: rotate(360deg); }
}
/* v0.57: reflexo também na hora, ao passar o mouse / tocar no logo da página pública (site.js põe "agora") */
.koc-logo.agora .koc-brilho::before { animation: koc-brilho-ja .85s ease-out 1; }
@keyframes koc-brilho-ja { from { transform: translateX(-120%) skewX(-12deg); } to { transform: translateX(260%) skewX(-12deg); } }
@keyframes koc-brilho {
  0%, 82% { transform: translateX(-120%) skewX(-12deg); }
  97%, 100% { transform: translateX(260%) skewX(-12deg); }
}
@media (prefers-reduced-motion: reduce) { .koc-aro, .koc-brilho::before { animation: none; } .koc-brilho { display: none; } }
