/* =====================================================================
   PokéCollex — identidade visual
   Vinil azul-marinho de fichário + dourado de carta foil.
   O elemento-assinatura é a página do fichário (3×3 bolsos) com brilho
   holográfico que acompanha o ponteiro.
   ===================================================================== */
:root {
  --ink: #0d1322;        /* fundo: capa do fichário */
  --vinyl: #141c31;      /* painéis */
  --sleeve: #1b2540;     /* superfícies elevadas */
  --line: #2a3657;       /* bordas */
  --line-soft: #1f2944;
  --paper: #f1e9d8;      /* texto principal */
  --mist: #9ca7c1;       /* texto secundário */
  --dim: #828da9;        /* texto fraco (contraste 4,5:1 nos painéis) */
  --foil: #e6b84e;       /* dourado */
  --foil-hi: #f3cd6b;
  --foil-lo: #a77c25;
  --up: #4cc38a;
  --down: #f07167;


  /* Dourado como fundo (botões, selos) e o texto em cima dele */
  --foil-fill: #e6b84e;
  --foil-fill-hi: #f3cd6b;
  --on-foil: #1a1405;
  /* Transparências feitas a partir do fundo, dos painéis e do texto */
  --ink-rgb: 13, 19, 34;
  --vinyl-rgb: 20, 28, 49;
  --paper-rgb: 241, 233, 216;
  --hover: rgba(27, 37, 64, 0.6);
  --foil-tint: rgba(230, 184, 78, 0.08);
  --foil-mark: rgba(230, 184, 78, 0.22);
  --down-line: rgba(240, 113, 103, 0.5);
  --shadow: rgba(0, 0, 0, 0.45);
  /* Selos sobre fotos e miniaturas: escuros nos dois temas */
  --overlay: rgba(13, 19, 34, 0.85);
  --on-overlay: #f1e9d8;
  /* Gráficos (lidos pelo JavaScript) */
  --chart-text: #9ca7c1;
  --chart-grid: rgba(42, 54, 87, 0.45);
  --chart-cross: rgba(156, 167, 193, 0.45);
  --chart-label-bg: #1b2540;
  --chart-line: #e6b84e;
  --chart-area: rgba(230, 184, 78, 0.26);
  /* Brilho holográfico do título da página inicial */
  --shine-1: #e6b84e;
  --shine-2: #f3cd6b;
  --shine-3: #b8c8ff;
  --glow: rgba(230, 184, 78, 0.12);

  --font-display: 'Bricolage Grotesque Variable', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Instrument Sans Variable', 'Segoe UI', system-ui, sans-serif;

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  color-scheme: dark;
}

/* Tema claro: escolhido no menu, ou o do aparelho na primeira visita.
   O script no <head> marca <html data-theme> antes de desenhar a página (sem piscar). */
:root[data-theme='light'] {
  --ink: #f5f2ea;        /* fundo: papel */
  --vinyl: #ffffff;      /* painéis */
  --sleeve: #ece6d9;     /* superfícies elevadas */
  --line: #d3cbba;
  --line-soft: #e4ded1;
  --paper: #141c31;      /* texto principal: o azul-marinho da capa */
  --mist: #4b5675;
  --dim: #56617d;
  --foil: #7a580e;       /* dourado escuro para texto e links (contraste 4,5:1) */
  --foil-hi: #5f440a;
  --foil-lo: #c29433;
  --up: #16703f;
  --down: #b8352a;


  --foil-fill: #e6b84e;
  --foil-fill-hi: #f0c65c;
  --on-foil: #1a1405;
  --ink-rgb: 245, 242, 234;
  --vinyl-rgb: 255, 255, 255;
  --paper-rgb: 20, 28, 49;
  --hover: rgba(20, 28, 49, 0.05);
  --foil-tint: rgba(194, 148, 51, 0.12);
  --foil-mark: rgba(230, 184, 78, 0.45);
  --down-line: rgba(184, 53, 42, 0.45);
  --shadow: rgba(20, 28, 49, 0.16);
  --chart-text: #4b5675;
  --chart-grid: rgba(20, 28, 49, 0.08);
  --chart-cross: rgba(75, 86, 117, 0.45);
  --chart-label-bg: #141c31;
  --chart-line: #a77c25;
  --chart-area: rgba(194, 148, 51, 0.22);
  --shine-1: #7a580e;
  --shine-2: #a77c25;
  --shine-3: #3b4f9a;
  --glow: rgba(194, 148, 51, 0.14);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --ink: #f5f2ea;        /* fundo: papel */
    --vinyl: #ffffff;      /* painéis */
    --sleeve: #ece6d9;     /* superfícies elevadas */
    --line: #d3cbba;
    --line-soft: #e4ded1;
    --paper: #141c31;      /* texto principal: o azul-marinho da capa */
    --mist: #4b5675;
    --dim: #56617d;
    --foil: #7a580e;       /* dourado escuro para texto e links (contraste 4,5:1) */
    --foil-hi: #5f440a;
    --foil-lo: #c29433;
    --up: #16703f;
    --down: #b8352a;


    --foil-fill: #e6b84e;
    --foil-fill-hi: #f0c65c;
    --on-foil: #1a1405;
    --ink-rgb: 245, 242, 234;
    --vinyl-rgb: 255, 255, 255;
    --paper-rgb: 20, 28, 49;
    --hover: rgba(20, 28, 49, 0.05);
    --foil-tint: rgba(194, 148, 51, 0.12);
    --foil-mark: rgba(230, 184, 78, 0.45);
    --down-line: rgba(184, 53, 42, 0.45);
    --shadow: rgba(20, 28, 49, 0.16);
    --chart-text: #4b5675;
    --chart-grid: rgba(20, 28, 49, 0.08);
    --chart-cross: rgba(75, 86, 117, 0.45);
    --chart-label-bg: #141c31;
    --chart-line: #a77c25;
    --chart-area: rgba(194, 148, 51, 0.22);
    --shine-1: #7a580e;
    --shine-2: #a77c25;
    --shine-3: #3b4f9a;
    --glow: rgba(194, 148, 51, 0.14);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-wrap: break-word; /* palavras e links muito longos quebram a linha em vez de vazar */
  background: var(--ink);
  color: var(--paper);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--foil); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--foil-hi); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--foil); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--mist); }
.small { font-size: 0.875rem; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--mist); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--foil-fill); color: var(--on-foil); padding: 0.5rem 1rem; border-radius: var(--r-m);
}
.skip-link:focus { top: 1rem; }

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--paper); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em;
}
.brand:hover { color: var(--paper); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.55rem 1.15rem;
  border-radius: var(--r-m); border: 1px solid var(--line);
  background: transparent; color: var(--paper);
  font-weight: 600; text-decoration: none; line-height: 1.2;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative; overflow: hidden; /* ondulação do clique fica dentro do botão */
  transform: translate(var(--bx, 0px), var(--by, 0px)); /* efeito magnético (micro.js) */
}
.btn:hover { border-color: var(--mist); color: var(--paper); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-foil { background: var(--foil-fill); border-color: var(--foil-fill); color: var(--on-foil); }
.btn-foil:hover { background: var(--foil-fill-hi); border-color: var(--foil-fill-hi); color: var(--on-foil); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--down); border-color: var(--down-line); }
.btn-danger:hover { border-color: var(--down); color: var(--down); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0.35rem 0.8rem; font-size: 0.875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; align-content: start; } /* lado a lado, o rótulo e o campo ficam no topo, mesmo se o vizinho tiver uma dica embaixo */
.field > span { font-size: 0.875rem; color: var(--mist); font-weight: 500; }
.field small, .form-hint { color: var(--dim); font-size: 0.8rem; }
.pw-meter:not([hidden]) + .form-hint { display: none; } /* o medidor já diz o que falta na senha */
input:not([type='checkbox']):not([type='radio']):not([type='file']), select, textarea {
  width: 100%; min-height: 44px;
  padding: 0.6rem 0.8rem;
  background: var(--vinyl); border: 1px solid var(--line); border-radius: var(--r-m);
  transition: border-color 0.15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
/* O campo de data do navegador é um pouco mais alto: fica igual aos outros */
input[type='date'] { height: calc(1.55em + 1.2rem + 2px); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--foil); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--mist); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--foil); flex: none; }
.form-error { color: var(--down); font-size: 0.9rem; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.field-label { font-size: 0.875rem; color: var(--mist); font-weight: 500; }

/* Senha: botão de mostrar/esconder e indicador de força */
.pw-wrap { position: relative; }
input.pw-input:not([type='checkbox']):not([type='radio']):not([type='file']) { padding-right: 3.1rem; }
.pw-toggle {
  position: absolute; top: 2px; right: 2px; bottom: 2px; width: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--mist);
}
.pw-toggle:hover { color: var(--paper); }
.pw-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pw-meter { display: grid; gap: 0.35rem; }
.pw-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.pw-bars span { height: 4px; border-radius: 999px; background: var(--line); transition: background-color 0.2s; }
.pw-meter[data-level='0'] .pw-bars span:nth-child(-n + 1) { background: var(--down); }
.pw-meter[data-level='1'] .pw-bars span:nth-child(-n + 2) { background: var(--foil-lo); }
.pw-meter[data-level='2'] .pw-bars span:nth-child(-n + 3) { background: var(--foil); }
.pw-meter[data-level='3'] .pw-bars span { background: var(--up); }
.pw-meter-text { font-size: 0.8rem; color: var(--mist); }
.field .pw-mismatch { color: var(--down); font-size: 0.8rem; }
.pw-mismatch:empty { display: none; }
/* O Edge desenha um olhinho próprio nos campos de senha: fica só o nosso */
input::-ms-reveal, input::-ms-clear { display: none; }
input[aria-invalid='true'] { border-color: var(--down) !important; }

.notice { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--sleeve); padding: 0.75rem 0.9rem; font-size: 0.9rem; color: var(--paper); }
.notice.success { border-color: var(--foil-lo); }
.notice.error { border-color: var(--down-line); }
.center { text-align: center; }
.link-center { justify-self: center; }

/* ---------- Abas e segmentos ---------- */
.tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.tabs button {
  background: none; border: 0; padding: 0.6rem 0; margin-bottom: -1px;
  color: var(--mist); font-weight: 600; border-bottom: 2px solid transparent;
}
.tabs button[aria-selected='true'] { color: var(--paper); border-bottom-color: var(--foil); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; background: var(--vinyl); border: 1px solid var(--line-soft); border-radius: var(--r-m); padding: 3px; }
.seg button {
  border: 0; background: transparent; color: var(--mist);
  min-height: 34px; padding: 0.3rem 0.75rem; border-radius: 7px; font-weight: 600; font-size: 0.875rem;
}
.seg button[aria-pressed='true'] { background: var(--sleeve); color: var(--foil); }

/* ---------- Landing ---------- */
.landing { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.landing-top { padding: 1.25rem clamp(1rem, 4vw, 3rem); }
/* Página inicial em tela cheia: o texto fica no lado escuro da arte e o cartão de acesso
   por cima do fichário. A grade cresce com a tela (até 1720 px) e fica no meio. */
.landing-grid {
  flex: 1; width: 100%; max-width: 1720px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, clamp(400px, 25vw, 470px));
  grid-template-areas: 'pitch card' 'more card';
  column-gap: clamp(2.5rem, 8vw, 10rem); row-gap: 2.25rem;
  align-content: center; align-items: start;
  padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 5vw, 6rem) 2.5rem;
}
.pitch { grid-area: pitch; align-self: end; }
.pitch-more { grid-area: more; }
.landing-grid > .hero-stage { grid-area: stage; }
.landing-grid > .auth-card { grid-area: card; align-self: center; }
.pitch-kicker {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem;
  color: var(--foil); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
}
.pitch-kicker::before { content: ''; width: 1.75rem; height: 1px; background: currentColor; }
.pitch-title {
  font-size: clamp(2.7rem, 5.4vw, 6rem);
  font-weight: 760; line-height: 0.98; letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 96;
  max-width: 11ch;
}
.pitch-lead { margin-top: 1.25rem; max-width: 38ch; color: var(--mist); font-size: clamp(1.05rem, 0.9rem + 0.35vw, 1.3rem); }
.pitch-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; max-width: 46ch; }
.pitch-points li { position: relative; padding-left: 1.4rem; color: var(--paper); }
.pitch-points li::before {
  content: ''; position: absolute; left: 0; top: 0.5em; width: 9px; height: 12px;
  border: 1.5px solid var(--foil); border-radius: 2px;
}
.auth-card {
  background: var(--vinyl); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  position: sticky; top: 1.5rem;
}
.landing-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; min-width: 0; }
.landing-top .brand { flex: none; white-space: nowrap; } /* o nome nunca quebra; os botões é que vão para outra linha */
.offer { color: var(--mist); margin-bottom: 1.25rem; font-size: 0.95rem; }
.offer strong { color: var(--foil); }
.auth-card > .notice { margin-bottom: 1rem; }
.card-title { font-size: 1.35rem; }

