/* Game Engine — Game Design System (shared layer).
   Tokens below are the light baseline; each preset (src/assets/css/presets/<name>.css) redefines tokens AND composition
   (hero layout, switcher shape, card style, flow visuals). Project colours: site.config.json design.colors
   (primary, accent, cta, onCta, heroBg) override the preset tokens. Only the chosen preset ships with a build. */
:root {
  --primary: #2156d9;
  --accent: #ff8a00;
  --cta: #ff8a00;
  --on-cta: #1a1000;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --ink: #111827;
  --text: #2a3342;
  --muted: #5d6879;
  --line: #e3e7ee;
  --tint: color-mix(in srgb, var(--primary) 7%, var(--bg));
  --hero-bg: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, #fff), #fff 65%);
  --hero-ink: var(--ink);
  --hero-muted: var(--muted);
  --good: #22a55b;
  --bad: #d64545;
  --warn: #c98a06;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 22px rgba(15, 23, 42, .08);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --container: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, #fff); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; font-family: var(--font-display); overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 850; }
h2 { font-size: clamp(1.4rem, 2.7vw, 1.9rem); font-weight: 780; }
h3 { font-size: 1.12rem; font-weight: 720; }
p, ul, ol { margin: 0 0 1em; }
h2[id] { scroll-margin-top: calc(var(--header-h) + 64px); }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 34px 0; }
.intro { color: var(--muted); max-width: 760px; font-size: 1.04rem; }
.note { font-size: .85rem; color: var(--muted); margin: .8em 0 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.updated { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); padding-bottom: 8px; }
.band { padding: 10px 0; }
.band--soft { background: var(--surface-2); }
.band--tint { background: var(--tint); }
.test-banner, .draft-banner { padding: 8px 16px; text-align: center; font-size: .85rem; font-weight: 700; line-height: 1.4; }
.test-banner { background: #fff1b8; color: #4a3800; border-bottom: 1px solid #e6cf6a; }
.draft-banner { background: #ffe1e1; color: #6b1010; border-bottom: 1px solid #f0a9a9; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border-radius: var(--radius-sm);
  border: 2px solid transparent; background: var(--cta); color: var(--on-cta); font-weight: 780; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
  font: inherit; font-weight: 780; box-shadow: 0 2px 0 color-mix(in srgb, var(--cta) 65%, #000); transition: transform .15s, filter .15s, box-shadow .15s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: none; box-shadow: none; }
.btn--lg { min-height: 52px; padding: 13px 28px; font-size: 1.04rem; }
.btn--sm { min-height: 40px; padding: 8px 15px; font-size: .9rem; white-space: nowrap; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 22%, transparent); box-shadow: none; }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); box-shadow: none; }
.block-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 22px 0 0; }
.block-cta .note { margin: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 850; font-size: 1.08rem; letter-spacing: -.01em; min-width: 0; }
.logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 13px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 650; }
.site-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.site-nav a[aria-current="page"], .site-nav a.is-active { color: var(--ink); background: color-mix(in srgb, var(--primary) 16%, transparent); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; border-radius: 8px; }
/* Site-wide Play button in the header (commercial.play): logo | nav | Play | (menu toggle on mobile) */
.logo { margin-right: auto; }
.site-nav { order: 2; }
.header-play { order: 3; flex: none; }
.nav-toggle { order: 4; }
.header-play__btn { min-height: 40px; }
@media (max-width: 860px) { .header__inner { gap: 10px; } }
@media (max-width: 380px) { .header-play__btn { padding: 8px 12px; font-size: .86rem; } }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 12px 14px; }
  .site-nav a { padding: 13px 12px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 12px 20px 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin: 0 8px; }
