/* =========================================================
   Eclipse Cobblemon — estilos globais
   ---------------------------------------------------------
   TEMAS: escuro (padrão) e claro — [data-theme] no <html>.
   IMAGENS DE FUNDO: os fundos estão vazios de propósito.
   Coloque as imagens em assets/img/fundos/ e descomente as
   linhas do bloco "Fundos" logo abaixo dos temas.
   ========================================================= */

/* ---------- Tema escuro (padrão) ---------- */
:root {
  --bg: #0c0873;
  --footer-bg: #07044a;
  --panel: #46464c;
  --card: #3a3a40;
  --card-hover: #44444b;
  --card-border: #0d0d12;
  --text: #eae9f4;
  --muted: #bdbbd8;
  --heading: #ffffff;
  --line: rgba(234, 233, 244, 0.12);
  --line-strong: rgba(234, 233, 244, 0.6);
  --link: #f0bd68;
  --eyebrow: #f0bd68;
  --accent-soft: rgba(121, 85, 216, 0.4);
  --tag-bg: rgba(121, 85, 216, 0.35);
  --tag-text: #ffffff;
  --tag-gold-bg: rgba(240, 189, 104, 0.2);
  --tag-gold-text: #f0bd68;
  --tag-green-bg: rgba(61, 220, 132, 0.18);
  --tag-green-text: #6ff0a6;
  --tag-red-bg: rgba(239, 46, 63, 0.25);
  --tag-red-text: #ff8a95;
  --nav-bg: rgba(16, 18, 29, 0.72);
  --nav-bg-solid: rgba(10, 9, 40, 0.92);
  --nav-border: rgba(234, 233, 244, 0.6);
  --nav-link: rgba(234, 233, 244, 0.85);
  --nav-link-active: #ffffff;
  --menu-bg: rgba(10, 9, 40, 0.97);
  --bar-bg: linear-gradient(180deg, rgba(8, 7, 26, 0.88), rgba(8, 7, 26, 0.62));
  --bar-bg-solid: rgba(8, 7, 30, 0.95);
  --bar-border: rgba(234, 233, 244, 0.08);
  --icon-bg: rgba(234, 233, 244, 0.06);
  --icon-bg-hover: rgba(234, 233, 244, 0.16);
  --icon-border: rgba(234, 233, 244, 0.65);
  --icon-fg: #ffffff;
  --chip-bg: rgba(16, 18, 29, 0.45);
  --chip-border: rgba(234, 233, 244, 0.22);
  --table-head: rgba(0, 0, 0, 0.2);
  --skeleton: rgba(255, 255, 255, 0.08);
  --skeleton-hi: rgba(255, 255, 255, 0.18);
  --glare: rgba(255, 255, 255, 0.16);
  --shadow: 0 22px 50px rgba(3, 2, 30, 0.45);
  --card-shadow-hover: 0 18px 34px rgba(0, 0, 0, 0.45);
  --hero-sky:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(121, 85, 216, 0.35), transparent 70%),
    linear-gradient(180deg, #14123a 0%, #10121d 100%);
  --hero-shade: linear-gradient(180deg, rgba(16, 18, 29, 0.45) 0%, rgba(16, 18, 29, 0) 30%, rgba(16, 18, 29, 0.1) 65%, rgba(16, 18, 29, 0.45) 100%);
  --hero-halo: rgba(121, 85, 216, 0.55);
  --art-glow: radial-gradient(circle, rgba(240, 189, 104, 0.35), rgba(121, 85, 216, 0.15) 55%, transparent 70%);

  /* cores fixas da marca */
  --ink: #10121d;
  --purple: #7955d8;
  --purple-light: #8f72e3;
  --gold: #f0bd68;
  --red: #ef2e3f;
  --orange: #ff6a1a;
  --blue: #4fa3e3;
  --discord: #5865f2;

  --radius-lg: 26px;
  --radius: 14px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: "Nunito", system-ui, sans-serif;
  --font-ui: "Poppins", system-ui, sans-serif;

  --hero-image: none;
  --page-image: none;

  color-scheme: dark;
}

