/* ==========================================================================
   Bingo Crazy — bingocrazy.co
   BEM blocks, mobile first.
   ========================================================================== */

:root {
  --c-bg: #1a1233;
  --c-bg-2: #221844;
  --c-bg-3: #2d2158;
  --c-bg-4: #3a2c6e;
  --c-line: rgba(255, 255, 255, .09);
  --c-line-2: rgba(255, 255, 255, .16);
  --c-text: #f7f2ff;
  --c-muted: #b9afd8;
  --c-dim: #8d82b3;
  --c-paper: #fff8ec;
  --c-paper-line: #eadfca;
  --c-ink: #1a1233;
  --c-red: #ff5a5f;
  --c-yellow: #ffc933;
  --c-green: #2fd48f;
  --c-blue: #4aa8ff;
  --c-pink: #ff74c8;
  --c-danger: #ff6b6b;

  --f-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 10px 30px rgba(8, 4, 24, .35);
  --gutter: 16px;
  --header-h: 64px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 72px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font: 400 16px/1.6 var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 90, 95, .14), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(74, 168, 255, .10), transparent 60%);
  background-repeat: no-repeat;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-yellow); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffe08a; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 800; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.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: 12px; top: -60px; z-index: 200; background: var(--c-yellow); color: var(--c-ink); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.main { min-height: 60vh; }
.page--locked { overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--c-bg-3);
  --btn-fg: var(--c-text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .15s var(--ease), background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { --btn-bg: var(--c-yellow); --btn-fg: var(--c-ink); box-shadow: 0 4px 0 #c99a12; }
.btn--primary:hover { --btn-bg: #ffd65c; }
.btn--primary:active { box-shadow: 0 2px 0 #c99a12; transform: translateY(2px); }
.btn--secondary { --btn-bg: var(--c-red); --btn-fg: #fff; box-shadow: 0 4px 0 #c43c41; }
.btn--secondary:hover { --btn-bg: #ff7075; }
.btn--ghost { --btn-bg: transparent; border-color: var(--c-line-2); }
.btn--ghost:hover { border-color: var(--c-text); }
.btn--danger { --btn-bg: transparent; --btn-fg: var(--c-danger); border-color: rgba(255, 107, 107, .5); }
.btn--danger:hover { --btn-bg: rgba(255, 107, 107, .12); }
.btn--link { --btn-bg: transparent; --btn-fg: var(--c-yellow); padding-left: 8px; padding-right: 8px; text-decoration: underline; text-underline-offset: 3px; }
.btn--sm { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 13px 26px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--play svg { width: 18px; height: 18px; fill: currentColor; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::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); } }

.text-link { font-weight: 600; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-text); }
.logo:hover { color: var(--c-text); }
.logo__mark { width: 36px; height: 36px; flex: none; transition: transform .4s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-20deg); }
.logo__text { font: 800 21px/1 var(--f-display); letter-spacing: -.02em; }
.logo__accent { color: var(--c-yellow); margin-left: 2px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 18, 51, .86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__actions .btn--ghost { display: none; }
.header__balance { display: none; font-weight: 700; color: var(--c-green); text-decoration: none; padding: 6px 12px; border-radius: 999px; background: rgba(47, 212, 143, .1); }
@media (min-width: 560px) {
  .header__actions .btn--ghost { display: inline-flex; }
  .header__balance { display: inline-block; }
}

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: block; margin-left: 12px; }
  .nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
  .nav__link { display: block; padding: 8px 12px; border-radius: 999px; color: var(--c-muted); font-weight: 600; font-size: 15px; text-decoration: none; transition: color .15s, background-color .15s; }
  .nav__link:hover { color: var(--c-text); background: var(--c-bg-3); }
  .nav__link--active { color: var(--c-ink); background: var(--c-paper); }
  .nav__link--active:hover { color: var(--c-ink); background: var(--c-paper); }
}

.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border: 0; border-radius: 12px; background: var(--c-bg-3); cursor: pointer; }
.burger__line { display: block; height: 2px; background: var(--c-text); border-radius: 2px; }
@media (min-width: 1024px) { .burger { display: none; } }

.drawer { position: fixed; inset: 0; z-index: 120; background: rgba(8, 4, 24, .6); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); padding: 20px; background: var(--c-bg-2); overflow-y: auto; display: flex; flex-direction: column; animation: slide-in .25s var(--ease); }
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer__close { align-self: flex-end; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--c-bg-3); font-size: 26px; line-height: 1; cursor: pointer; }
.drawer__list { list-style: none; margin: 8px 0 20px; padding: 0; }
.drawer__link { display: block; padding: 13px 4px; border-bottom: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font: 700 18px/1.3 var(--f-display); }
.drawer__actions { display: grid; gap: 10px; margin-top: auto; }

/* ---------- tab bar (mobile) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(34, 24, 68, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-line);
}
.tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--c-dim); text-decoration: none; }
.tabbar__item svg { width: 22px; height: 22px; fill: currentColor; }
.tabbar__item--active, .tabbar__item:hover { color: var(--c-yellow); }
@media (min-width: 1024px) { .tabbar { display: none; } }

/* ---------- balls ---------- */
.ball {
  --ball: var(--c-red);
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font: 800 20px/1 var(--f-display); color: var(--c-ink);
  background: radial-gradient(circle at 50% 50%, var(--c-paper) 0 43%, var(--ball) 44% 100%);
  box-shadow: inset -5px -7px 0 rgba(0, 0, 0, .14), inset 4px 5px 0 rgba(255, 255, 255, .28);
}
.ball--red { --ball: var(--c-red); }
.ball--yellow { --ball: var(--c-yellow); }
.ball--green { --ball: var(--c-green); }
.ball--blue { --ball: var(--c-blue); }
.ball--pink { --ball: var(--c-pink); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-dim); }
.dot--live { background: var(--c-green); box-shadow: 0 0 0 0 rgba(47, 212, 143, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47, 212, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 212, 143, 0); } }

