:root {
  --bg: #0b0a14;
  --bg-2: #121022;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f1ff;
  --muted: #a7a3c2;
  --dim: #6f6b8c;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --amber: #fbbf24;
  --grad: linear-gradient(120deg, #a78bfa 0%, #f472b6 50%, #fbbf24 100%);
  --radius: 20px;
  --max: 1160px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* background glow */
.glow {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(600px 420px at 12% -5%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(520px 380px at 95% 10%, rgba(244, 114, 182, 0.18), transparent 70%),
    radial-gradient(700px 500px at 50% 110%, rgba(34, 211, 238, 0.10), transparent 70%);
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: 0.35;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 10, 20, 0.7);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; box-shadow: 0 6px 24px rgba(244, 114, 182, 0.35);
}
.logo-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  font-family: inherit; color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #160b24; box-shadow: 0 8px 30px rgba(244, 114, 182, 0.35); }
.btn-ghost { background: var(--panel); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px;
  border-radius: 999px; background: var(--panel); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.eyebrow .dot { width: 20px; height: 20px; border-radius: 50%; background: rgba(163, 230, 53, 0.15); display: grid; place-items: center; }
.eyebrow .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 800; margin: 22px 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 26px; }
.hero-stats span { font-size: 13px; color: var(--dim); }

/* demo card */
.demo {
  position: relative; border-radius: 28px; padding: 22px;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.16), rgba(18, 16, 34, 0.9) 45%);
  border: 1px solid rgba(167, 139, 250, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.demo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #160b24;
}
.av-nova { background: linear-gradient(135deg, #c4b5fd, #f472b6); }
.av-rook { background: linear-gradient(135deg, #67e8f9, #818cf8); }
.av-mimi { background: linear-gradient(135deg, #fde68a, #fb7185); }
.av-atlas { background: linear-gradient(135deg, #bef264, #22d3ee); }
.demo-head .who b { display: block; font-size: 15px; }
.demo-head .who span { font-size: 12px; color: var(--lime); }
.demo-head .coins {
  margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 999px; background: rgba(251, 191, 36, 0.12); color: var(--amber); font-weight: 700; font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.coin-ico { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fde68a, #f59e0b); box-shadow: 0 0 0 2px rgba(251,191,36,.3); }
.bubble {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px;
  padding: 12px 14px; font-size: 14px; color: #e4e0ff; min-height: 48px; margin-bottom: 16px;
  transition: opacity .25s;
}
.reels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px;
  border-radius: 20px; background: #07060e; border: 1px solid var(--line);
  box-shadow: inset 0 8px 30px rgba(0,0,0,.6);
}
.reel {
  height: 104px; border-radius: 14px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #17142b, #0e0c1c 50%, #17142b);
  border: 1px solid rgba(255,255,255,.06);
}
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; height: 26px; z-index: 2; pointer-events: none; }
.reel::before { top: 0; background: linear-gradient(#07060e, transparent); }
.reel::after { bottom: 0; background: linear-gradient(transparent, #07060e); }
.strip { display: flex; flex-direction: column; align-items: center; }
.strip div { height: 104px; display: grid; place-items: center; font-size: 46px; line-height: 1; }
.reel.win { border-color: rgba(251, 191, 36, .7); box-shadow: 0 0 24px rgba(251,191,36,.35); }
.demo-actions { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.demo-actions .btn { flex: 1; }
.demo-actions #reset { flex: none; width: 44px; padding: 0; font-size: 18px; }
.demo-note { font-size: 12px; color: var(--dim); margin-top: 12px; text-align: center; }
.float-chip {
  position: absolute; padding: 8px 12px; border-radius: 12px; font-size: 12px; font-weight: 600;
  background: rgba(18, 16, 34, 0.92); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.4);
  display: flex; align-items: center; gap: 8px; animation: bob 5s ease-in-out infinite;
}
.float-chip.a { top: -18px; right: 28px; }
.float-chip.b { bottom: -16px; left: -20px; animation-delay: -2.5s; }
.float-chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* sections */
section { padding: 88px 0; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); margin-bottom: 14px; }
h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 800; margin-bottom: 16px; }
.sec-head p { color: var(--muted); font-size: 17px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  overflow: hidden;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1;
  position: absolute; right: 18px; top: 10px; color: rgba(255,255,255,.05);
}
.step .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.step .ico svg { width: 24px; height: 24px; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
.ico-v { background: rgba(139,92,246,.15); color: #c4b5fd; }
.ico-p { background: rgba(244,114,182,.15); color: #f9a8d4; }
.ico-c { background: rgba(34,211,238,.13); color: #67e8f9; }
.ico-a { background: rgba(251,191,36,.13); color: #fcd34d; }
.ico-l { background: rgba(163,230,53,.13); color: #bef264; }

/* characters */
.chars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.char {
  padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s;
}
.char:hover { transform: translateY(-4px); border-color: rgba(167,139,250,.35); }
.char .avatar { width: 56px; height: 56px; border-radius: 18px; font-size: 22px; margin-bottom: 16px; }
.char h3 { font-size: 20px; }
.char .role { font-size: 13px; color: var(--dim); margin-bottom: 12px; }
.char q { display: block; font-size: 14px; color: #d6d2f0; font-style: italic; quotes: "“" "”"; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.builder {
  margin-top: 22px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: center;
  padding: 32px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(139,92,246,.12), rgba(34,211,238,.06));
}
.builder h3 { font-size: 26px; margin-bottom: 10px; }
.builder p { color: var(--muted); font-size: 15px; }
.traits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.trait { padding: 14px 16px; border-radius: 14px; background: rgba(7,6,14,.6); border: 1px solid var(--line); }
.trait span { font-size: 12px; color: var(--dim); display: block; margin-bottom: 8px; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }

/* games */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game {
  position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); min-height: 210px; display: flex; flex-direction: column; overflow: hidden;
}
.game .art { font-size: 40px; margin-bottom: 18px; line-height: 1; }
.game h3 { font-size: 21px; margin-bottom: 8px; }
.game p { color: var(--muted); font-size: 14.5px; flex: 1; }
.game .meta { display: flex; gap: 8px; margin-top: 16px; }
.game::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -60px;
  filter: blur(40px); opacity: .35; pointer-events: none;
}
.g1::after { background: var(--amber); } .g2::after { background: var(--violet); } .g3::after { background: var(--cyan); }
.g4::after { background: var(--pink); } .g5::after { background: var(--lime); } .g6::after { background: #fb923c; }
.game.feature { grid-column: span 2; }

/* social split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feat-list { display: grid; gap: 14px; }
.feat { display: flex; gap: 16px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.feat .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.feat .ico svg { width: 20px; height: 20px; }
.feat b { display: block; margin-bottom: 2px; }
.feat span { color: var(--muted); font-size: 14.5px; }
.room {
  border-radius: 24px; padding: 20px; background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.room-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.room-top b { font-family: var(--font-display); font-size: 17px; }
.live { font-size: 12px; color: var(--lime); display: flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.msg { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.msg .avatar { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.msg .body { font-size: 14px; }
.msg .body small { display: block; font-size: 12px; color: var(--dim); }
.msg .body p { background: var(--panel-2); padding: 8px 12px; border-radius: 4px 14px 14px 14px; margin-top: 3px; color: #e4e0ff; }
.msg.event p { background: rgba(251,191,36,.1); color: #fde68a; border: 1px solid rgba(251,191,36,.2); }
.av-you { background: linear-gradient(135deg, #e2e8f0, #94a3b8); }
.av-sam { background: linear-gradient(135deg, #fdba74, #f472b6); }

/* safety */
.safety { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.safe { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.safe .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.safe .ico svg { width: 22px; height: 22px; }
.safe h3 { font-size: 18px; margin-bottom: 8px; }
.safe p { font-size: 14px; color: var(--muted); }
.notice {
  margin-top: 22px; padding: 18px 22px; border-radius: 16px; font-size: 14px; color: #fde68a;
  background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.22);
}

/* faq */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
details { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); padding: 0 22px; }
summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 20px; font-size: 15px; }

/* cta */
.cta {
  text-align: center; padding: 64px 32px; border-radius: 32px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(244,114,182,.25) 55%, rgba(251,191,36,.2));
  border: 1px solid rgba(255,255,255,.12);
}
.cta h2 { margin-bottom: 14px; }
.cta p { color: #e4e0ff; max-width: 520px; margin: 0 auto 28px; }
.cta .hero-cta { justify-content: center; margin-top: 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 88px; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot p { color: var(--dim); font-size: 14px; max-width: 360px; margin-top: 12px; }
.foot-links { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-links h4 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.foot-links a { display: block; font-size: 14px; color: var(--dim); margin-bottom: 8px; }
.foot-links a:hover { color: var(--text); }
.copy { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* legal pages */
.legal-hero { padding: 64px 0 24px; }
.legal-hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 16px 0 12px; }
.legal-hero p { color: var(--muted); }
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 32px 0 0; align-items: start; }
.toc { position: sticky; top: 96px; padding: 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.toc b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.toc a { display: block; font-size: 13.5px; color: var(--muted); padding: 5px 0; line-height: 1.4; }
.toc a:hover { color: var(--text); }
.doc { max-width: 760px; }
.doc .summary {
  padding: 22px 24px; border-radius: 16px; margin-bottom: 40px;
  background: linear-gradient(120deg, rgba(139,92,246,.12), rgba(34,211,238,.06)); border: 1px solid var(--line);
}
.doc .summary b { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: 18px; }
.doc .summary ul { margin-top: 6px; }
.doc h2 { font-size: 26px; margin: 44px 0 14px; scroll-margin-top: 96px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #cfcbe6; font-size: 15.5px; }
.doc p { margin-bottom: 14px; }
.doc ul { padding-left: 20px; margin-bottom: 14px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--pink); }
.doc a { color: #f9a8d4; text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #cfcbe6; }
.doc th { color: var(--text); font-weight: 600; background: var(--panel); }
.doc .callout { padding: 16px 18px; border-radius: 14px; background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.22); color: #fde68a; margin-bottom: 16px; font-size: 15px; }
.doc .caps { text-transform: uppercase; font-size: 14px; letter-spacing: .01em; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf h1 { font-size: clamp(64px, 12vw, 140px); margin: 0; }
.nf p { color: var(--muted); margin: 8px 0 28px; }

/* responsive */
@media (max-width: 980px) {
  .hero .wrap, .split, .builder { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .chars, .safety { grid-template-columns: repeat(2, 1fr); }
  .games { grid-template-columns: repeat(2, 1fr); }
  .game.feature { grid-column: auto; }
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .float-chip.b { left: 8px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  section { padding: 64px 0; }
  .steps, .chars, .games, .safety, .traits { grid-template-columns: 1fr; }
  .game.feature { grid-column: auto; }
  .hero-stats { gap: 22px; }
  .reel, .strip div { height: 84px; }
  .strip div { font-size: 38px; }
  .builder, .cta { padding: 26px 18px; }
  .float-chip { display: none; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border-bottom: none; padding: 4px 0; }
  .doc td:first-child { font-weight: 600; color: var(--text); padding-top: 14px; }
  .doc tr { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
