/* ===== RTP Radar — Design tokens ===== */
:root {
  /* Palette: sage / fintech green (softer than casino) */
  --primary: oklch(72% 0.14 155);
  --primary-strong: oklch(78% 0.16 155);
  --primary-soft: oklch(45% 0.10 155);
  --primary-glow: oklch(72% 0.14 155 / 0.18);

  --bg-0: oklch(14% 0.012 240);   /* base */
  --bg-1: oklch(16.5% 0.014 240); /* cards */
  --bg-2: oklch(20% 0.016 240);   /* elevated */
  --bg-3: oklch(24% 0.018 240);   /* hover */

  --fg-0: oklch(98% 0.005 240);
  --fg-1: oklch(78% 0.012 240);
  --fg-2: oklch(58% 0.014 240);
  --fg-3: oklch(40% 0.014 240);

  --line: oklch(100% 0 0 / 0.07);
  --line-strong: oklch(100% 0 0 / 0.13);
  --line-accent: oklch(72% 0.14 155 / 0.32);

  --gold: oklch(82% 0.14 85);
  --silver: oklch(82% 0.012 240);
  --bronze: oklch(68% 0.12 55);

  --warn: oklch(78% 0.14 70);
  --danger: oklch(67% 0.18 25);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --shadow-card: 0 1px 0 0 oklch(100% 0 0 / 0.04) inset, 0 12px 32px -16px oklch(0% 0 0 / 0.6);
  --shadow-glow: 0 0 0 1px var(--line-accent), 0 24px 80px -32px var(--primary-glow);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--fg-0);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  line-height: 1.5;
  overflow-x: hidden;
}

/* Subtle grid texture on the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--primary-glow), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, oklch(40% 0.10 240 / 0.18), transparent 60%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ===== Layout helpers ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page { position: relative; z-index: 1; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-2); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.05; font-weight: 700; }
h1 { font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -0.035em; line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -0.028em; }
h3 { font-size: 22px; }
p { margin: 0; }
.lead { font-size: 18px; color: var(--fg-1); line-height: 1.55; max-width: 56ch; }
.text-muted { color: var(--fg-2); }
.mono { font-family: var(--font-mono); font-feature-settings: 'zero', 'ss01'; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--r-md);
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  background: transparent; color: var(--fg-0);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, var(--primary-strong), var(--primary));
  color: oklch(18% 0.012 240);
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.25) inset, 0 8px 24px -12px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 1px 0 oklch(100% 0 0 / 0.35) inset, 0 12px 32px -10px var(--primary-glow); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg-0); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--line-accent); }
.btn-outline { border-color: var(--line-strong); }
.btn-outline:hover { background: var(--bg-2); }
.btn-lg { padding: 16px 22px; font-size: 15px; border-radius: var(--r-md); }
.btn-block { width: 100%; }

/* ===== Cards ===== */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 22px; }