/* ---------- hero (home) ---------- */
.hero { position: relative; padding: 32px 0 48px; overflow: hidden; }
.hero__inner { display: grid; gap: 32px; align-items: center; position: relative; z-index: 1; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: var(--c-bg-3); font-size: 14px; font-weight: 600; color: var(--c-muted); }
.hero__title { font-size: clamp(38px, 9vw, 72px); line-height: 1; letter-spacing: -.03em; margin-bottom: 20px; }
.hero__title-accent { color: var(--c-yellow); }
.hero__lead { font-size: 18px; color: var(--c-muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--c-dim); }
.hero__facts li::before { content: "●"; color: var(--c-red); margin-right: 8px; font-size: 10px; vertical-align: 2px; }
.hero__balls { position: absolute; inset: 0; pointer-events: none; }
.hero__balls .ball { position: absolute; opacity: .9; animation: float 7s ease-in-out infinite; }
.hero__balls .ball:nth-child(1) { top: 6%; right: 4%; width: 44px; height: 44px; font-size: 16px; }
.hero__balls .ball:nth-child(2) { bottom: 8%; left: 46%; animation-delay: -2s; }
.hero__balls .ball:nth-child(3) { display: none; }
.hero__balls .ball:nth-child(4) { display: none; }
.hero__balls .ball:nth-child(5) { top: 44%; right: -12px; width: 40px; height: 40px; font-size: 14px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-12px) rotate(8deg); } }
@media (min-width: 960px) {
  .hero { padding: 64px 0 80px; }
  .hero__inner { grid-template-columns: 1.25fr .9fr; gap: 56px; }
  .hero__balls .ball:nth-child(3) { display: grid; top: 12%; left: 52%; animation-delay: -1s; }
  .hero__balls .ball:nth-child(4) { display: grid; bottom: 10%; right: 34%; width: 44px; height: 44px; animation-delay: -3s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- ticket (paper card) ---------- */
.ticket {
  position: relative; padding: 24px 20px 18px; border-radius: var(--r-lg);
  background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow);
}
.ticket::before, .ticket::after { content: ""; position: absolute; top: 52px; width: 24px; height: 24px; border-radius: 50%; background: var(--c-bg); }
.ticket::before { left: -12px; }
.ticket::after { right: -12px; }
.ticket__label { font: 800 13px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #8a7a6a; padding-bottom: 20px; margin: 0 0 6px; border-bottom: 2px dashed var(--c-paper-line); }
.ticket__list { list-style: none; margin: 0; padding: 0; }
.ticket__row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--c-paper-line); }
.ticket__room { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ticket__room strong { font: 800 17px/1.2 var(--f-display); }
.ticket__room small { color: #6f6377; font-size: 13px; }
.ticket__time { display: flex; flex-direction: column; align-items: flex-end; font: 800 20px/1.1 var(--f-display); }
.ticket__time small { font: 600 12px/1.2 var(--f-body); color: #6f6377; }
.ticket__more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--c-ink); }
.ticket__more:hover { color: #5d3fd3; }

/* ---------- sections ---------- */
.section { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 768px) { .section { padding-top: 56px; padding-bottom: 56px; } }
.section--band { background: linear-gradient(180deg, var(--c-bg-2), rgba(34, 24, 68, .3)); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head__text { max-width: 680px; }
.section-head__title { font-size: clamp(26px, 5vw, 36px); margin-bottom: 6px; }
.section-head__lead { color: var(--c-muted); margin: 0; }
.section-head__link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-title { font-size: clamp(24px, 4.5vw, 32px); margin-bottom: 20px; }
.section-note { margin-top: 20px; color: var(--c-muted); font-size: 15px; }

/* ---------- page hero ---------- */
.page-hero { padding: 36px 0 28px; border-bottom: 1px solid var(--c-line); background: linear-gradient(180deg, rgba(255, 90, 95, .08), transparent); }
.page-hero--slots { background: linear-gradient(180deg, rgba(255, 201, 51, .09), transparent); }
.page-hero--casino { background: linear-gradient(180deg, rgba(47, 212, 143, .08), transparent); }
.page-hero--new { background: linear-gradient(180deg, rgba(255, 116, 200, .09), transparent); }
.page-hero--how, .page-hero--pay { background: linear-gradient(180deg, rgba(74, 168, 255, .09), transparent); }
.page-hero--rg { background: linear-gradient(180deg, rgba(47, 212, 143, .1), transparent); }
.page-hero--legal { background: none; }
.page-hero__eyebrow { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-red); }
.page-hero__title { font-size: clamp(36px, 8vw, 60px); letter-spacing: -.03em; margin-bottom: 12px; }
.page-hero__lead { max-width: 720px; font-size: 17px; color: var(--c-muted); margin: 0; }
.page-hero__lead strong { color: var(--c-text); }
@media (min-width: 768px) { .page-hero { padding: 56px 0 40px; } }

/* ---------- game grid + card ---------- */
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@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)); gap: 22px 18px; } }
@media (min-width: 1100px) { .game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 559px) {
  .game-grid--row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .game-grid--row::-webkit-scrollbar { display: none; }
  .game-grid--row > * { flex: 0 0 42%; scroll-snap-align: start; }
}