.page-head { padding-top: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 44px; background: var(--hero-bg); color: var(--hero-ink); overflow: hidden; }
.hero h1 { color: var(--hero-ink); }
.hero__inner { position: relative; z-index: 1; }
.hero__inner--split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; align-items: center; }
.hero__text { max-width: 680px; min-width: 0; }
.hero__lead { font-size: 1.12rem; color: var(--hero-muted); margin-bottom: 1.4em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.hero .btn--ghost { color: var(--hero-ink); border-color: color-mix(in srgb, var(--hero-ink) 30%, transparent); }
.hero__note { font-size: .8rem; color: var(--hero-muted); margin: 0; }
.hero__media .shot { margin: 0 auto; max-height: 440px; width: auto; }
.hero__motif { min-width: 0; }
.motif { display: block; width: 100%; height: auto; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: color-mix(in srgb, var(--hero-ink) 7%, transparent); color: var(--hero-ink); border: 1px solid color-mix(in srgb, var(--hero-ink) 16%, transparent); }
.badge .icon { width: 15px; height: 15px; }
.hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 26px 0 0; max-width: 560px; }
.stat { padding: 12px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--hero-ink) 6%, transparent); border: 1px solid color-mix(in srgb, var(--hero-ink) 12%, transparent); }
.stat dt { font-size: .74rem; font-weight: 700; color: var(--hero-muted); }
.stat dd { margin: 2px 0 0; font-size: 1.12rem; font-weight: 820; color: var(--hero-ink); font-variant-numeric: tabular-nums; }
.stat__icon { float: right; color: var(--accent); }

/* Motif palette (decorative SVG) */
.m-bg { fill: var(--motif-bg, var(--surface-2)); }
.m-line { stroke: var(--motif-line, color-mix(in srgb, var(--ink) 8%, transparent)); stroke-width: 1; }
.m-line-strong { stroke: color-mix(in srgb, var(--accent) 60%, transparent); stroke-width: 2; stroke-dasharray: 6 6; fill: none; }
.m-curve { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.m-area { fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.m-p { fill: var(--primary); } .m-a { fill: var(--accent); } .m-c { fill: var(--cta); }
.m-reel { fill: var(--surface); stroke: var(--line); }
.m-frame { fill: color-mix(in srgb, var(--primary) 14%, var(--surface-2)); stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 2; }
.m-pin { fill: color-mix(in srgb, var(--ink) 35%, transparent); }
.m-ball { fill: var(--cta); }
.m-path { fill: none; stroke: color-mix(in srgb, var(--cta) 55%, transparent); stroke-width: 3; stroke-dasharray: 4 7; stroke-linecap: round; }
.m-tile { fill: color-mix(in srgb, var(--primary) 22%, var(--surface)); }
.m-tile-open { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.m-felt { fill: color-mix(in srgb, var(--primary) 30%, var(--surface-2)); }
.m-card { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.m-chip { fill: var(--cta); } .m-chip-in { fill: none; stroke: var(--surface); stroke-width: 3; stroke-dasharray: 5 4; }

/* ---------- Section switcher (Game / Demo / App / Strategies / Casinos) ---------- */
.switcher { position: sticky; top: var(--header-h); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.switcher ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.switcher ul::-webkit-scrollbar { display: none; }
.switcher a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 42px; padding: 8px 16px; border-radius: 999px; text-decoration: none;
  color: var(--text); font-weight: 700; font-size: .93rem; border: 1px solid var(--line); background: var(--surface); }
.switcher a:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); color: var(--ink); }
.switcher a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.switcher .icon { width: 18px; height: 18px; }

/* ---------- Prose / content ---------- */
.prose > * { max-width: 800px; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--accent); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.2em; font-size: .94rem; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow-sm); }
.callout { background: var(--tint); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin: 0 0 1.2em; }
.callout p:last-child { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.split--left .split__media { order: -1; }
.split__media { margin: 0; }
.shot { border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow); }
figure { margin: 1.4em 0; }
figcaption { font-size: .84rem; color: var(--muted); margin-top: .5em; }