/* ---------- Tema claro ---------- */
:root[data-theme="light"] {
  --bg: #f3f0ff;
  --panel: #ffffff;
  --card: #f8f6ff;
  --card-hover: #f0ecff;
  --card-border: #e0d9f7;
  --text: #1d1a3f;
  --muted: #5f5b84;
  --heading: #1d1a3f;
  --line: rgba(29, 26, 63, 0.1);
  --line-strong: rgba(29, 26, 63, 0.3);
  --link: #6a46d6;
  --eyebrow: #a35f0a;
  --accent-soft: rgba(121, 85, 216, 0.16);
  --tag-bg: rgba(121, 85, 216, 0.14);
  --tag-text: #5a3fc0;
  --tag-gold-bg: rgba(240, 189, 104, 0.28);
  --tag-gold-text: #8a4f05;
  --tag-green-bg: rgba(46, 170, 100, 0.15);
  --tag-green-text: #1b7a45;
  --tag-red-bg: rgba(239, 46, 63, 0.12);
  --tag-red-text: #b3202e;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-bg-solid: rgba(255, 255, 255, 0.94);
  --nav-border: rgba(29, 26, 63, 0.14);
  --nav-link: #3d3966;
  --nav-link-active: #1d1a3f;
  --menu-bg: rgba(255, 255, 255, 0.98);
  --bar-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  --bar-bg-solid: rgba(255, 255, 255, 0.96);
  --bar-border: rgba(29, 26, 63, 0.1);
  --icon-bg: rgba(121, 85, 216, 0.06);
  --icon-bg-hover: rgba(121, 85, 216, 0.14);
  --icon-border: rgba(29, 26, 63, 0.22);
  --icon-fg: #1d1a3f;
  --chip-bg: #ffffff;
  --chip-border: rgba(29, 26, 63, 0.15);
  --table-head: rgba(121, 85, 216, 0.08);
  --skeleton: rgba(29, 26, 63, 0.07);
  --skeleton-hi: rgba(29, 26, 63, 0.14);
  --glare: rgba(121, 85, 216, 0.1);
  --shadow: 0 18px 44px rgba(60, 40, 140, 0.14);
  --card-shadow-hover: 0 18px 34px rgba(60, 40, 140, 0.18);
  --hero-sky:
    radial-gradient(ellipse 60% 50% at 50% 38%, rgba(255, 230, 175, 0.75), transparent 70%),
    linear-gradient(180deg, #5b47c4 0%, #9a7ee6 48%, #f4c98e 100%);
  --hero-shade: linear-gradient(180deg, rgba(40, 20, 90, 0.25) 0%, transparent 30%, transparent 70%, rgba(40, 20, 90, 0.1) 100%);
  --hero-halo: rgba(255, 220, 150, 0.8);
  --art-glow: radial-gradient(circle, rgba(240, 189, 104, 0.5), rgba(121, 85, 216, 0.12) 55%, transparent 70%);
  color-scheme: light;
}

/* ---------- Fundos (descomente quando tiver as imagens) ---------- */
/* body[data-page="inicio"]      { --hero-image: url("../img/fundos/inicio.jpg"); } */
/* body[data-page="colecoes"]    { --page-image: url("../img/fundos/colecoes.jpg"); } */
/* body[data-page="competitivo"] { --page-image: url("../img/fundos/competitivo.jpg"); } */
/* body[data-page="pokedex"]     { --page-image: url("../img/fundos/pokedex.jpg"); } */
/* body[data-page="noticias"]    { --page-image: url("../img/fundos/noticias.jpg"); } */
/* body[data-page="baixar"]      { --page-image: url("../img/fundos/baixar.jpg"); } */
/* body[data-page="guia"]        { --page-image: url("../img/fundos/guia.jpg"); } */
/* Um fundo diferente só para o tema claro:
   [data-theme="light"] body[data-page="inicio"] { --hero-image: url("../img/fundos/inicio-dia.jpg"); } */

/* =========================================================
   Base
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-color: var(--purple) var(--bg); }

@view-transition { navigation: auto; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.65 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { flex: 1; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
::selection { background: var(--purple); color: #fff; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* ---------- Texto com contorno (mesmo estilo da logo) ---------- */
.outlined {
  font-family: var(--font-display);
  font-weight: 900;
  color: #fff;
  text-shadow:
    -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink),
    0 -2px 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink), 2px 0 0 var(--ink),
    0 5px 14px rgba(0, 0, 0, 0.55);
}
/* no tema claro, os títulos dentro do conteúdo ficam sólidos */
[data-theme="light"] main .section .outlined,
[data-theme="light"] .modal .outlined { color: var(--heading); text-shadow: none; }