/* Botão do Google (versão escura das diretrizes de marca do Google) */
.btn-google { background: #131314; border-color: #8e918f; color: #e3e3e3; gap: 0.75rem; }
.btn-google:hover { background: #1e1f20; border-color: #c4c7c5; color: #e3e3e3; }
/* No tema claro, a versão clara das diretrizes do Google */
:root[data-theme='light'] .btn-google { background: #ffffff; border-color: #747775; color: #1f1f1f; }
:root[data-theme='light'] .btn-google:hover { background: #f2f2f2; border-color: #747775; color: #1f1f1f; }
.or { display: flex; align-items: center; gap: 0.75rem; margin: 1.1rem 0; color: var(--dim); font-size: 0.8rem; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.kv-mini { display: grid; gap: 0.5rem; margin: 0; padding: 0.8rem 0.9rem; border-radius: var(--r-m); background: var(--sleeve); }
.kv-mini dt { color: var(--mist); font-size: 0.8rem; }
.kv-mini dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Tela curta (nova senha): o card fica no meio da tela, na largura e na altura */
.landing-narrow { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 3rem) 3rem; display: grid; align-content: center; }
.landing-narrow .auth-card { position: static; display: grid; gap: 1rem; }

/* Confirmação do e-mail */
.verify { max-width: 540px; display: grid; gap: 1rem; }
.verify .note { margin-top: 0; }
input.code-input:not([type='checkbox']):not([type='radio']):not([type='file']) {
  max-width: 250px; font-size: 1.6rem; letter-spacing: 0.45em; text-align: center;
  font-variant-numeric: tabular-nums; font-family: var(--font-display);
}
.landing-foot { padding: 1.5rem clamp(1rem, 4vw, 3rem) 2rem; }
.landing-foot p { max-width: 80ch; color: var(--dim); font-size: 0.8rem; }

.doc { max-width: 70ch; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 3rem) 4rem; }
.doc h1 { margin-bottom: 0.5rem; }
.doc h2 { margin: 2rem 0 0.5rem; }
.doc p { color: var(--mist); margin-bottom: 0.75rem; }
.doc-note { color: var(--foil) !important; }
.doc ul { color: var(--mist); margin: 0 0 0.75rem; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.doc li strong { color: var(--paper); }

/* ---------- Fichário (assinatura visual) ---------- */
.binder {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(7px, 1.4vw, 13px); padding: clamp(10px, 2vw, 18px);
  background: var(--vinyl); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: inset 0 0 0 6px rgba(var(--ink-rgb), 0.35);
}
.pocket {
  position: relative; aspect-ratio: 63 / 88; border-radius: 7px; overflow: hidden;
  background: rgba(var(--paper-rgb), 0.025);
  border: 1px solid rgba(var(--paper-rgb), 0.12);
  color: inherit; text-decoration: none; padding: 0; display: block;
}
.pocket::before { /* borda superior da capinha */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 11%; z-index: 2; pointer-events: none;
  border-bottom: 1px solid rgba(var(--paper-rgb), 0.08);
  background: linear-gradient(rgba(255, 255, 255, 0.05), transparent);
}
.pocket img { width: 100%; height: 100%; object-fit: cover; }
.pocket-no {
  position: absolute; left: 0; right: 0; bottom: 8%; text-align: center;
  font-size: 0.72rem; color: var(--dim); font-variant-numeric: tabular-nums;
}
.pocket.filled .pocket-no { display: none; }
.pocket .qty {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  background: var(--overlay); color: var(--foil-fill);
  font-size: 0.72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px;
}
.pocket.missing { border-style: dashed; }
.pocket.missing:hover { border-color: var(--foil-lo); }
.pocket .pocket-name {
  position: absolute; left: 6px; right: 6px; top: 40%; text-align: center;
  font-size: 0.72rem; color: var(--dim); line-height: 1.25;
}

/* ---------- Casca do app ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.75rem;
  padding: 1.4rem 1rem; border-right: 1px solid var(--line-soft); background: var(--ink);
}
.rail .brand { padding: 0 0.6rem; }
.rail-nav { display: grid; gap: 2px; }
.rail-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.7rem; border-radius: var(--r-m);
  color: var(--mist); text-decoration: none; font-weight: 550;
}
.rail-nav a:hover { color: var(--paper); background: var(--hover); }
.rail-nav a.active { color: var(--paper); background: var(--sleeve); box-shadow: inset 3px 0 0 var(--foil); }
.rail svg, .tabbar svg {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.access-pill {
  margin-top: auto; display: block; padding: 0.75rem 0.85rem;
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--mist); text-decoration: none; font-size: 0.85rem; line-height: 1.4;
}
.access-pill strong { display: block; color: var(--paper); font-weight: 650; }
.access-pill.warn { border-color: var(--foil-lo); }
.access-pill.warn strong { color: var(--foil); }
.view { width: 100%; max-width: 1680px; margin-inline: auto; padding: 2rem clamp(1rem, 4vw, 3rem) 5rem; }
.view:focus { outline: none; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head p { color: var(--mist); margin-top: 0.4rem; max-width: 60ch; }
.section { margin-top: 2.5rem; }
.section-head select { width: auto; min-width: 11rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem; }

.panel { background: var(--vinyl); border: 1px solid var(--line-soft); border-radius: var(--r-l); padding: 1.25rem; }
.empty { border: 1px dashed var(--line); border-radius: var(--r-l); padding: 2rem; display: grid; gap: 0.9rem; justify-items: start; }
.empty p { color: var(--mist); max-width: 52ch; }
.loading { color: var(--mist); padding: 2rem 0; }
.error-box { border: 1px solid var(--down-line); border-radius: var(--r-l); padding: 1.25rem; display: grid; gap: 0.75rem; justify-items: start; }
.chip {
  display: inline-flex; align-items: center; padding: 0.1rem 0.5rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--mist); font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.chip.gold { border-color: var(--foil-lo); color: var(--foil); }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* ---------- Carteira ---------- */
.value-label { color: var(--mist); font-size: 0.95rem; }
.value-big { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-top: 0.15rem; }
.value-change { margin-top: 0.4rem; font-weight: 600; }
.value-flows { color: var(--mist); font-size: 0.9rem; margin-top: 0.15rem; min-height: 1.4em; }
.chart-box { height: 290px; margin: 1.25rem 0 0.75rem; position: relative; }
.chart-box.small { height: 220px; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mist); text-align: center; padding: 1rem; font-size: 0.95rem; }
.chart-controls { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center; }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  margin-top: 1.75rem;
}
.stat { padding: 1rem 1rem 1rem 0; }
.stat + .stat { padding-left: 1rem; border-left: 1px solid var(--line-soft); }
.stat dt { color: var(--mist); font-size: 0.85rem; }
.stat dd { margin: 0.2rem 0 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; }

.holdings { list-style: none; margin: 0; padding: 0; }
.holding {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 0.9rem; align-items: center;
  padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line-soft);
  color: inherit; text-decoration: none;
}
.holding:hover { background: var(--hover); color: inherit; }
.thumb { width: 46px; aspect-ratio: 63 / 88; border-radius: 4px; overflow: hidden; background: var(--sleeve); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.holding-name { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.holding-meta { display: block; color: var(--mist); font-size: 0.85rem; margin: 0.1rem 0 0.35rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.holding-value { text-align: right; font-variant-numeric: tabular-nums; }
.holding-value strong { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 650; }
.holding-value span { font-size: 0.85rem; }
.note { color: var(--mist); font-size: 0.85rem; margin-top: 0.75rem; }

/* ---------- Coleção ---------- */
.collection-layout { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.binder-wrap { width: 100%; max-width: 760px; }
.binder-wrap:has(.binder-book.spread) { max-width: 1240px; }
.view[data-page='colecao-set'] .binder-wrap { margin-inline: auto; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.9rem; }
/* fichário estreito (tela baixa): os botões de página passam um pouco da largura dele, centralizados */
.pager { width: max(100%, 19rem); margin-inline: calc((100% - max(100%, 19rem)) / 2); }
.pager .btn { white-space: nowrap; }
.pocket { container-type: inline-size; }
@container (max-width: 84px) { .pocket .pocket-name { font-size: 0.6rem; left: 3px; right: 3px; } .pocket-no { font-size: 0.62rem; } }
.set-list { list-style: none; margin: 0; padding: 0; }
.set-list a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.set-list a:hover .set-name { color: var(--foil); }
.set-name { font-weight: 650; }
.set-count { color: var(--mist); font-size: 0.85rem; }
.bar { height: 6px; border-radius: 999px; background: var(--sleeve); margin-top: 0.45rem; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--foil); border-radius: inherit; min-width: 3px; }
/* Logo da coleção (TCGdex): altura reservada antes de carregar; a largura acompanha o logo dentro
   de uma faixa fixa (nada pula). Os logos são coloridos e alguns têm letras escuras sobre fundo
   transparente: no tema escuro ganham um fundo creme discreto; no claro, uma sombra leve. */
.set-row { display: grid !important; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 0.75rem; align-items: center; }
.set-row .set-name { grid-column: 2; }
.set-row .set-count { grid-column: 2; }
.set-row .bar { grid-column: 1 / -1; }
.set-row > .set-mark, .set-row > .set-badge { grid-row: 1 / span 2; }
.set-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 8px; box-sizing: border-box; }
.set-mark img { display: block; height: 100%; width: 100%; object-fit: contain; transition: opacity 0.2s; }
.set-mark img.pending { opacity: 0; }
.set-mark.sm { height: 36px; width: 5.5rem; padding: 4px 6px; }
.set-mark.lg { height: 68px; width: auto; min-width: 68px; max-width: 15rem; padding: 6px 10px; }
.set-mark.lg img { width: auto; max-width: 100%; }
.set-mark.xs { height: 22px; width: 22px; padding: 2px; vertical-align: -5px; margin-right: 0.4rem; }
.set-mark.is-symbol.sm { width: 36px; justify-self: center; }
.set-mark.is-symbol.lg { width: 68px; }
:root[data-theme='dark'] .set-mark { background: color-mix(in srgb, #f1e9d8 90%, transparent); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
:root[data-theme='light'] .set-mark img { filter: drop-shadow(0 1px 1px rgba(20, 28, 49, 0.25)); }
.set-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; border: 1px solid var(--foil-lo, var(--line)); border-radius: 8px; color: var(--foil); font-family: var(--font-display); font-weight: 750; letter-spacing: 0.04em; line-height: 1; white-space: nowrap; background: color-mix(in srgb, var(--foil) 10%, transparent); }
.set-badge.sm { height: 30px; min-width: 3.2rem; padding: 0 0.55rem; font-size: 0.8rem; justify-self: center; }
.set-badge.lg { height: 68px; min-width: 68px; padding: 0 14px; font-size: 1.35rem; }
.set-title { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.set-title h1 { margin: 0; }
.set-owned { margin-top: 0.4rem; }

/* ---------- Adicionar ---------- */
.dropzone {
  display: grid; justify-items: center; gap: 0.6rem; text-align: center;
  border: 1.5px dashed var(--line); border-radius: var(--r-l); padding: 2.25rem 1rem;
  cursor: pointer; color: var(--mist);
}
.dropzone:hover, .dropzone:focus-within { border-color: var(--foil-lo); color: var(--paper); }
.dropzone svg { width: 34px; height: 34px; fill: none; stroke: var(--foil); stroke-width: 1.5; }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-preview { position: relative; max-width: 320px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.scan-result { display: grid; gap: 1.25rem; }
/* Enquadrar a carta antes da leitura */
.scan-title { margin: 0 0 0.9rem; }
.cropper { display: grid; gap: 1.25rem; align-items: start; }
.crop-frame { width: min(100%, 360px); aspect-ratio: 63 / 88; border-radius: 14px; overflow: hidden; border: 2px solid var(--foil-lo); background: #0d1322; }
.crop-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.crop-canvas:active { cursor: grabbing; }
.crop-canvas:focus-visible { outline: 3px solid var(--foil); outline-offset: -3px; }
.crop-tools { display: grid; gap: 0.9rem; align-content: start; max-width: 460px; }
.crop-tools input[type='range'] { width: 100%; accent-color: var(--foil); min-height: auto; padding: 0; border: 0; background: none; }
.read-fix { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.5rem 0 0.75rem; }
.read-fix input { width: 7rem !important; flex: 0 0 auto; }
@media (min-width: 760px) { .cropper { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); } }
@media (max-width: 899px) { .scan-result .photo-preview { max-width: 200px; margin: 0; } }
.scan-side { min-width: 0; }
.photo-preview img { width: 100%; }
.photo-preview::after { /* faixa do rodapé, onde fica o número */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16%;
  border-top: 1.5px dashed var(--foil); background: var(--foil-tint);
}
.detected { margin: 1rem 0; color: var(--mist); }
.detected strong { color: var(--paper); }
.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.cand {
  display: grid; gap: 0.5rem; text-align: left; padding: 0.6rem;
  background: var(--vinyl); border: 1px solid var(--line-soft); border-radius: 12px; color: inherit;
}
.cand:hover { border-color: var(--foil-lo); }
.cand img { border-radius: 6px; aspect-ratio: 63 / 88; object-fit: cover; width: 100%; background: var(--sleeve); }
.cand-name { font-weight: 650; font-size: 0.92rem; line-height: 1.25; }
.cand-meta { color: var(--mist); font-size: 0.8rem; }
.confirm { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.confirm-img { border-radius: 12px; overflow: hidden; background: var(--sleeve); aspect-ratio: 63 / 88; }
.confirm-img img { width: 100%; height: 100%; object-fit: cover; }
.estimate { padding: 0.9rem 1rem; border-radius: var(--r-m); background: var(--sleeve); }
.estimate strong { font-family: var(--font-display); font-size: 1.35rem; display: block; }

/* ---------- Página da carta ---------- */
.card-detail { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.card-art { position: relative; border-radius: 14px; overflow: hidden; background: var(--sleeve); aspect-ratio: 63 / 88; }
.card-art-col { display: grid; gap: 0.75rem; justify-items: start; align-content: start; min-width: 0; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem 1.5rem; margin: 1.25rem 0; }
.kv dt { color: var(--mist); font-size: 0.85rem; }
.kv dd { margin: 0.15rem 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th { color: var(--mist); font-weight: 550; font-size: 0.85rem; }
details.disclosure { border-top: 1px solid var(--line-soft); padding-top: 1rem; margin-top: 1.5rem; }
details.disclosure summary { cursor: pointer; font-weight: 650; color: var(--foil); }
details.disclosure[open] summary { margin-bottom: 1rem; }

/* ---------- Faixa de cotações (topo da Carteira) ---------- */
.ticker { margin: 0 0 1.5rem; min-width: 0; }
.ticker-viewport {
  min-height: 4.1rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px;
  /* cores do widget do TradingView (ele lê estes tokens) */
  --tv-widget-background-color: transparent;
  --tv-widget-font-family: var(--font-body);
  --tv-widget-text-color: var(--paper);
  --tv-widget-price-text-color: var(--paper);
  --tv-widget-accent-color: var(--foil);
  --tv-widget-positive-color: var(--up);
  --tv-widget-negative-color: var(--down);
}
.ticker[data-source='tradingview'] .ticker-viewport {
  overflow: hidden; background: var(--vinyl); border: 1px solid var(--line-soft); border-radius: var(--r-m);
}
.ticker[data-source='tradingview'] tv-ticker-tape { display: block; height: 4.6rem; }
.ticker.rolling .ticker-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
}
.ticker-skeleton { height: 4.1rem; border-radius: var(--r-m); background: var(--vinyl); border: 1px solid var(--line-soft); }
.ticker-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.6rem; }
.ticker:not(.rolling) .ticker-track { scroll-snap-type: x proximity; }
.ticker.rolling .ticker-track { width: max-content; animation: ticker-roll var(--ticker-duration, 48s) linear infinite; }
.ticker.rolling:hover .ticker-track,
.ticker.rolling:focus-within .ticker-track,
.ticker.paused .ticker-track { animation-play-state: paused; }
/* duas cópias + o espaço entre elas: anda a largura de uma cópia e recomeça sem salto */
@keyframes ticker-roll { to { transform: translateX(calc(-50% - 0.3rem)); } }
.ticker-item {
  flex: 1 0 auto; min-width: 9.5rem; scroll-snap-align: start; display: grid; gap: 0.05rem;
  background: var(--vinyl); border: 1px solid var(--line-soft); border-radius: var(--r-m); padding: 0.55rem 0.85rem;
}
.ticker.rolling .ticker-item { flex: 0 0 auto; }
.ticker-label { color: var(--mist); font-size: 0.8rem; }
.ticker-value { font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.ticker-change { font-size: 0.85rem; white-space: nowrap; }
.ticker-when { color: var(--mist); font-size: 0.75rem; }
.ticker-at { color: var(--dim); font-size: 0.72rem; white-space: nowrap; }
.ticker-foot { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 0.45rem; }
.ticker-note { color: var(--mist); font-size: 0.78rem; margin: 0; flex: 1; }
.ticker-pause {
  flex: none; font: inherit; font-size: 0.78rem; color: var(--foil); background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.7rem;
}
.ticker-pause:hover { border-color: var(--foil); }
.ticker-pause[hidden] { display: none; }
@media (pointer: coarse) { .ticker-pause { min-height: 2.25rem; } }

/* Preço Brasil (tela da carta) */
.brazil { background: var(--vinyl); border: 1px solid var(--line-soft); border-radius: var(--r-l); padding: 1.25rem; display: grid; gap: 0.6rem; }
.brazil-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brazil-head h2 { margin: 0; }
.brazil-sub { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: var(--mist); letter-spacing: 0; }
.market-mix { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 0.6rem 0; display: grid; gap: 0.3rem; }
.market-mix .mix-title { font-weight: 600; color: var(--paper); margin: 0; }
.market-mix ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.market-mix p.muted { margin: 0; }
.mix-details > summary { cursor: pointer; color: var(--foil); font-weight: 600; font-size: 0.9rem; }
.mix-details[open] > summary { margin-bottom: 0.4rem; }
.liga-note { margin: 0; padding: 0.55rem 0.8rem; border-radius: var(--r-m); background: var(--sleeve); border-left: 3px solid var(--foil); color: var(--paper); font-size: 0.92rem; }
.chip-sm { font-size: 0.72rem; padding: 0.05rem 0.45rem; margin-left: 0.4rem; }
.brazil-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.brazil-price .muted { font-family: var(--font-body); font-size: 0.95rem; font-weight: 400; letter-spacing: 0; }
.brazil-form { max-width: 34rem; margin-top: 0.4rem; }
.brazil-history { margin-top: 0.8rem; }
.brazil-history .mix-title { font-weight: 600; color: var(--paper); margin: 0; }
.brazil-history ul { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.25rem; }
.mix-details > .brazil-form { margin-top: 0.6rem; }
.community-few { margin: 0; padding: 0.55rem 0.8rem; border-radius: var(--r-m); background: var(--sleeve); border-left: 3px solid var(--line); color: var(--mist); font-size: 0.92rem; }
.community-few strong { color: var(--paper); }

/* Botões de ligar e desligar (giroscópio da carta) */
.legend-item {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 36px;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.25rem 0.8rem; font-size: 0.85rem; color: var(--paper);
}
.legend-item:hover { border-color: var(--mist); }
.legend-item[aria-pressed="false"] { color: var(--mist); border-style: dashed; }
.toggle-chip[aria-pressed='true'] { border-color: var(--foil-lo); color: var(--foil); background: var(--foil-tint); border-style: solid; }
.toggle-chip[aria-pressed='false'] { color: var(--mist); }
.toggle-chip:disabled { opacity: 0.55; cursor: not-allowed; }

/* Vale graduar esta carta? (janela na página da carta) */
.calc-result { padding: 0.9rem 1rem; border-radius: var(--r-m); background: var(--sleeve); }
.calc-result p { margin: 0; }
.calc-result p + p { margin-top: 0.3rem; }

/* ---------- Notícias ---------- */
.live { position: relative; display: inline-flex; align-items: center; gap: 0.45rem; color: var(--mist); font-size: 0.875rem; }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.live.on::before { background: var(--up); }
/* pulso do "Ao vivo": um anel que cresce e some (só transform e opacity) */
.live.on::after {
  content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--up); opacity: 0; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item {
  display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 1rem; align-items: start;
  padding: 1rem 0 1rem 0.9rem; border-bottom: 1px solid var(--line-soft); border-left: 2px solid transparent;
  transition: border-color 1.5s;
}
.news-item.no-image { grid-template-columns: minmax(0, 1fr); }
.news-item.fresh { border-left-color: var(--foil); }
.news-item h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 650; line-height: 1.35; }
.news-item h3 a { color: var(--paper); text-decoration: none; }
.news-item h3 a:hover { color: var(--foil); }
.news-meta { color: var(--dim); font-size: 0.82rem; margin-top: 0.3rem; }
.news-summary { color: var(--mist); font-size: 0.92rem; margin-top: 0.4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-thumb { width: 112px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: var(--sleeve); }
.news-block + .news-block { margin-top: 2.5rem; }
.news-block-title { font-size: 1.15rem; margin-bottom: 0.4rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.video-grid + .news-more, .news-more { margin-top: 1rem; }
.news-controls { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center; }

/* Vídeos: miniatura primeiro, player só no clique */
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.video-item { background: var(--vinyl); border: 1px solid var(--line-soft); border-radius: var(--r-l); overflow: hidden; display: grid; align-content: start; }
.video-item.fresh { border-color: var(--foil-lo); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.video-play:focus-visible { outline-offset: -3px; }
.video-thumb { width: 100%; height: 100%; object-fit: cover; }
.video-play-icon {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 12px; background: var(--overlay); border: 1px solid rgba(241, 233, 216, 0.25);
  transition: background-color 0.2s ease;
}
.video-play-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--on-overlay);
}
.video-play:hover .video-play-icon, .video-play:focus-visible .video-play-icon { background: var(--foil-fill); }
.video-play:hover .video-play-icon::after, .video-play:focus-visible .video-play-icon::after { border-left-color: var(--on-foil); }
.video-short { position: absolute; top: 0.6rem; left: 0.6rem; background: var(--overlay); color: var(--on-overlay); border-color: rgba(241, 233, 216, 0.3); }
.video-body { padding: 0.85rem 1rem 1rem; display: grid; gap: 0.25rem; justify-items: start; }
.video-body h3 {
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 650; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-body .news-meta { margin-top: 0; }

/* ---------- Fórum ---------- */
.forum-list { list-style: none; margin: 0; padding: 0; }
.forum-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.95rem 0; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.forum-row:hover .forum-title { color: var(--foil); }
.forum-title { font-weight: 650; }
.forum-sub { color: var(--mist); font-size: 0.87rem; margin-top: 0.15rem; }
.forum-count { text-align: right; color: var(--mist); font-size: 0.85rem; white-space: nowrap; }
.forum-count strong { display: block; color: var(--paper); font-family: var(--font-display); font-size: 1.1rem; }
.crumbs { color: var(--mist); font-size: 0.9rem; margin-bottom: 0.5rem; }
.crumbs a { color: var(--mist); }
.post { padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.post-head { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; margin-bottom: 0.45rem; }
.post-author { font-weight: 650; }
.post-time { color: var(--dim); font-size: 0.82rem; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--paper); }
.post.deleted .post-body { color: var(--dim); font-style: italic; }
.post.fresh { background: linear-gradient(90deg, var(--foil-tint), transparent 60%); }
.link-btn { background: none; border: 0; padding: 0; color: var(--mist); font-size: 0.82rem; text-decoration: underline; }
.link-btn:hover { color: var(--paper); }
.link-btn:disabled { text-decoration: none; cursor: default; opacity: 0.7; }
.link-btn.mod { color: var(--foil); }
.link-btn.danger:hover, .link-btn.mod.danger { color: var(--down); }
.btn.danger { color: var(--down); border-color: var(--down-line); }
.post-actions { display: inline-flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin-left: auto; }
.post .notice { margin: 0.25rem 0 0.6rem; font-size: 0.85rem; }
.post.hidden-post .post-body { color: var(--dim); font-style: italic; }
.post.flagged { box-shadow: inset 3px 0 0 var(--foil-lo); padding-left: 0.9rem; }
.forum-row.fresh { background: var(--foil-tint); }
.chips-inline .chip { margin-left: 0.5rem; }
.chip.warn, .chip.status-em_analise { border-color: var(--foil-lo); color: var(--foil); }
.chip.status-oculta { border-color: var(--line); color: var(--mist); }
.chip.status-removida { border-color: var(--down-line); color: var(--down); }
.section-tight { margin-top: 1rem; }
.mod-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-top: 1rem; padding: 0.6rem 0.75rem; border: 1px dashed var(--foil-lo); border-radius: var(--r-m);
}
.mod-bar-label { color: var(--foil); font-weight: 650; font-size: 0.85rem; margin-right: 0.25rem; }

/* Conversa: avatar, citação, foto, votos e ferramentas */
.avatar {
  display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%;
  background: var(--sleeve); border: 1px solid var(--line); color: var(--foil); font-weight: 700; font-size: 0.8rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
a.post-author { color: var(--paper); text-decoration: none; }
a.post-author:hover { color: var(--foil); text-decoration: underline; }
.post-edited { color: var(--dim); font-size: 0.78rem; font-style: italic; }
.post-quote {
  margin: 0 0 0.6rem; padding: 0.55rem 0.8rem; border-left: 3px solid var(--foil-lo); border-radius: 0 var(--r-s) var(--r-s) 0;
  background: var(--sleeve); color: var(--mist); font-size: 0.9rem; display: grid; gap: 0.15rem;
}
.post-quote-author { color: var(--paper); font-weight: 600; font-size: 0.82rem; }
.post-quote-link { font-size: 0.8rem; justify-self: start; }
.post-quote.unavailable { font-style: italic; color: var(--dim); }
.post-image { display: block; margin-top: 0.7rem; max-width: min(100%, 520px); border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line-soft); }
.post-image img { width: 100%; height: auto; }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin-top: 0.6rem; }
.votes { display: inline-flex; gap: 0.35rem; }
.vote {
  display: inline-flex; align-items: center; gap: 0.3rem; min-height: 32px; padding: 0.2rem 0.6rem;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--mist); font-size: 0.82rem;
}
.vote svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vote:hover:not(:disabled) { border-color: var(--mist); color: var(--paper); }
.vote[aria-pressed='true'] { border-color: var(--foil-lo); color: var(--foil); background: var(--foil-tint); }
.vote:disabled { cursor: default; opacity: 0.75; }
.post-edit { margin-top: 0.4rem; }
.post:focus { outline: none; }
.topic-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.quote-pick { display: grid; gap: 0.3rem; justify-items: start; }
.quote-pick .post-quote { margin: 0; width: 100%; }

/* Campo de foto */
.photo-pick { display: grid; gap: 0.5rem; }
.photo-pick .btn svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.photo-pick-preview { display: flex; align-items: flex-end; gap: 0.75rem; }
.photo-pick-preview img { max-width: 180px; max-height: 140px; border-radius: var(--r-s); border: 1px solid var(--line); object-fit: cover; }

/* Busca */
.forum-search { margin-bottom: 1.25rem; }
.search-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-start; }
.search-bar .forum-search { flex: 1 1 320px; margin: 0; }
.search-bar select { width: auto; min-width: 220px; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { padding: 0.95rem 0; border-bottom: 1px solid var(--line-soft); display: grid; gap: 0.25rem; }
.search-title { font-weight: 650; color: var(--paper); text-decoration: none; }
.search-title:hover { color: var(--foil); }
.search-snippet { color: var(--mist); font-size: 0.92rem; }
mark { background: var(--foil-mark); color: var(--paper); border-radius: 3px; padding: 0 2px; }

/* Avisos (sininho) */
.badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--foil-fill); color: var(--on-foil); font-size: 0.72rem; font-weight: 750; display: inline-grid; place-items: center;
}
.badge.dot { position: absolute; top: 4px; right: calc(50% - 16px); min-width: 9px; width: 9px; height: 9px; padding: 0; margin: 0; }
.tabbar button { position: relative; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif { border-bottom: 1px solid var(--line-soft); }
.notif-btn {
  width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0.75rem; align-items: start;
  padding: 0.85rem 0.4rem; background: none; border: 0; text-align: left; color: inherit;
}
.notif-btn:hover { background: var(--hover); }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sleeve); color: var(--mist); }
.notif-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notif-text { display: grid; gap: 0.15rem; }
.notif-text strong { font-weight: 550; color: var(--mist); }
.notif-body { color: var(--dim); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif.unread .notif-text strong { color: var(--paper); font-weight: 650; }
.notif.unread .notif-icon { color: var(--foil); box-shadow: inset 0 0 0 1px var(--foil-lo); }

/* Página do usuário */
.profile-head { display: flex; align-items: center; gap: 1.25rem; margin: 0.5rem 0 1.25rem; }
.profile-head .avatar { font-size: 1.8rem; }
.profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.queue-image { display: block; max-width: 280px; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line); }

/* Sugestões de cartas enquanto digita */
.suggest { position: relative; flex: 1 1 220px; }
.inline-form .suggest input { width: 100%; }
.suggest-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  list-style: none; margin: 0; padding: 0.3rem; max-height: min(60vh, 420px); overflow-y: auto;
  background: var(--vinyl); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 14px 40px var(--shadow);
}
.suggest-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0.7rem; align-items: center; padding: 0.4rem 0.5rem; border-radius: var(--r-s); cursor: pointer; }
.suggest-item:hover, .suggest-item[aria-selected='true'] { background: var(--sleeve); }
.suggest-item[aria-selected='true'] { box-shadow: inset 3px 0 0 var(--foil); }
.suggest-thumb { width: 40px; aspect-ratio: 63 / 88; border-radius: 4px; overflow: hidden; background: var(--sleeve); }
.suggest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.suggest-text { display: grid; min-width: 0; }
.suggest-text strong { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-empty { padding: 0.6rem 0.7rem; color: var(--mist); font-size: 0.9rem; }

/* Desejos e alertas */
.confirm-extras { margin-top: 1rem; display: grid; gap: 0.4rem; }
.watch-picker .suggest { max-width: 560px; }
.watch-item {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 0.5rem 0.9rem; align-items: center;
  padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line-soft);
}
.watch-card { display: grid; min-width: 0; }
.watch-actions { grid-column: 2 / -1; }
.watch-item.fired { opacity: 0.85; }
.estimate-line { color: var(--mist); font-size: 0.9rem; }
.pocket.wished { border-color: var(--foil-lo); }
.pocket .wish-tag {
  position: absolute; top: 6px; left: 6px; z-index: 3; padding: 1px 7px; border-radius: 999px;
  background: var(--overlay); color: var(--foil-fill); font-size: 0.68rem; font-weight: 700;
}

/* Regras do fórum */
.rules { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.9rem; max-width: 70ch; }
.rules li::marker { color: var(--foil); font-weight: 700; }
.rules p, .rules-how { color: var(--mist); margin-top: 0.2rem; }
.rules-how { padding-left: 1.2rem; display: grid; gap: 0.5rem; max-width: 70ch; }

/* Janela de diálogo */
dialog.modal {
  width: min(92vw, 480px); padding: 0; border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--vinyl); color: var(--paper); box-shadow: 0 20px 60px var(--shadow);
}
dialog.modal::backdrop { background: rgba(5, 8, 15, 0.7); }
dialog.modal > form { padding: 1.4rem; }
.radio-list { border: 0; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.radio-list legend { font-size: 0.875rem; color: var(--mist); font-weight: 500; margin-bottom: 0.4rem; padding: 0; }
.radio-list input[type='radio'] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--foil); flex: none; }

