:root {
  --bg: #121519;
  --surface: #1a1f26;
  --surface-2: #232a33;
  --line: rgba(243, 239, 228, 0.09);
  --text: #f3efe4;
  --muted: #a3a9b2;
  --gold: #e3bf5e;
  --gold-ink: #1a1507;
  --felt: #2f5c40;
  --felt-edge: #27492f;
  --red: #d64a4a;
  --card: #f8f5ee;
  --card-ink: #1c2027;

  --best: #6fc382;
  --fine: #e3bf5e;
  --mistake: #df8a3f;
  --blunder: #d9534f;

  --mike: #d9823d;
  --lisa: #d14d85;
  --tom: #3f63a3;
  --anna: #4b8a5f;
  --alex: #6c55b8;

  --display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --gutter: clamp(16px, 5vw, 56px);
  --section: clamp(88px, 13vw, 160px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.9rem, 7vw, 4.9rem);
  line-height: 1;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms var(--ease-out), background-color 150ms;
}

.button:hover { background: #ecc96a; }
.button:active { transform: scale(0.98); }
.button:disabled { opacity: 0.6; cursor: default; }

.link {
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(243, 239, 228, 0.35);
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms;
}

.link:hover { text-decoration-color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo {
  width: 28px;
  height: 28px;
}

.nav-link {
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms;
}

.nav-link:hover { color: var(--text); }

/* Sections */

main > section {
  padding-inline: var(--gutter);
  max-width: 1180px;
  margin-inline: auto;
}

main > section + section { margin-top: var(--section); }

.section-head {
  max-width: 34rem;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head .eyebrow { margin-bottom: 14px; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }

/* Hero */

.hero {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  padding-top: clamp(32px, 7vw, 96px);
  align-items: center;
}

.hero-copy { max-width: 36rem; }
.hero-copy > * { margin-bottom: 24px; }
.hero-copy > .eyebrow { margin-bottom: 20px; }
.hero-copy > h1 { margin-bottom: 28px; }

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 30rem;
}

.fineprint {
  color: var(--text);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}

@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; }
  .hero-actions .link { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * > [style*="--i"], .hero > .puzzle {
    animation: rise 800ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 90ms);
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* The puzzle */

.puzzle {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

@media (max-width: 959px) {
  .puzzle { justify-self: start; }
}

.puzzle-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  font-family: var(--display);
}

.puzzle-head strong { font-size: 1.1rem; font-weight: 600; }
.puzzle-head span { font-size: 0.85rem; color: var(--muted); }

.seats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

/* Subgrid rows keep the actions level when "calling station" wraps on phones. */
.seat {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  justify-items: center;
  text-align: center;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
}

.seat small,
.seat-type {
  font-family: var(--body);
  font-size: 0.72rem;
  color: var(--muted);
}

.seat-type { color: var(--gold); }

.seat.folded { opacity: 0.4; }

.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--c);
  color: var(--text);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
}

.felt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 16px 22px;
  border-radius: 120px;
  background: var(--felt);
  box-shadow: inset 0 0 0 7px var(--felt-edge);
}

.pot {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(18, 21, 25, 0.35);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 500;
}

.board { display: flex; gap: 8px; }

.card {
  position: relative;
  display: block;
  width: 46px;
  height: 64px;
  border-radius: 7px;
  background: var(--card);
  color: var(--card-ink);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.card b { position: absolute; top: 6px; left: 7px; font-size: 1.1rem; font-weight: 700; }
.card i { position: absolute; right: 7px; bottom: 6px; font-size: 1.1rem; font-style: normal; }
.card.red { color: var(--red); }

.you {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: -18px 0 18px;
}

.hole { display: flex; }
.hole .card { width: 54px; height: 76px; }
.hole .card b, .hole .card i { font-size: 1.25rem; }
.hole .card:first-child { transform: rotate(-7deg) translateX(5px); }
.hole .card:last-child { transform: rotate(7deg) translateX(-5px); }

.you p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 500;
}

.dealer {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card);
  color: var(--card-ink);
  font-size: 0.7rem;
  font-weight: 700;
}

.hint {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hint::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.options button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 60px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms, transform 150ms var(--ease-out);
}