.eyebrow {
  display: inline-block;
  font: 700 12px/1 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.accent { color: var(--blue); }

/* =========================================================
   Botões
   ========================================================= */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 700 13px/1 var(--font-ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: translate 0.25s var(--ease), scale 0.15s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
/* brilho que atravessa o botão */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%);
  translate: -110% 0;
  transition: translate 0.75s var(--ease);
}
.btn:hover::before { translate: 110% 0; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { translate: 0 -2px; filter: brightness(1.06); }
.btn:active { scale: 0.97; }

.btn--download {
  background: linear-gradient(90deg, var(--purple-light), var(--gold));
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(121, 85, 216, 0.45);
}
.btn--download:hover { box-shadow: 0 12px 30px rgba(121, 85, 216, 0.6); }
.btn--shop {
  background: linear-gradient(90deg, var(--red), var(--orange));
  color: #fff;
  box-shadow: 0 8px 22px rgba(239, 46, 63, 0.4);
}
.btn--shop:hover { box-shadow: 0 12px 30px rgba(239, 46, 63, 0.55); }
.btn--discord { background: var(--discord); color: #fff; box-shadow: 0 8px 22px rgba(88, 101, 242, 0.45); }
.btn--ghost { background: rgba(16, 18, 29, 0.35); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(234, 233, 244, 0.65); }
.btn--ghost:hover { background: rgba(16, 18, 29, 0.6); }
[data-theme="light"] .btn--ghost { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85); }
[data-theme="light"] .btn--ghost:hover { background: rgba(255, 255, 255, 0.3); }
[data-theme="light"] main .section .btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
[data-theme="light"] main .section .btn--ghost:hover { background: var(--accent-soft); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 11.5px; }

/* Link ainda não configurado em config.js */
.is-soon { opacity: 0.55; cursor: not-allowed; }
.is-soon:hover { translate: none; filter: none; }

/* Onda de clique */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   Cabeçalho: barra fixa de largura total
   logo à esquerda, links no meio, jogadores online e botões à direita
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--purple-light), var(--gold));
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bar-bg);
  border-bottom: 1px solid var(--bar-border);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  animation: nav-in 0.8s var(--ease) 0.05s both;
}
.site-header.is-scrolled { background: var(--bar-bg-solid); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); }
@keyframes nav-in {
  from { opacity: 0; translate: 0 -100%; }
}

.nav {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  height: 68px;
  padding: 0 clamp(16px, 2.6vw, 40px);
}

.nav__logo { justify-self: start; display: block; transition: scale 0.35s var(--ease-spring), filter 0.35s ease; }
.nav__logo:hover { scale: 1.06; filter: drop-shadow(0 0 12px rgba(143, 114, 227, 0.6)); }
.nav__logo img { width: auto; height: 42px; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35)); }

.nav__links {
  position: relative;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__links a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font: 700 13px/1 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nav-link);
  transition: color 0.2s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--nav-link-active); }
.nav__links:not(.has-indicator) a[aria-current="page"] { background: var(--accent-soft); }
.nav__indicator {
  position: absolute;
  left: 0;
  top: 50%;
  height: 34px;
  width: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(143, 114, 227, 0.35);
  translate: 0 -50%;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease-spring), width 0.5s var(--ease-spring), opacity 0.3s ease;
}

.nav__actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav__actions .btn { min-height: 40px; font-size: 12px; }
.nav__actions .btn--download { padding: 0 26px; }
.nav__icones { display: flex; gap: 8px; }

/* Selo de jogadores online (clique copia o IP) */
.nav-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--icon-bg);
  box-shadow: inset 0 0 0 1.5px var(--icon-border);
  color: var(--icon-fg);
  font: 600 12.5px/1 var(--font-ui);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, translate 0.25s var(--ease);
}
.nav-online:hover { background: var(--icon-bg-hover); translate: 0 -2px; }
.nav-online strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.nav-online[data-state="online"] .server-status__dot { background: #3ddc84; animation: pulse-dot 2s ease-out infinite; }
.nav-online[data-state="offline"] .server-status__dot { background: var(--red); }

.icon-btn {
  position: relative;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--icon-bg);
  box-shadow: inset 0 0 0 1.5px var(--icon-border);
  color: var(--icon-fg);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, translate 0.25s var(--ease), scale 0.15s ease;
}
.icon-btn:hover { background: var(--icon-bg-hover); translate: 0 -2px; }
.icon-btn:active { scale: 0.92; }
.icon-btn svg { width: 19px; height: 19px; }

/* Botões de tema e de som: dois ícones sobrepostos que giram na troca */
.theme-toggle svg,
.sound-toggle svg {
  grid-area: 1 / 1;
  transition: opacity 0.35s ease, rotate 0.5s var(--ease-spring), scale 0.5s var(--ease-spring);
}
.theme-toggle .icon-moon { opacity: 0; rotate: 90deg; scale: 0.4; }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; rotate: -90deg; scale: 0.4; }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; rotate: 0deg; scale: 1; }
.sound-toggle .icon-sound-off { opacity: 0; scale: 0.4; }
.sound-toggle[aria-pressed="false"] .icon-sound-on { opacity: 0; scale: 0.4; }
.sound-toggle[aria-pressed="false"] .icon-sound-off { opacity: 1; scale: 1; }

