/* Lucky Loop — free play-money slot machine
   Design system + game UI. No frameworks, no external assets. */

:root {
  --bg: #0b0b0f;
  --bg-soft: #0e0e14;
  --panel: #14131b;
  --cream: #f4ecdc;
  --text: #e7e1d5;
  --muted: #b5ada0;
  --muted-2: #938b7f;
  --gold: #e8c98a;
  --gold-bright: #f6dfae;
  --gold-deep: #b98b43;
  --mint: #93dcb9;
  --rose: #eda3a0;
  --line: rgba(232, 201, 138, 0.22);
  --line-soft: rgba(244, 236, 220, 0.1);
  --focus: #9be7c8;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --cell: clamp(64px, 17vw, 88px);
  --radius-lg: 28px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(244, 236, 220, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 236, 220, 0.022) 1px, transparent 1px),
    radial-gradient(70rem 42rem at 84% -8%, rgba(232, 201, 138, 0.1), transparent 62%),
    radial-gradient(52rem 38rem at -8% 22%, rgba(147, 220, 185, 0.045), transparent 62%);
  background-size: 72px 72px, 72px 72px, auto, auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin-block-start: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--cream);
  text-wrap: balance;
}
p { text-wrap: pretty; }
a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
::selection { color: #171006; background: var(--gold); }

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

button { font-family: inherit; }
svg { display: block; }

.shell {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--gold);
  color: #171006;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

.symbol-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sym {
  width: clamp(34px, 8.4vw, 48px);
  height: auto;
  aspect-ratio: 1;
}
.sym-seven { color: #a92a20; }
.sym-diamond { color: #0f6f78; }
.sym-bell { color: #96620f; }
.sym-clover { color: #2e6b3d; }
.sym-star { color: #5b4aa8; }
.sym-cherry { color: #b12a2a; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 15, 0.88);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  text-decoration: none;
  flex: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--gold);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name em {
  font-style: italic;
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}
.site-nav a {
  position: relative;
  padding: 9px 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.site-nav a:hover { color: var(--cream); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav .nav-play { color: var(--gold); font-weight: 650; }
.site-nav .nav-play::after { transform: scaleX(1); opacity: 0.4; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(52px, 7vw, 92px) clamp(46px, 6vw, 78px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 980px;
  height: 980px;
  right: -440px;
  top: -520px;
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 138, 0.13);
  box-shadow:
    0 0 0 64px rgba(232, 201, 138, 0.025),
    0 0 0 128px rgba(232, 201, 138, 0.016);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: -220px;
  bottom: -420px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 220, 185, 0.055), transparent 66%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(147, 220, 185, 0.8);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6.3rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--cream);
}
.hero h1 span {
  display: block;
  margin-top: clamp(15px, 2vw, 22px);
  font-family: var(--font-ui);
  font-size: clamp(0.72rem, 1.25vw, 0.98rem);
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede {
  max-width: 44ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.65;
}

.hero-points {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 0.89rem;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 11px;
}
.hero-points li::before {
  content: "";
  width: 10px;
  height: 6px;
  flex: none;
  border-bottom: 1.5px solid var(--mint);
  border-left: 1.5px solid var(--mint);
  transform: rotate(-45deg) translateY(-1px);
}

.hero-note {
  margin: 22px 0 0;
  color: var(--muted-2);
  font-size: 0.7rem;
  letter-spacing: 0.045em;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(232, 201, 138, 0.35);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Machine ---------- */

.machine-wrap {
  position: relative;
  width: 100%;
  max-width: 466px;
  justify-self: end;
  scroll-margin-top: 100px;
}
.machine-wrap::before {
  content: "";
  position: absolute;
  inset: -16% -10%;
  z-index: -1;
  background: radial-gradient(circle at 50% 45%, rgba(232, 201, 138, 0.16), transparent 62%);
  filter: blur(28px);
  pointer-events: none;
}

.machine {
  position: relative;
  isolation: isolate;
  padding: 18px 18px 15px;
  border: 1px solid rgba(232, 201, 138, 0.36);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.055), transparent 24%),
    linear-gradient(150deg, #1d1b24 0%, #121118 48%, #0c0b10 100%);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
}
.machine::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 0;
  border: 1px solid rgba(232, 201, 138, 0.12);
  border-radius: 22px;
  pointer-events: none;
}
.machine > * { position: relative; z-index: 1; }

.machine-top {
  padding: 5px 0 16px;
  text-align: center;
}
.bulbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.bulbs i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 7px rgba(232, 201, 138, 0.72);
  opacity: 0.48;
}
.machine-title {
  margin: 0;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1.1;
  text-indent: 0.26em;
  text-transform: uppercase;
}
.machine-sub {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.reels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(232, 201, 138, 0.26);
  border-radius: 17px;
  background: #07070a;
  box-shadow: inset 0 2px 16px rgba(0, 0, 0, 0.72);
}

.reel {
  position: relative;
  height: calc(var(--cell) * 3);
  overflow: hidden;
  border-radius: 9px;
  background: radial-gradient(ellipse at 50% 0%, #fbf5e8 0%, #f2e7d2 72%, #e9dcc4 100%);
  box-shadow:
    inset 0 0 0 1px rgba(33, 22, 8, 0.42),
    inset 0 8px 18px rgba(52, 36, 12, 0.14);
  transition: box-shadow 0.35s ease;
}
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(24, 16, 7, 0.3) 0%,
    rgba(24, 16, 7, 0.08) 24%,
    transparent 38%,
    transparent 62%,
    rgba(24, 16, 7, 0.08) 76%,
    rgba(24, 16, 7, 0.3) 100%
  );
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.reel-strip {
  position: absolute;
  inset-inline: 0;
  top: 0;
  transform: translate3d(0, calc(var(--stop, 0) * var(--cell) * -1), 0);
  will-change: transform;
}
.reel-cell {
  position: relative;
  display: grid;
  place-items: center;
  height: var(--cell);
}
.reel-cell::after {
  content: "";
  position: absolute;
  right: 17%;
  bottom: 0;
  left: 17%;
  height: 1px;
  background: rgba(54, 37, 14, 0.09);
}

.payline {
  position: absolute;
  top: 50%;
  right: 10px;
  left: 10px;
  z-index: 3;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 3%, var(--gold) 97%, transparent);
  opacity: 0.56;
  transform: translateY(-0.5px);
  filter: drop-shadow(0 0 5px rgba(232, 201, 138, 0.45));
  pointer-events: none;
}
.payline::before,
.payline::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}
.payline::before { left: -1px; }
.payline::after { right: -1px; }

.reel.is-win {
  box-shadow:
    inset 0 0 0 2px rgba(232, 201, 138, 0.92),
    0 0 24px rgba(232, 201, 138, 0.28);
}
.reel.is-win::after { opacity: 0.45; }

.machine-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 11px 4px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.readout-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.readout-bet { align-items: flex-end; }
.readout-label {
  color: var(--muted-2);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.readout-value {
  color: var(--cream);
  font-size: 1.65rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: 0.015em;
}
.bet-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(232, 201, 138, 0.34);
  border-radius: 50%;
  background: rgba(232, 201, 138, 0.055);
  color: var(--gold);
  font-size: 1.22rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.chip-btn:hover:not(:disabled) {
  background: rgba(232, 201, 138, 0.13);
  border-color: rgba(232, 201, 138, 0.6);
}
.chip-btn:active:not(:disabled) { transform: scale(0.96); }
.chip-btn:disabled { opacity: 0.32; cursor: not-allowed; }
.bet-value { min-width: 2ch; text-align: center; font-size: 1.5rem; }

.machine-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.spin-btn {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 58px;
  padding: 8px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7e2ae 0%, #e8c98a 52%, #d6a955 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 10px 22px rgba(0, 0, 0, 0.32);
  color: #1b1205;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.spin-btn:hover:not(:disabled) {
  filter: brightness(1.055);
  transform: translateY(-1px);
}
.spin-btn:active:not(:disabled) { transform: translateY(1px); }
.spin-btn:disabled {
  cursor: not-allowed;
  filter: saturate(0.55) brightness(0.78);
  transform: none;
}
.spin-btn.is-spinning { cursor: wait; }
.spin-label {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}
.spin-sub {
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  line-height: 1.4;
  opacity: 0.68;
}
.sfx-btn {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 58px;
  min-height: 58px;
  padding: 6px;
  border: 1px solid rgba(232, 201, 138, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.sfx-btn:hover { border-color: rgba(232, 201, 138, 0.52); color: var(--cream); }
.sfx-btn[aria-pressed="true"] {
  color: var(--gold);
  border-color: rgba(232, 201, 138, 0.55);
  background: rgba(232, 201, 138, 0.08);
}
.sfx-icon { width: 21px; height: 21px; }
.sfx-slash { display: block; }
.sfx-btn[aria-pressed="true"] .sfx-slash { display: none; }
.sfx-state {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8em;
  margin: 12px 0 0;
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.5;
  text-align: center;
  transition: color 0.2s ease;
}
.result.is-win { color: var(--gold-bright); font-weight: 600; }
.result.is-alert { color: var(--rose); }

.machine-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 0.61rem;
  letter-spacing: 0.03em;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 0.69rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--gold-bright); }
.link-btn:disabled { color: var(--muted-2); cursor: not-allowed; opacity: 0.5; }

.machine-caption {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  text-align: center;
}
.noscript-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(237, 163, 160, 0.1);
  color: var(--rose);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ---------- Facts ---------- */

.facts {
  padding-block: clamp(36px, 5vw, 56px);
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(19, 18, 25, 0.72), rgba(12, 12, 17, 0.84));
}
.facts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.facts-intro h2 {
  max-width: 17ch;
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
}
.facts-intro p:last-child {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.fact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
}
.fact {
  padding: 22px 20px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.fact:nth-child(2n) { border-right: 0; }
.fact:nth-last-child(-n + 2) { border-bottom: 0; }
.fact dt {
  color: var(--muted-2);
  font-size: 0.57rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fact dd {
  margin: 7px 0 0;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.fact dd span {
  margin-left: 1px;
  color: var(--muted);
  font-size: 0.58em;
}

/* ---------- Shared sections ---------- */

.section { padding-block: clamp(60px, 8vw, 104px); }
section[id],
.facts { scroll-margin-top: 90px; }
.section--panel {
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(16, 15, 21, 0.7), rgba(11, 11, 15, 0.68));
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 46px);
}
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}
.section-intro {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
#about h2 { margin: 0 0 20px; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.prose p {
  max-width: 66ch;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.94rem;
}
.prose .updated {
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 0.68rem;
  letter-spacing: 0.055em;
}
.fair-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(232, 201, 138, 0.055), rgba(255, 255, 255, 0.012) 55%);
}
.fair-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 26px;
  left: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.fair-card h3 {
  margin: 0 0 16px;
  font-size: 1.18rem;
  letter-spacing: 0.005em;
}
.fair-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fair-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.58;
}
.fair-card li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.8;
}
.fair-card strong { color: var(--text); font-weight: 600; }
.fair-card code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(232, 201, 138, 0.08);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.84em;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
}
.step-num {
  display: block;
  margin-bottom: 20px;
  color: rgba(232, 201, 138, 0.34);
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.step h3 { margin: 0 0 8px; font-size: 1.08rem; }
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.62;
}
.section-tip {
  max-width: 74ch;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 0.78rem;
}
.section-tip strong { color: var(--text); font-weight: 600; }

