:root {
  --sea: #071422;
  --deep: #04101c;
  --lane: #12304a;
  --cyan: #3de7ff;
  --jaffa: #ff7a2f;
  --stone: #f4e4c8;
  --mist: #c9dbe8;
  --paper: #f7fbff;
  --ink: #102033;
  --line: rgba(247, 251, 255, 0.16);
  --display: "Secular One", "Arial Narrow", sans-serif;
  --body: Heebo, "Segoe UI", sans-serif;
  --max: 1180px;
  --focus: #3de7ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 85% -8%, rgba(61, 231, 255, 0.16), transparent 60%),
    linear-gradient(#071422, #071422);
  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: 400; letter-spacing: 0.01em; line-height: 0.95; margin: 0 0 12px; }
h1 { font-size: clamp(3.1rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; margin: 0 0 8px; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--ink); }

.skip { position: absolute; left: 12px; top: -48px; z-index: 80; background: var(--cyan); 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(--stone); color: var(--ink); }
.band-foam :focus-visible { outline-color: #0b4f66; }
.eyebrow { margin: 0 0 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.band-foam .eyebrow { color: #b85a16; }
.lede { font-size: 1.12rem; max-width: 42ch; }
.fine { color: var(--mist); font-size: 0.92rem; }
.band-foam .fine { color: #4d4638; }
.page-head { padding: 36px 0 8px; }
.noscript { margin: 0; padding: 12px 16px; background: var(--jaffa); color: #1a0c09; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(7, 20, 34, 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-size: 1.35rem; line-height: 0.9; }
.wordmark small { font-family: var(--body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); }
.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, .site-nav a[aria-current="page"] { color: var(--cyan); }
.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; border-radius: 999px; }
.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; }
.level-pill { border: 1px solid var(--line); }
.coin-pill { background: var(--cyan); color: #06202a; }
.brand-rule {
  height: 10px;
  background:
    linear-gradient(180deg, rgba(61, 231, 255, 0.0), rgba(61, 231, 255, 0.55) 40%, #3de7ff 50%, rgba(255, 122, 47, 0.35) 70%, transparent),
    #04101c;
  box-shadow: 0 0 18px rgba(61, 231, 255, 0.45);
}
.btn { border: 0; background: var(--jaffa); color: #1a0c09; padding: 0 16px; font-weight: 700; }
.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(--jaffa); color: #1a0c09; }
.btn-join { background: var(--cyan); color: #06202a; }
.band-foam .btn { background: var(--jaffa); color: #1a0c09; }
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(--cyan); color: #06202a; border-color: var(--cyan); }

.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.2rem); }
.hero-kicker { margin: 0 0 8px; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.82rem; color: var(--mist); }
.horizon { height: 8px; width: min(220px, 70%); margin: 0 0 14px; border-radius: 999px; background: linear-gradient(90deg, transparent, #3de7ff 30%, #ff7a2f 80%, transparent); box-shadow: 0 0 16px rgba(61, 231, 255, 0.7); }
html[data-motion="on"] .horizon { animation: tide 3.4s ease-in-out infinite; }
@keyframes tide { 50% { opacity: 0.55; transform: scaleX(0.92); } }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #5dff9a; }
.hero-art { margin: 0; }
.hero-art img { width: 100%; display: block; border-radius: 18px 18px 48px 18px; box-shadow: 0 0 0 2px rgba(61, 231, 255, 0.45), 0 18px 40px rgba(0, 0, 0, 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: 18px 18px 40px 18px; background: linear-gradient(180deg, #14344e, #0b2236); border: 1px solid rgba(61, 231, 255, 0.4); }
.ticket-kicker { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.ticket-num { margin: 4px 0; font-family: var(--display); font-size: clamp(3rem, 6vw, 4.2rem); line-height: 0.9; }
.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.45rem; }
.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: 18px 18px 32px 18px; background: #10283c; color: inherit; text-decoration: none; }
.game-art { position: relative; display: block; aspect-ratio: 3/4; border-radius: 14px 14px 28px 14px; overflow: hidden; background: #04101c; box-shadow: inset 0 0 0 2px rgba(61, 231, 255, 0.35); }
.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(4, 16, 28, 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.25rem; line-height: 1.05; }
.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(--jaffa); color: #1a0c09; 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(--jaffa); padding-top: 12px; }
.steps span { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: #b85a16; }
.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; }
.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 rgba(61, 231, 255, 0.28); background: rgba(12, 36, 56, 0.72); border-radius: 16px; 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(--cyan); }
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: #ffb089; 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.2rem); }
.play-art { width: min(100%, 420px); border-radius: 16px 16px 36px 16px; display: block; margin: 8px 0 12px; }
.machine { background: var(--deep); border: 1px solid rgba(61, 231, 255, 0.4); border-radius: 16px; padding: 12px; box-shadow: inset 0 -12px 24px rgba(61, 231, 255, 0.08); }
.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: 8px; font-family: var(--display); font-size: clamp(0.78rem, 1.5vw, 1.05rem); }
.cell[data-sym="wild"] { background: var(--cyan); color: #06202a; }
.cell[data-sym="high"] { background: var(--jaffa); color: #1a0c09; }
.cell[data-sym="feat"] { background: var(--stone); color: var(--ink); }
.cell.is-win { box-shadow: inset 0 0 0 3px #04101c, inset 0 0 0 6px #fff; }
.cell.is-feature { box-shadow: inset 0 0 0 3px #04101c, inset 0 0 0 6px var(--cyan); }
.reels.is-live .cell { opacity: 0.82; }
.win-banner { margin: 12px 0; font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 0.9; color: var(--cyan); }
.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(--cyan); color: #06202a; }
.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(--cyan); color: #06202a; 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.7rem; 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(--sea); 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; } .horizon { animation: none; } }