.game-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.game-card__media { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--c-bg-3); box-shadow: 0 0 0 1px var(--c-line); }
.game-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.game-card__media:hover .game-card__img { transform: scale(1.05); }
.game-card__flag { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--c-pink); color: var(--c-ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.game-card__body { padding: 10px 2px 0; min-width: 0; }
.game-card__title { font: 700 15px/1.3 var(--f-body); margin: 0; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-card__link { color: var(--c-text); text-decoration: none; }
.game-card__link:hover { color: var(--c-yellow); }
.game-card__provider { margin: 2px 0 0; font-size: 13px; color: var(--c-dim); }
.game-card__top { position: relative; }
.game-card__play {
  position: absolute; right: 8px; bottom: 8px;
  display: inline-flex; align-items: center; min-height: 32px; padding: 5px 14px;
  border-radius: 999px; background: var(--c-yellow); color: var(--c-ink);
  font-size: 13px; font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 #c99a12;
  transform: translateY(0); transition: opacity .2s, transform .2s var(--ease);
}
.game-card__play:hover { color: var(--c-ink); background: #ffd65c; }
@media (hover: hover) and (min-width: 860px) {
  .game-card__play { opacity: 0; transform: translateY(6px); }
  .game-card:hover .game-card__play, .game-card:focus-within .game-card__play { opacity: 1; transform: translateY(0); }
}

.dated__label { margin: 4px 2px 0; font-size: 12px; color: var(--c-muted); }
.month { margin-bottom: 40px; }
.month__title { display: flex; align-items: baseline; gap: 12px; font-size: 26px; margin-bottom: 20px; }
.month__count { font: 600 14px/1 var(--f-body); color: var(--c-dim); }

/* ---------- catalogue bar / tabs / search ---------- */
.catalogue-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin-bottom: 20px; border-radius: 999px; background: var(--c-bg-2); border: 1px solid var(--c-line); scrollbar-width: none; max-width: 100%; }
.catalogue-bar .tabs { margin-bottom: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn { flex: none; min-height: 40px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--c-muted); font-weight: 700; font-size: 14px; cursor: pointer; transition: background-color .15s, color .15s; }
.tabs__btn:hover { color: var(--c-text); }
.tabs__btn--active { background: var(--c-paper); color: var(--c-ink); }
.tabs__btn--active:hover { color: var(--c-ink); }
.search { position: relative; flex: 1 1 220px; max-width: 340px; }
.search::before { content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border: 2px solid var(--c-dim); border-radius: 50%; }
.search::after { content: ""; position: absolute; left: 29px; top: 50%; width: 7px; height: 2px; margin-top: 4px; background: var(--c-dim); transform: rotate(45deg); }
.search__input { width: 100%; min-height: 46px; padding: 10px 16px 10px 42px; border: 1px solid var(--c-line-2); border-radius: 999px; background: var(--c-bg-2); outline: none; }
.search__input:focus { border-color: var(--c-yellow); }
.empty { padding: 40px 0; text-align: center; color: var(--c-muted); }

/* ---------- category cards (casino) ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 860px) { .cat-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.cat-cards__btn { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; padding: 18px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg-2); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s var(--ease); }
.cat-cards__btn:hover { border-color: var(--c-line-2); transform: translateY(-2px); }
.cat-cards__name { font: 800 20px/1.1 var(--f-display); }
.cat-cards__count { font-size: 13px; font-weight: 700; color: var(--c-yellow); }
.cat-cards__text { font-size: 14px; color: var(--c-muted); line-height: 1.45; display: none; }
@media (min-width: 560px) { .cat-cards__text { display: block; } }
.cat-cards__item--blackjack .cat-cards__btn { border-top: 4px solid var(--c-red); }
.cat-cards__item--roulette .cat-cards__btn { border-top: 4px solid var(--c-green); }
.cat-cards__item--baccarat .cat-cards__btn { border-top: 4px solid var(--c-blue); }
.cat-cards__item--poker .cat-cards__btn { border-top: 4px solid var(--c-yellow); }
.cat-cards__item--keno .cat-cards__btn { border-top: 4px solid var(--c-pink); }
.cat-cards__item--dice .cat-cards__btn { border-top: 4px solid #a98bff; }

/* ---------- rooms: list rows ---------- */
.room-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.room { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 14px; padding: 14px; border-radius: var(--r); background: var(--c-bg-2); border: 1px solid var(--c-line); }
.room__ball {
  --ball: var(--c-red);
  display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%;
  font: 800 15px/1 var(--f-display); color: var(--c-ink);
  background: radial-gradient(circle, var(--c-paper) 0 45%, var(--ball) 46%);
  box-shadow: inset -4px -5px 0 rgba(0, 0, 0, .15);
}
.room__ball--90 { --ball: var(--c-red); }
.room__ball--80 { --ball: var(--c-green); }
.room__ball--75 { --ball: var(--c-blue); }
.room__ball--30 { --ball: var(--c-yellow); }
.room__ball--xl { width: 140px; height: 140px; font-size: 44px; box-shadow: inset -10px -14px 0 rgba(0, 0, 0, .15); }
.room__main { min-width: 0; }
.room__name { font-size: 18px; margin: 0; }
.room__meta { margin: 2px 0 0; font-size: 13px; color: var(--c-dim); }
.room__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding-top: 10px; border-top: 1px dashed var(--c-line-2); }
.room__fact dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-dim); }
.room__fact dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; }
.room__fact dd small { display: block; font-weight: 600; font-size: 12px; color: var(--c-muted); }
.room__join { grid-row: 1; grid-column: 3; }
@media (min-width: 860px) {
  .room { grid-template-columns: auto minmax(180px, 1.2fr) 2fr auto; padding: 14px 20px; }
  .room__facts { grid-column: auto; padding-top: 0; border-top: 0; }
  .room__join { grid-row: auto; grid-column: auto; }
}