.nav__toggle { display: none; }

.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: clamp(12px, 2.6vw, 40px);
  width: min(360px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 22px;
  background: var(--menu-bg);
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow);
  opacity: 0;
  visibility: hidden;
  translate: 0 -10px;
  scale: 0.98;
  transform-origin: top right;
  transition: opacity 0.25s ease, translate 0.35s var(--ease), scale 0.35s var(--ease), visibility 0s linear 0.35s;
}
.nav__menu-icones { display: flex; justify-content: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.nav__menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav__menu a:not(.btn) {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font: 600 14px/1 var(--font-ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nav-link);
}
.nav__menu a:not(.btn):hover,
.nav__menu a[aria-current="page"] { background: var(--accent-soft); color: var(--nav-link-active); }
.nav__menu .btn { width: 100%; margin-top: 10px; }

/* telas grandes: links exatamente no centro da página */
@media (min-width: 1600px) {
  .nav__links { position: absolute; left: 50%; translate: -50% 0; }
}
/* telas médias: os links vão para o menu */
@media (min-width: 1181px) { .nav__menu { display: none; } }
@media (max-width: 1180px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav__links { display: none; }
  .nav__actions { grid-column: 2; }
  .nav__toggle { display: inline-grid; }
  .site-header.is-open .nav__menu { opacity: 1; visibility: visible; translate: 0 0; scale: 1; transition-delay: 0s; }
}
@media (min-width: 761px) { .nav__menu-icones { display: none; } }
/* celular: tema, som e Discord também vão para o menu */
@media (max-width: 760px) {
  .nav { height: 60px; gap: 10px; }
  .nav__logo img { height: 34px; }
  .nav__actions .btn--download,
  .nav__icones { display: none; }
}
@media (max-width: 420px) {
  .nav-online { padding: 0 12px; }
  .nav-online__rotulo { display: none; }
  .nav__actions { gap: 6px; }
  .nav__actions .btn--shop { padding: 0 14px; }
  .icon-btn { width: 36px; height: 36px; }
}

/* =========================================================
   Hero (página inicial)
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 880px);
  display: grid;
  place-items: center;
  padding: 120px 16px 150px;
  isolation: isolate;
  overflow: hidden;
}

.hero__bg,
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  transition: opacity 0.4s ease;
}
.hero__bg { background-image: var(--hero-image), var(--hero-sky); }
.page-hero__bg { background-image: var(--page-image), var(--hero-sky); }

/* escurece a base da imagem para a onda e o texto */
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-shade);
  pointer-events: none;
}

/* céu animado (estrelas no escuro, partículas de sol no claro) */
.sky { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

.hero__content,
.page-hero__content { position: relative; z-index: 1; }

.hero__content { display: grid; justify-items: center; text-align: center; gap: 18px; will-change: translate, opacity; }

/* halo pulsante atrás da logo */
.hero__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 34%;
  width: min(620px, 110vw);
  aspect-ratio: 1.6;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--hero-halo), transparent);
  filter: blur(20px);
  opacity: 0.55;
  animation: halo 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes halo {
  0%, 100% { opacity: 0.45; scale: 0.95; }
  50% { opacity: 0.75; scale: 1.06; }
}

.hero h1 { filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45)); }
.hero__logo {
  width: min(520px, 86vw);
  height: auto;
  animation: logo-in 1.2s var(--ease) 0.15s both, float 6s ease-in-out 1.35s infinite;
}
@keyframes logo-in {
  from { opacity: 0; transform: scale(0.8) translateY(24px); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__tagline { font-size: clamp(22px, 3.4vw, 36px); line-height: 1.2; animation: rise 0.9s var(--ease) 0.5s both; }
.hero__tagline .accent { display: inline-block; animation: accent-pop 0.8s var(--ease-spring) 1.1s both; }
@keyframes accent-pop {
  from { scale: 0.6; opacity: 0; }
}

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; animation: rise 0.9s var(--ease) 0.7s both; }

@keyframes rise {
  from { opacity: 0; translate: 0 26px; filter: blur(6px); }
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}

.server-status__dot { width: 9px; height: 9px; border-radius: 50%; background: #8a8aa0; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); }
}


/* Onda que separa o topo do conteúdo */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  height: clamp(60px, 9vw, 130px);
  color: var(--bg);
  pointer-events: none;
}
.wave__back { animation: wave-drift 22s linear infinite; }
@keyframes wave-drift {
  to { transform: translateX(-1440px); }
}

/* =========================================================
   Hero das páginas internas
   ========================================================= */
.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(340px, 48vh, 460px);
  padding: 120px 16px 110px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.page-hero__content { display: grid; gap: 12px; justify-items: center; max-width: 720px; }
