:root {
  --ink: #0b1622;
  --deep: #071018;
  --lane: #143044;
  --panel: #17344a;
  --rush: #ff5a33;
  --signal: #f0c14a;
  --foam: #e7f3f6;
  --foam-ink: #102433;
  --mist: #b7c9d4;
  --paper: #f7fbfc;
  --line: rgba(231, 243, 246, 0.16);
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --max: 1180px;
  --focus: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 128px,
    rgba(231, 243, 246, 0.035) 128px 129px
  );
}
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.02em; line-height: 0.9; text-transform: uppercase; }
h1 { font-size: clamp(3.2rem, 8vw, 6rem); margin: 0 0 12px; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 14px; }
h3 { font-size: 1.8rem; margin: 0 0 8px; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--ink); }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--signal);
  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: 72px 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(--signal);
}
.band-foam .eyebrow { color: #8a4b12; }
.lede { font-size: 1.18rem; max-width: 42ch; }
.fine { color: var(--mist); font-size: 0.92rem; }
.page-head { padding: 36px 0 8px; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 1.5em; }
.prose a, .disclaimer a, .footer-links a, .help-links a { text-underline-offset: 3px; }
.noscript {
  margin: 0;
  padding: 12px 16px;
  background: var(--signal);
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 22, 34, 0.94);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 0.8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.wordmark small {
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--signal);
}
.site-nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
}
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav a[aria-current="page"] { color: var(--signal); }
.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;
}
.nav-toggle, .text-btn, .chip {
  border: 1px solid var(--line);
  background: transparent;
  padding: 0 12px;
}
.nav-toggle { display: none; }
.level-pill, .coin-pill { padding: 0 12px; font-weight: 700; white-space: nowrap; }
.level-pill { border: 1px solid var(--line); }
.coin-pill { background: var(--signal); color: var(--ink); }
.brand-rule {
  height: 18px;
  background: repeating-linear-gradient(
    -32deg,
    #f0c14a 0 10px,
    #0b1622 10px 16px,
    #ff5a33 16px 20px,
    #0b1622 20px 28px
  );
}
.btn {
  border: 0;
  background: var(--rush);
  color: #1a0c09;
  padding: 0 16px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn-ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line);
}
.band-foam .btn-ghost { color: var(--foam-ink); box-shadow: inset 0 0 0 2px rgba(16, 36, 51, 0.35); }
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(--signal); color: var(--ink); border-color: var(--signal); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: center;
  padding: 34px 0 18px;
}
.hero-copy h1 {
  font-size: clamp(4.8rem, 12vw, 9.4rem);
  margin: 6px 0 12px;
}
.hero-copy h1 small {
  display: block;
  margin-top: 10px;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--signal);
}
.ticket {
  max-width: 440px;
  margin-top: 8px;
  padding: 16px 18px 14px 26px;
  background:
    radial-gradient(circle at 0 14px, #0b1622 7px, transparent 8px) 0 0 / 18px 28px repeat-y,
    linear-gradient(#e7f3f6, #e7f3f6);
  color: var(--foam-ink);
}
.ticket :focus-visible { outline-color: var(--ink); }
.ticket-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticket-num {
  margin: 4px 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 4.6rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
}
.ticket-sub { margin: 0; }

.fascia {
  background: var(--deep);
  border: 1px solid var(--line);
  padding: 12px;
}
.fascia-caption { margin: 10px 0 0; color: var(--mist); font-size: 0.85rem; }
.idle {
  height: 192px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.idle-col { overflow: hidden; background: var(--lane); }
.idle-strip span {
  height: 64px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.idle-strip span[data-sym="wild"] { background: var(--signal); color: var(--ink); }
.idle-strip span[data-sym="high"] { background: var(--rush); color: #1a0c09; }
.idle-strip span[data-sym="feat"] { background: var(--paper); color: var(--ink); }
html[data-motion="on"] .idle-col .idle-strip { animation: reelroll 6.4s linear infinite; }
html[data-motion="on"] .idle-col:nth-child(2) .idle-strip { animation-duration: 7.6s; }
html[data-motion="on"] .idle-col:nth-child(3) .idle-strip { animation-duration: 5.5s; }
html[data-motion="on"] .idle-col:nth-child(4) .idle-strip { animation-duration: 8.2s; }
html[data-motion="on"] .idle-col:nth-child(5) .idle-strip { animation-duration: 6s; }
@keyframes reelroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.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.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
.spec dd { margin: 0; }

.game-list { display: flex; flex-direction: column; }
.game-row {
  display: grid;
  grid-template-columns: 64px 10px minmax(0, 1.5fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px 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 { font-family: var(--display); font-size: 2rem; line-height: 1; }
.game-accent { width: 10px; align-self: stretch; min-height: 42px; }
.game-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.game-name { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 0.9; text-transform: uppercase; }
.game-blurb { color: var(--mist); }
.game-meta { color: var(--mist); font-size: 0.92rem; }
.game-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: var(--rush);
  color: #1a0c09;
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.is-locked .game-cta { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.game-row:hover .game-name { color: var(--signal); }
.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(--rush); padding-top: 12px; }
.steps span {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.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.8rem, 3vw, 2.4rem); line-height: 0.95; text-transform: uppercase; }
.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(18, 40, 58, 0.72);
  padding: 16px;
  margin: 16px 0;
}
.xp-track { height: 10px; background: rgba(255, 255, 255, 0.12); margin: 8px 0 16px; }
.xp-track span { display: block; height: 100%; width: 0; background: var(--signal); }
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);
  background: transparent;
}
.stack { display: grid; gap: 10px; justify-items: start; margin-top: 8px; }
.form-error { color: #ffb4a2; 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(3rem, 7vw, 5.4rem); }
.machine { background: var(--deep); border: 1px solid var(--line); 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);
  font-family: var(--display);
  font-size: clamp(0.78rem, 1.7vw, 1.25rem);
  letter-spacing: 0.04em;
}
.cell[data-sym="wild"] { background: var(--signal); color: var(--ink); }
.cell[data-sym="high"] { background: var(--rush); color: #1a0c09; }
.cell[data-sym="feat"] { background: var(--paper); color: var(--ink); }
.cell.is-win { box-shadow: inset 0 0 0 3px #071018, inset 0 0 0 6px #fff; }
.cell.is-feature { box-shadow: inset 0 0 0 3px #071018, inset 0 0 0 6px var(--signal); }
.reels.is-live .cell { opacity: 0.82; }
.win-banner {
  margin: 12px 0;
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 0.85;
  color: var(--signal);
}
.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.8rem; }
.lock-note { padding: 12px; background: var(--lane); }
.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: 2rem; 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(--signal);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
}
.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: 2rem; letter-spacing: 0.04em; text-transform: uppercase; 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;
  font-family: var(--display);
}
.footer-base { margin-top: 18px; color: var(--mist); }

.hero-copy h1 { font-size: clamp(3.1rem, 6vw, 5.2rem); }
.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; }
.btn-play, .btn-join, .btn-sign { border-radius: 999px; }
.btn-play { min-height: 56px; padding: 0 28px; background: #ff4f93; color: #fff; }
.btn-join { background: #f0c14a; color: #1a0c09; }
.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: #16283c;
  color: inherit;
  text-decoration: none;
}
.game-art { position: relative; display: block; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: #0b1622; }
.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(11, 22, 34, 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-size: 1.05rem; letter-spacing: 0; text-transform: none; line-height: 1.2; }
.game-card .game-blurb { color: var(--mist); font-size: 0.92rem; }
.game-card .game-cta {
  display: flex;
  align-items: center;
  margin: 8px 4px 0;
  min-height: 42px;
  justify-content: center;
  border-radius: 999px;
  background: #ff4f93;
  color: #fff;
  font-family: var(--body);
  letter-spacing: 0.04em;
  text-transform: none;
}
.play-art { width: min(100%, 420px); border-radius: 18px; display: block; margin: 8px 0 12px; }
@media (max-width: 980px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .game-grid { grid-template-columns: 1fr; } }

@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;
    gap: 2px;
    padding: 10px 18px 16px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 8px 0; }
  .header-tools { margin-left: auto; }
  .hero-grid, .play-layout, .footer-grid, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .game-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .game-index { display: none; }
  .game-accent { grid-column: 1 / -1; width: 100%; height: 6px; min-height: 0; }
  .game-copy { grid-column: 1 / -1; }
  .spec div { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
