/* ==========================================================================
   MessageBet — main stylesheet (BEM)
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #0f1215;
  --ink-2: #171b20;
  --ink-3: #232931;
  --ink-line: #2d343d;
  --paper: #f2f0ea;
  --paper-2: #e9e6de;
  --surface: #ffffff;
  --surface-2: #f7f6f2;
  --line: #dcd8ce;
  --line-soft: #e8e5dd;
  --text: #15181c;
  --muted: #5a606a;
  --muted-light: #a5acb6;
  --lime: #c8f03c;
  --lime-2: #b5dd26;
  --lime-soft: #eef9c8;
  --lime-deep: #3b5a00;
  --live: #ff4b2b;
  --amber: #b86e00;
  --amber-soft: #fff1d6;
  --blue: #2a55d8;
  --blue-soft: #e3eaff;
  --green: #1d7a3a;
  --green-soft: #dcf3e2;
  --red: #c42b1c;
  --red-soft: #fde5e1;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow: 0 1px 2px rgba(15, 18, 21, .05), 0 6px 20px rgba(15, 18, 21, .06);
  --shadow-lg: 0 2px 6px rgba(15, 18, 21, .08), 0 24px 60px rgba(15, 18, 21, .16);
  --header-h: 64px;
  --tabbar-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--tabbar-h);
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.icon { width: 20px; height: 20px; flex: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--lime); color: var(--ink); font-weight: 700; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--r);
  font-weight: 700; font-size: 15px; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--lime); color: var(--ink); }
.btn--primary:hover { background: var(--lime-2); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .6); }
.btn--outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .5); background: transparent; }
.btn--outline-light:hover { border-color: #fff; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--loading { position: relative; color: transparent !important; pointer-events: none; }
.btn--loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid var(--ink); border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn--dark.btn--loading::after { border-color: #fff; border-right-color: transparent; }

@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ink);
  border-bottom: 2px solid var(--lime); padding-bottom: 1px;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--light { color: #fff; }

/* ---------- Topbar ---------- */

