:root {
  color-scheme: light;
  --bg: #efe9df;
  --bg-tint: #e6ddcf;
  --panel: #fbf7ef;
  --ink: #241a24;
  --muted: #6b5a63;
  --soft: #ece2d5;
  --line: rgba(36, 26, 36, 0.14);
  --felt: #3a1230;
  --felt-deep: #190a18;
  --gold: #a67c1e;
  --gold-bright: #d6b046;
  --gold-soft: rgba(166, 124, 30, 0.14);
  --red: #8e1b22;
  --shadow: 0 24px 70px rgba(25, 10, 24, 0.20);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #120a12;
  --bg-tint: #180d18;
  --panel: #1c111c;
  --ink: #f2e7cf;
  --muted: #b8a6ac;
  --soft: #241624;
  --line: rgba(242, 231, 207, 0.14);
  --felt: #4a1838;
  --felt-deep: #190a18;
  --gold: #d6b046;
  --gold-bright: #eccf76;
  --gold-soft: rgba(214, 176, 70, 0.16);
  --red: #d16a70;
  --shadow: 0 26px 78px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 78% -10%, var(--gold-soft), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--felt) 0%, var(--felt-deep) 100%);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(5, 38, 25, 0.28);
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand small,
.lead,
.muted,
.feature-card p,
.info-card p,
.legal-body p,
.check-list {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.site-nav a {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a.is-active,
.site-nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

select,
.icon-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

select {
  padding: 0 14px;
  cursor: pointer;
}

.icon-button {
  min-width: 46px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 18px;
}

/* Layout containers */
.hero,
.section,
.page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: center;
  min-height: 640px;
  padding: 66px 0 40px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(44px, 6.6vw, 82px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.01em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.04;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.14;
  font-weight: 900;
}

.lead {
  max-width: 640px;
  margin-bottom: 26px;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.34;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
}

.primary-action {
  background: linear-gradient(150deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: #241a02;
  border: 1px solid var(--gold);
  box-shadow: 0 16px 34px rgba(185, 143, 36, 0.32);
}

.primary-action:hover {
  filter: brightness(1.05);
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.secondary-action:hover {
  border-color: var(--gold);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.age-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--gold-soft);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}

/* Hero visual: felt table with cards */
.table-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.felt-card {
  position: relative;
  width: min(420px, 92vw);
  padding: 40px 28px 34px;
  border-radius: 32px;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--felt) 78%, #7a1f52) 0%, var(--felt) 45%, var(--felt-deep) 100%);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow), inset 0 0 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  overflow: hidden;
}

.felt-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(214, 176, 70, 0.4);
  border-radius: 24px;
  pointer-events: none;
}

.felt-arc {
  margin: 0 0 22px;
  color: rgba(244, 239, 216, 0.72);
  font-weight: 900;
  letter-spacing: 0.24em;
  font-size: 13px;
  text-transform: uppercase;
}

.card-hand {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: -10px;
  min-height: 190px;
}

.play-card {
  width: 108px;
  height: 154px;
  margin: 0 -14px;
  border-radius: 14px;
  background: #fbfaf5;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-weight: 900;
  position: relative;
  color: #12261b;
}

.play-card .pip {
  position: absolute;
  font-size: 20px;
  font-weight: 900;
}

.play-card .pip.tl { top: 8px; left: 10px; }
.play-card .pip.br { bottom: 8px; right: 10px; transform: rotate(180deg); }

.play-card.red { color: var(--red); }
.play-card.c1 { transform: rotate(-9deg) translateY(6px); }
.play-card.c2 { transform: rotate(-2deg); z-index: 2; }
.play-card.c3 { transform: rotate(8deg) translateY(4px); }

.hand-total {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--gold-bright);
  color: #241a02;
  font-weight: 900;
  font-size: 15px;
}

.chip-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.chip.g { background: #a67c1e; }
.chip.r { background: #8e1b22; }
.chip.k { background: #190a18; }
.chip.b { background: #4a1838; }

/* Sections */
.section {
  padding: 60px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.info-card,
.legal-body,
.split {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(5, 38, 25, 0.07);
}

.feature-card {
  padding: 24px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border-radius: 16px;
  font-size: 26px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 36px;
  align-items: center;
  padding: 34px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
  font-weight: 800;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.check-list li::before {
  content: "♠";
  color: var(--gold);
  font-size: 15px;
}

.stack-visual {
  display: grid;
  gap: 12px;
}

.stack-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-weight: 800;
}

.stack-tile .tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--felt) 0%, var(--felt-deep) 100%);
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  font-size: 18px;
  flex: none;
}

.stack-tile small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

/* Page (support / legal) */
.page {
  padding: 68px 0;
}

.page-hero.compact {
  max-width: 820px;
  margin-bottom: 30px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  padding: 26px;
}

.info-card h2 {
  font-size: 21px;
  margin-bottom: 10px;
}

.info-card a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: underline;
}

.legal-body {
  max-width: 900px;
  padding: 34px;
}

.legal-body h2 {
  margin-top: 30px;
  font-size: 26px;
}

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

.legal-body p {
  font-size: 17px;
  line-height: 1.64;
}

.legal-body a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.site-footer strong {
  color: var(--ink);
}

/* Responsive */
@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .table-stage {
    min-height: 460px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .section,
  .page,
  .site-footer {
    width: calc(100% - 28px);
  }

  .site-header {
    padding: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 40px;
    gap: 30px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .lead {
    font-size: 19px;
  }

  .feature-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .legal-body {
    padding: 22px;
    border-radius: 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
