:root {
  --violet: #6c5ce7;
  --violet-2: #8e7cff;
  --mint: #00c9a7;
  --pink: #ff6b9d;
  --bg: #f7f6fd;
  --surface: #ffffff;
  --surface-2: #efedfb;
  --text: #16132b;
  --muted: #5d5a73;
  --border: rgba(22, 19, 43, 0.08);
  --grad: linear-gradient(135deg, #6c5ce7 0%, #8e7cff 50%, #00c9a7 100%);
  --shadow: 0 20px 50px -20px rgba(108, 92, 231, 0.45);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0d1a;
    --surface: #1c1930;
    --surface-2: #25213d;
    --text: #f2f0ff;
    --muted: #a9a5c4;
    --border: rgba(255, 255, 255, 0.08);
  }
}
:root[data-theme="dark"] {
  --bg: #0f0d1a;
  --surface: #1c1930;
  --surface-2: #25213d;
  --text: #f2f0ff;
  --muted: #a9a5c4;
  --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; }
.nav .links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav .links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav .links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav .links a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 16px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; }
.btn-primary { background: var(--grad); color: #fff !important; box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--text) !important; border: 1px solid var(--border); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 14px; color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent); }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; margin: 18px 0 18px; font-weight: 900; }
h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: 14px; }

.phone { position: relative; margin: 0 auto; width: min(320px, 82vw); aspect-ratio: 9 / 19; border-radius: 44px; background: #0f0d1a; padding: 12px; box-shadow: 0 40px 80px -30px rgba(22, 19, 43, 0.6), inset 0 0 0 2px rgba(255,255,255,0.08); }
.screen { height: 100%; border-radius: 34px; overflow: hidden; background: #f7f6fd; display: flex; flex-direction: column; font-size: 13px; color: #16132b; }
.screen .bar { padding: 22px 16px 10px; display: flex; align-items: center; gap: 10px; background: #fff; border-bottom: 1px solid rgba(0,0,0,0.05); }
.screen .bar b { display: block; font-size: 14px; }
.screen .bar small { color: #5d5a73; }
.screen .live { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); display: inline-block; margin-right: 4px; }
.msgs { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.msg { max-width: 78%; padding: 8px 12px; border-radius: 18px; background: #ebe8fb; animation: pop 0.5s both; }
.msg.me { align-self: flex-end; background: var(--grad); color: #fff; }
.msg .who { font-size: 11px; font-weight: 800; display: block; margin-bottom: 1px; }
.gamecard { align-self: center; width: 88%; padding: 10px 12px; border-radius: 16px; background: linear-gradient(135deg, #0b7a45, #34c77b); color: #fff; display: flex; gap: 10px; align-items: center; animation: pop 0.5s both; }
.gamecard span { font-size: 26px; }
.composer { margin: 8px; padding: 10px 14px; border-radius: 20px; background: #fff; color: #9a97ad; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.msgs > *:nth-child(1) { animation-delay: 0.2s; }
.msgs > *:nth-child(2) { animation-delay: 0.7s; }
.msgs > *:nth-child(3) { animation-delay: 1.2s; }
.msgs > *:nth-child(4) { animation-delay: 1.7s; }
.msgs > *:nth-child(5) { animation-delay: 2.2s; }
.signal { position: absolute; inset: -60px; z-index: -1; border-radius: 50%; }
.signal::before, .signal::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--violet) 30%, transparent); animation: ring 3.6s infinite; }
.signal::after { animation-delay: 1.8s; }
@keyframes ring { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .signal::before, .signal::after, .msg, .gamecard { animation: none; } }

/* Sections */
section { padding: 72px 0; }
.section-title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; font-weight: 900; }
.section-sub { color: var(--muted); font-size: 18px; margin: 0 0 36px; max-width: 640px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; }
.card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--violet) 12%, transparent); margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

.places { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.places span { padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; }

.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; position: relative; }
.step::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 900; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }

.games { display: grid; gap: 12px; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .games { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .games { grid-template-columns: repeat(2, 1fr); } }
.game { border-radius: 22px; padding: 18px 16px; color: #fff; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.game .e { font-size: 34px; }
.game b { font-size: 17px; display: block; }
.game small { opacity: 0.9; }
.live-tag { font-size: 10px; font-weight: 900; background: rgba(255,255,255,0.25); padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-weight: 900; color: var(--violet); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.band { background: var(--grad); color: #fff; border-radius: 32px; padding: 48px 32px; text-align: center; box-shadow: var(--shadow); }
.band h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; letter-spacing: -0.03em; }
.band p { margin: 0 0 24px; opacity: 0.92; font-size: 18px; }
.band .btn { background: #fff; color: var(--violet) !important; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .spacer { flex: 1; }

/* Prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 48px 16px 80px; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); }
.prose h2 { margin-top: 36px; font-size: 22px; }
.prose p, .prose li { color: var(--muted); font-size: 17px; }
.prose strong { color: var(--text); }

/* Join page */
.join { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 16px; text-align: center; }
.join .code { font-size: clamp(44px, 12vw, 72px); font-weight: 900; letter-spacing: 0.12em; margin: 8px 0 4px; }
.join .card { max-width: 440px; width: 100%; padding: 32px 24px; }
.join .actions { display: grid; gap: 10px; margin-top: 22px; }
