/* Page styles. The design tokens live in tokens.css, copied verbatim from
   design/mockups so the landing and the game cannot drift apart visually. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--felt-edge);
  color: var(--ink-1);
  font-family: var(--f-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--felt-edge) 92%, transparent);
  border-bottom: 1px solid var(--surface-line);
  backdrop-filter: blur(8px);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}
.brand {
  font-family: var(--f-display);
  font-size: 21px;
  letter-spacing: .04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-mark { display: block; }
.nav-sp { flex: 1; }

.langs { display: flex; gap: 2px; }
.langs button {
  background: none;
  border: 0;
  color: var(--ink-3);
  font: inherit;
  font-size: 11px;
  letter-spacing: .1em;
  padding: 6px 7px;
  cursor: pointer;
  border-radius: var(--r-sm);
}
.langs button[aria-pressed="true"] { color: var(--brass-1); font-weight: 700; }
.langs button:hover { color: var(--ink-1); }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--brass-2);
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brass-2); color: var(--ink-1); }
.btn-ghost { background: transparent; color: var(--ink-1); }
.btn-lg { padding: 15px 32px; font-size: 15px; }

/* the store buttons are placeholders: nothing is published yet, so they are
   spans rather than links and do not lift on hover. grey, not brass, so the
   difference from a working button is visible rather than only felt. */
.btn-store {
  background: transparent;
  color: var(--ink-mute);
  border-color: var(--surface-line);
  cursor: default;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.btn-store:hover { transform: none; }
.soon {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.nav-link {
  color: var(--ink-3);
  text-decoration: none;
  font-size: 13.5px;
  margin-right: 18px;
}
.nav-link:hover { color: var(--ink-1); }

/* ── hero ────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--felt-mid), var(--felt-base) 55%, var(--felt-edge));
  border-bottom: 1px solid var(--surface-line);
  text-align: center;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-1);
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(40px, 9vw, 76px);
  font-weight: 300;
  margin: 14px 0 6px;
  letter-spacing: .02em;
}
.hero h1 em {
  display: block;
  font-style: normal;
  font-size: .42em;
  color: var(--brass-1);
  letter-spacing: .12em;
}
.hero-tag {
  max-width: 34em;
  margin: 14px auto 26px;
  color: var(--ink-2);
  font-size: 16px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; color: var(--ink-3); font-size: 12px; letter-spacing: .06em; }

/* ── cards on the felt ───────────────────────────────────── */
.fan { display: flex; justify-content: center; margin-bottom: 26px; }
.pc {
  width: var(--card-w-md);
  aspect-ratio: 1 / 1.42;
  background: var(--card-paper);
  border: 1px solid var(--card-paper-edge);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  font-size: 30px;
  margin-left: -18px;
}
.pc:first-child { margin-left: 0; }
.pc.red { color: var(--suit-red); }
.pc.black { color: var(--suit-black); }

/* ── sections ────────────────────────────────────────────── */
.sec { padding: 64px 0; border-bottom: 1px solid var(--surface-line); }
.sec h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 36px);
  margin: 8px 0 10px;
}
.sec p.lead { color: var(--ink-2); max-width: 44em; margin: 0 0 28px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--surface-1);
  border: 1px solid var(--surface-line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.card h3 { margin: 10px 0 6px; font-size: 15px; }
.card p { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.card .glyph { font-size: 22px; color: var(--brass-1); }

/* ── faq ─────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
details {
  background: var(--surface-1);
  border: 1px solid var(--surface-line);
  border-radius: var(--r-md);
  padding: 14px 18px;
}
summary { cursor: pointer; font-size: 14px; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--ink-3); font-size: 13.5px; }

/* ── footer ──────────────────────────────────────────────── */
footer { padding: 36px 0 48px; color: var(--ink-mute); font-size: 12px; }
footer .row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ── narrow screens ──────────────────────────────────────── */
/* Measured: at 360px the nav wanted 503px — brand, six language buttons
   and the play button will not share one row on a phone. The language
   switch moves to its own line and the play button shrinks. */
@media (max-width: 560px) {
  .nav-in {
    height: auto;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
  }
  .nav-sp { flex-basis: 100%; order: 1; height: 0; }
  .langs { order: 2; }
  .nav-in .btn { order: 3; margin-left: auto; padding: 8px 16px; font-size: 13px; }
  .brand { font-size: 18px; }
  .nav-link { display: none; }

  .hero { padding: 48px 0 44px; }
  .sec { padding: 44px 0; }
  .pc { width: var(--card-w-sm); font-size: 22px; }
  .hero-cta .btn-lg { padding: 13px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}