.page-hero__content > * { animation: rise 0.9s var(--ease) both; }
.page-hero__content > :nth-child(1) { animation-delay: 0.15s; }
.page-hero__content > :nth-child(2) { animation-delay: 0.28s; }
.page-hero__content > :nth-child(3) { animation-delay: 0.41s; }
.page-hero h1 { font-size: clamp(34px, 6vw, 60px); }
.page-hero p { color: #fff; font-size: clamp(15px, 1.8vw, 17px); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .link-arrow { color: var(--gold); }
[data-theme="light"] .page-hero .eyebrow,
[data-theme="light"] .page-hero .link-arrow { color: #fff; text-shadow: 0 1px 10px rgba(50, 25, 120, 0.7); }

/* =========================================================
   Seções / painéis
   ========================================================= */
.section { position: relative; padding: clamp(36px, 6vw, 64px) 0; }
.section--tight { padding-top: 0; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin-top: 6px; }
.section-head p { color: var(--muted); max-width: 560px; margin-top: 6px; }

/* traço que se desenha embaixo dos títulos */
.section-head h2::after,
.feature__text h2::after {
  content: "";
  display: block;
  width: 0;
  height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--purple-light), var(--gold));
  transition: width 0.9s var(--ease) 0.35s;
}
.is-in .section-head h2::after,
.section-head.is-in h2::after,
.is-in .feature__text h2::after,
html:not(.js) .section-head h2::after,
html:not(.js) .feature__text h2::after { width: 56px; }

.panel {
  position: relative;
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3.2vw, 34px);
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 12.5px/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--link);
}
.link-arrow svg { transition: translate 0.3s var(--ease); }
.link-arrow:hover svg,
a.card:hover .link-arrow svg { translate: 4px 0; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* ---------- Inclinação 3D com reflexo (cartões) ---------- */
.tilt {
  position: relative;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background-color 0.3s ease;
}
.tilt:hover { --lift: -5px; box-shadow: var(--card-shadow-hover); }
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--glare), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.tilt:hover::after { opacity: 1; }

/* ---------- Cartões (notícias) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 22px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
}
.card__media { aspect-ratio: 16 / 7; background: var(--card-hover); border-bottom: 2px solid var(--card-border); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
a.card:hover .card__media img { transform: scale(1.07); }
.card__media--art {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 18px;
  background: radial-gradient(circle at 50% 55%, rgba(240, 189, 104, 0.3), rgba(121, 85, 216, 0.25) 45%, var(--card-hover) 75%);
}
.card__media--art img { width: auto; height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4)); border-radius: 18px; }
.card:hover .card__media--art img { transform: scale(1.08) translateY(-4px); }
.card__body { display: grid; gap: 8px; padding: 16px 18px 20px; flex: 1; align-content: start; }
.card__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.card__title { font: 800 19px/1.25 var(--font-display); color: var(--heading); }
.card__text { color: var(--muted); font-size: 14px; }
.card__more { margin-top: auto; padding-top: 6px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 10.5px/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--tag-bg);
  color: var(--tag-text);
}
.tag--gold { background: var(--tag-gold-bg); color: var(--tag-gold-text); }
.tag--red { background: var(--tag-red-bg); color: var(--tag-red-text); }
.tag--green { background: var(--tag-green-bg); color: var(--tag-green-text); }

/* ---------- Bloco de destaque (texto + arte) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  min-height: 300px;
}
.feature--reverse { grid-template-columns: 0.85fr 1.15fr; }
.feature--reverse .feature__art { order: -1; }
.feature__text { display: grid; gap: 14px; justify-items: start; }
.feature__text h2 { font-size: clamp(26px, 3.4vw, 38px); }
.feature__text p { color: var(--text); opacity: 0.9; max-width: 560px; }
.feature__art { position: relative; display: grid; place-items: center; will-change: translate; }
.feature__art::before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--art-glow);
  animation: halo 6s ease-in-out infinite;
}
.feature__art img {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  margin-block: -70px -20px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
  animation: float 7s ease-in-out infinite;
}
.feature--reverse .feature__art img { animation-delay: -3s; }
.feature__art--round img { border-radius: 28px; margin: 0; width: min(100%, 300px); }

/* arte que muda com o tema (Solgaleo no claro, Marshadow no escuro) */
:root:not([data-theme="light"]) .theme-art--light,
[data-theme="light"] .theme-art--dark { display: none; }

@media (max-width: 760px) {
  .feature, .feature--reverse { grid-template-columns: 1fr; }
  .feature--reverse .feature__art { order: 0; }
  .feature__art img { width: min(70%, 300px); margin: 10px 0 -10px; }
}