.topbar { background: #0a0c0f; color: var(--muted-light); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 36px; }
.topbar__note { display: flex; align-items: center; gap: 8px; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__badge { width: 18px; height: 18px; }
.topbar__nav { display: flex; gap: 18px; }
.topbar__link { text-decoration: none; color: var(--muted-light); }
.topbar__link:hover, .topbar__link--active { color: #fff; }

.odds-switch { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--ink-3); }
.odds-switch__btn {
  border: 0; background: transparent; color: var(--muted-light); padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
}
.odds-switch__btn--active { background: var(--lime); color: var(--ink); }

/* ---------- Header ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: #fff;
  border-bottom: 1px solid var(--ink-line);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.header__burger {
  display: none; width: 42px; height: 42px; margin-left: -8px; align-items: center; justify-content: center;
  background: none; border: 0; color: #fff; border-radius: 10px;
}
.header__burger .icon { width: 24px; height: 24px; }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header__account .icon { width: 18px; height: 18px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.logo__mark { width: 34px; height: 34px; }
.logo__bubble { fill: var(--lime); }
.logo__tick { stroke: var(--ink); }
.logo__word { font-size: 21px; font-weight: 500; font-stretch: 80%; letter-spacing: -.01em; }
.logo__accent { font-weight: 800; color: var(--lime); }
.logo--dark { color: var(--ink); }
.logo--dark .logo__accent { color: var(--ink); }

.nav { display: flex; align-items: stretch; gap: 4px; height: 100%; }
.nav__link {
  position: relative; display: flex; align-items: center; padding: 0 12px;
  color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.nav__link:hover { color: #fff; }
.nav__link--active { color: #fff; }
.nav__link--active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--lime);
}
.nav__link--live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 7px;
  box-shadow: 0 0 0 3px rgba(255, 75, 43, .25);
}

.slip-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  background: var(--ink-3); color: #fff; border: 0; border-radius: 10px; font-weight: 600; font-size: 14px;
}
.slip-toggle .icon { width: 18px; height: 18px; }
.slip-toggle__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--paper-2); color: var(--ink);
  font-size: 12px; font-weight: 800; display: inline-grid; place-items: center;
}
.slip-toggle--filled .slip-toggle__count { background: var(--lime); }

/* ---------- Mobile menu ---------- */

.menu { position: fixed; inset: 0; z-index: 120; background: rgba(10, 12, 15, .55); }
.menu__panel {
  position: absolute; inset: 0 auto 0 0; width: min(360px, 88vw); background: var(--paper);
  display: flex; flex-direction: column; overflow-y: auto; animation: slide-in .25s var(--ease);
}
@keyframes slide-in { from { transform: translateX(-100%); } }
.menu__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.menu__close { width: 42px; height: 42px; display: grid; place-items: center; background: none; border: 0; border-radius: 10px; }
.menu__nav { display: flex; flex-direction: column; padding: 12px 8px; }
.menu__nav--minor { border-top: 1px solid var(--line); }
.menu__link {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 17px;
}
.menu__link:hover { background: var(--paper-2); }
.menu__link--minor { font-weight: 500; font-size: 15px; padding: 9px 12px; }
.menu__icon { width: 22px; height: 22px; }
.menu__foot { margin-top: auto; padding: 16px; display: grid; gap: 10px; border-top: 1px solid var(--line); }

/* ---------- Tabbar (mobile) ---------- */

.tabbar { display: none; }

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--white { background: var(--surface); }
.section--dark { background: var(--ink); color: #fff; }
.section--lime { background: var(--lime); }
.section--line { border-top: 1px solid var(--line); }

.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section__intro { max-width: 720px; }
.section__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.section__eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--lime); border-radius: 2px; }
.section--dark .section__eyebrow { color: var(--muted-light); }
.section__title {
  font-size: clamp(30px, 4.2vw, 48px); line-height: 1.02; font-weight: 800; font-stretch: 74%; letter-spacing: -.01em;
}
.section__lead { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 64ch; }
.section--dark .section__lead { color: var(--muted-light); }
.section__more { flex: none; }
.section__foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: 36px 0 44px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero__title {
  font-size: clamp(36px, 5.6vw, 64px); line-height: .98; font-weight: 800; font-stretch: 72%; letter-spacing: -.012em; max-width: 18ch;
}
.page-hero__lead { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 62ch; }
.page-hero--dark { background: var(--ink); color: #fff; border-bottom-color: var(--ink-line); }
.page-hero--dark .page-hero__lead { color: var(--muted-light); }
.page-hero--dark .crumbs__link, .page-hero--dark .crumbs__current { color: var(--muted-light); }

.crumbs { margin-bottom: 22px; font-size: 14px; }
.crumbs__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.crumbs__item { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.crumbs__item + .crumbs__item::before { content: "/"; opacity: .5; }
.crumbs__link { color: var(--muted); text-decoration: none; }
.crumbs__link:hover { color: var(--ink); text-decoration: underline; }
.crumbs__current { color: var(--text); }

/* ---------- Home hero ---------- */

.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 64px 0 80px; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(115deg, transparent 20%, #000 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--ink-3); font-size: 13px; color: var(--muted-light); margin-bottom: 22px;
}
.hero__tag-badge { background: var(--lime); color: var(--ink); font-weight: 800; border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.hero__title { font-size: clamp(42px, 7vw, 86px); line-height: .92; font-weight: 800; font-stretch: 68%; letter-spacing: -.015em; }
.hero__mark { color: var(--lime); }
.hero__lead { margin-top: 22px; font-size: 19px; color: #cfd4da; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--muted-light); }
.hero__note a { color: #fff; }
.hero__visual { position: relative; display: flex; justify-content: center; }

/* ---------- Chat mock ---------- */

.chat {
  width: 100%; max-width: 380px; border-radius: 28px; overflow: hidden;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  border: 6px solid var(--ink-3);
}
.chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--ink-2); color: #fff; }
.chat__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.chat__avatar .logo__mark { width: 24px; height: 24px; }
.chat__who { display: flex; flex-direction: column; line-height: 1.2; }
.chat__name { font-weight: 700; font-size: 15px; }
.chat__status { font-size: 12px; color: var(--muted-light); }
.chat__body {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 20px;
  background: var(--paper) radial-gradient(rgba(15, 18, 21, .05) 1px, transparent 1px) 0 0 / 16px 16px;
}
.chat__day { align-self: center; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface); border-radius: 8px; padding: 3px 10px; }
.chat__msg {
  position: relative; max-width: 86%; padding: 10px 12px 8px; border-radius: 16px; font-size: 14px; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(15, 18, 21, .06);
}
.chat__msg--in { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 5px; }
.chat__msg--out { align-self: flex-end; background: var(--lime); border-bottom-right-radius: 5px; }
.chat__msg--ok { background: var(--ink); color: #fff; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chat__chip {
  display: inline-block; padding: 2px 8px; border-radius: 6px; border: 1.5px dashed rgba(15, 18, 21, .35);
  font-size: 12.5px; font-weight: 600;
}
.chat__msg--ok .chat__chip { border-color: rgba(255, 255, 255, .4); }
.chat__meta { display: flex; justify-content: flex-end; gap: 4px; margin-top: 4px; font-size: 11px; color: rgba(15, 18, 21, .55); }
.chat__msg--ok .chat__meta { color: var(--muted-light); }
.chat__ticks { color: var(--blue); font-weight: 700; letter-spacing: -3px; }
.chat__foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-soft); }
.chat__input { flex: 1; height: 38px; border-radius: 19px; background: var(--surface-2); border: 1px solid var(--line-soft); padding: 0 14px; font-size: 13px; color: var(--muted); display: flex; align-items: center; }
.chat__send { width: 38px; height: 38px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.chat__send .icon { width: 18px; height: 18px; }

/* ---------- Quick sports rail ---------- */

.rail { background: var(--surface); border-bottom: 1px solid var(--line); }
.rail__list { display: flex; gap: 6px; overflow-x: auto; list-style: none; padding: 12px 0; scrollbar-width: none; }
.rail__list::-webkit-scrollbar { display: none; }
.rail__link {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line-soft); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.rail__link:hover { border-color: var(--ink); }
.rail__link--active { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail__link .icon { width: 18px; height: 18px; }

/* ---------- Board (feed widgets) ---------- */

.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.board__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.board__title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; font-stretch: 80%; }
.board__title .icon { width: 22px; height: 22px; }
.board__link { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--lime); }
.board__body { padding: 16px 20px 20px; }
.board__tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 20px 0; scrollbar-width: none; }
.board__tabs::-webkit-scrollbar { display: none; }
.board__tab {
  flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.board__tab:hover { border-color: var(--ink); }
.board__tab--active { background: var(--ink); border-color: var(--ink); color: #fff; }
.board__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line-soft); }
.board__col { padding: 16px 20px; border-right: 1px solid var(--line-soft); }
.board__col:last-child { border-right: 0; }
.board__label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.board__value { font-weight: 600; }
.board__updated { font-size: 13px; color: var(--muted); }

.live-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: var(--live); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.live-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Empty state ---------- */

.empty {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r);
  border: 1.5px dashed var(--line); background: var(--surface-2);
}
.empty__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--lime); display: grid; place-items: center; color: var(--ink); }
.empty__icon .icon { width: 24px; height: 24px; }
.empty__title { font-weight: 700; font-size: 16px; }
.empty__text { color: var(--muted); font-size: 15px; margin-top: 4px; max-width: 60ch; }
.empty__link { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--lime); }
.empty--dark { background: transparent; border-color: var(--ink-line); }
.empty--dark .empty__text { color: var(--muted-light); }

/* ---------- Events ---------- */

.events { display: flex; flex-direction: column; gap: 20px; }
.events__competition { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.events__list { list-style: none; border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }

.event {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center;
  padding: 12px 14px; background: var(--surface);
}
.event + .event { border-top: 1px solid var(--line-soft); }
.event__when { font-size: 13px; color: var(--muted); line-height: 1.3; }
.event__time { font-variant-numeric: tabular-nums; }
.event__clock { display: block; margin-top: 4px; font-weight: 700; color: var(--live); font-variant-numeric: tabular-nums; }
.event__name { font-weight: 700; }
.event__status { font-size: 13px; color: var(--muted); }
.event__market { display: flex; flex-direction: column; gap: 4px; }
.event__market-name { font-size: 12px; color: var(--muted); text-align: right; }
.event__odds { display: flex; gap: 6px; }
.event__more { grid-column: 1 / -1; }
.event__more-toggle { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); list-style: none; }
.event__more-toggle::-webkit-details-marker { display: none; }
.event__more-body { display: grid; gap: 12px; padding-top: 12px; }
.event__market--extra .event__market-name { text-align: left; }
.event__market--extra .event__odds { flex-wrap: wrap; }

/* ---------- Odds button ---------- */

