:root {
  --bg: #123a3d;
  --surface: #f5e9c9;
  --surface-2: #ecdcae;
  --ink: #1b2a2e;
  --muted: #5b6b66;
  --fg: #f2ecd8;
  --fg-muted: rgba(242, 236, 216, 0.74);
  --teal: #3fa79f;
  --teal-ink: #0d2b2c;
  --brass: #dba043;
  --brass-ink: #7a5518;
  --coral: #d1552c;
  --line: rgba(27, 42, 46, 0.16);
  --line-inverse: rgba(242, 236, 216, 0.18);
  --shadow: 0 1px 2px rgba(20, 30, 30, 0.06), 0 8px 24px rgba(20, 30, 30, 0.08);
  --radius: 14px;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1517;
    --surface: #142023;
    --surface-2: #182a2c;
    --ink: #efeae0;
    --muted: #9fb0ac;
    --fg: var(--ink);
    --fg-muted: var(--muted);
    --teal: #4fa6a0;
    --teal-ink: #cdeae6;
    --brass: #e4b45a;
    --brass-ink: #2a2013;
    --coral: #e07850;
    --line: rgba(239, 234, 224, 0.14);
    --line-inverse: var(--line);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0d1517;
  --surface: #142023;
  --surface-2: #182a2c;
  --ink: #efeae0;
  --muted: #9fb0ac;
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --teal: #4fa6a0;
  --teal-ink: #cdeae6;
  --brass: #e4b45a;
  --brass-ink: #2a2013;
  --coral: #e07850;
  --line: rgba(239, 234, 224, 0.14);
  --line-inverse: var(--line);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
}
:root[data-theme="light"] {
  --bg: #123a3d;
  --surface: #f5e9c9;
  --surface-2: #ecdcae;
  --ink: #1b2a2e;
  --muted: #5b6b66;
  --fg: #f2ecd8;
  --fg-muted: rgba(242, 236, 216, 0.74);
  --teal: #3fa79f;
  --teal-ink: #0d2b2c;
  --brass: #dba043;
  --brass-ink: #7a5518;
  --coral: #d1552c;
  --line: rgba(27, 42, 46, 0.16);
  --line-inverse: rgba(242, 236, 216, 0.18);
  --shadow: 0 1px 2px rgba(20, 30, 30, 0.06), 0 8px 24px rgba(20, 30, 30, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img, svg { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
p { margin: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  background: color-mix(in srgb, var(--brass) 22%, transparent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- compliance ticker ---------- */
.ticker {
  position: sticky; top: 0; z-index: 40;
  background: var(--teal-ink);
  color: #f2ece0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}
.ticker strong { color: var(--brass); font-weight: 700; }

/* ---------- age gate ---------- */
#age-gate {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11, 18, 20, 0.86);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
#age-gate[hidden] { display: none; }
.booth {
  background: var(--surface);
  color: var(--ink);
  border-radius: 20px;
  max-width: 420px; width: 100%;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  border: 1px solid var(--line);
}
.booth .mark { font-size: 2.6rem; margin-bottom: 4px; }
.booth h2 { font-size: 1.5rem; margin: 10px 0 12px; }
.booth p { color: var(--muted); font-size: 0.94rem; }
.booth-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.booth-fine { margin-top: 16px; font-size: 0.74rem; color: var(--muted); }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border-radius: 999px;
  border: none;
  padding: 13px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
button:focus-visible, a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.btn-primary { background: var(--teal); color: #fdfaf3; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }

#denied { display: none; }
#denied.show { display: block; }
#denied p { color: var(--muted); font-size: 0.92rem; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 29px; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-inverse);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.brand .glyph {
  width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(var(--teal) 0 25%, var(--brass) 25% 50%, var(--teal) 50% 75%, var(--brass) 75% 100%);
  flex-shrink: 0;
}
nav.links { display: flex; gap: 24px; font-size: 0.88rem; }
nav.links a { text-decoration: none; color: var(--fg-muted); }
nav.links a:hover { color: var(--fg); }
@media (max-width: 720px) { nav.links { display: none; } }

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 48px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.06; margin: 16px 0 18px; }
.hero .lede { font-size: 1.08rem; color: var(--fg-muted); max-width: 46ch; }
.hero .ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--fg-muted); border-color: var(--line-inverse); }
.hero .btn-ghost:hover { border-color: var(--fg); }

.wheel-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pinwheel-mount { position: relative; width: 240px; height: 240px; }
.pinwheel {
  width: 100%; height: 100%; border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg,
      var(--teal) 0deg 20deg,
      var(--brass) 20deg 40deg,
      var(--coral) 40deg 45deg,
      transparent 45deg 90deg);
  animation: spin 9s linear infinite;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18), inset 0 0 0 2px var(--line);
}
.pinwheel.demo-spin { animation: spin-fast 1.8s cubic-bezier(.2,.7,.2,1); }
.pinwheel::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--brass);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-fast { from { transform: rotate(0deg); } to { transform: rotate(1080deg); } }
@media (prefers-reduced-motion: reduce) {
  .pinwheel { animation: none; }
  .pinwheel.demo-spin { animation: none; }
}

