:root {
  --ink: #0e1a2b;
  --ink-2: #33415a;
  --muted: #5d6a80;
  --line: #dde3ec;
  --paper: #ffffff;
  --wash: #f2f5f9;
  --accent: #c8102e;
  --accent-ink: #ffffff;
  --night: #0b1422;
  --night-2: #16233a;
  --night-text: #e6ecf5;
  --focus: #1d6fe0;
  --radius: 12px;
  --s1: 8px; --s2: 12px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: var(--s4); min-height: 64px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 20px; text-decoration: none; }
.logo b { color: var(--accent); }
.nav { display: flex; gap: var(--s4); margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); padding: 10px 0; }
.nav a:hover { color: var(--ink); }
.age { font-size: 13px; font-weight: 700; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
@media (max-width: 760px) { .nav { display: none; } .age { margin-left: auto; } }

/* hero: asymmetric, text left, reel right */
.hero { padding: var(--s6) 0 var(--s5); background: linear-gradient(180deg, var(--wash), var(--paper)); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--s5); align-items: center; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s3); }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; max-width: 14ch; }
.hero .lead { margin-top: var(--s4); font-size: 19px; color: var(--ink-2); max-width: 52ch; }
.search { margin-top: var(--s5); display: flex; max-width: 520px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; overflow: hidden; }
.search label { position: absolute; left: -999px; }
.search input { flex: 1; border: 0; font: inherit; padding: 14px 16px; min-height: 52px; background: transparent; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(29,111,224,.35); }
.search span { display: flex; align-items: center; padding: 0 16px; color: var(--muted); font-size: 14px; }
.hero-note { margin-top: var(--s3); font-size: 14px; color: var(--muted); }

.reel { justify-self: end; width: 100%; max-width: 320px; aspect-ratio: 4 / 5; background: var(--night); border-radius: 20px; padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(3deg); box-shadow: 0 30px 60px -30px rgba(11,20,34,.6); }
.strip { background: var(--night-2); border-radius: 10px; overflow: hidden; position: relative; }
.strip ul { list-style: none; margin: 0; padding: 0; animation: spin 9s linear infinite; }
.strip:nth-child(2) ul { animation-duration: 12s; animation-direction: reverse; }
.strip:nth-child(3) ul { animation-duration: 10.5s; }
.strip li { height: 92px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 34px; color: var(--night-text); }
.strip li.hot { color: #ff5a6e; }
.strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night-2) 0, transparent 22%, transparent 78%, var(--night-2) 100%); }
@keyframes spin { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip ul { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .reel { justify-self: start; max-width: 260px; transform: rotate(0); aspect-ratio: 3 / 2; }
  .strip li { height: 64px; font-size: 26px; }
}

/* sections */
section { padding: var(--s6) 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
.sec-head p { color: var(--muted); max-width: 46ch; }

.chips { display: flex; gap: var(--s1); flex-wrap: wrap; margin-bottom: var(--s4); }
.chip { font: inherit; font-size: 15px; font-weight: 500; border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 10px 16px; min-height: 44px; border-radius: 999px; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* game list: featured first tile wider, rest regular */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s3); list-style: none; padding: 0; margin: 0; }
.game { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.game:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -18px rgba(14,26,43,.45); }
.game .art { aspect-ratio: 16 / 10; display: grid; place-items: end start; padding: 12px; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 22px; line-height: 1.05; }
.game .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game .prov { font-size: 13px; color: var(--muted); }
.game .tags { font-size: 13px; color: var(--ink-2); }
.game .soon { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 8px; }
.game[hidden] { display: none; }
.empty { color: var(--muted); padding: var(--s4) 0; }
.a1 { background: linear-gradient(135deg, #1f3c88, #5b2a86); }
.a2 { background: linear-gradient(135deg, #0f6e6e, #1b4d3e); }
.a3 { background: linear-gradient(135deg, #8a1c2b, #3b1424); }
.a4 { background: linear-gradient(135deg, #c27c0e, #6b3a0a); }
.a5 { background: linear-gradient(135deg, #2b2d42, #4a4e69); }
.a6 { background: linear-gradient(135deg, #005f73, #0a9396); }

/* how it works: text column + numbered list, offset */
.how .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s5); }
.how h2 { font-size: clamp(28px, 3.4vw, 40px); }
.how .intro { margin-top: var(--s3); color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--accent); }
.steps h3 { font-size: 19px; margin-bottom: 4px; }
.steps p { color: var(--ink-2); }
@media (max-width: 860px) { .how .wrap { grid-template-columns: 1fr; } }

/* real money band */
.money { background: var(--night); color: var(--night-text); }
.money .sec-head p { color: #a9b6c9; }
.money .warn { display: inline-block; margin-bottom: var(--s4); font-size: 14px; font-weight: 600; background: var(--night-2); border-left: 3px solid #ff5a6e; padding: 10px 14px; border-radius: 6px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid #263552; }
.row { display: grid; grid-template-columns: 220px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s4) 0; border-bottom: 1px solid #263552; }
.row h3 { font-size: 24px; }
.row p { color: #b9c5d6; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; transition: filter .18s ease, transform .18s ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.disclose { margin-top: var(--s4); font-size: 14px; color: #8e9bb0; max-width: 70ch; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: var(--s2); } .btn { width: 100%; } }

/* safer play */
.safe .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s5); align-items: start; }
.safe h2 { font-size: clamp(28px, 3.4vw, 40px); }
.safe ul { margin: var(--s3) 0 0; padding-left: 20px; color: var(--ink-2); }
.safe li { margin-bottom: 8px; }
.aside { background: var(--wash); border-radius: var(--radius); padding: var(--s4); }
.aside h3 { font-size: 19px; margin-bottom: 8px; }
.aside p { color: var(--ink-2); }
.aside a { font-weight: 600; }
@media (max-width: 860px) { .safe .wrap { grid-template-columns: 1fr; } }

/* faq */
.faq { background: var(--wash); }
.faq .wrap { max-width: 820px; }
.faq h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: var(--s4); }
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--s2); }
summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-weight: 700; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { padding: 0 20px 18px; color: var(--ink-2); }

/* footer */
footer { background: var(--night); color: #a9b6c9; font-size: 14px; padding: var(--s5) 0; }
footer .wrap { display: grid; gap: var(--s3); }
footer strong { color: var(--night-text); }

/* game images and demo modal */
.game img { width: 100%; height: auto; aspect-ratio: 325 / 234; object-fit: cover; background: var(--night-2); }
.play { margin-top: auto; font: inherit; font-weight: 700; min-height: 44px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; transition: background .18s ease, color .18s ease; }
.play:hover { background: var(--ink); color: #fff; }
dialog#demo { width: min(1100px, 100vw - 24px); height: min(720px, 100dvh - 24px); padding: 0; border: 0; border-radius: 14px; background: var(--night); color: var(--night-text); overflow: hidden; }
dialog#demo::backdrop { background: rgba(5, 10, 18, .7); }
.demo-bar { display: flex; align-items: center; gap: var(--s3); padding: 10px 14px; border-bottom: 1px solid #263552; }
.demo-bar h2 { font-size: 18px; }
.demo-bar p { font-size: 13px; color: #a9b6c9; }
.close { margin-left: auto; font: inherit; font-weight: 600; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid #3a4b6b; background: transparent; color: var(--night-text); cursor: pointer; }
.demo-frame { height: calc(100% - 61px); }
.demo-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 600px) { .demo-bar p { display: none; } }
