:root {
  --bg-1: #2A2666;
  --bg-2: #171547;
  --bg-3: #0D1230;

  --cream-1: #FFFDF6;
  --cream-2: #F3E8CE;
  --ink: #15173E;

  --gold-1: #FFF2B8;
  --gold-2: #FFD77A;
  --gold-3: #F6B83F;

  --red: #E0304A;
  --red-hover: #F0475F;

  --text-on-dark: #F5EFDF;
  --text-muted-on-dark: #AFA8D6;

  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-border-strong: rgba(255, 215, 122, 0.35);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: radial-gradient(ellipse 90% 70% at 50% 15%, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
  color: var(--text-on-dark);
  position: relative;
  overflow-x: hidden;
}

.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.stars .dot { position: absolute; border-radius: 50%; background: #FFF0B0; }
.stars .spark { position: absolute; color: #FFF7D0; font-size: 14px; opacity: 0.9; }

.clouds { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 22vh; min-height: 140px; z-index: 0; pointer-events: none; }

a { color: inherit; }

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 64px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}
.nav-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav .badge {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.nav .badge img { display: block; width: 100%; height: 100%; }
.nav .wordmark { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted-on-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text-on-dark); }
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted-on-dark);
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 9px;
  border: 1px solid var(--glass-border);
  transition: color 0.15s, border-color 0.15s;
}

@media (max-width: 420px) {
  .nav { gap: 8px; }
  .nav-right { gap: 12px; }
  .nav .wordmark { font-size: 15px; }
  .nav-link { display: none; }
  .nav-cta { padding: 8px 14px; }
}
.nav-cta:hover { color: var(--text-on-dark); border-color: var(--glass-border-strong); }

.hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.hero-badge {
  width: 104px;
  height: 104px;
  margin: 0 auto 28px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.hero-badge img { display: block; width: 100%; height: 100%; }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted-on-dark);
  margin: 0 0 32px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(224, 48, 74, 0.35);
}
.btn-primary:hover { background: var(--red-hover); }

.screenshot {
  margin: 0 auto 72px;
  max-width: 900px;
}
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 70px rgba(4, 6, 20, 0.55);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

.feature {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 215, 122, 0.14);
  color: var(--gold-2);
  margin-bottom: 16px;
}
.feature-icon svg { width: 18px; height: 18px; }
.feature h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--gold-2);
}
.feature p a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.feature p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted-on-dark);
  margin: 0;
}

.cta {
  text-align: center;
  padding: 40px 24px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-strong);
}
.cta h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.cta p { margin: 0 0 24px; color: var(--text-muted-on-dark); }

footer {
  position: relative;
  text-align: center;
  margin-top: 64px;
  font-size: 13px;
  color: var(--text-muted-on-dark);
}
footer p { margin: 0 0 6px; }
footer a { text-decoration: underline; text-underline-offset: 2px; }
footer .copyright { opacity: 0.7; }

/* Long-form content pages (how-to-play, etc.) */
.prose {
  max-width: 720px;
  margin: 0 auto 56px;
}
.prose h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  text-align: center;
}
.prose .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted-on-dark);
  text-align: center;
  margin: 0 0 48px;
}
.prose h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-2);
  margin: 40px 0 14px;
}
.prose p, .prose li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-on-dark);
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--gold-2); }
.prose strong { color: var(--gold-1); font-weight: 700; }
.prose a:not(.btn-primary) { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.prose .cta { margin-top: 48px; }