/* ---------- Payouts ---------- */

.payout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(285px, 0.62fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: start;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.014);
  -webkit-overflow-scrolling: touch;
}
.payout-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.payout-table caption {
  padding: 16px 20px 0;
  color: var(--muted-2);
  font-size: 0.68rem;
  letter-spacing: 0.015em;
  text-align: left;
}
.payout-table th,
.payout-table td {
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  text-align: left;
  vertical-align: middle;
}
.payout-table thead th {
  padding-top: 14px;
  padding-bottom: 10px;
  border-top: 0;
  color: var(--muted-2);
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.payout-table thead th:last-child { text-align: right; }
.payout-table tbody th {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
}
.payout-table tbody th span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.pt-symbol { width: 58px; padding-right: 0 !important; }
.pt-symbol .sym { width: 28px; height: 28px; }
.pt-value {
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right !important;
  white-space: nowrap;
}

.odds-card {
  padding: 22px;
  border: 1px solid rgba(232, 201, 138, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(232, 201, 138, 0.05), rgba(255, 255, 255, 0.012));
}
.odds-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.odds-head h3 { margin: 0; font-size: 1.03rem; }
.verified-badge {
  padding: 4px 7px;
  border: 1px solid rgba(147, 220, 185, 0.32);
  border-radius: 999px;
  color: var(--mint);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}
.odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}
.odds-table th,
.odds-table td {
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
}
.odds-table thead th {
  border-top: 0;
  color: var(--muted-2);
  font-size: 0.52rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}
