@charset "UTF-8";
/* ==========================================================================
   RMTGG — дизайн-система
   Концепция: «торговый терминал» — плотная информация, тонкие линии,
   табличные цифры, один акцент. Никаких градиентов и теней-подсветок.
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  /* Поверхности (тёмная тема — основная) */
  --bg:            #0B0C0E;
  --bg-sunken:     #08090B;
  --surface:       #111316;
  --surface-2:     #161A1E;
  --surface-3:     #1D2228;
  --hover:         #191D22;

  /* Линии
     Было #22262C/#2E343C — контраст к фону всего ~1.3:1/1.56:1, границы
     карточек, инпутов и .btn--ghost визуально пропадали. Подняли до
     ~1.78:1/2.51:1: линии остаются тонкими, но уже читаются как граница,
     а не шум. Полные 3:1 (WCAG 1.4.11 для непрерывного текста) здесь не
     нужны — это фон-разделители, а не единственный признак элемента. */
  --line:          #363D46;
  /* Рамка поля ввода — элемент управления: норма 3:1 к подложке карточки */
  --line-strong:   #5D6672;
  --line-faint:    #1A1D22;

  /* Текст */
  --fg:            #ECEEF1;
  --fg-2:          #A6AEB9;
  /* Подписи и подсказки. Формальный минимум 4.5 мелкий шрифт вытягивает
     с трудом, поэтому держим ~6:1 — читается спокойно, но остаётся
     подписью, а не вторым основным текстом */
  --fg-3:          #89929D;
  --fg-inverse:    #0B0C0E;

  /* Акцент — фиолетовый.
     Синий на площадках объявлений примелькался: им пользуются и биржи, и
     маркетплейсы, и половина интерфейсов вокруг. Фиолетовый ближе к
     игровой среде, узнаётся как «наш» цвет и при этом даёт лучший контраст
     из проверенных вариантов: белый на заливке 5.95, ссылки 7.3–8.5 */
  --accent:        #6D3FE8;
  --accent-hi:     #8257FF;
  --accent-lo:     #5A2FC9;
  --accent-fg:     #FFFFFF;      /* текст на акцентной заливке */
  --accent-ink:    #B49CFF;      /* акцент как ЦВЕТ ТЕКСТА на тёмном фоне */
  --accent-soft:   rgba(109, 63, 232, 0.16);
  --accent-line:   rgba(109, 63, 232, 0.38);

  /* Статусы */
  --ok:            #3DD68C;
  --ok-soft:       rgba(61, 214, 140, 0.10);
  --warn:          #F0B23C;
  --warn-soft:     rgba(240, 178, 60, 0.10);
  --danger:        #F26D6D;
  --danger-soft:   rgba(242, 109, 109, 0.10);
  --info:          #5AB3F0;
  --info-soft:     rgba(90, 179, 240, 0.10);

  /* Типографика */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "Cascadia Mono",
          Consolas, "Liberation Mono", monospace;

  /* Ритм */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --r-pill: 999px;

  --shell: 1280px;
  --gutter: 24px;
  --header-h: 60px;

  --t: 140ms cubic-bezier(0.2, 0, 0.2, 1);
}

