/* ===== buttons.css — Botoes =====
   Gerado por tools/split-css-modules.mjs (Fase B-CSS). Nao editar a divisao manualmente sem
   reconferir a cascata. Ver VaultBrain/Brain/Padroes/Padroes CSS.md ===== */
.btn-row {
  display: flex;
  gap: 6px;
  padding: 6px;
  flex-shrink: 0;
}
.btn {
  flex: 1;
  padding: clamp(6px, 2vw, 10px);
  border: none;
  border-radius: var(--radius-lg);
  font-family: 'Righteous', cursive;
  font-size: clamp(11px, 3.5vw, 15px);
  cursor: pointer;
  transition: all 0.15s;
}
.btn:active {
  transform: scale(0.97);
}
.btn-rand {
  background: var(--surface2);
  color: var(--text);
}
.btn-confirm {
  background: linear-gradient(135deg, var(--accent), #e8901a);
  color: #1a1000;
}
.btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}
#btn-confirm:disabled img {
  opacity: 0.65;
}
.btn {
  border-radius: var(--radius-xl);
  letter-spacing: 0.5px;
}
.btn-confirm {
  border: 1.5px solid rgba(var(--accent-rgb), 0.3);
  box-shadow:
    inset 0 1px 1px rgba(var(--white-rgb), 0.15),
    0 2px 6px rgba(var(--black-rgb), 0.3);
}
.btn-confirm:not(:disabled) {
  box-shadow:
    0 0 18px rgba(var(--accent-rgb), 0.35),
    inset 0 1px 1px rgba(var(--white-rgb), 0.2);
  animation: btn-glow 2.5s ease-in-out infinite;
}
.btn-rand {
  background: linear-gradient(135deg, #2a3f5e, #1e2f4a);
  border: 1.5px solid rgba(var(--white-rgb), 0.12);
  box-shadow:
    inset 0 1px 1px rgba(var(--white-rgb), 0.08),
    0 2px 6px rgba(var(--black-rgb), 0.3);
}
#tut-pause-btn-ok {
  display: block;
  width: 100%;
  padding: 9px 0;
  background: linear-gradient(180deg, #2d7a2d 0%, #1a4a1a 40%, #133613 100%);
  border: none;
  border-top: 2px solid rgba(120, 220, 120, 0.35);
  border-bottom: 3px solid rgba(var(--black-rgb), 0.5);
  border-radius: var(--radius-lg);
  color: #c8ffc8;
  font-family: 'Righteous', cursive;
  font-size: 13px;
  cursor: pointer;
}
#tut-btn-next {
  display: block;
  width: 100%;
  padding: 9px 0;
  background: linear-gradient(180deg, #2d7a2d 0%, #1a4a1a 40%, #133613 100%);
  border: none;
  border-top: 2px solid rgba(120, 220, 120, 0.35);
  border-bottom: 3px solid rgba(var(--black-rgb), 0.5);
  border-radius: var(--radius-lg);
  color: #c8ffc8;
  font-family: 'Righteous', cursive;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow:
    0 4px 10px rgba(var(--black-rgb), 0.4),
    inset 0 1px 0 rgba(var(--white-rgb), 0.12);
  transition: all 0.12s;
}
#tut-btn-next:active {
  transform: translateY(1px);
}
#tut-btn-skip {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: none;
  border: none;
  color: rgba(180, 180, 180, 0.55);
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  cursor: pointer;
  letter-spacing: 1px;
  padding: 2px 0;
}

/* ── Base de botao reutilizavel (nao aplicada a elementos existentes; disponivel para uso futuro) ── */
.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Righteous', cursive;
  font-size: clamp(11px, 3.5vw, 14px);
  padding: clamp(7px, 2vw, 10px) clamp(14px, 4vw, 20px);
  transition: transform 0.12s, opacity 0.12s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-base:active {
  transform: scale(0.95);
}