.odds-table thead th:not(:first-child) { text-align: right; }
.odds-table tbody th {
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 500;
  text-align: left;
}
.odds-table td {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.odds-table td:first-of-type { color: var(--gold); }
.odds-note {
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 0.67rem;
  line-height: 1.55;
}
.math-note {
  max-width: 920px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 24px clamp(20px, 3vw, 30px);
  border-left: 2px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(232, 201, 138, 0.035);
}
.math-note h3 { margin: 0 0 8px; font-size: 1.02rem; }
.math-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.68;
}

/* ---------- Play-money notice ---------- */

.play-note {
  padding-block: clamp(36px, 5vw, 56px);
  border-block: 1px solid var(--line-soft);
  background: #0c0c11;
}
.play-note-inner {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  max-width: 980px;
}
.shield { flex: none; width: 52px; color: var(--gold); opacity: 0.9; }
.shield svg { width: 100%; height: auto; }
.play-note h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}
.play-note p {
  max-width: 78ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 64px);
}
.faq-item {
  padding: 23px 0;
  border-top: 1px solid var(--line-soft);
}
.faq-item h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  line-height: 1.4;
}
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(36px, 5vw, 56px) 28px;
  border-top: 1px solid var(--line-soft);
  background: #08080b;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted-2);
  font-size: 0.76rem;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  align-content: start;
  justify-content: flex-end;
}
.footer-links a {
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--cream); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 22px;
}
.footer-legal p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.64rem;
  line-height: 1.55;
  letter-spacing: 0.015em;
}