/* Светлая тема — основная */
:root[data-theme="light"] {
  --bg:            #FBFBFC;
  --bg-sunken:     #F2F3F5;
  --surface:       #FFFFFF;
  --surface-2:     #F7F8F9;
  --surface-3:     #EFF1F3;
  --hover:         #F3F4F6;
  /* См. комментарий у :root — контраст к фону поднят с ~1.2:1/1.37:1
     до ~1.65:1/2.05:1 */
  /* Границы полей и кнопок читаются сами по себе: для элементов управления
     норма 3:1, а не 4.5:1 как у текста */
  --line:          #B0B9C4;
  --line-strong:   #868F9C;
  --line-faint:    #E7EAEE;
  --fg:            #14171B;
  /* Серый на белом «плывёт» сильнее, чем на тёмном: вторичный текст держим
     около 7.5:1, подсказки — около 6:1. Цвета тем намеренно разные */
  --fg-2:          #4A5361;
  --fg-3:          #586170;
  --fg-inverse:    #FFFFFF;
  --accent-fg:     #FFFFFF;
  /* На белом тот же фиолетовый берём глубже: светлый вариант с тёмной темы
     на белом фоне почти не читается */
  --accent-ink:    #5B2BD9;
  --accent-soft:   rgba(109, 63, 232, 0.09);
  --accent-line:   rgba(109, 63, 232, 0.28);

  /* Статусные цвета подобраны под тёмный фон (контраст к белому у #3DD68C —
     1.8:1, у #F0B23C — 1.8:1, у #F26D6D — 2.8:1: как обычный текст на
     светлой теме почти нечитаемы — .error-text, .label__req, статусы
     "в сети"/"оплачено" и т.п. держатся на этих же токенах).
     Для светлой темы переопределяем на затемнённые варианты той же
     палитры — контраст к белому/светлому фону 5.2–6.4:1, WCAG AA. Мягкие
     *-soft подложки (rgba) не трогаем — оттенок плашек остаётся прежним,
     меняется только читаемость текста/иконок поверх них. */
  --ok:            #0E7A43;
  --warn:          #8A5A00;
  --danger:        #C22E2E;
  --info:          #1868B0;
}

/* ---------- 2. Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--accent); color: var(--accent-fg); }

/* Скроллбар */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--bg);
  border-radius: var(--r-pill);
}
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- 3. Утилиты ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.muted { color: var(--fg-2); }
.dim   { color: var(--fg-3); }

.stack { display: flex; flex-direction: column; }
.row   { display: flex; align-items: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.btn:active { transform: translateY(0.5px); }

.btn--primary { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.btn--primary:hover { background: var(--accent-hi); }

/* Граница на var(--line) почти не видна (контраст к фону ~1.3–1.6:1) —
   вторичная кнопка выглядела нежатой. var(--line-strong) даёт границу,
   которую видно сразу, а не только при наведении. */
.btn--ghost { border-color: var(--line-strong); color: var(--fg); }
.btn--ghost:hover { background: var(--hover); border-color: var(--accent-line); }

.btn--quiet { color: var(--fg-2); }
.btn--quiet:hover { color: var(--fg); background: var(--hover); }

.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- 5. Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__bar {
  /* поиска в шапке нет — логотип слева, действия справа */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.header__bar > .header__actions { grid-column: 3; }

/* Логотип
   Раньше — сплошной var(--fg): по контрасту всё в порядке (16–17:1), но
   рядом с обычным текстом смотрелся блёкло, не как отдельный знак бренда.
   Добавили лёгкий градиент в фирменный синий (текст остаётся читаемым —
   заливка везде темнее/светлее фона так же, как обычный var(--fg)) и
   акцентную точку сплошным цветом. */
/* Логотип — только шрифт, никаких картинок и подложек. Название разбито
   по смыслу: «rmt» — торговля, «gg» — игры. Разный вес и цвет делают из
   обычного слова знак, который читается и в 19px, и в 15px на телефоне */
.logo { display: inline-flex; flex-direction: column; line-height: 1.02; }
.logo__word {
  font-size: 23px;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.logo__rmt {
  font-weight: 800;
  color: var(--fg);
}
.logo__gg {
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent) 10%, var(--accent-hi) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);   /* запасной цвет там, где нет background-clip */
}
.logo__dot {
  font-weight: 800;
  color: var(--accent);
  transition: color var(--t);
}
.logo:hover .logo__dot { color: var(--accent-hi); }
.logo__tld {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-3);
}

/* Слоган-плашка справа от логотипа — раньше это место (колонка 1fr между
   логотипом и действиями) пустовало. Ссылка на реферальную программу:
   комиссия площадки 5% вместо стандартных 25%, реферал приносит 1%
   пожизненно. На узких экранах убирается (см. адаптив), чтобы не мешать
   логотипу и кнопкам входа. */
.promo-pill {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: fit-content;
  padding: 5px 13px 5px 5px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  transition: border-color var(--t), background var(--t);
}
.promo-pill:hover, .promo-pill:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 60%, var(--accent) 15%);
}
.promo-pill__badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
/* Две строки: сверху довод, ради которого сюда приходят, снизу — что с
   этого получит сам человек. Обе усечены многоточием, чтобы длинный
   перевод не растянул шапку */