/* Modificadores de variante */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e8901a);
  color: #1a1000;
  border: 1.5px solid rgba(var(--accent-rgb), 0.3);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.3);
}
.btn-secondary {
  background: linear-gradient(135deg, #2a3f5e, #1e2f4a);
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.3);
}
.btn-danger {
  background: linear-gradient(135deg, rgba(255, 77, 106, 0.18), rgba(180, 30, 60, 0.14));
  color: var(--red);
  border: 1.5px solid rgba(var(--red-rgb), 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.3);
}
.btn-ghost {
  background: none;
  color: var(--text2);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

/* ===== RELEVO REUTILIZAVEL (padrao do "Confirmar" do buff) =====
   .btn-emb da o relevo (gradiente + bordas claras topo/esq, escuras dir/baixo + brilho interno +
   sombra). O TEMA (.is-*) so define o fundo e a cor do texto. Pressao no :active afunda o botao.
   Use junto com style inline so pra tamanho/largura quando precisar. */
.btn-emb {
  font-family: 'Righteous', cursive;
  border: none;
  border-top: 2px solid rgba(255, 255, 255, 0.24);
  border-left: 2px solid rgba(255, 255, 255, 0.13);
  border-right: 2px solid rgba(0, 0, 0, 0.42);
  border-bottom: 3px solid rgba(0, 0, 0, 0.52);
  border-radius: 11px;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  box-shadow:
    0 4px 9px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    filter 0.1s ease;
}
.btn-emb:hover {
  filter: brightness(1.07);
}
.btn-emb:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.4),
    inset 0 2px 5px rgba(0, 0, 0, 0.32);
  filter: brightness(0.96);
}
.btn-emb:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.btn-emb.is-green {
  background: linear-gradient(180deg, #2d6a2d 0%, #1a4a1a 40%, #133613 100%);
  color: #c8ffc8;
}
.btn-emb.is-gold {
  background: linear-gradient(180deg, #f5b942 0%, #d18a1a 45%, #9c5e0c 100%);
  color: #2a1700;
  text-shadow: 0 1px 2px rgba(255, 240, 200, 0.35);
}
.btn-emb.is-blue {
  background: linear-gradient(180deg, #4f7ad6 0%, #2f4f9e 45%, #1f3573 100%);
  color: #eaf2ff;
}
.btn-emb.is-red {
  background: linear-gradient(180deg, #e0556e 0%, #b32f47 45%, #82203a 100%);
  color: #ffe0e6;
}
.btn-emb.is-purple {
  background: linear-gradient(180deg, #9a63e8 0%, #6e3fb0 45%, #4a2878 100%);
  color: #f0e6ff;
}
.btn-emb.is-dark {
  background: linear-gradient(180deg, #2b3346 0%, #1b2233 45%, #121826 100%);
  color: #cdd8ec;
}

/* Botao de SOM como icone (badge circular som.webp). Estado mudo: dessatura/escurece e cruza com um
   risco vermelho. So UMA imagem (a de "ligado"); o "mudo" e puramente visual via .is-muted. */
.snd-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.snd-icon-btn img {
  display: block;
  transition: filter 0.12s ease, opacity 0.12s ease;
}
.snd-icon-btn.is-muted img {
  /* Som desligado: so APAGADO (dessaturado e escurecido), sem risco vermelho. */
  filter: grayscale(0.85) brightness(0.6);
  opacity: 0.45;
}

/* Painel premium: bordas com relevo + sombra profunda. Combina com .tex-sheen pra textura. */
.panel-emb {
  border-radius: 16px;
  border-top: 2px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  border-right: 1px solid rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Textura minimalista SEM imagem: brilho diagonal no canto + tramado finissimo. So decorativo
   (pointer-events:none) e bem fraco pra nao atrapalhar leitura. O container precisa de position
   relativa; o conteudo de texto deve ficar acima (use .tex-sheen > * com position/relative se
   necessario, mas com estas opacidades baixas nao costuma ser preciso). */
.tex-sheen {
  position: relative;
  isolation: isolate;
}
.tex-sheen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.016) 0 2px,
      rgba(0, 0, 0, 0) 2px 6px
    );
}

/* ===== Card "PORTAL" do Boss Rush — forma CRIATIVA (nao quadrada) =====
   Painel octogonal/angular (clip-path) com moldura de energia crimson, brilho que SEGUE a forma
   (filter:drop-shadow, pois box-shadow seria cortado pelo clip-path), nucleo radial atras do conteudo
   e tramado finissimo. Camadas: o proprio elemento = moldura (borda); ::before = preenchimento 2.5px
   menor (revela a moldura em TODAS as arestas, ate as diagonais); ::after = textura; conteudo no topo.
   `--brP` = chanfro dos cantos. */
.br-portal {
  --brP: 22px;
  position: relative;
  isolation: isolate;
  clip-path: polygon(
    var(--brP) 0,
    calc(100% - var(--brP)) 0,
    100% var(--brP),
    100% calc(100% - var(--brP)),
    calc(100% - var(--brP)) 100%,
    var(--brP) 100%,
    0 calc(100% - var(--brP)),
    0 var(--brP)
  );
  background: linear-gradient(150deg, #ff7a98 0%, #ff3d63 45%, #9c1130 100%);
  filter:
    drop-shadow(0 0 16px rgba(255, 70, 100, 0.6))
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.65));
}
.br-portal::before {
  content: '';
  position: absolute;
  inset: 2.5px;
  z-index: 0;
  clip-path: polygon(
    20px 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    20px 100%,
    0 calc(100% - 20px),
    0 20px
  );
  background:
    radial-gradient(120% 80% at 50% 6%, rgba(255, 95, 125, 0.3), rgba(255, 95, 125, 0) 55%),
    linear-gradient(160deg, rgba(62, 16, 52, 0.97), rgba(18, 7, 26, 0.98));
}
.br-portal::after {
  content: '';
  position: absolute;
  inset: 2.5px;
  z-index: 1;
  pointer-events: none;
  clip-path: polygon(
    20px 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    20px 100%,
    0 calc(100% - 20px),
    0 20px
  );
  background:
    radial-gradient(100% 55% at 14% 0%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.022) 0 2px, rgba(0, 0, 0, 0) 2px 6px);
}
.br-portal > * {
  position: relative;
  z-index: 2;
}
.br-portal.is-locked {
  background: linear-gradient(150deg, rgba(140, 140, 150, 0.55), rgba(70, 70, 80, 0.55));
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
  opacity: 0.92;
}
.br-portal.is-locked::before {
  background: linear-gradient(160deg, rgba(34, 18, 32, 0.95), rgba(14, 7, 16, 0.97));
}
/* Ao APERTAR o card da Fase 51 (desbloqueado): mesmo brilho VERDE do botao AUTO ligado
   (03b-batalha-setup, drop-shadows verdes #4cde8a). So enquanto pressiona. */
.br-portal:not(.is-locked):active {
  filter:
    drop-shadow(0 0 1px rgba(76, 222, 138, 1))
    drop-shadow(0 0 2px rgba(76, 222, 138, 1))
    drop-shadow(0 0 6px rgba(76, 222, 138, 0.7))
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.65))
    brightness(1.12);
}