/* ---------- Passos ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 18px; counter-reset: step; }
.step {
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 2px solid var(--card-border);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  color: var(--ink);
  font: 900 18px/1 var(--font-display);
  transition: rotate 0.5s var(--ease-spring), scale 0.5s var(--ease-spring);
}
.step:hover::before { rotate: -8deg; scale: 1.12; }
.step h3 { font: 800 18px/1.25 var(--font-display); margin-bottom: 6px; color: var(--heading); }
.step p { color: var(--muted); font-size: 14px; }

/* =========================================================
   Download
   ========================================================= */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 22px; }
.download-card { display: grid; gap: 14px; align-content: start; }
.download-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple), #4b2fa8);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25), 0 10px 24px rgba(121, 85, 216, 0.35);
  transition: rotate 0.5s var(--ease-spring), scale 0.5s var(--ease-spring);
}
.download-card:hover .download-card__icon { rotate: -6deg; scale: 1.08; }
.download-card__icon svg { width: 30px; height: 30px; }
.download-card h2 { font: 900 26px/1.15 var(--font-display); color: var(--heading); }
.download-card ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.download-card .btn { justify-self: start; margin-top: 6px; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 2px solid var(--card-border);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================
   Abas (Competitivo)
   ========================================================= */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab {
  position: relative;
  overflow: hidden;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--chip-bg);
  box-shadow: inset 0 0 0 1.5px var(--chip-border);
  font: 700 12.5px/1 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, scale 0.15s ease;
}
.tab:hover { background: var(--accent-soft); }
.tab:active { scale: 0.96; }
.tab[aria-selected="true"] { background: linear-gradient(90deg, var(--purple-light), var(--gold)); color: var(--ink); box-shadow: none; }
.tab-panel[hidden] { display: none; }
.tab-panel:not([hidden]) { animation: rise 0.55s var(--ease) both; }

.gym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.gym {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 2px solid var(--card-border);
  border-top: 5px solid var(--type-color, var(--purple));
}
.gym__num { font: 700 11px/1 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.gym h3 { font: 900 20px/1.2 var(--font-display); color: var(--heading); }
.gym p { color: var(--muted); font-size: 14px; }
.gym p strong { color: var(--text); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 2px solid var(--card-border); }
.table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 14px; }
.table th, .table td { padding: 12px 16px; text-align: left; white-space: nowrap; }
.table th { font: 700 11.5px/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--table-head); }
.table tbody tr + tr td { border-top: 1px solid var(--line); }
.table tbody tr { transition: background 0.2s ease; }
.table tbody tr:hover { background: var(--card-hover); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-pos { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--line); font-weight: 700; }
tr:nth-child(1) .rank-pos { background: var(--gold); color: var(--ink); }
tr:nth-child(2) .rank-pos { background: #cfd3e6; color: var(--ink); }
tr:nth-child(3) .rank-pos { background: #d08a52; color: var(--ink); }

.list { display: grid; gap: 14px; }
.list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 2px solid var(--card-border);
}
.list-item__date {
  display: grid;
  place-items: center;
  min-width: 62px;
  padding: 8px;
  border-radius: 12px;
  background: var(--accent-soft);
  text-align: center;
  font: 900 22px/1 var(--font-display);
}
.list-item__date small { display: block; font: 600 11px/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.list-item h3 { font: 800 18px/1.25 var(--font-display); color: var(--heading); }
.list-item p { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) {
  .list-item { grid-template-columns: auto 1fr; }
  .list-item > :last-child { grid-column: 1 / -1; justify-self: start; }
}

.empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 20px;
  border-radius: var(--radius);
  border: 2px dashed var(--line-strong);
  text-align: center;
  color: var(--muted);
}
.empty strong { color: var(--heading); font: 800 18px/1.3 var(--font-display); }

/* ---------- Filtros / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  overflow: hidden;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--chip-bg);
  box-shadow: inset 0 0 0 1.5px var(--chip-border);
  font: 600 12.5px/1 var(--font-ui);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, scale 0.15s ease;
}
.chip:hover { background: var(--accent-soft); }
.chip:active { scale: 0.95; }
.chip[aria-pressed="true"] { background: var(--purple); color: #fff; box-shadow: none; }

/* =========================================================
   Notícia (artigo)
   ========================================================= */
.article { max-width: 820px; margin-inline: auto; animation: rise 0.8s var(--ease) 0.2s both; }
.article__cover { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--card-border); margin-bottom: 22px; aspect-ratio: 16 / 7; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.article__body { display: grid; gap: 16px; font-size: 16px; line-height: 1.75; }
.article__body h2 { font: 900 24px/1.25 var(--font-display); margin-top: 10px; color: var(--heading); }
.article__body ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.article__body a { color: var(--link); }

/* =========================================================
   Guia (acordeão)
   ========================================================= */
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius);
  background: var(--card);
  border: 2px solid var(--card-border);
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.faq details[open] { border-color: rgba(143, 114, 227, 0.55); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font: 800 17px/1.3 var(--font-display);
  color: var(--heading);
}
.faq summary:hover { background: var(--card-hover); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  font: 700 18px/1 var(--font-ui);
  transition: rotate 0.4s var(--ease-spring), background 0.25s ease;
}
.faq details[open] summary::after { rotate: 135deg; background: var(--purple); color: #fff; }
.faq .faq__answer { padding: 0 20px 20px; color: var(--muted); display: grid; gap: 10px; }
.faq details[open] .faq__answer { animation: rise 0.45s var(--ease) both; }
.faq .faq__answer a { color: var(--link); }

/* =========================================================
   Pokédex
   ========================================================= */
.dex-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 700px) { .dex-toolbar { grid-template-columns: 1fr 1fr; } .dex-toolbar .field--search { grid-column: 1 / -1; } }
@media (max-width: 480px) { .dex-toolbar { grid-template-columns: 1fr; } }

