/* ======================================================================
   DonateTeam — MAIN.CSS
   Глобальные стили для всех страниц + главная (каталог, FAQ, футер).
   Источник правды по шрифтам/цветам — tokens.css.
   Здесь дублируем только безопасные алиасы и доп.переменные под UI.

   Структура файла:
   0) Переменные
   1) База/типографика/ссылки
   2) Контейнер
   3) Хедер
   4) Блок «Процесс»
   5) Каталог (поиск, карточки, сетка)
   6) FAQ
   7) Разделитель и футер
   8) Служебное (FAB/коннектор/фокус/доступность)
   9) Адаптив (в том же порядке брейкпоинтов, что и был)
   ====================================================================== */


/* ========== 0) ПЕРЕМЕННЫЕ ============================================ */
/* Можно оставить: совпадает с tokens.css и не конфликтует */
:root{
  /* Шрифты */
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Jura", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-accent:  "Jura", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ui:var(--font-body); --font-display:var(--font-heading);

  /* Цвета/фон/границы/тени */
  --bg:#0f0f0f; --panel:#151515; --panel-2:#111111; --text:#fff; --muted:#bdbdbd;
  --border-soft:1px solid rgba(255,255,255,.06);
  --panel-bg:#141414; --panel-bg-2:#151515; --card-shadow:0 8px 24px rgba(0,0,0,.35);
  --brand:#a75eff; --brand-2:#8a3df6; --brand-soft:rgba(167,94,255,.35);
  --glow:0 10px 32px rgba(138,61,246,.35);
  --dt-divider-height:2px;
  --dt-divider-margin-block:var(--space-8);
  --dt-divider-bg:linear-gradient(
    90deg,
    rgba(167, 94, 255, 0) 0%,
    rgba(167, 94, 255, 0.35) 25%,
    rgba(167, 94, 255, 0.75) 50%,
    rgba(167, 94, 255, 0.35) 75%,
    rgba(167, 94, 255, 0) 100%
  );
  --dt-divider-shadow:0 0 8px rgba(167, 94, 255, 0.15);

  /* Отступы/радиусы/кегли/межстрочные */
  --space-0:0px; --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:20px; --space-6:24px; --space-7:28px; --space-8:32px; --space-10:40px;
  --space-12:48px; --space-16:64px; --space-18:72px;
  --pad-inline:var(--space-6);
  --radius:16px; --radius-sm:calc(var(--radius)*.5);
  --search-h:44px;
  --h1:44px; --h2:34px; --h3:22px;
  --text-lg:18px; --text-md:16px; --text-sm:14px; --text-xs:12px;
  --lh-tight:1.3; --lh-base:1.55; --lh-relaxed:1.7;

  /* Разное (для элементов каталога/иконок/эффектов) */
  --game-border-color-strong:#2e2e2e;
  --game-border-contrast:1px solid color-mix(in srgb, #fff 12%, #000 88%);
  --control-h:40px; --icon-sm:24px; --icon-md:28px; --control-h-sm:32px;
  --counter-min:108px; --count-min:28px; --icon-text-md:16px;
  --grad-brand:radial-gradient(120% 120% at 50% 0%, var(--brand) 0%, var(--brand-2) 65%);
  --grad-neutral:linear-gradient(180deg, #2a2a2a, #232323);
  --elev-2:0 14px 34px rgba(0,0,0,.42); --elev-1:0 6px 14px rgba(0,0,0,.35);
  --logo:100px; --thumb:30px; --icon-text-lg:20px;
  --chip-bg:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  --blur-md:14px; --img-shadow:0 6px 14px rgba(0,0,0,.38);
  --cart-items-max-h:150px;
  --disabled-bg:#555; --hover-veil:rgba(255,255,255,.05);
  --inner-stroke:0 0 0 1px rgba(255,255,255,.06) inset;
  --inner-stroke-strong:0 0 0 1px rgba(255,255,255,.10) inset;
  --brand-shadow-sm:0 6px 16px rgba(168,85,247,.35);
  --brand-shadow-md:0 10px 26px rgba(168,85,247,.45);
  --brand-shadow-lg:0 14px 32px rgba(168,85,247,.60);

  /* DonateTeam canonical button states.
     These aliases define visual state only: color, surface, border color and glow.
     Do not put font-family, font-weight, letter-spacing, line-height, width/height,
     border-width or transform into these state tokens. Components keep their own
     typography and geometry so text does not jump between idle and hover. */
  --dt-button-state-accent:var(--game-brand, var(--brand, #a75eff));
  --dt-button-state-accent-soft:var(--game-brand-soft, var(--brand-soft, rgba(167,94,255,.35)));
  --dt-button-state-surface:var(--game-panel-2, var(--panel-2, #111111));
  --dt-button-state-transform:none;
  --dt-button-state-text-shadow:none;

  /* STATE 1: inactive button hover.
     Used for normal nav/filter/card buttons on hover.
     Examples: game filter "Кристаллы" hover, home "Выбрать игру" hover,
     "Сервисы и подписки" hover, account button hover.
     Border-only state: dark base plus bright purple outline. No glow, no
     elevation shadow and no inset mechanics, so ordinary hover never reads
     as selected/active. */
  --dt-button-state-1-color:var(--dt-button-state-accent);
  --dt-button-state-1-border-color:var(--dt-button-state-accent);
  --dt-button-state-1-background:var(--dt-button-state-surface);
  --dt-button-state-1-shadow:none;

  /* STATE 2: active button idle.
     Used for selected tabs/filters without hover.
     Example: active game filter "Пропуски".
     STATE 2 uses inset mechanics and is intended for selected tab/filter controls.
     Do not apply it directly to pill/card buttons that already have a visible
     1px border; use STATE 3 for promo/active-like hover unless selected tab
     mechanics are explicitly needed. */
  --dt-button-state-2-color:var(--dt-button-state-accent);
  --dt-button-state-2-border-color:var(--dt-button-state-accent);
  --dt-button-state-2-background:
    linear-gradient(180deg, rgba(167,94,255,.16), rgba(167,94,255,.055)),
    var(--dt-button-state-surface);
  --dt-button-state-2-glow:0 0 14px var(--dt-button-state-accent-soft);
  --dt-button-state-2-shadow:
    inset 0 0 0 1.5px var(--dt-button-state-accent),
    0 0 14px var(--dt-button-state-accent-soft);
  --dt-button-state-2-text-shadow:
    0 0 12px var(--dt-button-state-accent-soft),
    0 0 20px var(--dt-button-state-accent-soft);

  /* STATE 3: active button hover.
     Used for active/promo buttons on hover.
     Examples: active game filter hover, home "Розыгрыш 150$" hover.
     For hero/promo pills use the outer glow alias so the text metrics and border
     width remain stable; reserve inset active shadows for game filters. */
  --dt-button-state-3-color:var(--dt-button-state-2-color);
  --dt-button-state-3-border-color:var(--dt-button-state-2-border-color);
  --dt-button-state-3-background:var(--dt-button-state-2-background);
  --dt-button-state-3-glow:0 0 18px var(--dt-button-state-accent-soft);
  --dt-button-state-3-shadow:var(--dt-button-state-3-glow);
  --dt-button-state-3-text-shadow:none;
  --space-0-5:2px; --card-min:240px; --lift-sm:6px; --press-1:1px;
  --cart-w:300px; --enter-shift:10px; --focus-ring:3px;
  --disabled-opacity:.5; --lift-xs:5px; --glow-radius-sm:4px; --tracking-tight:.5px;
}


/* ========== 1) БАЗА / ТИПОГРАФИКА ==================================== */
* { box-sizing: border-box; }
html { font-size: 100%; }

html, body{
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: var(--lh-base);
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after{ font-family: inherit; }

:where(button, input, select, textarea){ font: inherit; } /* форс наследования */

p { font-size: var(--text-md); line-height: var(--lh-relaxed); margin: 0 0 .8em; }
.small, small { font-size: var(--text-sm); line-height: var(--lh-base); }
.muted { color: rgba(255, 255, 255, .7); }
ul, ol { font-size: var(--text-md); line-height: var(--lh-relaxed); }

a { color: #b793ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.btn, .badge { font-size: var(--text-sm); line-height: var(--lh-tight); }

/* Световой градиент от шапки страницы */
html::before {
  content: "";
  position: fixed; left: 0; right: 0; top: -200px; height: 500px;
  pointer-events: none; z-index: 0;
  background: radial-gradient(1200px 500px at 50% 0, #1a1420 0%, transparent 60%);
}

/* Заголовки — рубленая таблица и отдельные маркированные элементы */
h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; line-height: 1; }

/* Карта заголовков на Jura */
.page-title, .desc-title, .faq-title, .footer-title{ font-family: var(--font-heading); }


/* ========== 2) КОНТЕЙНЕР ============================================== */
.page-1400 {
  max-width: 1280px;
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: 24px;
}


/* ========== 3) ХЕДЕР ================================================== */
.page-header{
  padding-block: 24px 16px;
}

.page-header__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
}

.logo{
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  text-align: left;
  line-height: 1;
  min-width: 0;
}

.logo__primary{
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: .98;
  letter-spacing: .012em;
}

.logo__secondary{
  display: block;
  width: 100%;
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.12;
  letter-spacing: .018em;
  color: rgba(255,255,255,.62);
}

.home-account-trigger{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(167,94,255,.12), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    rgba(18,18,22,.92);
  color: #fff;
  box-shadow:
    0 10px 24px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(255,255,255,.02);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}

.home-account-trigger:hover{
  transform: var(--dt-button-state-transform);
  color: var(--dt-button-state-1-color);
  border-color: var(--dt-button-state-1-border-color);
  background: var(--dt-button-state-1-background);
  box-shadow: var(--dt-button-state-1-shadow);
  text-shadow: var(--dt-button-state-text-shadow);
}

.home-account-trigger:hover .home-account-trigger__eyebrow,
.home-account-trigger:hover .home-account-trigger__label{
  color: var(--dt-button-state-1-color);
  text-shadow: var(--dt-button-state-text-shadow);
}

.home-account-trigger:focus-visible{
  outline: none;
  border-color: rgba(167,94,255,.82);
  box-shadow:
    0 0 0 3px rgba(167,94,255,.18),
    0 18px 34px rgba(0,0,0,.42);
}

.home-account-trigger__avatar{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 52%),
    linear-gradient(145deg, rgba(167,94,255,.34), rgba(138,61,246,.12));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.home-account-trigger__avatar .dt-account-avatar-media{
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-account-trigger,
.home-account-trigger__avatar,
.home-account-trigger__avatar .dt-account-avatar-media{
  overflow: hidden;
}

.home-account-trigger__avatar .dt-account-avatar-media{
  flex: 0 0 100%;
  max-width: 100%;
  max-height: 100%;
}

.home-account-trigger__avatar .dt-account-avatar-media__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-account-trigger__avatar .dt-account-avatar-media__letter{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 15px;
  line-height: 1;
}

.home-account-trigger__avatar svg{
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-account-trigger__meta{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-account-trigger__eyebrow{
  font-size: 10px;
  color: rgba(255,255,255,.52);
  letter-spacing: .075em;
  text-transform: uppercase;
}

.home-account-trigger__label{
  font-size: 13px;
  font-weight: 700;
}

.home-account-modal{
  --dt-auth-control-radius: var(--dt-interactive-radius-lg, var(--dt-control-radius, var(--radius, 16px)));
  --dt-auth-control-bg: var(--dt-interactive-bg, var(--dt-control-idle-background, var(--panel-2, #111)));
  --dt-auth-control-color: var(--dt-interactive-fg, var(--dt-control-idle-color, #fff));
  --dt-auth-control-hover-color: var(--dt-interactive-accent, var(--dt-control-hover-color, var(--brand, #a75eff)));
  --dt-auth-control-selected-color: var(--dt-interactive-accent, var(--dt-control-selected-color, var(--brand, #a75eff)));
  --dt-auth-control-selected-hover-color: var(--dt-interactive-text-bright, var(--dt-auth-control-selected-color));
  --dt-auth-control-idle-shadow: var(--dt-interactive-idle-shadow, var(--dt-control-idle-shadow, inset 0 0 0 1px rgba(255,255,255,.06)));
  --dt-auth-control-hover-shadow: var(--dt-interactive-control-hover-shadow, var(--dt-control-hover-shadow, inset 0 0 0 1.5px var(--brand, #a75eff)));
  --dt-auth-control-selected-shadow: var(--dt-interactive-control-selected-shadow, var(--dt-control-selected-shadow, inset 0 0 0 1.5px var(--brand, #a75eff), 0 0 14px var(--brand-soft, rgba(167,94,255,.35))));
  --dt-auth-control-selected-hover-shadow: var(--dt-interactive-control-selected-hover-shadow, var(--dt-auth-control-selected-shadow));
  --dt-auth-control-primary-hover-shadow: var(--dt-interactive-primary-hover-shadow, var(--dt-auth-control-selected-hover-shadow));
  --dt-auth-control-active-shadow: var(--dt-interactive-primary-active-shadow, inset 0 0 0 1.5px var(--brand, #a75eff), inset 0 2px 8px rgba(0,0,0,.32));
  --dt-auth-control-active-bg: var(--dt-interactive-primary-active-bg, color-mix(in srgb, var(--dt-auth-control-bg) 92%, #000 8%));
  --dt-auth-control-focus-shadow: var(--dt-interactive-focus-shadow, var(--dt-control-focus-visible-shadow, inset 0 0 0 1.5px var(--brand, #a75eff), 0 0 0 3px rgba(167,94,255,.22)));
  --dt-auth-field-radius: var(--dt-interactive-radius-md, var(--dt-field-wrapper-radius, 10px));
  --dt-auth-field-bg: var(--dt-interactive-field-bg, var(--dt-field-wrapper-idle-background, #121212));
  --dt-auth-field-idle-shadow: var(--dt-interactive-field-idle-shadow, var(--dt-field-wrapper-idle-shadow, inset 0 0 0 1.5px rgba(167,94,255,.35)));
  --dt-auth-field-hover-shadow: var(--dt-interactive-field-hover-shadow, var(--dt-field-wrapper-hover-shadow, inset 0 0 0 1.5px rgba(167,94,255,.56)));
  --dt-auth-field-focus-shadow: var(--dt-interactive-field-focus-shadow, var(--dt-field-wrapper-focus-shadow, inset 0 0 0 1.5px var(--brand, #a75eff), 0 0 14px var(--brand-soft, rgba(167,94,255,.35))));
  --dt-auth-field-error-shadow: var(--dt-interactive-field-error-shadow, inset 0 0 0 1.5px rgba(255,113,113,.82), 0 0 14px rgba(255,113,113,.18));
  --dt-auth-field-disabled-opacity: var(--dt-interactive-disabled-opacity, .58);
  --dt-auth-motion: var(--dt-interactive-transition, var(--dt-motion-control-transition, .2s ease));
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
}

.home-account-modal.is-open{
  display: block;
}

.home-account-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(7,7,9,.72);
  backdrop-filter: blur(8px);
}

.home-account-modal__dialog{
  position: relative;
  width: min(648px, calc(100vw - 24px));
  margin: 28px auto 32px;
  padding: 24px 24px 28px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(circle at top left, rgba(167,94,255,.14), transparent 34%),
    linear-gradient(180deg, rgba(18,18,18,.98), rgba(13,13,13,.98));
  box-shadow:
    0 28px 70px rgba(0,0,0,.58),
    inset 0 0 0 1px rgba(255,255,255,.02);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.home-account-modal__dialog::-webkit-scrollbar{
  width: 0;
  height: 0;
}

.home-account-modal__close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: var(--close-btn-size, 32px);
  height: var(--close-btn-size, 32px);
  border: 0;
  border-radius: var(--close-btn-border-radius, 50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--close-btn-base-bg, rgba(255,255,255,.08));
  color: var(--close-btn-base-color, rgba(255,255,255,.72));
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition: background var(--dt-auth-motion), color var(--dt-auth-motion), box-shadow var(--dt-auth-motion);
}

.home-account-modal__close:hover{
  background: var(--close-btn-hover-bg, rgba(168,85,247,.15));
  color: var(--close-btn-hover-color, var(--brand, #a75eff));
  box-shadow: var(--close-btn-hover-shadow, inset 0 0 0 1px var(--brand, #a75eff), 0 0 8px var(--brand-soft, rgba(167,94,255,.35)));
}

.home-account-modal__close:active{
  background: rgba(167,94,255,.11);
  box-shadow: inset 0 0 0 1.5px rgba(167,94,255,.72), inset 0 2px 8px rgba(0,0,0,.3);
}

.home-account-modal__close:focus-visible,
.home-account-modal__tab:focus-visible,
.home-account-modal__submit:focus-visible,
.home-account-modal__secondary:focus-visible,
.home-account-modal__provider:focus-visible,
.home-account-modal__link:focus-visible{
  outline: var(--dt-interactive-focus-outline, 2px solid rgba(197,162,255,.92));
  outline-offset: var(--dt-interactive-focus-outline-offset, 3px);
  box-shadow: var(--dt-auth-control-focus-shadow);
}

.home-account-modal__eyebrow{
  margin: 0 0 10px;
  color: rgba(255,255,255,.56);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-account-modal__title{
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: .96;
}

.home-account-modal__subtitle{
  margin: 10px 0 0;
  max-width: 520px;
  color: rgba(255,255,255,.72);
  line-height: 1.48;
}

.home-account-modal__tabs{
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 5px;
  border-radius: calc(var(--dt-auth-control-radius) + 2px);
  background: rgba(255,255,255,.03);
}

.home-account-modal__tab,
.home-account-modal__submit,
.home-account-modal__secondary,
.home-account-modal__provider{
  border: 0;
  border-radius: var(--dt-auth-control-radius);
  background: var(--dt-auth-control-bg);
  color: var(--dt-auth-control-color);
  cursor: pointer;
  box-shadow: var(--dt-auth-control-idle-shadow);
  transition: background var(--dt-auth-motion), box-shadow var(--dt-auth-motion), color var(--dt-auth-motion), opacity var(--dt-auth-motion), text-shadow var(--dt-auth-motion);
}

.home-account-modal__tab{
  min-height: 44px;
  font-weight: 600;
}

.home-account-modal__tab:hover,
.home-account-modal__submit:hover,
.home-account-modal__secondary:hover,
.home-account-modal__provider:hover{
  color: var(--dt-auth-control-hover-color);
  box-shadow: var(--dt-auth-control-hover-shadow);
  text-shadow: 0 0 8px var(--brand-soft, rgba(167,94,255,.35));
}

.home-account-modal__tab:active,
.home-account-modal__submit:active,
.home-account-modal__secondary:active,
.home-account-modal__provider:active{
  color: var(--dt-auth-control-hover-color);
  box-shadow: inset 0 0 0 1.5px var(--brand, #a75eff), inset 0 2px 8px rgba(0,0,0,.3);
  text-shadow: none;
}

.home-account-modal__tab.is-active{
  background: var(--dt-auth-control-bg);
  color: var(--dt-auth-control-selected-color);
  font-weight: 700;
  text-shadow: var(--dt-control-selected-text-shadow, 0 0 12px var(--brand-soft, rgba(167,94,255,.35)), 0 0 20px var(--brand-soft, rgba(167,94,255,.35)));
  box-shadow: var(--dt-auth-control-selected-shadow);
}

.home-account-modal__tab.is-active:hover{
  background: var(--dt-auth-control-bg);
  color: var(--dt-auth-control-selected-hover-color);
  text-shadow: var(--dt-interactive-control-text-shadow, var(--dt-control-selected-text-shadow, 0 0 12px var(--brand-soft, rgba(167,94,255,.35)), 0 0 20px var(--brand-soft, rgba(167,94,255,.35))));
  box-shadow: var(--dt-auth-control-selected-hover-shadow);
}

.home-account-modal__tab.is-active:active{
  background: var(--dt-auth-control-active-bg);
  color: var(--dt-auth-control-selected-color);
  text-shadow: none;
  box-shadow: var(--dt-auth-control-active-shadow);
}

.home-account-modal__error{
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,113,113,.08);
  border: 1px solid rgba(255,113,113,.18);
  color: #ffd8d8;
  font-size: 13px;
}

.home-account-modal__error.is-visible{
  display: block;
}

.home-account-modal__panel{
  display: none;
  margin-top: 16px;
}

.home-account-modal__panel.is-active{
  display: block;
}

.home-account-modal__form{
  display: grid;
  gap: 12px;
}

.home-account-modal__verify{
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.home-account-modal__verify[hidden]{
  display: none !important;
}

.home-account-modal__verify-text{
  margin: 0;
  color: rgba(255,255,255,.74);
  line-height: 1.55;
}

.home-account-modal__verify-text span{
  color: #fff;
  font-weight: 700;
}

.home-account-modal__field{
  display: grid;
  gap: 8px;
}

.home-account-modal__label{
  font-size: 14px;
  font-weight: 700;
}

.home-account-modal__input{
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--dt-auth-field-radius);
  background: var(--dt-auth-field-bg);
  color: #fff;
  box-shadow: var(--dt-auth-field-idle-shadow);
  transition: background var(--dt-auth-motion), box-shadow var(--dt-auth-motion), color var(--dt-auth-motion), opacity var(--dt-auth-motion);
}

.home-account-modal__input::placeholder{
  color: rgba(255,255,255,.5);
  font-weight: 500;
  letter-spacing: .3px;
}

.home-account-modal__input:hover{
  box-shadow: var(--dt-auth-field-hover-shadow);
}

.home-account-modal__input:focus,
.home-account-modal__input:focus-visible{
  outline: none;
  box-shadow: var(--dt-auth-field-focus-shadow);
  background: var(--dt-auth-field-bg);
}

.home-account-modal__field.is-filled .home-account-modal__input{
  box-shadow: var(--dt-auth-field-idle-shadow), inset 0 0 0 999px rgba(255,255,255,.012);
}

.home-account-modal__field.is-invalid .home-account-modal__input,
.home-account-modal__input[aria-invalid="true"]{
  box-shadow: var(--dt-auth-field-error-shadow);
}

.home-account-modal__input:disabled,
.home-account-modal__submit:disabled,
.home-account-modal__secondary:disabled,
.home-account-modal__provider:disabled{
  opacity: var(--dt-auth-field-disabled-opacity);
  cursor: not-allowed;
  text-shadow: none;
}

.home-account-modal__input--code{
  letter-spacing: .24em;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.home-account-modal__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.home-account-modal__link{
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(197,162,255,.92);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dt-auth-motion), text-shadow var(--dt-auth-motion);
}

.home-account-modal__link:hover{
  color: #fff;
  text-shadow: 0 0 14px rgba(167,94,255,.28);
}

.home-account-modal__submit{
  min-height: 54px;
  font-weight: 700;
  font-size: 16px;
  color: var(--dt-auth-control-selected-color);
  box-shadow: var(--dt-auth-control-selected-shadow);
}

.home-account-modal__submit:not(:disabled):not(.is-loading):hover{
  background: var(--dt-auth-control-bg);
  color: var(--dt-auth-control-selected-hover-color);
  box-shadow: var(--dt-auth-control-primary-hover-shadow);
  text-shadow: none;
}

.home-account-modal__submit:not(:disabled):not(.is-loading):active{
  background: color-mix(in srgb, var(--dt-auth-control-bg) 92%, #000 8%);
  color: var(--dt-auth-control-selected-color);
  box-shadow: inset 0 0 0 1.5px var(--brand, #a75eff), inset 0 2px 8px rgba(0,0,0,.32), 0 0 10px rgba(167,94,255,.18);
  text-shadow: none;
}

.home-account-modal__submit.is-loading{
  position: relative;
  color: rgba(255,255,255,.72);
  box-shadow: var(--dt-auth-control-hover-shadow);
}

.home-account-modal__submit.is-loading:hover{
  color: rgba(255,255,255,.72);
  box-shadow: var(--dt-auth-control-hover-shadow);
  text-shadow: none;
}

.home-account-modal__submit:disabled:hover{
  color: var(--dt-auth-control-selected-color);
  box-shadow: var(--dt-auth-control-selected-shadow);
  text-shadow: none;
}

.home-account-modal__actions{
  display: grid;
  grid-template-columns: minmax(0, 190px) 1fr;
  gap: 12px;
}

.home-account-modal__secondary{
  min-height: 54px;
}

.home-account-modal__divider{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: rgba(255,255,255,.48);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.home-account-modal__divider::before,
.home-account-modal__divider::after{
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(255,255,255,.08);
}

.home-account-modal__provider{
  min-height: 52px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  margin-bottom: 2px;
}

.home-account-modal__provider svg{
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

@media (max-width: 640px){
  .home-account-modal__dialog{
    width: min(100vw - 20px, 648px);
    margin: 12px auto;
    padding: 22px 18px 24px;
    max-height: calc(100vh - 24px);
    border-radius: 24px;
  }

  .home-account-modal__actions{
    grid-template-columns: 1fr;
  }
}



/* ========== 4) БЛОК «ПРОЦЕСС» ======================================== */
.home-hero-banner{
  margin-block: 10px 40px;
}
.home-hero-banner__frame{
  overflow: hidden;
  width: 100%;
  margin-inline: auto;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(circle at top left, rgba(167,94,255,.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(74,132,255,.18), transparent 38%),
    #12131b;
  box-shadow:
    0 24px 64px rgba(0,0,0,.30),
    inset 0 0 0 1px rgba(255,255,255,.02);
}
.home-hero-banner__image{
  display: block;
  width: 100%;
  height: auto;
}
.home-hero-banner__actions{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.home-hero-banner__cta-group{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.home-hero-banner__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .012em;
  line-height: 1;
  text-decoration: none;
  transition: box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.home-hero-banner__cta:hover{
  text-decoration: none;
  transform: var(--dt-button-state-transform);
}
.home-hero-banner__cta--primary,
.home-hero-banner__cta--secondary{
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  box-shadow:
    0 10px 22px rgba(0,0,0,.18),
    inset 0 0 0 1px rgba(255,255,255,.02);
}
.home-hero-banner__cta--primary:hover,
.home-hero-banner__cta--secondary:hover{
  color: var(--dt-button-state-1-color);
  border-color: var(--dt-button-state-1-border-color);
  background: var(--dt-button-state-1-background);
  box-shadow: var(--dt-button-state-1-shadow);
  text-shadow: var(--dt-button-state-text-shadow);
}
.home-hero-banner__cta--giveaway{
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(167,94,255,.42);
  background:
    linear-gradient(180deg, rgba(167,94,255,.18), rgba(255,255,255,.04));
  box-shadow:
    0 10px 22px rgba(103,64,255,.13),
    inset 0 0 0 1px rgba(255,255,255,.03);
}
.home-hero-banner__cta--giveaway:hover{
  color: var(--dt-button-state-3-color);
  border-color: var(--dt-button-state-3-border-color);
  background: var(--dt-button-state-3-background);
  box-shadow:
    var(--dt-button-state-3-glow),
    0 12px 26px rgba(103,64,255,.18);
  text-shadow: var(--dt-button-state-3-text-shadow);
}
.home-hero-banner__cta-mobile{
  display: none;
}
@media (min-width: 1024px){
  .home-hero-banner__frame{
    aspect-ratio: 16 / 6.95;
  }
  .home-hero-banner__image{
    height: 100%;
    object-fit: cover;
    object-position: center 46%;
  }
}

@media (min-width: 1280px){
  .home-hero-banner{
    margin-block: 4px 32px;
  }
}

.order-process-slider {
  --dot-size: 72px;
  --steps-left: 0px;
  --steps-total: auto;
  --delivery-card-w: clamp(420px, 30vw, 540px);
  background: transparent;
  display: none !important;
}
.process-header {
  width: var(--steps-total, auto);
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.process-title { font-size: var(--h2); }
.process-subtitle { color: #d9d9d9; margin-block: 18px 26px; }

.process-steps{
  position: relative; display: flex; justify-content: center;
  gap: clamp(48px, 7.5vw, 120px);
  margin-inline: calc(-1 * var(--pad-inline)); padding-inline: var(--pad-inline);
  width: 100%; padding: 0; background: transparent !important;
}
.process-steps::before{
  content:""; position:absolute; left:0; right:0; top: calc(var(--dot-size)/2 - 1px);
  height:2px;
  background:linear-gradient(90deg, transparent 0%, rgba(167,94,255,.6) 20%, rgba(167,94,255,.9) 50%, rgba(167,94,255,.6) 80%, transparent 100%);
  filter: drop-shadow(0 0 12px rgba(167, 94, 255, .35));
  z-index: 0;
}

.process-step { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:12px; min-width:120px; user-select:none; }
.process-step * { pointer-events:none; }

.step-icon{
  width: var(--dot-size); height: var(--dot-size); border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #b78eff 0%, #8a3df6 100%);
  box-shadow: var(--glow), inset 0 0 0 1px rgba(255, 255, 255, .06);
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.step-icon::after {
  content:""; position:absolute; inset:5px; border-radius:50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent);
}
.step-icon svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.process-step:hover .step-icon { transform: translateY(-2px) scale(1.02); filter: brightness(1.05); }

.step-text { font-weight: 700; font-size: 14px; color: #fff; text-shadow: 0 0 18px rgba(183,142,255,.25); }

.delivery-info{
  max-width: var(--delivery-card-w);
  width: 100%;
  margin: var(--space-8) auto 0;
  padding: var(--space-5) var(--space-6);
  background: var(--panel-bg-2);
  border: var(--border-soft);
  border-color: rgba(255,255,255,.06);
  border-radius: 14px;
  text-align: center;
}
.delivery-title { margin: 0 0 var(--space-3); font-size: var(--h3); font-weight: 800; letter-spacing: .2px; }
.delivery-text  { margin: 0 0 var(--space-3); line-height: 1.35; color: #eaeaea; }
.delivery-note  { margin: 0; font-size: 14px; line-height: 1.3; color: var(--muted); }


/* ========== 5) КАТАЛОГ / ПОИСК / КАРТОЧКИ ============================ */
.games-top { display:flex; align-items:flex-end; justify-content:space-between; margin-block: var(--space-8); gap: var(--space-5); }
.games-title { display:flex; align-items:center; font-size: var(--h2); margin:0; }
.section-title{
  margin: 0;
  font-size: var(--h2);
  line-height: 1;
}
.catalog-section-head{
  margin: 28px 0 18px;
}

/* Поиск */
.search-wrap{
  height: var(--search-h);
  display:flex; align-items:center;
  padding: var(--dt-field-wrapper-padding);
  background: #121212;
  border-radius: var(--dt-field-wrapper-radius);
  position: relative;
  box-shadow: inset 0 0 0 1.5px rgba(167,94,255,.35);
}
.search-wrap:focus-within{
  box-shadow:
    var(--dt-field-wrapper-focus-within-shadow);
}
.games-top .search-wrap { flex: 1 1 560px; max-width: 860px; }

.search-input{
  flex:1 1 auto; min-width:0; align-self:stretch; min-height:100%;
  background:var(--dt-field-input-background); border:var(--dt-field-input-border); outline:var(--dt-field-input-outline); color:var(--dt-field-input-color);
  font: 600 15px/1.2 inherit; padding:0;
}
.search-input::-webkit-search-cancel-button{ -webkit-appearance:none; display:none; }
.search-input::placeholder { color: rgba(255,255,255,.5); font-weight: 500; letter-spacing: .3px; }

.search-clear{
  flex:0 0 auto; display:grid; place-items:center; width:40px; height:40px; border:0; border-radius:10px; background:transparent; cursor:pointer; opacity:.75;
  transition: opacity .2s ease;
}
.search-clear:hover { opacity:1; transform: none; }
.search-clear svg { width:14px; height:14px; stroke:#cda9ff; stroke-width:2; fill:none; }

.no-results{
  width: min(100%, 360px);
  min-height: 108px;
  margin: 26px auto 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(167,94,255,.14), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02)),
    #141217;
  border: 1px solid rgba(167,94,255,.22);
  border-radius: 18px;
  box-shadow:
    0 18px 36px rgba(0,0,0,.24),
    inset 0 0 0 1px rgba(255,255,255,.02);
}
.no-results__title{
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1;
  letter-spacing: .01em;
}
.no-results--service{
  margin-top: 12px;
  margin-bottom: 18px;
}
.hidden { display: none !important; }

/* Сетка и карточки (плавное появление — без резкого мигания) */
/* translateZ(0) и backface-visibility — отдельный слой, чтобы смена opacity применялась на iOS/Android */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.games-grid.games-grid--ready { opacity: 1; }

.game-card{
  display:flex; flex-direction:column; min-width:0;
  background: var(--dt-card-idle-background); border: var(--dt-card-idle-border); border-radius: var(--dt-card-radius); padding:var(--dt-card-padding); text-decoration: none; color: var(--dt-card-idle-color);
  transition: border-color .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: var(--dt-card-idle-shadow);
  position: relative;
}
.game-card .game-thumb { border-radius:14px; overflow:hidden; background:#0e0e0e; }
.game-card .game-thumb img { width:100%; height:auto; display:block; object-fit: unset; }

.game-card:hover {
  transform: none;
  border-color: var(--dt-button-state-1-border-color);
  box-shadow: var(--dt-card-hover-shadow);
  filter: none;
}

.game-card,
.game-card:hover,
.game-card:focus,
.game-card:focus-visible,
.game-card:visited,
.service-card,
.service-card:hover,
.service-card:focus,
.service-card:focus-visible,
.service-card:visited,
.game-card .game-title,
.game-card:hover .game-title,
.game-card:focus .game-title,
.game-card:focus-visible .game-title,
.service-card .service-title,
.service-card:hover .service-title,
.service-card:focus .service-title,
.service-card:focus-visible .service-title{
  text-decoration: none;
  text-decoration-line: none;
}

/* Скрытые игры (только в режиме админа) */
.game-card--hidden{
  opacity: 0.65;
  border: 1px solid rgba(255, 193, 7, 0.3);
}
.game-card__hidden-badge{
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(255, 193, 7, 0.9);
  color: #000;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.game-card:hover img { transform:none !important; }

.game-title{
  background:#1b1b1b; padding:10px 12px; border-radius:12px;
  font-weight:800; text-align:center;
  font-size:16px; line-height:1.25;
  height: calc(2 * 1.25em + 20px);
  min-height: calc(2 * 1.25em + 20px);
  max-height: calc(2 * 1.25em + 20px);
  word-break: break-word;
  text-wrap: balance;
  overflow-wrap: anywhere;
  overflow: hidden;
  box-sizing: border-box;
  /* Центрирование по вертикали и горизонтали */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Ограничение двумя строками через line-height и max-height */
  /* Текст автоматически центрируется благодаря flexbox */
}
.game-card .game-title { margin-top: var(--space-3); }

.game-card mark{
  background:linear-gradient(90deg, rgba(167,94,255,.3), rgba(167,94,255,.15));
  color:#fff; padding:0 .15em; border-radius:4px;
}

/* ========== СЕРВИСЫ ==================================================== */
.services-section {
  margin-top: var(--space-16);
  margin-bottom: var(--space-16);
}

.services-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
}

.services-grid {
  display: grid;
  gap: 22px;
  align-items: stretch;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.services-grid.services-grid--ready { opacity: 1; }

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.service-card .service-thumb {
  border-radius: 14px;
  overflow: hidden;
  background: #0e0e0e;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.service-card .service-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 14px;
}

.service-card:hover {
  transform: none;
  border-color: var(--dt-button-state-1-border-color);
  box-shadow: var(--card-shadow);
  filter: none;
}

.service-card--hidden {
  opacity: 0.65;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.service-card__hidden-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(255, 193, 7, 0.9);
  color: #000;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.service-title {
  background: #1b1b1b;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
  font-size: 16px;
  line-height: 1.25;
  height: calc(2 * 1.25em + 20px);
  min-height: calc(2 * 1.25em + 20px);
  max-height: calc(2 * 1.25em + 20px);
  word-break: break-word;
  text-wrap: balance;
  overflow-wrap: anywhere;
  overflow: hidden;
  margin-top: var(--space-3);
  box-sizing: border-box;
  /* Центрирование по вертикали и горизонтали */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Ограничение двумя строками через line-height и max-height */
  /* Текст автоматически центрируется благодаря flexbox */
}
.service-card .service-title { margin-top: var(--space-3); }

.service-card .service-thumb{
  background: linear-gradient(180deg, #121212 0%, #0d0d0d 100%);
}

.service-description {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0;
  padding: 0 var(--space-2);
}

@media (max-width: 739px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


/* ========== 6) FAQ ==================================================== */
.home-reviews{
  margin-block: 18px 8px;
}

.home-reviews__head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-reviews__kicker{
  margin: 0 0 8px;
  color: rgba(216,193,255,.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-reviews__title{
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -.02em;
}

.home-reviews__lead{
  max-width: 640px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.64);
  font-size: var(--text-md);
}

.home-reviews__all{
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(167,94,255,.38);
  border-radius: 999px;
  background: rgba(167,94,255,.12);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 800;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.home-reviews__all:hover{
  transform: var(--dt-button-state-transform);
  color: var(--dt-button-state-1-color);
  border-color: var(--dt-button-state-1-border-color);
  background: var(--dt-button-state-1-background);
  box-shadow: var(--dt-button-state-1-shadow);
  text-shadow: var(--dt-button-state-text-shadow);
  text-decoration: none;
}

.home-reviews__all:focus-visible{
  outline: none;
  transform: var(--dt-button-state-transform);
  color: var(--dt-button-state-1-color);
  border-color: var(--dt-button-state-1-border-color);
  background: var(--dt-button-state-1-background);
  box-shadow: 0 0 0 3px rgba(167,94,255,.22);
  text-shadow: var(--dt-button-state-text-shadow);
  text-decoration: none;
}

.home-reviews__summary{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255,255,255,.62);
  font-size: var(--text-sm);
}

.home-reviews__summary strong{
  color: #fff;
}

.home-reviews__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 481px) and (max-width: 900px) {
  .home-reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-reviews__card,
.home-reviews__empty{
  min-width: 0;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.018)),
    rgba(18,16,27,.72);
  box-shadow: none;
}

.home-reviews__card{
  display: flex;
  min-height: 205px;
  flex-direction: column;
  padding: 20px;
  transform: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.home-reviews__card:hover{
  transform: none;
  border-color: var(--dt-button-state-1-border-color);
  box-shadow: none;
}

.home-reviews__card-top,
.home-reviews__card-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-reviews__stars{
  color: #d8c1ff;
  font-size: 16px;
  letter-spacing: .04em;
}

.home-reviews__badge{
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(167,94,255,.26);
  border-radius: 999px;
  background: rgba(167,94,255,.1);
  color: rgba(232,218,255,.9);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.home-reviews__text{
  display: -webkit-box;
  overflow: hidden;
  margin: 16px 0 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: rgba(255,255,255,.78);
  font-size: var(--text-md);
  line-height: 1.55;
}

.home-reviews__card-footer{
  margin-top: auto;
  padding-top: 20px;
}

.home-reviews__card-footer strong{
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: var(--text-md);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-reviews__card-footer time{
  flex: 0 0 auto;
  color: rgba(255,255,255,.52);
  font-size: var(--text-xs);
}

@media (min-width: 901px) and (max-width: 1100px) {
  .home-reviews__card-footer{
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .home-reviews__card-footer strong{
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

.home-reviews__empty{
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
}

.home-reviews__empty p{
  margin: 0;
  color: rgba(255,255,255,.62);
}

.faq { display:flex; flex-direction:column; }
#faq-title { display:block; font-size: var(--h2); margin-block-end: var(--space-7); }

.faq-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:14px; }
.faq-item{
  background: var(--dt-accordion-idle-bg);
  border: 1px solid var(--dt-accordion-idle-border);
  border-radius: 18px;
  box-shadow: var(--dt-accordion-idle-shadow);
  overflow: clip;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.faq-item:hover,
.faq-item.open{
  border-color: var(--dt-button-state-1-border-color);
  box-shadow: var(--dt-accordion-idle-shadow);
  transform: none;
}

.faq-question{
  width:100%; display:flex; align-items:center; background:transparent; border:0;
  border-radius:0; padding:20px 22px; padding-right:56px; color:var(--dt-accordion-idle-text); font-weight:800; cursor:pointer; position:relative;
  transition: color .2s ease, box-shadow .2s ease; text-align:left;
  font-size: var(--text-md);
  line-height: 1.45;
}
.faq-question:hover,
.faq-item.open .faq-question { color:var(--dt-accordion-hover-text); }
.faq-question:focus-visible{
  outline: none;
  box-shadow: var(--dt-accordion-focus-shadow);
}

.faq-answer { display:none; padding:0 22px 18px; color:#d7d7dc; }
.faq .faq-answer > p:first-child { margin-top: 14px; }
.faq .faq-answer > p:last-child { margin-bottom: 0; }
.faq-item.open .faq-answer { display:block; }

/* Плюсик-иконка справа */
.plus{
  position:absolute; right:20px; top:50%; transform: translateY(-50%);
  width:16px; height:16px; display:inline-block; margin:0;
}
.plus::before, .plus::after{ content:""; position:absolute; inset:0; margin:auto; background:var(--dt-accordion-icon-idle); border-radius:2px; }
.plus::before{ width:14px; height:2px; }
.plus::after{ width:2px; height:14px; transition: transform .2s ease; }
.faq-item.open .plus::after{ transform: scaleY(0); }


/* ========== 7) РАЗДЕЛИТЕЛЬ И ФУТЕР =================================== */
/* Градиентная линия-разделитель секций */
.hr-section{
  width: 100%;
  height: var(--dt-divider-height, 2px);
  margin-block: var(--dt-divider-margin-block, var(--space-8, 32px));
  border: none;
  background: var(--dt-divider-bg);
  box-shadow: var(--dt-divider-shadow);
}

/* Футер */
.footer-head { display:flex; align-items:flex-start; justify-content:space-between; column-gap: var(--space-4); margin-block: var(--space-7); }
.footer-brand, .footer-title { margin:0 0 var(--space-4) 0; font-size:22px; font-weight:800; line-height:1.05; color:var(--text); }

.tg-inline { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; }
.tg-inline svg { width:100%; height:100%; }

.site-footer{ text-align:left; padding-bottom: var(--space-8); }
.site-footer p{
  margin:0 0 var(--space-2);
  max-width: 62ch;
  color: rgba(255,255,255,.68);
  line-height: 1.62;
}
.site-footer .footer-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:var(--space-4); margin-block: 0 var(--space-5); }
.site-footer .footer-title{ margin:0; text-align:left; }
.site-footer .tg-inline{ flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; margin:0; }

/* Keep the same game-page divider visible before the footer on service pages too. */
.hr-section:has(+ .site-footer){
  display: block;
  width: min(100%, 1280px);
  max-width: 1280px;
  margin: var(--space-8, 32px) auto;
}

.site-footer .hr-section{
  width: calc(100% + (var(--pad-inline, 24px) * 2));
  height: var(--dt-divider-height, 2px);
  margin-block: var(--dt-divider-margin-block, var(--space-8, 32px));
  margin-inline: calc(-1 * var(--pad-inline, 24px));
  background: var(--dt-divider-bg);
  box-shadow: var(--dt-divider-shadow);
}
.status-page .site-footer .hr-section{
  width: 100%;
  height: 1px;
  margin-block: var(--space-6) var(--space-5);
  margin-inline: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.14), rgba(255,255,255,0));
  box-shadow: none;
}

.footer-links {
  display:flex;
  gap:10px 22px;
  flex-wrap:wrap;
  margin-block: var(--space-7) var(--space-6);
  padding-top: 0;
  border-top: 0;
}
.footer-links a { display:inline-flex; align-items:center; min-height:40px; color:#b793ff; text-decoration:none; font-size: var(--text-md); }
.footer-links a:hover { text-decoration: underline; }
.footer-links a:focus-visible,
.site-footer .tg-inline:focus-visible {
  outline: none;
  transform: none;
  box-shadow: 0 0 0 3px rgba(167,94,255,.22);
}
.site-footer .footer-requisites {
  margin-top: var(--space-4);
  margin-bottom: 0;
  font-size: var(--text-sm, 0.9rem);
  line-height: 1.55;
  color: rgba(255,255,255,.42);
}


/* ========== 8) СЛУЖЕБНОЕ / ДОСТУПНОСТЬ ============================== */
/* Телеграм-FAB и соединяющая линия процесса по умолчанию выключены (включаются в адаптиве) */
.tg-fab { display:none !important; }
.process-connector { display:none; filter:none; }

/* Управляем фокусом карточек (клавиатура/доступность) */
.game-card:focus-visible {
  outline: var(--dt-card-focus-visible-outline);
  outline-offset: var(--dt-card-focus-visible-outline-offset);
}

/* Жёсткая типографика для футера (IBM для читабельности) */
.site-footer, .site-footer *{ font-family: var(--font-body) !important; }
.site-footer .footer-title{ font-family: var(--font-heading) !important; font-weight: 700; }


/* ========== Legal Pages =============================================== */
.legal-footer-divider{
  display: block !important;
  width: min(100%, 1280px);
  max-width: 1280px;
  margin: var(--space-8, 32px) auto;
}
/* Меньше анимаций при reduce-motion */
@media (prefers-reduced-motion: reduce) { * { animation:none !important; transition:none !important; } }


/* ======================================================================
   9) АДАПТИВ (главная). Хедер и «Процесс оформления» не трогаем.
   ----------------------------------------------------------------------
   Каталог игр:
   ≤699 — 2 колонки; 700–1023 — 3; 1024–1279 — 4; ≥1280 — 5.
   Поиск: ширина через clamp(...) — не жмётся и не растягивается.
   ====================================================================== */

/* Базовые (вне медиа) — стабильность карточек/поиска */
.games-grid{ display:grid; gap:22px; }
.game-card{ min-width:0; }
.game-card img{ display:block; width:100%; aspect-ratio:1/1; object-fit:cover; }
:is(.game-card-title,.game-title,.game-card .title,.game-card .card-title){
  white-space:normal; overflow:hidden;
  /* display и min-height задаются в основном правиле .game-title */
}

/* Сервисы должны иметь такую же сетку, как игры */
.services-grid{ 
  display:grid; 
  gap:22px; 
}
.service-card{ min-width:0; }
.service-card img{ display:block; width:100%; height:100%; aspect-ratio:1/1; object-fit:contain; }

.games-top{ display:flex; align-items:flex-end; gap:var(--space-4); }
.games-title{ margin:0; flex:0 0 auto; }
.search-wrap{ height:var(--search-h,44px); margin-left:auto; }
.search-input{ width:100%; height:100%; }

/* ---------- ≤300px: очень узкие экраны (упрощаем «Процесс») ---------- */
@media (max-width: 300px){
  .process-steps{ display:grid; grid-template-columns:1fr; grid-template-rows:repeat(4,var(--dot-size)); row-gap:var(--space-6); column-gap:0; margin-inline:0; padding-inline:0; }
  .process-step:nth-child(1){grid-column:1;grid-row:1;}
  .process-step:nth-child(2){grid-column:1;grid-row:2;}
  .process-step:nth-child(3){grid-column:1;grid-row:3;}
  .process-step:nth-child(4){grid-column:1;grid-row:4;}
  .process-connector{ display:none !important; }
  .step-text{ position:static; transform:none; margin-top:6px; white-space:normal; text-align:center; }
}

/* ---------- ≤374px: компактнее подписи/заголовок «Процесса» ---------- */
@media (max-width: 374px){
  .order-process-slider{ --dot-size:52px; --step-drop:36px; --label-gap:8px; }
  .step-text{ font-size:11px; }
  .process-title{ letter-spacing:.1px; }
}

/* ---------- ≤390px: поджим линии «Процесса» -------------------------- */
@media (max-width: 480px){
  .home-reviews__head{
    align-items: flex-start;
    flex-direction: column;
  }

  .home-reviews__all{
    width: 100%;
  }

  .home-reviews__grid{
    grid-template-columns: 1fr;
  }

  .home-reviews__card{
    min-height: 0;
  }

  .home-reviews__card-top,
  .home-reviews__card-footer{
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero-banner__cta-group{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-hero-banner__cta{
    width: 100%;
    min-height: 46px;
    padding-inline: 12px;
    font-size: 13px;
    line-height: 1.15;
    text-align: center;
  }
  .home-hero-banner__cta--giveaway{
    grid-column: 1 / -1;
  }
  .home-hero-banner__cta-desktop{
    display: none;
  }
  .home-hero-banner__cta-mobile{
    display: inline;
  }
}

@media (max-width: 390px){
  .home-hero-banner{ margin-block: 6px 28px; }
  .home-hero-banner__frame{ border-radius: 18px; }
  .home-hero-banner__actions{
    margin-top: 14px;
    gap: 12px;
  }
  .order-process-slider{ --dot-size:56px; --step-drop:38px; --label-gap:8px; }
  .step-text{ font-size:11.5px; max-width:14ch; }
  .process-steps{ column-gap:var(--space-5); }
}

/* ---------- 301–480px: показываем коннектор для «ёлочки» -------------- */
@media (min-width:301px) and (max-width:480px){
  .order-process-slider{ 
    --dot-size:64px; --step-drop:44px; --label-gap:10px;
    --zig-pad-x:10px; --zig-pad-y:6px;
  }
  .process-steps{
    position:relative; display:grid;
    grid-template-columns:1fr 1fr; grid-template-rows:repeat(4,var(--dot-size));
    column-gap:var(--space-6); row-gap:var(--step-drop);
    width:100%; overflow:visible; margin-inline:0; padding-inline:0;
  }
  .process-steps::before{ content:none !important; }
  .process-step{ position:relative; z-index:1; display:grid; place-items:center; justify-self:center; text-align:center; }
  .process-step:nth-child(1){grid-column:1;grid-row:1;}
  .process-step:nth-child(2){grid-column:2;grid-row:2;}
  .process-step:nth-child(3){grid-column:1;grid-row:3;}
  .process-step:nth-child(4){grid-column:2;grid-row:4;}
  .step-icon{ margin:0; }
  .step-text{ position:absolute; top:calc(100% + var(--label-gap)); left:50%; transform:translateX(-50%); max-width:16ch; font-size:12px; line-height:1.15; white-space:nowrap; }
  .process-connector{
    display:block !important; position:absolute; z-index:0; top:var(--zig-pad-y); bottom:var(--zig-pad-y);
    left:calc(var(--zig-pad-x) + var(--space-6) / 2); right:calc(var(--zig-pad-x) + var(--space-6) / 2);
    margin:0; width:auto; height:auto; pointer-events:none;
    filter:drop-shadow(0 0 3px rgba(167,94,255,.18)) !important;
  }
}

/* ---------- ≤414px: компактная типографика --------------------------- */
@media (max-width: 414px){
  :root{ --h1:30px; --h2:22px; --h3:17px; }
  .logo{ word-break:normal; overflow-wrap:normal; }
  .process-header{ margin-block-end:var(--space-6); }
}

/* ---------- 414–480px: акценты ввода/FAQ ------------------------------ */
@media (min-width:414px) and (max-width:480px){
  .search-input{ font:600 17.5px/1.25 inherit; }
  .search-input::-webkit-input-placeholder{ font-size:17.5px; }
  .search-input::placeholder{ font-size:17.5px; }

  .faq-question{ font-size:18px; padding:20px 56px 20px 22px; }
  .faq-answer{ padding: 0 22px 18px; }
  .plus{ right:22px; }
}

/* ----------------------------- ≤480px -------------------------------- */
@media (max-width:480px){
  :root{
    --search-h:42px;
    --dot-size:64px; --step-drop:44px; --label-gap:10px;
    --zig-pad-x:10px; --zig-pad-y:6px;
    --h1:32px; --h2:24px; --h3:18px;
    --text-lg:17px; --text-md:15px; --text-sm:13px; --text-xs:11px;
  }
  .page-header{
    padding-block: 18px 10px;
  }
  .page-header__bar{
    gap: 12px;
    min-height: 48px;
  }
  .logo{
    max-width: calc(100% - 62px);
    min-width: 0;
    gap: 4px;
  }
  .logo__primary{
    font-size: clamp(28px, 7.2vw, 34px);
    line-height: .98;
  }
  .logo__secondary{
    font-size: clamp(13px, 3.6vw, 15px);
  }
  .home-account-trigger{
    min-height: 44px;
    padding: 7px 9px;
    border-radius: 14px;
  }
  .home-account-trigger__avatar{
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  .home-account-trigger__meta{
    display: none;
  }
  .home-account-modal__dialog{
    width: min(680px, calc(100vw - 16px));
    margin-top: 28px;
    padding: 22px 18px 26px;
    max-height: calc(100vh - 20px);
    border-radius: 24px;
  }
  .home-account-modal__title{
    font-size: clamp(28px, 8vw, 38px);
  }
  .home-account-modal__subtitle{
    font-size: 14px;
  }
  .process-subtitle{ font-size:14px; }

  /* Процесс: «ёлочка» 2×4 */
  .process-steps{
    position:relative; display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr)); grid-template-rows:auto auto;
    column-gap:18px; row-gap:24px;
    width:100%; overflow:visible; margin-inline:0; padding-inline:0;
    margin-bottom:var(--space-8) !important; background:transparent;
  }
  .process-steps::before{ content:none !important; }
  .process-step{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; justify-self:stretch; text-align:center; min-width:0; gap:10px; }
  .process-step:nth-child(1){grid-column:1;grid-row:1;}
  .process-step:nth-child(2){grid-column:2;grid-row:1;}
  .process-step:nth-child(3){grid-column:1;grid-row:2;}
  .process-step:nth-child(4){grid-column:2;grid-row:2;}
  .step-icon{ margin:0; }
  .step-text{ position:static; top:auto; left:auto; transform:none; max-width:13ch; font-size:12px; line-height:1.2; white-space:normal; text-wrap:balance; }
  .process-connector{ display:none !important; }

  .process-steps + .delivery-info{ margin-top:var(--space-6) !important; }
  .delivery-info{ max-width:100%; padding:14px; border-radius:12px; margin-top:0 !important; }

  /* Каталог: до 699 должно быть 2 колонки — начинаем уже здесь */
  .games-top{ flex-direction:column; align-items:stretch; justify-content:initial; row-gap:var(--space-4); }
  .games-top .search-wrap{
    flex: 0 0 auto !important;
    width:100%;
    max-width:none;
    height:var(--search-h);
    min-height: var(--search-h);
    margin-left: 0;
    align-self: stretch;
  }
  .search-input{ font:600 16px/1.2 inherit; }

  .games-title{ display:block; text-align:center; }
  .catalog-section-head{
    margin: 22px 0 16px;
    text-align: center;
  }
  .games-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px; } /* было 1fr — делаем 2 колонки */
  .services-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px; } /* карточки сервисов того же размера, что и игр */
  .game-card{ min-width:0; }
  .service-card{ min-width:0; }
  .no-results{
    min-height: 96px;
    padding: 16px 18px;
    margin-top: 20px;
  }
  .no-results__title{
    font-size: 24px;
  }

  .faq-list{ gap: 12px; }
  .faq-question{ font-size:17px; padding:18px 18px; padding-right:52px; }
  .faq-answer{ padding: 0 18px 16px; }

  .site-footer p{ max-width: none; }
  .site-footer .footer-head{ align-items:center; }
  .footer-links{ flex-direction:column; align-items:flex-start; }
}

/* ----------------------------- 481–699px ------------------------------ */
@media (min-width:481px) and (max-width:699px){
  :root{
    --h1:34px; --h2:26px; --h3:19px;
    --text-lg:17px; --text-md:15.5px; --text-sm:13.5px; --text-xs:11.5px;
  }
  .order-process-slider{ --dot-size:64px; --step-drop:44px; --label-gap:10px; --zig-pad-x:10px; --zig-pad-y:6px; }

  /* Процесс — как выше (ёлочка) */
  .process-steps{
    position:relative; display:grid;
    grid-template-columns:1fr 1fr; grid-template-rows:repeat(4,var(--dot-size));
    column-gap:var(--space-6); row-gap:var(--step-drop);
    width:100%; margin-inline:0; padding-inline:0; overflow:visible;
    margin-bottom:var(--space-16) !important;
  }
  .process-steps::before{ content:none !important; }
  .process-step{ display:grid; place-items:center; justify-self:center; text-align:center; }
  .process-step:nth-child(1){grid-column:1;grid-row:1;}
  .process-step:nth-child(2){grid-column:2;grid-row:2;}
  .process-step:nth-child(3){grid-column:1;grid-row:3;}
  .process-step:nth-child(4){grid-column:2;grid-row:4;}
  .step-icon{ margin:0; }
  .step-text{ position:absolute; top:calc(100% + var(--label-gap)); left:50%; transform:translateX(-50%); max-width:16ch; font-size:12px; line-height:1.15; white-space:nowrap; }
  .process-connector{
    display:block; position:absolute; z-index:0; top:var(--zig-pad-y); bottom:var(--zig-pad-y);
    left:calc(var(--zig-pad-x) + var(--space-6) / 2); right:calc(var(--zig-pad-x) + var(--space-6) / 2);
    margin:0; width:auto; height:auto; pointer-events:none; filter:drop-shadow(0 0 3px rgba(167,94,255,.18));
  }

  /* Главное: до 699 — 2 карточки */
  .games-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px; }
  .services-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px; }
  .games-top{ flex-direction:column; align-items:stretch; row-gap:var(--space-4); }
  .games-title{ display:block; text-align:center; }
  .games-top .search-wrap{
    flex: 0 0 auto !important;
    width:100%;
    max-width:none;
    height:var(--search-h);
    min-height: var(--search-h);
    margin-left: 0;
    align-self: stretch;
  }

  .footer-links{ flex-direction:column; align-items:flex-start; }
}

/* ----------------------------- 700–899px ------------------------------ */
@media (min-width:700px) and (max-width:899px){
  :root{ --search-h:40px; }
  .order-process-slider{ --delivery-card-w:min(100%,520px); }
  .delivery-info{ padding:var(--space-4) var(--space-5); }
  .delivery-note{ font-size:13px; }

  .games-top{ flex-direction:column; align-items:stretch; row-gap:var(--space-4); }
  .games-top .search-wrap{
    flex: 0 0 auto !important;
    width:100%;
    max-width:none;
    height:var(--search-h);
    min-height: var(--search-h);
    margin-left: 0;
    align-self: stretch;
  }

  .games-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:20px; }
  .services-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:20px; }
  .games-title{ align-self:stretch; display:block; text-align:center; margin:0; }
  .catalog-section-head{
    text-align: center;
  }
}

/* ----------------------------- 900–1023px ----------------------------- */
@media (min-width:900px) and (max-width:1023px){
  .games-top{ flex-direction:row; align-items:center; justify-content:flex-start; column-gap:var(--space-4); }
  .games-title{ flex:0 0 auto; text-align:left; }
  .games-top .search-wrap{
    margin-left:auto; width:auto; max-width:none; height:var(--search-h);
    flex:0 1 clamp(420px, 46vw, 600px); /* умеренная ширина поиска */
  }
  .games-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:20px; }
  .services-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:20px; }
}

/* ----------------------------- 1024–1279px ---------------------------- */
@media (min-width: 1024px) and (max-width: 1279px){
  .games-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }
  .services-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }

  /* ряд: заголовок слева, поиск справа, но с гарантированным зазором */
  .games-top{
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;                 /* вместо space-between */
    column-gap: clamp(16px, 3vw, 32px);          /* минимальный «воздух» */
  }

  .games-title{
    margin-right: 0;                              /* зазор отдаём column-gap */
    text-align: left;
  }

  .games-top .search-wrap{
    /* ↓ было: flex: 0 1 clamp(520px, 40vw, 680px) */
    flex: 0 1 clamp(480px, 36vw, 680px);         /* мин-ширину снизили: 520 → 460 */
    height: var(--search-h);
    max-width: none;
    margin-left: auto;                            /* уводим вправо */
  }
}


/* ≥1280: можно позволить пошире, но не во всю строку */
@media (min-width:1280px){
  .games-grid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 22px; }
  .services-grid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 22px; }
  .games-top{
    display:flex; align-items:center; justify-content:flex-start;
    column-gap: clamp(20px, 2.5vw, 40px);
  }
  .games-top .search-wrap{
    margin-left:auto;
    flex: 0 1 clamp(560px, 36vw, 760px);
    height: var(--search-h);
    max-width:none;
  }
}

/* ----------------------------- ≥1440px -------------------------------- */
@media (min-width:1440px){
  .search-wrap{ flex-basis:640px; } /* стабилизация ширины поиска */
}








/* homepage-search-clear-size-v2 20260612T100014Z */
.search-wrap .search-clear {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.search-wrap .search-clear svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.25;
}

.search-wrap .search-clear:hover,
.search-wrap .search-clear:focus-visible {
  opacity: 1;
  transform: none;
  background: rgba(255,255,255,.045);
  outline: none;
}

/* ==========================================================================
   DonateTeam Site-Wide Modal System
   Canonical shared visual layer for popup/modal/overlay surfaces.
   ========================================================================== */
:root {
  --dt-modal-bg: var(--game-panel, var(--panel, #151515));
  --dt-modal-bg-2: var(--game-panel-2, var(--panel-2, #111111));
  --dt-modal-text: var(--game-text, #ffffff);
  --dt-modal-muted: var(--game-muted, #d8d1e8);
  --dt-modal-brand: var(--game-brand, #a75eff);
  --dt-modal-brand-soft: var(--game-brand-soft, rgba(167, 94, 255, .35));
  --dt-modal-border-color: rgba(255, 255, 255, .08);
  --dt-modal-border: 1px solid var(--dt-modal-border-color);
  --dt-modal-radius: var(--game-radius, 16px);
  --dt-modal-overlay-bg: rgba(0, 0, 0, .68);
  --dt-modal-overlay-blur: blur(8px);
  --dt-modal-shadow: 0 20px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
  --dt-modal-card-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 12px 30px rgba(0, 0, 0, .24);
  --dt-modal-transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
  --dt-modal-choice-radius: 16px;
  --dt-modal-choice-padding: 16px;
  --dt-modal-choice-min-height: 92px;
}

.dt-shared-modal,
.dt-site-modal,
.mode-modal.dt-shared-modal,
.psn-topup-confirm.dt-shared-modal,
.psn-mode-choice.dt-shared-modal,
.pay-modal.dt-shared-modal,
.uid-help-modal.dt-shared-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5, 20px);
}

.dt-shared-modal.is-open,
.dt-site-modal.is-open,
.mode-modal.dt-shared-modal.is-open,
.psn-topup-confirm.dt-shared-modal.is-open,
.psn-mode-choice.dt-shared-modal.is-open,
.pay-modal.dt-shared-modal.is-open,
.uid-help-modal.dt-shared-modal.is-open {
  display: flex;
}

.mode-modal.dt-shared-modal[hidden],
.dt-shared-modal[hidden],
.dt-site-modal[hidden] {
  display: none !important;
}

.dt-site-modal::before,
.mode-modal.dt-shared-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dt-modal-overlay-bg);
  backdrop-filter: var(--dt-modal-overlay-blur);
  -webkit-backdrop-filter: var(--dt-modal-overlay-blur);
}

.dt-shared-modal__overlay,
.dt-site-modal__overlay,
.psn-topup-confirm__overlay.dt-shared-modal__overlay,
.psn-mode-choice__overlay.dt-shared-modal__overlay {
  position: absolute;
  inset: 0;
  background: var(--dt-modal-overlay-bg);
  backdrop-filter: var(--dt-modal-overlay-blur);
  -webkit-backdrop-filter: var(--dt-modal-overlay-blur);
}

.dt-shared-modal__window,
.dt-site-modal__window,
.mode-modal.dt-shared-modal .mode-modal__card,
.psn-topup-confirm__window.dt-shared-modal__window,
.psn-mode-choice__window.dt-shared-modal__window {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: var(--space-6, 24px);
  border: var(--dt-modal-border);
  border-radius: var(--dt-modal-radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--dt-modal-bg) 94%, var(--dt-modal-brand) 6%), var(--dt-modal-bg));
  color: var(--dt-modal-text);
  box-shadow: var(--dt-modal-shadow);
}

.dt-shared-modal__title,
.dt-site-modal__title,
.mode-modal.dt-shared-modal #mode-modal-title,
.mode-modal.dt-shared-modal .mode-modal__title,
.psn-topup-confirm__title.dt-shared-modal__title,
.psn-mode-choice__title.dt-shared-modal__title {
  margin: 0 0 var(--space-2, 8px);
  color: var(--dt-modal-text) !important;
  font-family: var(--font-accent, inherit);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.15;
}

.dt-shared-modal__description,
.dt-site-modal__description,
.mode-modal.dt-shared-modal .mode-modal__hint,
.mode-modal.dt-shared-modal .mode-modal__footer-hint,
.psn-mode-choice__hint,
.psn-topup-confirm__note {
  color: var(--dt-modal-muted) !important;
  line-height: 1.5;
}

.dt-shared-modal__close,
.dt-site-modal__close,
.psn-topup-confirm__close.dt-shared-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--dt-modal-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: var(--dt-modal-transition);
}

.dt-shared-modal__close:hover,
.dt-shared-modal__close:focus-visible,
.dt-site-modal__close:hover,
.dt-site-modal__close:focus-visible {
  color: var(--dt-modal-brand);
  background: color-mix(in srgb, var(--dt-modal-bg-2) 78%, var(--dt-modal-brand) 22%);
  box-shadow: inset 0 0 0 1px var(--dt-modal-brand), 0 0 12px var(--dt-modal-brand-soft);
  outline: none;
}

.dt-shared-choice-grid,
.dt-site-choice-grid,
.mode-modal.dt-shared-modal .mode-modal__grid,
.psn-mode-choice__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3, 12px);
}

.dt-shared-choice-card,
.dt-site-choice-card,
.mode-modal.dt-shared-modal .mode-modal__option,
.psn-mode-choice__option.dt-shared-choice-card,
.psn-topup-provider__option {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: var(--dt-modal-choice-min-height);
  padding: var(--dt-modal-choice-padding) var(--dt-modal-choice-padding) var(--dt-modal-choice-padding) 52px;
  border: var(--dt-modal-border) !important;
  border-radius: var(--dt-modal-choice-radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--dt-modal-bg-2) 94%, var(--dt-modal-brand) 6%), var(--dt-modal-bg-2));
  color: var(--dt-modal-text);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--dt-modal-card-shadow);
  transition: var(--dt-modal-transition);
}

.dt-shared-choice-card::before,
.dt-site-choice-card::before,
.mode-modal.dt-shared-modal .mode-modal__option::before,
.psn-mode-choice__option.dt-shared-choice-card::before,
.psn-topup-provider__option::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--dt-modal-bg) 80%, var(--dt-modal-brand) 20%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--dt-modal-brand) 68%, transparent), 0 0 12px var(--dt-modal-brand-soft);
}

.dt-shared-choice-card span,
.dt-site-choice-card span,
.mode-modal.dt-shared-modal .mode-modal__option-title,
.psn-mode-choice__option.dt-shared-choice-card span,
.psn-topup-provider__option span {
  color: var(--dt-modal-text) !important;
  font-family: var(--font-accent, inherit);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.dt-shared-choice-card small,
.dt-site-choice-card small,
.mode-modal.dt-shared-modal .mode-modal__option-note,
.psn-mode-choice__option.dt-shared-choice-card small,
.psn-topup-provider__option small {
  display: block;
  margin-top: 4px;
  color: var(--dt-modal-muted) !important;
  font-size: 13.5px;
  line-height: 1.4;
}

.dt-shared-choice-card:hover,
.dt-shared-choice-card:focus-visible,
.dt-site-choice-card:hover,
.dt-site-choice-card:focus-visible,
.mode-modal.dt-shared-modal .mode-modal__option:hover,
.mode-modal.dt-shared-modal .mode-modal__option:focus-visible,
.psn-mode-choice__option.dt-shared-choice-card:hover,
.psn-mode-choice__option.dt-shared-choice-card:focus-visible,
.psn-topup-provider__option:hover,
.psn-topup-provider__option:focus-visible {
  background: linear-gradient(180deg, color-mix(in srgb, var(--dt-modal-bg-2) 84%, var(--dt-modal-brand) 16%), var(--dt-modal-bg-2));
  box-shadow: inset 0 0 0 1.5px var(--dt-modal-brand), 0 0 18px var(--dt-modal-brand-soft) !important;
  outline: none;
  transform: none;
}

.dt-shared-choice-card.is-active,
.dt-shared-choice-card[aria-checked="true"],
.dt-site-choice-card.is-active,
.dt-site-choice-card[aria-checked="true"],
.mode-modal.dt-shared-modal .mode-modal__option.active,
.mode-modal.dt-shared-modal .mode-modal__option[aria-selected="true"],
.psn-topup-provider__option.is-active,
.psn-topup-provider__option[aria-checked="true"] {
  color: var(--dt-modal-brand);
  background: color-mix(in srgb, var(--dt-modal-bg-2) 82%, var(--dt-modal-brand) 18%);
  box-shadow: inset 0 0 0 1.5px var(--dt-modal-brand), 0 0 14px var(--dt-modal-brand-soft);
}

.dt-shared-modal__button,
.dt-site-modal__button {
  min-height: 44px;
  padding: 12px 18px;
  border: var(--dt-modal-border);
  border-radius: 12px;
  background: var(--dt-modal-bg-2);
  color: var(--dt-modal-text);
  font-family: var(--font-accent, inherit);
  font-weight: 800;
  cursor: pointer;
  transition: var(--dt-modal-transition);
}

.dt-shared-modal__button:hover,
.dt-shared-modal__button:focus-visible,
.dt-site-modal__button:hover,
.dt-site-modal__button:focus-visible {
  color: var(--dt-modal-brand);
  background: color-mix(in srgb, var(--dt-modal-bg-2) 86%, var(--dt-modal-brand) 14%);
  box-shadow: inset 0 0 0 1.5px var(--dt-modal-brand), 0 0 14px var(--dt-modal-brand-soft) !important;
  outline: none;
}

.dt-shared-modal__button--primary,
.dt-site-modal__button--primary {
  color: #ffffff;
  background: color-mix(in srgb, var(--dt-modal-bg-2) 80%, var(--dt-modal-brand) 20%);
}

.dt-shared-modal__button--primary:hover,
.dt-shared-modal__button--primary:focus-visible,
.dt-site-modal__button--primary:hover,
.dt-site-modal__button--primary:focus-visible {
  color: #ffffff;
  background: color-mix(in srgb, var(--dt-modal-bg-2) 72%, var(--dt-modal-brand) 28%);
  box-shadow: inset 0 0 0 1.5px var(--dt-modal-brand), 0 0 22px var(--dt-modal-brand-soft) !important;
}

@media (max-width: 768px) {
  .dt-shared-modal,
  .dt-site-modal,
  .mode-modal.dt-shared-modal,
  .psn-topup-confirm.dt-shared-modal,
  .psn-mode-choice.dt-shared-modal {
    padding: 16px;
  }

  .dt-shared-modal__window,
  .dt-site-modal__window,
  .mode-modal.dt-shared-modal .mode-modal__card,
  .psn-topup-confirm__window.dt-shared-modal__window,
  .psn-mode-choice__window.dt-shared-modal__window {
    padding: 22px;
  }

  .dt-shared-choice-grid,
  .dt-site-choice-grid,
  .mode-modal.dt-shared-modal .mode-modal__grid,
  .psn-mode-choice__options {
    grid-template-columns: 1fr;
  }
}

/* Site-wide modal visual fix 2: compact panels and provider card grid. */
.dt-shared-modal__window,
.dt-site-modal__window,
.mode-modal.dt-shared-modal .mode-modal__card,
.psn-topup-confirm__window.dt-shared-modal__window,
.psn-mode-choice__window.dt-shared-modal__window {
  height: auto;
  min-height: 0;
  flex: 0 1 auto;
  overflow-y: auto;
}

.mode-modal.dt-shared-modal .mode-modal__card {
  align-self: center;
}

.psn-topup-provider__option {
  grid-template-columns: 22px minmax(0, 1fr);
  grid-auto-rows: auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  padding: 14px 16px !important;
}

.psn-topup-provider__option::before {
  position: static;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 1px;
}

.psn-topup-provider__option span,
.psn-topup-provider__option small {
  grid-column: 2;
  min-width: 0;
}

/* Site-wide modal visual fix 3: provider state separation. */
.psn-topup-provider__option:not(.is-active):not([aria-checked="true"]):hover {
  color: var(--dt-modal-text);
  background: color-mix(in srgb, var(--dt-modal-bg-2) 92%, var(--dt-modal-brand) 8%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dt-modal-brand) 42%, transparent) !important;
}

.psn-topup-provider__option:not(.is-active):not([aria-checked="true"]):focus-visible,
.psn-topup-provider__option:not(.is-active):not([aria-checked="true"]):focus {
  color: var(--dt-modal-text);
  background: color-mix(in srgb, var(--dt-modal-bg-2) 90%, #ffffff 4%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dt-modal-brand) 48%, transparent) !important;
  outline: 2px solid color-mix(in srgb, var(--dt-modal-brand) 56%, transparent);
  outline-offset: 3px;
}

.psn-topup-provider__option.is-active,
.psn-topup-provider__option[aria-checked="true"] {
  color: var(--dt-modal-brand);
  background: color-mix(in srgb, var(--dt-modal-bg-2) 80%, var(--dt-modal-brand) 20%);
  box-shadow: inset 0 0 0 1.5px var(--dt-modal-brand), 0 0 16px var(--dt-modal-brand-soft) !important;
  outline: none;
}

/* Site-wide all modal variants follow-up: choice, notice, confirm, provider-choice. */
.dt-modal-variant--choice-modal .dt-shared-modal__window,
.dt-modal-variant--choice-modal.mode-modal.dt-shared-modal .mode-modal__card,
.dt-modal-variant--notice-modal .dt-shared-modal__window,
.dt-modal-variant--notice-modal.mode-modal.dt-shared-modal .mode-modal__card,
.dt-modal-variant--confirm-modal .dt-shared-modal__window,
.dt-modal-variant--provider-choice-modal .dt-shared-modal__window {
  width: min(640px, 100%);
  padding: var(--space-6, 24px);
  border: var(--dt-modal-border);
  border-radius: var(--dt-modal-radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--dt-modal-bg) 94%, var(--dt-modal-brand) 6%), var(--dt-modal-bg));
  box-shadow: var(--dt-modal-shadow);
}

.dt-modal-variant--notice-modal .dt-shared-modal__window,
.dt-modal-variant--notice-modal.mode-modal.dt-shared-modal .mode-modal__card {
  width: min(640px, 100%);
  align-items: center;
  text-align: center;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__grid {
  grid-template-columns: 1fr;
  justify-items: center;
  margin: var(--space-5, 20px) 0 0;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__option.dt-shared-modal__button {
  width: auto;
  min-width: 200px;
  max-width: 260px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px !important;
  border: var(--dt-modal-border) !important;
  border-radius: 12px;
  background: color-mix(in srgb, var(--dt-modal-bg-2) 80%, var(--dt-modal-brand) 20%) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  text-align: center;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__option.dt-shared-modal__button::before {
  content: none;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__option.dt-shared-modal__button:hover,
.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__option.dt-shared-modal__button:focus-visible {
  color: #ffffff !important;
  background: color-mix(in srgb, var(--dt-modal-bg-2) 72%, var(--dt-modal-brand) 28%) !important;
  box-shadow: inset 0 0 0 1.5px var(--dt-modal-brand), 0 0 22px var(--dt-modal-brand-soft) !important;
  outline: none;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__option-note {
  display: none;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__option-title {
  margin: 0;
  text-align: center;
}

/* All modal variants follow-up: confirm/provider modals use the same shell width as choice/notice popups. */
.psn-topup-confirm.dt-shared-modal.dt-modal-variant--confirm-modal .psn-topup-confirm__window.dt-shared-modal__window,
.psn-topup-confirm.dt-shared-modal.dt-modal-variant--provider-choice-modal .psn-topup-confirm__window.dt-shared-modal__window {
  width: min(640px, 100%);
}

/* DonateTeam hero CTA and homepage navigation unification pilot.
   Scope: homepage hero nav CTAs and account entry only; geometry remains owned by existing main CSS. */
.home-hero-banner__cta {
  transform: none;
  text-shadow: none;
  transition: var(--dt-interactive-transition-shadow, box-shadow .18s ease, color .18s ease, border-color .18s ease, background .18s ease);
}

.home-hero-banner__cta:hover,
.home-hero-banner__cta:active {
  transform: none;
}

.home-hero-banner__cta--primary,
.home-hero-banner__cta--secondary {
  background: var(--dt-home-nav-idle-bg);
  color: var(--dt-home-nav-idle-text);
  border-color: var(--dt-home-nav-idle-border);
  box-shadow: var(--dt-home-nav-idle-shadow);
}

.home-hero-banner__cta--primary:hover,
.home-hero-banner__cta--secondary:hover {
  background: var(--dt-home-nav-hover-bg);
  color: var(--dt-home-nav-hover-text);
  border-color: var(--dt-home-nav-hover-border);
  box-shadow: var(--dt-home-nav-hover-shadow);
  text-shadow: none;
}

.home-hero-banner__cta--primary:active,
.home-hero-banner__cta--secondary:active {
  background: var(--dt-home-nav-pressed-bg);
  color: var(--dt-home-nav-pressed-text);
  border-color: var(--dt-home-nav-pressed-border);
  box-shadow: var(--dt-home-nav-pressed-shadow);
}

.home-hero-banner__cta--giveaway {
  background: var(--dt-home-nav-promo-idle-bg);
  color: var(--dt-home-nav-promo-idle-text);
  border-color: var(--dt-home-nav-promo-idle-border);
  box-shadow: var(--dt-home-nav-promo-idle-shadow);
}

.home-hero-banner__cta--giveaway:hover {
  background: var(--dt-home-nav-promo-hover-bg);
  color: var(--dt-home-nav-promo-hover-text);
  border-color: var(--dt-home-nav-promo-hover-border);
  box-shadow: var(--dt-home-nav-promo-hover-shadow);
  text-shadow: none;
  transform: none;
}

.home-hero-banner__cta--giveaway:active {
  background: var(--dt-home-nav-pressed-bg);
  color: var(--dt-home-nav-pressed-text);
  border-color: var(--dt-home-nav-pressed-border);
  box-shadow: var(--dt-home-nav-pressed-shadow);
  transform: none;
}

.home-hero-banner__cta:focus-visible {
  outline: var(--dt-interactive-focus-outline);
  outline-offset: var(--dt-interactive-focus-outline-offset);
  box-shadow: var(--dt-interactive-focus-shadow);
  transform: none;
}

.home-account-trigger {
  background: var(--dt-account-entry-idle-bg);
  border-color: var(--dt-account-entry-idle-border);
  box-shadow: var(--dt-account-entry-idle-shadow);
  transform: none;
}

.home-account-trigger:hover {
  background: var(--dt-account-entry-hover-bg);
  color: var(--dt-account-entry-hover-text);
  border-color: var(--dt-account-entry-hover-border);
  box-shadow: var(--dt-account-entry-hover-shadow);
  text-shadow: none;
  transform: none;
}

.home-account-trigger:hover .home-account-trigger__eyebrow,
.home-account-trigger:hover .home-account-trigger__label {
  color: var(--dt-account-entry-hover-text);
  text-shadow: none;
}

.home-account-trigger:active {
  background: var(--dt-home-nav-pressed-bg);
  color: var(--dt-home-nav-pressed-text);
  border-color: var(--dt-home-nav-pressed-border);
  box-shadow: var(--dt-home-nav-pressed-shadow);
  transform: none;
}

.home-account-trigger:focus-visible {
  outline: var(--dt-interactive-focus-outline);
  outline-offset: var(--dt-interactive-focus-outline-offset);
  box-shadow: var(--dt-interactive-focus-shadow);
  transform: none;
}

/* Final FAQ/accordion bridge to the accepted DonateTeam interactive token system. */
.faq-list > .faq-item,
.faq-list > .faq-item:hover,
.faq-list > .faq-item.open,
.faq-list > .faq-item[open] {
  transform: none;
}

.faq-list > .faq-item:hover {
  background: var(--dt-accordion-hover-bg);
  border-color: var(--dt-accordion-hover-border);
  box-shadow: var(--dt-accordion-hover-shadow);
}

.faq-list > .faq-item.open,
.faq-list > .faq-item[open] {
  background: var(--dt-accordion-open-bg);
  border-color: var(--dt-accordion-open-border);
  box-shadow: var(--dt-accordion-open-shadow);
}

.faq-list > .faq-item.open:hover,
.faq-list > .faq-item[open]:hover {
  background: var(--dt-accordion-open-hover-bg);
  border-color: var(--dt-accordion-open-hover-border);
  box-shadow: var(--dt-accordion-open-hover-shadow);
}

.faq-list > .faq-item > .faq-question {
  text-shadow: none;
  filter: none;
  transform: none;
}

.faq-list > .faq-item > .faq-question:hover {
  color: var(--dt-accordion-hover-text);
}

.faq-list > .faq-item.open > .faq-question,
.faq-list > .faq-item[open] > .faq-question {
  color: var(--dt-accordion-open-text);
}

.faq-list > .faq-item.open:hover > .faq-question,
.faq-list > .faq-item[open]:hover > .faq-question {
  color: var(--dt-accordion-open-hover-text);
}

.faq-list > .faq-item > .faq-question:focus-visible {
  outline: var(--dt-interactive-focus-outline);
  outline-offset: var(--dt-interactive-focus-outline-offset);
  box-shadow: var(--dt-accordion-focus-shadow);
}

.faq-list > .faq-item > .faq-question .plus::before,
.faq-list > .faq-item > .faq-question .plus::after {
  background: var(--dt-accordion-icon-idle);
  filter: none;
}

.faq-list > .faq-item:hover > .faq-question .plus::before,
.faq-list > .faq-item:hover > .faq-question .plus::after {
  background: var(--dt-accordion-icon-hover);
}

.faq-list > .faq-item.open > .faq-question .plus::before,
.faq-list > .faq-item.open > .faq-question .plus::after,
.faq-list > .faq-item[open] > .faq-question .plus::before,
.faq-list > .faq-item[open] > .faq-question .plus::after {
  background: var(--dt-accordion-icon-open);
}