/* ===== Robo do banner Boss Rush: anda de um lado pro outro EM CIMA da borda (fora do card) e joga
   bombas que caem na frente do card. Fica num wrapper junto do card (NAO dentro do .br-portal, que
   tem clip-path e cortaria ele). ===== */
.br-robot {
  --brW: 96px; /* robo ~2,5x do tamanho antigo (38px) */
  position: absolute;
  bottom: 100%;
  left: 0;
  width: var(--brW);
  height: var(--brW);
  margin-bottom: -8px; /* 10px pra cima e depois 4px pra baixo (-14 -> -4 -> -8) */
  z-index: 6;
  pointer-events: none;
  animation:
    brRobotWalk 5s ease-in-out infinite alternate,
    brRobotBob 0.5s ease-in-out infinite alternate;
}
/* Duas imagens empilhadas (a/b); a B pisca por cima pra ALTERNAR os frames como na batalha. */
.br-robot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55));
}
.br-robot-b {
  opacity: 0;
  animation: brRobotFrame 0.46s steps(1, end) infinite;
}
@keyframes brRobotFrame {
  0%,
  50% {
    opacity: 0;
  }
  50.01%,
  100% {
    opacity: 1;
  }
}
.br-bomb {
  position: absolute;
  /* sai da MAO do robo (~18px pra direita do centro), nao do meio */
  left: calc(52% + 18px);
  top: 56%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.br-bomb-1 {
  animation: brBombThrow 2.4s ease-in 0.5s infinite;
}
.br-bomb-2 {
  animation: brBombThrow 2.4s ease-in 1.7s infinite;
}
/* Explosao da bomba (estilo do jogo): clarao laranja/amarelo que cresce no ponto onde a bomba cai. */
.br-boom {
  position: absolute;
  /* mesma origem da bomba (mao) pra explodir onde ela cai */
  left: calc(52% + 18px);
  top: 56%;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle,
    #fff3a0 0%,
    #ffd24a 22%,
    #ff8c2a 45%,
    #ff4d1a 62%,
    rgba(255, 77, 26, 0) 74%
  );
  box-shadow: 0 0 18px rgba(255, 140, 40, 0.85);
}
.br-boom-1 {
  animation: brBoom 2.4s ease-out 0.5s infinite;
}
.br-boom-2 {
  animation: brBoom 2.4s ease-out 1.7s infinite;
}
@keyframes brRobotWalk {
  from {
    left: 0;
  }
  to {
    left: calc(100% - var(--brW));
  }
}
@keyframes brRobotBob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-4px);
  }
}
@keyframes brBombThrow {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5) rotate(0deg);
  }
  8% {
    opacity: 1;
    transform: translate(3px, 12px) scale(1) rotate(40deg);
  }
  60% {
    opacity: 1;
    transform: translate(12px, 74px) scale(1) rotate(220deg);
  }
  77% {
    opacity: 1;
    transform: translate(16px, 100px) scale(1) rotate(330deg);
  }
  80% {
    opacity: 0;
    transform: translate(16px, 102px) scale(0.9) rotate(335deg);
  }
  100% {
    opacity: 0;
    transform: translate(16px, 102px) scale(0.9);
  }
}
@keyframes brBoom {
  0%,
  75% {
    opacity: 0;
    transform: translate(16px, 102px) scale(0.2);
  }
  80% {
    opacity: 1;
    transform: translate(16px, 102px) scale(0.7);
  }
  88% {
    opacity: 0.95;
    transform: translate(16px, 102px) scale(1.35);
  }
  100% {
    opacity: 0;
    transform: translate(16px, 102px) scale(1.9);
  }
}

