:root {
  --bg: #0a0a1a;
  --bg-alt: #10102a;
  --surface: rgba(255,255,255,0.05);
  --surface-strong: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --text: #f2f1fb;
  --text-dim: #b1aed0;
  --accent-text: #ff7ab3;
  --grad-a: #4f8bff;
  --grad-b: #b93dff;
  --grad-c: #ff5fa2;
  --grad-d: #ff9b45;
  --accent-grad: linear-gradient(90deg, var(--grad-a), var(--grad-b) 45%, var(--grad-c) 75%, var(--grad-d));
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 80px -20px rgba(80, 30, 160, 0.55);
  --header-h: 72px;
  --maxw: 1180px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f3fb;
  --bg-alt: #ffffff;
  --surface: rgba(20,10,50,0.04);
  --surface-strong: rgba(20,10,50,0.07);
  --border: rgba(20,10,50,0.12);
  --text: #17142b;
  --text-dim: #4f4a6e;
  --accent-text: #b5175f;
  --shadow-lg: 0 30px 70px -25px rgba(90, 60, 170, 0.3);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f3fb;
    --bg-alt: #ffffff;
    --surface: rgba(20,10,50,0.04);
    --surface-strong: rgba(20,10,50,0.07);
    --border: rgba(20,10,50,0.12);
    --text: #17142b;
    --text-dim: #4f4a6e;
    --accent-text: #b5175f;
    --shadow-lg: 0 30px 70px -25px rgba(90, 60, 170, 0.3);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  margin: 0 0 0.4em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

p { color: var(--text-dim); margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 10px;
}

.section-lead {
  max-width: 680px;
  font-size: 1.05rem;
}
.section-lead a,
.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feature-card p a,
.faq-list p a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: auto;
}

.brand-icon { width: 34px; height: 34px; border-radius: 9px; }

/* Logo theme swap: dark badge icon by default, transparent light-mode glyph in light theme. */
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: inline-block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-dark { display: none; }
  :root:not([data-theme="dark"]) .logo-light { display: inline-block; }
}
.hero-logo.logo-light,
.brand-icon.logo-light { border-radius: 0; box-shadow: none; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--text); }
.main-nav a.active { font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 12px;
}
.lang-switch a { color: var(--text-dim); }
.lang-switch a:hover { color: var(--text); }
.lang-switch .lang-current { color: var(--text); }
.lang-switch span + a::before,
.lang-switch a + span::before { content: "·"; margin-right: 6px; color: var(--text-dim); }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-strong); }
.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-sun { display: block; }
  :root:not([data-theme="dark"]) .icon-moon { display: none; }
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(255, 60, 150, 0.55);
}
.btn-light { background: #fff; color: #1a1030; box-shadow: none; }
.btn-small { padding: 11px 22px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(90,60,255,0.32), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255,70,150,0.24), transparent 45%),
    var(--bg-alt);
}