/* ===== Badges ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--fg-1);
}
.badge .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); position: relative;
}
.badge .pulse::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid var(--primary); animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(0.7); opacity: 1; }
  to { transform: scale(2.4); opacity: 0; }
}
.badge-success { color: var(--primary-strong); border-color: var(--line-accent); background: oklch(72% 0.14 155 / 0.08); }
.badge-warn { color: var(--warn); background: oklch(78% 0.14 70 / 0.10); border-color: oklch(78% 0.14 70 / 0.28); }
.badge-danger { color: var(--danger); background: oklch(67% 0.18 25 / 0.10); border-color: oklch(67% 0.18 25 / 0.28); }
.badge-ai {
  color: var(--fg-0);
  background: linear-gradient(135deg, oklch(72% 0.14 155 / 0.16), oklch(70% 0.12 240 / 0.16));
  border: 1px solid var(--line-accent);
}

/* ===== Inputs ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; color: var(--fg-1); font-weight: 500; }
.input, .select {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--fg-0);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.input:focus { border-color: var(--primary); background: var(--bg-2); box-shadow: 0 0 0 4px var(--primary-glow); }
.input::placeholder { color: var(--fg-3); }
.helper { font-size: 12px; color: var(--fg-2); }
.helper.italic { font-style: italic; }
.error { font-size: 12px; color: var(--danger); }

.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; font-size: 13px; color: var(--fg-1); }
.checkbox input { display: none; }
.checkbox .box {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 5px;
  border: 1px solid var(--line-strong); background: var(--bg-1);
  display: grid; place-items: center;
  margin-top: 1px;
}
.checkbox input:checked + .box { background: var(--primary); border-color: var(--primary); }
.checkbox input:checked + .box::after {
  content: ""; width: 10px; height: 6px;
  border-left: 2px solid oklch(18% 0.012 240); border-bottom: 2px solid oklch(18% 0.012 240);
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ===== Navbar ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: oklch(14% 0.012 240 / 0.7);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  display: grid; place-items: center;
  box-shadow: 0 0 16px var(--primary-glow);
}
.brand-mark svg { width: 16px; height: 16px; color: oklch(18% 0.012 240); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 8px; color: var(--fg-1); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--fg-0); background: var(--bg-2); }
.nav-actions { display: flex; gap: 10px; }

/* ===== Hero ===== */
.hero { padding: 64px 0 80px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero-pre { display: inline-flex; gap: 10px; margin-bottom: 24px; }
.hero h1 .accent { color: var(--primary); }
.hero p.lead { margin-top: 22px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px;
  font-size: 13px; color: var(--fg-2);
}
.hero-trust .item { display: inline-flex; gap: 6px; align-items: center; }

/* Hero visual: stylized analysis card */
.hero-visual {
  position: relative; border-radius: var(--r-2xl);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 80% 0%, var(--primary-glow), transparent 60%),
    linear-gradient(transparent 95%, var(--line) 95%) 0 0 / 100% 24px,
    linear-gradient(90deg, transparent 95%, var(--line) 95%) 0 0 / 24px 100%;
  pointer-events: none;
  opacity: 0.7;
}
.hv-head {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.hv-row { display: flex; align-items: center; gap: 12px; }
.hv-rank {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; font-family: var(--font-mono);
}
.hv-rank.r1 { background: oklch(82% 0.14 85 / 0.16); color: var(--gold); border: 1px solid oklch(82% 0.14 85 / 0.32); }
.hv-rank.r2 { background: oklch(82% 0.012 240 / 0.16); color: var(--silver); border: 1px solid oklch(82% 0.012 240 / 0.24); }
.hv-rank.r3 { background: oklch(68% 0.12 55 / 0.16); color: var(--bronze); border: 1px solid oklch(68% 0.12 55 / 0.32); }
.hv-rank.rg { background: var(--bg-2); color: var(--fg-2); border: 1px solid var(--line); }
.hv-list { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; position: relative; z-index: 1; }
.hv-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--bg-1); border: 1px solid var(--line);
}
.hv-item.featured { background: linear-gradient(180deg, oklch(72% 0.14 155 / 0.08), transparent); border-color: var(--line-accent); }
.hv-name { font-weight: 600; font-size: 14px; }
.hv-sub { font-size: 11px; color: var(--fg-2); }
.hv-rtp { font-family: var(--font-mono); font-weight: 700; color: var(--primary-strong); font-size: 18px; }

/* ===== Disclaimer banner ===== */
.disclaimer-banner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.disclaimer-banner .row {
  padding: 14px 0; display: flex; align-items: center; justify-content: center;
  gap: 14px; font-size: 13px; color: var(--fg-1); flex-wrap: wrap;
}
.disclaimer-banner .row strong { color: var(--fg-0); }
.disclaimer-banner .pill {
  padding: 4px 10px; border-radius: 999px; background: oklch(67% 0.18 25 / 0.10);
  border: 1px solid oklch(67% 0.18 25 / 0.32); color: var(--danger); font-weight: 600; font-size: 11px;
}