/* status pill */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--c-bg-4); color: var(--c-muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--open { background: rgba(47, 212, 143, .14); color: var(--c-green); }
.status--soon { background: rgba(255, 201, 51, .16); color: var(--c-yellow); }
.status--closed { background: rgba(255, 255, 255, .06); color: var(--c-dim); }
.status--required { background: rgba(255, 90, 95, .15); color: #ff8b8f; }
.status--pending { background: rgba(255, 201, 51, .16); color: var(--c-yellow); }
.status--verified { background: rgba(47, 212, 143, .14); color: var(--c-green); }

/* ---------- lobby table ---------- */
.lobby { border-radius: var(--r-lg); background: var(--c-bg-2); border: 1px solid var(--c-line); overflow: hidden; }
.lobby__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 20px; border-bottom: 1px solid var(--c-line); }
.lobby__title { font-size: 22px; margin: 0; }
.lobby__clock { margin: 0; color: var(--c-muted); font-size: 14px; }
.lobby__clock strong { color: var(--c-text); font: 800 18px/1 var(--f-display); margin-left: 4px; }
.lobby__table { width: 100%; border-collapse: collapse; }
.lobby__table th, .lobby__table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--c-line); }
.lobby__table thead th { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-dim); background: rgba(0, 0, 0, .12); }
.lobby__room { display: flex; align-items: center; gap: 12px; font: 800 17px/1.2 var(--f-display); }
.lobby__room .room__ball { width: 38px; height: 38px; font-size: 13px; }
.lobby__count { color: var(--c-muted); font-size: 12px; }
.lobby__action { text-align: right !important; }
.lobby__note { margin: 0; padding: 16px 20px; font-size: 14px; color: var(--c-muted); }
@media (max-width: 759px) {
  .lobby__table thead { display: none; }
  .lobby__table, .lobby__table tbody, .lobby__table tr, .lobby__table th, .lobby__table td { display: block; }
  .lobby__row { display: grid !important; grid-template-columns: 1fr 1fr; padding: 14px 16px; border-bottom: 1px solid var(--c-line); gap: 10px; }
  .lobby__table .lobby__row > * { padding: 0; border: 0; }
  .lobby__row .lobby__room { grid-column: 1 / -1; }
  .lobby__row td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-dim); }
  .lobby__row .lobby__action { grid-column: 1 / -1; text-align: left !important; }
  .lobby__row .lobby__action .btn { width: 100%; }
}

