/* ============================================
   Brilliant Play — social casino
   Night purple • electric gold • crystalline
   ============================================ */

:root {
  /* surfaces */
  --bg-0: #07051A;
  --bg-1: #0E0B26;
  --bg-2: #15102F;
  --bg-3: #1D1640;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* brand */
  --gold-1: #FFD66B;
  --gold-2: #F5C242;
  --gold-3: #E0A028;
  --cyan: #4FE3D6;
  --pink: #FF4D8D;
  --violet: #8B5CF6;
  --green: #36D399;

  /* text */
  --ink-1: #F5F1FF;
  --ink-2: #B6AED1;
  --ink-3: #7C7596;
  --ink-4: #4C4870;

  /* radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* shadows */
  --shadow-card: 0 14px 40px -16px rgba(0,0,0,0.6), 0 2px 0 rgba(255,255,255,0.04) inset;
  --shadow-gold: 0 10px 30px -8px rgba(245, 194, 66, 0.45);
  --shadow-pink: 0 10px 30px -8px rgba(255, 77, 141, 0.45);

  /* typography */
  --font-display: "Fraunces", "Cormorant Garamond", serif;
  --font-ui: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font-ui);
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(79, 227, 214, 0.10), transparent 60%),
    radial-gradient(700px 400px at 50% 110%, rgba(255, 77, 141, 0.10), transparent 60%),
    linear-gradient(180deg, #07051A 0%, #0A0722 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* selection */
::selection { background: var(--gold-2); color: #1A1235; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ================== Type ================== */

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.96;
}
.h-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.numeric { font-variant-numeric: tabular-nums; }

/* ================== Layout shell ================== */

.shell { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 28px; }

/* ================== Top bar ================== */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 5, 26, 0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
}
.brand-mark svg { width: 36px; height: 36px; }
.brand-name {
  background: linear-gradient(180deg, #FFE9A7 0%, #F5C242 60%, #C68A1A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-tld { color: var(--ink-3); font-size: 12px; font-family: var(--font-mono); letter-spacing: 0; margin-left: 2px; }

.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  transition: 160ms;
}
.nav a:hover { color: var(--ink-1); background: var(--surface); }
.nav a.active { color: var(--ink-1); background: var(--surface-2); }

.topbar-spacer { flex: 1; }

.search {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 260px;
  transition: 160ms;
}
.search:focus-within { border-color: var(--gold-2); width: 320px; background: var(--surface-2); }
.search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--ink-1); font-size: 14px; font-family: inherit;
}
.search input::placeholder { color: var(--ink-3); }
.search kbd {
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 6px; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-3);
}