/* Painel de moderação */
.queue { display: grid; gap: 1rem; }
.queue-card { background: var(--vinyl); border: 1px solid var(--line-soft); border-radius: var(--r-l); padding: 1.1rem 1.2rem; display: grid; gap: 0.6rem; }
.queue-card.urgent { border-color: var(--foil-lo); }
.queue-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.queue-card h3 a { color: var(--paper); text-decoration: none; }
.queue-card h3 a:hover { color: var(--foil); }
.queue-body {
  margin: 0; padding: 0.7rem 0.9rem; border-left: 3px solid var(--line); background: var(--ink); border-radius: 0 var(--r-s) var(--r-s) 0;
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow-y: auto; color: var(--paper); font-size: 0.92rem;
}
.other-texts { margin: 0; padding-left: 1.1rem; color: var(--mist); font-size: 0.88rem; }
.mod-list { list-style: none; margin: 0; padding: 0; }
.mod-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); }
.price-report > div:first-child { min-width: 0; }
.price-report .chips { margin: 0.35rem 0; }
.price-report-side { display: grid; justify-items: end; gap: 0.4rem; flex: none; }
@media (max-width: 560px) { .mod-list li.price-report { flex-direction: column; align-items: stretch; } .price-report-side { justify-items: start; } }
.mod-log { list-style: none; margin: 0; padding: 0; }
.mod-log li { padding: 0.75rem 0; border-bottom: 1px solid var(--line-soft); display: grid; gap: 0.15rem; }
.mod-log a { color: var(--foil); }

