:root {
  --night-900: #0f1128;
  --brand-600: #b3106b;
  --brand-500: #970f5f;
  --brand-400: #ef1c8a;
  --glow-300: #ff9ecf;
  --ink-900: #1c1214;
  --ink-700: #3a2a2d;
  --ink-500: #6b5457;
  --paper-0: #ffffff;
  --paper-100: #fbf6f3;
  --paper-200: #f3e9e6;
  --line: #e7d9d5;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--paper-0);
  line-height: 1.6;
}

a {
  color: var(--brand-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper-0);
  border-bottom: 1px solid var(--line);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink-900);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand .spree {
  color: var(--brand-600);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--ink-700);
}

.nav-links a:hover {
  color: var(--brand-600);
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

/* Hero */

.hero {
  background:
    radial-gradient(circle at 20% -10%, var(--brand-400) 0%, transparent 55%),
    linear-gradient(160deg, var(--brand-600) 0%, var(--night-900) 100%);
  color: var(--paper-0);
  padding: 88px 0 96px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 28, 138, 0.16);
  border: 1px solid rgba(239, 28, 138, 0.4);
  color: var(--glow-300);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero h1 .gold {
  color: var(--glow-300);
}

.hero p.lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 46ch;
  margin: 0 0 32px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--paper-0);
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: default;
}

/* The live store badge is a real link, so it needs affordance the
   placeholder badge deliberately does not have. */
a.store-badge-live {
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

a.store-badge-live:hover,
a.store-badge-live:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  border-color: var(--paper-0);
  transform: translateY(-1px);
}

.hero-note a {
  color: rgba(255, 255, 255, 0.92);
}

.store-badge .store-badge-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.store-badge .store-badge-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-badge .store-badge-text strong {
  font-size: 1rem;
}

.hero-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art .trophy-wrap {
  width: min(320px, 80vw);
  aspect-ratio: 1;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */

section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  color: var(--brand-600);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
  font-weight: 800;
}

.section-head p {
  color: var(--ink-500);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-600);
  color: var(--glow-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.95rem;
}

.game-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}

.game-chip {
  background: var(--paper-200);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
}

.how-it-works {
  background: var(--paper-100);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 52px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-600);
  color: var(--glow-300);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.93rem;
}

.legal-note {
  background: var(--paper-200);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  font-size: 0.88rem;
  color: var(--ink-700);
  margin-top: 40px;
}

.cta {
  background: linear-gradient(135deg, var(--brand-600), var(--night-900));
  color: var(--paper-0);
  text-align: center;
  border-radius: 24px;
  padding: 56px 32px;
  margin: 0 24px;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 50ch;
  margin: 0 auto 28px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--ink-500);
}

.footer-links a:hover {
  color: var(--brand-600);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--ink-500);
}

/* Legal pages */

.legal-header {
  background: linear-gradient(160deg, var(--brand-600) 0%, var(--night-900) 100%);
  color: var(--paper-0);
  padding: 56px 0 40px;
}

.legal-header .container {
  max-width: 760px;
}

.legal-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.legal-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-body h2 {
  font-size: 1.15rem;
  margin: 40px 0 12px;
  font-weight: 700;
  color: var(--ink-900);
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body p {
  margin: 0 0 14px;
  color: var(--ink-700);
  font-size: 0.98rem;
}

.legal-body a {
  word-break: break-word;
}

/* The Apple non-sponsorship statement, sitting above Section 1 of the rules.
   Required by App Store Review Guideline 5.3.2, so it is styled to be read
   rather than skimmed past. */
.rules-callout {
  margin: 0 0 40px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-400);
  border-radius: 12px;
  background: var(--paper-100);
  color: var(--ink-900);
  font-weight: 600;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}

.back-link:hover {
  color: var(--paper-0);
}

/* Support page */

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.support-card {
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.support-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.support-card p {
  margin: 0 0 12px;
  color: var(--ink-500);
  font-size: 0.95rem;
}

.email-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-600);
  color: var(--paper-0);
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}

.email-button:hover {
  background: var(--brand-500);
  text-decoration: none;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p.lede {
    margin-left: auto;
    margin-right: auto;
  }

  .store-badges {
    justify-content: center;
  }

  .hero-art {
    order: -1;
  }

  .nav-links {
    display: none;
  }

  .cta {
    margin: 0 16px;
  }
}