/* ---------- Specs (game characteristics) ---------- */
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec { background: var(--surface); padding: 16px 18px; min-width: 0; box-shadow: 1px 1px 0 var(--line); }
.spec dt { font-size: .78rem; font-weight: 700; color: var(--muted); }
.spec dd { margin: 3px 0 0; font-size: 1.14rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ---------- Mechanic flow (variants by game type) ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: f; }
.flow__item { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.flow__mark { flex: none; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: var(--tint); color: var(--primary); font-weight: 850; }
.flow__body h3 { margin-bottom: .25em; font-size: 1.05rem; }
.flow__body p { margin: 0; color: var(--muted); font-size: .96rem; }
/* crash: rising track — each step sits higher, connected by a line */
.flow--timeline { position: relative; align-items: end; }
.flow--timeline .flow__item { border-top: 4px solid var(--accent); }
@media (min-width: 861px) {
  .flow--timeline .flow__item:nth-child(2) { margin-bottom: 18px; }
  .flow--timeline .flow__item:nth-child(3) { margin-bottom: 36px; }
  .flow--timeline .flow__item:nth-child(4) { margin-bottom: 54px; }
}
/* slot: reel columns */
.flow--reels { gap: 0; border: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.flow--reels .flow__item { flex-direction: column; border: 0; border-radius: 0; border-right: 1px dashed var(--line); text-align: center; align-items: center; padding: 24px 18px; }
.flow--reels .flow__item:last-child { border-right: 0; }
.flow--reels .flow__mark { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-cta); }
/* plinko: zig-zag drop */
.flow--drop { grid-template-columns: 1fr; max-width: 760px; }
.flow--drop .flow__item:nth-child(even) { margin-left: 12%; }
.flow--drop .flow__item:nth-child(3n) { margin-left: 24%; }
.flow--drop .flow__mark { border-radius: 50%; background: var(--cta); color: var(--on-cta); }
/* instant: tiles */
.flow--tiles .flow__item { flex-direction: column; aspect-ratio: auto; border-style: dashed; }
/* table: numbered rows */
.flow--table { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.flow--table .flow__item { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.flow--table .flow__item:last-child { border-bottom: 0; }

/* ---------- Strategy cards ---------- */
.strategies { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.strategy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-width: 0; }
.strategy__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; align-items: baseline; }
.strategy__head h3 { margin: 0; }
.strategy p { margin: .7em 0 0; }
.strategy__limit { font-size: .92rem; color: var(--muted); padding-top: .7em; border-top: 1px dashed var(--line); }
.risk { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 750; color: var(--muted); white-space: nowrap; }
.risk__bar { display: inline-flex; gap: 2px; }
.risk__bar i { width: 6px; height: 12px; border-radius: 2px; background: var(--line); }
.risk--low .risk__bar i:nth-child(1) { background: var(--good); }
.risk--medium .risk__bar i:nth-child(-n+2) { background: var(--warn); }
.risk--high .risk__bar i { background: var(--bad); }

/* ---------- Operators ---------- */
.operators { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.op-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.op-card__head { display: flex; align-items: center; gap: 12px; }
.op-card__head h3 { margin: 0; font-size: 1.08rem; }
.op-card__head h3 a { color: var(--ink); text-decoration: none; }
.op-card__head h3 a:hover { text-decoration: underline; }
.op-card__mono, .op-card__logo { flex: none; width: 44px; height: 44px; border-radius: 12px; }
.op-card__mono { display: inline-flex; align-items: center; justify-content: center; background: var(--tint); color: var(--primary); font-weight: 900; font-size: 1.2rem; }
.op-card__text { margin: 0; color: var(--muted); font-size: .95rem; }
.op-card__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.op-card__facts li { display: flex; align-items: center; gap: 8px; }
.op-card__facts .icon { color: var(--good); width: 18px; height: 18px; }
.op-card__facts span { color: var(--muted); }
.op-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.more-link { margin: 18px 0 0; font-weight: 700; }
.more-link a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

.op-facts { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.op-facts__main { padding: 24px 26px; min-width: 0; }
.op-facts__aside { padding: 24px; background: var(--surface-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.op-facts__title { font-weight: 800; color: var(--ink); margin: 0; }
.kv { width: 100%; border-collapse: collapse; }
.kv th, .kv td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv th { width: 40%; color: var(--muted); font-weight: 600; padding-right: 14px; }
.kv td { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: .5em; line-height: 1.5; }
.ticks .icon { color: var(--good); margin-top: 3px; width: 18px; height: 18px; }

/* ---------- App access matrix ---------- */
.access { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.access__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.access__row:last-child { border-bottom: 0; }
.access__icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.access__label { font-weight: 700; color: var(--ink); }
.access__state { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; font-size: .9rem; white-space: nowrap; }
.access__row--yes .access__state { color: var(--good); }
.access__row--no .access__state { color: var(--bad); }
.access__row--unknown .access__state { color: var(--muted); }
.access__link { grid-column: 2 / -1; font-size: .9rem; }

/* ---------- Next steps ---------- */
.next { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.next__card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.next__card:hover { border-color: var(--primary); transform: translateY(-1px); }
.next__icon { flex: none; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: var(--tint); color: var(--primary); }
.next__body { display: flex; flex-direction: column; min-width: 0; }
.next__body strong { color: var(--ink); }
.next__body span { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.next__arrow { margin-left: auto; color: var(--muted); }

/* ---------- GamePlayer ---------- */
.player { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.player__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; }
.player__facade-motif { position: absolute; inset: 0; opacity: .35; }
.player__facade-motif .motif { width: 100%; height: 100%; }
.player__load { position: relative; }
.player__hint { position: relative; margin: 0; font-size: .82rem; color: var(--muted); }
.player--info { display: flex; gap: 16px; padding: 22px 24px; aspect-ratio: auto; }
.player__icon { flex: none; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--tint); color: var(--primary); }
.player__title { font-weight: 800; color: var(--ink); margin-bottom: .3em; font-size: 1.08rem; }
.player__links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.player__links .note { margin: 0; }

/* ---------- Inherited blocks: facts, features, steps, tables, notice, FAQ, CTA ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; }
.fact { display: flex; gap: 14px; align-items: flex-start; min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fact__icon { display: inline-flex; flex: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: var(--tint); color: var(--primary); }
.fact__body { min-width: 0; }
.facts dt { font-size: .78rem; font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; font-weight: 780; font-size: 1.05rem; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.fact__note { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.feature__icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: 12px; background: var(--tint); color: var(--primary); font-size: 1.3rem; }
.feature__img { width: 48px; height: 48px; margin-bottom: 12px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; }
.step__num { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 850; display: inline-flex; align-items: center; justify-content: center; }
.step__card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.step__card h3 { margin-bottom: .2em; font-size: 1.05rem; }
.step__card p { margin: 0; color: var(--muted); }
.step__icon { display: inline-flex; flex: none; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: var(--tint); color: var(--primary); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--surface-2); color: var(--ink); font-size: .82rem; font-weight: 750; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table strong { color: var(--ink); }
.cell-first { display: inline-flex; align-items: center; gap: 10px; }
.cell-icon { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 8px; background: var(--tint); color: var(--primary); }
.muted { color: var(--muted); }
@media (max-width: 700px) {
  .data-table.compare thead { display: none; }
  .data-table.compare tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .data-table.compare td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 16px; }
  .data-table.compare td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
}
.notice { display: flex; gap: 14px; max-width: 820px; border-radius: var(--radius-sm); padding: 16px 20px; margin: 14px 0; border: 1px solid var(--line); background: var(--surface-2); }
.notice p { margin: 0 0 .4em; }
.notice p:last-child { margin: 0; }
.notice__icon { flex: none; display: inline-flex; margin-top: 2px; }
.notice__title { font-weight: 800; color: var(--ink); }
.notice--warning { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); }
.notice--warning .notice__icon { color: var(--warn); }
.notice--important { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); background: var(--tint); }
.notice--important .notice__icon, .notice--info .notice__icon { color: var(--primary); }
.age { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 6px; border-radius: 50%; border: 2px solid currentColor; font-weight: 900; font-size: .9rem; }
.notice--rg .age { color: var(--bad); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 48px 15px 18px; font-weight: 720; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq__answer { padding: 0 18px 4px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 28px 32px; border-radius: var(--radius); background: color-mix(in srgb, var(--primary) 82%, #000); color: #fff; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta__text { flex: 1 1 380px; min-width: 0; }
.cta__note { font-size: .82rem; margin-top: .5em !important; color: rgba(255, 255, 255, .7) !important; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.toc-wrap { margin-top: 20px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 12px 18px; }
.toc summary { cursor: pointer; font-weight: 750; color: var(--ink); }
.toc ol { margin: 10px 0 4px; padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; padding: 34px 0 30px; background: var(--surface-2); border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer__top { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.footer__brand { font-weight: 850; color: var(--ink); margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--text); text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-nav a:hover { text-decoration: underline; }
.footer__text { max-width: 860px; }
.footer__rg { display: flex; align-items: center; gap: 12px; max-width: 860px; }
.footer__rg .age { color: var(--bad); }
.footer__copy { margin: 14px 0 0; font-size: .82rem; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .12); }
  .sticky-cta__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
  .sticky-cta__text strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sticky-cta__text span { font-size: .78rem; color: var(--muted); }
  body:has(.sticky-cta) .site-footer { padding-bottom: 90px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 30px 0 30px; }
  .hero__inner--split { grid-template-columns: 1fr; gap: 24px; }
  .hero__motif { max-width: 420px; }
  .split { grid-template-columns: 1fr; gap: 22px; }
  .split--left .split__media { order: 0; }
  .op-facts { grid-template-columns: 1fr; }
  .op-facts__aside { border-left: 0; border-top: 1px solid var(--line); }
  .panel { padding: 22px 20px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 26px 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access__row { grid-template-columns: 36px minmax(0, 1fr); }
  .access__state { grid-column: 2; white-space: normal; }
  .access__icon { width: 36px; height: 36px; }
  .cta { padding: 22px 20px; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .flow--drop .flow__item:nth-child(n) { margin-left: 0; }
  .step { grid-template-columns: 34px 1fr; gap: 10px; }
  .step__num { width: 34px; height: 34px; }
}

/* ---------- Game + Casino page (layout "game-casino") ---------- */
.hero__pair { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--hero-ink) 7%, transparent); border: 1px solid color-mix(in srgb, var(--hero-ink) 14%, transparent); font-weight: 750; color: var(--hero-ink); }
.hero__logo { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: #fff; }
.hero__mono { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: var(--cta); color: var(--on-cta); font-weight: 900; }
.hero__pair-x { color: var(--hero-muted); font-weight: 400; }
.pair-grid { display: grid; gap: 22px 36px; align-items: start; }
.pair-grid--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.pair-grid__text > :last-child { margin-bottom: 0; }
.pair-grid__text h3 { margin-top: 1em; }
.kv--card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.kv--card th, .kv--card td { padding: 12px 16px; }
.kv--card th { width: 46%; }
.pair-table { margin-top: 20px; }
.pair-sub { margin-top: 26px; }
.mini-steps { list-style: none; counter-reset: ms; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.mini-steps li { counter-increment: ms; position: relative; padding: 12px 16px 12px 54px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mini-steps li::before { content: counter(ms); position: absolute; left: 14px; top: 11px; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--primary); font-weight: 850; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.mini-steps span { color: var(--muted); }
.pair-section .notice { margin-top: 18px; }
.pair-section .more-link a + a { margin-left: 18px; }
.bonuses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.bonus { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); min-width: 0; }
.bonus__head { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.bonus__head h3 { margin: 0; }
.bonus__offer { margin: 0; font-weight: 750; color: var(--ink); }
.bonus__terms { margin: 0; display: grid; gap: 8px; }
.bonus__terms dt { font-size: .78rem; font-weight: 700; color: var(--muted); }
.bonus__terms dd { margin: 0; }
.bonus__eligibility { display: flex; gap: 8px; align-items: flex-start; margin: auto 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .9rem; }
.bonus__eligibility .icon { margin-top: 3px; }
.bonus__eligibility--yes .icon { color: var(--good); }
.bonus__eligibility--no .icon { color: var(--bad); }
.bonus__eligibility--unknown { color: var(--muted); }
.pl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pl__col { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pl__col--pros { border-top: 4px solid var(--good); }
.pl__col--limits { border-top: 4px solid var(--warn); }
.pl__col--limits .ticks .icon { color: var(--warn); }
.pl-tips { margin-top: 18px; padding: 18px 22px; border-radius: var(--radius); background: var(--tint); }
.pl-tips ul { margin: 0; padding-left: 1.2em; }
.pl-tips li { margin-bottom: .4em; }
@media (max-width: 860px) {
  .pair-grid--split, .pl { grid-template-columns: 1fr; }
}

/* ---------- Main game page (layout "game-home") ---------- */
.player--preview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 0; aspect-ratio: auto; }
.player__preview-media { min-width: 0; }
.player__preview-media .motif, .player__preview-img { display: block; width: 100%; height: auto; }
.player__preview-body { padding: 24px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.player__preview-body .player__title { margin: 0; font-size: 1.2rem; }
.player__notes { margin-top: 14px; }
.ticks .icon { flex: none; }
.player--preview .ticks .icon, .player__notes .icon { color: var(--primary); }
.operators--detailed .op-card { gap: 14px; }
.op-card__bonus { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--tint); }
.op-card__bonus-text { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-weight: 700; color: var(--ink); }
.op-card__bonus-text .icon { color: var(--accent); margin-top: 3px; }
.op-card__bonus-note { margin: 6px 0 0; font-size: .84rem; color: var(--muted); }
.op-card__bonus-note--yes { color: var(--good); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.sources__box { padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--radius); font-size: .94rem; color: var(--muted); }
.sources__box ul { margin: 0; padding-left: 1.2em; }
.sources__box li { margin-bottom: .3em; }
.sources h2 { font-size: 1.25rem; }
@media (max-width: 860px) {
  .player--preview { grid-template-columns: 1fr; }
  .player__preview-body { padding: 20px; }
}

/* ---------- App page (layout "game-app") ---------- */
.pair-steps2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 860px) { .pair-steps2 { grid-template-columns: 1fr; } }

/* ---------- Demo page (layout "game-demo") ---------- */
.player--embed, .player--module, .player--external { aspect-ratio: var(--ratio, 16 / 9); }
.player__cover { position: absolute; inset: 0; opacity: .45; }
.player__cover .motif, .player__cover-img { width: 100%; height: 100%; object-fit: cover; }
.player__cover-img { border-radius: 0; }
.player.is-loaded .player__cover { display: none; }
.player__facade { z-index: 1; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 55%, transparent)); }
.player__meta a { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
@media (max-width: 600px) {
  .player--embed, .player--module, .player--external { aspect-ratio: var(--ratio-m, var(--ratio, 16 / 9)); }
}

/* ---------- Strategies page (layout "game-strategies") ---------- */
.hero__summary { display: flex; gap: 10px; align-items: flex-start; max-width: 640px; margin: -.4em 0 1.4em; padding: 12px 14px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--hero-ink) 6%, transparent); border-left: 3px solid var(--accent); color: var(--hero-ink); font-size: .96rem; }
.hero__summary .icon { color: var(--accent); margin-top: 3px; }
.strats { display: grid; gap: 18px; }
.strat { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.strat--low { border-left: 4px solid var(--good); } .strat--medium { border-left: 4px solid var(--warn); } .strat--high { border-left: 4px solid var(--bad); }
.strat__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.strat__head h3 { margin: 0; font-size: 1.2rem; flex: 1 1 auto; }
.strat__num { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--tint); color: var(--primary); font-weight: 850; }
.strat__idea { font-size: 1.02rem; color: var(--ink); }
.strat h4 { margin: 1.1em 0 .5em; font-size: .95rem; color: var(--ink); }
.strat__uses { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 6px; padding: 0; }
.strat__uses li { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--tint); color: var(--primary); }
.strat__example { margin: 14px 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px dashed var(--line); }
.strat__example-title { font-weight: 800; color: var(--ink); margin-bottom: .4em; }
.strat__example .table-wrap { margin-top: 8px; }
.pl--compact { margin-top: 14px; }
.pl--compact .pl__col { padding: 14px 16px; }
.strat__risks { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--bad) 8%, var(--surface)); }
.strat__risks-title { display: flex; gap: 8px; align-items: center; font-weight: 800; color: var(--ink); margin: 0 0 .4em; }
.strat__risks-title .icon { color: var(--bad); }
.strat__risks ul { margin: 0; padding-left: 1.2em; }
.strat .mini-steps span { color: var(--text); }
/* Anchor targets (#casino-list, #demo-player, …) clear the sticky header + section switcher */
section[id] { scroll-margin-top: calc(var(--header-h) + 64px); }

/* ---------- Casino logos (defaults/logos or project assets/logos) ---------- */
/* Logos keep their own colours, so they sit on a light plate that stays readable in dark presets. */
.logo-plate { display: block; width: auto; max-width: 100%; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px 10px; box-sizing: content-box; }
.op-card__logo.logo-plate { height: 30px; max-width: 110px; flex: none; }
.hero__logo.logo-plate { height: 22px; max-width: 84px; padding: 5px 9px; border-radius: 999px; }
.next__logo { flex: none; display: inline-flex; align-items: center; }
.next__logo .logo-plate { height: 26px; max-width: 90px; }

/* Preset: Plinko / Instant — light and playful, rounded split hero with a tilted board card, floating pill tabs, zig-zag drop flow. */
:root {
  --primary: #0b7f7f; --accent: #ff6b3d; --cta: #ffcf3d; --on-cta: #221a00;
  --bg: #f5f7fb; --surface: #ffffff; --surface-2: #eef1f7; --ink: #14202e; --text: #2f3b4c; --muted: #5a6678; --line: #dfe4ee;
  --motif-bg: #f1f4fa;
  --hero-bg: linear-gradient(160deg, #e3f6f4 0%, #f5f7fb 55%, #fff3ec 100%);
  --radius: 22px; --radius-sm: 14px; --shadow: 0 10px 30px rgba(20, 32, 46, .08);
}
.hero { padding-bottom: 60px; }
.hero__motif { background: var(--surface); border-radius: 28px; padding: 14px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.stat { background: var(--surface); border: 0; box-shadow: var(--shadow-sm); }
.stat dd { color: var(--primary); }
.switcher { background: transparent; border: 0; position: relative; top: auto; margin-top: -30px; z-index: 2; }
.switcher ul { padding: 6px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); width: max-content; max-width: 100%; }
.switcher a { border: 0; background: transparent; }
.switcher a[aria-current="page"] { background: var(--primary); color: #fff; }
.btn { border-radius: 999px; box-shadow: 0 3px 0 #c99a00; }
.btn--ghost { box-shadow: none; }
.specs { gap: 12px; background: none; border: 0; border-radius: 0; overflow: visible; }
.spec { text-align: center; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.flow__mark, .feature__icon, .fact__icon, .next__icon { border-radius: 50%; }
.cta { background: linear-gradient(120deg, var(--primary), #0b6070); }