.promo-pill__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.promo-pill__lead,
.promo-pill__sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.promo-pill__lead {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.promo-pill__sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-2);
}

/* Поиск в шапке */
.search {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--t), background var(--t);
}
.search:focus-within { border-color: var(--line-strong); background: var(--surface-2); }
.search__icon { flex: none; margin-left: 12px; color: var(--fg-3); }
.search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  background: none;
  border: 0;
  font-size: 13.5px;
  outline: 0;
}
.search__input::placeholder { color: var(--fg-3); }
.search__kbd {
  flex: none;
  margin-right: 8px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-3);
}

.header__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--fg-2);
  transition: background var(--t), color var(--t);
}
.icon-btn:hover { background: var(--hover); color: var(--fg); }

/* Навигация под шапкой */
.subnav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.subnav__inner { display: flex; align-items: center; gap: 4px; height: 42px; overflow-x: auto; }
.subnav__inner::-webkit-scrollbar { display: none; }

.subnav__link {
  position: relative;
  padding: 0 12px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  color: var(--fg-2);
  white-space: nowrap;
  transition: color var(--t);
}
.subnav__link:hover { color: var(--fg); }
.subnav__link.is-active { color: var(--fg); font-weight: 550; }
.subnav__link.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.subnav__sep { width: 1px; height: 18px; background: var(--line); margin-inline: 8px; flex: none; }

/* ---------- 6. Лента сделок (фирменный элемент) ---------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunken);
  overflow: hidden;
}
.ticker__inner { display: flex; align-items: center; height: 34px; gap: 0; }

.ticker__label {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-right: 16px;
  margin-right: 16px;
  border-right: 1px solid var(--line);
  height: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 var(--ok);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.ticker__track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-3);
}
.ticker__game { color: var(--fg-2); }
.ticker__price { color: var(--fg); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .pulse { animation: none; }
}

/* ---------- 7. Герой ---------- */
.hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
/* Главная — это каталог: место отдаём играм, а не заглавной картинке */
.hero--slim { padding: 34px 0 26px; }
.hero--slim .hero__title { font-size: clamp(24px, 2.6vw, 32px); max-width: 28ch; }
.hero--slim .hero__lead { font-size: 14px; margin-top: 10px; }
.hero--slim .bigsearch { margin-top: 18px; max-width: 620px; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  align-items: end;
  gap: 48px;
}

.hero__title {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 22ch;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--accent-ink); }

.hero__lead {
  margin-top: 16px;
  max-width: 52ch;
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.6;
}

/* Крупный поиск */
.bigsearch {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 620px;
  height: 50px;
  padding: 0 6px 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color var(--t);
}
.bigsearch:focus-within { border-color: var(--accent-line); }
.bigsearch__input {
  flex: 1; min-width: 0; height: 100%;
  background: none; border: 0; outline: 0;
  font-size: 15px;
}
.bigsearch__input::placeholder { color: var(--fg-3); }