/* ===== Fundo de CEU COSMICO levemente em movimento (sem imagem) =====
   Camadas: gradiente de espaco profundo (no proprio elemento) + estrelas que derivam devagar
   (::before, tiles repetidos com translate) + nebulosa que respira (::after). Conteudo fica acima
   (z-index:1). Precisa de overflow:hidden no elemento pra recortar as camadas. */
.cosmic-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(96, 64, 168, 0.34), rgba(96, 64, 168, 0) 60%),
    radial-gradient(100% 70% at 82% 100%, rgba(44, 96, 168, 0.3), rgba(44, 96, 168, 0) 55%),
    linear-gradient(160deg, #0b1026 0%, #0a0a1e 55%, #07060f 100%);
}
.cosmic-bg::before {
  content: '';
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1.2px 1.2px at 60% 70%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1px 1px at 80% 20%, rgba(200, 220, 255, 0.85), rgba(200, 220, 255, 0) 60%),
    radial-gradient(1.6px 1.6px at 35% 82%, rgba(255, 240, 220, 0.85), rgba(255, 240, 220, 0) 60%),
    radial-gradient(1px 1px at 12% 60%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1.3px 1.3px at 90% 50%, rgba(220, 200, 255, 0.8), rgba(220, 200, 255, 0) 60%),
    radial-gradient(1px 1px at 50% 12%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1.1px 1.1px at 28% 50%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1px 1px at 70% 38%, rgba(220, 230, 255, 0.8), rgba(220, 230, 255, 0) 60%),
    radial-gradient(1.2px 1.2px at 45% 92%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1px 1px at 5% 38%, rgba(255, 248, 230, 0.75), rgba(255, 248, 230, 0) 60%);
  background-repeat: repeat;
  background-size: 200px 200px;
  animation:
    cosmicDrift 45s linear infinite,
    cosmicTwinkle 4.5s ease-in-out infinite alternate;
  opacity: 0.9;
}
.cosmic-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 25% 22%, rgba(150, 86, 224, 0.18), rgba(150, 86, 224, 0) 70%),
    radial-gradient(52% 36% at 78% 80%, rgba(62, 124, 224, 0.16), rgba(62, 124, 224, 0) 70%);
  animation: cosmicPulse 13s ease-in-out infinite alternate;
}
.cosmic-bg > * {
  position: relative;
  z-index: 1;
}
@keyframes cosmicDrift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-200px, -200px); /* tile inteiro nos 2 eixos = loop sem salto */
  }
}
@keyframes cosmicTwinkle {
  from {
    opacity: 0.62;
  }
  to {
    opacity: 0.96;
  }
}
@keyframes cosmicPulse {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}

/* Estrelas passando (com cauda) na tela de Ranking: cruzam o ceu cosmico de tempos em tempos.
   z-index:0 pra ficar atras do conteudo (que e .cosmic-bg > * = z-index:1). */
