:root {
  --stage: #1a0c14;
  --plum: #321824;
  --velvet: #4a2340;
  --flare: #ffd56a;
  --gel: #ff5e92;
  --iris: #9b8cff;
  --paper: #f6efe8;
  --ink: #241018;
  --mist: #e4d4dc;
  --line: rgba(246, 239, 232, 0.16);
  --display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --body: Outfit, "Segoe UI", sans-serif;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.65;
}
html, body { overflow-x: hidden; overflow-y: auto; height: auto; min-height: 100%; }
p { margin: 0 0 12px; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 560;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(3rem, 7vw, 5.4rem); margin: 0 0 12px; }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin: 0 0 12px; }
h3 { font-size: 1.7rem; margin: 0 0 8px; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--flare); color: var(--ink); }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--flare);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 12px; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #fff; 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(700px, calc(100% - 32px)); }
.band { padding: 76px 0; }
.eyebrow {
  margin: 0 0 10px;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flare);
}
.lede { font-size: 1.18rem; max-width: 38ch; }
.fine, .disclaimer, .post-date, .game-blurb, .game-meta { color: var(--mist); }
.fine, .post-date, .game-meta { font-size: 0.92rem; }
.page-head { padding: 42px 0 8px; }
.prose h2 { margin-top: 1.4em; }
.center { text-align: center; }
.noscript { margin: 0; padding: 12px 16px; background: var(--flare); color: var(--ink); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(26, 12, 20, 0.94);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-style: italic;
  font-weight: 560;
  font-size: 1.55rem;
  line-height: 0.95;
}
.wordmark small {
  font-family: var(--body);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flare);
}
.site-nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
  align-items: center;
}
.site-nav a { text-decoration: none; font-weight: 500; white-space: nowrap; }
.header-tools .btn, .header-tools .text-btn, .level-pill, .coin-pill { white-space: nowrap; flex-shrink: 0; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav a[aria-current="page"] { color: var(--flare); }
.header-tools { display: flex; gap: 8px; align-items: center; }
.nav-toggle, .text-btn, .chip, .btn, .level-pill, .coin-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
}
.nav-toggle, .text-btn, .chip, .level-pill {
  border: 1px solid var(--line);
  background: transparent;
  padding: 0 14px;
}
.nav-toggle { display: none; border-radius: 999px; }
.coin-pill { padding: 0 14px; background: var(--flare); color: var(--ink); font-weight: 600; white-space: nowrap; }
.level-pill { font-weight: 600; }
.brand-rule {
  height: 6px;
  background: linear-gradient(90deg, var(--gel), var(--flare) 48%, var(--iris));
}
.btn {
  border: 0;
  background: var(--flare);
  color: var(--ink);
  padding: 0 18px;
  font-weight: 600;
}
.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
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(--flare); color: var(--ink); border-color: var(--flare); }

.stage {
  min-height: calc(100svh - 82px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 48px 0 72px;
  text-align: center;
}
.iris-hold {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(88vw, 720px);
  aspect-ratio: 1;
  translate: -50% -50%;
}
.iris {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 213, 106, 0.42) 0 16%, rgba(255, 94, 146, 0.16) 34%, transparent 62%),
    conic-gradient(from 20deg, rgba(255, 213, 106, 0.95), rgba(255, 94, 146, 0.9), rgba(155, 140, 255, 0.95), rgba(255, 213, 106, 0.95));
}
html[data-motion="on"] .iris { animation: spiniris 36s linear infinite; }
@keyframes spiniris { to { transform: rotate(1turn); } }
.stage-inner {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 32px));
  padding: 28px 16px 8px;
  background: radial-gradient(ellipse at center, rgba(26, 12, 20, 0.86), rgba(26, 12, 20, 0.28) 68%, transparent 76%);
}
.stage h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  margin: 0 0 14px;
}
html[data-motion="on"] .stage h1 { animation: shutter 1.05s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
@keyframes shutter {
  from { clip-path: circle(0% at 50% 42%); }
  to { clip-path: circle(140% at 50% 42%); }
}
.stage .lede, .stage .coin-line { margin-inline: auto; }
.stage .actions { justify-content: center; }
.coin-line { max-width: 36ch; }

.gels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gels article { min-height: 280px; padding: 32px 26px 36px; color: var(--ink); }
.gels article:nth-child(1) { background: var(--gel); }
.gels article:nth-child(2) { background: var(--flare); }
.gels article:nth-child(3) { background: var(--iris); }
.gels h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 10px; }
.gels p { margin: 0; }
.gels :focus-visible { outline-color: var(--ink); }

.game-list { display: flex; flex-direction: column; }
.game-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  grid-template-areas: "accent copy cta" "accent meta cta";
  gap: 4px 16px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.game-list .game-row:last-child { border-bottom: 1px solid var(--line); }
