:root {
  --bg: #16171a;
  --bg-2: #1c1d21;
  --card: #24252a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #9aa1ab;
  --accent: #e9b949;
  --accent-dim: rgba(233, 185, 73, 0.16);
  --silver: #c9ced6;
  --wood: #8a6646;
  --mode-easy: #e9b949;
  --mode-medium: #c9ced6;
  --mode-hard: #b07a4f;
  --mode-local: #f2d98a;
  --light: #ece9e2;
  --light-text: #1c1d21;
  --radius: 18px;
  --max: 1120px;
  --header: 68px;
  --font: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus {
  left: 8px;
  z-index: 100;
  background: var(--accent);
  color: #111;
  padding: 8px 12px;
  border-radius: 8px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(22, 23, 26, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }
.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #16171a !important;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
.play-btn:hover { filter: brightness(1.08); }
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
}
.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
  background:
    radial-gradient(circle at 76% 42%, rgba(233, 185, 73, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(138, 102, 70, 0.22), transparent 60%),
    repeating-linear-gradient(
      90deg,
      #16171a 0 46px,
      #19191b 46px 48px,
      #1a1a1d 48px 94px,
      #141416 94px 96px
    );
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 650;
  margin: 0 0 18px;
}
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 28px;
}
.ghost-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Sections */
section { padding: 88px 0; }
.section-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 650;
}
.section-lead {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 40px;
  font-size: 1.05rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 100%;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 650;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  border-top: 3px solid var(--accent);
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.honest {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.honest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.honest ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.honest li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.honest li strong { color: var(--text); display: block; margin-bottom: 4px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.panel p { margin: 0; color: var(--muted); }
.panel p + p { margin-top: 12px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 0 0 10px; }
.card p { margin: 0 0 16px; color: var(--muted); }
.card a.play-btn { display: inline-flex; }

.modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.mode {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  border-top: 6px solid var(--mode-easy);
}
.mode.medium { border-top-color: var(--mode-medium); }
.mode.hard { border-top-color: var(--mode-hard); }
.mode.local { border-top-color: var(--mode-local); }
.mode h3 { margin: 0 0 8px; font-size: 1.05rem; }
.mode p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.mode-swatch {
  width: 44px;
  height: 16px;
  border-radius: 3px;
  margin-bottom: 14px;
  background: var(--mode-easy);
}
.mode.medium .mode-swatch { background: var(--mode-medium); }
.mode.hard .mode-swatch { background: var(--mode-hard); }
.mode.local .mode-swatch { background: var(--mode-local); }

.mid-cta {
  background: linear-gradient(135deg, rgba(233, 185, 73, 0.1), rgba(138, 102, 70, 0.12));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}
.mid-cta-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.mid-cta h2 { margin-bottom: 16px; }
.mid-cta p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
}
.mid-cta .store-row { justify-content: center; }

.cta {
  text-align: center;
  padding: 72px 0 96px;
}
.cta .store-row { justify-content: center; margin-top: 8px; }
.cta-meta {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
.cta-meta code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
}

.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(22, 23, 26, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}
.sticky-mobile-cta .play-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }
.fineprint {
  width: 100%;
  margin: 16px 0 0;
  color: #6f747c;
  font-size: 0.8rem;
}
.footer-more {
  width: 100%;
  align-items: baseline;
  gap: 8px 16px;
}
.footer-more-label { color: var(--text); font-weight: 600; }

/* Privacy article */
.policy {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 96px;
}
.policy h1 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  font-weight: 650;
  margin: 0 0 10px;
}
.policy h2 {
  font-size: 1.12rem;
  font-weight: 650;
  margin: 36px 0 12px;
  color: var(--accent);
}
.policy p { margin: 0 0 14px; }
.policy .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.policy .muted { color: var(--muted); font-size: 0.95rem; }
.policy ul { padding-left: 1.2em; margin: 0 0 14px; }
.policy li { margin: 0.4em 0; }
.policy code {
  font-size: 0.86em;
  background: var(--card);
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.policy strong { font-weight: 650; }
.policy .callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 18px;
}
.policy .callout p:last-child { margin-bottom: 0; }

/* Social links in the footer */
.social { display: flex; gap: 6px; }
.social-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
}
.social-link:hover { color: var(--text); background: var(--card); }
.social-link svg { width: 18px; height: 18px; }

/* Coin toy in the hero */
.coin-toy {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}
.coin-btn {
  display: block;
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  width: min(320px, 72vw);
  aspect-ratio: 1;
  perspective: 1200px;
  border-radius: 50%;
}
.coin-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 8px; }
.coin {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.6s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.coin img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.5);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.coin .heads { transform: rotateY(0deg); }
.coin .tails { transform: rotateY(180deg); }
.coin-result {
  min-height: 1.6em;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}
.coin-result strong { color: var(--accent); }

/* Screenshot strip */
.screens {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 840px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.screens figure { margin: 0; }
.screens img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.screens figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-grid,
  .steps,
  .features,
  .honest-grid,
  .split { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 48px; }
  .coin-btn { width: min(240px, 64vw); }
  .nav .hide-sm { display: none; }
  section { padding: 64px 0; }
  .sticky-mobile-cta { display: block; }
  body { padding-bottom: 72px; }
}

@media (max-width: 680px) {
  .screens-grid {
    grid-template-columns: repeat(3, 72%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .screens-grid li { scroll-snap-align: center; }
}

@media (max-width: 560px) {
  .modes { grid-template-columns: 1fr; }
  .header-inner, .wrap, .policy {
    width: calc(100% - 28px);
  }
  .header-inner { gap: 10px; }
  .brand { font-size: 0.8rem; }
  .nav { gap: 12px; }
  .play-btn.header-play {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .hero-actions { gap: 4px 8px; }
  }
@media (max-width: 420px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coin { transition: none; }
}
