/* Animações da página do Figma. Usa a propriedade `translate` (separada de `transform`) para não brigar
   com os efeitos de hover e com as posições do layout. Tudo some com "reduzir movimento" do sistema. */

/* ---------- entrada do topo ---------- */
@keyframes fa-cai { from { opacity: 0; translate: 0 -40px; scale: .85; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes fa-sobe { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes fa-direita { from { opacity: 0; translate: 80px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes fa-aparece { from { opacity: 0; } to { opacity: 1; } }
.anim .nav { animation: fa-aparece .8s ease both; }
.anim .hero .logo { animation: fa-cai .9s cubic-bezier(.2, .9, .3, 1.25) .15s both, fa-flutua 5s ease-in-out 1.2s infinite; }
.anim .hero .btn-jogar { animation: fa-sobe .7s cubic-bezier(.2, .8, .3, 1) .45s both; }
.anim .hero .online { animation: fa-aparece .8s ease .8s both; }
.anim .bg-rei { animation: fa-direita 1s cubic-bezier(.2, .8, .3, 1) .25s both, fa-flutua-rei 6s ease-in-out 1.4s infinite; }

/* ---------- movimento contínuo, bem leve ---------- */
@keyframes fa-flutua { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes fa-flutua-rei { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes fa-pulso { 0% { box-shadow: 0 0 0 0 rgba(250, 204, 24, .65); } 70% { box-shadow: 0 0 0 9px rgba(250, 204, 24, 0); } 100% { box-shadow: 0 0 0 0 rgba(250, 204, 24, 0); } }
.anim .online i { animation: fa-pulso 2s ease-out infinite; }
.anim .coroa { animation: fa-flutua 4.5s ease-in-out infinite; }
.anim .bau { animation: fa-flutua 5.5s ease-in-out .8s infinite; }

/* brilho que passa pelo botão dourado (recortado no formato do botão) */
@keyframes fa-brilho { 0% { background-position: 160% 0; } 55%, 100% { background-position: -60% 0; } }
.btn-jogar::after, .btn-coins::after, .v-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .6) 50%, transparent 62%) 160% 0 / 250% 100% no-repeat;
  -webkit-mask: url("/img/fg/botao-ouro.webp?v=2") center / 100% 100% no-repeat; mask: url("/img/fg/botao-ouro.webp?v=2") center / 100% 100% no-repeat; }
.btn-coins::after, .v-btn::after { -webkit-mask-image: url("/img/fg/botao-adquirir.webp?v=2"); mask-image: url("/img/fg/botao-adquirir.webp?v=2"); }
.anim .btn-jogar::after { animation: fa-brilho 3.6s ease-in-out 1.5s infinite; }
.anim .btn-coins::after { animation: fa-brilho 4.2s ease-in-out 2s infinite; }
.anim .vcard:hover .v-btn::after { animation: fa-brilho 1.4s ease-in-out infinite; }

/* ---------- aparecer ao rolar ---------- */
.anim .rev { opacity: 0; translate: 0 46px; transition: opacity .75s ease, translate .75s cubic-bezier(.2, .8, .3, 1); transition-delay: calc(var(--i, 0) * 110ms); }
.anim .rev.vis { opacity: 1; translate: 0 0; }
.anim .rev.de-lado { translate: -60px 0; } .anim .rev.de-lado-dir { translate: 60px 0; }
.anim .rev.vis.de-lado, .anim .rev.vis.de-lado-dir { translate: 0 0; }

/* ---------- hover ---------- */
button.jogo, .vcard, a.discord { transition: transform .25s cubic-bezier(.2, .8, .3, 1.3), filter .25s ease; }
button.jogo:hover { transform: translateY(-8px) rotate(-1deg); filter: drop-shadow(0 14px 18px rgba(0, 10, 40, .5)); }
button.jogo:nth-child(odd):hover { transform: translateY(-8px) rotate(1deg); }
.vcard:hover { transform: translateY(-8px); }
.vcard:hover .v-ic { animation: fa-pula .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fa-pula { 0% { translate: 0 0; } 40% { translate: 0 -12px; } 100% { translate: 0 0; } }
a.discord:hover { transform: scale(1.015); filter: brightness(1.06); }
.nav-item .nav-t { transition: filter .2s ease; }
.nav-item::after { content: ""; position: absolute; left: 38%; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease; color: #1ea6ff; }
.nav-item:hover::after { transform: scaleX(1); }

/* coins: a bolinha dá um pulinho quando muda de pacote */
@keyframes fa-bolinha { 0% { scale: 1; } 40% { scale: 1.18; } 100% { scale: 1; } }
.bolinha.pula { animation: fa-bolinha .35s ease; }

/* ---------- bolhas subindo no fundo do mar ---------- */
.bolhas { position: absolute; left: 0; right: 0; pointer-events: none; overflow: hidden; }
@media (min-width: 1200px) { .bolhas { left: -40%; right: -40%; top: calc(1000 * 100cqw / 2002); height: calc(3000 * 100cqw / 2002); } }
@media (max-width: 1199.98px) { .bolhas { top: 520px; bottom: 0; } }
.bolhas i { position: absolute; bottom: -40px; left: var(--x); width: var(--t); height: var(--t); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .9) 0 14%, rgba(150, 220, 255, .35) 15% 55%, rgba(120, 200, 255, .12) 56% 100%);
  border: 1px solid rgba(190, 235, 255, .55); animation: fa-bolha var(--d) linear var(--a) infinite; }
@keyframes fa-bolha { 0% { opacity: 0; translate: 0 0; } 10% { opacity: .85; } 50% { translate: 14px -45vh; } 90% { opacity: .7; } 100% { opacity: 0; translate: -10px -95vh; } }
