/* =====================================================================
   playmatic2026 — Sistema de design
   ---------------------------------------------------------------------
   CONCEITO ........ "Curadoria de Arcade" — uma publicação editorial sobre
                     jogos mobile. Imagine uma revista premium impressa em
                     papel quente, com tinta profunda e brasa (ember) como
                     destaque. Editorial, humano, confiante — nunca genérico.
   HUMOR ........... Premium, calmo, com opinião. Tipografia com serifa de
                     caráter + grotesca limpa + mono editorial.
   PALETA .......... Tinta (ink) e papel quente como base; BRASA (#FF6A3D /
                     #DA3F12) como acento dominante; OURO (#F2C14E) e JADE
                     como acentos de apoio. Sem gradientes roxo-azul de IA.
   TIPOGRAFIA ...... Fraunces (display, serifa óptica) · Hanken Grotesk
                     (texto/UI) · Spline Sans Mono (kickers, notas, números).
   RITMO ........... Escala de 8px, contêiner 1200px, assimetria intencional,
                     pausas generosas entre seções.
   ASSINATURA ...... 1) cartões em forma de "bilhete de arcade" com picote e
                     entalhes; 2) selos de nota circulares em brasa;
                     3) numerais gigantes em serifa no ranking; 4) auras
                     radiais quentes + textura de grão; 5) arestas diagonais.
   TEMA ............ Claro (papel) e escuro (tinta), via prefers-color-scheme
                     e alternador; preferência guardada em localStorage.
   ===================================================================== */