/* ---------- room cards (rooms page) ---------- */
.room-group { margin-bottom: 40px; }
.room-group__head { margin-bottom: 16px; max-width: 720px; }
.room-group__title { font-size: 28px; margin-bottom: 6px; }
.room-group__text { color: var(--c-muted); margin: 0; }
.room-cards { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .room-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .room-cards { grid-template-columns: repeat(3, 1fr); } }
.room-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow); }
.room-card__top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.room-card__name { font-size: 20px; margin: 0; }
.room-card__type { margin: 0; font-size: 13px; color: #6f6377; }
.room-card .status--open { background: #dff7ec; color: #0f7a4e; }
.room-card .status--soon { background: #fff0c2; color: #8a6500; }
.room-card .status--closed { background: #efe7da; color: #6f6377; }
.room-card__about { margin: 0; color: #4b4058; font-size: 15px; }
.room-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; padding: 14px 0; border-top: 2px dashed var(--c-paper-line); border-bottom: 2px dashed var(--c-paper-line); }
.room-card__facts dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a7a6a; }
.room-card__facts dd { margin: 2px 0 0; font-weight: 700; }
.room-card__facts small { color: #6f6377; font-weight: 600; }
.room-card__wide { grid-column: 1 / -1; }
.room-card .btn { margin-top: auto; }

/* ---------- steps / flow ---------- */
.steps { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.steps__item { position: relative; padding: 22px 20px; border-radius: var(--r); background: var(--c-bg-2); border: 1px solid var(--c-line); }
.steps__num { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; background: var(--c-yellow); color: var(--c-ink); font: 800 17px/1 var(--f-display); }
.steps__item:nth-child(2) .steps__num { background: var(--c-green); }
.steps__item:nth-child(3) .steps__num { background: var(--c-blue); }
.steps__item:nth-child(4) .steps__num { background: var(--c-pink); }
.steps__title { font-size: 19px; margin-bottom: 6px; }
.steps__text { margin: 0; font-size: 15px; color: var(--c-muted); }

.flow { list-style: none; margin: 0; padding: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; border-left: 3px dotted var(--c-line-2); }
.flow__item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding-bottom: 28px; }
.flow__title { font-size: 22px; margin: 10px 0 6px; }
.flow__text { margin: 0; color: var(--c-muted); max-width: 680px; }

/* ---------- cta ---------- */
.cta { display: grid; gap: 20px; padding: 28px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--c-red), #d9408f 60%, #7b4ce0); box-shadow: var(--shadow); }
.cta__title { font-size: clamp(26px, 5vw, 38px); margin-bottom: 8px; }
.cta__lead { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .9); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta .btn--ghost { border-color: rgba(255, 255, 255, .6); }
@media (min-width: 860px) { .cta { grid-template-columns: 1fr auto; align-items: center; padding: 40px 48px; } }

/* ---------- panels / split ---------- */
.split { display: grid; gap: 16px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 24px; } }
.panel { padding: 24px; border-radius: var(--r-lg); background: var(--c-bg-2); border: 1px solid var(--c-line); }
.panel__title { font-size: 22px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel__text { color: var(--c-muted); }
.panel__small { margin: 12px 0 0; font-size: 13px; color: var(--c-dim); }
.panel__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.panel--rg { border-color: rgba(47, 212, 143, .3); background: linear-gradient(160deg, rgba(47, 212, 143, .08), var(--c-bg-2) 60%); }
.panel--steps { align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }

.pay-chip { display: inline-grid; place-items: center; padding: 6px 12px; border-radius: 8px; background: #fff; vertical-align: middle; }
.pay-chip img { height: 20px; width: auto; }
.pay-chip--lg { padding: 12px 18px; border-radius: 12px; }
.pay-chip--lg img { height: 28px; }
.pay-method { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.pay-method__name { margin: 0; font-weight: 700; }
.pay-method__meta { margin: 0; font-size: 14px; color: var(--c-muted); }
.pay-method--select { padding: 14px; border: 2px solid var(--c-yellow); border-radius: var(--r); background: rgba(255, 201, 51, .06); }

.age-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--c-red); color: var(--c-red); font: 800 14px/1 var(--f-display); }
.age-badge--inline { width: 34px; height: 34px; font-size: 12px; }

.operator { display: grid; gap: 20px; padding: 24px; border-radius: var(--r-lg); border: 1px dashed var(--c-line-2); }
.operator__title { font-size: 22px; }
.operator__text p { color: var(--c-muted); }
@media (min-width: 760px) { .operator { grid-template-columns: 180px 1fr; align-items: center; padding: 32px; } }

/* ---------- prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 4vw, 30px); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose p, .prose li { color: #ddd5f3; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--c-red); }
.prose strong { color: var(--c-text); }
.prose--tight { margin-bottom: 20px; }
.prose--legal p { font-size: 15.5px; }
.prose--narrow { margin: 40px auto; }
.panel.prose { max-width: none; }
.numbered li { padding-left: 4px; }
.note, .notice { padding: 14px 18px; border-radius: var(--r); border: 1px solid rgba(74, 168, 255, .35); background: rgba(74, 168, 255, .1); color: var(--c-text); margin: 1.2em 0; font-size: 15px; }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.notice p { margin: 0; }
.notice--warn { border-color: rgba(255, 201, 51, .4); background: rgba(255, 201, 51, .1); }

.layout-aside { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 56px; }
.section .layout-aside, .layout-aside--right { padding-top: 0; padding-bottom: 0; }
@media (min-width: 960px) {
  .layout-aside { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
  .layout-aside--right { grid-template-columns: minmax(0, 1fr) 340px; }
}
.toc { align-self: start; }
@media (min-width: 960px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.toc__title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-dim); margin-bottom: 10px; }
.toc__list { margin: 0; padding: 0 0 0 1.2em; display: grid; gap: 6px; font-size: 15px; }
.toc__list a { color: var(--c-muted); text-decoration: none; }
.toc__list a:hover { color: var(--c-yellow); }
@media (max-width: 959px) {
  .toc { padding: 16px 18px; border-radius: var(--r); background: var(--c-bg-2); }
  .toc__list { grid-template-columns: 1fr 1fr; gap: 6px 16px; }
}

.crumbs { padding: 16px 0 0; }
.crumbs__list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--c-dim); }
.crumbs__item + .crumbs__item::before { content: "/"; margin-right: 6px; color: var(--c-bg-4); }
.crumbs__link { color: var(--c-muted); text-decoration: none; }
.crumbs__link:hover { color: var(--c-yellow); }

/* ---------- game page ---------- */
.game-hero { display: grid; gap: 24px; padding-top: 20px; padding-bottom: 16px; }
.game-hero__media { position: relative; max-width: 420px; }
.game-hero__media::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border-radius: var(--r-lg); background: repeating-linear-gradient(45deg, var(--c-red) 0 10px, transparent 10px 20px); opacity: .35; }
.game-hero__img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.game-hero__eyebrow { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--c-red); text-transform: uppercase; letter-spacing: .08em; }
.game-hero__title { font-size: clamp(34px, 7vw, 56px); letter-spacing: -.03em; }
.game-hero__lead { font-size: 17px; color: var(--c-muted); max-width: 640px; }
.game-hero__actions { margin-top: 24px; }
.game-hero__hint { margin: 12px 0 0; font-size: 14px; color: var(--c-dim); }
@media (min-width: 860px) { .game-hero { grid-template-columns: 400px 1fr; gap: 56px; align-items: center; padding-top: 32px; } }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 20px 0 0; border-radius: var(--r); overflow: hidden; background: var(--c-line); border: 1px solid var(--c-line); max-width: 640px; }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts__item { padding: 12px 14px; background: var(--c-bg-2); }
.facts__item dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-dim); }
.facts__item dd { margin: 3px 0 0; font-weight: 700; font-size: 15px; }
.facts__item dd a { color: var(--c-text); }
.facts--wallet { margin: 0; }
@media (min-width: 560px) { .facts--wallet { grid-template-columns: repeat(2, 1fr); } }
.mini-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; color: var(--c-muted); font-size: 15px; }

