/* ---------- Tokens ---------- */
:root {
  --bg: #060d16;
  --bg-2: #0a1420;
  --surface: #0e1a28;
  --surface-2: #132437;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(90, 184, 255, 0.22);
  --text: #eaf2fb;
  --text-dim: #9db1c7;
  --text-mute: #647689;
  --accent: #2e9ff7;
  --accent-2: #5bb8ff;
  --accent-soft: rgba(46, 159, 247, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- Background FX ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  z-index: -2;
}
.bg-glow {
  position: fixed;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(circle, rgba(46, 159, 247, 0.22), transparent 65%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Falling bubbles ---------- */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bubbles .bubble {
  position: absolute;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(91, 184, 255, 0.55), rgba(46, 159, 247, 0.25) 60%, transparent 72%);
  border: 1px solid rgba(91, 184, 255, 0.25);
  animation: fall linear infinite;
  will-change: transform;
}
@keyframes fall {
  0% { transform: translateY(-10vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(110vh) translateX(var(--drift, 20px)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bubbles { display: none; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

.section { padding: 96px 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(6, 13, 22, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.nav.scrolled {
  border-color: var(--border);
  background: rgba(6, 13, 22, 0.88);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 4px 14px rgba(46, 159, 247, 0.5));
}
.brand-name { font-size: 20px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(46, 159, 247, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(46, 159, 247, 0.5); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(46, 159, 247, 0.3);
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(91, 184, 255, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 184, 255, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(91, 184, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 184, 255, 0); }
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(120deg, var(--accent-2), #bfe0ff 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 620px;
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }

/* Loader block */
.loader {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: left;
}
.loader-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.loader-dots { display: flex; gap: 6px; }
.loader-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2c2c38; display: block; }
.loader-dots i:nth-child(1) { background: #ff5f57; }
.loader-dots i:nth-child(2) { background: #febc2e; }
.loader-dots i:nth-child(3) { background: #28c840; }
.loader-label { color: var(--text-mute); font-size: 13px; font-family: var(--mono); }
.copy-btn {
  margin-left: auto;
  background: var(--accent-soft);
  border: 1px solid rgba(46, 159, 247, 0.3);
  color: var(--accent-2);
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.copy-btn:hover { background: rgba(46, 159, 247, 0.25); }
.copy-btn.copied { background: rgba(40, 200, 64, 0.18); border-color: rgba(40, 200, 64, 0.4); color: #4ade80; }
.loader-code { padding: 18px 16px; overflow-x: auto; }
.loader-code code { font-family: var(--mono); font-size: 14px; color: #cfe6ff; }

/* Stats */
.stats { display: flex; gap: 48px; margin-top: 52px; flex-wrap: wrap; justify-content: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat b { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; transition: color 0.4s; }
.stat span { color: var(--text-mute); font-size: 14px; }
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulseGreen 2s infinite;
  vertical-align: middle;
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
#liveUsers.up { color: #4ade80; }
#liveUsers.down { color: #f87171; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-dim); font-size: 1.08rem; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 24px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(46, 159, 247, 0.2);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.98rem; }

/* ---------- Games ---------- */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.game {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.game:hover { transform: translateY(-4px); border-color: var(--border-2); }
.game h3 { font-size: 1.25rem; margin-bottom: 6px; }
.game p { color: var(--text-mute); font-size: 0.92rem; }
.game.featured {
  background: linear-gradient(160deg, var(--accent-soft), var(--surface));
  border-color: rgba(46, 159, 247, 0.4);
}
.game-tag {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  background: rgba(46, 159, 247, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 72px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-size: 18px;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.96rem; }

/* CTA band */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(46, 159, 247, 0.16), var(--surface));
  border: 1px solid rgba(46, 159, 247, 0.3);
  border-radius: var(--radius);
  padding: 40px 48px;
}
.cta-band h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent-2);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-dim); padding: 0 0 18px; }
.faq code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--accent-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 40px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-brand p { width: 100%; color: var(--text-mute); font-size: 0.92rem; margin-top: 4px; }
.footer-links, .footer-social { display: flex; gap: 24px; align-items: center; }
.footer-links a, .footer-social a { color: var(--text-dim); font-size: 15px; transition: color 0.2s; }
.footer-links a:hover, .footer-social a:hover { color: var(--text); }
.footer-bottom { padding-top: 24px; color: var(--text-mute); font-size: 14px; text-align: center; }

/* ---------- Pricing ---------- */
.btn-block { width: 100%; margin-top: 8px; }
.price-card {
  position: relative;
  background: linear-gradient(160deg, var(--accent-soft), var(--surface));
  border: 1px solid rgba(46, 159, 247, 0.35);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.price-tag {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  background: rgba(46, 159, 247, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; }
.price-amt { font-size: 2.4rem; font-weight: 900; letter-spacing: -0.02em; }
.price-per { color: var(--text-mute); font-size: 1rem; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.price-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-dim);
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Page header (interior pages) ---------- */
.page {
  min-height: calc(100vh - 68px);
  padding: 56px 0 96px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-head p { color: var(--text-dim); margin-top: 6px; }

/* Search box */
.search {
  position: relative;
  min-width: 300px;
  flex: 0 1 420px;
}
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-mute); }
.search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 13px 18px 13px 46px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--text-mute); }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Script cards ---------- */
.script-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.script-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.script-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.script-card.flagship { border-color: rgba(46, 159, 247, 0.4); background: linear-gradient(160deg, var(--accent-soft), var(--surface)); }
.script-top { display: flex; gap: 18px; padding: 24px; }
.script-icon {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 75% 58%), hsl(var(--h) 70% 42%));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.script-icon.has-img { background: none; }
.script-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.script-info { min-width: 0; }
.script-info h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flag-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-2); background: rgba(46, 159, 247, 0.2);
  padding: 3px 8px; border-radius: 999px;
}
.script-cat {
  display: inline-block;
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 4px 0 10px;
}
.pills { display: flex; gap: 8px; margin-bottom: 12px; }
.pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.pill-online { color: #4ade80; background: rgba(40, 200, 64, 0.12); border-color: rgba(40, 200, 64, 0.3); }
.pill-free { color: #fbbf24; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.3); }
.pill-paid { color: #fbbf24; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.3); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 7px;
}
.script-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.feat-count { font-family: var(--mono); font-size: 13px; color: var(--text-mute); }
.view-feat { color: var(--accent-2); font-weight: 600; font-size: 14px; transition: color 0.2s; }
.view-feat:hover { color: var(--text); }
.script-empty { text-align: center; color: var(--text-mute); padding: 60px 0; display: none; }

/* Teaser row helper */
.teaser-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.teaser-head .section-head { text-align: left; margin: 0; }

/* ---------- Terms of Service ---------- */
.tos-updated { color: var(--text-mute); font-size: 0.92rem; margin-bottom: 10px; }
.tos-intro {
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 36px;
}
.tos { display: flex; flex-direction: column; gap: 16px; }
.tos-section {
  display: flex;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.tos-num {
  flex: none;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(46, 159, 247, 0.25);
  border-radius: 10px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
}
.tos-section h3 { font-size: 1.2rem; margin-bottom: 10px; }
.tos-section p { color: var(--text-dim); }
.tos-section p + ul { margin-top: 10px; }
.tos-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tos-section li {
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
}
.tos-section li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.tos-note { margin-top: 12px; font-size: 0.95rem; }
.tos-note strong { color: var(--accent-2); }
.tos-section a { color: var(--accent-2); }
.tos-section a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .tos-section { flex-direction: column; gap: 14px; }
}

/* ---------- Features modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 12, 0.72);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 940px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.modal-count { color: var(--text-mute); font-size: 14px; margin-top: 6px; }
.modal-close {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-search { padding: 20px 28px 4px; }
.modal-search .search { min-width: 0; flex: 1; max-width: none; }
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px 28px;
}
.feat-cat { margin-top: 22px; }
.feat-cat:first-child { margin-top: 6px; }
.feat-cat-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.feat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
}
.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.45;
}
.feat-dot {
  flex: none;
  width: 6px; height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.feat-empty { color: var(--text-mute); text-align: center; padding: 40px 0; }

/* Modal scrollbar */
.modal-body::-webkit-scrollbar { width: 10px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; border: 3px solid var(--bg-2); }

@media (max-width: 640px) {
  .modal { padding: 0; }
  .modal-panel { max-height: 100vh; height: 100vh; border-radius: 0; border: none; }
  .feat-list { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .script-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }
  .section { padding: 72px 0; }
  .stats { gap: 32px; }
  .cta-band { padding: 32px 28px; text-align: center; justify-content: center; }
}
@media (max-width: 480px) {
  .feature-grid, .games-grid, .steps { grid-template-columns: 1fr; }
}