.hero__suggest { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.suggest-label { font-size: 12px; color: var(--fg-3); margin-right: 2px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  color: var(--fg-2);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.chip:hover { color: var(--fg); border-color: var(--line-strong); background: var(--surface); }
.chip.is-active {
  color: var(--accent-fg);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 550;
}

/* Правая колонка героя — доверие */
.trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  min-width: 340px;
}
.trust__cell { background: var(--bg); padding: 16px 18px; }
.trust__value {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.trust__value .unit { font-size: 13px; color: var(--fg-3); font-weight: 500; margin-left: 3px; }
.trust__label { margin-top: 2px; font-size: 12px; color: var(--fg-3); }

/* ---------- 8. Секции ---------- */
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--line-faint); }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section__title {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.section__sub { margin-top: 4px; font-size: 13px; color: var(--fg-3); }

.link-more {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 5px;
  font-size: 13px;
  color: var(--fg-2);
  transition: color var(--t), gap var(--t);
}
.link-more:hover { color: var(--accent-ink); gap: 8px; }

/* Ссылки внутри обычного текста (не в карточках/списках) — цвет один в
   один как .link-more/.prose a, плюс собственное подчёркивание, потому что
   внутри предложения одного цвета для различения ссылки недостаточно
   (WCAG 1.4.1 Use of Color). */
.text-link {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-ink) 40%, transparent);
  text-underline-offset: 2px;
  transition: color var(--t), text-decoration-color var(--t);
}
.text-link:hover, .text-link:focus-visible {
  color: var(--accent-hi);
  text-decoration-color: currentColor;
}

/* Ссылки-заголовки в карточках и списках (Справочный центр и похожие
   витрины): раньше .card__title/.conv__name ссылками наследовали
   var(--fg) через сброс "a{color:inherit}" и были неотличимы от обычного
   текста — основная жалоба владельца по /help. Не переопределяем сами
   .card__title/.conv/.conv__name (общие компоненты, используются и как
   простой текст вне ссылок) — вместо этого точечный класс на самой
   ссылке. */
.help-link { color: var(--accent-ink); }
.help-link:hover, .help-link:focus-visible {
  color: var(--accent-hi);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 2px;
}

/* ---------- 9. Карточки игр ---------- */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 12px;
}
/* «Ваши игры» — короткий ряд, поэтому карточки уже */
.games--compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.game {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.game:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}

/* Монограмма вместо тяжёлых баннеров: цвет игры + инициалы */
/* ---------- Знак игры ----------
   Форму, наклон градиента и фактуру задаёт шаблон по коду игры.
   Одинаковые пастельные квадраты с буквами читаются как заглушка,
   а набор из шести силуэтов даёт каталогу живой вид без логотипов. */