/* ===== Stats ===== */
.stats-wrap {
  background: linear-gradient(180deg, oklch(72% 0.14 155 / 0.04), transparent 80%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.stat:last-child { border-right: none; }
.stat-num { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; font-family: var(--font-mono); color: var(--fg-0); }
.stat-num .accent { color: var(--primary-strong); }
.stat-label { font-size: 13px; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

/* ===== How it works ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.step {
  padding: 28px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--line-accent); }
.step-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--primary);
  margin-bottom: 18px;
}
.step-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line);
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; font-size: 18px; }
.step p { color: var(--fg-1); font-size: 14px; }
.step-arrow {
  position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  color: var(--fg-3); width: 24px; height: 24px;
  z-index: 2; background: var(--bg-0); border-radius: 50%;
  display: grid; place-items: center;
}

/* ===== AI section ===== */
.ai-section {
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai-tag { display: inline-flex; gap: 8px; align-items: center; }
.ai-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.ai-stat { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-1); }
.ai-stat-num { font-size: 26px; font-weight: 800; font-family: var(--font-mono); color: var(--primary-strong); letter-spacing: -0.02em; }
.ai-stat-label { font-size: 12px; color: var(--fg-2); margin-top: 4px; }
.ai-viz {
  position: relative; padding: 28px;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
}
.ai-bars { display: flex; align-items: end; justify-content: space-between; gap: 6px; height: 220px; padding-top: 20px; }
.ai-bar {
  flex: 1; background: linear-gradient(180deg, var(--primary), var(--primary-soft));
  border-radius: 4px 4px 0 0; position: relative;
  animation: barRise 1.4s cubic-bezier(.25,1,.3,1) backwards;
}
@keyframes barRise { from { transform: scaleY(0); transform-origin: bottom; } }
.ai-axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); margin-top: 8px; }
.ai-pulse {
  position: absolute; top: 24px; right: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: oklch(72% 0.14 155 / 0.10);
  border: 1px solid var(--line-accent);
  font-size: 11px; color: var(--primary-strong); font-weight: 600;
  font-family: var(--font-mono);
}

/* ===== Live feed ===== */
.feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.feed-list {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; max-height: 480px;
}
.feed-head {
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
  font-size: 13px;
}
.feed-head .live { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.feed-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px;
  padding: 14px 20px; align-items: center;
  border-bottom: 1px solid var(--line);
  animation: feedIn 0.42s cubic-bezier(.25,1,.3,1);
}
.feed-row:last-child { border-bottom: none; }
@keyframes feedIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.feed-row .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: oklch(18% 0.012 240); }
.feed-row .meta { font-size: 13px; }
.feed-row .meta strong { color: var(--fg-0); }
.feed-row .meta .when { color: var(--fg-3); font-size: 11px; font-family: var(--font-mono); }
.feed-row .rtp { font-family: var(--font-mono); font-size: 13px; font-weight: 700; }

/* ===== Partners marquee ===== */
.partners { padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners-label { text-align: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 32px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; animation: marquee 38s linear infinite; width: max-content; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 18px; font-weight: 600; color: var(--fg-2); white-space: nowrap;
  letter-spacing: -0.01em;
}
.marquee-item .glyph {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--bg-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--font-mono); color: var(--fg-1); font-size: 12px;
}

