/* Spin777 — main stylesheet. Mobile-first: base rules are for phones, @media (min-width) adds desktop.
   One theme only: dark emerald casino felt with gold (user request 2026-10-01, replaces the bright/dark toggle).
   Colours live only in the tokens below. */

/* Outfit, self-hosted (latin subset) instead of Google Fonts — no third-party request before first paint. */
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url('/assets/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url('/assets/fonts/outfit-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 800; font-display: swap; src: url('/assets/fonts/outfit-latin-800-normal.woff2') format('woff2'); }

:root {
  --bg: #04110a;
  --surface: #0a1d13;
  --surface-2: rgba(14, 40, 26, .62);  /* translucent so the felt pattern shows through .alt sections */
  --text: #e9f5ed;
  --muted: #9fb8a9;
  --line: #1d3a2a;
  --green: #1fc874;
  --green-deep: #0b6b3a;
  --green-glow: #2be08a;
  --gold: #ffc93a;
  --gold-soft: #2a2208;
  --gold-text: #ffd45c;
  --on-gold: #2a1a00;
  --hero: radial-gradient(110% 90% at 20% 0%, rgba(19, 160, 88, .55) 0%, rgba(7, 60, 34, .35) 45%, transparent 100%);
  --shadow: 0 6px 28px rgba(0, 0, 0, .45);
  --radius: 16px;
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(16, 120, 66, .35), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255, 210, 90, .028) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-45deg, rgba(255, 210, 90, .028) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, #08311b 0%, #04160d 14%, #062417 32%, #041a0f 50%, #072a19 68%, #04160d 86%, #020b06 100%);
  background-color: var(--bg);
  font: 16px/1.65 var(--font-body);
  padding-bottom: 84px; /* room for the sticky download bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
a:hover { color: var(--green-glow); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- 18+ strip & header ---------- */
.age-strip { background: var(--green-deep); color: #fff; font-size: .8rem; text-align: center; padding: 6px 16px; }
.age-strip a { color: var(--gold); }
.age-strip b { background: var(--gold); color: var(--on-gold); border-radius: 4px; padding: 0 5px; margin-right: 6px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 10px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font: 800 1.25rem var(--font-head); }
.brand img { width: 44px; height: 44px; }
.brand span b { color: var(--gold-text); }
.main-nav { display: none; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-size: 1.15rem; cursor: pointer;
  display: inline-grid; place-items: center; text-decoration: none;
}
.icon-btn:hover { border-color: var(--green); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: '';
}
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }

/* Mobile drawer */
.drawer { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.drawer.open { display: block; }
.drawer ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.drawer a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }

@media (min-width: 900px) {
  .main-nav { display: flex; gap: 4px; margin-left: 24px; }
  .main-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
  .main-nav a:hover { background: var(--surface-2); color: var(--green); }
  .menu-btn, .drawer, .drawer.open { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 1rem var(--font-head); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, #ffe680 0%, #f5bd1f 55%, #d99500 100%); color: var(--on-gold);
  box-shadow: 0 4px 0 #a86a00, 0 8px 20px rgba(217, 149, 0, .35);
}
.btn-gold:hover { color: var(--on-gold); }
.btn-tg { background: #229ed9; color: #fff; }
.btn-tg:hover { color: #fff; background: #1b8cc2; }
.btn-ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { background: var(--hero); color: #fff; overflow: hidden; position: relative; }
.hero::after { /* soft gold glow behind the logo */
  content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -120px;
  background: radial-gradient(circle, rgba(255, 201, 58, .28), transparent 65%); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 28px; padding-top: 36px; padding-bottom: 44px; }
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #ffd84d; }
.hero .lead { font-size: 1.08rem; color: #e1f3e8; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .82rem; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; padding: 5px 10px; }
.chips b { color: #ffd84d; font-weight: 700; }
.hero-art { position: relative; justify-self: center; width: min(460px, 92vw); }
.hero-art img { width: 100%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .55)); }
@media (prefers-reduced-motion: reduce) { .game, .game .glass { transition: none; } html { scroll-behavior: auto; } }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; padding-top: 64px; padding-bottom: 72px; }
}

/* Quick facts strip under the hero */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: -22px; position: relative; z-index: 2; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.fact b { display: block; font: 800 1.05rem var(--font-head); color: var(--green); }
.fact b { color: var(--gold-text); }
.fact span { font-size: .85rem; color: var(--muted); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
/* No coloured band per section: one page-long body gradient carries the colour, so there are no stripes at H2 changes. */
.section.alt { background: transparent; }
.section-head { max-width: 720px; margin-bottom: 22px; }
.kicker { font: 700 .78rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 6px; display: block; }
.prose { max-width: 760px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px;
  background: linear-gradient(180deg, #ffe680, #f5bd1f); color: var(--on-gold); font-size: 1.3rem;
}

/* Table of contents */
.toc { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 18px 20px; }
.toc h2 { font-size: 1.25rem; margin-bottom: .5em; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
.toc li { padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--green); text-decoration: underline; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 40px; } }

/* ---------- Game catalogue ---------- */

.tools { display: grid; gap: 12px; margin-bottom: 18px; }
.search { position: relative; }
.search input {
  width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); padding: 0 16px 0 46px; font-size: 1rem;
}
.search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.search svg { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.filters button {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  background: var(--surface); color: var(--text); font: 600 .9rem var(--font-body);
}
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.filters button[aria-pressed="true"] { color: #04140b; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 600px) { .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .tools { grid-template-columns: 1fr auto; align-items: center; } }
/* Game card (client reference style): frameless rounded tile, name row with a round arrow,
   muted subtitle. Hover (mouse only) lifts the tile and slides a frosted-glass description over the art. */
.game { position: relative; }
.game a { display: flex; flex-direction: column; gap: 8px; height: 100%; color: var(--text); text-decoration: none; }
.game .art { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  transition: transform .25s ease, box-shadow .25s ease; }
.game img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface); }
.game .cap { display: grid; gap: 1px; padding: 0 2px; }
.game .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game .cap h3 { font: 600 .92rem/1.25 var(--font-body); margin: 0; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game .arrow { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); color: #fff;
  display: grid; place-items: center; font-size: .9rem; line-height: 1; padding-bottom: 1px; transition: background .2s, border-color .2s, color .2s; }
.game .sub { font-size: .74rem; color: #9fb8a9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game .go { color: var(--gold-text); font-weight: 600; }
.game .hot {
  position: absolute; top: 8px; right: 8px; z-index: 2; font: 800 .64rem var(--font-head); letter-spacing: .08em;
  color: #fff; background: linear-gradient(180deg, #ff5a3c, #d4162f); padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(212, 22, 47, .5);
}
.game .glass {
  position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.game .glass p { font-size: .8rem; line-height: 1.45; margin: 0; color: rgba(255, 255, 255, .92); }
.game .glass .tag { color: #ffe27a; }
@media (hover: hover) {
  .game:hover .art, .game:focus-within .art { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 34px rgba(0, 0, 0, .6), 0 0 0 2px rgba(255, 201, 58, .6); }
  .game:hover .glass, .game:focus-within .glass { opacity: 1; transform: none; }
  .game:hover .arrow, .game:focus-within .arrow { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
}
.tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-text); margin-bottom: 4px; }
.empty { display: none; padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty.show { display: block; }

/* ---------- Steps, bonus, payments ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 16px 16px 16px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font: 800 1rem var(--font-head);
  background: linear-gradient(180deg, #ffe680, #f5bd1f); color: var(--on-gold);
}
.steps b { display: block; }

.bonus { display: flex; flex-direction: column; }
.bonus .value { font: 800 1.6rem var(--font-head); color: var(--green); margin: 2px 0 8px; }
.bonus .value { color: var(--gold-text); }
.terms { margin: auto 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); font-size: .85rem; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.terms dt { color: var(--muted); }
.terms dd { margin: 0; font-weight: 600; text-align: right; }

.tbc {
  display: inline-block; font: 700 .72rem var(--font-body); letter-spacing: .04em; vertical-align: middle;
  color: var(--gold-text); background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 6px; padding: 1px 6px;
}
.bonus .value .tbc { font-size: .8rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-family: var(--font-head); }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--green); font-weight: 700; } .no { color: var(--muted); }

.note { border-left: 4px solid var(--gold); background: var(--gold-soft); padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 0 0 1em; font-size: .95rem; }
.warn18 { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 2px solid #c8102e; border-radius: var(--radius); padding: 16px; }
.badge18 { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 3px solid #c8102e; color: #c8102e; display: grid; place-items: center; font: 800 1rem var(--font-head); }
.badge18 { color: #ff6b7d; border-color: #ff6b7d; }
.warn18 { border-color: #ff6b7d; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 12px; font-size: 1.5rem; color: var(--gold-text); }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--hero); color: #fff; border-radius: 22px; padding: 28px 22px; display: grid; gap: 16px; align-items: center; }
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-band p { color: #e1f3e8; margin: 0; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; padding: 36px 40px; } }

/* ---------- Inner pages ---------- */
.page-head { background: var(--hero); color: #fff; padding: 28px 0 34px; }
.page-head h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: .3em; }
.page-head p { color: #e1f3e8; max-width: 680px; margin: 0; }
.crumbs { font-size: .82rem; margin-bottom: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; opacity: .7; }
.crumbs a { color: #ffe27a; }
.page-body { display: grid; gap: 28px; padding-block: 32px 48px; /* padding-block: a shorthand here would wipe .wrap's 16px side gutter */ }
.page-body .prose h2 { font-size: 1.45rem; margin-top: 1.4em; }
.page-body .prose h2:first-child { margin-top: 0; }
.page-body .prose h3 { margin-top: 1.2em; }
.updated { font-size: .82rem; color: #cfe8d9; margin-top: 10px; }
.aside { display: grid; gap: 14px; align-content: start; }
.aside .card h3 { font-size: 1rem; }
.aside ul { list-style: none; padding: 0; margin: 0; }
.aside li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; }
.aside .btn { width: 100%; margin-top: 8px; }
.game-hero { display: grid; gap: 18px; align-items: center; }
.game-hero img { width: 160px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
@media (min-width: 700px) { .game-hero { grid-template-columns: auto 1fr; } }
@media (min-width: 960px) { .page-body { grid-template-columns: minmax(0, 1fr) 300px; } .aside { position: sticky; top: 84px; } }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)); border-top: 1px solid rgba(255, 201, 58, .12); color: #b9cfc1; padding: 40px 0 28px; font-size: .9rem; }
.site-footer a { color: #e6f3ea; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.foot-grid { display: grid; gap: 26px; }
.foot-grid h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-brand img { width: 64px; height: 64px; margin-bottom: 10px; }
.foot-bottom { border-top: 1px solid #1d3a2a; margin-top: 28px; padding-top: 18px; display: grid; gap: 12px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Sticky download bar (CLAUDE.md §5.4: always visible) ---------- */
.dl-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.dl-bar .inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.dl-bar .who { display: none; align-items: center; gap: 10px; margin-right: auto; }
.dl-bar .who img { width: 40px; height: 40px; }
.dl-bar .who b { display: block; font-family: var(--font-head); }
.dl-bar .who small { color: var(--muted); }
.dl-bar .btn { flex: 1; padding: 0 10px; font-size: .9rem; gap: 6px; }
.dl-bar .btn svg { width: 18px; height: 18px; }
@media (min-width: 800px) { .dl-bar .who { display: flex; } .dl-bar .btn { flex: none; min-width: 210px; font-size: 1rem; } }

/* Text-only homepage sections: keep them aligned with the 1120px grid, cap only the line length. */
.wrap.prose { max-width: 1120px; }
.wrap.prose > * { max-width: 760px; }

/* ---------- Hero animation: falling 3D coins + two wobbling phones with game demos ----------
   Only transform/opacity are animated so it stays on the GPU and smooth on mid-range phones. */
.hero-art { isolation: isolate; }
.hero-art .poster { position: relative; z-index: 1; }
.coins { position: absolute; inset: -8% -4% 0; pointer-events: none; overflow: hidden; z-index: 0; }
.coins.front-layer { z-index: 3; }
.coin {
  position: absolute; top: 0; left: var(--x); width: var(--s); height: var(--s);
  animation: coin-fall var(--d) linear var(--delay) infinite; will-change: transform, opacity;
  perspective: 300px;
}
.coin.front { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.coin i {
  position: absolute; inset: 0; transform-style: preserve-3d;
  animation: coin-spin calc(var(--d) / 3) linear var(--delay) infinite;
}
.coin i::before, .coin i::after {
  content: '7'; position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  font: 900 calc(var(--s) * .5) / 1 var(--font-head); color: #a86a00;
  background: radial-gradient(circle at 35% 30%, #fff6c4 0 12%, #ffd84d 30%, #f5b400 62%, #b97800 100%);
  box-shadow: inset 0 0 0 calc(var(--s) * .08) #e0a000, inset 0 0 0 calc(var(--s) * .12) #ffe680;
  backface-visibility: hidden;
}
.coin i::before { transform: translateZ(2px); }
.coin i::after { transform: rotateY(180deg) translateZ(2px); filter: brightness(.85); }
@keyframes coin-fall {
  0% { transform: translate3d(0, -60px, 0); opacity: 0; }
  8%, 85% { opacity: 1; }
  100% { transform: translate3d(14px, 560px, 0); opacity: 0; }
}
@keyframes coin-spin { to { transform: rotateY(360deg) rotateX(18deg); } }

.phone {
  position: absolute; z-index: 2; bottom: -2%; width: 27%; aspect-ratio: 9 / 18;
  border-radius: 18px; padding: 5px; background: #0b0f0d;
  box-shadow: 0 0 0 2px #d9a400, 0 16px 34px rgba(0, 0, 0, .6);
  animation: phone-wobble 4.5s ease-in-out infinite;
}
.phone::before { content: ''; position: absolute; top: 9px; left: 50%; width: 26%; height: 5px; translate: -50% 0; background: #000; border-radius: 4px; z-index: 2; }
.phone-l { left: -3%; --r: -7deg; }
.phone-r { right: -3%; --r: 7deg; animation-delay: -2.2s; }
@keyframes phone-wobble {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(calc(var(--r) * .4)) translateY(-8px); }
}
.screen { position: relative; height: 100%; border-radius: 14px; overflow: hidden; color: #fff; font-family: var(--font-head); }
.cd-top { position: absolute; top: 16px; left: 0; right: 0; text-align: center; font-size: clamp(7px, 1.6vw, 9px); font-weight: 800; letter-spacing: .06em; color: #ffe27a; z-index: 1; }
.cd-btn {
  position: absolute; left: 12%; right: 12%; bottom: 7%; padding: 4px 0; border-radius: 999px; text-align: center;
  font-size: clamp(7px, 1.6vw, 9px); font-weight: 800; color: var(--on-gold); background: linear-gradient(180deg, #ffe680, #f5bd1f);
}

/* Crash demo. The trail and the rocket share one 100×150 coordinate box (.cd-stage), so the
   rocket's offset-path follows the drawn trail exactly at any phone size. */
.crash-demo { background: radial-gradient(120% 80% at 70% 10%, #3b2a8a, #120a2e 70%); }
.crash-demo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 100% 20%, linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 25% 100%;
}
.cd-sky { position: absolute; left: 6%; top: 22%; width: 88%; height: 56%; overflow: visible; }
.cd-trail { fill: none; stroke: #ffc93a; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; vector-effect: non-scaling-stroke; }
.cd-rocket { position: absolute; width: 16%; left: 0; top: 0; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 0 6px rgba(255, 183, 3, .7)); }
.cd-flame { animation: flame .15s ease-in-out infinite alternate; transform-origin: 0 12px; }
@keyframes flame { to { transform: scaleY(1.4); } }
.cd-mult { position: absolute; top: 30%; left: 0; right: 0; text-align: center; font-size: clamp(13px, 3.4vw, 20px); font-weight: 800; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); z-index: 1; }
.cd-mult.crashed { color: #ff5a6e; font-size: clamp(9px, 2.2vw, 13px); }

/* Slot demo: each strip starts and ends on 7, so the loop restart is invisible. */
.slot-demo { background: radial-gradient(120% 80% at 50% 20%, #0f8a4a, #04250f 75%); }
.reels { position: absolute; top: 32%; left: 8%; right: 8%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 6px; background: linear-gradient(180deg, #ffe680, #b97800); }
.reel { height: clamp(22px, 6vw, 36px); overflow: hidden; background: #fffdf5; border-radius: 3px; }
.strip { display: grid; grid-auto-rows: clamp(22px, 6vw, 36px); animation: reel1 4.2s cubic-bezier(.45, .05, .25, 1) infinite; }
.strip b { display: grid; place-items: center; font-size: clamp(11px, 3vw, 18px); font-weight: 900; color: #0a6e3c; }
.strip .seven { color: #d4162f; }
.strip .bar { font-size: clamp(7px, 1.8vw, 10px); color: #14231a; }
.strip.r2 { animation-name: reel2; } .strip.r3 { animation-name: reel3; }
@keyframes reel1 { 0%, 8% { transform: translateY(0); } 40%, 100% { transform: translateY(-91.667%); } }
@keyframes reel2 { 0%, 8% { transform: translateY(0); } 52%, 100% { transform: translateY(-91.667%); } }
@keyframes reel3 { 0%, 8% { transform: translateY(0); } 64%, 100% { transform: translateY(-91.667%); } }
.sd-win {
  position: absolute; top: 60%; left: 0; right: 0; text-align: center; font-size: clamp(9px, 2.4vw, 14px); font-weight: 900; color: #ffe27a;
  text-shadow: 0 0 10px rgba(255, 201, 58, .9); opacity: 0; animation: win 4.2s ease infinite;
}
@keyframes win { 0%, 66% { opacity: 0; transform: scale(.6); } 72% { opacity: 1; transform: scale(1.15); } 80%, 94% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

@media (max-width: 699px) { .phone { width: 25%; } .phone-l { left: 1%; } .phone-r { right: 1%; } }

@media (prefers-reduced-motion: reduce) {
  .coin, .coin i, .phone, .strip, .sd-win, .cd-flame { animation: none; }
  .coins { display: none; }
  .sd-win { opacity: 1; }
}

/* ---------- Casino-lamp button: chasing marquee bulbs around the edge + a light sweep ---------- */
/* One quiet line, not a second gold CTA: the sticky Download bar is already there, and a button
   right under the grid felt pushy (user, 2026-10-03). */
.more-games { margin: 14px 0 6px; text-align: center; color: var(--muted); font-size: .9rem; }
.btn-lamp, .lamp-on {
  position: relative; isolation: isolate;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%) 0 0 / 250% 100% no-repeat,
              linear-gradient(180deg, #ffe680 0%, #f5bd1f 55%, #d99500 100%);
  animation: shine 2.4s ease-in-out infinite;
}
.btn-lamp::before, .lamp-on::before {
  content: ''; position: absolute; inset: -7px; z-index: -1; border-radius: 999px; padding: 5px;
  background: radial-gradient(circle, #fff7c2 0 2px, #ffb703 2.6px, transparent 3.4px) 0 0 / 12px 12px, #7a1020;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: bulbs .6s steps(2) infinite; filter: drop-shadow(0 0 6px rgba(255, 201, 58, .9));
}
.lamp-on { animation: shine 1.2s ease-in-out infinite, lamp-pulse .6s ease-in-out 6 alternate; }
@keyframes shine { 0% { background-position: 150% 0, 0 0; } 60%, 100% { background-position: -150% 0, 0 0; } }
@keyframes bulbs { to { background-position: 6px 0, 0 0; } }
@keyframes lamp-pulse { to { transform: scale(1.08); box-shadow: 0 4px 0 #a86a00, 0 0 36px rgba(255, 201, 58, .9); } }
@media (prefers-reduced-motion: reduce) { .btn-lamp, .lamp-on, .btn-lamp::before, .lamp-on::before { animation: none; } }

/* ---------- "Why Choose" poster slots (2:1, kept short on purpose) ---------- */
.why-poster { width: 100%; aspect-ratio: 2 / 1; border-radius: 12px; margin-bottom: 14px; object-fit: cover; }
.why-poster.slot {
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-text);
  border: 2px dashed rgba(255, 201, 58, .45); background: rgba(255, 201, 58, .06);
}

/* ---------- Floating customer-service button (sits above the sticky download bar) ---------- */
.cs { position: fixed; right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 55; }
.cs-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid #ffe27a; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, #1fc874, #0b6b3a); display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5); position: relative;
}
.cs-btn svg { width: 28px; height: 28px; }
.cs-btn::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #1fc874; animation: ping 2s ease-out infinite; }
@keyframes ping { to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cs-btn::after { animation: none; } }

/* ---------- Events: compact poster row on the homepage (swipe on phones, 3 columns on desktop) ---------- */
.events { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.event { scroll-snap-align: start; }
.event a { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease; }
.event a:hover { transform: translateY(-3px); border-color: rgba(255, 201, 58, .5); }
.ev-banner { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.ev-body { padding: 10px 14px 14px; }
.ev-body h3 { font-size: 1rem; margin: 0 0 2px; }
.ev-body p { font-size: .85rem; color: var(--muted); margin: 0 0 6px; }
.ev-body .go { font-size: .8rem; font-weight: 700; color: var(--gold-text); }
@media (min-width: 760px) { .events { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }

/* Bonus guide: one section per event */
.ev-section { padding-top: 8px; }
.ev-section .ev-banner { border-radius: 14px; margin: 4px 0 14px; }
.ev-section .lead-in { font-size: 1.02rem; }
.vip-table { max-height: 520px; overflow-y: auto; }
.vip-table thead th { position: sticky; top: 0; z-index: 1; }
td, th { font-variant-numeric: tabular-nums; }

/* ---------- Mobile overflow guards (audit 2026-10-02) ----------
   Grid/flex children default to min-width:auto, so a wide table or a long nowrap game name could push the
   whole page wider than the phone (Bonus & Payment pages zoomed out). Let them shrink; wide tables
   scroll inside their own .table-wrap instead. */
.page-body > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .game-grid > * { min-width: 0; }
.dl-bar .btn { min-width: 0; }
@media (max-width: 379px) {
  .dl-bar .inner { gap: 8px; }
  .dl-bar .btn { font-size: .8rem; padding: 0 8px; gap: 4px; }
  .dl-bar .btn svg { width: 15px; height: 15px; }
}
/* Buttons inside page content may wrap (long game names); the sticky bar keeps its single line. */
.page-body .btn, .hero-cta .btn { white-space: normal; text-align: center; max-width: 100%; height: auto; padding-block: 10px; }

.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--gold-text); text-decoration: underline; }

/* Game grids inside article text: no list indent (it pushed the grid past the screen on phones). */
.prose .game-grid { padding-left: 0; }
/* Caption grid: let long names truncate with an ellipsis instead of widening the card. */
.game .cap { grid-template-columns: minmax(0, 1fr); }
.game .cap > *, .game .row h3 { min-width: 0; }

/* ---------- Collapsible game grid (4 cards, arrow toggle) ----------
   Before main.js runs, CSS already hides cards 5+ (only when JS is available), so the page does not
   jump when the script collapses the grid. Without JS every game stays visible. */
.js #game-grid:not(.managed) > li:nth-child(n+5) { display: none; }
/* Icon-only toggle; its name ("Show more games") stays for screen readers in .lbl.sr-only. */
.grid-toggle {
  display: flex; align-items: center; justify-content: center; margin: 18px auto 0; width: 48px; height: 48px; padding: 0;
  border-radius: 50%; border: 1.5px solid rgba(255, 201, 58, .55); background: rgba(255, 201, 58, .06);
  color: var(--gold-text); font: 700 .92rem var(--font-head); cursor: pointer; transition: background .2s, border-color .2s;
}
.grid-toggle:hover { background: rgba(255, 201, 58, .14); border-color: var(--gold); }
.grid-toggle svg { width: 24px; height: 24px; transition: transform .25s ease; }
.grid-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .grid-toggle svg { transition: none; } }