/* ---------- play gate ---------- */
.gate { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 56px; }
@media (min-width: 960px) { .gate { grid-template-columns: 300px 1fr; gap: 48px; padding-top: 56px; } }
.gate__game { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; align-self: start; }
@media (min-width: 960px) { .gate__game { grid-template-columns: 1fr; position: sticky; top: calc(var(--header-h) + 24px); } }
.gate__img { border-radius: var(--r); box-shadow: var(--shadow); }
.gate__room { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r); background: var(--c-paper); }
@media (max-width: 959px) { .gate__room .room__ball--xl { width: 70px; height: 70px; font-size: 22px; } }
.gate__eyebrow { margin: 0; font-size: 13px; font-weight: 700; color: var(--c-red); text-transform: uppercase; letter-spacing: .06em; }
.gate__name { margin: 2px 0 6px; font: 800 22px/1.15 var(--f-display); }
.gate__small { font-size: 14px; color: var(--c-muted); }
.gate__title { font-size: clamp(28px, 5vw, 42px); letter-spacing: -.02em; }
.gate__lead { color: var(--c-muted); max-width: 640px; margin-bottom: 24px; }
.gate__cols { display: grid; gap: 16px; }
@media (min-width: 760px) { .gate__cols { grid-template-columns: 1.1fr 1fr; gap: 20px; } }
.gate__new { padding: 24px; border-radius: var(--r-lg); background: var(--c-paper); color: var(--c-ink); }
.gate__new .gate__small { color: #6f6377; margin: 14px 0 0; }
.checklist { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; font-weight: 600; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c-green); color: var(--c-ink); font-size: 13px; font-weight: 800; }
.readiness { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.readiness__item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--c-bg-2); border: 1px solid var(--c-line); }
.readiness__item p { margin: 4px 0 10px; color: var(--c-muted); font-size: 15px; }
.readiness__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-bg-4); font-weight: 800; }
.readiness__item--done .readiness__icon { background: var(--c-green); color: var(--c-ink); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form--card { padding: 24px; border-radius: var(--r-lg); background: var(--c-bg-2); border: 1px solid var(--c-line); }
@media (min-width: 760px) { .form--card { padding: 32px; } }
.form--disabled { opacity: .6; }
.form__title { font-size: 22px; margin: 0; }
.form__group { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form__group + .form__group { padding-top: 20px; border-top: 1px solid var(--c-line); }
.form__legend { padding: 0; margin-bottom: 4px; font: 800 18px/1.2 var(--f-display); }
.form__row { display: grid; gap: 16px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__msg:empty { display: none; }
.form__msg { padding: 12px 16px; border-radius: var(--r-sm); font-size: 15px; background: rgba(255, 90, 95, .12); border: 1px solid rgba(255, 90, 95, .4); }
.form__msg--ok { background: rgba(47, 212, 143, .12); border-color: rgba(47, 212, 143, .4); }
.form__msg a { font-weight: 700; }
.form__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }
.form__aside { font-size: 14px; }
.form--done > :not(.form__msg):not(.form__keep) { display: none; }

.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-weight: 700; font-size: 14px; }
.field__input {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--c-line-2); border-radius: 12px; background: var(--c-bg);
  color: var(--c-text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field__input:focus { border-color: var(--c-yellow); box-shadow: 0 0 0 3px rgba(255, 201, 51, .2); }
.field__input--upper { text-transform: uppercase; }
.field__input--area { min-height: 140px; resize: vertical; }
.field__input--file { padding: 10px; }
select.field__input { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--c-muted) 50%), linear-gradient(135deg, var(--c-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field--invalid .field__input { border-color: var(--c-red); }
.field__error { margin: 0; font-size: 13px; font-weight: 600; color: #ff8b8f; }
.field__error:empty { display: none; }
.field__hint { margin: 0; font-size: 13px; color: var(--c-dim); }
.field__static { margin: 0; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--c-muted); }
.field__pw { position: relative; }
.field__pw .field__input { padding-right: 72px; }
.field__toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--c-bg-3); font-size: 13px; font-weight: 700; cursor: pointer; }
.field--trap { position: absolute; left: -9999px; }
.dob { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }
.meter { height: 4px; border-radius: 4px; background: var(--c-bg-4); overflow: hidden; }
.meter__bar { display: block; height: 100%; width: 100%; background: var(--c-red); transform: scaleX(0); transform-origin: left; transition: transform .2s, background-color .2s; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 15px; }
.check__input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--c-yellow); }
.check__text { color: #ddd5f3; }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio { position: relative; cursor: pointer; }
.radio__input { position: absolute; opacity: 0; }
.radio__text { display: block; padding: 11px 12px; text-align: center; border: 1px solid var(--c-line-2); border-radius: 12px; font-weight: 700; font-size: 14px; }
.radio__input:checked + .radio__text { border-color: var(--c-yellow); background: rgba(255, 201, 51, .12); color: var(--c-yellow); }
.radio__input:focus-visible + .radio__text { outline: 3px solid var(--c-yellow); outline-offset: 2px; }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.amounts__btn { padding: 8px 16px; border: 1px solid var(--c-line-2); border-radius: 999px; background: transparent; font-weight: 700; cursor: pointer; }
.amounts__btn:hover:not(:disabled) { border-color: var(--c-yellow); }

.switch { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--c-line); cursor: pointer; }
.switch__input { appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 26px; margin: 2px 0 0; border-radius: 999px; background: var(--c-bg-4); cursor: pointer; transition: background-color .15s; }
.switch__input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s var(--ease); }
.switch__input:checked { background: var(--c-green); }
.switch__input:checked::after { transform: translateX(18px); }
.switch__input:disabled { opacity: .6; cursor: default; }
.switch__body { display: grid; gap: 2px; }
.switch__body small { color: var(--c-muted); font-size: 13.5px; }