/* ===== Testimonials ===== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.testi {
  padding: 24px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.testi:hover { border-color: var(--line-accent); transform: translateY(-2px); }
.testi-stars { color: var(--gold); display: flex; gap: 2px; font-size: 14px; }
.testi-text { font-size: 15px; line-height: 1.55; color: var(--fg-1); }
.testi-foot { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.testi-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: oklch(18% 0.012 240); }
.testi-name { font-size: 13px; font-weight: 600; }
.testi-meta { font-size: 11px; color: var(--fg-3); display: flex; gap: 8px; align-items: center; }
.testi-verified { color: var(--primary-strong); font-size: 11px; display: inline-flex; gap: 4px; align-items: center; }

/* ===== Weekly top slots ===== */
.top-table {
  margin-top: 36px;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
}
.top-row {
  display: grid; grid-template-columns: 60px 2fr 1.4fr 1fr 1fr 1fr;
  align-items: center; padding: 16px 22px;
  border-bottom: 1px solid var(--line); gap: 16px;
}
.top-row:last-child { border-bottom: none; }
.top-row.head { font-size: 11px; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.1em; background: var(--bg-2); }
.top-row .pos { font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.top-row.r1 .pos { color: var(--gold); }
.top-row.r2 .pos { color: var(--silver); }
.top-row.r3 .pos { color: var(--bronze); }
.top-row .game { font-weight: 600; }
.top-row .prov { color: var(--fg-2); font-size: 13px; }
.top-row .rtp { font-family: var(--font-mono); font-weight: 700; color: var(--primary-strong); }
.top-row .vol { font-size: 12px; color: var(--fg-1); }
.top-row .trend { font-size: 12px; }

/* ===== RTP explainer ===== */
.rtp-explainer { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rtp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rtp-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.rtp-bar-row { display: grid; grid-template-columns: 90px 1fr 100px; gap: 12px; align-items: center; font-size: 13px; }
.rtp-bar-row .label { font-family: var(--font-mono); color: var(--fg-1); }
.rtp-bar { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; position: relative; }
.rtp-bar .fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
  transform-origin: left;
  animation: barFill 1.6s cubic-bezier(.25,1,.3,1) backwards;
}
@keyframes barFill { from { transform: scaleX(0); } }
.rtp-bar-row .verdict { font-size: 12px; color: var(--fg-2); text-align: right; }
.rtp-bar-row.highlight .label { color: var(--primary-strong); font-weight: 700; }
.rtp-bar-row.highlight .verdict { color: var(--primary-strong); font-weight: 600; }

/* ===== CTA section ===== */
.cta-section {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-1), oklch(45% 0.10 155 / 0.18));
  border-top: 1px solid var(--line-accent);
  border-bottom: 1px solid var(--line);
}
.cta-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 50% 100%, var(--primary-glow), transparent 60%);
  pointer-events: none;
}
.cta-inner { text-align: center; padding: 88px 0; position: relative; }
.cta-inner h2 { max-width: 18ch; margin: 0 auto 16px; }
.cta-inner p { color: var(--fg-1); margin-bottom: 28px; max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-fineprint { font-size: 12px; color: var(--fg-3); margin-top: 16px; font-family: var(--font-mono); }

/* ===== Footer ===== */
.footer { background: var(--bg-1); border-top: 1px solid var(--line); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-2); margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--fg-1); }
.footer ul a:hover { color: var(--fg-0); }
.footer-about { color: var(--fg-2); font-size: 13px; line-height: 1.6; max-width: 36ch; margin-top: 14px; }
.footer-cert {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px;
}
.footer-cert .cert {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 10px; border-radius: 6px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--fg-2);
}
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: var(--fg-3);
}
.footer-responsible {
  margin-top: 24px; padding: 16px 18px;
  border: 1px solid oklch(67% 0.18 25 / 0.32);
  background: oklch(67% 0.18 25 / 0.06);
  border-radius: var(--r-md);
  font-size: 13px; color: var(--fg-1); display: flex; gap: 12px; align-items: flex-start;
}
.footer-responsible strong { color: var(--danger); }