.game-index { display: none; }
.game-accent { grid-area: accent; width: 18px; height: 18px; border-radius: 50%; align-self: center; }
.game-copy { grid-area: copy; display: flex; flex-direction: column; gap: 4px; }
.game-meta { grid-area: meta; }
.game-cta { grid-area: cta; align-self: center; }
.game-name { font-family: var(--display); font-style: italic; font-weight: 560; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1; }
.game-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--flare);
  color: var(--ink);
  font-weight: 600;
}
.is-locked .game-cta { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.game-row:hover .game-name { color: var(--flare); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.steps span {
  font-family: var(--display);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--flare);
}

.post-teaser {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.post-list .post-teaser:last-child { border-bottom: 1px solid var(--line); }
.post-title { font-family: var(--display); font-style: italic; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.05; }
.post { padding: 28px 0; border-top: 1px solid var(--line); }
.blog-list .post:last-child { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-style: italic; font-size: 1.45rem; font-weight: 560; }
.faq summary::-webkit-details-marker { display: none; }

.panel {
  border-radius: 28px;
  background: rgba(74, 35, 64, 0.45);
  padding: 20px;
  margin: 16px 0;
}
.xp-track { height: 12px; 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(--flare); }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="search"] {
  width: min(100%, 440px);
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
}
.stack { display: grid; gap: 10px; justify-items: start; margin-top: 8px; }
.form-error { color: #ffd0dc; font-weight: 600; }
.unlocks, .history, .clean, .prose ul { padding-left: 1.15rem; }
.unlocks li, .history li, .clean li { margin: 6px 0; }

.band-sun { background: var(--flare); color: var(--ink); }
.band-sun .btn { background: var(--ink); color: var(--flare); }
.band-sun :focus-visible { outline-color: var(--ink); }
.band-gel { background: var(--gel); color: var(--ink); }
.band-gel .btn { background: var(--ink); color: var(--paper); }
.band-gel :focus-visible, .band-sun :focus-visible { outline-color: var(--ink); }

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.75fr);
  gap: 32px;
  padding: 18px 0 64px;
}
.play-main h1 { font-size: clamp(3rem, 6vw, 4.8rem); }
.machine { background: #140910; border-radius: 28px; padding: 14px; }
.reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--plum);
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(0.68rem, 1.5vw, 0.95rem);
  letter-spacing: 0.04em;
}
.cell[data-sym="wild"] { background: var(--flare); color: var(--ink); }
.cell[data-sym="high"] { background: var(--gel); color: var(--ink); }
.cell[data-sym="feat"] { background: var(--iris); color: var(--ink); }
.cell.is-win { box-shadow: inset 0 0 0 3px #1a0c14, inset 0 0 0 6px #fff; }
.cell.is-feature { box-shadow: inset 0 0 0 3px #1a0c14, inset 0 0 0 6px var(--flare); }
.reels.is-live .cell { opacity: 0.8; }
.win-banner {
  margin: 14px 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.9;
  color: var(--flare);
}
.controls { display: grid; gap: 8px; justify-items: start; margin-top: 16px; }
.control-label { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--flare); }
.bet-group { display: flex; flex-wrap: wrap; gap: 8px; }
.spin-btn { min-width: 168px; min-height: 56px; }
.lock-note { padding: 14px 16px; border-radius: 18px; background: var(--plum); }
.play-side table { width: 100%; border-collapse: collapse; }
.play-side th, .play-side td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.play-side h2 { font-size: 2rem; margin-top: 20px; }
.host { display: flex; gap: 12px; align-items: flex-start; }
.mono {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--flare);
  color: var(--ink);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
}
.room-jump { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.host q { quotes: "“" "”"; }
.host cite { display: block; margin-top: 4px; font-style: normal; color: var(--mist); font-size: 0.92rem; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: 26px; }
.footer-brand { font-family: var(--display); font-style: italic; font-size: 2rem; margin-bottom: 8px; }
.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: 600; }
.age-badge {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: var(--display);
  font-style: italic;
}
.footer-base { margin-top: 20px; color: var(--mist); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0 10px;
}
.hero-kicker { margin: 0 0 8px; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; color: var(--mist); }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #5dff9a; }
.btn-play, .btn-join, .btn-sign { border-radius: 999px; }
.btn-play { min-height: 56px; padding: 0 28px; background: #ff4f93; color: #fff; }
.btn-join { background: var(--flare); color: var(--ink); }
.hero-art { margin: 0; }
.hero-art img { width: 100%; display: block; border-radius: 28px; }
.hero-art figcaption { margin-top: 8px; text-align: right; color: var(--mist); font-size: 0.85rem; }
.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: #2a1522;
  color: inherit;
  text-decoration: none;
}
.game-art { position: relative; display: block; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: #140910; }
.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(26, 12, 20, 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(--body); font-style: normal; font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.game-card .game-blurb { font-size: 0.92rem; }
.game-card .game-cta {
  display: flex;
  align-items: center;
  align-self: stretch;
  grid-area: auto;
  width: auto;
  margin: 8px 4px 0;
  min-height: 42px;
  justify-content: center;
  border-radius: 999px;
  background: #ff4f93;
  color: #fff;
}
.game-card .game-index, .game-card .game-accent, .game-card .game-meta { display: none; }
.play-art { width: min(100%, 420px); border-radius: 22px; display: block; margin: 8px 0 12px; }
@media (max-width: 980px) {
  .hero-grid, .game-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .game-grid { grid-template-columns: 1fr; } }
.gate-card {
  width: min(540px, 100%);
  background: var(--stage);
  border-radius: 28px;
  padding: 26px 22px;
  text-align: center;
}
.gate-card .actions { justify-content: center; }
.gate-card h2 { font-size: clamp(2.4rem, 6vw, 3.4rem); }

@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(--stage);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 8px 0; }
  .header-tools { margin-left: auto; }
  .gels, .play-layout, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .game-row {
    grid-template-columns: 18px minmax(0, 1fr);
    grid-template-areas: "accent copy" "accent meta" "accent cta";
  }
  .game-cta { justify-self: start; }
  .header-inner { flex-wrap: wrap; padding: 8px 0; }
  .cell { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