/* ---------- auth ---------- */
.auth { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 56px; }
@media (min-width: 960px) { .auth { grid-template-columns: .8fr 1.2fr; gap: 56px; padding-top: 56px; } }
.auth--narrow { max-width: 520px; grid-template-columns: 1fr !important; }
.auth__eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-red); }
.auth__title { font-size: clamp(30px, 6vw, 44px); letter-spacing: -.02em; margin: 0; }
.auth__side .auth__title { margin: 6px 0 20px; }
.auth__text { color: var(--c-muted); font-size: 15px; }
.auth__flow { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; counter-reset: f; }
.auth__flow-item { counter-increment: f; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--c-bg-2); color: var(--c-dim); font-size: 13px; font-weight: 700; }
.auth__flow-item::before { content: counter(f); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c-bg-4); color: var(--c-text); font-size: 12px; }
.auth__flow-item--now { color: var(--c-text); background: var(--c-bg-3); }
.auth__flow-item--now::before { background: var(--c-yellow); color: var(--c-ink); }
.auth__flow-item--done::before { content: "✓"; background: var(--c-green); color: var(--c-ink); }
.auth__flow--compact { margin: 0; }
@media (min-width: 960px) { .auth__side { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }

/* ---------- account ---------- */
.account { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 56px; }
@media (min-width: 960px) { .account { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding-top: 40px; } }
.account__side { align-self: start; }
@media (min-width: 960px) { .account__side { position: sticky; top: calc(var(--header-h) + 24px); } }
.account__user { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.account__avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-red); font: 800 17px/1 var(--f-display); color: #fff; }
.account__name { margin: 0; font-weight: 700; }
.account__status { margin: 2px 0 0; }
.account__nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.account__nav::-webkit-scrollbar { display: none; }
.account__link { flex: none; display: block; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--c-bg-2); color: var(--c-muted); font-size: 14px; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; }
.account__link:hover { color: var(--c-text); }
.account__link--active { background: var(--c-paper); color: var(--c-ink); }
.account__link--active:hover { color: var(--c-ink); }
.account__link--logout { color: #ff8b8f; }
@media (min-width: 960px) {
  .account__nav { flex-direction: column; gap: 2px; overflow: visible; margin: 0; padding: 0; }
  .account__link { border-radius: 10px; background: transparent; padding: 10px 14px; }
  .account__link:hover { background: var(--c-bg-2); }
  .account__link--active, .account__link--active:hover { background: var(--c-paper); }
}
.account__title { font-size: clamp(28px, 5vw, 40px); letter-spacing: -.02em; margin-bottom: 20px; }
.account__h2 { font-size: 22px; margin: 32px 0 14px; }
.account__text { color: var(--c-muted); font-size: 15px; margin-top: 16px; }
.account__main > .form + .form { margin-top: 20px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 860px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r); background: var(--c-bg-2); border: 1px solid var(--c-line); text-decoration: none; color: var(--c-text); transition: border-color .15s; }
.tile:hover { border-color: var(--c-line-2); color: var(--c-text); }
.tile__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-dim); }
.tile__value { font: 800 24px/1.1 var(--f-display); }
.activity { list-style: none; margin: 0; padding: 0; border-radius: var(--r); background: var(--c-bg-2); border: 1px solid var(--c-line); }
.activity__item { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); font-size: 15px; }
.activity__item:last-child { border-bottom: 0; }
.activity__time { min-width: 150px; color: var(--c-dim); font-size: 14px; }
.activity--short { margin: 8px 0 16px; background: var(--c-bg); }

.vsteps { display: grid; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
@media (min-width: 640px) { .vsteps { grid-template-columns: repeat(3, 1fr); } }
.vsteps__item { position: relative; display: grid; gap: 2px; padding: 14px 16px 14px 52px; border-radius: var(--r); background: var(--c-bg-2); border: 1px solid var(--c-line); color: var(--c-dim); font-size: 14px; }
.vsteps__item strong { color: var(--c-muted); font: 800 17px/1.2 var(--f-display); }
.vsteps__item::before { content: ""; position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--c-bg-4); }
.vsteps__item--now { border-color: var(--c-yellow); }
.vsteps__item--now strong { color: var(--c-yellow); }
.vsteps__item--now::before { border-color: var(--c-yellow); background: radial-gradient(circle, var(--c-yellow) 0 40%, transparent 45%); }
.vsteps__item--done strong { color: var(--c-green); }
.vsteps__item--done::before { content: "✓"; display: grid; place-items: center; border: 0; background: var(--c-green); color: var(--c-ink); font-size: 13px; font-weight: 800; }
.vsteps--large .vsteps__item { padding: 20px 20px 20px 56px; font-size: 15px; }

