/* PokeTempest — site. Direção "Launcher do client" (2026-11-16) sobre a identidade "Tempestade":
   o site continua a tela de login do client. Painéis = janelas do client (fundo preto-tempestade,
   cabeçalho #121a27, faixa ciana no topo), ação primária em azul carregado, ouro só marca/premium.
   A chuva e os raios vêm de /assets/js/storm.js; o movimento, de /assets/js/motion.js (GSAP local). */

@font-face { font-family: 'Cinzel'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/cinzel/files/cinzel-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 900; font-style: normal; font-display: swap; src: url('/fonts/cinzel/files/cinzel-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-style: normal; font-display: swap; src: url('/fonts-var/manrope/files/manrope-latin-wght-normal.woff2') format('woff2-variations'); }

/* ================= tokens ================= */
:root {
  /* chão e janelas (mesmos valores do client, §6.2) */
  --bg: #05070c;
  --bg-deep: #020408;
  --panel: #0c111a;
  --panel-2: #121a27;
  --panel-3: #18233a;
  --line: #26354a;
  --line-soft: rgba(38, 53, 74, 0.55);
  /* texto (AA sobre --panel) */
  --text: #e3eaf3;
  --muted: #a3b1c4;
  --dim: #7d8ca3;
  /* acentos */
  --bolt: #5ccfff;
  --bolt-hi: #a8e6ff;
  --bolt-soft: rgba(92, 207, 255, 0.12);
  --blue: #3a9ad9;
  --blue-hi: #56b2ee;
  --blue-deep: #1d5f93;
  --gold: #e0ac3e;
  --gold-hi: #f6d27e;
  --danger: #e04a5a;
  --danger-hi: #ffb3bb;
  --ok: #4cb87a;
  --ok-hi: #b3e8c9;
  /* forma */
  --r: 6px;
  --r-lg: 10px;
  --stripe: inset 0 2px 0 rgba(92, 207, 255, 0.6);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  --shadow-lift: 0 22px 44px -20px rgba(0, 0, 0, 0.95), 0 8px 18px -12px rgba(92, 207, 255, 0.25);
  /* espaço */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  /* tipo */
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --fs-xs: 0.78rem; --fs-sm: 0.875rem; --fs-md: 1.0625rem; --fs-lg: 1.3rem; --fs-xl: 1.7rem;
  --fs-2xl: clamp(1.9rem, 3.2vw, 2.6rem);
  --fs-3xl: clamp(2.3rem, 4.6vw, 3.6rem);
  --top-h: 60px;
  --wrap: 1200px;
  color-scheme: dark;
}

/* ================= base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(3, 5, 10, 0.88), rgba(3, 5, 10, 0.97) 55%),
    url('/img/bg/background-poketempest.png');
  background-size: auto, cover; background-position: center, 60% 30%; background-attachment: fixed;
  color: var(--text); font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
  scrollbar-color: var(--line) var(--bg-deep);
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-color: #3a5273; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.15s, text-decoration-color 0.15s; }
a:hover, a:focus-visible { color: var(--bolt-hi); text-decoration-color: var(--bolt); }
:focus-visible { outline: 2px solid var(--bolt); outline-offset: 2px; border-radius: 3px; }
::selection { background: rgba(92, 207, 255, 0.32); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--bg-deep); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #35496a; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.015em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font: 800 var(--fs-md)/1.3 var(--font-body); letter-spacing: 0; }
h4 { font: 800 1rem/1.3 var(--font-body); }
p { margin: 0 0 1em; }
b, strong { font-weight: 750; }
.num { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.mono { font-family: Consolas, 'Cascadia Mono', monospace; font-size: 0.92em; color: var(--bolt-hi); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--bolt); color: var(--bg); padding: 8px 14px; border-radius: var(--r); font-weight: 800; }
.skip:focus { left: 16px; }

/* ================= barra do topo (barra de título do launcher) ================= */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  background: rgba(5, 7, 12, 0.92); border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px -18px #000;
}
.top .wrap { display: flex; align-items: center; gap: var(--s4); height: 100%; width: min(1360px, 100% - 32px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 34px; height: 34px; }
.brand b { font: 900 1.02rem/1 var(--font-display); letter-spacing: 0.05em; }
.brand b span { color: var(--bolt); }
.brand:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: var(--s3); height: 100%; }
.nav > a, .nav summary {
  position: relative; display: flex; align-items: center; gap: 7px; height: 100%; padding: 0 12px;
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.92rem; cursor: pointer; list-style: none;
  transition: color 0.18s;
}
.nav summary::-webkit-details-marker { display: none; }
.nav > a::after, .nav summary::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--bolt); transform: scaleX(0); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.nav > a:hover, .nav summary:hover, .nav details[open] summary { color: var(--text); }
.nav > a:hover::after { transform: scaleX(0.4); }
.nav > a[aria-current='page'] { color: #fff; }
.nav > a[aria-current='page']::after { transform: scaleX(1); }
.nav details { position: relative; height: 100%; }
.nav .drop {
  position: absolute; top: calc(100% + 1px); left: 0; min-width: 230px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow), var(--stripe);
}
.nav .drop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 4px; color: var(--muted); text-decoration: none; font-weight: 650; font-size: 0.92rem; }
.nav .drop a:hover { color: #fff; background: var(--panel-2); }
.nav .chev { transition: transform 0.2s; width: 0.9em; }
.nav details[open] .chev { transform: rotate(180deg); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px;
  border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.status-pill:hover { color: var(--text); border-color: #35496a; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.on .dot, .dot.on { background: var(--bolt); box-shadow: 0 0 0 3px rgba(92, 207, 255, 0.18); }
.status-pill.on b { color: #fff; }
.wallet { display: inline-flex; align-items: center; gap: 6px; color: var(--bolt-hi); font-weight: 800; font-size: 0.9rem; }
.top .menu-toggle { display: none; }

/* ================= botões (retos como os do client) ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 42px; padding: 10px 18px; border-radius: var(--r);
  border: 1px solid #2f4462; background: var(--panel-2); color: var(--text);
  font: 750 0.94rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; position: relative; isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 14px -10px #000;
  transition: border-color 0.18s, color 0.18s, transform 0.18s;
}
.btn::after { content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: rgba(255, 255, 255, 0.06); opacity: 0; transition: opacity 0.18s; pointer-events: none; }
.btn:hover { color: #fff; border-color: #3e5a80; }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(1px); transition-duration: 0.08s; }
.btn-primary, .btn-blue {
  background: linear-gradient(180deg, var(--blue-hi), var(--blue) 45%, var(--blue-deep));
  border-color: #6cc2f5; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px -12px rgba(58, 154, 217, 0.9);
}
.btn-primary::after, .btn-blue::after { background: rgba(255, 255, 255, 0.1); box-shadow: 0 14px 30px -12px rgba(92, 207, 255, 0.85); }
.btn-primary:hover, .btn-blue:hover { border-color: var(--bolt-hi); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #9a6a14); border-color: rgba(246, 210, 126, 0.85); color: #1e1100;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 24px -12px rgba(224, 172, 62, 0.8);
}
.btn-gold::after { background: rgba(255, 255, 255, 0.16); }
.btn-gold:hover { color: #140b00; border-color: #fff0c4; }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { border-color: var(--line); }
.btn-danger { background: rgba(224, 74, 90, 0.12); border-color: rgba(224, 74, 90, 0.5); color: var(--danger-hi); }
.btn-danger:hover { border-color: var(--danger); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 0.85rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn-play { min-height: 64px; width: 100%; font: 900 1.35rem/1 var(--font-display); letter-spacing: 0.08em; }
.btn-play .icon { width: 1.1em; height: 1.1em; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 8px 10px; border-radius: var(--r); display: inline-flex; gap: 7px; align-items: center; font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.linkbtn:hover { color: #fff; background: var(--panel-2); }

/* ================= janelas (painéis do client) ================= */
.card {
  position: relative; background: rgba(12, 17, 26, 0.94); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s5); box-shadow: var(--shadow);
}
.relic { box-shadow: var(--shadow), var(--stripe); }
/* o 1º título de uma janela vira o cabeçalho dela, como no client */
.card > .card-head:first-child, .card > h2:first-child, .card > h3:first-child {
  margin: calc(var(--s5) * -1) calc(var(--s5) * -1) var(--s4); padding: 12px var(--s5);
  background: var(--panel-2); border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0;
}
.card > h2:first-child, .card > h3:first-child, .card > .card-head:first-child h2, .card > .card-head:first-child h3 {
  font: 700 0.98rem/1.3 var(--font-display); letter-spacing: 0.05em; color: var(--text);
  display: flex; align-items: center; gap: 9px;
}
.card > h2:first-child .icon, .card > h3:first-child .icon, .card-head h3 .icon, .card-head h2 .icon { color: var(--bolt); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.card-head h2, .card-head h3 { margin: 0; }
.card-head a { font-size: var(--fs-sm); font-weight: 700; text-decoration: none; white-space: nowrap; }
.card-head > span { font-size: var(--fs-sm); }
.label { display: block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }

/* divisor com raio (desenhado pelo motion.js) */
.bolt-rule { display: flex; align-items: center; gap: var(--s3); margin: var(--s6) 0 var(--s5); color: var(--bolt); }
.bolt-rule::before, .bolt-rule::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.bolt-rule svg { width: 46px; height: 18px; flex: none; }
.bolt-rule path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.rule { height: 1px; background: var(--line); margin: var(--s5) 0; }
.rule i { display: none; }

/* ================= layout de página ================= */
.page { padding: var(--s6) 0 var(--s8); }
/* cabeçalho de página = banner de jogo do launcher: painel à esquerda, arte da tempestade à direita */
.page-head {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4);
  margin-bottom: var(--s5); padding: var(--s6) var(--s6) var(--s5); min-height: 168px;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow), var(--stripe);
  background:
    linear-gradient(90deg, var(--panel) 0%, rgba(12, 17, 26, 0.94) 42%, rgba(12, 17, 26, 0.35) 100%),
    url('/img/bg/background-poketempest.png') 72% 28% / cover;
}
.page-head h1 { margin: 0; }
/* cada seção mostra outra parte da cena: aves (ranking), ruínas (bazar), Pikachu (wiki), Charizard (baixar), Moltres (conta), Mewtwo (comunidade) */
[data-section='ranking'] .page-head { background-position: 0 0, 18% 18%; }
[data-section='bazar'] .page-head { background-position: 0 0, 55% 88%; }
[data-section='wiki'] .page-head { background-position: 0 0, 98% 82%; }
[data-section='conta'] .page-head { background-position: 0 0, 32% 48%; }
[data-section='online'] .page-head, [data-section='guilds'] .page-head, [data-section='guild'] .page-head, [data-section='personagens'] .page-head, [data-section='regras'] .page-head { background-position: 0 0, 0% 50%; }
[data-section='noticias'] .page-head { background-position: 0 0, 80% 60%; }
.page-head p { margin: 10px 0 0; color: var(--muted); max-width: 62ch; }
.page-head > .row { position: relative; }
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.stack > * + * { margin-top: var(--s5); }
.crumbs { display: flex; gap: 8px; font-size: var(--fs-sm); color: var(--dim); margin-bottom: var(--s3); flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; margin-bottom: var(--s5); }
.pager { display: flex; justify-content: center; align-items: center; gap: var(--s3); margin-top: var(--s5); color: var(--muted); }

/* abas (como as abas do client: barra ciana embaixo da ativa) */
.tabs { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r); background: rgba(12, 17, 26, 0.94); overflow: hidden; }
.tabs a { position: relative; padding: 10px 16px; color: var(--muted); text-decoration: none; font-weight: 750; font-size: 0.9rem; }
.tabs a + a { border-left: 1px solid var(--line-soft); }
.tabs a:hover { color: #fff; background: var(--panel-2); }
.tabs a[aria-current='true'] { color: #fff; background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--bolt); }

/* ================= notícias ================= */
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: var(--bolt-soft); color: var(--bolt-hi); }
.tag.update { background: rgba(76, 184, 122, 0.14); color: var(--ok-hi); }
.tag.event { background: rgba(122, 168, 255, 0.16); color: #c3d6ff; }
.tag.community { background: rgba(224, 74, 90, 0.15); color: var(--danger-hi); }
.news-list { display: grid; gap: 0; padding: 0; overflow: hidden; }
.news-row { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--s4); padding: var(--s4) var(--s5); text-decoration: none; color: var(--text); border-top: 1px solid var(--line-soft); transition: background-color 0.18s; }
.news-row:first-child { border-top: 0; }
.news-row:hover { background: var(--panel-2); color: #fff; }
.news-row h3 { margin: 4px 0 2px; font-size: 1.12rem; }
.news-row p { margin: 0; color: var(--muted); grid-column: 1 / -1; font-size: 0.95rem; }
.news-row .meta { font-size: var(--fs-xs); color: var(--dim); white-space: nowrap; align-self: start; padding-top: 4px; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: var(--fs-sm); color: var(--dim); }
.prose { font-size: 1.06rem; line-height: 1.75; color: #d3dce8; max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }
.prose strong, .prose b { color: #fff; }
.prose h2 { font: 800 1.3rem/1.3 var(--font-body); letter-spacing: 0; color: #fff; margin: 1.8em 0 0.6em; padding-top: 1.1em; border-top: 1px solid var(--line-soft); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--bolt); }
.prose code { font-family: Consolas, monospace; font-size: 0.9em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--bolt-hi); }
.article { max-width: 820px; }
.article h1 { font-size: var(--fs-3xl); margin: var(--s3) 0; }

/* ================= listas e tabelas ================= */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: rgba(12, 17, 26, 0.94); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th { text-align: left; font: 800 0.72rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }
td { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 0.15s; }
tbody tr:hover { background: rgba(92, 207, 255, 0.05); }
td.r, th.r { text-align: right; }
.who { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.who a { color: var(--text); font-weight: 750; text-decoration: none; }
.who a:hover { color: var(--bolt-hi); }
.who small { display: block; color: var(--dim); font-size: 0.8rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); object-fit: cover; flex: none; }
.avatar.lg { width: 112px; height: 112px; border: 2px solid rgba(92, 207, 255, 0.55); box-shadow: 0 0 0 5px rgba(92, 207, 255, 0.08), 0 20px 40px -20px #000; }
.rank-pos { font-weight: 800; color: var(--dim); width: 56px; }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bolt); box-shadow: 0 0 0 3px rgba(92, 207, 255, 0.18); margin-left: 7px; vertical-align: middle; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.list-plain li:last-child { border-bottom: 0; }

/* pódio */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: var(--s4); align-items: end; margin-bottom: var(--s5); }
.podium .card { text-align: center; padding: var(--s5) var(--s4); }
.podium .p1 { padding-top: var(--s6); border-color: rgba(224, 172, 62, 0.55); box-shadow: var(--shadow), inset 0 2px 0 var(--gold); }
.podium .avatar { width: 76px; height: 76px; margin: 0 auto var(--s3); }
.podium .p1 .avatar { width: 96px; height: 96px; border: 2px solid var(--gold); }
.podium .place { font: 900 1.9rem/1 var(--font-display); color: var(--gold); margin-bottom: var(--s3); }
.podium .p2 .place { color: #cfd9e6; } .podium .p3 .place { color: #d99a6c; }
.podium a { color: var(--text); font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.podium a:hover { color: var(--bolt-hi); }
.podium .val { color: var(--muted); margin-top: 4px; font-weight: 700; }

/* ================= formulários ================= */
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: 7px; }
.field > span, .field-label { font-size: 0.88rem; font-weight: 750; color: #c4cfdd; }
.field small, .hint { color: var(--dim); font-size: 0.82rem; line-height: 1.4; }
.field .err { color: var(--danger-hi); font-weight: 700; display: flex; gap: 6px; align-items: flex-start; }
input[type='text'], input[type='email'], input[type='password'], input[type='number'], input[type='search'], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r); border: 1px solid #2c3f5a;
  background: var(--bg-deep); color: var(--text); font: 550 1rem/1.3 var(--font-body);
  transition: border-color 0.18s, box-shadow 0.18s; caret-color: var(--bolt);
}
input::placeholder, textarea::placeholder { color: #6f7f97; }
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: #3a5273; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bolt); box-shadow: 0 0 0 3px rgba(92, 207, 255, 0.18); }
input[aria-invalid='true'] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(224, 74, 90, 0.16); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 42px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: var(--dim); cursor: pointer; }
.pw-toggle:hover { color: #fff; background: var(--panel-2); }
.pw-toggle[aria-pressed='true'] { color: var(--bolt); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: var(--muted); }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--bolt); flex: none; }
.hp { position: absolute; left: -9999px; }
.inline-form { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: end; }
.inline-form > * { flex: 1 1 160px; }
.inline-form .btn { flex: 0 0 auto; }

.alert { padding: 13px 16px; border-radius: var(--r); border: 1px solid; margin-bottom: var(--s4); display: flex; gap: 10px; align-items: flex-start; font-weight: 600; line-height: 1.5; }
.alert .icon { margin-top: 2px; }
.alert.error { background: rgba(224, 74, 90, 0.1); border-color: rgba(224, 74, 90, 0.45); color: var(--danger-hi); }
.alert.ok { background: rgba(76, 184, 122, 0.1); border-color: rgba(76, 184, 122, 0.45); color: var(--ok-hi); }
.alert.info { background: var(--bolt-soft); border-color: rgba(92, 207, 255, 0.4); color: #cdeeff; }
.alert a { color: #fff; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: min(440px, calc(100% - 40px)); box-shadow: var(--shadow); background-color: var(--panel); }
.toast.ok { background: linear-gradient(rgba(76, 184, 122, 0.12), rgba(76, 184, 122, 0.12)), var(--panel); }
.toast.error { background: linear-gradient(rgba(224, 74, 90, 0.12), rgba(224, 74, 90, 0.12)), var(--panel); }

/* ================= passos Baixar → Criar conta → Entrar ================= */
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 2px; }
.steps::before { content: ''; position: absolute; left: 17.25px; top: 18px; bottom: 18px; width: 1.5px; background: var(--bolt); opacity: 0.6; }
.steps.drawn::before { display: none; }
.steps-lg::before { left: 21.25px; top: 22px; bottom: 22px; }
.steps-line { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.steps-line path { fill: none; stroke: var(--bolt); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; opacity: 0.85; }
.step { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: var(--s3); align-items: start; padding: 10px 0; }
.step-n { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); border: 1.5px solid var(--bolt); color: var(--bolt-hi); font-weight: 900; font-size: 0.95rem; }
.step.done .step-n { background: var(--bolt); color: var(--bg); }
.step > div > b { display: block; font-size: 1.02rem; color: #fff; }
.step b a { color: inherit; text-decoration: none; }
.step b a:hover { color: var(--bolt-hi); text-decoration: underline; }
.step > div > span { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.step .mono { font-size: 0.86em; }
.steps-lg .step { grid-template-columns: 44px 1fr; gap: var(--s4); padding: var(--s4) 0; }
.steps-lg .step-n { width: 44px; height: 44px; font-size: 1.1rem; }
.steps-lg .step > div > b { font-size: 1.15rem; margin-bottom: 4px; }
.steps-lg .step > div > span { font-size: 0.98rem; }
.steps-lg .step .btn { margin-top: var(--s3); }
.steps-mini { list-style: none; margin: 0 0 var(--s5); padding: 0; display: flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 750; color: var(--muted); }
.steps-mini li { display: flex; align-items: center; gap: 8px; }
.steps-mini .step-n { width: 26px; height: 26px; font-size: 0.8rem; border-width: 1.5px; }
.steps-mini a { color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.steps-mini a:hover { color: #fff; }
.steps-mini [aria-current] { color: #fff; }
.steps-mini [aria-current] .step-n { background: var(--bolt); color: var(--bg); }
.steps-mini .zz { width: 22px; height: 10px; flex: none; color: var(--line); }
.steps-mini .zz path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

/* ================= home: a tela de login do client ================= */
.launch { position: relative; display: grid; grid-template-columns: minmax(380px, 440px) 1fr; min-height: calc(100svh - var(--top-h)); }
.launch-panel {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s5) var(--s6); background: rgba(8, 11, 18, 0.97); border-right: 1px solid var(--line);
  box-shadow: 24px 0 60px -30px #000;
}
.launch-logo { width: 128px; height: auto; margin: 0 auto 0 -4px; }
.launch-panel h1 { font-size: clamp(2rem, 3vw, 2.6rem); margin: 0; }
.launch-panel h1 { text-wrap: wrap; }
.launch-lede { color: #c3cfde; font-size: 1.04rem; margin: 0; }
.launch-lede b { color: #fff; }
.launch-cta { display: grid; gap: 10px; }
.launch-cta .sub { text-align: center; font-size: 0.92rem; color: var(--muted); }
.launch-foot { margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 6px var(--s4); font-size: var(--fs-sm); color: var(--muted); }
.launch-foot b { color: #fff; }
.launch-art { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.launch-art::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3, 5, 10, 0.92) 0%, rgba(3, 5, 10, 0) 38%), linear-gradient(90deg, rgba(3, 5, 10, 0.55), rgba(3, 5, 10, 0) 30%); pointer-events: none; }
/* faixa de notícias de patch embaixo da arte */
.launch-panel { grid-column: 1; grid-row: 1; }
.launch-art { grid-column: 2; grid-row: 1; }
.launch > .patch { grid-column: 2; grid-row: 1; align-self: end; }
.patch { position: relative; z-index: 3; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line); background: rgba(5, 7, 12, 0.86); }
.patch a, .patch .patch-empty { display: block; padding: var(--s4) var(--s5); text-decoration: none; color: var(--text); border-left: 1px solid var(--line-soft); min-width: 0; transition: background-color 0.18s; }
.patch a:first-child, .patch .patch-empty:first-child { border-left: 0; }
.patch a:hover { background: rgba(18, 26, 39, 0.95); color: #fff; }
.patch b { display: block; font-size: 0.98rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 3px; }
.patch small { display: block; color: var(--dim); font-size: 0.82rem; }

/* seções da home */
.home-sec { padding: var(--s8) 0 0; }
.home-sec:last-child { padding-bottom: var(--s8); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5); }
.sec-head h2 { font-size: var(--fs-2xl); margin: 0; }
.sec-head p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.sec-head a { font-weight: 750; text-decoration: none; }
.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.about-lede { font-size: 1.2rem; line-height: 1.6; color: #d3dce8; max-width: 52ch; margin-bottom: var(--s5); }
.about-lede b { color: #fff; }
.feats { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: rgba(12, 17, 26, 0.94); box-shadow: var(--shadow); }
.feats li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s3); padding: var(--s4) var(--s5); border-top: 1px solid var(--line-soft); }
.feats li:first-child { border-top: 0; }
.feats .icon { width: 26px; height: 26px; color: var(--bolt); margin-top: 2px; }
.feats b { display: block; color: #fff; }
.feats span { color: var(--muted); font-size: 0.95rem; }
.feats a { text-decoration: none; }
.featured { display: grid; grid-template-columns: 150px 1fr; gap: 0 var(--s5); align-items: center; text-decoration: none; color: var(--text); }
.featured > .featured-head { grid-column: 1 / -1; }
.featured-name { display: block; font: 700 1.6rem/1.1 var(--font-display); margin-bottom: 6px; }
.featured:hover { color: var(--text); border-color: #3e5a80; }
.featured img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.6)); }
/* roadmap */
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.road::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, var(--bolt) 0 25%, var(--line) 25%); }
.road li { position: relative; padding: 40px var(--s4) 0 0; }
.road li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
.road li.now::before { background: var(--bolt); border-color: var(--bolt); box-shadow: 0 0 0 5px rgba(92, 207, 255, 0.15); }
.road b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 700 1.25rem/1.2 var(--font-display); color: #fff; margin-bottom: 6px; }
.pill { display: inline-flex; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); font: 750 0.72rem/1.4 var(--font-body); letter-spacing: 0.02em; color: var(--muted); }
.pill.now { border-color: rgba(92, 207, 255, 0.5); color: var(--bolt-hi); background: var(--bolt-soft); }
.road span { color: var(--muted); font-size: 0.95rem; }
.final {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: var(--s5); align-items: center; justify-content: space-between;
  padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow), var(--stripe);
  background: linear-gradient(90deg, var(--panel) 30%, rgba(12, 17, 26, 0.5)), url('/img/bg/background-poketempest.png') 30% 60% / cover;
}
.final h2 { font-size: var(--fs-2xl); margin: 0 0 6px; }
.final p { margin: 0; color: var(--muted); }

/* ================= entrar / criar conta (painel do login do client) ================= */
.auth { min-height: calc(100svh - var(--top-h)); display: grid; grid-template-columns: minmax(0, 500px) 1fr; }
.auth-box { position: relative; z-index: 1; padding: var(--s7) clamp(20px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; background: rgba(8, 11, 18, 0.97); border-right: 1px solid var(--line); box-shadow: 24px 0 60px -30px #000; }
.auth-box h1 { font-size: var(--fs-2xl); margin-bottom: 6px; }
.auth-box > p { color: var(--muted); }
.auth-art { position: relative; overflow: hidden; isolation: isolate; }
.auth-art .storm { z-index: -1; }
.auth-art .caption { position: absolute; left: var(--s6); right: var(--s6); bottom: var(--s6); max-width: 34ch; margin: 0; font: 700 1.35rem/1.35 var(--font-display); color: #fff; text-shadow: 0 2px 18px #000, 0 0 2px #000; }
.auth-art::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3, 5, 10, 0.85), transparent 45%); pointer-events: none; }
.auth .switch { margin: var(--s5) 0 0; padding-top: var(--s4); border-top: 1px solid var(--line-soft); color: var(--muted); }

/* ================= download ================= */
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s5); align-items: start; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
.kv dt { color: var(--dim); font-size: 0.9rem; }
.kv dd { margin: 0; font-weight: 700; text-align: right; }
.faq { grid-template-columns: 1fr; gap: 4px; }
.faq dt { color: #fff; font-weight: 750; font-size: 0.95rem; }
.faq dt:not(:first-child) { margin-top: var(--s3); }
.faq dd { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.93rem; }
.status-inline { display: inline-flex; align-items: center; gap: 7px; }

/* ================= pokémon ================= */
.types { display: flex; gap: 6px; flex-wrap: wrap; }
.type { --t: #8a9bb0; display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 4px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; color: #fff; background: color-mix(in srgb, var(--t) 62%, #05080e); border: 1px solid color-mix(in srgb, var(--t) 85%, #fff 10%); text-transform: uppercase; text-decoration: none; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); }
a.type:hover { color: #fff; filter: brightness(1.15); }
.t-normal { --t: #9fa19f; } .t-fire { --t: #e8562c; } .t-water { --t: #2f8fe6; } .t-grass { --t: #4ca93b; } .t-electric { --t: #d9a91a; }
.t-ice { --t: #3fc6e0; } .t-fighting { --t: #d4782a; } .t-poison { --t: #9341c7; } .t-ground { --t: #a6702d; } .t-flying { --t: #7aa6e8; }
.t-psychic { --t: #e44a7c; } .t-bug { --t: #8fa21c; } .t-rock { --t: #aca07a; } .t-ghost { --t: #714f8f; } .t-dragon { --t: #5361d6; }
.t-dark { --t: #6a5752; } .t-steel { --t: #5a9ab4; } .t-fairy { --t: #e57ae8; } .t-crystal { --t: #4fe3d1; }

.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: var(--s3); align-items: end; margin-bottom: var(--s5); }
.dex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: var(--s3); }
.dex-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 10px 14px;
  border-radius: var(--r); border: 1px solid var(--line); background: rgba(12, 17, 26, 0.94);
  text-decoration: none; color: var(--text); transition: border-color 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.dex-card:hover { border-color: #3e5a80; transform: translateY(-2px); color: #fff; }
.dex-card img { width: 96px; height: 96px; object-fit: contain; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.dex-card:hover img { transform: translateY(-4px) scale(1.06); }
.dex-card .n { font-size: 0.76rem; font-weight: 700; color: var(--dim); }
.dex-card b { font-size: 0.94rem; text-align: center; line-height: 1.2; }
.dex-card .shine { position: absolute; top: 9px; right: 9px; color: var(--gold); }
.dex-card .tier { position: absolute; top: 9px; left: 10px; font-size: 0.72rem; font-weight: 800; color: var(--muted); }
.noimg { width: 96px; height: 96px; display: grid; place-items: center; color: var(--dim); font: 800 2rem var(--font-display); }

.mon-hero { display: grid; grid-template-columns: 320px 1fr; gap: var(--s6); align-items: center; }
.mon-portrait { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(circle at 50% 55%, rgba(92, 207, 255, 0.14), rgba(12, 17, 26, 0.94) 65%); box-shadow: var(--shadow), var(--stripe); }
.mon-portrait img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); }
.mon-num { font-weight: 800; color: var(--muted); letter-spacing: 0.04em; }
.mon-hero h1 { font-size: var(--fs-3xl); margin: 4px 0 var(--s3); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.fact { padding: 12px 14px; border-radius: var(--r); background: rgba(12, 17, 26, 0.94); border: 1px solid var(--line); }
.fact span { display: block; font-size: 0.72rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; }
.fact b { font-size: 1.15rem; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chain a, .chain .cur { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 12px; border-radius: var(--r); text-decoration: none; color: var(--text); border: 1px solid transparent; min-width: 92px; }
.chain a:hover { border-color: var(--line); background: var(--panel-2); }
.chain .cur { border-color: rgba(92, 207, 255, 0.5); background: var(--bolt-soft); }
.chain img { width: 64px; height: 64px; object-fit: contain; }
.chain small { color: var(--dim); font-size: 0.78rem; }
.chain .arrow { color: var(--bolt); }
.move { display: grid; grid-template-columns: 46px 1fr auto; gap: var(--s4); align-items: start; padding: var(--s4) 0; border-bottom: 1px solid var(--line-soft); }
.move:last-child { border-bottom: 0; }
.move .slot { font: 800 0.82rem/46px var(--font-body); text-align: center; border-radius: var(--r); background: var(--bg-deep); border: 1px solid var(--line); color: var(--bolt); }
.move h4 { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.move h4 a { color: var(--text); text-decoration: none; }
.move h4 a:hover { color: var(--bolt-hi); }
.move p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.move .cd { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 0.76rem; padding: 2px 8px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line-soft); color: var(--muted); font-weight: 700; }
.eff-row { display: flex; gap: var(--s3); align-items: baseline; padding: 8px 0; flex-wrap: wrap; }
.eff-row > b { width: 40px; color: var(--muted); }
.eff-row .types { flex: 1; min-width: 0; }
.team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.team a, .team div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--r); background: var(--bg-deep); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 0.82rem; text-align: center; line-height: 1.2; transition: border-color 0.2s; }
.team a:hover { border-color: #3e5a80; color: #fff; }
.team img { width: 58px; height: 58px; object-fit: contain; }
.team .ball { color: var(--dim); font-size: 0.72rem; }

/* ================= personagem ================= */
.char-hero { display: flex; gap: var(--s5); align-items: center; flex-wrap: wrap; }
.char-hero h1 { margin: 0 0 6px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 800; background: var(--panel-2); border: 1px solid var(--line-soft); color: var(--muted); text-decoration: none; }
a.badge:hover { color: #fff; border-color: var(--line); }
.badge.gold { background: rgba(224, 172, 62, 0.12); border-color: rgba(224, 172, 62, 0.35); color: var(--gold-hi); }
.badge.crystal { background: var(--bolt-soft); border-color: rgba(92, 207, 255, 0.3); color: var(--bolt-hi); }
progress.xp { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg-deep); overflow: hidden; }
progress.xp::-webkit-progress-bar { background: var(--bg-deep); border-radius: 99px; }
progress.xp::-webkit-progress-value { background: linear-gradient(90deg, var(--blue), var(--bolt)); border-radius: 99px; }
progress.xp::-moz-progress-bar { background: linear-gradient(90deg, var(--blue), var(--bolt)); border-radius: 99px; }

/* ================= bazar ================= */
.auctions { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s4); }
.auction { display: flex; flex-direction: column; gap: var(--s4); text-decoration: none; color: var(--text); transition: border-color 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.auction:hover { border-color: #3e5a80; transform: translateY(-2px); color: var(--text); }
.auction .who b { font-size: 1.1rem; }
.auction .price { display: flex; justify-content: space-between; align-items: end; padding-top: var(--s4); border-top: 1px solid var(--line-soft); }
.price-val { display: flex; align-items: center; gap: 7px; font-size: 1.4rem; font-weight: 800; color: var(--bolt-hi); }
.price small, .timer small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); margin-bottom: 6px; font-weight: 800; }
.timer { font-weight: 800; color: var(--gold-hi); text-align: right; }
.timer.soon, .soon { color: #ff8f9b; }
.mini-team { display: flex; gap: 2px; }
.mini-team img { width: 34px; height: 34px; object-fit: contain; }
.status-tag { position: absolute; top: 14px; right: 14px; }
.big-price { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--bolt-hi); display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; }

/* ================= wiki ================= */
.wiki-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s6); align-items: center; margin-bottom: var(--s6); }
.wiki-hero h1 { font-size: var(--fs-3xl); }
.wiki-mons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wiki-mons a { display: block; border-radius: var(--r); transition: background-color 0.2s; }
.wiki-mons a:hover { background: rgba(92, 207, 255, 0.06); }
.wiki-mons img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.wiki-mons a:hover img { transform: translateY(-6px); }
/* biblioteca (lista em linhas, como a biblioteca de um launcher) */
.lib { padding: 0; overflow: hidden; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lib-row { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); text-decoration: none; color: var(--text); border-top: 1px solid var(--line-soft); transition: background-color 0.18s; }
.lib-row:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.lib-row:nth-child(-n+2) { border-top: 0; }
.lib-row:hover { background: var(--panel-2); color: #fff; }
.lib-row .ico { width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: var(--bolt-soft); color: var(--bolt); }
.lib-row .ico .icon { width: 22px; height: 22px; }
.lib-row b { display: block; font-size: 1.02rem; }
.lib-row span { color: var(--muted); font-size: 0.9rem; }
.lib-row .count { font-weight: 800; color: var(--muted); font-size: 0.86rem; white-space: nowrap; }
.lib-row .go { color: var(--dim); transition: transform 0.2s, color 0.2s; }
.lib-row:hover .go { color: var(--bolt); transform: translateX(3px); }
.guide-nav { position: sticky; top: calc(var(--top-h) + 20px); }
.guide-nav a { display: block; padding: 9px 12px; border-radius: 4px; color: var(--muted); text-decoration: none; font-weight: 650; }
.guide-nav a:hover { color: #fff; background: var(--panel-2); }
.guide-nav a[aria-current='page'] { color: #fff; background: var(--panel-2); box-shadow: inset 2px 0 0 var(--bolt); }
.guide h1 { font-size: var(--fs-3xl); }
.guide .lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ================= regras ================= */
.rules { counter-reset: r; list-style: none; padding: 0; margin: 0; }
.rules li { display: grid; grid-template-columns: 52px 1fr; gap: var(--s4); padding: var(--s5); border-top: 1px solid var(--line-soft); }
.rules li:first-child { border-top: 0; }
.rules li::before { counter-increment: r; content: counter(r); font: 900 1.6rem/1 var(--font-display); color: var(--bolt); }
.rules b { display: block; font-size: 1.08rem; color: #fff; margin-bottom: 4px; }
.rules span { color: var(--muted); }

/* ================= rodapé ================= */
.foot { border-top: 1px solid var(--line); background: rgba(3, 5, 10, 0.94); padding: var(--s6) 0 var(--s5); margin-top: var(--s6); font-size: 0.92rem; color: var(--dim); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s6); }
.foot h4 { color: var(--muted); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 var(--s3); }
.foot a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.foot a:hover { color: #fff; }
.foot .brand { display: inline-flex; padding: 0; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); padding-top: var(--s4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot-tag { margin: var(--s3) 0 0; max-width: 36ch; }

/* ================= estados vazios e erro ================= */
.empty { text-align: center; padding: var(--s7) var(--s5); color: var(--muted); }
.empty > .icon { width: 40px; height: 40px; color: var(--dim); margin: 0 auto var(--s3); display: block; }
.empty b { display: block; color: var(--text); font-size: 1.08rem; margin-bottom: 4px; }
.empty p { margin: 0 auto; max-width: 46ch; }
.empty .row { justify-content: center; margin-top: var(--s4); }
.err-page { text-align: center; padding: var(--s8) 0; }
.err-page .big { font: 900 clamp(4rem, 12vw, 7rem)/1 var(--font-display); color: var(--bolt); opacity: 0.85; margin-bottom: var(--s3); }

/* ================= utilitários ================= */
.mt { margin-top: var(--s5); } .mt-s { margin-top: 10px; } .mb0 { margin-bottom: 0; } .mb { margin-bottom: 10px; } .center { text-align: center; }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.between { justify-content: space-between; }
[data-center] { justify-content: center; }
.w-sm { width: 130px; }
.grow { flex: 1; min-width: 240px; }
.ok { color: var(--ok); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.manage { position: relative; }
.manage summary { list-style: none; }
.manage summary::-webkit-details-marker { display: none; }
.manage-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; padding: 12px; width: 300px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); flex-wrap: nowrap; }

/* ================= tempestade (storm.js) ================= */
.storm { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--bg-deep); }
.storm-art, .storm-shade { width: 100%; height: 100%; object-fit: cover; object-position: 58% 24%; }
.launch-art .storm-art, .launch-art .storm-shade { animation: drift 32s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.1) translate(-1.2%, 0.8%); } }
.storm-shade { position: absolute; inset: 0; opacity: 1; pointer-events: none; }
.storm-flash { position: absolute; inset: 0; background: #8fbcff; opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.storm-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.storm-ambient { position: fixed; left: 0; right: 0; top: 0; height: 100lvh; z-index: -1; pointer-events: none; opacity: 0.45; }
.storm-ambient .storm-flash { background: #5d88c9; }
.auth-art .storm-art, .auth-art .storm-shade { object-position: 72% center; }

/* ================= movimento: estado inicial só com JS + movimento permitido =================
   boot.js põe .anim no <html>; motion.js tira o data-intro de cada elemento ao animá-lo.
   Se o GSAP não carregar, a animação de segurança mostra tudo em 2,5 s. */
.anim [data-intro] { opacity: 0; animation: intro-safety 0.01s linear 2.5s forwards; }
@keyframes intro-safety { to { opacity: 1; } }

/* ================= responsivo ================= */
@media (max-width: 1180px) {
  .nav > a .icon, .nav summary > .icon:first-child { display: none; }
}
@media (max-width: 1060px) {
  .grid-main, .wiki-hero, .mon-hero, .about, .dl-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .q { grid-column: 1 / -1; }
  .mon-hero .mon-portrait { max-width: 280px; width: 100%; }
  .guide-nav { position: static; }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s5); }
  .road::before { display: none; }
}
@media (max-width: 960px) {
  .top .menu-toggle { display: inline-flex; margin-left: auto; }
  .top .wrap { gap: var(--s2); }
  .nav, .top-right { display: none; }
  .top.open { height: auto; }
  .top.open .wrap { flex-wrap: wrap; height: auto; min-height: var(--top-h); padding: 10px 0 14px; }
  .top.open .nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; height: auto; margin: 8px 0 0; }
  .top.open .nav > a, .top.open .nav summary { height: auto; padding: 12px 6px; border-top: 1px solid var(--line-soft); }
  .top.open .nav > a::after, .top.open .nav summary::after { display: none; }
  .top.open .nav details { height: auto; }
  .top.open .nav .drop { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 14px; }
  .top.open .nav > a .icon, .top.open .nav summary > .icon:first-child { display: block; }
  .top.open .top-right { display: flex; flex-wrap: wrap; width: 100%; margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }
  .top-play { display: inline-flex; }
  .launch { grid-template-columns: 1fr; min-height: 0; }
  .launch-art { order: -1; height: 32svh; min-height: 220px; }
  .launch-panel { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--s5) var(--s4); gap: var(--s4); box-shadow: none; }
  .launch-logo { display: none; }
  .launch-panel, .launch-art, .launch > .patch { grid-column: 1; grid-row: auto; }
  .launch > .patch { order: 2; grid-auto-flow: row; position: static; border-bottom: 1px solid var(--line); }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lib { grid-template-columns: 1fr; }
  .lib-row:nth-child(odd) { border-right: 0; }
  .lib-row:nth-child(2) { border-top: 1px solid var(--line-soft); }
}
@media (min-width: 961px) { .top-play { display: none; } }
@media (max-width: 640px) {
  :root { --top-h: 56px; }
  .page { padding-top: var(--s4); }
  .page-head { padding: var(--s5) var(--s4) var(--s4); min-height: 0; background: linear-gradient(90deg, var(--panel) 20%, rgba(12, 17, 26, 0.8)), url('/img/bg/background-poketempest.png') 72% 28% / cover; }
  .card { padding: var(--s4); }
  .card > .card-head:first-child, .card > h2:first-child, .card > h3:first-child { margin: calc(var(--s4) * -1) calc(var(--s4) * -1) var(--s4); padding: 11px var(--s4); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .podium { gap: 8px; }
  .podium .card { padding: var(--s4) 6px; }
  .podium .p1 { padding-top: var(--s5); }
  .podium .avatar { width: 52px; height: 52px; }
  .podium .p1 .avatar { width: 64px; height: 64px; }
  .podium .place { font-size: 1.4rem; margin-bottom: 8px; }
  .podium a { font-size: 0.9rem; overflow-wrap: anywhere; }
  .podium .val { font-size: 0.85rem; }
  .featured { grid-template-columns: 96px 1fr; gap: var(--s4); }
  .featured img { width: 96px; height: 96px; }
  .filters { grid-template-columns: 1fr; }
  td, th { padding: 10px 12px; }
  .hide-sm { display: none; }
  .move { grid-template-columns: 40px 1fr; }
  .move .cd { grid-column: 2; }
  .road { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fact { padding: 10px; }
  .fact span { font-size: 0.64rem; letter-spacing: 0.08em; }
  .fact b { font-size: 1rem; }
  .home-sec { padding-top: var(--s7); }
  .final { padding: var(--s5) var(--s4); }
  .rules li { grid-template-columns: 36px 1fr; padding: var(--s4); }
  .news-row { padding: var(--s4); grid-template-columns: 1fr; }
  .news-row .meta { padding-top: 0; }
  .foot .wrap { grid-template-columns: 1fr; gap: var(--s5); }
  .brand b { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .anim [data-intro] { opacity: 1; }
}

/* ajustes da verificação no navegador */
.page-head .badge { background: rgba(8, 11, 18, 0.88); }
.page-head .badge.gold { background: linear-gradient(rgba(224, 172, 62, 0.14), rgba(224, 172, 62, 0.14)), rgba(8, 11, 18, 0.9); }
.page-head .badge.crystal { background: linear-gradient(var(--bolt-soft), var(--bolt-soft)), rgba(8, 11, 18, 0.9); }
.toolbar form.row { flex-wrap: nowrap; }
.toolbar form.row select { width: auto; min-width: 190px; }
.toolbar form.row input { width: 130px; }
@media (max-width: 640px) {
  .toolbar form.row { flex-wrap: wrap; width: 100%; }
  .toolbar form.row select { flex: 1 1 100%; }
  .toolbar form.row input { flex: 1; }
}
/* fichas: valor sempre na base, mesmo quando o rótulo quebra */
.fact { display: flex; flex-direction: column; }
.fact b { margin-top: auto; padding-top: 4px; }
/* a arte em 170% da largura do banner, para o recorte por seção também andar na horizontal */
@media (min-width: 641px) { .page-head { background-size: auto, 170% auto; } }
/* o que fica do lado direito do banner (status, selos) ganha fundo de painel: a arte pode ter um raio claro ali */
.page-head .status-pill { background: rgba(8, 11, 18, 0.9); border-color: var(--line); color: var(--muted); }
