/* Wonga Games — main stylesheet (BEM) */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink-950: #0e0a13;
  --ink-900: #16111c;
  --ink-850: #1b1523;
  --ink-800: #211a2b;
  --ink-700: #2c2338;
  --ink-600: #3d3249;
  --ink-500: #5a4d68;
  --text: #f6f1e9;
  --muted: #b9adc6;
  --faint: #8c7f9a;
  --lime: #d4ff3a;
  --lime-deep: #b6e01c;
  --coral: #ff6f59;
  --sky: #86cbff;
  --gold: #ffc65c;
  --ok: #6fe0a0;
  --wait: #ffc65c;
  --stop: #ff8a78;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --font-display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: #e9ff9a; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink-900); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.page__main { display: block; min-height: 60vh; outline: none; }
.is-locked { overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--lime); color: var(--ink-900); }
.btn--primary:hover { background: #e4ff7a; color: var(--ink-900); }
.btn--ghost { border-color: var(--ink-500); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--coral { background: var(--coral); color: var(--ink-950); }
.btn--coral:hover { background: #ff8b79; color: var(--ink-950); }
.btn--link { background: none; color: var(--lime); padding: 0 8px; text-decoration: underline; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- ball motif ---------- */
.ball {
  --ball: var(--lime);
  display: inline-grid; place-items: center; flex: none;
  width: 2.1em; height: 2.1em; margin-right: .45em; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.65) 0 12%, transparent 13%), var(--ball);
  color: var(--ink-950); font: 800 .62em/1 var(--font-display); letter-spacing: 0;
  box-shadow: inset 0 0 0 .22em rgba(255,255,255,.85), inset 0 -.25em .5em rgba(0,0,0,.18);
  vertical-align: .2em;
}
.ball--coral { --ball: var(--coral); }
.ball--sky { --ball: var(--sky); }
.ball--gold { --ball: var(--gold); }

/* ---------- top line + header ---------- */
.topline { background: var(--ink-950); border-bottom: 1px solid var(--ink-700); font-size: 13px; color: var(--muted); }
.topline__inner { display: flex; justify-content: space-between; gap: 16px; min-height: 34px; align-items: center; }
.topline__text { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topline__text--wide { display: none; }
.topline__age { display: inline-grid; place-items: center; width: 26px; height: 20px; margin-right: 6px; border-radius: 6px; background: var(--coral); color: var(--ink-950); font-weight: 800; font-size: 11px; }
@media (min-width: 760px) { .topline__text--wide { display: block; } }

.header { position: sticky; top: 0; z-index: 40; background: rgba(22, 17, 28, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ink-700); }
.header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text); }
.header__icon:hover { background: var(--ink-700); color: var(--text); }
.header__balance { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 8px; background: var(--ink-800); font-size: 14px; }
.header__account span { display: none; }
.header__burger { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink-800); cursor: pointer; }
.header__burger-close { display: none; }
.header__burger[aria-expanded="true"] .header__burger-open { display: none; }
.header__burger[aria-expanded="true"] .header__burger-close { display: block; }
@media (max-width: 519px) {
  .header__icon, .header__balance { display: none; }
  .header__actions .btn--sm { padding: 0 12px; }
}
@media (min-width: 640px) { .header__account span { display: inline; } }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.logo:hover { color: var(--text); }
.logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--ink-900); font: 800 20px/1 var(--font-display); box-shadow: inset 0 0 0 3px rgba(255,255,255,.7); }
.logo__word { font: 800 22px/1 var(--font-display); letter-spacing: -.03em; }
.logo__games { color: var(--lime); }
.logo__tld { color: var(--muted); font-weight: 600; }
@media (max-width: 419px) { .logo__word { display: none; } }

.nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); z-index: 39; background: var(--ink-900); padding: 20px var(--gutter) 40px; overflow-y: auto; display: none; }
.nav.is-open { display: block; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__link { display: block; padding: 14px 0; font: 700 22px/1.2 var(--font-display); color: var(--text); text-decoration: none; border-bottom: 1px solid var(--ink-700); }
.nav__link.is-active { color: var(--lime); }
.nav__extra { display: grid; gap: 10px; margin-top: 24px; }
.nav__small { color: var(--muted); }
@media (min-width: 1100px) {
  .nav { position: static; display: block; padding: 0; background: none; overflow: visible; }
  .nav__list { display: flex; gap: 2px; }
  .nav__link { font: 600 15px/1 var(--font-body); padding: 10px 12px; border: 0; border-radius: 999px; color: var(--muted); }
  .nav__link:hover { color: var(--text); background: var(--ink-800); }
  .nav__link.is-active { color: var(--ink-900); background: var(--lime); }
  .nav__extra, .header__burger { display: none; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { padding: 18px 0 0; font-size: 14px; }
.crumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; color: var(--faint); }
.crumbs__item:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--ink-500); }
.crumbs__link { color: var(--muted); text-decoration: none; }
.crumbs__link:hover { color: var(--text); text-decoration: underline; }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--tight { padding: clamp(28px, 4vw, 44px) 0; }
.section--band { background: var(--ink-850); border-block: 1px solid var(--ink-700); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 24px; margin-bottom: 22px; }
.section-head__title { font-size: clamp(24px, 3.2vw, 34px); margin: 0; display: flex; align-items: center; }
.section-head__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; font-size: 15px; }
.section-head__link:hover .icon { transform: translateX(3px); }
.section-head__link .icon { transition: transform .15s; }
.section-head__lede { grid-column: 1 / -1; margin: 0; color: var(--muted); max-width: 70ch; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); }
.page-hero__inner { max-width: 820px; }
.page-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--lime); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.page-hero__eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.page-hero__title { font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: -.025em; }
.page-hero__lede { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 64ch; margin: 0; }

/* ---------- home hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 5vw, 64px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 120%; background: radial-gradient(closest-side, rgba(212,255,58,.14), transparent 70%); pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 36px; align-items: center; }
.hero__eyebrow { margin: 0 0 14px; font-weight: 700; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.hero__pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--ink-600); border-radius: 999px; font-size: 13px; }
.hero__pill .icon { color: var(--lime); width: 16px; height: 16px; }
.hero__title { font-size: clamp(40px, 7.4vw, 84px); font-weight: 800; letter-spacing: -.035em; line-height: .98; margin-bottom: 18px; }
.hero__title em { font-style: normal; color: var(--lime); }
.hero__lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 52ch; }
.hero__search { display: flex; gap: 8px; margin: 26px 0 16px; max-width: 520px; padding: 6px; border-radius: 999px; background: var(--ink-800); border: 1px solid var(--ink-600); }
.hero__search:focus-within { border-color: var(--lime); }
.hero__search .icon { margin-left: 12px; color: var(--muted); align-self: center; }
.hero__input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 0 6px; font-size: 16px; }
.hero__input::placeholder { color: var(--faint); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero__note { margin: 16px 0 0; font-size: 13px; color: var(--faint); }
.hero__stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-4deg); }
.hero__tile { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--ink-600); background: var(--ink-800); }
.hero__tile:nth-child(3n+2) { transform: translateY(26px); }
.hero__tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 899px) { .hero__stack { grid-template-columns: repeat(4, 1fr); transform: none; } .hero__tile:nth-child(n+5) { display: none; } .hero__tile:nth-child(3n+2) { transform: none; } }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr .9fr; } }

/* ---------- category tiles ---------- */
.cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.cats__link { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding: 18px; border-radius: var(--radius); background: var(--ink-800); border: 1px solid var(--ink-700); color: var(--text); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s; }
.cats__link:hover { border-color: var(--lime); color: var(--text); transform: translateY(-2px); }
.cats__name { font: 800 clamp(20px, 2.4vw, 26px)/1.05 var(--font-display); margin: 0; }
.cats__count { color: var(--muted); font-size: 14px; }
.cats__img { position: absolute; right: -18px; bottom: -18px; width: 96px; border-radius: 14px; transform: rotate(10deg); opacity: .9; box-shadow: var(--shadow); }
.cats .ball { font-size: 22px; margin: 0 0 12px; display: grid; }
.cats__head { display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 1; }
@media (min-width: 760px) { .cats { grid-template-columns: repeat(5, 1fr); } .cats__link { min-height: 190px; } .cats__img { width: 110px; } }

