:root {
  --page: #faf9f6;
  --surface: #ffffff;
  --surface-alt: #f1efe8;
  --text: #2c2c2a;
  --muted: #5f5e5a;
  --border: #d3d1c7;
  --accent: #854f0b;
  --accent-strong: #633806;
  --accent-soft: #faeeda;
  --accent-mid: #ba7517;
  --focus: #185fa5;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(44, 44, 42, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-strong);
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--accent);
}

.header-cta {
  padding: 8px 16px;
  border: 1px solid var(--accent-mid);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 650;
}

h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

.lede {
  margin: 0 0 20px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46ch;
}

.fact-list,
.plain-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.fact-list li,
.plain-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--muted);
}

.fact-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-mid);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-strong);
  color: #fff;
}

.button-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--muted);
  background: var(--surface-alt);
}

.fine-print {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.game-status dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.game-status dl > div {
  padding: 10px 12px;
  background: var(--surface-alt);
  border-radius: 10px;
}

.game-status dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.game-status dd {
  margin: 2px 0 0;
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.reel {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  min-height: 96px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.symbol {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  user-select: none;
}

.controls {
  margin: 0;
}

.bet-fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.bet-fieldset legend {
  padding: 0;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.bet-options {
  display: flex;
  gap: 8px;
}

.bet-option {
  position: relative;
  flex: 1;
}

.bet-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.bet-option span {
  display: block;
  padding: 8px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}

.bet-option input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent-mid);
  color: var(--accent-strong);
  font-weight: 600;
}

.bet-option input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.button-row {
  display: flex;
  gap: 10px;
}

.button-row .button-primary {
  flex: 2;
}

.button-row .button-secondary {
  flex: 1;
}

.result {
  min-height: 1.6em;
  margin: 16px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.result.is-win {
  border-left-color: var(--accent-mid);
  color: var(--accent-strong);
  font-weight: 600;
}

.section {
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
}

.section-intro {
  max-width: 70ch;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

caption {
  padding: 12px 16px;
  text-align: left;
  color: var(--muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

thead th {
  background: var(--surface-alt);
  font-weight: 600;
}

tbody th {
  font-weight: 600;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
}

summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 0 0 16px;
  color: var(--muted);
}

.plain-list {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 40px;
  padding: 32px 0 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner p {
  margin: 0 0 8px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-list {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }

  .game-card {
    padding: 18px;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .header-cta {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