.coins {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  background: linear-gradient(180deg, rgba(255, 214, 107, 0.18), rgba(245, 194, 66, 0.08));
  border: 1px solid rgba(245, 194, 66, 0.35);
  border-radius: 999px;
  font-weight: 700;
}
.coins .coin-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE9A7, #F5C242 60%, #8A5A0E);
  box-shadow: 0 0 0 1px #C68A1A inset, 0 2px 4px rgba(245,194,66,0.4);
}
.coins .plus {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); display: grid; place-items: center;
  color: var(--gold-2); font-size: 16px; margin-left: 6px;
  border: 1px solid var(--line); cursor: pointer;
}
.coins .plus:hover { background: var(--gold-2); color: #1A1235; border-color: var(--gold-2); }

.btn {
  border: 0; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: 160ms; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary {
  background: linear-gradient(180deg, #FFD66B, #F5C242 60%, #E0A028);
  color: #1A1235; box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost {
  background: var(--surface); color: var(--ink-1); border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn-pink { background: linear-gradient(180deg, #FF85B0, #FF4D8D); color: white; box-shadow: var(--shadow-pink); }
.btn-cyan { background: linear-gradient(180deg, #7CF0E5, #4FE3D6); color: #0A2E2A; }

/* ================== Hero ================== */

.hero {
  position: relative;
  padding: 56px 0 32px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(48px, 6vw, 88px);
  margin: 16px 0 20px;
}
.hero h1 .accent {
  background: linear-gradient(180deg, #FFE9A7 0%, #F5C242 60%, #C68A1A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.hero p.lede {
  font-size: 18px; line-height: 1.55;
  color: var(--ink-2); max-width: 520px;
  margin: 0 0 28px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 32px;
  display: flex; gap: 32px; align-items: center;
  color: var(--ink-3); font-size: 13px;
}
.hero-trust .pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
}

/* Hero visual: stacked crystal cards */
.hero-visual {
  position: relative; aspect-ratio: 1 / 1; max-width: 540px; margin-left: auto;
}
.crystal {
  position: absolute; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.crystal::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}
.crystal-1 { left: 0; top: 12%; width: 58%; height: 64%; transform: rotate(-6deg); }
.crystal-2 { right: 0; top: 0; width: 50%; height: 56%; transform: rotate(5deg); }
.crystal-3 { left: 18%; bottom: 0; width: 64%; height: 42%; transform: rotate(-2deg); }

.crystal .game-tile-inner { padding: 18px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.crystal .tag { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.crystal .ttl { font-family: var(--font-display); font-size: 24px; line-height: 1; }

/* Floating orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; }
.orb-1 { width: 360px; height: 360px; background: rgba(139, 92, 246, 0.5); top: -120px; right: -80px; }
.orb-2 { width: 280px; height: 280px; background: rgba(79, 227, 214, 0.35); bottom: -100px; left: 10%; }
.orb-3 { width: 220px; height: 220px; background: rgba(255, 77, 141, 0.35); top: 30%; right: 30%; }

/* ================== Marquee jackpot ticker ================== */

.ticker {
  margin: 28px 0 40px;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(90deg, rgba(245, 194, 66, 0.06), rgba(255, 77, 141, 0.06));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 13px;
}
.ticker .lbl {
  flex-shrink: 0; color: var(--gold-2); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.ticker .lbl::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-2); box-shadow: 0 0 0 4px rgba(245, 194, 66, 0.2);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(245, 194, 66, 0); } }

.ticker-track {
  display: flex; gap: 48px; animation: scroll 60s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-item { display: inline-flex; gap: 10px; align-items: center; color: var(--ink-2); }
.ticker-item b { color: var(--ink-1); font-weight: 700; }
.ticker-item .pot { color: var(--gold-2); font-weight: 800; font-variant-numeric: tabular-nums; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ================== Category rail ================== */

.cat-section { margin: 8px 0 48px; }
.cat-header {
  display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px;
}
.cat-title h2 {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 500; letter-spacing: -0.02em;
  margin: 4px 0 4px;
}
.cat-title p { color: var(--ink-3); font-size: 14px; margin: 0; }

.cat-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.cat-chip {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: 200ms;
  text-align: left;
  overflow: hidden;
}
.cat-chip:hover { transform: translateY(-2px); background: var(--surface-2); border-color: var(--line-2); }
.cat-chip.active {
  background: linear-gradient(180deg, rgba(245, 194, 66, 0.16), rgba(245, 194, 66, 0.04));
  border-color: rgba(245, 194, 66, 0.55);
  box-shadow: 0 0 0 1px rgba(245, 194, 66, 0.25) inset;
}
.cat-chip .cat-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--gold-2);
}
.cat-chip.active .cat-icon { background: rgba(245, 194, 66, 0.18); color: var(--gold-1); }
.cat-chip .cat-label { font-weight: 600; font-size: 14px; }
.cat-chip .cat-count { font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); }

/* ================== Filter bar ================== */

.filter-bar {
  display: flex; gap: 12px; align-items: center; margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  flex-wrap: wrap;
}
.filter-bar .lbl { color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 12px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink-2); font-size: 12px; cursor: pointer;
  transition: 140ms;
}
.chip:hover { color: var(--ink-1); border-color: var(--line-2); }
.chip.on { background: var(--ink-1); color: #0A0722; border-color: var(--ink-1); font-weight: 600; }
.filter-bar select {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-1);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-family: inherit;
  outline: none;
}

/* ================== Game grid ================== */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gtile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: 200ms;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: block;
}
.gtile:hover { transform: translateY(-3px); border-color: var(--line-2); }
.gtile:hover .gtile-overlay { opacity: 1; }
.gtile:hover .gtile-art { transform: scale(1.06); }

.gtile-art {
  position: absolute; inset: 0;
  transition: 400ms;
  display: grid; place-items: center;
}
.gtile-art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, var(--c-a), transparent 50%),
              radial-gradient(circle at 70% 80%, var(--c-c), transparent 50%),
              linear-gradient(135deg, var(--c-a) 0%, var(--c-b) 100%);
}
.gtile-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.18) 0%, transparent 30%),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,0.04) 12px 13px);
}