/* ---------- Simple pages (privacy, 404) ---------- */

.page-shell {
  max-width: 820px;
  padding-block: clamp(48px, 7vw, 92px);
}
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.025em;
}
.page-intro {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.page-prose { max-width: 68ch; margin-top: 34px; }
.page-prose h2 {
  margin: 38px 0 10px;
  font-size: 1.42rem;
}
.page-prose p { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.page-prose ul { margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: 0.9rem; }
.page-prose li { margin-bottom: 7px; }
.page-prose strong { color: var(--text); }
.page-prose code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(232, 201, 138, 0.08);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.86em;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 36px;
  padding: 10px 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 201, 138, 0.35);
}
.back-link:hover { color: var(--gold-bright); border-color: var(--gold); }
.error-page { min-height: 62vh; display: grid; align-content: center; }
.error-code {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.error-page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 14px; }
.error-page p { color: var(--muted); max-width: 50ch; margin: 0 0 8px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .bulbs i { animation: twinkle 3.4s ease-in-out infinite; }
  .bulbs i:nth-child(2n) { animation-delay: 0.45s; }
  .bulbs i:nth-child(3n) { animation-delay: 0.9s; }
  .reel.is-win .sym { animation: symbol-pop 0.55s cubic-bezier(0.2, 0.8, 0.25, 1); }
  .machine.is-win { animation: machine-glow 0.9s ease-out; }
  .readout-value.is-bumping { animation: value-bump 0.35s ease-out; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.95; }
}
@keyframes symbol-pop {
  0% { transform: scale(0.86); }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes machine-glow {
  0% { box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(232, 201, 138, 0.28); }
  45% { box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55), 0 0 0 7px rgba(232, 201, 138, 0.16); }
  100% { box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(232, 201, 138, 0); }
}
@keyframes value-bump {
  0% { transform: scale(1); color: var(--cream); }
  40% { transform: scale(1.08); color: var(--gold-bright); }
  100% { transform: scale(1); color: var(--cream); }
}

@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;
  }
  .reel-strip { will-change: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .hero-copy { max-width: 640px; }
  .machine-wrap {
    justify-self: center;
    max-width: 480px;
  }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-intro h2 { max-width: none; }
  .fact-list { max-width: 620px; }
  .about-grid { grid-template-columns: 1fr; }
  .fair-card { max-width: 620px; }
  .payout-grid { grid-template-columns: 1fr; }
  .odds-card { max-width: 520px; }
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 58px 1fr; column-gap: 12px; }
  .step-num { grid-row: span 2; margin: 0; font-size: 2.6rem; line-height: 0.9; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 64px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.nav-play) { display: none; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.6rem); }
  .machine { padding: 14px 14px 13px; border-radius: 24px; }
  .machine::before { inset: 6px; border-radius: 19px; }
  .machine-title { font-size: 1.14rem; letter-spacing: 0.21em; text-indent: 0.21em; }
  .reels { gap: 6px; padding: 7px; }
  .readout-value { font-size: 1.45rem; }
  .chip-btn { width: 46px; height: 46px; }
  .bet-controls { gap: 8px; }
  .bet-value { font-size: 1.36rem; }
  .spin-btn { min-height: 56px; }
  .sfx-btn { width: 56px; min-height: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .play-note-inner { gap: 16px; }
  .shield { width: 42px; }
  .fact { padding: 18px 16px; }
}

@media (max-width: 420px) {
  .shell { padding-inline: 16px; }
  .brand-name { font-size: 1.16rem; }
  .brand-mark { width: 30px; height: 30px; }
  .hero-points { font-size: 0.84rem; }
  .machine { padding: 12px 12px 11px; }
  .machine-top { padding-bottom: 12px; }
  .machine-readout { gap: 10px; padding-inline: 2px; }
  .readout-value { font-size: 1.32rem; }
  .chip-btn { width: 44px; height: 44px; font-size: 1.1rem; }
  .bet-controls { gap: 6px; }
  .bet-value { font-size: 1.24rem; min-width: 1.5ch; }
  .spin-sub { letter-spacing: 0.03em; }
  .machine-caption { font-size: 0.6rem; }
  .machine-foot { font-size: 0.56rem; }
  .fact dd { font-size: 1.24rem; }
  .fact { padding: 16px 13px; }
  .fact dt { font-size: 0.51rem; letter-spacing: 0.1em; }
  .payout-table th,
  .payout-table td { padding-inline: 13px; }
  .math-note { padding: 20px 18px; }
  .play-note-inner { flex-direction: column; gap: 12px; }
}