.shooting-star {
  position: absolute;
  z-index: 0;
  left: -12%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.85);
  opacity: 0;
  pointer-events: none;
}
.shooting-star::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1px;
  width: 64px;
  height: 1.5px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 2px;
}
.ss-1 {
  top: 14%;
  animation: shootStar 13s ease-in-out 1.5s infinite;
}
.ss-2 {
  top: 36%;
  animation: shootStar 16s ease-in-out 6.5s infinite;
}
.ss-3 {
  top: 62%;
  animation: shootStar 19s ease-in-out 11.5s infinite;
}
.ss-4 {
  top: 24%;
  animation: shootStar 17s ease-in-out 4s infinite;
}
.ss-5 {
  top: 78%;
  animation: shootStar 21s ease-in-out 9s infinite;
}
/* Estrela cadente LENTA e suave: cruza devagar (travel ~0-62% do ciclo) e some por um bom tempo. */
@keyframes shootStar {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  6% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  62% {
    opacity: 0;
    transform: translate(120vw, 34vh);
  }
  100% {
    opacity: 0;
    transform: translate(120vw, 34vh);
  }
}

/* Explosao da bomba/magia do ROBÔ na batalha (mesmo clarao do banner do Boss Rush). Usada por
   spawnBombImpact em TODOS os modos. O elemento ja vem com left/top/width/height inline. */
.vfx-bomb-boom {
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fff3a0 0%,
    #ffd24a 22%,
    #ff8c2a 45%,
    #ff4d1a 62%,
    rgba(255, 77, 26, 0) 74%
  );
  box-shadow: 0 0 24px rgba(255, 140, 40, 0.85);
  transform: translate(-50%, -50%) scale(0.2);
  animation: vfxBombBoom 0.5s ease-out forwards;
}
@keyframes vfxBombBoom {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.85);
  }
  60% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.45);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

