:root {
  --ink: #140c24;
  --deep: #0c0816;
  --lane: #2a1848;
  --gold: #ffc857;
  --orchid: #c86bff;
  --foam: #efe6ff;
  --foam-ink: #241433;
  --mist: #d4c6ea;
  --paper: #fff8ee;
  --line: rgba(255, 248, 238, 0.16);
  --display: Syne, "Arial Black", sans-serif;
  --body: Sora, "Segoe UI", sans-serif;
  --max: 1180px;
  --focus: #ffc857;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(200, 107, 255, 0.22), transparent 60%), var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
}
html, body { overflow-x: hidden; overflow-y: auto; height: auto; min-height: 100%; }
img { max-width: 100%; }
p { margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.92; margin: 0 0 12px; }
h1 { font-size: clamp(3.2rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.35rem; margin: 0 0 8px; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.skip { position: absolute; left: 12px; top: -48px; z-index: 80; background: var(--gold); color: var(--ink); padding: 8px 12px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.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; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.wrap.narrow { width: min(740px, calc(100% - 32px)); }
.band { padding: 64px 0; }
.band-foam { background: var(--foam); color: var(--foam-ink); }
.band-foam :focus-visible { outline-color: var(--ink); }
.eyebrow { margin: 0 0 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.lede { font-size: 1.12rem; max-width: 42ch; }
.fine { color: var(--mist); font-size: 0.92rem; }
.page-head { padding: 36px 0 8px; }
.noscript { margin: 0; padding: 12px 16px; background: var(--gold); color: var(--ink); }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(20, 12, 36, 0.94); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 74px; }
.wordmark { display: flex; flex-direction: column; color: inherit; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 0.9; letter-spacing: -0.03em; }
.wordmark small { font-family: var(--body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.site-nav { display: flex; gap: 14px; margin-left: auto; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); }
.header-tools { display: flex; gap: 8px; align-items: center; }
.header-tools .btn, .header-tools .text-btn, .level-pill, .coin-pill { white-space: nowrap; flex-shrink: 0; }
.nav-toggle, .text-btn, .chip, .btn, .level-pill, .coin-pill { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.nav-toggle, .text-btn, .chip { border: 1px solid var(--line); background: transparent; padding: 0 12px; border-radius: 999px; }
.nav-toggle { display: none; }
.level-pill, .coin-pill { padding: 0 12px; font-weight: 700; border-radius: 999px; }
.level-pill { border: 1px solid var(--line); }
.coin-pill { background: var(--gold); color: #1a1020; }
.brand-rule { height: 8px; background: repeating-linear-gradient(90deg, #ffc857 0 10px, #140c24 10px 14px, #c86bff 14px 22px, #140c24 22px 28px); }
.btn { border: 0; background: var(--orchid); color: #fff; padding: 0 16px; font-weight: 700; border-radius: 999px; }
.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-play { min-height: 56px; padding: 0 28px; background: var(--orchid); color: #fff; }
.btn-join { background: var(--gold); color: #1a1020; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.chip[aria-pressed="true"] { background: var(--gold); color: #1a1020; border-color: var(--gold); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr); gap: 28px; align-items: center; padding: 28px 0 10px; }
.hero-copy h1 { font-size: clamp(3.2rem, 6vw, 5.4rem); }
.hero-kicker { margin: 0 0 8px; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.82rem; color: var(--mist); }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #5dff9a; }
.wave { display: flex; align-items: flex-end; gap: 4px; height: 28px; margin: 0 0 10px; }
.wave span { display: block; width: 6px; border-radius: 999px; background: linear-gradient(#ffc857, #c86bff); transform-origin: bottom; }
.wave span:nth-child(1) { height: 10px; }
.wave span:nth-child(2) { height: 22px; }
.wave span:nth-child(3) { height: 16px; }
.wave span:nth-child(4) { height: 28px; }
.wave span:nth-child(5) { height: 14px; }
html[data-motion="on"] .wave span { animation: vibe 1.1s ease-in-out infinite alternate; }
html[data-motion="on"] .wave span:nth-child(2) { animation-delay: 0.15s; }
html[data-motion="on"] .wave span:nth-child(3) { animation-delay: 0.28s; }
html[data-motion="on"] .wave span:nth-child(4) { animation-delay: 0.08s; }
html[data-motion="on"] .wave span:nth-child(5) { animation-delay: 0.22s; }
@keyframes vibe { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }
.hero-art { margin: 0; }
.hero-art img { width: 100%; display: block; border-radius: 28px; box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.35); }
.hero-art figcaption { margin-top: 8px; text-align: right; color: var(--mist); font-size: 0.85rem; }

.ticket { max-width: 460px; padding: 18px 20px; border-radius: 22px; background: linear-gradient(160deg, #3a2260, #1a1030); border: 1px solid rgba(255, 200, 87, 0.4); }
.ticket-kicker { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.ticket-num { margin: 4px 0; font-family: var(--display); font-size: clamp(3rem, 6vw, 4.2rem); line-height: 0.9; letter-spacing: -0.03em; }
.ticket-sub { margin: 0 0 12px; }

.spec { margin: 8px 0 0; }
.spec div { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 12px 18px; border-top: 1px solid var(--line); padding: 14px 0; }
.spec dt { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.03em; }
.spec dd { margin: 0; }

.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.game-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px 10px 14px; border-radius: 22px; background: #24143c; color: inherit; text-decoration: none; }
.game-art { position: relative; display: block; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: #0c0816; box-shadow: inset 0 0 0 2px rgba(255, 200, 87, 0.45); }
.game-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pill { position: absolute; top: 10px; z-index: 1; padding: 4px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pill-new { right: 10px; background: #1ed760; color: #06210f; }
.pill-level { left: 10px; background: rgba(12, 8, 22, 0.82); color: var(--paper); }
.game-card .game-copy { display: flex; flex-direction: column; gap: 4px; padding: 4px 4px 0; }
.game-card .game-name { font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.03em; line-height: 1.1; }
.game-card .game-blurb { color: var(--mist); font-size: 0.92rem; }
.game-card .game-cta { display: flex; align-items: center; align-self: stretch; margin: 8px 4px 0; min-height: 42px; justify-content: center; border-radius: 999px; background: var(--orchid); color: #fff; font-weight: 700; }
.is-locked .game-cta { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 18px 0 0; padding: 0; list-style: none; }
.steps li { border-top: 4px solid var(--gold); padding-top: 12px; }
.steps span { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--orchid); }
.post-list, .post { display: grid; gap: 0; }
.post-teaser { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.post-list .post-teaser:last-child, .blog-list .post:last-child { border-bottom: 1px solid var(--line); }
.post-title { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; letter-spacing: -0.03em; }
.post-date { color: var(--mist); font-size: 0.92rem; }
.post { padding: 22px 0; border-top: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }

.panel { border: 1px solid var(--line); background: rgba(36, 20, 60, 0.72); border-radius: 18px; padding: 16px; margin: 16px 0; }
.xp-track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); margin: 8px 0 16px; overflow: hidden; }
.xp-track span { display: block; height: 100%; width: 0; background: var(--gold); }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type="text"], input[type="search"] { width: min(100%, 440px); min-height: 48px; padding: 0 12px; border: 2px solid var(--line); border-radius: 12px; background: transparent; }
.stack { display: grid; gap: 10px; justify-items: start; margin-top: 8px; }
.form-error { color: #ffb4e6; font-weight: 700; }
.unlocks, .history, .clean, .prose ul { padding-left: 1.15rem; }
.unlocks li, .history li, .clean li { margin: 6px 0; }

.play-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr); gap: 28px; padding: 28px 0 56px; }
.play-main h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.play-art { width: min(100%, 420px); border-radius: 18px; display: block; margin: 8px 0 12px; }
.machine { background: var(--deep); border: 1px solid rgba(255, 200, 87, 0.35); border-radius: 18px; padding: 12px; }
.reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cell { aspect-ratio: 1; display: grid; place-items: center; background: var(--lane); border-radius: 10px; font-family: var(--display); font-size: clamp(0.72rem, 1.5vw, 1.05rem); letter-spacing: -0.02em; }
.cell[data-sym="wild"] { background: var(--gold); color: #1a1020; }
.cell[data-sym="high"] { background: var(--orchid); color: #fff; }
.cell[data-sym="feat"] { background: var(--paper); color: #1a1020; }
.cell.is-win { box-shadow: inset 0 0 0 3px #0c0816, inset 0 0 0 6px #fff; }
.cell.is-feature { box-shadow: inset 0 0 0 3px #0c0816, inset 0 0 0 6px var(--gold); }
.reels.is-live .cell { opacity: 0.82; }
.win-banner { margin: 12px 0; font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 0.9; color: var(--gold); }
.controls { display: grid; gap: 8px; justify-items: start; margin-top: 14px; }
.control-label { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.bet-group { display: flex; flex-wrap: wrap; gap: 8px; }
.spin-btn { min-width: 180px; min-height: 56px; font-size: 1.2rem; background: var(--gold); color: #1a1020; }
.lock-note { padding: 12px; background: var(--lane); border-radius: 12px; }
.play-side table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.play-side th, .play-side td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.play-side h2 { font-size: 1.6rem; margin-top: 18px; }
.host { display: flex; gap: 12px; align-items: flex-start; }
.mono { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; background: var(--gold); color: #1a1020; border-radius: 50%; font-family: var(--display); font-size: 1.2rem; }
.host q { quotes: "“" "”"; }
.host cite { display: block; margin-top: 4px; font-style: normal; color: var(--mist); font-size: 0.92rem; }
.room-jump { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 28px; }
.footer-brand { font-family: var(--display); font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.disclaimer, .fine { color: var(--mist); }
.footer-links, .help-links { list-style: none; margin: 0; padding: 0; }
.footer-links { display: grid; gap: 6px; }
.help-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.age-row { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.age-badge { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-family: var(--display); }
.footer-base { margin-top: 18px; color: var(--mist); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: flex-start; padding: 8px 18px 16px; background: var(--ink); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .header-tools { margin-left: auto; }
  .hero-grid, .play-layout, .footer-grid, .steps, .spec div { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .game-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .wave span { animation: none; } }