.hero-glow {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
.hero-glow-a { background: #6a3bff; top: -160px; left: -120px; }
.hero-glow-b { background: #ff4f9e; bottom: -200px; right: -100px; }

.hero-piece {
  position: absolute;
  font-size: 2.4rem;
  opacity: 0.3;
  filter: drop-shadow(0 0 12px rgba(180,100,255,0.6));
  z-index: 0;
  pointer-events: none;
}
.hero-piece-1 { top: 14%; left: 6%; transform: rotate(-15deg); }
.hero-piece-2 { bottom: 12%; left: 12%; font-size: 1.6rem; transform: rotate(20deg); }
.hero-piece-3 { top: 8%; right: 8%; font-size: 3rem; transform: rotate(12deg); }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-logo {
  width: 68px; height: 68px;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px -8px rgba(180,60,255,0.6);
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  line-height: 1.02;
  margin-bottom: 18px;
}
.hero-copy h1,
.page-hero h1 {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h1-claim {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 1.06rem;
  max-width: 500px;
}
.page-hero .hero-desc { max-width: 680px; }

.hero-badges { display: flex; gap: 14px; margin: 24px 0 14px; flex-wrap: wrap; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--text-dim);
}
.store-badge strong { color: var(--text); font-size: 0.92rem; }
.store-badge-light { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.85); }
.store-badge-light strong { color: #fff; }

.hero-note { font-size: 0.85rem; max-width: 420px; }

.hero-visual {
  position: relative;
  aspect-ratio: 1.15 / 1;
}

.device {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255,255,255,0.1);
  background: #000;
}
.device img { display: block; width: 100%; height: auto; }
.device-main { width: 88%; right: 0; top: 0; }
.device-secondary { width: 52%; left: 0; bottom: 0; border-width: 5px; }

/* Lighter hero variant for content subpages. */
.page-hero { padding: 64px 0 72px; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.12;
  margin-top: 4px;
}
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0 0 18px;
}
.breadcrumbs a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs a:hover { color: var(--text); }

/* ---------- Facts strip ---------- */
.facts {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.facts-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding-top: 26px;
  padding-bottom: 26px;
  text-align: center;
}
.facts strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.facts span { font-size: 0.88rem; color: var(--text-dim); font-weight: 500; }

/* ---------- Features ---------- */
.features { padding: 100px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.feature-grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(180,100,255,0.4); }

.feature-icon {
  width: 50px; height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; margin: 0; }

.grad-1 { background: linear-gradient(135deg, #ff5fa2, #ff9b45); }
.grad-2 { background: linear-gradient(135deg, #4f8bff, #7a5cff); }
.grad-3 { background: linear-gradient(135deg, #ff9b45, #ffd24f); }
.grad-4 { background: linear-gradient(135deg, #b93dff, #ff5fa2); }
.grad-5 { background: linear-gradient(135deg, #34d1c0, #4f8bff); }
.grad-6 { background: linear-gradient(135deg, #7a5cff, #b93dff); }

/* ---------- Play styles ---------- */
.difficulty { padding: 100px 0; background: var(--bg-alt); }

.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.difficulty-grid-3 { grid-template-columns: repeat(3, 1fr); }

.diff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}
.diff-card p { font-size: 0.93rem; margin: 0; }
.diff-card ul { margin: 0; padding: 0; list-style: none; }
.diff-card li {
  font-size: 0.93rem;
  color: var(--text-dim);
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.diff-card li:first-child { border-top: none; padding-top: 0; }

.diff-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 18px;
}
.diff-easy { background: linear-gradient(90deg,#20a596,#3b72e0); }
.diff-medium { background: linear-gradient(90deg,#3b72e0,#6a4ae8); }
.diff-hard { background: linear-gradient(90deg,#9c2fe0,#e0408a); }

.size-row { margin-top: 48px; }
.size-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.size-note { margin: 14px 0 0; font-size: 0.9rem; max-width: 640px; }

.soon-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Screenshots ---------- */
.screenshots { padding: 100px 0; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.shot-card {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.shot-card img { display: block; width: 100%; height: auto; }
.shot-card figcaption {
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* ---------- Premium teaser ---------- */
.premium-teaser { padding: 0 0 100px; }
.premium-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(255,70,150,0.14), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(90,60,255,0.14), transparent 50%),
    var(--surface);
}
.premium-teaser .container.premium-inner { padding-left: 44px; padding-right: 44px; max-width: calc(var(--maxw) - 48px); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.75rem;
}

/* ---------- Leaderboard ---------- */
.leaderboard { padding: 100px 0; background: var(--bg-alt); }

.lb-panel {
  margin-top: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.lb-tabs { display: flex; border-bottom: 1px solid var(--border); }
.lb-tab {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font: inherit;
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
}
.lb-tab.active { color: var(--text); background: var(--surface-strong); box-shadow: inset 0 -2px 0 var(--grad-c); }

.lb-body { padding: 24px; min-height: 140px; }
.lb-status { color: var(--text-dim); font-size: 0.95rem; text-align: center; padding: 30px 0; }

.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
.lb-list li:first-child { border-top: none; }
.lb-rank {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface-strong);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.lb-name { flex: 1; font-weight: 600; }
.lb-score { color: var(--text-dim); font-variant-numeric: tabular-nums; }

.lb-footnote {
  padding: 0 24px 22px;
  font-size: 0.84rem;
  margin: 0;
}

/* Scoring formula on the leaderboard page */
.formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 28px 0 22px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}
.f-base {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.f-op { color: var(--text-dim); }
.f-term small {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------- About / SEO text ---------- */
.seo-text { padding: 100px 0; }
.seo-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}
.seo-text p { font-size: 1rem; }
.seo-text h3 { font-size: 1.2rem; margin-bottom: 16px; }

.topic-chips {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topic-chips li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 500;
}

.tips {
  list-style: none;
  margin: 0;
  padding: 26px 24px;
  display: grid;
  gap: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.tips li { color: var(--text-dim); font-size: 0.94rem; }
.tips strong { color: var(--text); }

/* ---------- Comparison table (Premium) ---------- */
.compare-table {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.93rem;
  align-items: center;
}
.compare-row:first-child { border-top: none; }
.compare-head {
  font-weight: 700;
  background: var(--surface-strong);
  color: var(--text);
}
.compare-row > div { color: var(--text-dim); }
.compare-row > div:first-child { font-weight: 600; color: var(--text); }
.compare-row > div:nth-child(3) { color: var(--accent-text); font-weight: 600; }
.compare-head > div,
.compare-head > div:nth-child(3) { color: var(--text); }

/* ---------- CTA ---------- */
.cta {
  margin: 0 24px 24px;
  border-radius: var(--radius-lg);
  padding: 64px 50px;
  background: var(--accent-grad);
  color: #fff;
}
.cta-inner {
  max-width: var(--maxw);
  padding: 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.92); margin: 0; }
.cta-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* ---------- FAQ ---------- */
.faq { padding: 100px 0 110px; }
.faq-list { margin-top: 36px; display: grid; gap: 12px; max-width: 780px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text-dim);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: 12px 0 0; font-size: 0.94rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a { font-size: 0.9rem; color: var(--text-dim); }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 0.84rem; color: var(--text-dim); margin: 0; }
.footer-legal {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  order: 3;
}
.footer-legal a { font-size: 0.84rem; color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--text); }
.footer-legal + .footer-copy { order: 4; flex-basis: 100%; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 100px; }
.legal-body { max-width: 780px; }
.legal-body h2 { font-size: 1.2rem; margin: 36px 0 10px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p,
.legal-body li { font-size: 0.97rem; color: var(--text-dim); }
.legal-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.legal-note {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .feature-grid, .feature-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .difficulty-grid, .difficulty-grid-3 { grid-template-columns: 1fr; max-width: 560px; }
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner, .premium-inner, .seo-grid { grid-template-columns: 1fr; }
  .facts-inner { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .features, .difficulty, .screenshots, .leaderboard, .seo-text, .faq { padding: 72px 0; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 0;
    font-size: 1rem;
    border-top: 1px solid var(--border);
  }
  .main-nav a:first-child { border-top: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header-actions { gap: 8px; }
  .feature-grid, .feature-grid-3, .shot-grid { grid-template-columns: 1fr; }
  .facts-inner { grid-template-columns: repeat(2, 1fr); }
  .facts-inner > div:last-child { grid-column: span 2; }
  .cta { margin: 0 16px 16px; padding: 40px 24px; }
  .premium-teaser .container.premium-inner { padding: 28px 22px; margin: 0 16px; }
  .compare-row { grid-template-columns: 1.2fr 1fr 1fr; padding: 12px 14px; font-size: 0.84rem; }
  .hero-piece { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