/* ---------- game cards ---------- */
.game-card { list-style: none; min-width: 0; }
.game-card[hidden] { display: none; }
.game-card__link { display: block; color: var(--text); text-decoration: none; }
.game-card__link:hover { color: var(--text); }
.game-card__frame { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--ink-800); aspect-ratio: 1; border: 1px solid var(--ink-700); }
.game-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, filter .3s; }
.game-card__flag { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 6px; background: var(--ink-950); color: var(--text); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.game-card__flag--new { background: var(--lime); color: var(--ink-950); }
.game-card__flag--jackpot { background: var(--gold); color: var(--ink-950); }
.game-card__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 10, 19, .5); opacity: 0; transition: opacity .2s; }
.game-card__play .icon { width: 56px; height: 56px; padding: 16px 14px 16px 18px; border-radius: 50%; background: var(--lime); color: var(--ink-900); }
.game-card__link:hover .game-card__play, .game-card__link:focus-visible .game-card__play { opacity: 1; }
.game-card__link:hover .game-card__img { transform: scale(1.05); }
.game-card__name { display: block; margin-top: 8px; font-weight: 700; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-card__meta { display: block; color: var(--faint); font-size: 13px; }

.game-row { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ink-600) transparent; }
.game-row > * { scroll-snap-align: start; }
@media (min-width: 640px) { .game-row { grid-auto-columns: 27%; } }
@media (min-width: 1000px) { .game-row { grid-auto-columns: calc((100% - 70px) / 6); } }

.game-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
@media (min-width: 560px) { .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; } }