.options button small {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.options button.bet { color: var(--gold); border-color: rgba(227, 191, 94, 0.35); }
.options button:hover { background: #2a323c; border-color: rgba(227, 191, 94, 0.6); }
.options button:active { transform: scale(0.98); }

/* The verdict */

.verdict {
  padding-top: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .verdict:not([hidden]) { animation: rise 450ms var(--ease-out) both; }
}

.verdict-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.verdict-head strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
}

.verdict-head span { font-size: 0.9rem; color: var(--muted); }

.grade {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--g);
  color: var(--gold-ink);
}

.grade svg { width: 22px; height: 22px; }

.verdict-why {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.verdict-why li + li { margin-top: 6px; }

.concept {
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.95rem;
  line-height: 1.4;
}

.concept small {
  display: block;
  margin-bottom: 2px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.outcomes {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0 4px;
  list-style: none;
}

.outcomes li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.outcomes li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--g);
}

.outcomes li.picked { color: var(--text); font-weight: 600; }
.outcomes li.picked::before { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--g); }

.verdict-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

.verdict-foot button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* Cast */

.cast-list {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cast-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 18px;
}

.cast-list .avatar {
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
}

.cast-list h3 { font-size: 1.2rem; }

@media (min-width: 700px) {
  .cast-list { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
  .cast-list li { grid-template-columns: 1fr; gap: 0; }
  .cast-list .avatar { grid-row: auto; margin-bottom: 16px; }
  .cast-list h3 { margin-bottom: 8px; }
}

@media (min-width: 1000px) {
  .cast-list { grid-template-columns: repeat(5, 1fr); }
}

.cast-list h3 small {
  display: block;
  margin-top: 4px;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.cast-list p { color: var(--muted); font-size: 0.98rem; }

/* Steps */

.step {
  display: grid;
  gap: 32px;
  align-items: center;
}

.step + .step { margin-top: clamp(56px, 8vw, 104px); }

.step-copy { max-width: 26rem; }

.step-number {
  display: block;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.step-copy h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 14px; }
.step-copy p { color: var(--muted); font-size: 1.05rem; }

.screen {
  width: min(100%, 300px);
  margin: 0;
}

.screen img {
  width: 100%;
  aspect-ratio: 780 / 1688;
  border: 1px solid var(--line);
  border-radius: 30px;
}

@media (min-width: 760px) {
  .step { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 96px); }
  .step:nth-child(odd) .step-copy { order: 1; }
  .step:nth-child(odd) .screen { justify-self: end; }
}

/* Then it adds up */

.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 280px);
  gap: 32px;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.screens::-webkit-scrollbar { display: none; }

.screens li { scroll-snap-align: start; }
.screens .screen { margin-bottom: 20px; }
.screens h3 { font-size: 1.15rem; margin-bottom: 8px; }
.screens p { color: var(--muted); font-size: 0.98rem; }

@media (min-width: 900px) {
  .screens {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    gap: 48px;
    overflow: visible;
  }
}

/* Daily puzzle */

.daily {
  display: grid;
  gap: 40px;
  align-items: center;
}

.daily-copy { max-width: 28rem; }
.daily-copy .eyebrow { margin-bottom: 14px; }
.daily-copy p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }

.share-card {
  width: min(100%, 420px);
  margin: 0;
}

.share-card img {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 24px;
}

@media (min-width: 860px) {
  .daily { grid-template-columns: 1fr 1fr; gap: 64px; }
  .share-card { justify-self: end; }
}

/* Waitlist */

.waitlist-section {
  padding-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line);
}

.waitlist-section h2 { margin-bottom: 14px; }
.waitlist-section > p { max-width: 30rem; color: var(--muted); font-size: 1.1rem; }

.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 560px;
  margin-top: 32px;
}

.waitlist input {
  flex: 1 1 240px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color 150ms;
}

.waitlist input::placeholder { color: var(--muted); }
.waitlist input:focus { border-color: var(--gold); outline: none; }

.form-note {
  flex-basis: 100%;
  min-height: 1.6em;
  font-size: 0.95rem;
  color: var(--mistake);
}

.form-done {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1180px;
  margin: var(--section) auto 0;
  padding: 32px var(--gutter) 40px;
}

.footer p { color: var(--muted); font-size: 0.95rem; }