.gtile-mono {
  position: relative;
  font-family: var(--font-display); font-style: italic;
  font-size: 64px; font-weight: 600;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 1;
}
.gtile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7,5,26,0.85) 80%, rgba(7,5,26,0.95) 100%);
  opacity: 0.95;
  display: flex; flex-direction: column; justify-content: end;
  padding: 16px;
  transition: 200ms;
}
.gtile-name {
  font-weight: 700; font-size: 15px; line-height: 1.2;
  margin-bottom: 4px;
}
.gtile-meta {
  font-size: 11px; color: var(--ink-3); display: flex; gap: 10px;
  font-family: var(--font-mono);
}
.gtile-meta .dot { color: var(--ink-4); }
.gtile-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; gap: 4px;
}
.gbadge {
  font-size: 9.5px; letter-spacing: 0.06em; font-weight: 700; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px;
  backdrop-filter: blur(6px);
}
.gbadge.new { background: rgba(79, 227, 214, 0.9); color: #0A2E2A; }
.gbadge.hot { background: rgba(255, 77, 141, 0.9); color: white; }
.gbadge.jackpot { background: rgba(245, 194, 66, 0.95); color: #1A1235; }
.gtile-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: #0A0722;
  display: grid; place-items: center;
  opacity: 0; transition: 200ms;
  font-size: 22px;
}
.gtile:hover .gtile-play { opacity: 1; }

/* ================== Promo cards ================== */

.promo-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 40px 0;
}
.promo {
  position: relative;
  padding: 28px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.promo::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  filter: blur(60px); opacity: 0.55;
}
.promo.gold::before { background: var(--gold-2); }
.promo.pink::before { background: var(--pink); }
.promo.cyan::before { background: var(--cyan); }
.promo h3 { font-family: var(--font-display); font-size: 26px; margin: 0 0 8px; font-weight: 500; }
.promo p { color: var(--ink-2); font-size: 14px; margin: 0 0 20px; max-width: 280px; }
.promo .promo-btn {
  align-self: flex-start;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  padding: 8px 14px; border-radius: 999px;
  background: var(--ink-1); color: #0A0722;
  border: 0;
}

/* ================== Footer ================== */

.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-2); margin: 0 0 16px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--ink-3); font-size: 14px; transition: 140ms; }
.footer ul a:hover { color: var(--ink-1); }

.footer-cta { max-width: 360px; }
.footer-cta h4 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin: 8px 0 12px; }
.footer-cta p { color: var(--ink-3); font-size: 13px; line-height: 1.55; margin: 0 0 16px; }

.disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex; gap: 32px; align-items: flex-start;
  font-size: 12px; line-height: 1.6; color: var(--ink-3);
}
.disclaimer-badge {
  flex-shrink: 0;
  padding: 8px 12px; border-radius: 6px;
  background: rgba(255, 77, 141, 0.1); border: 1px solid rgba(255, 77, 141, 0.3);
  color: #FFB0CC; font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em;
}
.disclaimer p { margin: 0 0 6px; max-width: 880px; }
.disclaimer p strong { color: var(--ink-1); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-4); font-size: 12px;
}
.footer-icons { display: flex; gap: 12px; align-items: center; opacity: 0.6; }
.footer-icons span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; }

/* ================== Game modal ================== */

.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(7, 5, 26, 0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 200ms;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 1200px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 320px;
  max-height: 86vh;
}
.modal-frame {
  background: black;
  position: relative;
  aspect-ratio: 16/10;
  display: grid; place-items: center;
  overflow: hidden;
}
.modal-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-frame .fake-game {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  background:
    radial-gradient(circle at 50% 50%, var(--c-a), var(--c-b) 80%);
  color: white;
  position: relative;
}
.modal-frame .fake-game::after {
  content: "Demo mode • Connect Slots Launch API to play live";
  position: absolute; bottom: 16px;
  font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.1em; text-transform: uppercase;
}
.modal-frame .fake-game .reels {
  display: flex; gap: 10px;
}
.modal-frame .fake-game .reel {
  width: 80px; height: 100px;
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 48px;
  border: 1px solid rgba(255,255,255,0.2);
}
.modal-frame .fake-game h3 { font-family: var(--font-display); font-size: 42px; margin: 0; font-style: italic; }