/* ---------- Tokens: tema claro (padrão) ---------- */
:root {
  --bg: #F4EEE3;
  --bg-2: #ECE3D3;
  --surface: #FFFDF8;
  --surface-2: #FBF5EA;
  --surface-3: #F1E7D7;
  --text: #1E1726;
  --text-soft: #443c50;
  --muted: #6E6577;
  --line: rgba(30, 23, 38, 0.12);
  --line-strong: rgba(30, 23, 38, 0.22);
  --accent: #DA3F12;
  --accent-hot: #FF6A3D;
  --accent-ink: #FFF6EF;
  --accent-2: #A9760F;
  --accent-2-soft: #C79324;
  --jade: #18795D;
  --danger: #C03048;
  --shadow-sm: 0 1px 2px rgba(60, 40, 30, 0.08);
  --shadow-md: 0 10px 30px -12px rgba(60, 40, 30, 0.22);
  --shadow-lg: 0 30px 60px -24px rgba(60, 40, 30, 0.30);
  --aura-ember: rgba(218, 63, 18, 0.12);
  --aura-gold: rgba(169, 118, 15, 0.12);
  --grain-opacity: 0.4;

  --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --ff-mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", monospace;

  --container: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* ---------- Tokens: tema escuro ---------- */
:root[data-theme="dark"] {
  --bg: #0E0B13;
  --bg-2: #08060C;
  --surface: #17131F;
  --surface-2: #1E1929;
  --surface-3: #281F36;
  --text: #F3EEE6;
  --text-soft: #D6CFDD;
  --muted: #9C95A8;
  --line: rgba(243, 238, 230, 0.10);
  --line-strong: rgba(243, 238, 230, 0.18);
  --accent: #FF6A3D;
  --accent-hot: #FF824D;
  --accent-ink: #1A0B05;
  --accent-2: #F2C14E;
  --accent-2-soft: #E9B23A;
  --jade: #46C9A0;
  --danger: #FF6473;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px -16px rgba(0, 0, 0, 0.66);
  --shadow-lg: 0 40px 80px -28px rgba(0, 0, 0, 0.74);
  --aura-ember: rgba(255, 106, 61, 0.22);
  --aura-gold: rgba(242, 193, 78, 0.16);
  --grain-opacity: 0.55;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0B13;
    --bg-2: #08060C;
    --surface: #17131F;
    --surface-2: #1E1929;
    --surface-3: #281F36;
    --text: #F3EEE6;
    --text-soft: #D6CFDD;
    --muted: #9C95A8;
    --line: rgba(243, 238, 230, 0.10);
    --line-strong: rgba(243, 238, 230, 0.18);
    --accent: #FF6A3D;
    --accent-hot: #FF824D;
    --accent-ink: #1A0B05;
    --accent-2: #F2C14E;
    --accent-2-soft: #E9B23A;
    --jade: #46C9A0;
    --danger: #FF6473;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 16px 40px -16px rgba(0, 0, 0, 0.66);
    --shadow-lg: 0 40px 80px -28px rgba(0, 0, 0, 0.74);
    --aura-ember: rgba(255, 106, 61, 0.22);
    --aura-gold: rgba(242, 193, 78, 0.16);
    --grain-opacity: 0.55;
    color-scheme: dark;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--ff-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
/* textura de grão sutil sobre todo o site (assinatura) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
.h-display {
  font-size: clamp(2.7rem, 1.4rem + 6.2vw, 5.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); }
.h2 { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.85rem); }
.h3 { font-size: clamp(1.25rem, 1rem + 1.1vw, 1.6rem); }
p { text-wrap: pretty; }
.lead {
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);
  color: var(--text-soft);
  line-height: 1.55;
}

/* kicker editorial em mono */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: "";
  width: 1.6em;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.kicker--gold { color: var(--accent-2); }
.kicker--muted { color: var(--muted); }

.text-accent { color: var(--accent); }
.text-ember-fill {
  background: linear-gradient(110deg, var(--accent-hot), var(--accent) 60%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.serif-italic { font-style: italic; font-weight: 500; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 0.6rem + 2.2vw, 2.4rem);
  position: relative;
  z-index: 1;
}
main { position: relative; z-index: 1; display: block; }
.section { padding-block: clamp(3.4rem, 2rem + 6vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 1.2rem + 2vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 0.9rem; }
.eyebrow-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem;
}
.eyebrow-row .index {
  font-family: var(--ff-mono); font-size: 0.78rem; color: var(--muted);
  letter-spacing: 0.1em;
}

/* fundo com auras quentes */
.aura-wrap { position: relative; }
.aura {
  position: absolute; border-radius: 50%; filter: blur(80px);
  z-index: 0; pointer-events: none;
}

/* ---------- Botões ---------- */
.btn {
  --bg-btn: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55em;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-btn);
  color: var(--text);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s;
  position: relative;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(120deg, var(--accent-hot), var(--accent));
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 12px 26px -12px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn--primary:hover { box-shadow: 0 18px 38px -14px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.32); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--ink { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--ink:hover { opacity: 0.92; }
.btn--sm { padding: 0.68em 1.05em; font-size: 0.85rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600; color: var(--accent);
  font-size: 0.95rem;
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Selo de nota & estrelas ---------- */
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--accent-2); }
.stars svg { width: 1em; height: 1em; }
.stars .star-empty { color: var(--line-strong); }

.score-seal {
  position: relative;
  display: inline-grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.25), transparent 60%),
    linear-gradient(140deg, var(--accent-hot), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 10px 22px -10px var(--accent), inset 0 0 0 1px rgba(255,255,255,0.18);
  font-family: var(--ff-mono);
  flex: none;
}
.score-seal b { font-size: 1.18rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.score-seal span { font-size: 0.5rem; letter-spacing: 0.18em; opacity: 0.85; margin-top: 2px; }
.score-seal--sm { width: 2.7rem; height: 2.7rem; }
.score-seal--sm b { font-size: 0.92rem; }

/* tag / pílula de categoria */
.tag {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--ff-mono);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.38em 0.7em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: var(--surface-2);
  white-space: nowrap;
}
.tag--ember { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.tag--ad {
  color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent);
  background: color-mix(in srgb, var(--accent-2) 12%, var(--surface));
}

/* ====================================================================
   HEADER
   ==================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; height: 74px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--ff-display); font-weight: 600;
  font-size: 1.32rem; letter-spacing: -0.02em; color: var(--text);
  flex: none;
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand b { font-weight: 600; }
.brand .yr { color: var(--accent); }

.nav-primary { display: none; }
@media (min-width: 980px) {
  .nav-primary { display: flex; align-items: center; gap: 0.3rem; margin-inline: auto; }
}
.nav-primary a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-soft);
  padding: 0.55em 0.85em; border-radius: 999px;
  position: relative; transition: color 0.2s;
}
.nav-primary a::after {
  content: ""; position: absolute; left: 0.85em; right: 0.85em; bottom: 0.34em;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease);
}
.nav-primary a:hover { color: var(--text); }
.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after,
.nav-primary a.is-active::after { transform: scaleX(1); }
.nav-primary a[aria-current="page"],
.nav-primary a.is-active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  color: var(--text); background: var(--surface);
  transition: transform 0.2s var(--ease), border-color 0.2s, color 0.2s, background-color 0.2s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.header-cta { display: none; }
@media (min-width: 600px) { .header-cta { display: inline-flex; } }
.burger { display: inline-grid; }
@media (min-width: 980px) { .burger { display: none; } }

/* ---------- Menu móvel (overlay) ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 1.2rem clamp(1.1rem, 5vw, 2rem) 2rem;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease-out);
  visibility: hidden;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.mobile-nav { display: flex; flex-direction: column; gap: 0.2rem; margin-top: 2rem; }
.mobile-nav a {
  font-family: var(--ff-display); font-size: clamp(1.8rem, 1.2rem + 4vw, 2.6rem);
  font-weight: 600; color: var(--text); padding: 0.35em 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav a:hover { color: var(--accent); padding-left: 0.3em; }
.mobile-nav a .idx { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--muted); }
.mobile-menu-foot { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu-foot .mail { font-family: var(--ff-mono); color: var(--accent); font-size: 0.95rem; }

/* ====================================================================
   HERO
   ==================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 1rem + 6vw, 5.5rem); }
.hero .aura-1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; top: -12%; right: -8%; background: var(--aura-ember); }
.hero .aura-2 { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; bottom: -18%; left: -10%; background: var(--aura-gold); }
.hero-grid {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero-copy { max-width: 40rem; }
.hero h1 { margin-top: 1.1rem; }
.hero .lead { margin-top: 1.5rem; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.4rem;
  padding-top: 1.6rem; border-top: 1px dashed var(--line-strong);
}
.hero-meta .hm { display: flex; flex-direction: column; gap: 0.1rem; }
.hero-meta .hm b { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 600; }
.hero-meta .hm span { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* colagem de telas (assinatura) */
.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0.5rem;
}
.hero-collage figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.hero-collage figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.hero-collage .c1 { transform: rotate(-3deg) translateY(8px); }
.hero-collage .c2 { transform: rotate(2.5deg) translateY(-14px); z-index: 2; }
.hero-collage .c3 { transform: rotate(2deg) translateY(-6px); z-index: 2; }
.hero-collage .c4 { transform: rotate(-2deg) translateY(-26px); }
.hero-collage figcaption {
  position: absolute; left: 0.7rem; bottom: 0.7rem; right: 0.7rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.05em;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  padding: 1.6rem 0.4rem 0.2rem; margin: -1.6rem -0.4rem -0.2rem;
}
.hero-collage .pill-float {
  position: absolute; z-index: 5;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 0.5rem 0.9rem 0.5rem 0.5rem;
  display: flex; align-items: center; gap: 0.55rem;
  box-shadow: var(--shadow-md);
  font-size: 0.82rem; font-weight: 600;
}
.hero-collage .pill-float img { width: 30px; height: 30px; border-radius: 8px; }
.hero-collage .pill-float.pf-top { top: -10px; right: 8%; }
.hero-collage .pill-float.pf-bot { bottom: -14px; left: 4%; }
.hero-collage .pill-float .stars { font-size: 0.72rem; }

/* ====================================================================
   STATS BAR
   ==================================================================== */
.stats-bar { border-block: 1px solid var(--line); background: var(--surface-2); position: relative; z-index: 1; }
.stats-inner {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
@media (min-width: 760px) { .stats-inner { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem) 1.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.3rem;
}
@media (min-width: 760px) { .stat { border-bottom: none; } }
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--ff-display); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
  font-weight: 600; line-height: 1; display: flex; align-items: center; gap: 0.4rem;
}
.stat .num .stars { font-size: 0.7em; }
.stat .lab { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.genre-ticker {
  display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1.2rem 0 0;
}

/* ====================================================================
   RANKING / TOP DA SEMANA
   ==================================================================== */
.top-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.top-row {
  display: grid;
  grid-template-columns: auto 56px 1fr auto;
  align-items: center; gap: clamp(0.8rem, 0.4rem + 1.5vw, 1.6rem);
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.7rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color 0.25s;
  width: 100%; text-align: left;
}
.top-row:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.top-rank {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  width: 1.6em; text-align: center;
}
.top-row--first .top-rank {
  -webkit-text-stroke: 0;
  color: var(--accent);
}
.top-row--first {
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  border-radius: var(--radius);
  border-bottom-color: var(--line-strong);
  padding-inline: clamp(0.8rem, 0.4rem + 1.5vw, 1.4rem);
}
.top-icon { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); flex: none; box-shadow: var(--shadow-sm); }
.top-icon img { width: 100%; height: 100%; object-fit: cover; }
.top-main { min-width: 0; }
.top-main h3 { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.32rem); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.top-main .by { font-family: var(--ff-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.top-main .verdict { color: var(--text-soft); font-size: 0.92rem; margin-top: 0.35rem; max-width: 54ch; }
.top-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.top-aside .stars { font-size: 0.82rem; }
@media (max-width: 620px) {
  .top-row { grid-template-columns: auto 46px 1fr; grid-template-areas: "rank icon main" "rank icon aside"; row-gap: 0.5rem; }
  .top-rank { grid-area: rank; }
  .top-icon { grid-area: icon; width: 46px; height: 46px; }
  .top-main { grid-area: main; }
  .top-aside { grid-area: aside; align-items: flex-start; flex-direction: row; }
  .top-main .verdict { display: none; }
}

/* ====================================================================
   GRADE DE JOGOS / CATÁLOGO
   ==================================================================== */
.games-grid {
  display: grid; gap: clamp(1.1rem, 0.7rem + 1.5vw, 1.8rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.game-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  width: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.game-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.game-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.game-card:hover .game-card-media img { transform: scale(1.06); }
.game-card-media .tag { position: absolute; top: 0.7rem; left: 0.7rem; z-index: 3; backdrop-filter: blur(6px); }
.game-card-media .score-seal { position: absolute; bottom: -1.4rem; right: 1rem; z-index: 3; }
.card-hit { position: absolute; inset: 0; z-index: 2; background: transparent; border: 0; cursor: pointer; }
.card-hit:focus-visible { outline: 2.5px solid var(--accent); outline-offset: -3px; border-radius: var(--radius-lg); }
.qv-meta .rating-num { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--muted); }
.qv-meta .stars { color: var(--accent-2); font-size: 0.9rem; }
.game-card-body { padding: 1.3rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.game-card-head { display: flex; align-items: center; gap: 0.8rem; padding-right: 3rem; }
.game-card-head .ic { width: 46px; height: 46px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line-strong); flex: none; }
.game-card-head .ic img { width: 100%; height: 100%; object-fit: cover; }
.game-card-head h3 { font-size: 1.15rem; line-height: 1.1; }
.game-card-head .by { font-family: var(--ff-mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 2px; }
.game-card .desc { color: var(--text-soft); font-size: 0.9rem; flex: 1; }
.game-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.4rem; padding-top: 0.9rem; border-top: 1px dashed var(--line); }
.game-card-foot .stars { font-size: 0.82rem; }
/* picote de bilhete entre topo e corpo */
.game-card::after {
  content: ""; position: absolute; left: 0; right: 0;
  top: calc(62.5% * 0 + 0px); /* override per layout below */
  display: none;
}
.cards-cta { display: flex; justify-content: center; margin-top: clamp(2rem, 1.2rem + 2vw, 3.2rem); }

/* ====================================================================
   TRUST / VANTAGENS
   ==================================================================== */
.trust-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.trust-card {
  padding: 1.7rem 1.5rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.8rem;
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.trust-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.trust-card .ico-badge {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.trust-card .ico-badge svg { width: 26px; height: 26px; }
.trust-card h3 { font-size: 1.2rem; }
.trust-card p { color: var(--text-soft); font-size: 0.92rem; }
.trust-card .num-ghost {
  position: absolute; top: -0.5rem; right: 0.6rem;
  font-family: var(--ff-display); font-size: 4.5rem; font-weight: 600;
  color: var(--line); z-index: 0; line-height: 1;
}
.trust-card > * { position: relative; z-index: 1; }

/* ====================================================================
   GUIA (colunas)
   ==================================================================== */
.guide-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-col {
  padding: 1.8rem 1.6rem; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; gap: 0.9rem;
}
.guide-col h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 0.6rem; }
.guide-col h3 svg { width: 1.3rem; height: 1.3rem; color: var(--accent); flex: none; }
.guide-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.guide-col li { display: flex; gap: 0.65rem; font-size: 0.92rem; color: var(--text-soft); }
.guide-col li svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.18rem; }
.guide-col--flag li svg { color: var(--danger); }
.guide-col--good li svg { color: var(--jade); }
.guide-col--neutral li svg { color: var(--accent-2); }

/* ====================================================================
   METODOLOGIA (passos)
   ==================================================================== */
.steps { display: grid; gap: 1.2rem; counter-reset: step; grid-template-columns: 1fr; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; padding: 2rem 1.6rem 1.6rem;
  border-radius: var(--radius-lg); background: var(--surface-2);
  border: 1px solid var(--line);
}
.step .step-no {
  font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.15em;
  color: var(--accent); font-weight: 600;
}
.step h3 { font-size: 1.25rem; margin: 0.7rem 0 0.6rem; }
.step p { color: var(--text-soft); font-size: 0.92rem; }
.step .step-ico { position: absolute; top: 1.5rem; right: 1.4rem; color: var(--accent); opacity: 0.85; }
.step .step-ico svg { width: 30px; height: 30px; }

/* ====================================================================
   OPINIÃO EDITORIAL
   ==================================================================== */
.editorial {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: clamp(2rem, 1.2rem + 4vw, 4rem);
}
.editorial .aura { width: 30rem; height: 30rem; top: -10rem; right: -10rem; background: var(--aura-ember); }
.editorial blockquote {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(1.4rem, 1rem + 2.2vw, 2.4rem); line-height: 1.18;
  letter-spacing: -0.02em; max-width: 26ch;
}
.editorial blockquote .text-ember-fill { font-style: italic; }
.editorial .ed-body { display: grid; gap: 1.4rem; margin-top: 1.8rem; max-width: 60ch; }
.editorial .ed-body p { color: var(--text-soft); }
.editorial .ed-sign { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.8rem; }
.editorial .ed-sign .badge {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: var(--bg); font-family: var(--ff-display); font-weight: 600;
  flex: none;
}
.editorial .ed-sign .who b { display: block; font-family: var(--ff-display); }
.editorial .ed-sign .who span { font-family: var(--ff-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; }

/* ====================================================================
   DISCLOSURE (monetização)
   ==================================================================== */
.disclosure {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1.5px solid color-mix(in srgb, var(--accent-2) 35%, var(--line-strong));
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 60%),
    var(--surface);
  padding: clamp(2rem, 1.2rem + 3vw, 3.4rem);
}
.disclosure-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.disclosure-head .seal-ad {
  font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--accent-2); color: var(--accent-2); padding: 0.4em 0.7em; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 0.4em;
}
.disclosure-grid {
  display: grid; gap: 1.1rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.disclosure-item {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 1.3rem; border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  border: 1px solid var(--line);
}
.disclosure-item .ico { color: var(--accent); }
.disclosure-item .ico svg { width: 26px; height: 26px; }
.disclosure-item h3 { font-size: 1.08rem; }
.disclosure-item p { font-size: 0.88rem; color: var(--text-soft); }
.disclosure-foot { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.disclosure-foot p { font-size: 0.9rem; color: var(--text-soft); max-width: 52ch; }

/* ====================================================================
   FAQ
   ==================================================================== */
.faq { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; padding: 1.3rem 0.2rem; font-family: var(--ff-display);
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem); font-weight: 600; color: var(--text);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q .pm { position: relative; width: 24px; height: 24px; flex: none; color: var(--accent); }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; inset: 0; margin: auto; background: currentColor; border-radius: 2px; }
.faq-q .pm::before { width: 16px; height: 2.5px; }
.faq-q .pm::after { width: 2.5px; height: 16px; transition: transform 0.3s var(--ease); }
.faq-q[aria-expanded="true"] .pm::after { transform: rotate(90deg) scaleX(0); }
.faq-a { overflow: hidden; height: 0; transition: height 0.35s var(--ease); }
.faq-a-inner { padding: 0 0.2rem 1.4rem; color: var(--text-soft); max-width: 70ch; }
.faq-a-inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ====================================================================
   NEWSLETTER
   ==================================================================== */
.newsletter {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--text); color: var(--bg);
  padding: clamp(2rem, 1.2rem + 4vw, 4rem);
}
:root[data-theme="dark"] .newsletter { background: linear-gradient(135deg, var(--surface-3), var(--surface)); color: var(--text); border: 1px solid var(--line-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .newsletter { background: linear-gradient(135deg, var(--surface-3), var(--surface)); color: var(--text); border: 1px solid var(--line-strong); } }
.newsletter .aura { width: 26rem; height: 26rem; bottom: -14rem; left: -8rem; background: var(--aura-ember); }
.newsletter-grid { display: grid; gap: clamp(1.6rem, 1rem + 3vw, 3rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .newsletter-grid { grid-template-columns: 1fr 1fr; } }
.newsletter h2 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.8rem); }
.newsletter .lead { color: inherit; opacity: 0.82; margin-top: 1rem; }
.newsletter-form { display: grid; gap: 0.9rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; padding: 0.85em 1em; border-radius: var(--radius-sm);
  border: 1.5px solid color-mix(in srgb, currentColor 22%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  color: inherit; transition: border-color 0.2s, background-color 0.2s;
}
.newsletter .field input::placeholder { color: currentColor; opacity: 0.4; }
.field input:focus-visible { outline: none; border-color: var(--accent); background: color-mix(in srgb, currentColor 10%, transparent); }
.field.has-error input { border-color: var(--danger); }
.field .err { font-size: 0.78rem; color: var(--danger); min-height: 0; display: none; }
.field.has-error .err { display: block; }
.field-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .field-grid { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.84rem; opacity: 0.9; }
.consent input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.newsletter-form .btn--primary { margin-top: 0.3rem; }
.success-msg { display: none; }

/* ====================================================================
   FOOTER
   ==================================================================== */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); position: relative; z-index: 1; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.footer-top { display: grid; gap: 2.4rem; padding-block: clamp(2.6rem, 1.6rem + 3vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand { max-width: 30ch; }
.footer-brand .brand { font-size: 1.4rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; }
.footer-col h4 { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--text-soft); font-size: 0.94rem; transition: color 0.2s, padding-left 0.2s; }
.footer-col a:hover { color: var(--accent); padding-left: 0.25rem; }
.footer-col .mail { font-family: var(--ff-mono); color: var(--accent); font-size: 0.92rem; word-break: break-all; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding-block: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}
.footer-bottom .ad-note { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.04em; }

/* ====================================================================
   BACK TO TOP
   ==================================================================== */
.back-to-top {
  position: fixed; right: clamp(1rem, 0.5rem + 2vw, 2rem); bottom: clamp(1rem, 0.5rem + 2vw, 2rem);
  z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-to-top:hover { transform: translateY(-3px) scale(1.04); }
.back-to-top svg { width: 22px; height: 22px; }

/* ====================================================================
   MODAIS
   ==================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: clamp(1rem, 0.5rem + 2vw, 2rem);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg-2) 72%, transparent); backdrop-filter: blur(8px); }
.modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 560px;
  max-height: calc(100dvh - 3rem); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s var(--ease-out);
}
.modal.is-open .modal-card { transform: translateY(0) scale(1); }
.modal-card--wide { max-width: 720px; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px;
  border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--text); background: var(--surface-2);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 2;
}
.modal-close:hover { color: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal h2, .modal h3 { font-family: var(--ff-display); }
.modal .modal-kicker { margin-bottom: 0.8rem; }

/* quick view */
.qv-media { position: relative; margin: -0.5rem -0.5rem 1.2rem; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-3); }
.qv-media img { width: 100%; height: 100%; object-fit: cover; }
.qv-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.qv-head .ic { width: 58px; height: 58px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); flex: none; }
.qv-head .ic img { width: 100%; height: 100%; object-fit: cover; }
.qv-head h2 { font-size: 1.5rem; line-height: 1.05; }
.qv-head .by { font-family: var(--ff-mono); font-size: 0.74rem; color: var(--muted); }
.qv-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.qv-desc { color: var(--text-soft); margin-bottom: 1.3rem; }
.qv-cols { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-bottom: 1.5rem; }
@media (max-width: 480px) { .qv-cols { grid-template-columns: 1fr; } }
.qv-cols h4 { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.4rem; }
.qv-cols h4 svg { width: 0.78rem; height: 0.78rem; flex: none; }
.qv-cols .pros h4 { color: var(--jade); }
.qv-cols .cons h4 { color: var(--danger); }
.qv-cols ul { display: flex; flex-direction: column; gap: 0.5rem; }
.qv-cols li { display: flex; gap: 0.45rem; font-size: 0.88rem; color: var(--text-soft); }
.qv-cols li svg { width: 0.62rem; height: 0.62rem; flex: none; margin-top: 0.42rem; }
.qv-cols .pros svg { color: var(--jade); }
.qv-cols .cons svg { color: var(--danger); }
.qv-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* cookie banner */
.cookie-banner {
  position: fixed; left: clamp(0.7rem, 0.4rem + 1vw, 1.4rem); right: clamp(0.7rem, 0.4rem + 1vw, 1.4rem);
  bottom: clamp(0.7rem, 0.4rem + 1vw, 1.4rem); z-index: 250;
  max-width: 720px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 1.3rem 1.4rem;
  display: none; gap: 1rem; flex-direction: column;
  transform: translateY(16px); opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}
.cookie-banner.is-shown { display: flex; }
.cookie-banner.is-in { transform: translateY(0); opacity: 1; }
.cookie-banner .cb-head { display: flex; align-items: center; gap: 0.6rem; }
.cookie-banner .cb-head svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.cookie-banner .cb-head b { font-family: var(--ff-display); font-size: 1.15rem; }
.cookie-banner p { font-size: 0.88rem; color: var(--text-soft); }
.cookie-banner p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (min-width: 620px) { .cookie-banner { flex-direction: row; align-items: center; } .cookie-banner .cb-text { flex: 1; } }

/* cookie settings toggles */
.cookie-cats { display: flex; flex-direction: column; gap: 0.8rem; margin: 1.4rem 0; }
.cookie-cat {
  display: flex; align-items: flex-start; gap: 1rem; justify-content: space-between;
  padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2);
}
.cookie-cat .ct-text h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.cookie-cat .ct-text p { font-size: 0.82rem; color: var(--muted); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background-color 0.25s; }
.switch .track::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::before { transform: translateX(20px); }
.switch input:disabled + .track { opacity: 0.6; cursor: not-allowed; }
.switch input:focus-visible + .track { outline: 2.5px solid var(--accent); outline-offset: 2px; }

/* success modal */
.success-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--jade) 16%, var(--surface-2));
  color: var(--jade); border: 1px solid color-mix(in srgb, var(--jade) 35%, transparent);
}
.success-icon svg { width: 36px; height: 36px; }
.modal--center .modal-card { text-align: center; }
.modal--center .modal-card p { color: var(--text-soft); margin-top: 0.6rem; }
.modal--center .btn { margin-top: 1.6rem; }