.odds {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 72px; min-height: 50px; padding: 5px 10px; border-radius: 10px;
  background: var(--surface-2); border: 1.5px solid var(--line-soft); text-align: center;
  transition: border-color .12s, background-color .12s;
}
.odds:hover { border-color: var(--ink); }
.odds:disabled { opacity: .5; cursor: not-allowed; }
.odds__label { font-size: 11.5px; color: var(--muted); max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odds__price { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.odds--selected { background: var(--lime); border-color: var(--ink); }
.odds--selected .odds__label { color: var(--ink); }

/* ---------- Racing (feed) ---------- */

.meetings { display: grid; gap: 18px; }
.meeting { border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.meeting__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft); }
.meeting__name { font-size: 18px; font-weight: 800; font-stretch: 80%; }
.meeting__date { font-size: 13px; color: var(--muted); }
.race + .race { border-top: 1px solid var(--line-soft); }
.race__summary { display: grid; grid-template-columns: 60px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; }
.race__summary::-webkit-details-marker { display: none; }
.race__time { font-weight: 800; font-variant-numeric: tabular-nums; grid-row: span 2; }
.race__name { font-weight: 600; }
.race__meta { font-size: 13px; color: var(--muted); grid-column: 2; }
.race__state { grid-column: 3; grid-row: 1 / span 2; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--paper-2); }
.race--result .race__state { background: var(--ink); color: #fff; }
.race__body { padding: 0 16px 16px; }
.race__terms { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.race__result { list-style: none; display: grid; gap: 6px; }
.race__placed { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; }
.race__pos { font-weight: 800; }
.race__sp { font-weight: 700; font-variant-numeric: tabular-nums; }

.runners { list-style: none; display: grid; }
.runner { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.runner__no { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; background: var(--paper-2); }
.runner__info { display: flex; flex-direction: column; min-width: 0; }
.runner__name { font-weight: 700; }
.runner__sub { font-size: 12.5px; color: var(--muted); }
.runner__nr { font-size: 12px; font-weight: 800; color: var(--red); }
.runner--nr .runner__name { text-decoration: line-through; color: var(--muted); }

.trap { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.trap--1 { background: #e4002b; }
.trap--2 { background: #0057b8; }
.trap--3 { background: #fff; color: #111; box-shadow: inset 0 0 0 1.5px #111; }
.trap--4 { background: #111; }
.trap--5 { background: #ff8200; color: #111; }
.trap--6 { background: repeating-linear-gradient(0deg, #111 0 5px, #fff 5px 10px); color: #e4002b; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }

/* ---------- Tiles (sports) ---------- */

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; }
.tiles__item { min-width: 0; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 22px; height: 100%; padding: 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); }
.tile__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; }
.tile__icon .icon { width: 26px; height: 26px; }
.tile__name { font-weight: 800; font-size: 18px; font-stretch: 82%; }
.tile__meta { font-size: 13px; color: var(--muted); margin-top: -18px; }
.tile--accent { background: var(--lime); border-color: var(--lime); }
.tile--accent .tile__icon { background: var(--surface); }

/* ---------- Flow (arrowed steps) ---------- */

.flow { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; counter-reset: flow; }
.flow__step {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: 15px;
}
.flow__num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-size: 13px; }
.flow--dark .flow__step { background: var(--ink-3); border-color: var(--ink-line); color: #fff; }
.flow--dark .flow__num { background: var(--lime); color: var(--ink); }
.flow--compact .flow__step { font-size: 14px; padding: 6px 14px 6px 6px; }
.flow--compact .flow__num { width: 24px; height: 24px; font-size: 12px; }

/* ---------- Timeline (vertical steps) ---------- */

.timeline { list-style: none; display: grid; gap: 0; position: relative; }
.timeline__item { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding-bottom: 28px; }
.timeline__item::before {
  content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: var(--line);
}
.timeline__item:last-child::before { display: none; }
.timeline__num {
  width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: var(--lime);
  display: grid; place-items: center; font-weight: 800; font-size: 20px; font-stretch: 75%;
}
.timeline__title { font-size: 20px; font-weight: 800; font-stretch: 82%; margin-top: 3px; }
.timeline__text { color: var(--muted); margin-top: 6px; max-width: 60ch; }
.timeline--dark .timeline__item::before { background: var(--ink-line); }
.timeline--dark .timeline__num { background: var(--lime); color: var(--ink); }
.timeline--dark .timeline__text { color: var(--muted-light); }

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { height: 100%; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.card__icon { width: 46px; height: 46px; border-radius: 13px; background: var(--lime); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon .icon { width: 24px; height: 24px; }
.card__title { font-size: 20px; font-weight: 800; font-stretch: 82%; line-height: 1.15; }
.card__text { margin-top: 8px; color: var(--muted); }
.card__text + .card__text { margin-top: 10px; }
.card__link { display: inline-flex; margin-top: 14px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--lime); }
.card__list { list-style: none; margin-top: 12px; display: grid; gap: 6px; }
.card__list-item { display: flex; gap: 8px; color: var(--muted); font-size: 15px; }
.card__list-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-top: 9px; flex: none; }
.card--dark { background: var(--ink-2); border-color: var(--ink-line); color: #fff; }
.card--dark .card__text { color: var(--muted-light); }
.card--flat { background: var(--surface-2); border-color: var(--line-soft); }

/* ---------- Split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split--wide { grid-template-columns: 1.3fr 1fr; }
.split--center { align-items: center; }

/* ---------- Article (long text on inner pages) ---------- */

.article { max-width: 760px; }
.article__title { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.08; font-weight: 800; font-stretch: 76%; margin: 44px 0 14px; }
.article__title:first-child { margin-top: 0; }
.article__subtitle { font-size: 20px; font-weight: 800; font-stretch: 84%; margin: 28px 0 8px; }
.article__text { margin-bottom: 14px; color: #2a2f36; }
.article__list { margin: 0 0 16px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.article__item { position: relative; padding-left: 22px; color: #2a2f36; }
.article__item::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--lime-2); }
.article__list--num { counter-reset: n; }
.article__list--num .article__item { counter-increment: n; padding-left: 34px; }
.article__list--num .article__item::before {
  content: counter(n); width: 24px; height: 24px; top: 0; left: 0; border-radius: 7px; background: var(--ink); color: var(--lime);
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.article__link { color: var(--ink); font-weight: 600; text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article__strong { font-weight: 700; }

/* ---------- Notice ---------- */

.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r);
  background: var(--lime-soft); border: 1px solid #d6ec8c;
}
.notice__icon { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.notice__title { font-weight: 800; }
.notice__text { color: #2f3a12; font-size: 15px; margin-top: 2px; }
.notice--dark { background: var(--ink-2); border-color: var(--ink-line); color: #fff; }
.notice--dark .notice__text { color: var(--muted-light); }
.notice--warn { background: var(--amber-soft); border-color: #f2d49a; }
.notice--warn .notice__text { color: #5d3a00; }
.notice--info { background: var(--blue-soft); border-color: #c5d3ff; }
.notice--info .notice__text { color: #1d2f66; }

/* ---------- Facts (definition lists) ---------- */

.facts { display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.facts__row { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 16px; padding: 12px 16px; }
.facts__row + .facts__row { border-top: 1px solid var(--line-soft); }
.facts__term { color: var(--muted); font-size: 14px; }
.facts__value { font-weight: 600; }
.facts__value a { color: inherit; }

/* ---------- Table ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table__th { text-align: left; padding: 12px 16px; background: var(--surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.table__td { padding: 13px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.table__td--num { font-variant-numeric: tabular-nums; font-weight: 700; }
.table__empty { padding: 28px 16px; text-align: center; color: var(--muted); border-top: 1px solid var(--line-soft); }

/* ---------- Status badges ---------- */

.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--required { background: var(--amber-soft); color: var(--amber); }
.status--pending { background: var(--blue-soft); color: var(--blue); }
.status--verified, .status--completed { background: var(--green-soft); color: var(--green); }
.status--declined, .status--cancelled { background: var(--red-soft); color: var(--red); }
.status--processing { background: var(--paper-2); color: var(--ink); }
.status--off { background: var(--paper-2); color: var(--muted); }

/* ---------- Trust / licence strip ---------- */

.licence { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.licence__logo { width: 150px; height: auto; }
.licence__title { font-size: 22px; font-weight: 800; font-stretch: 80%; }
.licence__text { color: var(--muted); margin-top: 6px; font-size: 15px; }
.licence__age { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 20px; font-stretch: 75%; }

/* ---------- Pay methods ---------- */

.paymethod { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.paymethod__logo { width: 64px; height: auto; padding: 10px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--line-soft); box-sizing: content-box; }
.paymethod__name { font-weight: 800; }
.paymethod__text { font-size: 14px; color: var(--muted); }

/* ---------- Games (casino) ---------- */

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 16px; list-style: none; }
.games--row { grid-template-columns: repeat(6, 1fr); }
.games__item { min-width: 0; }
.game-card { display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.game-card__media { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--paper-2); margin-bottom: 8px; }
.game-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.game-card__media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15, 18, 21, .08);
}
.game-card:hover .game-card__img { transform: scale(1.05); }
.game-card__title { font-weight: 700; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-card__studio { font-size: 13px; color: var(--muted); }

.casino-bar { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.casino-bar__inner { display: flex; gap: 12px; align-items: center; }
.casino-bar__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.casino-bar__chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip--active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip__count { opacity: .55; margin-left: 4px; font-weight: 500; }
.search { position: relative; width: 260px; flex: none; }
.search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search__input { width: 100%; height: 42px; padding: 0 14px 0 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.search__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime); }
.casino-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.casino-more { display: flex; justify-content: center; margin-top: 36px; }

/* Game page */
.game { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 48px; align-items: start; }
.game__cover { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1; background: var(--paper-2); }
.game__img { width: 100%; height: 100%; object-fit: cover; }
.game__labels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.game__label { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; }
.game__title { font-size: clamp(36px, 5vw, 60px); line-height: .98; font-weight: 800; font-stretch: 72%; letter-spacing: -.01em; }
.game__studio { margin-top: 8px; color: var(--muted); font-size: 17px; }
.game__text { margin-top: 18px; color: #2a2f36; font-size: 17px; max-width: 62ch; }
.game__text + .game__text { margin-top: 12px; }
.game__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.game__play { min-width: 200px; }
.game__play .icon { width: 18px; height: 18px; fill: currentColor; }
.game__hint { font-size: 14px; color: var(--muted); }
.game__facts { margin-top: 32px; max-width: 560px; }

/* Play gate */
.gate { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gate__media { position: relative; background: var(--ink); min-height: 100%; }
.gate__img { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: blur(2px) saturate(1.1); position: absolute; inset: 0; }
.gate__over { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 32px; color: #fff; min-height: 360px; }
.gate__game { font-size: 34px; line-height: 1; font-weight: 800; font-stretch: 72%; }
.gate__studio { color: var(--muted-light); }
.gate__lock { width: 54px; height: 54px; border-radius: 16px; background: var(--lime); color: var(--ink); display: grid; place-items: center; margin-bottom: auto; }
.gate__lock .icon { width: 26px; height: 26px; }
.gate__body { padding: 36px; }
.gate__title { font-size: 30px; line-height: 1.05; font-weight: 800; font-stretch: 76%; }
.gate__text { color: var(--muted); margin-top: 10px; }
.gate__form { margin-top: 24px; }
.gate__alt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gate__alt-text { font-weight: 600; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row--3 { grid-template-columns: 2fr 1fr 1fr; }
.form__group { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.form__legend { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 4px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form__status { font-size: 15px; font-weight: 600; }
.form__status--error { color: var(--red); }
.form__status--ok { color: var(--green); }
.form__small { font-size: 14px; color: var(--muted); }
.form__small a { color: var(--ink); font-weight: 700; }

.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field__label { font-size: 14px; font-weight: 700; }
.field__opt { font-weight: 500; color: var(--muted); }
.field__input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field__input::placeholder { color: #9aa0a8; }
.field__input:hover { border-color: #bdb8ad; }
.field__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime); }
.field__input--area { height: auto; min-height: 150px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field__input--select { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1215' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; padding-right: 40px; }
.field__input--file { height: auto; padding: 11px 12px; font-size: 14px; }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { font-size: 13.5px; color: var(--red); font-weight: 600; }
.field__error:empty { display: none; }
.field--invalid .field__input { border-color: var(--red); background: #fffafa; }
.field--valid .field__input { border-color: #7fb33a; }
.field__wrap { position: relative; }
.field__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 38px; padding: 0 10px;
  border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--muted); border-radius: 8px;
}
.field__toggle:hover { color: var(--ink); background: var(--surface-2); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check__box {
  appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid #a9a397; background: var(--surface);
  display: grid; place-items: center; cursor: pointer;
}
.check__box::after { content: ""; width: 11px; height: 6px; border: 2.5px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check__box:checked { background: var(--lime); border-color: var(--ink); }
.check__box:checked::after { opacity: 1; }
.check__box:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.check__text a { color: var(--ink); font-weight: 700; }
.check--invalid .check__box { border-color: var(--red); }

.pw-rules { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; font-size: 13px; color: var(--muted); }
.pw-rules__item { display: flex; align-items: center; gap: 6px; }
.pw-rules__item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.pw-rules__item--ok { color: var(--green); }
.pw-rules__item--ok::before { background: currentColor; }

.switch {
  appearance: none; flex: none; width: 46px; height: 28px; border-radius: 14px; background: #c9c4b8; position: relative; cursor: pointer; transition: background .2s;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch:checked { background: var(--ink); }
.switch:checked::after { transform: translateX(18px); background: var(--lime); }

.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-card { position: relative; }
.radio-card__input { position: absolute; opacity: 0; }
.radio-card__box { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; height: 100%; }
.radio-card__title { font-weight: 800; }
.radio-card__text { font-size: 13px; color: var(--muted); }
.radio-card__input:checked + .radio-card__box { border-color: var(--ink); background: var(--lime-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card__input:focus-visible + .radio-card__box { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Auth pages ---------- */

.auth { padding: 40px 0 72px; }
.auth__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: start; }
.auth__grid--narrow { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
.auth__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px; }
.auth__title { font-size: clamp(32px, 4vw, 44px); line-height: 1; font-weight: 800; font-stretch: 72%; }
.auth__lead { color: var(--muted); margin: 10px 0 28px; }
.auth__aside { position: sticky; top: calc(var(--header-h) + 20px); background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 32px; }
.auth__aside-title { font-size: 24px; font-weight: 800; font-stretch: 76%; margin-bottom: 22px; }
.auth__aside-note { margin-top: 8px; font-size: 14px; color: var(--muted-light); }
.auth__done { text-align: left; }
.auth__done-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--lime); display: grid; place-items: center; margin-bottom: 18px; }
.auth__done-icon .icon { width: 30px; height: 30px; }

.progress { list-style: none; display: grid; gap: 14px; }
.progress__step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.progress__dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink-line); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--muted-light); }
.progress__dot .icon { width: 16px; height: 16px; }
.progress__label { font-weight: 700; }
.progress__text { font-size: 14px; color: var(--muted-light); }
.progress__step--done .progress__dot { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.progress__step--current .progress__dot { border-color: var(--lime); color: var(--lime); }
.progress--light .progress__dot { border-color: var(--line); color: var(--muted); }
.progress--light .progress__text { color: var(--muted); }
.progress--light .progress__step--current .progress__dot { border-color: var(--ink); color: var(--ink); }

/* ---------- Account ---------- */

.account { padding: 32px 0 72px; }
.account__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.account__hello { font-size: clamp(30px, 4vw, 42px); font-weight: 800; font-stretch: 72%; line-height: 1; }
.account__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 14px; }
.account__balance { display: flex; gap: 24px; padding: 14px 20px; border-radius: var(--r); background: var(--ink); color: #fff; }
.account__bal-label { font-size: 12px; color: var(--muted-light); text-transform: uppercase; letter-spacing: .06em; }
.account__bal-value { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.account__grid { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.account__nav { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; }
.account__nav-list { list-style: none; display: grid; gap: 2px; }
.account__nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; }
.account__nav-link:hover { background: var(--surface-2); }
.account__nav-link--active { background: var(--ink); color: #fff; }
.account__nav-link .icon { width: 18px; height: 18px; }
.account__logout { width: 100%; border: 0; background: none; margin-top: 4px; border-top: 1px solid var(--line-soft); border-radius: 0 0 10px 10px; color: var(--red); }
.account__panel { display: grid; gap: 20px; min-width: 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel__title { font-size: 26px; font-weight: 800; font-stretch: 76%; line-height: 1.05; }
.panel__subtitle { font-size: 18px; font-weight: 800; font-stretch: 84%; margin-bottom: 12px; }
.panel__text { color: var(--muted); margin-bottom: 16px; max-width: 64ch; }
.panel__tabs { display: flex; gap: 6px; margin-bottom: 16px; }

/* ---------- Doc (legal) ---------- */

.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding: 44px 0 80px; align-items: start; }
.doc__toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; font-size: 14px; }
.doc__toc-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.doc__toc-list { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.doc__toc-link { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.doc__toc-link:hover { color: var(--ink); }
.doc__toc-link--active { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }
.doc__content { max-width: 780px; }
.doc__updated { display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 18px; padding: 4px 10px; border-radius: 6px; background: var(--paper-2); }
.doc__lead { font-size: 19px; color: #2a2f36; margin-bottom: 14px; }
.doc__section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.doc__title { font-size: clamp(24px, 3vw, 30px); line-height: 1.1; font-weight: 800; font-stretch: 78%; margin-bottom: 14px; }
.doc__subtitle { font-size: 18px; font-weight: 800; font-stretch: 86%; margin: 22px 0 8px; }
.doc__text { margin-bottom: 12px; color: #2a2f36; }
.doc__list { list-style: none; margin: 0 0 14px; display: grid; gap: 8px; }
.doc__item { position: relative; padding-left: 22px; color: #2a2f36; }
.doc__item::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--lime-2); }
.doc__list--num { counter-reset: d; }
.doc__list--num > .doc__item { counter-increment: d; padding-left: 32px; }
.doc__list--num > .doc__item::before { content: counter(d) "."; background: none; width: auto; height: auto; top: 0; left: 4px; font-weight: 800; color: var(--ink); }
.doc__note { padding: 14px 18px; border-radius: var(--r); background: var(--lime-soft); border: 1px solid #d6ec8c; margin: 14px 0; color: #28310d; }
.doc__strong { font-weight: 700; }
.doc__link { color: var(--ink); font-weight: 600; text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc__table-wrap { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.doc__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc__th { text-align: left; padding: 11px 14px; background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.doc__td { padding: 11px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; }

/* ---------- FAQ / Help ---------- */

.help-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; }
.help-cat { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, transform .2s var(--ease); }
.help-cat:hover { border-color: var(--ink); transform: translateY(-2px); }
.help-cat__title { font-weight: 800; font-stretch: 84%; font-size: 17px; }
.help-cat__text { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.help-cat__count { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--muted); }

.faq { display: grid; gap: 40px; }
.faq__group { scroll-margin-top: calc(var(--header-h) + 80px); }
.faq__title { font-size: 28px; font-weight: 800; font-stretch: 76%; margin-bottom: 14px; }
.faq__list { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.faq__item + .faq__item { border-top: 1px solid var(--line-soft); }
.faq__question {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 17px;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1215' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") no-repeat center / 16px;
  transition: transform .2s var(--ease);
}
.faq__item[open] .faq__question::after { transform: rotate(45deg); background-color: var(--lime); }
.faq__answer { padding: 0 22px 20px; max-width: 72ch; }
.faq__text { color: #2a2f36; }
.faq__text + .faq__text { margin-top: 10px; }
.faq__list-inner, .faq__list--inner { margin: 8px 0; }
.faq__item-text { margin-left: 20px; color: #2a2f36; list-style: disc; }
.faq__link { color: var(--ink); font-weight: 600; text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.faq__strong { font-weight: 700; }
ul.faq__list:not(details *) { border: 0; }

/* ---------- Contact ---------- */

.contact-card { display: grid; gap: 18px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line__icon { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--paper); display: grid; place-items: center; }
.contact-line__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-line__value { font-weight: 700; }
.contact-line__value a { color: inherit; }

/* ---------- Tools (RG) ---------- */

.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.support-orgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.org { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.org__logo { height: 34px; width: auto; object-fit: contain; object-position: left; }
.org__logo-box { display: flex; align-items: center; gap: 10px; height: 34px; }
.org__logo-dark { background: var(--ink); border-radius: 8px; padding: 4px; width: 34px; height: 34px; }
.org__logo-name { font-weight: 800; font-size: 20px; }
.org__text { color: var(--muted); font-size: 15px; }
.org__link { margin-top: auto; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--lime); align-self: flex-start; }

/* ---------- Odds table (how to bet) ---------- */

.convert { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; list-style: none; }
.convert__item { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.convert__frac { display: block; font-size: 22px; font-weight: 800; font-stretch: 80%; }
.convert__dec { display: block; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Message format ---------- */

.msgfmt { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; list-style: none; }
.msgfmt__item { padding: 16px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--ink-line); }
.msgfmt__key { display: inline-block; padding: 2px 8px; border-radius: 6px; border: 1.5px dashed rgba(200, 240, 60, .6); color: var(--lime); font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.msgfmt__text { font-size: 14px; color: var(--muted-light); }

.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.channel { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); height: 100%; }
.channel__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); }
.channel__icon .icon { width: 26px; height: 26px; }
.channel__name { font-size: 20px; font-weight: 800; font-stretch: 82%; }
.channel__text { color: var(--muted); font-size: 15px; }
.channel__status { margin-top: auto; }

/* ---------- Complaints steps ---------- */

.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; counter-reset: st; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.stages__item { counter-increment: st; padding: 22px; border-right: 1px solid var(--line-soft); }
.stages__item:last-child { border-right: 0; }
.stages__item::before { content: "Stage " counter(st); display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.stages__title { font-size: 19px; font-weight: 800; font-stretch: 82%; }
.stages__text { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- 404 ---------- */

.notfound { padding: 90px 0; text-align: center; }
.notfound__code { font-size: 140px; line-height: .9; font-weight: 800; font-stretch: 62%; color: var(--ink); }
.notfound__title { font-size: 30px; font-weight: 800; font-stretch: 76%; margin-top: 10px; }
.notfound__text { color: var(--muted); margin: 10px auto 26px; max-width: 46ch; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: var(--muted-light); padding: 64px 0 36px; font-size: 14.5px; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--ink-line); }
.footer__about { margin-top: 16px; max-width: 34ch; }
.footer__contact { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.footer__mail { color: #fff; text-decoration: none; font-weight: 600; }
.footer__mail:hover { text-decoration: underline; }
.footer__heading { color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer__list { list-style: none; display: grid; gap: 8px; }
.footer__link { color: var(--muted-light); text-decoration: none; }
.footer__link:hover { color: #fff; }
.footer__link--btn { background: none; border: 0; padding: 0; font-size: inherit; text-align: left; }
.footer__logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding: 30px 0; border-bottom: 1px solid var(--ink-line); }
.footer__logo-link { display: flex; align-items: center; gap: 8px; text-decoration: none; opacity: .8; transition: opacity .15s; }
.footer__logo-link:hover { opacity: 1; }
.footer__logo { height: 22px; width: auto; filter: brightness(0) invert(1); }
.footer__logo--gc { height: 34px; }
.footer__logo--ibas { height: 30px; filter: none; }
.footer__logo--gamstop { filter: invert(1); }
.footer__logo--icon { height: 26px; filter: none; }
.footer__logo--visa { height: 18px; filter: none; background: #fff; padding: 5px 7px; border-radius: 4px; box-sizing: content-box; }
.footer__logo-text { color: #fff; font-weight: 700; font-size: 16px; }
.footer__legal { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 24px; padding-top: 28px; font-size: 13.5px; }
.footer__legal-text { line-height: 1.6; }
.footer__copy { white-space: nowrap; }
.age-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; color: #fff; font-weight: 800; font-size: 11px; margin-right: 6px; vertical-align: middle; }

/* ---------- Bet slip ---------- */

.slip { position: fixed; inset: 0 0 0 auto; z-index: 110; width: 400px; max-width: 100%; pointer-events: none; }
.slip__panel {
  height: 100%; display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform .3s var(--ease); pointer-events: auto;
}
.slip--open .slip__panel { transform: none; }
.slip__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--ink); color: #fff; }
.slip__title { font-size: 20px; font-weight: 800; font-stretch: 80%; display: flex; align-items: center; gap: 10px; }
.slip__count { min-width: 26px; height: 26px; border-radius: 13px; padding: 0 7px; background: var(--lime); color: var(--ink); font-size: 14px; display: inline-grid; place-items: center; }
.slip__close { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--ink-3); color: #fff; display: grid; place-items: center; }
.slip__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.slip__empty { text-align: center; padding: 40px 10px; }
.slip__empty-icon { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--muted); }
.slip__empty-title { font-weight: 800; font-size: 18px; }
.slip__empty-text { color: var(--muted); font-size: 15px; margin: 6px 0 14px; }
.slip__empty-link { font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--lime); }
.slip__list { list-style: none; display: grid; gap: 12px; }
.slip__item { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.slip__item-top { display: flex; gap: 10px; align-items: flex-start; }
.slip__item-main { flex: 1; min-width: 0; }
.slip__sel { font-weight: 800; }
.slip__market { font-size: 13px; color: var(--muted); }
.slip__event { font-size: 13px; color: var(--muted); }
.slip__price { font-weight: 800; font-variant-numeric: tabular-nums; padding: 3px 9px; border-radius: 7px; background: var(--lime); }
.slip__remove { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); display: grid; place-items: center; }
.slip__remove:hover { background: var(--paper-2); color: var(--ink); }
.slip__remove .icon { width: 16px; height: 16px; }
.slip__stake { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.slip__stake-field { position: relative; flex: 1; }
.slip__stake-prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.slip__stake-input { width: 100%; height: 44px; padding: 0 12px 0 26px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-variant-numeric: tabular-nums; }
.slip__stake-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime); }
.slip__ret { font-size: 13px; color: var(--muted); text-align: right; line-height: 1.3; }
.slip__ret-value { display: block; color: var(--ink); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.slip__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.slip__totals { display: grid; gap: 6px; margin-bottom: 12px; }
.slip__row { display: flex; justify-content: space-between; }
.slip__row--strong { font-weight: 800; font-size: 17px; }
.slip__term { color: var(--muted); }
.slip__row--strong .slip__term { color: var(--ink); }
.slip__value { font-variant-numeric: tabular-nums; font-weight: 700; }
.slip__msg { font-size: 14px; font-weight: 600; color: var(--red); margin-bottom: 10px; }
.slip__msg:empty { display: none; }
.slip__msg a { color: inherit; }
.slip__clear { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; }

.overlay { position: fixed; inset: 0; z-index: 105; background: rgba(10, 12, 15, .45); }

/* ---------- Age gate ---------- */

.age-gate { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(10, 12, 15, .9); backdrop-filter: blur(6px); }
.age-gate__box { width: 100%; max-width: 480px; background: var(--surface); border-radius: var(--r-xl); padding: 36px 32px; text-align: center; box-shadow: var(--shadow-lg); }
.age-gate__badge { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; border: 4px solid var(--ink); font-size: 26px; font-weight: 800; font-stretch: 72%; margin-bottom: 18px; background: var(--lime); }
.age-gate__title { font-size: 32px; line-height: 1.05; font-weight: 800; font-stretch: 74%; }
.age-gate__text { color: var(--muted); margin: 12px 0 24px; }
.age-gate__actions { display: grid; gap: 10px; }
.age-gate__under { margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--red-soft); color: #6d1810; font-size: 15px; }
.age-gate__link { color: inherit; font-weight: 700; }

/* ---------- Cookie banner ---------- */

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; display: flex; justify-content: center; pointer-events: none; }
.cookie__inner {
  pointer-events: auto; width: 100%; max-width: 980px; display: flex; gap: 20px; align-items: center; padding: 18px 20px;
  background: var(--ink-2); color: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--ink-line);
}
.cookie__text { font-size: 14.5px; color: #d5dae0; flex: 1; }
.cookie__link { color: #fff; font-weight: 700; }
.cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; }
.cookie__manage { background: none; border: 0; color: #fff; text-decoration: underline; font-size: 14px; font-weight: 600; padding: 8px; }

/* ---------- Modal ---------- */

.modal { position: fixed; inset: 0; z-index: 310; display: grid; place-items: center; padding: 16px; background: rgba(10, 12, 15, .6); }
.modal__box { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.modal__title { font-size: 24px; font-weight: 800; font-stretch: 78%; }
.modal__close { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--surface-2); display: grid; place-items: center; }
.modal__body { padding: 8px 24px; }
.modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 16px 24px 22px; border-top: 1px solid var(--line-soft); }

.pref { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; cursor: pointer; }
.pref + .pref { border-top: 1px solid var(--line-soft); }
.pref__text { display: flex; flex-direction: column; }
.pref__name { font-weight: 800; }
.pref__desc { font-size: 14px; color: var(--muted); }
.pref__always { font-size: 13px; font-weight: 700; color: var(--green); white-space: nowrap; }

/* ---------- Toast ---------- */

.toast { position: fixed; left: 50%; bottom: calc(24px + var(--tabbar-h)); transform: translateX(-50%); z-index: 400; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast__item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); animation: toast-in .25s var(--ease); pointer-events: auto; }
.toast__item::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }
.toast__item--error::before { background: var(--live); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .nav__link { padding: 0 9px; font-size: 14.5px; }
  .header__inner { gap: 18px; }
  .footer__top { grid-template-columns: repeat(4, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .help-cats { grid-template-columns: repeat(4, 1fr); }
  .games--row { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .topbar__nav { display: none; }
  .nav { display: none; }
  .header__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .split, .split--wide { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .tools, .support-orgs, .channels { grid-template-columns: repeat(2, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc__toc { position: static; max-height: none; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
  .doc__toc-list { columns: 2; column-gap: 24px; display: block; border: 0; }
  .doc__toc-link { padding-left: 0; border: 0; margin: 0; }
  .auth__grid, .auth__grid--narrow { grid-template-columns: minmax(0, 1fr); }
  .auth__aside { position: static; }
  .account__grid { grid-template-columns: minmax(0, 1fr); }
  .account__nav { position: static; padding: 6px; overflow-x: auto; }
  .account__nav-list { display: flex; gap: 4px; }
  .account__nav-link { white-space: nowrap; }
  .account__logout { width: auto; margin: 0; border: 0; border-radius: 10px; }
  .game { grid-template-columns: 1fr; gap: 28px; }
  .game__cover { max-width: 380px; }
  .gate { grid-template-columns: 1fr; }
  .gate__over { min-height: 220px; }
  .msgfmt { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stages__item:nth-child(2) { border-right: 0; }
  .stages__item:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .footer__legal { grid-template-columns: 1fr 1fr; }
  .licence { grid-template-columns: auto 1fr; }
  .licence__age { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 58px; --tabbar-h: 64px; }
  .container { padding: 0 16px; }
  .topbar__note { font-size: 12px; }
  .header__login, .slip-toggle { display: none; }
  .header__account-name { display: none; }
  .logo__word { font-size: 19px; }
  .logo__mark { width: 30px; height: 30px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
  .section__head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .section__lead { font-size: 17px; }
  .page-hero { padding: 24px 0 32px; }
  .page-hero__lead { font-size: 17px; }
  .hero { padding: 40px 0 56px; }
  .hero__lead { font-size: 17px; }
  .hero__actions .btn { flex: 1; }
  .cards, .cards--2, .cards--4, .tools, .support-orgs, .channels { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .form__row, .form__row--3 { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .event { grid-template-columns: 58px 1fr; gap: 10px 12px; }
  .event__market { grid-column: 1 / -1; }
  .event__market-name { text-align: left; }
  .event__odds .odds { flex: 1; min-width: 0; }
  .games { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .games--row { grid-template-columns: repeat(2, 1fr); }
  .casino-bar__inner { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .casino-bar__chips { order: 2; }
  .help-cats { grid-template-columns: repeat(2, 1fr); }
  .doc__toc-list { columns: 1; }
  .auth__card, .panel, .gate__body { padding: 22px; }
  .auth { padding: 24px 0 48px; }
  .account__balance { width: 100%; justify-content: space-between; }
  .msgfmt { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .stages__item { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .stages__item:last-child { border-bottom: 0; }
  .facts__row { grid-template-columns: 1fr; gap: 2px; }
  .licence { grid-template-columns: 1fr; padding: 22px; gap: 16px; }
  .footer { padding: 48px 0 28px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer__legal { grid-template-columns: 1fr; gap: 14px; }
  .footer__logos { gap: 18px 24px; }
  .cookie { bottom: calc(var(--tabbar-h) + 10px); left: 10px; right: 10px; }
  .cookie__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .cookie__actions .btn { flex: 1; }
  .slip { width: 100%; inset: auto 0 0 0; height: 88vh; }
  .slip__panel { transform: translateY(105%); border-radius: 22px 22px 0 0; overflow: hidden; }
  .slip--open .slip__panel { transform: none; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(5, 1fr);
    height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom); background: var(--ink); border-top: 1px solid var(--ink-line);
  }
  .tabbar__link {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted-light); text-decoration: none; font-size: 11px; font-weight: 600; background: none; border: 0;
  }
  .tabbar__icon { width: 22px; height: 22px; }
  .tabbar__link--active { color: var(--lime); }
  .tabbar__count {
    position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center;
  }
  .tabbar__count--empty { display: none; }
}

@media (max-width: 380px) {
  .header__actions .btn--primary { padding: 0 12px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { padding: 14px; }
  .footer__top { grid-template-columns: 1fr; }
}

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

/* ---------- Spacing helpers (BEM elements/modifiers) ---------- */

.section__block { margin-top: 32px; }
.section__lead--ink { color: #2f3a12; }
.hero__actions--flat { margin: 0; }
.stack { display: grid; gap: 12px; }
.stack--lg { gap: 20px; }

/* ---------- Sportsbook layout ---------- */

.sportsbook { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.sportsbook__main { min-width: 0; }
.sportsbook__side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.sportsbook__sport { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; font-stretch: 80%; margin: 8px 0 12px; }
.sportsbook__sport:not(:first-child) { margin-top: 28px; }
.card__list-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.card__list-link:hover { text-decoration: underline; }
.card__link--light { color: #fff; }
.card .flow { margin: 12px 0 4px; }
@media (max-width: 1024px) {
  .sportsbook { grid-template-columns: 1fr; }
  .sportsbook__side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* ---------- Race list ---------- */

.race-list { list-style: none; display: grid; }
.race-list__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 2px 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); align-items: center; }
.race-list__item:first-child { border-top: 0; }
.race-list__time { font-weight: 800; font-variant-numeric: tabular-nums; grid-row: span 2; }
.race-list__course { font-weight: 700; }
.race-list__name { grid-column: 2; font-size: 13px; color: var(--muted); }
.race-list__runners, .race-list__winner { grid-column: 3; grid-row: 1 / span 2; font-size: 13px; color: var(--muted); }
.race-list__sp { color: var(--ink); }

/* ---------- Trap list, generic link ---------- */

.traps { list-style: none; display: grid; gap: 10px; align-content: start; }
.traps__item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-soft); font-weight: 600; }
.traps__item .trap { width: 38px; height: 38px; font-size: 18px; }
.link { color: var(--ink); font-weight: 600; text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--ink); }
.section--dark .link { color: #fff; }

/* ---------- Page-level hero variant, misc ---------- */

.hero--page { padding: 40px 0 64px; }
.hero--page .hero__title { font-size: clamp(44px, 6.5vw, 80px); }
.crumbs--light .crumbs__link, .crumbs--light .crumbs__current, .crumbs--light .crumbs__item { color: var(--muted-light); }
.crumbs--light .crumbs__link:hover { color: #fff; }
.table__strong { font-weight: 800; }
.channels__item, .cards__item { min-width: 0; }
.split__main { min-width: 0; }

/* ---------- Steps (numbered list inside cards) ---------- */

.steps { list-style: none; counter-reset: s; display: grid; gap: 0; margin-top: 18px; }
.steps__item { counter-increment: s; position: relative; display: grid; gap: 2px; padding: 12px 0 12px 44px; border-top: 1px solid var(--line-soft); }
.steps__item::before {
  content: counter(s); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: var(--lime); display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.steps__name { font-weight: 800; }
.steps__text { color: var(--muted); font-size: 15px; }
.steps--dark .steps__item { border-top-color: var(--ink-line); }
.steps--dark .steps__item::before { background: var(--lime); color: var(--ink); }
.steps--dark .steps__text { color: var(--muted-light); }

/* ---------- Ticks list ---------- */

.ticks { list-style: none; display: grid; gap: 10px; }
.ticks__item { position: relative; padding-left: 32px; }
.ticks__item::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--lime)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1215' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 14px;
}
.section--dark .ticks__item { color: #d5dae0; }

.card__logo { height: 24px; width: auto; margin: 11px 0 29px; }
.tools__item, .support-orgs__item { min-width: 0; }
.support-orgs--stack { grid-template-columns: 1fr; }
.note { font-size: 14px; color: var(--muted); }
.facts__link { color: inherit; text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.notice__link { color: inherit; font-weight: 700; }
.contact-line__link { color: inherit; }
.contact-line__body { min-width: 0; }

/* ---------- Help layout ---------- */

.help-cats__item { min-width: 0; }
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-top: 12px; }
.help-layout__side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
@media (max-width: 1024px) { .help-layout { grid-template-columns: 1fr; } .help-layout__side { position: static; } }

/* ---------- Auth / gate extras ---------- */

.auth__link, .form__link, .check__link { color: var(--ink); font-weight: 700; text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.auth__strong { font-weight: 800; color: var(--ink); }
.auth__badge { display: inline-block; vertical-align: middle; margin-right: 6px; width: 22px; height: 22px; }
.auth__done-actions { margin-top: 26px; }
.auth__aside .ticks { margin-bottom: 18px; }
.auth__aside .ticks__item { color: #d5dae0; }
.progress__body { min-width: 0; }
.gate__status { margin-top: 16px; font-weight: 600; }
.gate__steps { margin-top: 22px; }

/* ---------- Account extras ---------- */

.account__intro { min-width: 0; }
.account__id { font-variant-numeric: tabular-nums; }
.account__nav-item { flex: none; }
.panel__note { margin-top: 14px; }
.panel__strong { font-weight: 800; color: var(--ink); }
.panel__actions { margin-top: 20px; }
.panel__method { margin-bottom: 16px; }
.panel__form { margin-top: 18px; }
.panel .notice + .panel__form { margin-top: 18px; }
.panel .progress { margin-top: 6px; }
.panel + .notice, .notice + .panel { margin-top: 0; }
.wallet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wallet__item { padding: 18px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-soft); }
.wallet__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.wallet__value { font-size: 26px; font-weight: 800; font-stretch: 80%; font-variant-numeric: tabular-nums; }
.radio-cards--2 { grid-template-columns: repeat(2, 1fr); }
.field--inline { max-width: 280px; }
.pref--flat { padding-top: 0; }
.card--link { display: flex; flex-direction: column; text-decoration: none; transition: border-color .15s; }
.card--link:hover { border-color: var(--ink); }
.card--link .card__text { font-size: 15px; }
@media (max-width: 760px) {
  .wallet, .radio-cards--2 { grid-template-columns: 1fr; }
}
.account__panel { grid-template-columns: minmax(0, 1fr); }
.panel { min-width: 0; }

/* ---------- Studios list (casino) ---------- */

.studios { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.studios__item { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.studios__name { font-weight: 600; }
.studios__count { color: var(--muted); font-variant-numeric: tabular-nums; }
.hero__link { color: #fff; }
@media (max-width: 760px) {
  .games--row .games__item:nth-child(n+7) { display: none; }
  .studios { grid-template-columns: 1fr; }
}