.game__mark {
  position: relative;
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background:
    linear-gradient(var(--mark-angle, 135deg),
      color-mix(in srgb, var(--game, var(--accent)) 78%, #fff),
      color-mix(in srgb, var(--game, var(--accent)) 84%, #000));
  color: #fff;
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: -0.04em;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.game__mark img { width: 100%; height: 100%; object-fit: cover; }
.game__code { position: relative; z-index: 1; padding: 0 2px; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18); }

/* силуэты */
.game__mark[data-shape="1"] { border-radius: 50%; }
.game__mark[data-shape="2"] { border-radius: 14px 5px 14px 5px; }
.game__mark[data-shape="3"] { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); border-radius: 4px; }
.game__mark[data-shape="4"] { clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%); border-radius: 6px; }
.game__mark[data-shape="5"] { border-radius: 22px 22px 8px 8px; }

/* фактура: чуть заметный рисунок, чтобы знаки не были плоскими */
.game__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
}
.game__mark[data-texture="0"]::after {
  background: repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 7px);
}
.game__mark[data-texture="1"]::after {
  background: radial-gradient(circle at 78% 22%, #fff 0 26%, transparent 27%);
  opacity: 0.22;
}
.game__mark[data-texture="2"]::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 62%);
  opacity: 0.5;
}
.game__mark[data-texture="3"]::after {
  background: radial-gradient(circle at 20% 85%, #fff 0 40%, transparent 41%);
  opacity: 0.14;
}

.game__body { min-width: 0; flex: 1; }
.game__name {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game__meta {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game__meta > span { flex: none; }
.game__price { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.game__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* Метки региональных версий игры */
.game__variants { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.game__variant {
  padding: 0 7px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  /* метки версий читают глазами, а не угадывают: 10px было мелко */
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-3);
  white-space: nowrap;
}

/* ---------- 10. Лента предложений ---------- */
.avatar {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-2);
  position: relative;
}
.avatar--online::after {
  content: "";
  position: absolute;
  right: -1px; bottom: -1px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid var(--surface);
}
.star { color: var(--warn); }

/* ---------- 11. Как это работает ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.step { background: var(--bg); padding: 22px; }
.step__n {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px; font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.step__title { margin-top: 14px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.step__text { margin-top: 6px; font-size: 13px; color: var(--fg-2); line-height: 1.6; }

/* Плашка гаранта */
.escrow {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--r);
}
.escrow__icon { flex: none; color: var(--accent-ink); }
.escrow__title { font-size: 13.5px; font-weight: 600; }
.escrow__text { margin-top: 2px; font-size: 12.5px; color: var(--fg-2); }

/* ---------- 12. Подвал ---------- */
.footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-sunken);
  padding: 40px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer__title {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.footer__links { display: grid; gap: 8px; }
/* Было color: var(--fg-2) — тот же серый, что у обычного/приглушённого
   текста рядом (.footer__about, эйбраузы), ссылки терялись. Тот же баг был
   у одноимённого компонента, переиспользуемого в карточках "Читайте также"
   и списке статей /help — цвет ссылки один и тот же везде, где встречается
   .footer__links. */
.footer__links a {
  font-size: 13px;
  color: var(--accent-ink);
  transition: color var(--t), text-decoration-color var(--t);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
}
.footer__links a:hover, .footer__links a:focus-visible {
  color: var(--accent-hi);
  text-decoration-color: currentColor;
}

.footer__about { font-size: 13px; color: var(--fg-3); line-height: 1.65; max-width: 42ch; margin-top: 12px; }

/* Тэги популярных игр в подвале (footer.php выводит .footer__tags/.footer__tag,
   но для них нигде не было CSS — ссылки рендерились голым инлайновым
   текстом без отступов, слипшимся с подписью "Популярное"). Оформлены как
   .chip: пилюля с рамкой, форма сама читается как интерактивный элемент. */
.footer__tags {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.footer__tag {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--fg-2);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.footer__tag:hover, .footer__tag:focus-visible {
  color: var(--fg);
  border-color: var(--line-strong);
  background: var(--surface);
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--fg-3);
}

/* ---------- 13. Переключатель темы ---------- */
:root[data-theme="light"] .icon-moon { display: none; }
:root:not([data-theme="light"]) .icon-sun { display: none; }

/* ---------- 14. Адаптив ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .trust { min-width: 0; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .header__bar { grid-template-columns: auto 1fr auto; gap: 12px; }
  .search__kbd { display: none; }
  /* Слогану о реферальной программе не хватает места рядом с логотипом и
     действиями — прячем, а не сжимаем шапку */
  .promo-pill { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding: 32px 0 28px; }
  .header__bar { grid-template-columns: auto 1fr; }
  /* На узком экране в шапке остаётся только главное */
  .menu--currency { display: none; }
  .header__actions { gap: 4px; }
  .header__actions .btn--sm { padding: 0 9px; }
  .games { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .unit-label { display: none; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .devpanel { right: 8px; bottom: 8px; }
  /* Четыре пункта должны помещаться в 390 px без прокрутки */
  .subnav__link { padding: 0 9px; font-size: 13px; }
  .subnav__inner { gap: 0; }
}

/* Старые узкие телефоны (320 px): «Регистрация» вместе с «Войти» в шапку
   уже не влезают и уводят всю страницу вбок */
@media (max-width: 360px) {
  .header__actions .btn--ghost { padding: 0 8px; }
  .header__actions .btn--primary { padding: 0 10px; font-size: 12.5px; }
  /* На узком экране от логотипа остаётся только имя: домен съедает место,
     которое нужнее кнопкам входа и регистрации */
  .logo__tld { display: none; }
  .logo__word { font-size: 19px; }
  .menu--lang .menu__trigger svg { display: none; }
  /* Место экономим на отступах кнопок, а не выбрасывая их: смены темы
     больше нигде нет, а вход и регистрация нужны всегда */
  #themeToggle { width: 28px; }
  .header__actions .icon-btn { width: 28px; }
}