.field { position: relative; display: grid; }
.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  box-shadow: inset 0 0 0 2px var(--card-border);
  color: var(--text);
  font: 500 14px/1 var(--font-ui);
  transition: box-shadow 0.25s ease;
}
.field input:hover,
.field select:hover { box-shadow: inset 0 0 0 2px rgba(143, 114, 227, 0.5); }
.field--search input { padding-left: 44px; }
.field--search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field input:focus-visible,
.field select:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.field select { padding-right: 36px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

.dex-count { color: var(--muted); font-size: 13px; margin-bottom: 14px; }

.dex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.dex-card {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px 10px 14px;
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  animation: card-in 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 22ms);
}
.dex-card:hover { background: var(--card-hover); }
@keyframes card-in {
  from { opacity: 0; translate: 0 16px; scale: 0.96; }
}
.dex-card__num { justify-self: start; font: 700 11.5px/1 var(--font-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.dex-card__img { width: 96px; height: 96px; image-rendering: pixelated; transition: scale 0.45s var(--ease-spring); }
.dex-card:hover .dex-card__img { scale: 1.15; }
.dex-card__name { font: 800 15px/1.2 var(--font-display); color: var(--heading); }
.types { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; min-height: 20px; }
.type {
  padding: 3px 8px;
  border-radius: 999px;
  font: 700 10px/1.2 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--type-color, #666);
  color: var(--type-ink, #fff);
  animation: pop-in 0.35s var(--ease-spring) both;
}
@keyframes pop-in {
  from { scale: 0.6; opacity: 0; }
}
.type--skeleton {
  width: 44px;
  background: linear-gradient(90deg, var(--skeleton) 25%, var(--skeleton-hi) 50%, var(--skeleton) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.dex-more { display: flex; justify-content: center; margin-top: 24px; }

/* Modal */
.modal {
  width: min(760px, 100% - 24px);
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}
.modal[open] { animation: modal-in 0.45s var(--ease-spring) both; }
.modal::backdrop { background: rgba(5, 3, 40, 0.7); backdrop-filter: blur(6px); }
.modal[open]::backdrop { animation: fade-in 0.3s ease both; }
@keyframes modal-in {
  from { opacity: 0; translate: 0 24px; scale: 0.94; }
}
@keyframes fade-in {
  from { opacity: 0; }
}
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal__inner { padding: clamp(20px, 3vw, 30px); display: grid; gap: 20px; }

.dex-detail { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; animation: fade-in 0.35s ease both; }
@media (max-width: 640px) { .dex-detail { grid-template-columns: 1fr; } }
.dex-detail__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--type-color, #7955d8) 55%, transparent), var(--card) 70%);
  border: 2px solid var(--card-border);
}
.dex-detail__art img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4)); animation: art-in 0.7s var(--ease-spring) both, float 6s ease-in-out 0.7s infinite; }
@keyframes art-in {
  from { opacity: 0; transform: scale(0.6) rotate(-8deg); }
}
.dex-detail__shiny { position: absolute; bottom: 10px; right: 10px; }
.dex-detail__shiny[aria-pressed="true"] { background: var(--gold); color: var(--ink); box-shadow: none; }
.dex-detail h2 { font-size: clamp(28px, 4vw, 36px); }
.dex-detail .types { justify-content: flex-start; margin: 10px 0 16px; }
.dex-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.dex-fact { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 2px solid var(--card-border); }
.dex-fact small { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dex-fact span { font-weight: 600; font-size: 14px; }
.stats { display: grid; gap: 8px; }
.stat { display: grid; grid-template-columns: 92px 36px 1fr; align-items: center; gap: 10px; font-size: 13px; }
.stat__label { color: var(--muted); }
.stat__value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat__bar { height: 8px; border-radius: 999px; background: var(--skeleton); overflow: hidden; }
.stat__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-light), var(--gold));
  transform-origin: left;
  animation: grow-x 0.9s var(--ease) both;
  animation-delay: calc(0.15s + var(--i, 0) * 70ms);
}
@keyframes grow-x {
  from { transform: scaleX(0); }
}
.stat--total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }

.evo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.evo h3 { width: 100%; font: 800 16px/1.2 var(--font-display); margin-bottom: 4px; color: var(--heading); }
.evo__item { display: grid; justify-items: center; padding: 6px 10px; border: 0; border-radius: 12px; background: var(--card); color: var(--text); cursor: pointer; font-size: 12.5px; font-weight: 600; animation: pop-in 0.4s var(--ease-spring) both; transition: background 0.2s ease, translate 0.25s var(--ease); }
.evo__item:hover { background: var(--card-hover); translate: 0 -3px; }
.evo__item[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--gold); }
.evo__item img { width: 64px; height: 64px; image-rendering: pixelated; }
.evo__arrow { color: var(--muted); }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--skeleton-hi); border-top-color: var(--gold); animation: spin 0.8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Rodapé (escuro nos dois temas)
   ========================================================= */
.site-footer {
  --text: #eae9f4;
  --muted: #c3c0e2;
  --heading: #ffffff;
  --line: rgba(234, 233, 244, 0.12);
  --icon-bg: rgba(234, 233, 244, 0.06);
  --icon-bg-hover: rgba(234, 233, 244, 0.16);
  --icon-border: rgba(234, 233, 244, 0.65);
  --icon-fg: #ffffff;
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--footer-bg);
  color: var(--text);
  padding: 30px 0 26px;
}
[data-theme="light"] .site-footer { --footer-bg: #1d1754; }
.site-footer .wave { top: auto; bottom: 100%; color: var(--footer-bg); height: clamp(40px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand img { width: 190px; height: auto; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 340px; }
.footer-col h3 { font: 700 12px/1 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; color: var(--muted); font-size: 14px; transition: color 0.2s ease, padding 0.25s var(--ease); }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #eae9f4;
  box-shadow: inset 0 0 0 1.5px rgba(234, 233, 244, 0.3), 0 18px 40px rgba(0, 0, 0, 0.35);
  font-weight: 600;
  font-size: 14px;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.4s var(--ease-spring);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Pokémon que segue o mouse
   ========================================================= */
.pet {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
.pet.is-visible { opacity: 1; }
.pet__body { position: relative; translate: -50% -100%; }
/* folha de sprites 6 × 32px ampliada (pixel art nítido) */
.pet__sprite {
  display: block;
  width: var(--pet-size, 64px);
  height: var(--pet-size, 64px);
  background-repeat: no-repeat;
  background-size: calc(var(--pet-size, 64px) * 6) var(--pet-size, 64px);
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px var(--pet-glow, transparent));
}
.pet__shadow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56%;
  height: 8px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.35), transparent);
}
.pet.is-hop .pet__body { animation: pet-hop 0.5s var(--ease-spring); }
@keyframes pet-hop {
  0%, 100% { translate: -50% -100%; }
  40% { translate: -50% calc(-100% - 16px); }
}
.pet.is-swapping .pet__body { animation: pet-swap 0.7s var(--ease) both; }
@keyframes pet-swap {
  0% { scale: 1; rotate: 0deg; }
  40% { scale: 0; rotate: 200deg; }
  55% { scale: 0; rotate: -40deg; }
  100% { scale: 1; rotate: 0deg; }
}

/* Partículas (rastro do Pokémon e explosão do clique) */
.fx {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 69;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}
.fx--ring { border: 2px solid; background: none !important; }
.fx--pixel { border-radius: 0; image-rendering: pixelated; }

/* =========================================================
   Animação de entrada ao rolar
   ========================================================= */
.js .reveal {
  opacity: 0;
  translate: 0 32px;
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease) var(--d, 0ms),
    translate 0.9s var(--ease) var(--d, 0ms),
    filter 0.9s var(--ease) var(--d, 0ms),
    transform 0.35s var(--ease),
    box-shadow 0.35s ease,
    background-color 0.3s ease;
}
.js .reveal.is-in { opacity: 1; translate: 0 0; filter: none; }

/* troca de tema com círculo que se expande */
html.theme-vt::view-transition-old(root),
html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { filter: none; translate: none; }
  .pet, .fx, .sky { display: none; }
}