.wallet { display: grid; gap: 16px; }
@media (min-width: 860px) { .wallet { grid-template-columns: 1fr 1fr; align-items: start; } }
.wallet__card { padding: 24px; border-radius: var(--r-lg); background: linear-gradient(135deg, #2f2463, #4a2a74); border: 1px solid var(--c-line-2); }
.wallet__label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.wallet__value { margin: 6px 0 4px; font: 800 44px/1 var(--f-display); letter-spacing: -.02em; }
.wallet__small { color: var(--c-muted); font-size: 14px; }
.wallet__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.rg-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .rg-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.empty-state { display: grid; justify-items: center; gap: 12px; padding: 40px 20px; border-radius: var(--r-lg); border: 2px dashed var(--c-line-2); text-align: center; color: var(--c-muted); }
.empty-state p { margin: 0; max-width: 420px; }
.empty-state__ball { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle, var(--c-paper) 0 44%, var(--c-bg-4) 45%); color: var(--c-ink); font: 800 20px/1 var(--f-display); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--c-line); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.table thead th { background: var(--c-bg-2); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-dim); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table code { font-size: 13px; background: var(--c-bg-3); padding: 2px 6px; border-radius: 6px; }
.table--pay th[scope="row"] { display: flex; align-items: center; gap: 12px; font-weight: 700; }
@media (max-width: 640px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; }
  .table tr { padding: 12px 16px; border-bottom: 1px solid var(--c-line); }
  .table th, .table td { padding: 4px 0; border: 0; }
  .table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--c-dim); }
}
.status-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.status-list__item { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
.status-list__item .status { justify-self: start; }

/* ---------- responsible gambling ---------- */
.tools { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .tools { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .tools { grid-template-columns: repeat(3, 1fr); } }
.tools__item { padding: 22px; border-radius: var(--r-lg); background: var(--c-bg-2); border: 1px solid var(--c-line); }
.tools__num { font: 800 14px/1 var(--f-display); color: var(--c-green); }
.tools__title { font-size: 21px; margin: 8px 0; }
.tools__text { margin: 0; color: var(--c-muted); font-size: 15px; }
.help-orgs { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .help-orgs { grid-template-columns: repeat(3, 1fr); } }
.help-orgs__item { display: flex; flex-direction: column; padding: 20px; border-radius: var(--r); background: var(--c-paper); color: var(--c-ink); }
.help-orgs__name { font-size: 18px; }
.help-orgs__text { color: #4b4058; font-size: 15px; }
.help-orgs__link { margin-top: auto; font-weight: 800; color: #5d3fd3; }
.help-orgs__link:hover { color: var(--c-ink); }

/* ---------- help centre ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chips__item { padding: 8px 16px; border-radius: 999px; background: var(--c-bg-2); border: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-size: 14px; font-weight: 600; }
.chips__item:hover { border-color: var(--c-yellow); color: var(--c-yellow); }
.faq-groups { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-groups { grid-template-columns: 1fr 1fr; gap: 40px 48px; } }
.faq__title { font-size: 24px; margin-bottom: 12px; }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__q { position: relative; padding: 14px 36px 14px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 400 24px/1 var(--f-body); color: var(--c-yellow); transition: transform .2s; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { margin: 0 0 16px; color: var(--c-muted); }

/* ---------- contact / about ---------- */
.contact { display: grid; gap: 20px; }
@media (min-width: 960px) { .contact { grid-template-columns: 360px 1fr; gap: 32px; align-items: start; } }
.contact__address { font-style: normal; line-height: 1.7; margin-bottom: 16px; }
.contact__list { margin: 0; display: grid; gap: 8px; }
.contact__list dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-dim); }
.contact__list dd { margin: 0; }
.ibas { display: flex; align-items: center; gap: 16px; padding: 16px; margin: 20px 0; border-radius: var(--r); background: #fff; color: var(--c-ink); }
.ibas p { margin: 0; color: var(--c-ink); font-size: 15px; }
.ibas a { color: #5d3fd3; }
.licence img { margin-bottom: 16px; }
.licence__list { margin: 0; display: grid; gap: 12px; }
.licence__list dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-dim); }
.licence__list dd { margin: 2px 0 0; font-weight: 600; }

.notfound { padding: 72px var(--gutter); text-align: center; }
.notfound__balls { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; }
.notfound__balls .ball { width: 72px; height: 72px; font-size: 28px; }
.notfound__title { font-size: clamp(30px, 6vw, 48px); }
.notfound__text { color: var(--c-muted); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ---------- footer ---------- */
.footer { margin-top: 40px; padding: 48px 0 32px; background: #120c26; border-top: 1px solid var(--c-line); font-size: 14px; }
.footer__top { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--c-line); }
@media (min-width: 960px) { .footer__top { grid-template-columns: 1fr 2fr; gap: 56px; } }
.footer__tagline { margin: 14px 0 20px; color: var(--c-muted); max-width: 320px; }
.footer__pay { display: flex; align-items: center; gap: 12px; }
.footer__label { color: var(--c-dim); font-size: 13px; }
.footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
@media (min-width: 640px) { .footer__nav { grid-template-columns: repeat(3, 1fr); } }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.footer__links a, .footer__cookie-btn { color: var(--c-muted); text-decoration: none; }
.footer__links a:hover, .footer__cookie-btn:hover { color: var(--c-yellow); }
.footer__cookie-btn { padding: 0; border: 0; background: none; cursor: pointer; font-size: inherit; text-align: left; }
.footer__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; list-style: none; margin: 0; padding: 28px 0; border-bottom: 1px solid var(--c-line); }
.footer__trust img { height: 28px; width: auto; opacity: .85; transition: opacity .15s; }
.footer__trust a:hover img { opacity: 1; }
.footer__gamcare { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; }
.footer__gamcare img { height: 24px; }
.footer__legal { padding-top: 24px; color: var(--c-dim); font-size: 13px; line-height: 1.7; max-width: 900px; }
.footer__legal a { color: var(--c-muted); }
.footer__copy { margin: 16px 0 0; }

/* ---------- overlays ---------- */
.age-gate { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--gutter); background: rgba(12, 7, 30, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.age-gate__box { width: 100%; max-width: 440px; padding: 32px 28px; border-radius: var(--r-lg); background: var(--c-paper); color: var(--c-ink); text-align: center; box-shadow: var(--shadow); }
.age-gate__badge { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 16px; border-radius: 50%; background: radial-gradient(circle, #fff 0 46%, var(--c-red) 47%); font: 800 22px/1 var(--f-display); }
.age-gate__title { font: 800 28px/1.15 var(--f-display); margin-bottom: 10px; }
.age-gate__text { color: #4b4058; font-size: 15px; }
.age-gate__actions { display: grid; gap: 10px; margin-top: 20px; }
.age-gate .btn--ghost { --btn-fg: var(--c-ink); border-color: #d9ccb6; }
.age-gate__under { margin: 16px 0 0; padding: 12px; border-radius: var(--r-sm); background: #ffe3e3; font-size: 14px; }
.age-gate__under a { color: #5d3fd3; }

.cookie { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); z-index: 90; }
@media (min-width: 1024px) { .cookie { bottom: 20px; left: 20px; right: auto; max-width: 560px; } }
.cookie__inner { padding: 18px 20px; border-radius: var(--r-lg); background: var(--c-bg-3); border: 1px solid var(--c-line-2); box-shadow: var(--shadow); }
.cookie__text { font-size: 14px; color: #ddd5f3; margin-bottom: 14px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.modal { position: fixed; inset: 0; z-index: 310; display: grid; place-items: center; padding: var(--gutter); background: rgba(12, 7, 30, .8); }
.modal__box { width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; padding: 28px; border-radius: var(--r-lg); background: var(--c-bg-2); border: 1px solid var(--c-line-2); }
.modal__title { font: 800 24px/1.2 var(--f-display); margin-bottom: 8px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.gate__new .form__title { margin-bottom: 16px; }