/* ---------- sections ---------- */
section { padding: 56px 0; border-top: 1px solid var(--line-inverse); }
section > .eyebrow { margin-bottom: 14px; }
section h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
section .intro { color: var(--fg-muted); max-width: 62ch; margin-bottom: 32px; }

/* ---------- slot machine ---------- */
.slot-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.slot-tab {
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
  font-size: 0.86rem; padding: 10px 18px;
}
.slot-tab.active { background: var(--teal); color: #fdfaf3; border-color: transparent; }
.slot-tab:not(.active):hover { border-color: var(--muted); }

.slot-game-desc { text-align: center; color: var(--muted); font-size: 0.86rem; margin-bottom: 14px; }

.slot-machine {
  background: var(--surface); color: var(--ink);
  border-radius: 20px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line);
  max-width: 560px; margin: 0 auto;
}
.slot-hud { display: flex; justify-content: space-between; margin-bottom: 18px; }
.hud-item { display: flex; flex-direction: column; gap: 2px; }
.hud-label { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hud-value { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }

.reels {
  display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, 1fr);
  gap: 6px; background: var(--teal-ink); border-radius: 12px; padding: 8px;
}
.reel-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; background: var(--surface); border-radius: 8px;
  transition: transform 0.1s ease;
}
.reel-cell.spinning { animation: reel-blur 0.12s linear infinite; }
.reel-cell.win { background: color-mix(in srgb, var(--brass) 35%, var(--surface)); box-shadow: 0 0 0 2px var(--brass) inset; }
@keyframes reel-blur { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(4px); opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .reel-cell.spinning { animation: none; } }

.slot-message {
  margin-top: 16px; padding: 14px 16px; text-align: center; font-size: 0.94rem;
  background: var(--surface-2); border-radius: 10px; min-height: 24px;
}
.slot-message.win { font-weight: 700; color: var(--coral); }

.slot-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

.bonus-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 16px; }
.bonus-panel .pinwheel-mount.small { width: 140px; height: 140px; }

.paytable { margin-top: 20px; font-size: 0.86rem; color: var(--muted); }
.paytable summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.paytable ul { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.paytable .fine { font-size: 0.78rem; margin-top: 8px; }
.fine { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }

/* scratch card */
.scratch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-width: 320px; margin: 0 auto;
}
.scratch-cell {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, var(--brass) 0 8px, var(--surface-2) 8px 16px);
  font-size: 1.8rem; padding: 0;
}
.scratch-cell.revealed { background: var(--surface-2); }
.scratch-cell.match { background: color-mix(in srgb, var(--brass) 35%, var(--surface-2)); border-color: var(--brass); }
.scratch-cell:disabled { cursor: default; }

/* balloon cash-out */
.balloon-stage { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 6px 0 4px; }
.balloon-mount { width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; }
.balloon-emoji { font-size: 5rem; display: inline-block; transition: transform 0.12s ease-out; }
.balloon-emoji.popped { transform: scale(1.8); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.balloon-multiplier { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--coral); }

/* how it works */
.how-list { display: grid; gap: 18px; }
.how-item { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.how-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brass); margin-top: 8px; }
.how-item h3 { font-size: 1rem; margin-bottom: 4px; }
.how-item p { color: var(--fg-muted); font-size: 0.94rem; }

/* trust badges */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.badge {
  background: var(--surface-2); color: var(--ink); border-radius: 12px; padding: 16px 18px;
  display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; border: 1px solid var(--line);
}
.badge .g { font-size: 1.3rem; line-height: 1; }
.badge strong { display: block; margin-bottom: 2px; }
.badge span.d { color: var(--muted); }

/* faq */
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--line-inverse); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 0.98rem; margin-bottom: 6px; }
.faq-item p { color: var(--fg-muted); font-size: 0.92rem; }

/* footer */
footer {
  border-top: 1px solid var(--line-inverse);
  padding: 40px 0 32px;
  background: var(--surface-2);
  color: var(--ink);
}
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
footer h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.88rem; }
footer a { text-decoration: none; color: var(--ink); }
footer a:hover { color: var(--teal); }
.legal-block { font-size: 0.76rem; color: var(--muted); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); line-height: 1.7; }
.legal-block b { color: var(--ink); }