.modal-side {
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  overflow-y: auto;
}
.modal-side h3 { font-family: var(--font-display); font-size: 26px; margin: 0; font-weight: 500; }
.modal-side .provider { font-size: 12px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.modal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.stat-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); font-weight: 600; }
.stat-val { font-size: 18px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.modal-features { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-features .f { font-size: 11px; padding: 4px 10px; background: var(--surface-2); border-radius: 999px; color: var(--ink-2); }
.modal-side .play-btn {
  margin-top: auto;
  padding: 14px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #FFD66B, #F5C242 60%, #E0A028);
  color: #1A1235; font-weight: 700; font-size: 15px;
  border: 0;
  box-shadow: var(--shadow-gold);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.6); border: 1px solid var(--line-2);
  border-radius: 50%; color: white;
  display: grid; place-items: center;
  cursor: pointer; z-index: 5;
}
.modal-close:hover { background: rgba(0,0,0,0.85); }

/* ================== Cookie / age gate ================== */

.gate {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7, 5, 26, 0.94);
  backdrop-filter: blur(16px);
  display: grid; place-items: center; padding: 24px;
}
.gate-card {
  max-width: 480px; width: 100%;
  padding: 40px 36px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  text-align: center;
}
.gate-card .mark { font-size: 56px; margin-bottom: 16px; }
.gate-card h2 { font-family: var(--font-display); font-size: 36px; margin: 0 0 12px; font-weight: 500; }
.gate-card p { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin: 0 0 28px; }
.gate-card .gate-actions { display: flex; gap: 12px; justify-content: center; }
.gate-card .leave-btn {
  background: transparent; color: var(--ink-3); border: 1px solid var(--line);
  padding: 12px 22px; border-radius: 999px; font-weight: 500;
}

.cookie-bar {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  max-width: 720px; margin: 0 auto;
  background: rgba(13, 10, 38, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex; gap: 16px; align-items: center;
  z-index: 150;
  box-shadow: var(--shadow-card);
  animation: slideUp 300ms;
}
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } }
.cookie-bar p { margin: 0; flex: 1; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.cookie-bar a { color: var(--gold-2); text-decoration: underline; }
.cookie-bar .cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }

/* ================== Daily bonus toast ================== */

.bonus-toast {
  position: fixed; top: 92px; right: 24px; z-index: 90;
  padding: 14px 16px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 214, 107, 0.18), rgba(245, 194, 66, 0.06));
  border: 1px solid rgba(245, 194, 66, 0.45);
  border-radius: var(--r-md);
  display: flex; align-items: center; gap: 12px;
  max-width: 320px;
  animation: slideIn 400ms;
}
@keyframes slideIn { from { transform: translateX(120%); } }
.bonus-toast .icon { font-size: 26px; }
.bonus-toast .copy { flex: 1; }
.bonus-toast .copy b { display: block; font-size: 14px; }
.bonus-toast .copy span { font-size: 12px; color: var(--ink-3); }
.bonus-toast button { background: var(--gold-2); color: #1A1235; border: 0; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 12px; }

/* ================== Section heading variations ================== */

.section-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 64px 0 32px;
}
.section-divider h3 {
  font-family: var(--font-display); font-size: 28px; font-weight: 500;
  margin: 0; letter-spacing: -0.01em;
}
.section-divider .line { flex: 1; height: 1px; background: var(--line); }

/* ================== Static page content (privacy/terms/etc) ================== */

.page-content {
  max-width: 880px; margin: 0 auto;
  padding: 56px 0 80px;
}
.page-content .h-eyebrow { margin-bottom: 8px; display: block; }
.page-content h1 {
  font-family: var(--font-display); font-size: 56px; font-weight: 500;
  letter-spacing: -0.02em; margin: 0 0 16px; line-height: 1;
}
.page-content > .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 40px; }
.page-content h2 {
  font-family: var(--font-display); font-size: 28px; font-weight: 500;
  margin: 40px 0 12px; letter-spacing: -0.01em;
}
.page-content h3 { font-size: 17px; margin: 24px 0 8px; color: var(--ink-1); font-weight: 600; }
.page-content p, .page-content li { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.page-content ul, .page-content ol { padding-left: 22px; }
.page-content a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.page-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.page-content th, .page-content td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.page-content th { color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 700; }

.page-toc {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 40px;
}
.page-toc a {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); text-decoration: none;
}
.page-toc a:hover { color: var(--ink-1); border-color: var(--line-2); }

.callout {
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(255, 77, 141, 0.08), rgba(255, 77, 141, 0.02));
  border: 1px solid rgba(255, 77, 141, 0.25);
  border-radius: var(--r-md);
  margin: 24px 0;
}
.callout p { margin: 0; }
.callout strong { color: var(--ink-1); }

/* ================== Responsive ================== */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-row { grid-template-columns: 1fr; }
  .modal { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-side { order: -1; padding: 16px 20px; }
  .nav { display: none; }
  .search { width: 180px; }
  .search:focus-within { width: 200px; }
  .topbar-inner { gap: 12px; }
}
@media (max-width: 600px) {
  .shell { padding: 0 16px; }
  .hero h1 { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .search { display: none; }
  .coins span:not(.coin-icon):not(.plus) { display: none; }
  .page-content h1 { font-size: 36px; }
}