/* ---------- lobby ---------- */
.lobby__tools { display: grid; gap: 10px; margin-bottom: 14px; }
.lobby__search { position: relative; }
.lobby__search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.lobby__input { width: 100%; height: 52px; padding: 0 16px 0 48px; border-radius: 999px; border: 1px solid var(--ink-600); background: var(--ink-800); outline: none; font-size: 16px; }
.lobby__input:focus { border-color: var(--lime); }
.lobby__input::placeholder { color: var(--faint); }
.lobby__selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lobby__count { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.lobby__empty { padding: 40px 0; text-align: center; color: var(--muted); }
.lobby__more { display: flex; justify-content: center; margin-top: 32px; }
@media (min-width: 860px) { .lobby__tools { grid-template-columns: 1fr auto; } .lobby__selects { grid-template-columns: 200px 180px; } }

.select { position: relative; display: block; }
.select__label { position: absolute; left: 16px; top: 7px; font-size: 11px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; pointer-events: none; }
.select__control { width: 100%; height: 52px; padding: 16px 36px 0 16px; border-radius: 14px; border: 1px solid var(--ink-600); background: var(--ink-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5' fill='none' stroke='%23b9adc6' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; appearance: none; font-size: 15px; cursor: pointer; }
.select__control:focus { border-color: var(--lime); outline: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips__chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ink-600); background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.chips__chip:hover { color: var(--text); border-color: var(--text); }
.chips__chip.is-active { background: var(--lime); border-color: var(--lime); color: var(--ink-900); }
.chips--links a { text-decoration: none; display: inline-flex; align-items: center; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps__item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--ink-800); border: 1px solid var(--ink-700); }
.steps__item .ball { font-size: 22px; margin: 0; }
.steps__title { display: block; font: 700 18px/1.25 var(--font-display); margin-bottom: 4px; }
.steps__text { display: block; color: var(--muted); font-size: 15px; }
.steps--row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.steps--row .steps__item { flex-direction: column; }
.steps--flow { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.steps--flow .steps__item { flex-direction: column; gap: 10px; position: relative; }

/* ---------- info cards / layout helpers ---------- */
.grid-2 { display: grid; gap: 20px; }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 28px; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.panel { padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); background: var(--ink-800); border: 1px solid var(--ink-700); }
.panel--lime { background: var(--lime); color: var(--ink-900); border-color: var(--lime); }
.panel--lime a { color: var(--ink-900); }
.panel--lime .btn--primary { background: var(--ink-900); color: var(--lime); }
.panel__title { font-size: 22px; margin-bottom: 8px; display: flex; align-items: center; }
.panel__text { color: var(--muted); margin: 0; }
.panel--lime .panel__text { color: #2c3a00; }
.panel > :last-child { margin-bottom: 0; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.tick-list li { position: relative; padding-left: 28px; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 4px var(--ink-800); }

.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; } .split--right { grid-template-columns: minmax(0, 1fr) 340px; } }

.toc { position: sticky; top: calc(var(--header-h) + 20px); padding: 18px; border-radius: var(--radius); background: var(--ink-850); border: 1px solid var(--ink-700); }
.toc__title { margin: 0 0 8px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.toc__list { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--faint); font-size: 14px; }
.toc__link { color: var(--muted); text-decoration: none; }
.toc__link:hover { color: var(--lime); }
@media (max-width: 959px) { .toc { position: static; } }

/* ---------- prose (legal and help text) ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 1.8em; padding-top: .2em; display: flex; align-items: center; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose p, .prose li { color: #ddd3e6; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--text); }
.prose .updated { color: var(--faint); font-size: 14px; }

.facts { margin: 0; display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ink-700); }
.facts__row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 12px 16px; background: var(--ink-800); }
.facts__row:nth-child(even) { background: var(--ink-850); }
.facts dt { color: var(--faint); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; }

.callout { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: rgba(134, 203, 255, .08); border: 1px solid rgba(134, 203, 255, .35); margin: 0 0 1.2em; }
.callout .icon { color: var(--sky); margin-top: 2px; }
.callout p { margin: 0; }
.callout--warn { background: rgba(255, 111, 89, .08); border-color: rgba(255, 111, 89, .4); }
.callout--warn .icon { color: var(--coral); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: var(--radius-sm); background: var(--ink-800); border: 1px solid var(--ink-700); }
.faq__item[open] { border-color: var(--ink-500); }
.faq__q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; font-weight: 700; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .icon { transition: transform .2s; color: var(--lime); }
.faq__item[open] .faq__q .icon { transform: rotate(180deg); }
.faq__a { padding: 0 18px 16px; color: var(--muted); }
.faq__a p:last-child { margin: 0; }

.helplines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.helplines__item { display: grid; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ink-800); border: 1px solid var(--ink-700); }
.helplines__where { font-size: 13px; color: var(--faint); }
.helplines__tel { font: 800 22px/1.2 var(--font-display); color: var(--text); text-decoration: none; }
.helplines__tel:hover { color: var(--lime); }
.helplines__when { font-size: 13px; color: var(--muted); }

/* data table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--ink-700); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ink-700); vertical-align: top; }
.table th { background: var(--ink-850); color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.table tr:last-child td { border-bottom: 0; }
.table td { background: var(--ink-800); }
.table__num { font-variant-numeric: tabular-nums; text-align: right !important; white-space: nowrap; }
.table tr.is-new td { background: rgba(212, 255, 58, .08); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid currentColor; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--ok { color: var(--ok); }
.badge--wait { color: var(--wait); }
.badge--stop { color: var(--stop); }
.badge--plain { color: var(--muted); }

/* ---------- game detail ---------- */
.game { display: grid; gap: 28px; padding: 24px 0 8px; }
.game__cover { position: relative; max-width: 440px; }
.game__cover img { border-radius: 22px; border: 1px solid var(--ink-600); box-shadow: var(--shadow); width: 100%; }
.game__cover .ball { position: absolute; right: -10px; top: -10px; font-size: 26px; margin: 0; }
.game__title { font-size: clamp(34px, 5.5vw, 56px); font-weight: 800; letter-spacing: -.025em; }
.game__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.game__tag { padding: 4px 12px; border-radius: 999px; background: var(--ink-800); border: 1px solid var(--ink-600); font-size: 13px; font-weight: 600; color: var(--muted); }
.game__tag--lime { background: var(--lime); border-color: var(--lime); color: var(--ink-900); }
.game__blurb { font-size: 18px; color: #e7deef; max-width: 60ch; }
.game__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 12px; }
.game__small { color: var(--faint); font-size: 14px; margin: 0; }
.game__facts { margin-top: 22px; }
@media (min-width: 860px) { .game { grid-template-columns: minmax(280px, 400px) 1fr; gap: 48px; align-items: center; padding-top: 36px; } }
.rules { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rules li { position: relative; padding: 14px 16px 14px 56px; border-radius: var(--radius-sm); background: var(--ink-800); border: 1px solid var(--ink-700); color: #ddd3e6; }
.rules li::before { counter-increment: r; content: counter(r); position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sky); color: var(--ink-950); font: 800 13px/1 var(--font-display); }

/* ---------- play gate ---------- */
.gatecard { display: grid; gap: 28px; margin: 28px 0 12px; padding: clamp(20px, 4vw, 44px); border-radius: 24px; background: linear-gradient(135deg, var(--ink-800), var(--ink-850)); border: 1px solid var(--ink-600); }
.gatecard__cover { position: relative; max-width: 260px; }
.gatecard__cover img { border-radius: 18px; filter: saturate(.85); }
.gatecard__lock { position: absolute; inset: auto -12px -12px auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--coral); color: var(--ink-950); box-shadow: 0 0 0 6px var(--ink-800); }
.gatecard__lock .icon { width: 28px; height: 28px; }
.gatecard__title { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; }
.gatecard__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
@media (min-width: 760px) { .gatecard { grid-template-columns: 260px 1fr; align-items: center; gap: 44px; } }
.launch-status { display: flex; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--ink-700); }
.launch-status[hidden] { display: none; }
.launch-status .icon { color: var(--gold); margin-top: 2px; }
.launch-status p { margin: 0 0 8px; }

/* ---------- forms ---------- */
.auth { display: grid; gap: 28px; padding: 28px 0 56px; align-items: start; }
@media (min-width: 960px) { .auth { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; } }
.auth--narrow { max-width: 560px; margin: 0 auto; grid-template-columns: 1fr !important; }
.auth__card { padding: clamp(20px, 4vw, 36px); border-radius: 24px; background: var(--ink-800); border: 1px solid var(--ink-600); }
.auth__title { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; }
.auth__intro { color: var(--muted); }
.auth__alt { margin: 20px 0 0; color: var(--muted); text-align: center; }
.auth__aside { display: grid; gap: 16px; }

.form { display: grid; gap: 16px; }
.form__grid { display: grid; gap: 16px; }
@media (min-width: 620px) { .form__grid--2 { grid-template-columns: 1fr 1fr; } .form__grid--3 { grid-template-columns: 2fr 1fr 1fr; } }
.form__fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.form__legend { font: 700 18px/1.2 var(--font-display); margin-bottom: 4px; padding: 0; display: flex; align-items: center; }
.form__legend .ball { font-size: 16px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form__message { padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; background: rgba(255, 111, 89, .12); border: 1px solid rgba(255, 111, 89, .5); color: #ffd2ca; }
.form__message.is-ok { background: rgba(111, 224, 160, .1); border-color: rgba(111, 224, 160, .5); color: #c9f5da; }
.form__message[hidden] { display: none; }
.form__small { font-size: 14px; color: var(--faint); margin: 0; }
.form__link-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }

.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-weight: 700; font-size: 14px; }
.field__hint { margin: 0; font-size: 13px; color: var(--faint); }
.field__wrap { position: relative; }
.field__input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ink-500); background: var(--ink-900); font-size: 16px; outline: none; }
.field__input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(212, 255, 58, .18); }
.field__input--select { appearance: none; padding-right: 40px; background: var(--ink-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5' fill='none' stroke='%23b9adc6' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
textarea.field__input { min-height: 140px; resize: vertical; }
input[type="file"].field__input { padding: 12px; }
input[type="date"].field__input { color-scheme: dark; }
.field__reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.field__reveal[aria-pressed="true"] { color: var(--lime); }
.field__wrap:has(.field__reveal) .field__input { padding-right: 52px; }
.field__error { margin: 0; color: var(--stop); font-size: 14px; font-weight: 600; }
.field__error[hidden] { display: none; }
.field.has-error .field__input { border-color: var(--stop); }
.meter { height: 6px; border-radius: 6px; background: var(--ink-700); overflow: hidden; }
.meter__bar { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--coral); transition: transform .2s, background-color .2s; }
.meter__bar.is-mid { background: var(--gold); }
.meter__bar.is-good { background: var(--ok); }

.check { display: grid; gap: 4px; }
.check__label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; color: #ddd3e6; }
.check__box { flex: none; appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px; border: 2px solid var(--ink-500); background: var(--ink-900); cursor: pointer; display: grid; place-items: center; }
.check__box:checked { background: var(--lime); border-color: var(--lime); }
.check__box:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--ink-900); border-width: 0 3px 3px 0; transform: translate(0, -1px) rotate(45deg); }
.check.has-error .check__box { border-color: var(--stop); }