/* Cards de estatistica da tela de Perfil. */
.profile-stat-card {
  padding: 10px 6px;
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(160deg, rgba(34, 40, 22, 0.92), rgba(16, 16, 10, 0.94));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid rgba(0, 0, 0, 0.45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.profile-stat-val {
  font-family: 'Righteous', cursive;
  font-size: 15px;
  color: #fff;
  margin-top: 3px;
}
.profile-stat-lbl {
  font-size: 9px;
  color: #8899bb;
  margin-top: 2px;
  line-height: 1.3;
}

/* Texto com gradiente CLARO que fica mudando de cor (usado no botao PERFIL). Mesma tecnica do titulo
   do Boss Rush (background-clip:text), mas com animacao de deslocamento do gradiente. */
.anim-gradient-text {
  background: linear-gradient(
    90deg,
    #f3e9ff,
    #ffeaf3,
    #e6f3ff,
    #ecfff2,
    #fff8db,
    #f3e9ff
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animGradientShift 5s linear infinite;
}
@keyframes animGradientShift {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: 300% 0;
  }
}

/* Variante VERDE/MARROM (terra) do ceu cosmico — usada na tela de Perfil. Sobrescreve o fundo azul e a
   cor da nebulosa; as estrelas (::before) seguem brancas. */
.cosmic-bg.earth {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(96, 156, 64, 0.3), rgba(96, 156, 64, 0) 60%),
    radial-gradient(100% 70% at 82% 100%, rgba(156, 112, 48, 0.3), rgba(156, 112, 48, 0) 55%),
    linear-gradient(160deg, #16240f 0%, #1b1810 55%, #0d0b06 100%);
}
.cosmic-bg.earth::after {
  background:
    radial-gradient(60% 40% at 25% 22%, rgba(96, 176, 72, 0.18), rgba(96, 176, 72, 0) 70%),
    radial-gradient(52% 36% at 78% 80%, rgba(176, 124, 52, 0.16), rgba(176, 124, 52, 0) 70%);
}

/* ===== Efeitos extras da tela de Perfil ===== */
/* Aurora sutil verde/dourada que varre o fundo lentamente. */
.prof-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.prof-aurora::before {
  content: '';
  position: absolute;
  inset: -45%;
  background:
    radial-gradient(40% 30% at 30% 22%, rgba(110, 205, 125, 0.2), rgba(110, 205, 125, 0) 70%),
    radial-gradient(38% 28% at 74% 62%, rgba(225, 175, 80, 0.17), rgba(225, 175, 80, 0) 70%),
    radial-gradient(32% 24% at 55% 90%, rgba(90, 180, 220, 0.12), rgba(90, 180, 220, 0) 70%);
  animation: profAurora 16s ease-in-out infinite alternate;
}
@keyframes profAurora {
  from {
    transform: translate(-6%, -4%) scale(1);
  }
  to {
    transform: translate(6%, 5%) scale(1.18);
  }
}
/* Anel girando em volta do avatar. */
.prof-avatar-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  z-index: -1;
  background: conic-gradient(from 0deg, #6ec87a, #e0c24a, #6ec87a, #e0c24a, #6ec87a);
  animation: profSpin 6s linear infinite;
  filter: blur(1.5px);
  opacity: 0.85;
}
@keyframes profSpin {
  to {
    transform: rotate(360deg);
  }
}
/* Cores de destaque dos cards de estatistica (borda no topo + leve glow). */
.profile-stat-card.ac-green {
  border-top: 2px solid rgba(110, 220, 130, 0.75);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 12px rgba(76, 222, 138, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.profile-stat-card.ac-gold {
  border-top: 2px solid rgba(245, 200, 90, 0.8);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 12px rgba(245, 190, 70, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.profile-stat-card.ac-blue {
  border-top: 2px solid rgba(110, 180, 255, 0.8);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 12px rgba(74, 168, 245, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.profile-stat-card.ac-red {
  border-top: 2px solid rgba(255, 120, 140, 0.8);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 12px rgba(255, 90, 120, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ===== PERFIL v2 — "dossie" refinado: paleta sobria (carvao/esmeralda + 1 acento dourado),
   textura ESCOVADA (hairlines), brilho HOLOGRAFICO que varre, e estatisticas GRAVADAS em lista.
   Efeitos novos (nao reaproveita cosmic-bg/aurora/tex-sheen). ===== */
.prof2-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(60, 120, 80, 0.22), rgba(60, 120, 80, 0) 55%),
    radial-gradient(100% 70% at 50% 112%, rgba(120, 92, 42, 0.18), rgba(120, 92, 42, 0) 55%),
    linear-gradient(160deg, #10160f 0%, #0c100c 55%, #080806 100%);
}
.prof2-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.06) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
}
.prof2-bg::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -60%;
  width: 45%;
  height: 160%;
  pointer-events: none;
  transform: skewX(-12deg);
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(180, 255, 200, 0.05) 45%,
    rgba(255, 240, 200, 0.1) 50%,
    rgba(180, 255, 200, 0.05) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: prof2Holo 8s ease-in-out infinite;
}
@keyframes prof2Holo {
  0% {
    left: -60%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  55% {
    opacity: 1;
  }
  100% {
    left: 165%;
    opacity: 0;
  }
}
.prof2-card {
  position: relative;
  background: linear-gradient(160deg, rgba(22, 30, 22, 0.82), rgba(12, 16, 12, 0.86));
  border: 1px solid rgba(180, 210, 170, 0.16);
  border-radius: 14px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.prof2-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.prof2-stat:last-child {
  border-bottom: none;
}
.prof2-stat .lbl {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #9fb39a;
  letter-spacing: 0.3px;
}
.prof2-stat .lbl span.ic {
  font-size: 15px;
  width: 20px;
  text-align: center;
}
.prof2-stat .val {
  font-family: 'Righteous', cursive;
  font-size: 14px;
  color: #eaf3e6;
  text-shadow: 0 1px 2px #000;
}
.prof2-gold {
  color: #e9c46a;
}
/* Emblema da medalha: anel dourado gravado com brilho suave (1 cor, sem arco-iris). */
.prof2-emblem {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(233, 196, 106, 0.65);
  background: radial-gradient(circle at 50% 35%, rgba(233, 196, 106, 0.16), rgba(20, 24, 18, 0.9) 70%);
  border: 2px solid rgba(233, 196, 106, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 14px rgba(233, 196, 106, 0.22);
}
.prof2-emblem::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(233, 196, 106, 0.22);
}
/* Avatar com anel fino dourado + leve respiro (sem conic arco-iris). */
.prof2-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: radial-gradient(circle, rgba(110, 200, 130, 0.18), rgba(16, 22, 16, 0.85) 72%);
  border: 2px solid rgba(150, 210, 160, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 14px rgba(110, 200, 130, 0.28);
  animation: prof2Breath 3.4s ease-in-out infinite alternate;
}
@keyframes prof2Breath {
  from {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 10px rgba(110, 200, 130, 0.2);
  }
  to {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 18px rgba(110, 200, 130, 0.42);
  }
}
.prof2-section {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7d9277;
  margin: 4px 2px 7px;
  text-transform: uppercase;
}