/* ===== Auth pages ===== */
.auth-page {
  min-height: calc(100vh - 70px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.auth-form-side {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px;
}
.auth-form-side .inner { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-form-side h2 { font-size: 32px; margin-bottom: 8px; }
.auth-form-side .lead { font-size: 15px; margin-bottom: 32px; color: var(--fg-2); }
.auth-form-side form { display: flex; flex-direction: column; gap: 16px; }
.auth-form-side .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-aside {
  background: var(--bg-1); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px; position: relative; overflow: hidden;
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 80% 20%, var(--primary-glow), transparent 60%);
  pointer-events: none;
}
.auth-aside .inner { position: relative; max-width: 440px; }
.auth-aside h3 { font-size: 24px; margin-bottom: 8px; }
.auth-aside .perks { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: oklch(72% 0.14 155 / 0.10); border: 1px solid var(--line-accent);
  display: grid; place-items: center; color: var(--primary-strong);
}
.perk-text strong { display: block; font-size: 14px; margin-bottom: 4px; }
.perk-text span { font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.auth-foot { margin-top: 28px; font-size: 13px; color: var(--fg-2); text-align: center; }
.auth-foot a { color: var(--primary-strong); font-weight: 600; }

/* ===== Query page ===== */
.query-page { min-height: calc(100vh - 70px); padding: 64px 0; }
.query-card { max-width: 640px; margin: 0 auto; padding: 40px; }
.query-card h2 { font-size: 30px; margin-bottom: 8px; }
.query-card .lead { font-size: 15px; margin-bottom: 32px; color: var(--fg-2); }
.query-step {
  border-left: 2px solid var(--line); padding-left: 24px; padding-bottom: 24px;
  position: relative;
}
.query-step:last-child { padding-bottom: 0; }
.query-step.active { border-left-color: var(--primary); }
.query-step .num {
  position: absolute; left: -14px; top: 0; width: 26px; height: 26px;
  border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
}
.query-step.active .num { background: var(--primary); color: oklch(18% 0.012 240); border-color: var(--primary); }
.query-step h4 { font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-2); font-weight: 600; }

.bet-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bet-chip {
  padding: 8px 14px; border-radius: 8px; background: var(--bg-2);
  border: 1px solid var(--line); color: var(--fg-1); font-family: var(--font-mono);
  font-size: 13px; transition: all 0.15s ease;
}
.bet-chip:hover { border-color: var(--line-accent); color: var(--fg-0); }
.bet-chip.active { background: var(--primary); color: oklch(18% 0.012 240); border-color: var(--primary); }

/* Slot reel loader */
.reel-loader {
  margin: 0 auto; display: grid; grid-template-columns: repeat(3, 56px);
  gap: 8px; padding: 16px; border-radius: var(--r-md);
  background: var(--bg-2); border: 1px solid var(--line); width: max-content;
}
.reel-cell {
  height: 70px; border-radius: 8px; background: var(--bg-3);
  display: grid; place-items: center; font-size: 24px;
  overflow: hidden; position: relative;
}
.reel-cell .scroller {
  display: flex; flex-direction: column; gap: 8px; padding: 8px;
  animation: reelSpin 0.8s linear infinite;
}
.reel-cell:nth-child(2) .scroller { animation-duration: 1.0s; }
.reel-cell:nth-child(3) .scroller { animation-duration: 1.2s; }
@keyframes reelSpin {
  from { transform: translateY(0); }
  to { transform: translateY(-78px); }
}

/* ===== Result page ===== */
.result-page { padding: 56px 0 96px; }
.result-banner {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 28px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
  font-size: 14px;
}
.result-banner .item { display: flex; align-items: center; gap: 8px; color: var(--fg-1); }
.result-banner .item strong { color: var(--fg-0); font-family: var(--font-mono); }
.result-banner .item .lbl { color: var(--fg-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.result-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; margin-top: 28px; align-items: start; }

.slot-card {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 22px; align-items: center;
  padding: 22px 24px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.slot-card:hover { transform: translateY(-2px); border-color: var(--line-accent); }
.slot-card.r1 { border-color: oklch(82% 0.14 85 / 0.32); background: linear-gradient(180deg, oklch(82% 0.14 85 / 0.05), var(--bg-1)); }
.slot-rank {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 800; font-size: 22px;
  background: var(--bg-2); color: var(--fg-2); border: 1px solid var(--line);
}
.slot-card.r1 .slot-rank { color: var(--gold); background: oklch(82% 0.14 85 / 0.10); border-color: oklch(82% 0.14 85 / 0.32); }
.slot-card.r2 .slot-rank { color: var(--silver); }
.slot-card.r3 .slot-rank { color: var(--bronze); }
.slot-info h3 { font-size: 18px; margin-bottom: 4px; }
.slot-info .prov { color: var(--fg-2); font-size: 13px; margin-bottom: 12px; }
.slot-info .desc { color: var(--fg-1); font-size: 13px; line-height: 1.5; max-width: 60ch; margin-bottom: 12px; }
.slot-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.slot-rtp-block { text-align: right; min-width: 140px; }
.slot-rtp { font-family: var(--font-mono); font-size: 32px; font-weight: 800; color: var(--primary-strong); letter-spacing: -0.02em; line-height: 1; }
.slot-rtp .pct { font-size: 18px; opacity: 0.6; }
.slot-bar { height: 6px; background: var(--bg-2); border-radius: 999px; margin-top: 12px; overflow: hidden; }
.slot-bar .fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-strong)); animation: barFill 1.4s cubic-bezier(.25,1,.3,1) backwards; }

.calc-card { padding: 24px; position: sticky; top: 90px; }
.calc-card h3 { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.calc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.calc-row:last-of-type { border-bottom: none; }
.calc-row .k { color: var(--fg-2); }
.calc-row .v { font-family: var(--font-mono); font-weight: 700; color: var(--fg-0); }
.calc-row.accent .v { color: var(--primary-strong); }
.calc-warn { font-size: 12px; color: var(--fg-2); margin-top: 16px; padding: 12px; background: var(--bg-2); border-radius: 8px; line-height: 1.5; }

.result-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* Toast */
.toast-wrap { position: fixed; top: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 14px 20px;
  background: var(--bg-1); border: 1px solid var(--line-accent);
  border-radius: var(--r-md); color: var(--fg-0);
  font-size: 14px; box-shadow: 0 12px 32px -16px oklch(0% 0 0 / 0.6);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s cubic-bezier(.25,1,.3,1);
  min-width: 280px;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }
.toast.success { border-color: var(--line-accent); }
.toast .ico {
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: oklch(18% 0.012 240);
  display: grid; place-items: center; flex-shrink: 0;
}

/* Status indicator */
.live-now {
  position: fixed; bottom: 24px; left: 24px; z-index: 40;
  padding: 10px 16px; border-radius: 999px;
  background: var(--bg-1); border: 1px solid var(--line);
  font-size: 12px; color: var(--fg-1);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 12px 32px -16px oklch(0% 0 0 / 0.6);
}
.live-now .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); }