/* age gate */
.age-gate .modal-card { text-align: center; }
.age-gate .pegi { font-family: var(--ff-mono); font-weight: 600; font-size: 1.4rem; color: var(--accent); border: 2px solid var(--accent); border-radius: 8px; padding: 0.2em 0.5em; display: inline-block; margin-bottom: 1.2rem; }
.age-gate .age-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ====================================================================
   PÁGINAS JURÍDICAS / DOC
   ==================================================================== */
.page-hero { padding-block: clamp(2.4rem, 1.4rem + 4vw, 4.6rem) clamp(1.4rem, 1rem + 2vw, 2.4rem); position: relative; overflow: hidden; }
.page-hero .aura { width: 34vw; height: 34vw; max-width: 440px; max-height: 440px; top: -10%; right: -6%; background: var(--aura-ember); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-family: var(--ff-mono); font-size: 0.76rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 0.9em; height: 0.9em; opacity: 0.6; }
.breadcrumb [aria-current] { color: var(--text); }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem); max-width: 20ch; }
.page-hero .updated { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--muted); margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.page-hero .updated svg { width: 1em; height: 1em; color: var(--accent); }

.doc-layout { display: grid; gap: clamp(1.6rem, 1rem + 3vw, 3.4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .doc-layout { grid-template-columns: 250px 1fr; } }
.doc-toc { position: relative; }
@media (min-width: 940px) { .doc-toc { position: sticky; top: 96px; } }
.doc-toc h2 { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.doc-toc ol { counter-reset: toc; display: flex; flex-direction: column; gap: 0.1rem; }
.doc-toc li { counter-increment: toc; }
.doc-toc a {
  display: flex; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: var(--radius-sm);
  font-size: 0.86rem; color: var(--text-soft); transition: background-color 0.2s, color 0.2s;
  border-left: 2px solid transparent;
}
.doc-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--ff-mono); font-size: 0.72rem; color: var(--accent); }
.doc-toc a:hover { background: var(--surface-2); color: var(--text); }
.doc-toc a.is-active { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); border-left-color: var(--accent); }