/* ---------- Lojas ---------- */
.map { height: 440px; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--vinyl); }
.stores-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-top: 1.25rem; }
.store-list { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow-y: auto; }
.store { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line-soft); }
.store.active { background: var(--foil-tint); }
.store-name { font-weight: 650; }
.store-address { color: var(--mist); font-size: 0.87rem; margin: 0.15rem 0 0.35rem; }
.inline-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }

/* ---------- Conta ---------- */
.plan { display: grid; gap: 1rem; }
.plan-status { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.plan-price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 750; letter-spacing: -0.03em; }
.plan-price small { font-size: 1rem; color: var(--mist); font-weight: 500; letter-spacing: 0; }
.sound-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.9rem; }
.sound-row .check { flex: 1 1 16rem; }
.sound-row + [role='status']:not(:empty) { display: block; margin-top: 0.5rem; }
.plan-area { display: grid; gap: 0.75rem; justify-items: start; }
.plan-area > p { margin: 0; }
.plan-area .form { justify-self: stretch; max-width: 30rem; }
.pay-choice { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); width: 100%; }
.pay-option { display: grid; gap: 0.3rem; text-align: left; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface, transparent); color: var(--paper); font: inherit; cursor: pointer; }
.pay-option strong { font-family: var(--font-display); font-size: 1.15rem; }
.pay-option span { color: var(--mist); font-size: 0.9rem; line-height: 1.45; }
.pay-option:hover:not(:disabled), .pay-option:focus-visible { border-color: var(--foil); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--foil) 28%, transparent); }
.pay-option:disabled { opacity: 0.5; cursor: not-allowed; }
.pix-box { display: grid; gap: 0.7rem; justify-items: start; width: 100%; max-width: 30rem; }
.pix-box > p { margin: 0; }
.pix-qr { background: #fff; padding: 10px; border-radius: 14px; width: 220px; height: 220px; }
.pix-code { width: 100%; font: 0.8rem/1.45 ui-monospace, Consolas, monospace; word-break: break-all; resize: none; padding: 0.6rem 0.7rem; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--paper); }
.plan-cancel { margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); width: 100%; }
.plan .note.warn { color: var(--paper); border-left: 3px solid var(--down); padding: 0.55rem 0.8rem; border-radius: 8px; background: color-mix(in srgb, var(--down) 12%, transparent); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.pay-list { list-style: none; margin: 0; padding: 0; }
.pay-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }

/* ---------- Avisos ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%);
  background: var(--sleeve); color: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.75rem 1.1rem; z-index: 60; max-width: min(92vw, 460px);
  box-shadow: 0 10px 30px var(--shadow); transition: transform 0.25s, opacity 0.25s;
  /* transparente quando fechado: sem texto, ele aparecia como uma lasca no rodapé
     (opacidade, e não visibility, para o leitor de tela continuar anunciando) */
  opacity: 0; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast.error { border-color: var(--down-line); }
.toast.success { border-color: var(--foil-lo); }

.tabbar, .scrim { display: none; }

/* ---------- Tema ---------- */
.theme-toggle {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  padding: 0.6rem 0.7rem; border: 0; border-radius: var(--r-m);
  background: none; color: var(--mist); font-weight: 550; text-align: left;
}
.theme-toggle:hover { color: var(--paper); background: var(--hover); }
.theme-toggle svg {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.rail .theme-toggle { margin-top: auto; }
.rail .theme-toggle + .access-pill { margin-top: -1rem; }
.theme-toggle.compact {
  width: auto; min-height: 40px; padding: 0.4rem 0.85rem; gap: 0.5rem; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem;
}
/* Nome do app comprido (APP_NAME) em tela estreita: os botões descem para a linha de baixo, à direita */
.landing-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; }
.landing-top .landing-actions { margin-left: auto; }

/* ---------- Movimento ----------
   Só transform e opacity (leve no celular). Com "reduzir movimento" ligado no aparelho,
   a regra no fim do arquivo desliga tudo e as telas aparecem prontas. */
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes pocket-in { from { opacity: 0; transform: translateY(12px) scale(0.95); } }
@keyframes glow-drift { to { transform: translate(-6vw, 8vh) scale(1.1); } }

/* Troca de tela: o conteúdo sobe de leve, em cascata */
/* backwards, e não both: com o estado final preso, cada bloco vira uma camada própria e
   listas que abrem por cima (como as sugestões de cartas) ficariam atrás do bloco seguinte */
.view > * { animation: rise-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.view > *:nth-child(2) { animation-delay: 40ms; }
.view > *:nth-child(3) { animation-delay: 80ms; }
.view > *:nth-child(n + 4) { animation-delay: 120ms; }

/* Cartas surgindo no fichário (Coleção) */
.binder .pocket { animation: pocket-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.binder .pocket:nth-child(2) { animation-delay: 35ms; }
.binder .pocket:nth-child(3) { animation-delay: 70ms; }
.binder .pocket:nth-child(4) { animation-delay: 105ms; }
.binder .pocket:nth-child(5) { animation-delay: 140ms; }
.binder .pocket:nth-child(6) { animation-delay: 175ms; }
.binder .pocket:nth-child(7) { animation-delay: 210ms; }
.binder .pocket:nth-child(8) { animation-delay: 245ms; }
.binder .pocket:nth-child(9) { animation-delay: 280ms; }

/* ---------- Página inicial ---------- */
.landing { position: relative; isolation: isolate; overflow-x: clip; }
/* Brilho dourado de fundo e uma grade bem fraca, presos à tela (sem custo ao rolar) */
.landing::before {
  content: ''; position: fixed; z-index: -1; pointer-events: none;
  top: -25vh; right: -15vw; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  animation: glow-drift 18s ease-in-out infinite alternate;
}
.landing::after {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--paper-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--paper-rgb), 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 20%, #000 10%, transparent 70%);
}
.pitch-title em {
  font-style: normal; color: var(--shine-1);
  background: linear-gradient(100deg, var(--shine-1) 25%, var(--shine-2) 42%, var(--shine-3) 50%, var(--shine-2) 58%, var(--shine-1) 75%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pitch > * { animation: rise-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.pitch > *:nth-child(2) { animation-delay: 80ms; }
.pitch > *:nth-child(3) { animation-delay: 160ms; }
.landing-grid > .hero-stage { animation: rise-in 0.6s 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.auth-card { animation: rise-in 0.6s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.pitch-more { animation: rise-in 0.6s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }

/* Painel de exemplo: valor contando, variação e um gráfico que se desenha */
.hero-stat {
  width: 15rem; margin-top: 2.25rem;
  display: grid; gap: 0.1rem; padding: 0.8rem 0.95rem 0.7rem;
  background: var(--vinyl); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px var(--shadow);
  transform: rotate(-1.2deg);
  animation: rise-in 0.7s 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.hero-stat-label { font-size: 0.75rem; color: var(--mist); }
.hero-stat-value { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.hero-stat-change { font-size: 0.8rem; font-weight: 600; }
/* o gráfico se desenha da esquerda para a direita: a moldura entra e o desenho anda ao contrário (só transform) */
.spark-wipe { display: block; overflow: hidden; margin-top: 0.35rem; animation: wipe-frame 1.4s 0.9s cubic-bezier(0.3, 0.6, 0.2, 1) backwards; }
.spark-wipe > .hero-spark { animation: wipe-content 1.4s 0.9s cubic-bezier(0.3, 0.6, 0.2, 1) backwards; }
@keyframes wipe-frame { from { transform: translateX(-100%); } }
@keyframes wipe-content { from { transform: translateX(100%); } }
.hero-spark { display: block; width: 100%; height: 34px; overflow: visible; }
.hero-spark path {
  fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* ---------- Arte de fundo (página inicial e nova senha) ----------
   Camadas, de baixo para cima: a arte, o vídeo do fichário da arte se abrindo com luz dourada
   (cobre a arte, que fica de reserva) e um véu na cor do fundo. Os dois temas usam a mesma arte
   e o mesmo vídeo: no escuro o véu escurece o lado do texto; no claro, é um véu creme que deixa
   o lado do texto quase papel e a arte aparecer mais clara do lado do fichário. */
.has-art::before, .has-art::after { content: none; } /* a arte substitui o brilho e a grade */
.landing-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: var(--ink); isolation: isolate;
}
.landing-art, .landing-film {
  position: absolute; top: -32px; left: -32px; width: calc(100% + 64px); height: calc(100% + 64px);
}
.landing-art {
  background: url('/img/fundo-inicio-escuro-1600.webp') 70% 50% / cover no-repeat;
  background-image: image-set(url('/img/fundo-inicio-escuro-1600.webp') 1x, url('/img/fundo-inicio-escuro.webp') 2x);
  translate: var(--px, 0px) var(--py, 0px);
  transition: translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: art-in 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
@media (min-width: 1700px) {
  .landing-art { background-image: url('/img/fundo-inicio-escuro.webp'); }
}
@keyframes art-in { from { opacity: 0; scale: 1.06; } }
/* O vídeo começa no mesmo quadro da arte e aparece aos poucos quando toca (mesmo enquadramento) */
.landing-film {
  object-fit: cover; object-position: 70% 50%; opacity: 0;
  translate: var(--px, 0px) var(--py, 0px);
  transition: opacity 1.6s ease, translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.landing-film.on { opacity: 1; }
.landing-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.93) 0%, rgba(var(--ink-rgb), 0.78) 28%, rgba(var(--ink-rgb), 0.2) 60%, rgba(var(--ink-rgb), 0.1) 100%),
    linear-gradient(0deg, rgba(var(--ink-rgb), 0.9) 0%, rgba(var(--ink-rgb), 0) 26%),
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.5) 0%, rgba(var(--ink-rgb), 0) 16%);
}
/* Tema claro: véu creme (a cor do fundo) mais forte, para o texto escuro ler bem e a arte ficar clara */
:root[data-theme='light'] .landing-bg::after {
  background:
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.95) 0%, rgba(var(--ink-rgb), 0.86) 30%, rgba(var(--ink-rgb), 0.52) 60%, rgba(var(--ink-rgb), 0.42) 100%),
    linear-gradient(0deg, rgba(var(--ink-rgb), 0.92) 0%, rgba(var(--ink-rgb), 0) 26%),
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.6) 0%, rgba(var(--ink-rgb), 0) 16%);
}

/* Painéis translúcidos por cima da arte (vidro fosco) */
.has-art .auth-card, .has-art .hero-stat {
  background: rgba(var(--vinyl-rgb), 0.74);
  border-color: rgba(var(--paper-rgb), 0.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
}
.has-art .auth-card { box-shadow: 0 32px 80px -24px var(--shadow), inset 0 1px 0 rgba(var(--paper-rgb), 0.06); }
.has-art .hero-stat { background: rgba(var(--vinyl-rgb), 0.6); }
.has-art .theme-toggle.compact {
  background: rgba(var(--vinyl-rgb), 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .has-art .auth-card, .has-art .hero-stat { background: var(--vinyl); }
}

/* Entrar, criar conta e esqueci: o painel novo entra do lado para onde a pessoa foi
   e o marcador dourado desliza até a aba escolhida */
@keyframes panel-in { from { opacity: 0; transform: translateX(var(--from, 16px)); } }
#auth-main[data-dir] > .form:not([hidden]), .auth-card > .form:not([hidden]) {
  animation: panel-in 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
#auth-main[data-dir='prev'] { --from: -16px; }
.auth-card .tabs { position: relative; }
.auth-card .tabs.slide button[aria-selected='true'] { border-bottom-color: transparent; }
.auth-card .tabs.slide::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; border-radius: 2px;
  width: var(--ind-w); transform: translateX(var(--ind-x)); background: var(--foil);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Troca de tema com fusão suave (navegadores com View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }

/* ---------- Fundo do app ----------
   Versão escura (ou clara) e bem discreta da arte, presa à tela atrás do conteúdo.
   Os painéis continuam opacos; o véu deixa o texto solto com o mesmo contraste de antes. */
body.app::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.6) 0%, rgba(var(--ink-rgb), 0.28) 70%, rgba(var(--ink-rgb), 0.2) 100%),
    url('/img/fundo-app-escuro.webp') 100% 50% / cover no-repeat;
}
:root[data-theme='light'] body.app::before {
  background-image:
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.6) 0%, rgba(var(--ink-rgb), 0.28) 70%, rgba(var(--ink-rgb), 0.2) 100%),
    url('/img/fundo-app-claro.webp');
}

/* ---------- Largura das telas ----------
   O conteúdo acompanha a tela até 1680 px e fica centralizado ao lado do menu.
   Telas de leitura ficam mais estreitas; telas curtas viram um card no meio. */
.view[data-page='forum'], .view[data-page^='forum-'], .view[data-page='avisos'], .view[data-page='conta'],
.view[data-page='desejos'], .view[data-page='adicionar'] { max-width: 1180px; }
.view[data-page='forum-t'], .view[data-page='forum-regras'] { max-width: 980px; }
.view[data-page='confirmar-email'] {
  max-width: 640px; padding-top: clamp(2rem, 8vh, 5rem);
  min-height: 100vh; min-height: 100svh; display: grid; align-content: center; /* no meio da tela também na altura */
}
.view[data-page='confirmar-email'] .verify {
  max-width: none; padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--vinyl); border: 1px solid var(--line-soft); border-radius: var(--r-l);
}

