:root {
  --ink: #1a2744;
  --ink-soft: #3d4d6f;
  --paper: #f3eee3;
  --paper-2: #e8e0cf;
  --chalk: #f8f4eb;
  --token: #d4a017;
  --token-bright: #f0c14b;
  --token-deep: #8a5a10;
  --board: #243322;
  --board-deep: #162016;
  --stamp: #b33b2b;
  --ok: #2f6f4e;
  --line: rgba(26, 39, 68, 0.12);
  --shadow: 0 18px 50px rgba(26, 39, 68, 0.14);
  --radius: 18px;
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, serif;
  --font-ui: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(26, 39, 68, 0.06) 1px, transparent 0) 0 0 / 22px 22px,
    var(--paper);
  font-family: var(--font-ui);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--token-bright);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(243, 238, 227, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  background:
    linear-gradient(180deg, rgba(246, 213, 107, 0.08), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(212, 160, 23, 0.18), transparent 36%),
    linear-gradient(160deg, var(--board-deep), var(--board) 55%, #2e4330);
  color: #f4efe2;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 18px solid rgba(240, 193, 75, 0.16);
  box-shadow: inset 0 0 0 12px rgba(240, 193, 75, 0.08);
}

.hero-grid {
  display: grid;
  gap: 36px;
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--token-bright);
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.section h2,
.game-card h2,
.feature h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  margin: 12px 0 16px;
  max-width: 14ch;
}

.lede {
  font-size: 1.12rem;
  max-width: 46ch;
  color: rgba(244, 239, 226, 0.86);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 650;
  cursor: pointer;
  background: none;
  font: inherit;
}

.btn-gold {
  background: linear-gradient(#f6d56b, var(--token));
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-gold:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: rgba(244, 239, 226, 0.35);
  color: #f4efe2;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-ink {
  background: var(--ink);
  color: #f8f4eb;
}

.btn-outline {
  border-color: var(--line);
  background: #fff;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.trust-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.92rem;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0;
}

.muted {
  color: var(--ink-soft);
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.game-card h2 {
  font-size: 1.45rem;
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(212, 160, 23, 0.18);
  color: var(--token-deep);
  white-space: nowrap;
}

.pill-ok {
  background: rgba(47, 111, 78, 0.12);
  color: var(--ok);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tags li {
  font-size: 0.78rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

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

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature .num {
  font-family: var(--font-display);
  color: var(--token-deep);
  font-size: 1.3rem;
}

.feature h3 {
  margin: 8px 0 8px;
  font-size: 1.15rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.panel ol {
  margin: 0;
  padding-left: 20px;
}

.panel li + li {
  margin-top: 10px;
}

.page-hero {
  padding: 48px 0 12px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 8px 0 12px;
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  font-family: var(--font-display);
  margin-top: 2rem;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.empty {
  padding: 32px;
  text-align: center;
  color: var(--ink-soft);
}

:focus-visible {
  outline: 3px solid var(--token-bright);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .trust,
  .features,
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 40px;
  }

  .trust,
  .features,
  .split,
  .header-inner {
    grid-template-columns: 1fr;
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
  }
}

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