/* v59: visual "antigravity" (opção B): flutuação, brasas e movimentos suaves no site todo, sutil no quadro e no KS.
   Liga com a classe ag-b no <html> (o próprio site põe; cada um pode desligar no perfil).
   Tudo em transform/opacity (leve) e desligado para quem pede menos movimento no sistema. */

@keyframes ag-float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes ag-float-s { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
@keyframes ag-breathe { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.035) } }
@keyframes ag-glow { 0%, 100% { filter: drop-shadow(0 0 18px rgba(255,140,60,.25)) drop-shadow(0 0 26px rgba(79,211,236,.18)) } 50% { filter: drop-shadow(0 0 34px rgba(255,140,60,.45)) drop-shadow(0 0 44px rgba(79,211,236,.32)) } }
@keyframes ag-sheen { 0% { transform: translateX(-120%) skewX(-18deg) } 60%, 100% { transform: translateX(260%) skewX(-18deg) } }
@keyframes ag-rise { from { opacity: .35; transform: translateY(8px) } to { opacity: 1; transform: none } }
/* v60: brasão como balão: enche e esvazia devagar, subindo e descendo junto (curva senoidal, sem parada brusca) */
@keyframes ag-balao { 0%, 100% { transform: translateY(0) scale(1) } 50% { transform: translateY(-8px) scale(1.045) } }
@keyframes ag-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,80,80,.55) } 60% { box-shadow: 0 0 0 7px rgba(255,80,80,0) } }
@keyframes ag-ring { 0%, 100% { filter: drop-shadow(0 0 0 rgba(242,197,104,0)) } 50% { filter: drop-shadow(0 0 10px rgba(242,197,104,.55)) } }

#ag-embers { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1 }

/* ---------- A e B: página inicial e topo ---------- */
/* v61: só transform (a placa de vídeo faz sozinha); o brilho fica parado, sem recalcular sombra a cada quadro */
html.ag-a .lpg-emb, html.ag-b .lpg-emb { animation: ag-balao 8s cubic-bezier(.45,0,.55,1) infinite; transform-origin: 50% 60%; will-change: transform; filter: drop-shadow(0 0 22px rgba(255,140,60,.3)) drop-shadow(0 0 30px rgba(79,211,236,.2)) }
html.ag-a .lp-root .lpl-head, html.ag-b .lp-root .lpl-head { animation: ag-float 7s ease-in-out infinite }
html.ag-a .top .logo, html.ag-b .top .logo { animation: ag-breathe 5s ease-in-out infinite; transform-origin: 50% 50%; will-change: transform }
html.ag-a .lp-btn, html.ag-b .lp-btn,
html.ag-a .lpl-head .btn, html.ag-b .lpl-head .btn { position: relative; overflow: hidden }
html.ag-a .lpl-head .btn::after, html.ag-b .lpl-head .btn::after,
html.ag-a .lp-btn::after, html.ag-b .lp-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  animation: ag-sheen 4.5s ease-in-out infinite }
/* botões: sobem um pouco e brilham no mouse (sem mexer no fundo de cada botão) */
html.ag-b .btn { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease }
html.ag-b .btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.35), 0 0 16px rgba(242,197,104,.22); filter: brightness(1.06) }
html.ag-a .nav a.on, html.ag-b .nav a.on { box-shadow: 0 0 18px rgba(242,197,104,.35) }

/* ---------- só B: o resto do site, sutil ---------- */
html.ag-b .ag-in { animation: ag-rise .3s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 25ms) }
html.ag-b .row { transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease }
html.ag-b .row:hover, html.ag-b .row.ag-h { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.45), inset 0 0 0 1px rgba(242,197,104,.28); background-color: rgba(242,197,104,.04); position: relative; z-index: 2 }
html.ag-b .live-tick .dot, html.ag-b .kv-dot, html.ag-b .st-live i { animation: ag-pulse 1.8s ease-out infinite; border-radius: 50% }
html.ag-b .chip.on { box-shadow: 0 0 16px rgba(242,197,104,.35) }

@media (prefers-reduced-motion: reduce) {
  html.ag-a *, html.ag-b * { animation: none !important; transition: none !important }
  #ag-embers { display: none }
}

/* v59: chegou a sua vez (o claimed espera você confirmar): a linha e o card dão um brilho dourado */
@keyframes ag-vez { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,197,104,0), inset 0 0 0 1px rgba(242,197,104,.35) } 50% { box-shadow: 0 0 26px 2px rgba(242,197,104,.55), inset 0 0 0 2px rgba(242,197,104,.9) } }
html.ag-b .row.my-turn, html.ag-b .panel.ag-turn { animation: ag-vez 1.6s ease-in-out infinite; position: relative; z-index: 2 }

/* Obsidian: brasas na cor do site (roxo e azul) */
.th-obsidian { --ag-c1: 179,155,255; --ag-c2: 95,216,240 }

/* v61: modo leve (aparelho fraco ou celular): nada se mexe sozinho; continuam só as respostas ao toque/mouse */
html.ag-leve .lpg-emb, html.ag-leve .top .logo, html.ag-leve .lp-root .lpl-head,
html.ag-leve .lp-btn::after, html.ag-leve .lpl-head .btn::after { animation: none !important }
html.ag-leve #ag-embers { display: none }
html.ag-leve .ag-in { animation-duration: .18s }
html.ag-leve .hb-fx, html.ag-leve .hb-cw { animation: none !important }
html.ag-leve .hb-fx { mix-blend-mode: normal; opacity: .3 }