@media (min-width: 900px) {
  .scan-result { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; gap: 2rem; }
  .scan-result .photo-preview { margin: 0; }
}
/* A partir de ~1440 px: Carteira com gráfico e lista lado a lado, Notícias em duas colunas */
@media (min-width: 1440px) {
  .carteira-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); gap: 2.75rem; align-items: start; }
  .carteira-side > .section { margin-top: 0; }
  .news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; align-content: start; }
}
/* Coluna do gráfico ainda estreita (1440 a 1799 px): resumo em 2 x 2 */
@media (min-width: 1440px) and (max-width: 1799px) {
  .carteira-main .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carteira-main .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .carteira-main .stat:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
}
/* A partir de ~1700 px: Insights em três colunas e fichário maior */
@media (min-width: 1700px) {
  .collection-layout { grid-template-columns: minmax(0, 760px) minmax(0, 1fr); }
}

/* =====================================================================
   Animação e efeitos (item 20)
   Tudo anima só transform e opacity. Arte decorativa 100% original do PokéCollex (cartas, verso,
   pacote, faíscas); as imagens da TCGdex aparecem só para mostrar as cartas da pessoa.
   "Reduzir movimento" (aparelho) ou "Reduzir animações" (Conta) desligam no fim do arquivo.
   ===================================================================== */
:root { --glow-record: rgba(230, 184, 78, 0.5); }
/* no claro, a faixa do título é dourada: as letras escuras brilham em vez de desbotar */
:root[data-theme='light'] { --glow-record: rgba(194, 148, 51, 0.38); --foil-band: rgb(222, 168, 52); }

/* ---- Página inicial: partículas, fichário que se monta e foil no título ---- */
.landing-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.pitch-title { position: relative; }
/* Foil passando pelas letras, só com transform: uma cópia branca do título sobre preto, uma faixa
   clara que desliza por cima (multiply: só as letras ficam claras) e o conjunto somado à página
   (screen: o preto some). Parado (reduzir movimento), a camada nem aparece.
   Ela só aparece depois que o título termina de entrar: durante a entrada (opacidade < 1) a
   mistura ficaria presa dentro do título e o fundo preto da cópia apareceria. */
.title-foil {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background: #000; isolation: isolate; mix-blend-mode: screen;
  opacity: 0; animation: foil-ready 0.01s 0.95s forwards;
}
@keyframes foil-ready { to { opacity: 1; } }
.title-foil-text { color: #fff; -webkit-text-fill-color: #fff; }
.title-foil-band {
  position: absolute; top: 0; bottom: 0; left: -100%; width: 300%;
  background: linear-gradient(100deg, #000 41%, var(--foil-band, rgb(255, 238, 196)) 50%, #000 59%);
  mix-blend-mode: multiply; transform: translateX(-34%);
  animation: foil-band 7s 1s ease-in-out infinite;
}
@keyframes foil-band { 0% { transform: translateX(-34%); } 26%, 100% { transform: translateX(34%); } }
@media (forced-colors: active) { .title-foil { display: none; } }

.hero-stage { position: relative; width: 250px; margin-top: 2.1rem; perspective: 1000px; }
.binder-hero {
  padding: 10px; gap: 7px;
  transform: rotate(-2deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.binder-hero .pocket { overflow: visible; } /* as cartas caem de cima, por fora do bolso */
.binder-hero .pocket.empty { border-style: dashed; }
.hero-card {
  position: absolute; inset: 6% 7%; z-index: 1; overflow: hidden;
  border-radius: 5px; background: center / cover no-repeat; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  animation: card-drop 0.75s calc(0.75s + var(--i, 0) * 0.17s) cubic-bezier(0.2, 0.8, 0.3, 1.12) backwards;
}
.hero-card.c1 { background-image: url('/img/carta-generica-1.webp'); }
.hero-card.c2 { background-image: url('/img/carta-generica-2.webp'); }
.hero-card.c3 { background-image: url('/img/carta-generica-3.webp'); }
.hero-card::after { /* reflexo passando de vez em quando */
  content: ''; position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 240, 200, 0.55) 50%, transparent 58%);
  mix-blend-mode: screen; transform: translateX(-60%);
  animation: card-shine 6s calc(2.2s + var(--i, 0) * 0.3s) ease-in-out infinite;
}
@keyframes card-drop { from { opacity: 0; transform: translateY(-130%) rotate(-12deg) scale(1.06); } 55% { opacity: 1; } }
@keyframes card-shine { 0% { transform: translateX(-60%); } 22%, 100% { transform: translateX(60%); } }
.hero-stage .hero-stat { position: absolute; left: calc(100% - 3rem); bottom: -1.25rem; width: 13.5rem; margin: 0; }

/* ---- Cartas em 3D com reflexo holográfico (Coleção e página da carta) ---- */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tilt.tilting { transition-duration: 0.12s; }
.pocket.tilt.tilting { z-index: 2; }
.tilt > .holo-foil, .tilt > .holo-glare {
  position: absolute; inset: -50%; z-index: 3; pointer-events: none; opacity: 0;
  transition: opacity 0.35s;
}
.tilt > .holo-foil {
  background: linear-gradient(115deg, transparent 34%, rgba(243, 205, 107, 0.55) 42%, rgba(160, 200, 255, 0.45) 48%, rgba(240, 160, 220, 0.35) 53%, transparent 62%);
  mix-blend-mode: color-dodge;
  transform: translate(var(--hx, 0%), var(--hy, 0%));
}
.tilt > .holo-glare {
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.5), transparent);
  mix-blend-mode: overlay;
  transform: translate(var(--gx, 0%), var(--gy, 0%));
}
.tilt.tilting > .holo-foil { opacity: 0.7; }
.tilt.tilting > .holo-glare { opacity: 0.55; }
.binder-tools { margin-bottom: 0.75rem; }

/* ---- Fichário aberto (Coleção): duas páginas e a lombada no computador, uma no celular ----
   A folha que vira (.binder-leaf) é uma cópia posicionada por cima de uma página, com frente e
   verso; gira pela lombada só com transform, e as sombras (.leaf-shade e .fold-shadow) só mudam
   de opacidade. */
.binder-book {
  --sheet: var(--vinyl); /* a folha que vira é opaca: não deixa ver a página de baixo */
  --spine: clamp(16px, 1.7vw, 24px);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  padding: clamp(8px, 1.4vw, 14px); border-radius: 18px;
  background: var(--vinyl); border: 1px solid var(--line);
  box-shadow: inset 0 0 0 6px rgba(var(--ink-rgb), 0.35);
  perspective: 2400px;
}
.binder-book.spread { grid-template-columns: minmax(0, 1fr) var(--spine) minmax(0, 1fr); column-gap: clamp(4px, 0.6vw, 8px); }
.binder-book.can-flip { touch-action: pan-y; } /* arrasto para o lado vira a página; para cima e para baixo, rola */
.binder-slot { position: relative; min-width: 0; }
.binder-page {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1vw, 12px);
  padding: clamp(4px, 0.6vw, 7px); border-radius: 12px;
  background: rgba(var(--paper-rgb), 0.025); box-shadow: inset 0 0 0 1px rgba(var(--paper-rgb), 0.06);
}
.binder-spine {
  position: relative; border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(var(--paper-rgb), 0.08) 45%, rgba(var(--paper-rgb), 0.08) 55%, rgba(0, 0, 0, 0.32));
}
.binder-spine::before, .binder-spine::after { /* as argolas */
  content: ''; position: absolute; left: 18%; right: 18%; height: clamp(18px, 2.4vw, 30px); border-radius: 999px;
  background: linear-gradient(90deg, #7d6128, #e8cf93 50%, #7d6128); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.binder-spine::before { top: 20%; }
.binder-spine::after { bottom: 20%; }
.binder-leaf { position: absolute; z-index: 6; transform-style: preserve-3d; will-change: transform; pointer-events: none; }
.leaf-face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 12px; background: var(--sheet);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.leaf-face.back { transform: rotateY(180deg); }
.leaf-face > .binder-page, .binder-slot > .binder-page { height: 100%; }
.leaf-face .pocket { animation: none; }
.leaf-face.plastic { /* o verso da folha no celular: o plástico do fichário, com a marca dos bolsos */
  background:
    linear-gradient(rgba(var(--paper-rgb), 0.07) 1px, transparent 1px) 0 0 / 100% 33.34%,
    linear-gradient(90deg, rgba(var(--paper-rgb), 0.07) 1px, transparent 1px) 0 0 / 33.34% 100%,
    var(--sheet);
}
.leaf-shade { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: rgba(0, 0, 0, 0.55); }
.fold-shadow { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; border-radius: 12px; }
.fold-shadow.from-left { background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2) 35%, transparent 72%); }
.fold-shadow.from-right { background: linear-gradient(270deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2) 35%, transparent 72%); }
/* Bolso com carta: o verso da carta fica atrás e aparece até a imagem chegar (nunca um bolso vazio) */
.binder-book .pocket.filled { background: var(--sheet) url('/img/verso-carta.webp') center / cover no-repeat; }
/* As cartas entram em sequência só na primeira vez (as páginas viradas já chegam prontas) */
.binder-book.entering .pocket { animation: pocket-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--i, 0) * 35ms); }

/* ---- Abrir pacote ao adicionar carta ---- */
.pack-overlay {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; opacity: 0;
  background: rgba(var(--ink-rgb), 0.86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pack-stage { display: flex; align-items: center; gap: clamp(1.5rem, 6vw, 5rem); }
.pack-slot { position: relative; width: min(52vw, 250px); aspect-ratio: 490 / 900; }
.pack { position: absolute; inset: 0; z-index: 2; opacity: 0; }
.pack-top, .pack-body { position: absolute; inset: 0; }
.pack-top { clip-path: inset(0 0 84% 0); } /* a tira de cima, que rasga */
.pack-body { clip-path: inset(16% 0 0 0); }
.pack img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pack-body .pack-logo { position: absolute; left: 39%; top: 44%; width: 22%; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.pack-card { position: absolute; left: 15%; right: 15%; top: 22%; z-index: 1; aspect-ratio: 63 / 88; opacity: 0; perspective: 900px; }
.pack-card-inner { position: absolute; inset: 0; transform-style: preserve-3d; }
.pack-face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 6% / 4.3%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); background: var(--sleeve);
}
.pack-face img { width: 100%; height: 100%; object-fit: cover; }
.pack-back { transform: rotateY(180deg); }
.pack-binder {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 8px;
  width: clamp(96px, 16vw, 140px); background: var(--vinyl); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px var(--shadow);
}
.pack-pocket { position: relative; aspect-ratio: 63 / 88; border-radius: 4px; border: 1px solid rgba(var(--paper-rgb), 0.14); background: rgba(var(--paper-rgb), 0.03); }
.pack-pocket.target { border-color: var(--foil-lo); }
.pack-pocket.target::after {
  content: ''; position: absolute; inset: -6px; border-radius: 8px; opacity: 0;
  box-shadow: 0 0 18px 4px var(--foil-mark); transition: opacity 0.3s;
}
.pack-pocket.lit::after { opacity: 1; }
.pack-skip { position: absolute; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
@media (max-width: 700px) { .pack-stage { flex-direction: column; gap: 2rem; } }
/* 3D: o canvas cobre a camada; o .pack-slot vazio só marca onde o pacote fica */
.pack-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.pack-canvas.dragging { cursor: grabbing; }
.pack-3d .pack-skip { z-index: 2; }
.pack-hint {
  position: absolute; left: 50%; top: calc(1.25rem + env(safe-area-inset-top)); z-index: 2; margin: 0;
  transform: translateX(-50%); padding: 0.4rem 0.9rem; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: rgba(var(--paper-rgb), 0.08); border: 1px solid rgba(var(--paper-rgb), 0.14); color: var(--paper);
  font-size: 0.875rem; opacity: 0; transition: opacity 0.3s;
}
.pack-hint.show { opacity: 1; }
/* Menos movimento: a carta parada no lugar do pacote e uma cópia pequena no bolso, só com esmaecimento */
.pack-calm-card { inset: 50% 0 auto; aspect-ratio: 63 / 88; transform: translateY(-50%); }
.pack-pocket-card { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; opacity: 0; }

/* ---- Capas do fichário (arte em /img/capas/, escolhida na Conta) ----
   A capa aparece na moldura, na lombada e entre os bolsos. Com capa, o fichário fica "objeto
   escuro" nos dois temas: véu escuro por cima da textura e bolsos escuros com texto claro, para
   ler bem mesmo no metal e no neon. */
.binder-book[data-cover] {
  --sheet: #172036;
  background-color: #141c31; background-size: cover; background-position: center;
  background-image: linear-gradient(rgba(13, 19, 34, 0.28), rgba(13, 19, 34, 0.28)), var(--cover-img);
  border-color: rgba(241, 233, 216, 0.16);
}
.binder-book[data-cover='couro'] { --cover-img: url('/img/capas/couro.webp'); }
.binder-book[data-cover='metal'] { --cover-img: url('/img/capas/metal.webp'); }
.binder-book[data-cover='madeira'] { --cover-img: url('/img/capas/madeira.webp'); }
.binder-book[data-cover='carbono'] { --cover-img: url('/img/capas/carbono.webp'); }
.binder-book[data-cover='holografico'] { --cover-img: url('/img/capas/holografico.webp'); }
.binder-book[data-cover='neon'] { --cover-img: url('/img/capas/neon.webp'); }
.binder-book[data-cover] .pocket { border-color: rgba(241, 233, 216, 0.2); }
.binder-book[data-cover] .pocket:not(.filled) { background: rgba(13, 19, 34, 0.72); }
.binder-book[data-cover] .binder-page { background: rgba(13, 19, 34, 0.32); }
.binder-book[data-cover] .pocket-name, .binder-book[data-cover] .pocket-no { color: rgba(241, 233, 216, 0.72); }

.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.75rem; }
.cover-opt {
  position: relative; display: grid; gap: 0.35rem; padding: 0.4rem; border-radius: var(--r-m);
  background: transparent; border: 1px solid var(--line-soft); color: inherit; cursor: pointer; text-align: center;
}
.cover-opt:hover:not(:disabled) { border-color: var(--line); background: var(--hover); }
.cover-opt[aria-pressed='true'] { border-color: var(--foil); box-shadow: 0 0 0 1px var(--foil) inset; }
.cover-opt:disabled { cursor: not-allowed; }
.cover-swatch {
  display: block; aspect-ratio: 3 / 4; border-radius: 6px; background: var(--vinyl) center / cover no-repeat;
  border: 1px solid var(--line-soft);
}
.cover-swatch[data-cover='couro'] { background-image: url('/img/capas/couro-mini.webp'); }
.cover-swatch[data-cover='metal'] { background-image: url('/img/capas/metal-mini.webp'); }
.cover-swatch[data-cover='madeira'] { background-image: url('/img/capas/madeira-mini.webp'); }
.cover-swatch[data-cover='carbono'] { background-image: url('/img/capas/carbono-mini.webp'); }
.cover-swatch[data-cover='holografico'] { background-image: url('/img/capas/holografico-mini.webp'); }
.cover-swatch[data-cover='neon'] { background-image: url('/img/capas/neon-mini.webp'); }
.cover-opt.locked .cover-swatch { filter: grayscale(0.7) brightness(0.55); }
.cover-name { font-size: 0.78rem; line-height: 1.2; }
.cover-lock {
  position: absolute; top: 0.8rem; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--overlay); color: var(--on-overlay); font-size: 0.68rem; font-weight: 700;
}