.doc-body { max-width: 74ch; }
.doc-body .legal-note {
  font-family: var(--ff-mono); font-size: 0.78rem; color: var(--muted);
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 2rem;
  display: flex; gap: 0.7rem; align-items: flex-start;
}
.doc-body .legal-note svg { width: 1.1rem; height: 1.1rem; color: var(--accent-2); flex: none; margin-top: 0.15rem; }
.doc-section { padding-block: 1.6rem; border-top: 1px solid var(--line); scroll-margin-top: 92px; }
.doc-section:first-of-type { border-top: none; }
.doc-section > h2 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); margin-bottom: 1rem;
  display: flex; gap: 0.7rem; align-items: baseline;
}
.doc-section > h2 .sec-no { font-family: var(--ff-mono); font-size: 0.9rem; color: var(--accent); font-weight: 600; flex: none; }
.doc-section h3 { font-size: 1.15rem; margin: 1.4rem 0 0.6rem; }
.doc-section p { color: var(--text-soft); margin-bottom: 0.9rem; }
.doc-section ul, .doc-section ol.li-list { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.4rem 0 1.1rem; }
.doc-section ul li { display: flex; gap: 0.6rem; color: var(--text-soft); }
.doc-section ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 0.62rem; flex: none; }
.doc-section ol.li-list { counter-reset: ll; }
.doc-section ol.li-list li { counter-increment: ll; display: flex; gap: 0.7rem; color: var(--text-soft); }
.doc-section ol.li-list li::before { content: counter(ll); font-family: var(--ff-mono); color: var(--accent); font-weight: 600; flex: none; }
.doc-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc-section strong { color: var(--text); }
.doc-section .data-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0 1.4rem; font-size: 0.86rem; }
.doc-section .data-table th, .doc-section .data-table td { text-align: left; padding: 0.7rem 0.8rem; border: 1px solid var(--line); vertical-align: top; }
.doc-section .data-table th { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.doc-section .data-table td { color: var(--text-soft); }
.doc-cta-back { margin-top: 2.4rem; }

/* ====================================================================
   CATÁLOGO (filtros)
   ==================================================================== */
.catalog-toolbar {
  position: sticky; top: 74px; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
  padding-block: 1rem;
  margin-bottom: 2rem;
}
.catalog-toolbar .toolbar-inner { display: flex; flex-direction: column; gap: 1rem; }
.filter-bar { display: flex; align-items: center; gap: 0.6rem; }
.filter-row { flex: 1 1 auto; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap svg { position: absolute; left: 1rem; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-wrap input {
  width: 100%; padding: 0.8em 1em 0.8em 2.7em; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text);
  transition: border-color 0.2s;
}
.search-wrap input:focus-visible { outline: none; border-color: var(--accent); }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-label { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 0.3rem; }
.chip {
  font-family: var(--ff-body); font-size: 0.84rem; font-weight: 500;
  padding: 0.5em 0.95em; border-radius: 999px;
  border: 1.5px solid var(--line-strong); color: var(--text-soft); background: var(--surface);
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.filter-sort { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; flex: none; }

/* Mobile: chips numa só linha com scroll horizontal, toolbar sem sticky */
@media (max-width: 760px) {
  .catalog-toolbar { position: static; padding-block: 0.85rem; }
  .filter-bar { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .filter-row {
    flex-wrap: nowrap; overflow-x: auto; gap: 0.4rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; padding-bottom: 2px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-label { display: none; }
  .filter-row .chip { flex: 0 0 auto; scroll-snap-align: start; }
  .filter-sort { margin-left: 0; }
  .filter-sort select { flex: 1 1 auto; }
}
.filter-sort select {
  padding: 0.5em 2em 0.5em 0.9em; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--text); font-size: 0.84rem; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7em center; background-size: 1em;
}
.catalog-count { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 1.2rem; }
.catalog-count b { color: var(--accent); }
.no-results { text-align: center; padding: 4rem 1rem; color: var(--muted); display: none; }
.no-results.is-shown { display: block; }
.no-results svg { width: 48px; height: 48px; margin: 0 auto 1rem; color: var(--line-strong); }
.game-card.is-hidden { display: none; }

/* ====================================================================
   SCROLL REVEAL
   ==================================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .game-card:hover, .btn:hover, .trust-card:hover { transform: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.08s !important; }
  .hero-collage figure { transform: none !important; }
}

/* utilidades */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-scroll { overflow: hidden; }
.divider-diag { position: relative; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 0.6rem; }
.flow > * + * { margin-top: 1rem; }
.text-center { text-align: center; }
.dim { opacity: 0.6; }
.flip-x { transform: scaleX(-1); }
.page-lead { margin-top: 1rem; max-width: 60ch; }
.modal-sub { color: var(--text-soft); margin-top: 0.5rem; }
.kicker--on-dark { color: inherit; opacity: 0.8; }
.footer-link-btn { color: var(--text-soft); font: inherit; padding: 0; background: none; border: 0; cursor: pointer; text-align: left; transition: color 0.2s, padding-left 0.2s; }
.footer-link-btn:hover { color: var(--accent); padding-left: 0.25rem; }
.inline-link-btn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.stat .num .ic-star { color: var(--accent-2); width: 0.9em; height: 0.9em; }
.consent label { font-family: var(--ff-body); text-transform: none; letter-spacing: 0; opacity: 1; font-size: 0.84rem; }