.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.radio-cards__item { position: relative; }
.radio-cards__input { position: absolute; opacity: 0; }
.radio-cards__label { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ink-500); background: var(--ink-900); cursor: pointer; font-weight: 700; }
.radio-cards__label small { font-weight: 400; color: var(--faint); }
.radio-cards__input:checked + .radio-cards__label { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.radio-cards__input:focus-visible + .radio-cards__label { outline: 3px solid var(--sky); outline-offset: 2px; }

.switch { appearance: none; flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--ink-600); position: relative; cursor: pointer; transition: background-color .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.switch:checked { background: var(--lime); }
.switch:checked::after { transform: translateX(20px); background: var(--ink-900); }

.progress { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.progress__item { display: flex; align-items: center; gap: 6px; color: var(--faint); }
.progress__item:not(:last-child)::after { content: ""; width: 18px; height: 2px; background: var(--ink-600); }
.progress__item.is-current { color: var(--lime); font-weight: 700; }
.progress__item.is-done { color: var(--muted); }

/* ---------- account ---------- */
.account { display: grid; gap: 24px; padding: 28px 0 60px; align-items: start; }
@media (min-width: 960px) { .account { grid-template-columns: 270px minmax(0, 1fr); gap: 40px; } .account__side { position: sticky; top: calc(var(--header-h) + 16px); } }
.account__title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.account__lede { color: var(--muted); max-width: 70ch; }
.account__main > * + * { margin-top: 20px; }
.account-card { padding: 18px; border-radius: var(--radius); background: var(--lime); color: var(--ink-900); margin-bottom: 12px; }
.account-card__name { margin: 0; font: 800 20px/1.2 var(--font-display); }
.account-card__user { margin: 0 0 12px; font-size: 14px; opacity: .75; }
.account-card__balance { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; }
.account-card__balance span { font-size: 13px; font-weight: 700; }
.account-card__balance strong { font: 800 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.account-card__status { margin: 0; }
.account-card .badge { background: var(--ink-900); border-color: var(--ink-900); }
.account-nav { border-radius: var(--radius); background: var(--ink-800); border: 1px solid var(--ink-700); padding: 8px; }
.account-nav__list { list-style: none; margin: 0; padding: 0; display: grid; }
.account-nav__link, .account-nav__logout { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; border: 0; background: none; cursor: pointer; text-align: left; }
.account-nav__link:hover, .account-nav__logout:hover { background: var(--ink-700); color: var(--text); }
.account-nav__link.is-active { background: var(--ink-700); color: var(--lime); }
.account-nav__logout { margin-top: 4px; border-top: 1px solid var(--ink-700); border-radius: 0 0 10px 10px; }
@media (max-width: 959px) {
  .account-nav__list { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .account-nav__link { white-space: nowrap; }
}
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { padding: 16px; border-radius: var(--radius); background: var(--ink-800); border: 1px solid var(--ink-700); }
.stat__label { margin: 0 0 6px; font-size: 13px; color: var(--faint); font-weight: 700; }
.stat__value { margin: 0; font: 800 26px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat__link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; }

.empty { display: grid; justify-items: start; gap: 6px; padding: 24px; border-radius: var(--radius); border: 1px dashed var(--ink-500); }
.empty__icon { color: var(--faint); width: 28px; height: 28px; }
.empty__title { margin: 0; font-weight: 800; font-size: 17px; }
.empty__text { margin: 0 0 8px; color: var(--muted); }

/* ---------- trust bar + footer ---------- */
.trustbar { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trustbar__item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--ink-800); border: 1px solid var(--ink-700); }
.trustbar__item .icon { color: var(--lime); width: 26px; height: 26px; }
.trustbar__title { margin: 0; font-weight: 800; }
.trustbar__text { margin: 0; color: var(--muted); font-size: 14px; }

.footer { margin-top: 40px; padding: 48px 0 110px; background: var(--ink-950); border-top: 1px solid var(--ink-700); font-size: 15px; }
.footer__top { display: grid; gap: 32px; }
.footer__note { color: var(--muted); max-width: 42ch; margin: 16px 0; }
.footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer__heading { font: 800 13px/1 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 12px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__list a, .footer__link-btn { color: var(--text); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-size: 15px; }
.footer__list a:hover, .footer__link-btn:hover { color: var(--lime); text-decoration: underline; }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1fr 1.4fr; } .footer__nav { grid-template-columns: repeat(3, 1fr); } }
.trust { list-style: none; margin: 40px 0 28px; padding: 24px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; border-block: 1px solid var(--ink-700); }
.trust__item a { display: block; }
.trust__logo { height: 30px; width: auto; opacity: .85; transition: opacity .15s; }
.trust__item a:hover .trust__logo { opacity: 1; }
.trust__logo--ukgc { height: 36px; }
.trust__logo--invert { filter: invert(1) brightness(1.1); height: 24px; }
.trust__logo--gamcare, .trust__logo--mono { filter: brightness(2.6); height: 30px; }
.trust__logo--visa { height: 22px; padding: 4px 8px; box-sizing: content-box; background: #fff; border-radius: 6px; }
.footer__legal { color: var(--faint); font-size: 14px; display: grid; gap: 4px; }
.footer__legal p { margin: 0 0 6px; }
.footer__legal a { color: var(--muted); }
.footer__copy { margin-top: 8px !important; }

/* ---------- age gate, cookies, modals ---------- */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(14, 10, 19, .94); backdrop-filter: blur(6px); }
.gate[hidden] { display: none; }
.gate__panel { max-width: 460px; width: 100%; text-align: center; padding: 36px 24px; border-radius: 26px; background: var(--ink-800); border: 1px solid var(--ink-600); }
.gate__ball { display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 18px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.65) 0 12%, transparent 13%), var(--coral); color: var(--ink-950); font: 800 34px/1 var(--font-display); box-shadow: inset 0 0 0 6px rgba(255,255,255,.85); }
.gate__title { font-size: 30px; }
.gate__text { color: var(--muted); }
.gate__actions { display: grid; gap: 10px; margin-top: 22px; }
.gate__refused { margin: 18px 0 0; color: var(--stop); }

.cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; }
.cookies[hidden] { display: none; }
.cookies__inner { max-width: 980px; margin: 0 auto; display: grid; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--ink-700); border: 1px solid var(--ink-500); box-shadow: var(--shadow); }
.cookies__title { font-size: 18px; margin-bottom: 4px; }
.cookies__text { margin: 0; color: var(--muted); font-size: 14px; }
.cookies__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (min-width: 860px) { .cookies__inner { grid-template-columns: 1fr auto; align-items: center; } }

.modal { width: min(560px, calc(100% - 24px)); padding: 0; border: 1px solid var(--ink-500); border-radius: 22px; background: var(--ink-800); color: var(--text); }
.modal::backdrop { background: rgba(14, 10, 19, .8); }
.modal--small { width: min(440px, calc(100% - 24px)); }
.modal__body { padding: 22px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.modal__title { font-size: 22px; margin: 0; }
.modal__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink-700); cursor: pointer; display: grid; place-items: center; }
.modal__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.prefs { list-style: none; margin: 0; padding: 0; }
.prefs__item { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ink-600); }
.prefs__name { margin: 0; font-weight: 800; }
.prefs__text { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.prefs__always { font-size: 13px; color: var(--ok); font-weight: 700; white-space: nowrap; }

/* ---------- misc ---------- */
.stack-top { margin-top: 20px; }
.notice-404 { text-align: center; padding: 80px 0; }
.notice-404 .ball { font-size: 48px; margin: 0 4px 20px; }
.kv-inline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; color: var(--muted); font-size: 14px; }
.kv-inline strong { color: var(--text); }
.pay-card { display: grid; gap: 16px; align-items: center; }
.pay-card__logo { width: 96px; padding: 10px; border-radius: 10px; background: #fff; }
@media (min-width: 640px) { .pay-card { grid-template-columns: 120px 1fr; } }
.help-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.help-cats a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--ink-800); border: 1px solid var(--ink-700); color: var(--text); font-weight: 700; text-decoration: none; }
.help-cats a:hover { border-color: var(--lime); color: var(--text); }
.help-cats .ball { font-size: 14px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* grid children may shrink below their content (tables scroll inside .table-wrap) */
.split > *, .grid-2 > *, .grid-3 > *, .auth > *, .account > *, .hero__grid > *, .game > * { min-width: 0; }

/* ---------- payment logos (footer) ---------- */
.paylogos { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.paylogos__item { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 14px; border-radius: 8px; background: #fff; }
.paylogos__item--visa { background: #1a1f71; }
.paylogos__item--skrill { background: #862165; }
.paylogos__item--neteller { background: #83ba3b; }
.paylogos__item--paysafe { background: #4b28f7; }
.paylogos__img { display: block; width: auto; height: 16px; }
.paylogos__item--light .paylogos__img { height: 22px; }
.paylogos__item--mc { background: #fff; }
.paylogos__item--mc .paylogos__img { height: 26px; }
.paylogos__item--text { gap: 6px; color: #111; font: 700 13px/1 var(--font-body); letter-spacing: -.01em; }
.paylogos__item--text .icon { width: 18px; height: 18px; }
.split--after { margin-top: 28px; }
.table code { font: inherit; font-weight: 700; color: var(--text); }