/* ---- Conquistas (medalhas em /img/medalhas/) ---- */
.medal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 1.1rem 0.9rem; }
.medal { margin: 0; display: grid; justify-items: center; gap: 0.5rem; text-align: center; }
.medal img { height: 112px; width: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28)); }
.medal figcaption { display: grid; gap: 0.15rem; font-size: 0.8rem; color: var(--mist); }
.medal figcaption strong { color: var(--paper); font-size: 0.86rem; }
.medal.locked img { filter: grayscale(1) brightness(0.6); opacity: 0.5; }
.medal-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; }
.medal-row li { display: grid; justify-items: center; gap: 0.35rem; width: 84px; text-align: center; font-size: 0.75rem; color: var(--mist); }
.medal-row img { height: 64px; width: auto; }

/* Comemoração ao ganhar (com o mascote comemorando) */
.cheer-overlay {
  position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 5rem 1.25rem 1.25rem;
  background: rgba(var(--ink-rgb), 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cheer-card {
  width: min(420px, 100%); display: grid; justify-items: center; gap: 0.6rem; text-align: center;
  padding: 0 1.5rem 1.4rem; background: var(--vinyl); border: 1px solid var(--foil-lo); border-radius: var(--r-l);
  box-shadow: 0 30px 80px var(--shadow);
}
.cheer-mascot { width: 136px; height: auto; margin-top: -4.25rem; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35)); }
.cheer-kicker { margin: 0; color: var(--foil); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.cheer-card h2 { margin: 0; }
.cheer-medals { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.cheer-medals img { height: 104px; width: auto; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.3)); }
.cheer-card .btn-row { justify-content: center; margin-top: 0.4rem; }

/* ---- Mascote do PokéCollex (/img/mascote/): telas vazias, erros e carregamento ---- */
.empty::before {
  content: ''; display: block; width: 104px; height: 104px;
  background: url('/img/mascote/dormindo.webp') left center / contain no-repeat;
}
.empty.welcome::before { background-image: url('/img/mascote/feliz.webp'); } /* fichário vazio: boas-vindas */
.empty.section-tight::before { width: 76px; height: 76px; }
.error-box { grid-template-columns: 72px minmax(0, 1fr); align-items: center; column-gap: 1rem; }
.error-box::before {
  content: ''; grid-row: 1 / span 2; width: 72px; height: 72px;
  background: url('/img/mascote/triste.webp') center / contain no-repeat;
}
.error-box > * { grid-column: 2; }
.loading.skeleton .sk-block {
  aspect-ratio: auto; height: 120px; background: url('/img/mascote/pensando.webp') center / contain no-repeat;
  animation: mascot-bob 2.6s ease-in-out infinite;
}
.loading.skeleton .sk-block::after { content: none; }
@keyframes mascot-bob { 50% { transform: translateY(-6px); } }

/* ---- Faíscas (pacote rasgando, recorde da carteira) ---- */
.spark-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 90; pointer-events: none; }

/* ---- Carteira viva: linha se desenhando e brilho de recorde ---- */
.chart-mount { position: absolute; inset: 0; overflow: hidden; }
.value-big.record { position: relative; isolation: isolate; }
.value-big.record::after {
  content: ''; position: absolute; inset: -45% 0; z-index: -1; pointer-events: none; /* sem sobrar dos lados: no celular o valor ocupa a largura toda */
  background: radial-gradient(closest-side, var(--glow-record), transparent);
  opacity: 0.28; animation: record-glow 2.6s ease-in-out 2 backwards;
}
@keyframes record-glow { 0% { opacity: 0; } 50% { opacity: 0.8; } 100% { opacity: 0.28; } }
.record-chip { vertical-align: middle; }

/* ---- Troca de tela (View Transitions): fusão curta e a carta voando da lista ---- */
html.vt-route::view-transition-old(root), html.vt-route::view-transition-new(root) { animation-duration: 0.22s; }
::view-transition-group(carta-voa) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }

/* ---- Microinterações ---- */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: 0.22; transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
/* Carregando: esqueletos com um brilho passando */
.loading.skeleton { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.25rem; align-items: start; max-width: 720px; padding: 1.5rem 0; }
.sk-block { aspect-ratio: 63 / 88; border-radius: 10px; }
.sk-lines { display: grid; gap: 0.75rem; padding-top: 0.25rem; }
.sk-line { display: block; height: 0.85rem; border-radius: 6px; }
.sk-line:first-child { height: 1.3rem; }
.sk-block, .sk-line { position: relative; overflow: hidden; background: rgba(var(--paper-rgb), 0.07); }
.sk-block::after, .sk-line::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--paper-rgb), 0.09), transparent);
  transform: translateX(-100%); animation: sk-shine 1.4s ease-in-out infinite;
}
@keyframes sk-shine { to { transform: translateX(100%); } }
/* Itens das listas entrando em sequência */
.holdings > li, .news-list > li, .forum-list > li, .notif-list > li, .set-list > li, .search-results > li,
.store-list > li, .mod-log > li, .video-grid > li, .queue > .queue-card, .cand-grid > * {
  animation: rise-in 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
:is(.holdings, .news-list, .forum-list, .notif-list, .set-list, .search-results, .store-list, .mod-log, .video-grid, .queue, .cand-grid) > :nth-child(2) { animation-delay: 35ms; }
:is(.holdings, .news-list, .forum-list, .notif-list, .set-list, .search-results, .store-list, .mod-log, .video-grid, .queue, .cand-grid) > :nth-child(3) { animation-delay: 70ms; }
:is(.holdings, .news-list, .forum-list, .notif-list, .set-list, .search-results, .store-list, .mod-log, .video-grid, .queue, .cand-grid) > :nth-child(4) { animation-delay: 105ms; }
:is(.holdings, .news-list, .forum-list, .notif-list, .set-list, .search-results, .store-list, .mod-log, .video-grid, .queue, .cand-grid) > :nth-child(5) { animation-delay: 140ms; }
:is(.holdings, .news-list, .forum-list, .notif-list, .set-list, .search-results, .store-list, .mod-log, .video-grid, .queue, .cand-grid) > :nth-child(6) { animation-delay: 175ms; }
:is(.holdings, .news-list, .forum-list, .notif-list, .set-list, .search-results, .store-list, .mod-log, .video-grid, .queue, .cand-grid) > :nth-child(7) { animation-delay: 210ms; }
:is(.holdings, .news-list, .forum-list, .notif-list, .set-list, .search-results, .store-list, .mod-log, .video-grid, .queue, .cand-grid) > :nth-child(n + 8) { animation-delay: 245ms; }
/* Sininho balançando quando chega aviso */
.ring { transform-origin: 50% 12%; animation: bell-ring 0.9s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes bell-ring {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); }
  60% { transform: rotate(-7deg); } 75% { transform: rotate(3deg); }
}

/* =====================================================================
   Página inicial e fichário cabendo na tela (item 24)
   No computador, a página inicial cabe na altura da tela (100dvh) sem rolar: o texto, o fichário
   de exemplo e o cartão de acesso lado a lado, com os espaços diminuindo junto com a altura.
   Em telas baixas, primeiro o fichário de exemplo diminui e depois sai; o formulário nunca é
   cortado (se nem ele couber, a página rola). No celular a página rola, como antes.
   ===================================================================== */