/* ===== Hamburger / drawer ===== */
.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg-0);
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  padding: 0;
}
.nav-burger:hover { background: var(--bg-2); }
.nav-drawer {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0; bottom: 0;
  background: oklch(14% 0.012 240 / 0.96);
  backdrop-filter: blur(20px);
  z-index: 49;
  flex-direction: column;
  padding: 24px;
  gap: 4px;
  animation: drawerIn 0.24s ease-out;
}
@keyframes drawerIn { from { opacity: 0; transform: translateY(-8px); } }
.nav-drawer a {
  padding: 16px;
  font-size: 17px; font-weight: 500;
  color: var(--fg-0);
  border-bottom: 1px solid var(--line);
}
.nav-drawer-actions {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
}

/* ===== Responsive — tablet ≤ 960px ===== */
@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-tight { padding: 48px 0; }

  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: none !important; border-bottom: 1px solid var(--line); padding: 28px 22px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .steps { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
  .step-arrow { display: none; }
  .ai-grid, .rtp-grid { grid-template-columns: 1fr; gap: 36px; }
  .feed-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; gap: 14px; }
  .top-row { grid-template-columns: 40px 1.5fr 1fr 90px; padding: 14px 18px; gap: 12px; }
  .top-row .vol, .top-row .trend, .top-row.head .vol, .top-row.head .trend { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .auth-page { grid-template-columns: 1fr; min-height: auto; }
  .auth-aside { display: none; }
  .auth-form-side { padding: 40px 24px; }

  .result-grid { grid-template-columns: 1fr; }
  .calc-card { position: static; }

  /* Navbar */
  .nav-links-desktop, .nav-actions-desktop { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-drawer { display: flex; }
}

/* ===== Responsive — phone ≤ 640px ===== */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  body::before { background: radial-gradient(600px 400px at 80% -10%, var(--primary-glow), transparent 60%); }

  /* Type rebalance */
  h1 { font-size: clamp(34px, 9vw, 48px); }
  h2 { font-size: clamp(26px, 7vw, 34px); }
  h3 { font-size: 18px; }
  .lead { font-size: 16px; }

  /* Hero */
  .hero { padding: 28px 0 40px; }
  .hero-pre { flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1; min-width: 0; padding: 14px 16px; }
  .hero-trust { gap: 14px; margin-top: 22px; font-size: 12px; }
  .hero-visual { padding: 16px; }
  .hv-name { font-size: 13px; }
  .hv-rtp { font-size: 16px; }
  .hv-item { padding: 10px 12px; gap: 10px; }

  /* Disclaimer banner */
  .disclaimer-banner .row { padding: 12px 0; gap: 10px; font-size: 12px; flex-direction: column; align-items: flex-start; text-align: left; }

  /* Stats — 2x2 on phone, dense */
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px; }
  .stat-num { font-size: 30px; }
  .stat-label { font-size: 11px; }

  /* Steps */
  .step { padding: 22px; }

  /* AI */
  .ai-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ai-stat { padding: 14px; }
  .ai-stat-num { font-size: 22px; }
  .ai-viz { padding: 20px; }
  .ai-bars { height: 160px; gap: 4px; }
  .ai-axis { font-size: 9px; }
  .ai-pulse { top: 16px; right: 16px; padding: 4px 10px; font-size: 10px; }

  /* Live feed */
  .feed-list { max-height: none; }
  .feed-row { grid-template-columns: 32px 1fr auto; padding: 12px 16px; gap: 10px; }
  .feed-row .badge { display: none; } /* keep RTP only on phone */
  .feed-head { padding: 14px 16px; }

  /* Partners */
  .partners { padding: 36px 0; }
  .marquee-track { gap: 36px; animation-duration: 28s; }
  .marquee-item { font-size: 15px; }

  /* Testimonials */
  .testi { padding: 20px; }
  .testi-text { font-size: 14px; }

  /* Top table */
  .top-row {
    grid-template-columns: 32px 1fr auto;
    padding: 14px 16px;
    grid-template-areas:
      "pos  game rtp"
      ".    prov rtp";
    row-gap: 4px; column-gap: 12px;
  }
  .top-row .pos  { grid-area: pos; align-self: center; }
  .top-row .game { grid-area: game; font-size: 14px; }
  .top-row .prov { grid-area: prov; font-size: 12px; }
  .top-row .rtp  { grid-area: rtp; align-self: center; font-size: 14px; }
  .top-row.head { display: none; }

  /* Footer */
  .footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-cert { gap: 6px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-responsible { padding: 14px; gap: 10px; font-size: 12px; }

  /* Auth */
  .auth-form-side { padding: 32px 16px; }
  .auth-form-side .row { grid-template-columns: 1fr; }
  .auth-form-side h2 { font-size: 26px; }

  /* Query */
  .query-page { padding: 32px 0; }
  .query-card { padding: 24px 18px; }
  .query-card h2 { font-size: 22px; }
  .query-step { padding-left: 18px; }
  .query-step .num { left: -13px; width: 24px; height: 24px; }
  .bet-chips { gap: 6px; }
  .bet-chip { padding: 8px 12px; font-size: 12px; }
  .reel-loader { grid-template-columns: repeat(3, 44px); padding: 12px; gap: 6px; }
  .reel-cell { height: 56px; font-size: 18px; }
  @keyframes reelSpin { to { transform: translateY(-64px); } }

  /* Result */
  .result-page { padding: 32px 0 64px; }
  .result-banner { padding: 16px 18px; gap: 14px; font-size: 13px; }
  .result-banner > div[style] { display: none !important; } /* hide vertical separator */
  .result-banner .item { flex-basis: calc(50% - 7px); }

  .slot-card {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "rank info"
      "rtp  rtp";
    padding: 18px;
    gap: 14px;
  }
  .slot-rank { grid-area: rank; width: 48px; height: 48px; font-size: 18px; border-radius: 12px; }
  .slot-info { grid-area: info; min-width: 0; }
  .slot-info h3 { font-size: 16px; }
  .slot-info .desc { font-size: 13px; -webkit-line-clamp: 3; }
  .slot-rtp-block {
    grid-area: rtp; min-width: 0;
    padding-top: 14px; border-top: 1px solid var(--line);
    display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
    text-align: left;
  }
  .slot-rtp { font-size: 26px; }
  .slot-rtp .pct { font-size: 14px; }
  .slot-bar { margin-top: 0; }
  .slot-rtp-block > div:nth-child(3) { grid-column: 1 / -1; }

  .calc-card { padding: 20px; }
  .result-actions { gap: 8px; }
  .result-actions .btn { flex: 1; padding: 14px 12px; font-size: 13px; min-width: 0; }
  .result-actions .btn span { display: none; }

  /* Live now indicator — tuck in on phone */
  .live-now { left: 12px; bottom: 12px; padding: 8px 12px; font-size: 11px; }
  .live-now span:last-child { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Toast */
  .toast-wrap { left: 12px; right: 12px; top: 12px; }
  .toast { min-width: 0; }
}

/* ===== Tiny phone ≤ 380px ===== */
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none !important; }
  .stat:last-child { border-bottom: none; }
  .ai-stats { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .result-banner .item { flex-basis: 100%; }
}