@media (min-width: 881px) {
  .landing { min-height: 100vh; min-height: 100dvh; }
  .landing-top { padding-block: clamp(0.5rem, 1.6dvh, 1.25rem); }
  .landing-grid {
    grid-template-columns: minmax(0, 1fr) auto clamp(360px, 30vw, 460px);
    grid-template-areas: 'pitch stage card' 'more stage card';
    column-gap: clamp(1.5rem, 3.2vw, 4.5rem); row-gap: clamp(0.9rem, 3dvh, 2.25rem);
    padding-block: clamp(0.25rem, 1.6dvh, 1.75rem);
    align-items: center;
  }
  .pitch { align-self: end; }
  .pitch-more { align-self: start; }
  .pitch-kicker { margin-bottom: clamp(0.4rem, 1.6dvh, 1.1rem); }
  .pitch-title { font-size: clamp(2.1rem, min(5.2vw, 9.5dvh), 6rem); }
  .pitch-lead { margin-top: clamp(0.5rem, 2dvh, 1.25rem); font-size: clamp(0.95rem, min(0.9rem + 0.35vw, 2.5dvh), 1.3rem); }
  .pitch-points { gap: clamp(0.3rem, 1dvh, 0.6rem); }
  .landing-grid > .hero-stage { margin: 0; width: clamp(130px, min(17vw, 38dvh), 250px); align-self: center; }
  /* o painel do exemplo fica embaixo do fichário, sem invadir o cartão de acesso */
  /* o painel do exemplo fica EMBAIXO do fichário (ocupa espaço próprio), sem cobrir as cartas nem invadir o cartão de acesso */
  .hero-stage .hero-stat { position: relative; left: auto; right: auto; bottom: auto; margin: clamp(0.6rem, 1.8dvh, 1.1rem) -1rem 0 auto; width: min(13.5rem, calc(100% + 1rem)); }
  .landing-foot { padding-block: clamp(0.4rem, 1.4dvh, 1.5rem); }
  .landing-foot p { max-width: none; }

  /* Cartão de acesso mais compacto, com os espaços seguindo a altura da tela */
  .landing-grid .auth-card { padding: clamp(0.9rem, 2.6dvh, 1.75rem) clamp(1rem, 2.2vw, 1.75rem); top: 0; }
  .landing-grid .auth-card .offer { margin-bottom: clamp(0.5rem, 1.8dvh, 1.25rem); font-size: 0.9rem; }
  .landing-grid .auth-card .tabs { margin-bottom: clamp(0.5rem, 1.8dvh, 1.25rem); }
  .landing-grid .auth-card .tabs button { padding-block: clamp(0.35rem, 1.1dvh, 0.6rem); }
  .landing-grid .auth-card .form { gap: clamp(0.5rem, 1.5dvh, 1rem); }
  .landing-grid .auth-card .field { gap: 0.25rem; }
  .landing-grid .auth-card input:not([type='checkbox']):not([type='radio']):not([type='file']) {
    min-height: 40px; padding-block: clamp(0.4rem, 1.1dvh, 0.6rem);
  }
  .landing-grid .auth-card .btn { min-height: 42px; }
  .landing-grid .auth-card .or { margin: clamp(0.5rem, 1.6dvh, 1.1rem) 0; }
  /* Cadastro: nome e e-mail, senha e confirmação lado a lado */
  #panel-register { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0.75rem; }
  #panel-register > * { grid-column: 1 / -1; }
  #panel-register > .field { grid-column: auto; }
  #panel-register > .form-hint, #panel-register > .pw-meter { margin-top: -0.25rem; }
}
/* Telas mais baixas: sai a lista do que o PokéCollex faz e o painel do exemplo */
@media (min-width: 881px) and (max-height: 780px) {
  .landing-grid { grid-template-areas: 'pitch stage card'; }
  .pitch { align-self: center; }
  .pitch-more { display: none; }
}
@media (min-width: 881px) and (max-height: 680px) {
  .hero-stage .hero-stat { display: none; }
  .landing-foot p { font-size: 0.72rem; line-height: 1.35; }
  #panel-register > p.muted.small.center { display: none; } /* "Depois é só confirmar o e-mail...": a tela de confirmação explica */
}
/* Bem baixas (ex.: notebook de 768 px de altura com zoom de 125%) ou estreitas: o fichário de
   exemplo sai para o formulário e o texto caberem inteiros */
@media (min-width: 881px) and (max-width: 1023px), (min-width: 881px) and (max-height: 560px) {
  .landing-grid { grid-template-columns: minmax(0, 1fr) clamp(360px, 42vw, 460px); grid-template-areas: 'pitch card'; }
  .landing-grid > .hero-stage { display: none; }
}
@media (min-width: 881px) and (max-height: 560px) {
  .landing-top .theme-toggle.compact, .landing-top .btn { min-height: 36px; }
  .landing-grid { padding-block: 0.15rem; }
  .landing-grid .auth-card .offer { font-size: 0.85rem; }
  .landing-grid .auth-card .field { gap: 0.15rem; }
  .landing-foot { padding-block: 0.3rem; }
}
@media (min-width: 881px) and (max-height: 520px) {
  .landing-top { padding-block: 0.3rem; }
  .landing-grid { padding-block: 0; }
  .landing-grid .auth-card input:not([type='checkbox']):not([type='radio']):not([type='file']) { min-height: 36px; padding-block: 0.3rem; }
  .landing-grid .auth-card .btn { min-height: 38px; }
}

@media (min-width: 901px) and (max-height: 700px) {
  .set-hint { display: none; } /* a explicação dos bolsos tracejados: os nomes nos bolsos já dizem */
  .view[data-page^='colecao'] { padding-top: 1.25rem; }
}
/* Tela baixa: na página de uma coleção, os botões de página vão para o lado do fichário */
@media (min-width: 901px) and (max-height: 620px) {
  .view[data-page='colecao-set'] .binder-wrap { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 1.25rem; }
  .view[data-page='colecao-set'] .binder-tools { grid-column: 1 / -1; }
  .view[data-page='colecao-set'] .binder-book { width: min(1240px, var(--binder-max-w, 1240px)); }
  .view[data-page='colecao-set'] .pager { flex-direction: column; width: auto; margin: 0; }
  .view[data-page='colecao-set'] .pager > span { white-space: nowrap; }
  .view[data-page='colecao-set'] .page-head h1 { font-size: 1.6rem; }
}
/* Coleção: o fichário inteiro (3×3 e os botões de página) cabe na altura da tela no computador.
   A largura máxima vem do colecao.js (--binder-max-w, calculada pela altura livre); a lista
   "Progresso por coleção" fica ao lado e rola sozinha (--side-max-h). */
@media (min-width: 901px) {
  .view[data-page^='colecao'] { padding-bottom: 1.5rem; }
  .view[data-page^='colecao'] .page-head { margin-bottom: clamp(0.75rem, 2.5dvh, 1.5rem); }
  .binder-wrap, .binder-wrap:has(.binder-book.spread) { max-width: min(1240px, var(--binder-max-w, 1240px)); }
  /* O fichário aberto ocupa a largura; a lista "Progresso por coleção" fica embaixo */
  .view .collection-layout { grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
}
/* Tela larga: a lista fica ao lado do fichário aberto e rola sozinha */
@media (min-width: 1280px) {
  .view .collection-layout { grid-template-columns: minmax(0, min(1240px, var(--binder-max-w, 900px))) minmax(220px, 1fr); }
  .collection-side { display: flex; flex-direction: column; max-height: var(--side-max-h, none); min-height: 0; }
  .collection-side .set-list { overflow-y: auto; min-height: 0; overscroll-behavior: contain; padding-right: 0.4rem; scrollbar-width: thin; }
}

/* ---------- Celular e tablet ---------- */
@media (max-width: 880px) {
  /* Uma coluna: título, acesso e depois o que o PokéCollex faz */
  .landing-grid {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: 'pitch' 'stage' 'card' 'more';
    max-width: 560px; align-content: start; row-gap: 2rem;
  }
  .pitch { align-self: start; }
  .hero-stat { width: 13.5rem; margin-top: 1.75rem; }
  .auth-card { position: static; }
  .landing::before { width: 110vw; height: 110vw; animation: none; }
  /* A arte fica no alto da página e se dissolve na cor do fundo ao rolar */
  .landing-bg { position: absolute; bottom: auto; height: max(100svh, 760px); }
  .landing-bg::after {
    background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.55) 0%, rgba(var(--ink-rgb), 0.8) 30%, rgba(var(--ink-rgb), 0.94) 58%, var(--ink) 90%);
  }
  :root[data-theme='light'] .landing-bg::after {
    background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.62) 0%, rgba(var(--ink-rgb), 0.86) 26%, rgba(var(--ink-rgb), 0.95) 52%, var(--ink) 88%);
  }
}

@media (max-width: 960px) {
  .collection-layout, .stores-layout, .card-detail, .confirm { grid-template-columns: 1fr; }
  .card-art, .confirm-img { max-width: 280px; }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); z-index: 50;
    transform: translateX(-102%); transition: transform 0.22s ease;
  }
  .rail.open { transform: none; box-shadow: 0 0 40px var(--shadow); }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(5, 8, 15, 0.6); z-index: 40; }
  .scrim[hidden] { display: none !important; }
  .view { padding: 1.4rem 1rem calc(6.5rem + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(var(--ink-rgb), 0.96); border-top: 1px solid var(--line-soft);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(10px);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: none; border: 0; padding: 0.35rem 0; color: var(--mist);
    text-decoration: none; font-size: 0.7rem; font-weight: 600;
  }
  .tabbar a.active { color: var(--foil); }
  .tabbar .tab-add {
    width: 54px; height: 54px; margin: -22px auto 0; border-radius: 50%;
    background: var(--foil-fill); color: var(--on-foil); justify-content: center;
    box-shadow: 0 6px 18px rgba(230, 184, 78, 0.28), 0 0 0 5px var(--ink);
  }
  .tabbar .tab-add svg { width: 24px; height: 24px; }
  .tabbar .tab-add.active { color: var(--on-foil); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .news-item { grid-template-columns: minmax(0, 1fr) 84px; }
  .news-thumb { width: 84px; }
  .map { height: 320px; }
  .toast { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

/* Celular: a arte em retrato (só o fichário), que é menor e fica nítida na tela estreita.
   O fichário de exemplo sai para o formulário de acesso subir. */
@media (max-width: 760px) {
  .hero-stage { display: none; }
  .landing-grid { grid-template-areas: 'pitch' 'card' 'more'; }
  .loading.skeleton { grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; }
  .landing-art { background-image: url('/img/fundo-inicio-escuro-retrato.webp'); background-position: 50% 0; }
}

/* Menos movimento: o do aparelho ou o "Reduzir animações" da Conta (html[data-motion="reduce"]).
   As telas aparecem prontas; partículas, vídeo, reflexos e esqueletos ficam parados. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .landing-film, .landing-particles, .holo-foil, .holo-glare, .ripple { display: none; }
}
:root[data-motion='reduce'] *, :root[data-motion='reduce'] *::before, :root[data-motion='reduce'] *::after { transition: none !important; animation: none !important; }
:root[data-motion='reduce']::view-transition-group(*), :root[data-motion='reduce']::view-transition-old(*), :root[data-motion='reduce']::view-transition-new(*) { animation: none !important; }
:root[data-motion='reduce'] :is(.landing-film, .landing-particles, .holo-foil, .holo-glare, .ripple) { display: none; }

/* Faixa de "modo de teste" (Asaas em sandbox em produção) */
.test-banner { position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 9999; padding: 3px 12px; border-radius: 999px; background: rgba(20, 20, 24, .78); color: #ffd666; font: 600 11px/1.4 system-ui, sans-serif; letter-spacing: .02em; pointer-events: none; white-space: nowrap; }

/* ---------- Página inicial: texto para o Google, abaixo da primeira tela ---------- */
/* A primeira tela continua ocupando a altura inteira; o texto vem depois, ao rolar */
.landing-first { flex: none; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
@media (min-width: 881px) { .landing-first { min-height: 100vh; min-height: 100dvh; } }
.landing-info { position: relative; padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 5vw, 6rem) clamp(2rem, 5vw, 3.5rem); background: rgba(var(--ink-rgb), 0.95); border-top: 1px solid var(--line); }
.info-wrap { max-width: 1100px; margin: 0 auto; display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.info-section h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.9rem; color: var(--paper); }
.info-section > p { max-width: 70ch; color: var(--mist); margin: 0 0 0.8rem; }
.info-section a:not(.btn), .info-links a { color: var(--foil); }
.feature-grid { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.feature-grid li { background: var(--vinyl); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.feature-grid h3 { font-size: 1.05rem; margin: 0 0 0.4rem; color: var(--paper); }
.feature-grid p { margin: 0; color: var(--mist); font-size: 0.95rem; }
.plan-card { max-width: 520px; background: var(--vinyl); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.5rem; }
.plan-card p { margin: 0 0 0.7rem; }
.plan-amount strong { font-size: 2.6rem; line-height: 1; color: var(--foil); }
.plan-amount span { color: var(--mist); }
.plan-trial { color: var(--paper); }
.plan-card ul { margin: 0 0 1.1rem; padding-left: 1.2rem; color: var(--mist); display: grid; gap: 0.3rem; }
.faq-item { border-top: 1px solid var(--line); padding: 0.2rem 0; }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 0.85rem 0; font-weight: 650; color: var(--paper); list-style-position: outside; }
.faq-item summary:focus-visible { outline: 2px solid var(--foil); outline-offset: 2px; }
.faq-item p { margin: 0 0 1rem; max-width: 70ch; color: var(--mist); }
.info-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; padding-top: 0.5rem; }
