/* ======================================================================
   DonateTeam — GAME.CSS
   Стили страницы игры: хлебные крошки, шапка, каталог товаров, корзина,
   описание/SEO, переключатель режима и модалка, мобильный док и шит.

   Структура файла:
   0) Токены/алиасы (game-*)
   1) База
   2) Навигация (крошки + переключатель режима)
   3) Шапка игры (лого, тайтл, фильтры)
   4) Сетка/карточки товаров
   5) Корзина (ПК) + состояния
   6) Описание + SEO-блок
   7) Переключатели режима (кнопки/чип)
   8) Модалка выбора режима
   9) Мобильный док-бар
   10) Мобильный нижний шит корзины
   11) Доп.правила: ховеры, юридические страницы, шрифты в контролах
   12) Адаптив (порядок брейкпоинтов сохранён)
   ====================================================================== */


/* ========== 0) TOKENS / АЛИАСЫ ДЛЯ СТРАНИЦЫ ИГРЫ ===================== */
: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;

  --game-bg: var(--bg, #0f0f0f);
  --game-panel: var(--panel, #151515);
  --game-panel-2: var(--panel-2, #111111);
  --game-text: var(--text, #fff);
  --game-muted: var(--muted, #bdbdbd);

  --game-brand: var(--brand, #a75eff);
  --game-brand-2: var(--brand-2, #8a3df6);
  --game-brand-soft: var(--brand-soft, rgba(167,94,255,.35));

  --card-accent: var(--game-brand);
  --card-accent-2: var(--game-brand-2);
  --card-accent-soft: color-mix(in srgb, var(--card-accent) 35%, transparent);

  --game-border: var(--border-soft, 1px solid rgba(255,255,255,.06));
  --game-shadow: var(--card-shadow, 0 8px 24px rgba(0,0,0,.35));

  --game-radius: var(--radius, 16px);
  
  /* Активное состояние кнопок (переопределяем токены для использования game-* переменных) */
  --active-button-border: 1.5px solid var(--game-brand);
  --active-button-shadow: 
    0 0 0 2px var(--game-brand-soft),
    0 0 0 1.5px var(--game-brand) inset,
    0 0 14px var(--game-brand-soft);
  
  /* Ховер-эффекты для кнопок (с game-* переменными) */
  /* Для неактивных кнопок при hover - только яркая рамка, без внешнего свечения */
  --button-hover-border-only:
    inset 0 0 0 1.5px var(--game-brand);
  /* Для активных кнопок при hover - рамка + свечение */
  --active-button-hover:
    inset 0 0 0 1.5px var(--game-brand),
    0 0 14px var(--game-brand-soft);
  --active-button-hover-soft:
    inset 0 0 0 1px var(--game-brand),
    0 0 8px var(--game-brand-soft);
  --active-button-hover-enhanced:
    0 0 20px var(--game-brand-soft),
    0 0 30px var(--game-brand-soft);
  
  /* Крестики закрытия и кнопки оплаты используют токены из tokens.css напрямую */
  
  /* Правила для правильного отображения бордюра без артефактов */
  --button-border-base: 1px solid rgba(255,255,255,.08);
  /* При hover делаем border того же цвета, что и фон, чтобы он не был виден */
  --button-border-hover: 1px solid var(--game-panel-2);
  /* При hover используем только box-shadow для эффекта бордюра */
  --button-hover-shadow: 
    inset 0 0 0 1px var(--game-brand),
    0 0 8px var(--game-brand-soft);

  --game-h1: 44px; --game-h2: 34px; --game-h3: 22px;
  --game-text-lg: 18px; --game-text-md: 16px; --game-text-sm: 14px;

  --game-lh-base: 1.55;

  /* Локальные алиасы (не конфликтуют с глобалкой) */
  --page-x: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius-xl: 16px;

  /* UI-шрифт, чтобы не ругался на var(--font-ui) */
  --font-ui: var(--font-accent);

  /* Минимальная ширина товарной карточки в сетке */
  --card-min: 220px;

  /* Тени/высоты, чтобы не было undefined переменных */
  --elev-2: 0 16px 38px rgba(0,0,0,.45);

  /* Крупный текст для заголовков корзины */
  --game-text-xl: 20px;

}

/* ========== 1) БАЗА =================================================== */
body{ font-family: var(--font-body); }
.page-title,.faq-title,.desc-title,.footer-title{ font-family: var(--font-heading); }
.num,.btn-pay,.filter-btn,.mode-btn,.mode-chip,.counter .count{ font-family: var(--font-accent); }
[hidden]{ display:none !important; }


/* ========== 2) НАВИГАЦИЯ (крошки + переключатель режима) ============== */
.navigation{ margin-block-start: var(--space-4); margin-block-end: var(--space-4); padding-bottom: 0; }
.navigation .page-1400{
  display: flex; align-items: center; justify-content: space-between; height: 35px;
}

/* Когда не влазит в одну строку - две строки по центру */
.navigation .page-1400.is-stacked{
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  gap: var(--space-4) !important;
}
.navigation .page-1400.is-stacked .nav-crumbs{
  width: 100% !important;
  justify-content: center !important;
  text-align: center !important;
  flex: 0 0 auto !important;
}
.navigation .page-1400.is-stacked .mode-switch,
.navigation .page-1400.is-stacked #nav-mode-switch{
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex: 0 0 auto !important;
}

/* Слева — хлебные крошки */
.nav-crumbs{ display: flex; align-items: center; height: 100%; }

/* Ссылки/разделители */
.navigation-link, .navigation-current, .navigation-sep{
  display: flex; align-items: center; height: 100%;
  font-size: 20px; line-height: 1;
}
.navigation-link{
  font-weight: 700; color: #fff; text-decoration: none !important;
  transition: color .25s ease, filter .25s ease;
}
.navigation-link:hover{
  color: var(--game-brand);
  text-shadow: none;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--game-brand) 45%, transparent));
}
.navigation-current{ color:#fff; font-weight:700; }
.navigation-sep{ margin-inline: var(--space-2); color: var(--game-muted); }

/* Справа — переключатель режима в хедере */
.navigation .mode-switch{ margin-left: auto; }
#nav-mode-switch .mode-btn[data-mode="inapp"],
#nav-mode-switch .mode-btn[data-mode="web"]{
  width: 110px !important; min-width: 110px; white-space: nowrap;
  height: 35px; padding: 8px 20px !important; display:flex; align-items:center; justify-content:center;
  font-size: 14px; line-height: 1;
  
}


/* ========== 3) ШАПКА ИГРЫ ============================================ */
.game-header{ display:flex; align-items:flex-start; gap:var(--space-6); margin-bottom:var(--space-8); }
.game-header-content{ flex:1; }
.page-title{ font-size:var(--game-h2); line-height:1.2; font-weight:700; color:var(--game-text); margin:0 0 var(--space-4) 0; text-align:left; }
.page-title .hdr-br{ display:block; }
.game-logo{ width:120px; height:120px; border-radius:var(--game-radius); object-fit:cover; flex-shrink:0; }
.header-actions{ display:flex; flex-wrap:wrap; gap:var(--space-3); }

.filter-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:var(--dt-control-padding);
  font-size:var(--dt-control-font-size); color:var(--dt-control-idle-color);
  background:var(--dt-control-idle-background); 
  border: none; /* Убираем border полностью */
  border-radius:var(--dt-control-radius);
  /* Используем box-shadow для базового border вместо реального border */
  box-shadow: var(--dt-control-idle-shadow);
  transition: var(--dt-interactive-transition-shadow, all 0.2s ease);
  font-weight: 600;
  position: relative;
}
.filter-btn:hover:not(.active){ 
  /* Для неактивных кнопок при hover - только яркая рамка, без внешнего свечения */
  box-shadow: var(--dt-control-hover-shadow);
  color: var(--dt-control-hover-color);
  text-shadow: var(--dt-interactive-control-hover-text-shadow, 0 0 8px var(--game-brand-soft));
}
/* Усиление свечения при hover для активных кнопок */
.filter-btn.active:hover {
  box-shadow: var(--dt-control-selected-hover-shadow);
}
.filter-btn:active:not(.active){ transform: var(--dt-interactive-motion-transform, none); }
.filter-btn.active{ 
  background:var(--dt-control-selected-background); 
  border: none !important; /* Полностью убираем border */
  color:var(--dt-control-selected-color);
  font-weight: 700;
  text-shadow: var(--dt-control-selected-text-shadow);
  cursor: default;
  position: relative;
  /* Интенсивный яркий бордюр и свечение, как у поиска */
  box-shadow: var(--dt-control-selected-shadow);
}

/* ========== 3.1) ШАПКА: АДАПТАЦИЯ ПО КОЛИЧЕСТВУ ФИЛЬТРОВ ============== */

/* 1 фильтр: центрирован, ограниченная ширина */
.header-actions[data-filters-count="1"]{
  justify-content: center;
}
.header-actions[data-filters-count="1"] .filter-btn{
  max-width: 200px;
  width: auto;
  min-width: 140px;
}

/* 2 фильтра: в ряд на десктопе, 2 колонки на мобильных */
.header-actions[data-filters-count="2"]{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.header-actions[data-filters-count="2"] .filter-btn{
  flex: 0 1 auto;
  min-width: 0;
}

/* 3 фильтра: в ряд на десктопе, адаптивно на мобильных */
.header-actions[data-filters-count="3"]{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.header-actions[data-filters-count="3"] .filter-btn{
  flex: 0 1 auto;
  min-width: 0;
}

/* 4 фильтра: как есть (без специальных правил, используем базовые стили) */


/* ========== 4) СЕТКА / КАРТОЧКИ ТОВАРОВ =============================== */
.main-content{ display:flex; gap:var(--space-5); }
.products{
  display:grid; flex:1 1 auto; gap:var(--space-6);
  grid-template-columns:repeat(auto-fill, minmax(var(--card-min), 1fr));
}

/* Карточка товара */
.product-card{
  --card-accent: var(--game-brand);
  --card-accent-2: var(--game-brand-2);
  --card-accent-soft: color-mix(in srgb, var(--card-accent) 35%, transparent);
  position:relative; display:flex; flex-direction:column; gap:var(--space-3);
  text-align:center; overflow:hidden; z-index:0;
  padding:var(--space-5) var(--space-4) var(--space-4);
  background:var(--game-panel); border:var(--game-border);
  border-radius:var(--game-radius); box-shadow:var(--game-shadow);
  transition: box-shadow .22s ease, border-color .22s ease, filter .22s ease;
}
.product-card::before{ /* внутренняя окантовка */
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  box-shadow:0 0 0 1px rgba(255,255,255,.06) inset;
}
.product-card::after{ /* свечение при hover/focus */
  content:""; position:absolute; inset:-1px; border-radius:inherit; pointer-events:none;
  opacity:0;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0) inset,
    0 0 0 0 color-mix(in srgb, var(--game-brand) 0%, transparent),
    0 0 0 0 color-mix(in srgb, var(--game-brand) 0%, transparent);
  transition: opacity .22s ease, box-shadow .22s ease, filter .22s ease;
}
.product-card:hover{
  box-shadow:var(--elev-2);
  border-color: color-mix(in srgb, var(--game-brand) 45%, #2e2e2e);
  background: color-mix(in srgb, var(--game-panel) 94%, var(--game-brand) 6%);
}
.product-card:hover::after,
.product-card:focus-visible::after{
  opacity:1;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--game-brand) 55%, rgba(255,255,255,.08)) inset,
    0 0 0 2px color-mix(in srgb, var(--game-brand) 24%, transparent),
    0 16px 38px color-mix(in srgb, var(--game-brand) 22%, transparent);
}
.product-card:focus-visible{ outline:none; }

@keyframes shimmer{ 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Медиа-подиум */
.card-media{
  position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden;
  aspect-ratio:4/3; border-radius:var(--game-radius); border:var(--game-border);
  background:
    radial-gradient(65% 55% at 50% 15%, color-mix(in srgb, var(--card-accent) 18%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
}
.card-media::after{
  content:""; position:absolute; inset:auto 8% 8% 8%; height:16%; border-radius:50%;
  background:radial-gradient(60% 80% at 50% 50%, color-mix(in srgb, var(--card-accent) 25%, transparent), transparent 70%);
  filter:blur(12px); pointer-events:none;
}
.card-media.is-loading::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04));
  animation:shimmer 1.1s linear infinite; border-radius:inherit;
}
.card-media img{
  width:82%; height:82%; object-fit:contain;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.35));
  transition:transform .25s ease;
}
.card-media--fallback{
  background:
    radial-gradient(62% 52% at 50% 18%, color-mix(in srgb, var(--card-accent) 20%, transparent) 0%, transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 82%, #15151b), color-mix(in srgb, var(--panel-2) 88%, #101016));
}
.card-media--fallback img{
  width:64%;
  height:64%;
  opacity:.96;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.28));
}
.product-card:hover .card-media img{ transform:none; } /* без масштабирования */

/* Скрытые товары (только в режиме админа) */
.card-media--no-image{
  background:
    radial-gradient(60% 46% at 50% 18%, color-mix(in srgb, var(--card-accent) 14%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
}
.card-media__placeholder{
  width:100%;
  height:100%;
}
.product-card--hidden{
  opacity: 0.65;
  border-color: rgba(255, 193, 7, 0.3);
  position: relative;
}
.product-card--hidden::before{
  box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.2) inset;
}
.product-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;
}

/* Подсветка товаров с activeUntil */
.product-card--active-until{
  position: relative;
  border-color: rgba(139, 92, 246, 0.4) !important;
  overflow: visible; /* чтобы плашка с датой при наведении не обрезалась */
}
.product-card--active-until::before{
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3) inset;
}
/* Карточки с подсказкой условий покупки (наборы) — обводка как у часиков (фиолетовая) */
.product-card--purchase-hint{
  position: relative;
  border-color: rgba(139, 92, 246, 0.4) !important;
  overflow: visible;
}
.product-card--purchase-hint::before{
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3) inset;
}

.product-card--expired{
  opacity: 0.7;
  border-color: rgba(239, 68, 68, 0.4) !important;
}
.product-card--expired::before{
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3) inset;
}

/* Бейдж с часами для товаров с activeUntil */
.product-card__active-until-badge{
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  cursor: help;
  transition: background 0.2s ease, transform 0.2s ease;
}
.product-card--expired .product-card__active-until-badge{
  background: rgba(239, 68, 68, 0.9);
}
.product-card__active-until-badge:hover{
  background: rgba(139, 92, 246, 1);
}
.product-card__active-until-badge:active{
  transform: scale(0.98);
}
.product-card--expired .product-card__active-until-badge:hover{
  background: rgba(239, 68, 68, 1);
}

/* Плашка с датой истечения — показывается сразу при наведении (ПК), фирменный стиль */
.product-card__active-until-badge::after{
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: var(--game-panel-2, #111);
  color: var(--game-text, #fff);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--game-radius, 12px);
  border: 1px solid rgba(167, 94, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 4px 16px var(--game-brand-soft, rgba(167,94,255,.35));
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity 0.06s ease-out, transform 0.06s ease-out;
  transition-delay: 0s;
  z-index: 20;
}
.product-card__active-until-badge:hover::after{
  opacity: 1;
  transform: translateY(0);
}
/* На тач-устройствах только JS-плашка по тапу; CSS-тултип не показываем, чтобы не было двух плашек */
@media (pointer: coarse) {
  .product-card__active-until-badge::after,
  .product-card__purchase-hint-badge::after { display: none !important; }
}

/* Бейдж «?» — подсказка условий покупки (наборы), в одном стиле с часиками (фиолетовый) */
.product-card__purchase-hint-badge{
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: help;
  transition: background 0.2s ease, transform 0.2s ease;
}
.product-card__purchase-hint-badge:hover{
  background: rgba(139, 92, 246, 1);
}
.product-card__purchase-hint-badge:active{
  transform: scale(0.98);
}
.product-card__purchase-hint-badge::after{
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: var(--game-panel-2, #111);
  color: var(--game-text, #fff);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--game-radius, 12px);
  border: 1px solid rgba(167, 94, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 4px 16px var(--game-brand-soft, rgba(167,94,255,.35));
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity 0.06s ease-out, transform 0.06s ease-out;
  z-index: 20;
}
.product-card__purchase-hint-badge:hover::after{
  opacity: 1;
  transform: translateY(0);
}

/* Если на одной карточке и часики, и «?» — сдвигаем «?» влево */
.product-card--active-until .product-card__purchase-hint-badge{ right: 44px; }

/* Плашка по тапу на часики (мобилка) — фирменный стиль */
.timer-tooltip-popover{
  position: fixed;
  z-index: 99999;
  padding: 10px 14px;
  background: var(--game-panel-2, #111);
  color: var(--game-text, #fff);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  max-width: calc(100vw - 16px);
  box-sizing: border-box;
  border-radius: var(--game-radius, 12px);
  border: 1px solid rgba(167, 94, 255, 0.4);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 4px 16px var(--game-brand-soft, rgba(167,94,255,.35)),
    0 4px 24px rgba(0,0,0,.4);
  pointer-events: none;
  animation: timerPopoverIn 0.2s ease-out;
}
@media (max-width: 400px) {
  .timer-tooltip-popover { white-space: normal; }
}
@keyframes timerPopoverIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.price-row{ display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); }
.price-chip{
  display:flex; align-items:center; justify-content:center; flex:1 1 auto; height:40px;
  font-weight:600; font-family: var(--font-accent);
  color:var(--game-text); background:rgba(255,255,255,.02);
  border:1px solid #5a5a5a; border-radius:var(--game-radius);
  white-space: nowrap; min-width: 0;
}

/* Кнопка «+» */
.add-btn{
  display:flex; align-items:center; justify-content:center; flex:0 0 40px; width:40px; height:40px;
  border:none; border-radius:50%; cursor:pointer; font-size:20px; color:var(--dt-card-action-idle-text);
  background: var(--dt-card-action-idle-bg);
  box-shadow: var(--dt-card-action-idle-shadow);
  transition: var(--dt-card-action-transition);
}
.add-btn:hover{ box-shadow:var(--dt-card-action-hover-shadow); }
.add-btn:active{ transform:var(--dt-card-action-pressed-transform); }

/* Счётчик */
.counter{
  display:flex; align-items:center; justify-content:center; gap:var(--space-4);
  min-width:0; height:40px; padding:0 var(--space-2);
  background:var(--dt-quantity-bg); border:var(--dt-quantity-border); border-radius:var(--dt-quantity-radius);
}
.counter .count{ min-width:2ch; text-align:center; font-weight:600; line-height:1; }
.counter .inc, .counter .dec{
  display:flex; align-items:center; justify-content:center; width:28px; height:28px;
  border:none; border-radius:50%; cursor:pointer; font-size:18px; color:var(--game-text);
  transition: var(--dt-quantity-transition); aspect-ratio: 1 / 1;
}
.counter .dec{
  background:var(--dt-quantity-button-neutral-bg);
  box-shadow:var(--dt-quantity-button-neutral-shadow);
}
.counter .inc{
  background: var(--dt-quantity-button-accent-bg);
  box-shadow:var(--dt-quantity-button-accent-shadow);
}

/* Когда внизу счётчик — сетка «цена | счётчик» */
.price-row:has(.counter){
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--space-3); align-items: center;
}
.price-row:has(.counter) .counter{ width: auto; }
.price-row:has(.counter) .price-chip{ width: auto; }

/* Стабилизация высоты карточек на десктопе */
@media (min-width: 901px){
  .products{ align-items: start; }
  .product-card{
    display: grid; grid-template-rows: auto 1fr auto; /* media | spacer | price */
    min-height: 0;
  }
  .product-card .card-media{ align-self: start; }
  .product-card .price-row{ min-height: 40px; }
  .product-card .price-row:has(.counter){
    display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center;
  }
}


/* ========== 5) КОРЗИНА (ПК) ========================================== */
.cart{
  align-self:flex-start; position:sticky; overflow:visible;
  flex:0 0 300px; width:300px;
  max-height:calc(100dvh - var(--space-8));
  padding: 12px var(--space-3) var(--space-3);
  top:var(--space-3);
  background:var(--game-panel);
  border:var(--game-border);
  border-radius:var(--game-radius);
}

/* Шапка корзины */
.cart-header{ margin-bottom:var(--space-3); }
.cart-header-top{
  display:grid; grid-template-columns:1fr auto 1fr;
  align-items:center; gap:var(--space-3);
  min-height:40px;
}
.cart-header{ --cart-header-size: var(--game-text-xl, 20px); }
.cart-header h2{ margin:0; font-weight:700; font-size:var(--cart-header-size); line-height:1.2; }
.cart-header h2.cart-title{ display:flex; align-items:center; gap:8px; justify-self:start; }
.cart-title .cart-title-text{ font-weight:700; }

.cart-count{
  display:inline-flex; align-items:center; padding:0; border:none; border-radius:0; background:none;
  font-size:var(--cart-header-size); line-height:1.2; color:var(--game-text); font-weight:700;
}
#cart-total{ justify-self:center; color:var(--game-brand); font-size:var(--cart-header-size); line-height:1.2; }
.cart-actions{ justify-self:end; display:inline-flex; align-items:center; gap:var(--space-2); }

.cart ul{ list-style: none; margin: 0 0 var(--space-4) 0; padding: 0; }
#cart-items > .cart-item-card:last-child{ margin-bottom: 0; }

.cart.scrollable #cart-items{ max-height:420px; overflow-y:auto; }

.cart-clear-btn{
  cursor:pointer; padding:var(--space-1); border-radius:var(--radius-sm);
  background:var(--dt-destructive-clear-idle-bg); border:none; transition:var(--dt-destructive-clear-transition);
}
.cart-clear-btn:hover{ background:var(--dt-destructive-clear-hover-bg); transform:var(--dt-destructive-clear-transform); }
.cart-clear-btn .icon-trash{ stroke:var(--dt-destructive-clear-idle-icon); transition:stroke .2s ease; }
.cart-clear-btn:hover .icon-trash{ stroke:var(--dt-destructive-clear-hover-icon); }

.cart-item-card{
  display:grid; grid-template-columns:1fr auto; align-items:center; gap:var(--space-3);
  padding:var(--space-3); margin-bottom:var(--space-3);
  background:var(--game-panel-2); border:var(--game-border); border-radius:var(--game-radius);
}
/* Тайтл в 2 строки */
.cart .cart-item-card .item-name,
.cart .cart-item-card .cart-item__title{
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.2; max-height: calc(1.2em * 2);
  font-weight: 600;
  font-size: 14px;
}
/* Цена в корзине — фиолетовая */
.cart .cart-item-card .item-price,
.cart .cart-item-card .cart-item__price{
  color: var(--brand, #8b5cf6);
  font-weight: 700;
  font-size: 14px;
}
/* Увеличенная цена для Steam подарков в десктопной корзине */
.cart .cart-item-card .cart-item__price--large{
  font-size: 18px !important;
  font-weight: 700 !important;
}

.item-counter{
  grid-column:1/-1; display:flex; align-items:center; justify-content:space-between;
  height:36px; padding:0 var(--space-2); background:var(--game-panel-2);
  border:var(--game-border); border-radius:var(--game-radius);
}
.item-counter button{
  width:28px; height:28px; cursor:pointer; background:none; border:none;
  color:var(--game-brand); font-size:18px; transition:filter .2s;
}
.item-counter button:hover{ filter:drop-shadow(0 0 4px var(--game-brand)); }

.item-source{
  grid-column:1 / -1; height:36px; display:flex; align-items:center; justify-content:center;
  background:var(--game-panel-2); border:var(--game-border); border-radius:var(--game-radius);
  font-size:14px; color:var(--game-text); font-family:var(--font-accent);
}

.btn-pay{
  width:100%; cursor:pointer; padding:var(--space-3) var(--space-4);
  border:none; /* Убираем border */
  border-radius:var(--game-radius);
  font-size:var(--game-text-md); font-weight:700; color:var(--game-brand);
  background:var(--game-panel-2);
  transition: var(--dt-interactive-transition-shadow, all 0.2s ease);
  position: relative;
  /* В спокойном состоянии без свечения */
  box-shadow: none;
}
/* Интенсивный яркий бордюр и свечение только в активном состоянии (не disabled) - используем токены */
.btn-pay:not(:disabled) {
  box-shadow: var(--dt-interactive-primary-idle-shadow, var(--pay-btn-active-shadow));
}
/* Усиление свечения при hover для активных кнопок - используем токены */
.btn-pay:hover:not(:disabled) {
  box-shadow: var(--dt-interactive-primary-hover-shadow, var(--pay-btn-hover-enhanced));
}
.btn-pay:active:not(:disabled){ 
  transform: var(--dt-interactive-motion-transform, none);
}
.btn-pay:disabled{ 
  background:var(--game-panel-2); 
  border:none;
  color:var(--game-muted);
  opacity:.5; 
  cursor:not-allowed;
  box-shadow: none;
}

#cart-mode-switch, #cart .mode-chip{ display:none !important; } /* в корзине скрываем чип/свитч */

.cyber-total.total-highlight{ animation:totalPulse .6s ease; }
@keyframes totalPulse{
  0%{text-shadow:none;filter:none}
  35%{text-shadow:0 0 12px var(--game-brand);filter:saturate(1.1)}
  100%{text-shadow:none;filter:none}
}

/* Скролл-обёртка */
.cart-items-wrap { position: relative; }
.cart-nav { display: none; }      /* стрелки скрыты базово */
#cart-items{ overflow: visible; } /* базово без фикс.высоты */

/* Невидимый скролл, включаем только при необходимости */
.cart-items-wrap #cart-items{ scrollbar-width: none; -ms-overflow-style: none; }
.cart-items-wrap #cart-items::-webkit-scrollbar{ width:0; height:0; display:none; }
.cart-items-wrap.is-scroll #cart-items{
  overflow-y: auto !important; scroll-snap-type: y proximity; scroll-padding-bottom: 2px; max-height: 420px;
}
/* Если есть ≥3 элемента (поддержка :has) — включаем скролл */
@supports(selector(:has(*))){
  .cart-items-wrap:has(#cart-items > *:nth-child(3)) #cart-items{
    overflow-y: auto !important; scroll-snap-type: y proximity; scroll-padding-bottom: 2px; max-height: 420px;
  }
}

/* Пустая корзина — одна «пилюля» во всю ширину */
.cart .cart-empty{ 
  margin: 12px 0;                  /* сверху и СНИЗУ по 12px */
}
.cart .cart-empty[hidden]{          /* на всякий случай: если JS ставит hidden */
  display: none !important;
}
.cart .cart-empty-bar{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: var(--game-radius);
  background: var(--panel-2, #151515);
  border: 1px solid color-mix(in srgb, var(--text-2, #fff) 12%, transparent);
  box-shadow: none;
  color: var(--text-1, #fff);
  font-weight: 600;
  letter-spacing: .01em;
  cursor: default;              /* это не интерактивный элемент */
  user-select: none;
}

.cart .cart-empty-hint{
  margin-top: 8px;
  color: var(--text-2, #aaa);
  font-size: var(--game-text-xs, 12px);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  opacity: .78;
  pointer-events: none;
  user-select: none;
}


/* ========== 6) ОПИСАНИЕ + SEO ======================================== */
#game-desc-title#game-desc-title{ margin-bottom:12px; }
.desc-intro{ margin-block: var(--space-3); display: flow-root; }
/* extra-description: базовое поведение + корректное раскрытие */
.extra-description{
  margin-block: var(--space-3);
}
.extra-description[hidden]{ display:none !important; }
.extra-description:not([hidden]){ display: flow-root; }

#game-desc-content{ margin-top:0; }
#game-desc-intro, #game-desc-extra,
#service-desc-intro, #service-desc-extra,
#steam-desc-intro, #steam-desc-extra{ margin-top: 12px; }
#game-desc-intro p + p,
#game-desc-content p + p,
#service-desc-intro p + p,
#service-desc-content p + p,
#steam-desc-intro p + p,
#steam-desc-content p + p { margin-top: var(--space-3); }

.game-desc{ margin-block:var(--space-8); }
.desc-head{ display:inline-flex; align-items:center; gap:12px; padding:0; background:none; border:none; cursor:pointer; color:var(--game-text); line-height:1.2; }
.desc-title{ margin:0; font-size:var(--game-h2); line-height:1.2; letter-spacing:.2px; }
.arrow-icon{ flex:0 0 18px; display:block; color:var(--game-brand); transition:transform .25s ease; transform-origin:center; }
.dt-description{
  --dt-description-title-size: var(--game-h2);
  --dt-description-title-line-height: 1.2;
  --dt-description-toggle-gap: 12px;
  --dt-description-chevron-size: 18px;
  --dt-description-chevron-color: var(--game-brand);
  --dt-description-intro-margin: var(--space-3);
  --dt-description-extra-margin: var(--space-4);
  --dt-description-content-width: 82ch;
  --dt-description-panel-padding: var(--space-8) var(--space-5);
  --dt-description-panel-radius: var(--game-radius);
  --dt-description-panel-border: 1px solid rgba(255,255,255,.06);
  --dt-description-panel-bg: var(--game-panel);
  --dt-description-panel-gap: var(--space-4);
}
.dt-description .dt-description__toggle{
  display:inline-flex;
  align-items:center;
  gap:var(--dt-description-toggle-gap);
  line-height:var(--dt-description-title-line-height);
}
.dt-description .dt-description__title{
  margin:0;
  font-size:var(--dt-description-title-size);
  line-height:var(--dt-description-title-line-height);
}
.dt-description .dt-description__chevron{
  width:var(--dt-description-chevron-size);
  height:var(--dt-description-chevron-size);
  flex:0 0 var(--dt-description-chevron-size);
  position:static !important;
  top:auto !important;
  align-self:center;
  color:var(--dt-description-chevron-color);
  transform-origin:center;
}
.desc-head[aria-expanded="true"] .arrow-icon,
.dt-description .dt-description__toggle[aria-expanded="true"] .dt-description__chevron{ transform:rotate(180deg); }

.dt-description__intro,
.desc-intro,
.dt-description [id$="-desc-intro"]{
  margin-top:var(--dt-description-intro-margin);
  width:100%;
  max-width:none;
  box-sizing:border-box;
}
.dt-description__intro p,
.desc-intro p,
.dt-description [id$="-desc-intro"] p{
  margin:0;
  max-width:none;
  color:var(--game-text);
  line-height:var(--game-lh-base);
}
.dt-description__intro p + p,
.desc-intro p + p{ margin-top:var(--space-3); }

.extra-description,
.dt-description__extra{
  margin-top:var(--dt-description-extra-margin);
  width:100%;
  max-width:none;
  box-sizing:border-box;
}
.extra-description[hidden],
.dt-description__extra[hidden]{ display:none !important; }
.extra-description:not([hidden]),
.dt-description__extra:not([hidden]){ display:flow-root; width:100%; }
.dt-description .extra-description.dt-description__extra{
  width:100%;
  max-width:none;
  box-sizing:border-box;
  padding:0;
  background:transparent;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
}
.dt-description .extra-description.dt-description__extra::before{ display:none; }
.dt-description__panel{
  position:relative;
  display:block;
  width:100%;
  max-width:none;
  box-sizing:border-box;
  padding:var(--dt-description-panel-padding);
  background:var(--dt-description-panel-bg);
  border:var(--dt-description-panel-border);
  border-radius:var(--dt-description-panel-radius);
  overflow:hidden;
}
.dt-description__panel > :first-child{ margin-top:0 !important; }
.dt-description__panel > :last-child{ margin-bottom:0 !important; }
.dt-description__panel .category-seo,
.dt-description__panel [id$="-desc-content"]{
  margin:0;
  max-width:none;
}
.dt-description__panel p{
  margin:0;
  color:var(--game-text);
  line-height:var(--game-lh-base);
  max-width:none;
}
.dt-description__panel p + p{ margin-top:var(--space-3); }
.dt-description__panel h3{ margin:var(--space-6) 0 var(--space-3); font-size:var(--game-h3); line-height:1.25; }
.dt-description__panel .dot-list{ margin:0 0 var(--space-4); padding-left:0; list-style:none; }
.dt-description__panel .dot-list li{
  position:relative; margin:.4em 0; padding-left:1.25em; color:var(--game-text);
}
.dt-description__panel .dot-list li::before{
  content:""; position:absolute; left:0; top:.55em; width:.5em; height:.5em; border-radius:50%;
  background:var(--game-brand); box-shadow:0 0 0 2px color-mix(in srgb, var(--game-brand) 20%, transparent);
}
.dt-description__panel a{ color:var(--game-brand); text-decoration:underline; text-underline-offset:2px; }


/* ========== 7) ПЕРЕКЛЮЧАТЕЛИ РЕЖИМА ================================== */
.mode-switch{
  display:inline-flex; 
  align-items:center; 
  gap:0;
  margin-left:var(--space-4);
  background:transparent; 
  border:none; /* Убираем внешний бордюр */
  border-radius:999px; 
  overflow:visible; /* Убираем hidden, чтобы видеть закругления */
  width: auto; /* Автоматическая ширина, но стабильная */
  flex-shrink: 0; /* Не сжимается */
  position: relative;
  isolation: isolate;
}
.mode-switch.disabled{ opacity:.5; pointer-events:none; }
.mode-btn{
  padding:8px 20px; /* Увеличили padding справа для лучшего отступа текста */
  font-size:14px;
  color:var(--game-text);
  background:var(--game-panel-2);
  border:none; /* Убираем границы, чтобы не было шва между кнопками */
  border-radius:999px; /* Делаем все кнопки закругленными */
  cursor:pointer;
  transition: var(--dt-interactive-transition-shadow, all 0.2s ease);
  min-width: 110px; /* Фиксированная минимальная ширина для стабильности */
  width: 110px; /* Фиксированная ширина для обеих кнопок */
  flex: 0 0 110px; /* Фиксированный размер, не растягивается и не сжимается */
  text-align: center; /* Центрируем текст */
  white-space: nowrap; /* Не переносим текст */
  box-sizing: border-box; /* Padding включается в ширину */
  font-weight: 600;
  position: relative;
  z-index: 1;
  margin: 0;
}
/* Убираем шов между кнопками - убираем закругление у внутренних сторон */
.mode-btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.mode-btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
/* Одиночная кнопка - полностью закругленная со всех сторон */
.mode-btn:only-child {
  border-radius: 999px;
  margin-left: 0;
}
.mode-btn:hover:not(.active){
  /* Для неактивных кнопок при hover - только яркая рамка, без внешнего свечения */
  color: var(--game-brand);
  text-shadow: var(--dt-interactive-control-hover-text-shadow, 0 0 8px var(--game-brand-soft));
  box-shadow: var(--dt-interactive-control-hover-shadow, var(--button-hover-border-only));
}
/* Усиление свечения при hover для активных кнопок - используем стиль из токенов как у .btn-pay */
.mode-btn.active:hover {
  box-shadow: var(--dt-interactive-primary-hover-shadow, var(--pay-btn-hover-enhanced));
}
.mode-btn:active:not(.active){ transform: var(--dt-interactive-motion-transform, none); }
.mode-btn.active{
  color:var(--game-brand);
  background:var(--game-panel-2);
  font-weight: 700;
  text-shadow: var(--dt-interactive-control-text-shadow, 0 0 12px var(--game-brand-soft), 0 0 20px var(--game-brand-soft));
  cursor: default;
  /* Ширина не меняется при активации */
  width: 110px; /* Та же фиксированная ширина */
  min-width: 110px; /* Та же минимальная ширина */
  flex: 0 0 110px; /* Та же фиксированная ширина */
  z-index: 2;
  /* Подсветка для активной кнопки - используем стиль из токенов как у .btn-pay */
  box-shadow: var(--dt-interactive-primary-idle-shadow, var(--pay-btn-active-shadow));
}
.mode-chip{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  margin-right:var(--space-2);
  border-radius: 999px;
  font-size:13px;
  color:var(--game-text);
  background:color-mix(in srgb, var(--game-brand) 22%, transparent);
  border:1px solid rgba(255,255,255,.06);
}

/* ========== 8) МОДАЛКА ВЫБОРА РЕЖИМА ================================= */
.mode-modal{ position:fixed; inset:0; background:rgba(0,0,0,.6); display:grid; place-items:center; z-index:9999; padding:24px; }
.mode-modal[hidden]{ display:none; }
.mode-modal__card{
  width:min(720px,100%); background:var(--game-panel); border:var(--game-border);
  border-radius:var(--game-radius); padding:20px; box-shadow:var(--game-shadow);
}
.mode-modal__card h3{ margin:0 0 6px 0; font-size:20px; color:var(--game-text, #fff) !important; }
.mode-modal__hint{ margin:0 0 16px 0; color:var(--game-muted); font-size:14px; }
.mode-modal__grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:10px; }
.mode-modal__option{
  display:grid; gap:4px; padding:14px; border-radius:12px;
  border:1px solid rgba(255,255,255,.08) !important; 
  background:var(--game-panel-2) !important;
  cursor:pointer; text-align:left;
  transition: transform .12s ease, border-color .2s ease, box-shadow .2s ease;
  /* Убираем все автоподсветки - только hover */
  outline: none !important;
  box-shadow: none !important;
  /* Явно задаем цвет текста для всех браузеров и iOS */
  color: var(--game-text, #fff) !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}
/* ТОЛЬКО hover подсвечивает */
.mode-modal__option:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb, var(--game-brand) 32%, transparent) !important;
  box-shadow:0 10px 26px rgba(168,85,247,.2) !important;
}

/* Убираем ВСЕ подсветки при любых состояниях, кроме hover */
.mode-modal__option:focus,
.mode-modal__option:focus-visible,
.mode-modal__option:active,
.mode-modal__option:focus-within {
  outline: none !important;
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: none !important;
  background: var(--game-panel-2) !important;
  transform: none !important;
  color: var(--game-text, #fff) !important;
  -webkit-tap-highlight-color: transparent !important;
}
.mode-modal__option::-moz-focus-inner{ border: 0 !important; }

/* Убираем класс active если он где-то устанавливается */
.mode-modal__option.active,
.mode-modal__option[class*="active"],
.mode-modal__option[aria-selected="true"] {
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: none !important;
  background: var(--game-panel-2) !important;
  transform: none !important;
}

/* Гарантируем отсутствие подсветки для всех состояний, кроме hover */
.mode-modal__option:not(:hover) {
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: none !important;
  background: var(--game-panel-2) !important;
  color: var(--game-text, #fff) !important;
}

#mode-modal-title, .mode-modal__title{ font-weight: 600; color:var(--game-text, #fff) !important; }
.mode-modal__option-title{ margin:0 0 6px 0; font-size:16px; line-height:1.2; color:var(--game-text, #fff) !important; }
.mode-modal__option-note{ color:var(--game-muted); font-size:14px; }
.mode-modal__footer-hint{ margin:12px 0 0 0; font-size:14px; color:var(--game-muted); }

/* Исправление для iOS - убираем синий цвет при нажатии */
.mode-modal__option * {
  color: inherit !important;
  -webkit-tap-highlight-color: transparent !important;
}
.mode-modal__option-title,
.mode-modal__option-note {
  -webkit-tap-highlight-color: transparent !important;
}

/* ======================================================================
   MODE MODAL — SINGLE (одна опция) : текст + компактная кнопка по центру
   ====================================================================== */

.mode-modal.is-single .mode-modal__card{
  width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px;
}
  
/* hint компактнее и ровнее */
.mode-modal.is-single .mode-modal__hint{
  max-width: 460px;
  margin: 0;
  line-height: 1.45;
}
  
/* footer-hint используем как "вторую строку текста" над кнопкой */
.mode-modal.is-single .mode-modal__footer-hint{
  order: 3;
  max-width: 460px;
  margin: 0;
  line-height: 1.45;
}
  
/* если footer-hint пустой — не занимаем место */
.mode-modal.is-single .mode-modal__footer-hint:empty{
  display: none;
}
  
/* grid превращаем в контейнер под кнопку */
.mode-modal.is-single .mode-modal__grid{
  order: 4;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  width: 100%;
  margin: 6px 0 0;
}
  
/* опция становится именно кнопкой */
.mode-modal.is-single .mode-modal__option{
  width: auto;
  min-width: 200px;
  max-width: 240px;
  min-height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  padding: 0 18px;
  text-align: center;
  line-height: 1;
 
  border-radius: 14px;
}
  
/* внутри плитки обычно есть title/note — прячем note, title центрируем */
.mode-modal.is-single .mode-modal__option-note{
  display: none;
}
.mode-modal.is-single .mode-modal__option-title{
  margin: 0;
  text-align: center;
}
  
/* ========== 9) МОБИЛЬНЫЙ ДОК-БАР ===================================== */
.mobile-bar{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; /* включаем на ≤755px ниже */
  padding-bottom: calc(env(safe-area-inset-bottom, 0px));
  background: rgba(10,10,12,.55);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-bar__inner{
  max-width: 1400px; margin: 0 auto;
  padding: 10px var(--page-x);
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0;
}
.mbtn{
  appearance: none; border: 0; background: transparent; box-shadow: none; color: var(--text);
  height: 64px; border-radius: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; user-select: none;
}
.mbtn__icon{ width: 22px; height: 22px; display: grid; place-items: center; }
.mbtn__label{ font: 600 13px/1 var(--font-accent); opacity: .9; min-height: 16px; }
.mbtn--cart .mbtn__label{ display: none; }
.mbtn__badge{
  position: static; transform: none; min-width: auto; height: auto; padding: 2px 6px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font: 700 12px/1 var(--font-accent); margin-top: 2px;
}
.mbtn--cart .mbtn__badge[hidden]{ display: none; }

/* Уточнение размеров SVG в доке (более специфично, чем legacy-правило ниже) */
.mobile-bar .mbtn__icon svg{ width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 2; }

/* ========== 10) МОБИЛЬНЫЙ НИЖНИЙ ШИТ КОРЗИНЫ ========================= */
.cart-drawer{ position: fixed; inset:0; z-index: 120; display: contents; }
.cart-drawer[aria-hidden="true"] .cart-drawer__overlay{ opacity:0; pointer-events:none; }
.cart-drawer[aria-hidden="true"] .cart-drawer__sheet{ transform: translateY(100%); }

.cart-drawer__overlay{ position: fixed; inset:0; background: rgba(0,0,0,.5); transition: opacity .25s ease; }
.cart-drawer__sheet{
  position: fixed; left:0; right:0; bottom:0;
  margin: 0 auto; max-width: 1400px;
  background: var(--panel-2); color: var(--text);
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  box-shadow: 0 -20px 40px rgba(0,0,0,.6);
  transform: translateY(0); transition: transform .28s ease;
  max-height: calc(100vh - 70px); display:flex; flex-direction:column;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
}
.cart-drawer__grip{ width: 54px; height: 6px; border-radius: 3px; background: #2a2a2a; margin: 10px auto 6px; }
.cart-drawer__header{ display:flex; align-items:center; justify-content:space-between; padding: 8px 16px 4px; }
.cart-drawer__header h3{ font-size:18px; font-weight:800; margin:0; }
.cart-drawer__close{ background: transparent; color: var(--muted); border:0; font-size:20px; line-height:1; padding:8px; cursor:pointer; }
.cart-drawer__clear{ background: transparent; border:0; color: var(--muted); padding:8px; cursor:pointer; line-height:1; display:inline-flex; align-items:center; justify-content:center; }
.cart-drawer__clear:hover{ color:#ff6b6b; }

.cart-drawer__body{ padding: 8px 16px; overflow:auto; }
.cart-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.cart-item{
  display:grid; grid-template-columns: 1fr auto; gap:8px; align-items:center;
  background: var(--panel); border-radius: 14px; padding: 12px;
}
.cart-item__title{ font-weight:600; font-size:14px; }
.cart-item__price{ color: var(--brand); font-weight:700; font-size:14px; }
.cart-item__price--large{ font-size:18px !important; font-weight:700 !important; }
/* Убираем плашку "Вход в игру" для Steam подарков */
.cart-item-card:has(.cart-item__price--large) .item-source{ display:none !important; }

.cart-qty{ display:flex; align-items:center; gap:8px; }
.cart-qty button{
  width:34px; height:34px; border-radius:10px; background: transparent; border: 0; color: var(--brand);
  font-weight:800; line-height:1; display:grid; place-items:center; cursor:pointer;
}
.cart-qty button:active{ transform: var(--dt-interactive-motion-transform, none); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--brand) 50%, transparent)); }
.cart-qty input{
  width:48px; height:34px; text-align:center; border:0; background:#1a1a1a; color:#fff; border-radius:10px; font-weight:700;
}
.cart-qty .js-rem{ display:none !important; } /* старый элемент — скрыт */

.cart-drawer__footer{
  margin-top:auto; padding: 12px 16px 16px; display:grid; gap:10px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.25) 30%, rgba(0,0,0,.35) 100%);
  border-top-left-radius: 20px; border-top-right-radius: 20px;
}
.cart-total{ display:flex; align-items:baseline; justify-content:space-between; font-size:16px; font-weight:700; }
.cart-drawer__pay {
  width: 100%;
  cursor: pointer;
  padding: var(--space-3) var(--space-4);
  border: none; /* Убираем border, переносим в ::before */
  border-radius: var(--game-radius);
  font-size: var(--game-text-md);
  font-weight: 700;
  color: var(--game-brand);
  background: var(--game-panel-2);
  transition: var(--dt-interactive-transition-shadow, all 0.2s ease);
  min-height: 48px;
  font-family: var(--font-accent);
  position: relative;
}
/* Подсветка через ::before, как у переключателей - красиво на скруглениях */
.cart-drawer__pay::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--game-brand);
  box-shadow: 
    0 0 0 2px var(--game-brand-soft),
    0 0 0 1px color-mix(in srgb, var(--game-brand) 55%, rgba(255,255,255,.08)) inset,
    0 0 12px var(--game-brand-soft);
  pointer-events: none;
  z-index: -1;
  transition: var(--dt-interactive-transition-shadow, all 0.2s ease);
}
.cart-drawer__pay:hover:not(:disabled)::before {
  box-shadow: 
    0 0 0 2px var(--game-brand-soft), 
    0 0 0 1px color-mix(in srgb, var(--game-brand) 55%, rgba(255,255,255,.08)) inset,
    0 0 12px var(--game-brand-soft),
    0 0 20px var(--game-brand-soft);
}
.cart-drawer__pay:active:not(:disabled) {
  transform: var(--dt-interactive-motion-transform, none);
}
.cart-drawer__pay:disabled {
  background: var(--game-panel-2);
  border-color: rgba(255,255,255,.06);
  color: var(--game-muted);
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.btn.btn--brand{ 
  height: 48px; 
  border-radius: 14px; 
  border: none; /* Убираем border, переносим в ::before */
  font-weight:700; 
  cursor:pointer; 
  background: var(--game-panel-2); 
  color: var(--brand);
  transition: var(--dt-interactive-transition-shadow, all 0.2s ease);
  position: relative;
}
/* Подсветка через ::before, как у переключателей - красиво на скруглениях */
.btn.btn--brand::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--brand);
  box-shadow: 
    0 0 0 2px var(--game-brand-soft, rgba(168,85,255,.35)),
    0 0 0 1px color-mix(in srgb, var(--brand) 55%, rgba(255,255,255,.08)) inset,
    0 0 12px var(--game-brand-soft, rgba(168,85,255,.35));
  pointer-events: none;
  z-index: -1;
  transition: var(--dt-interactive-transition-shadow, all 0.2s ease);
}
.btn.btn--brand:hover:not(:disabled)::before { 
  box-shadow: 
    0 0 0 2px var(--game-brand-soft, rgba(168,85,255,.35)), 
    0 0 0 1px color-mix(in srgb, var(--brand) 55%, rgba(255,255,255,.08)) inset,
    0 0 12px var(--game-brand-soft, rgba(168,85,255,.35)),
    0 0 20px var(--game-brand-soft, rgba(168,85,255,.35));
}
.btn.btn--brand:active:not(:disabled){ 
  transform: var(--dt-interactive-motion-transform, none);
}
.btn.btn--brand:disabled{ 
  background: var(--game-panel-2); 
  border-color: rgba(255,255,255,.06); 
  color: var(--game-muted);
  opacity: .5; 
  cursor: not-allowed;
  box-shadow: none;
}

body.drawer-open .mobile-bar{ opacity:0; pointer-events:none; } /* шит перекрывает док */

/* LEGACY 18px (оставляем для совместимости; выше есть более специфичное правило на 22px) */
.mbtn__icon svg{ width:18px; height:18px; display:block; fill:none; stroke:currentColor; stroke-width:2; }

/* Лок-боди при открытом шите + видимое фокус-кольцо */
body.drawer-open { overflow: hidden; }
:where(button, [role="button"], .mode-modal__option):focus-visible{
  outline: 2px solid color-mix(in srgb, var(--brand) 60%, transparent);
  outline-offset: 2px;
}


/* Заголовки разделов на странице игры выровнены по весу */
.desc-title,
.faq-title,
#faq-title{
  font-weight: 700;
  font-family: var(--font-heading);
}

/* Крошки/легал — IBM для читабельности */
.navigation, .navigation *{ font-family: var(--font-body) !important; }
.navigation .navigation-link, .navigation .navigation-current{ font-weight: 700; }

.legal, .legal *{ font-family: var(--font-body) !important; }
.legal h1, .legal h2, .legal h3{ font-family: var(--font-heading) !important; font-weight: 700; }
.legal a{ font: inherit; color: #b793ff; text-decoration: underline; text-underline-offset: 2px; }

/* Счётчики/кнопки в корзине — на акцентном шрифте */
.counter .count, .item-counter, .cart-qty input, .cart-qty button{ font-family: var(--font-accent) !important; font-weight: 700; }
.cart :where(button, input){ font: inherit; } /* наследование на всякий случай */

/* Фикс ширины при появлении/исчезновении вертикального скролла */
html { scrollbar-gutter: stable both-edges; }
@supports not (scrollbar-gutter: stable){
  html { overflow-y: scroll; } /* fallback для старых движков */
}

/* === CARD TITLE (единая логика) === */
.product-card :is(.card-title,.product-title,.title){
  margin-block: 0 !important;
}

/* База заголовка: фиксированная высота под 2 строки — все карточки одного размера */
.product-card .card-title{
  margin: 0 !important;
  font-size: var(--game-text-lg);
  line-height: 1.2;
  font-weight: 700;
  color: var(--game-text);
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(2 * 1.2em + 16px); /* всегда место под 2 строки — единая высота карточек */
  height: calc(2 * 1.2em + 16px);
  max-height: calc(2 * 1.2em + 16px);
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: none; /* без переноса по слогам (све-та), только по пробелам */
}

/* По умолчанию (ПК) обе части в блок */
.product-card .card-title .ct-top,
.product-card .card-title .ct-rest{
  display: block;
}

/* Мобилка: фиксированная высота под 3 строки — карточки одного размера */
@media (max-width: 767px){
  .product-card .card-title{
    font-size: 15px;
    line-height: 1.25;
    min-height: calc(3 * 1.25em + 16px);
    height: calc(3 * 1.25em + 16px);
    max-height: calc(3 * 1.25em + 16px);
  }
}


/* ========================== MODAL PAY ========================== */

.pay-modal {
  position: fixed; 
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw; /* Явно задаём ширину на весь viewport */
  height: 100vh; /* Явно задаём высоту на весь viewport */
  z-index: 99999;
  display: none !important; 
  align-items: center; 
  justify-content: center;
  overflow: hidden; /* Убираем скролл у модалки */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.pay-modal.active { 
  display: flex !important; 
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Убеждаемся, что pay-step скрыты, когда модалка не активна */
.pay-modal:not(.active) .pay-step {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.pay-modal__overlay {
  position: absolute; /* Возвращаем absolute, так как родитель уже fixed */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%; /* На всю ширину родителя */
  height: 100%; /* На всю высоту родителя */
  background: rgba(0,0,0,.65); 
  backdrop-filter: blur(4px);
  z-index: 1; /* Ниже окна, но выше фона */
}

.pay-modal__window {
  position: relative; z-index: 2; width: 480px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  background: #11131b; color: #fff;
  border-radius: 20px; padding: 32px;
  box-shadow: 0 22px 55px rgba(0,0,0,.55);
  font-family: var(--font-body);
  overflow-y: auto;
  overflow-x: hidden;
  /* Скрываем скроллбар */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE и Edge */
}

.pay-modal__window::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

.pay-modal__close {
  position: absolute; 
  right: 16px; 
  top: 16px;
  width: var(--close-btn-size, 32px);
  height: var(--close-btn-size, 32px);
  border: none;
  background: var(--close-btn-base-bg, rgba(255, 255, 255, 0.08));
  border-radius: var(--close-btn-border-radius, 50%); /* Круглые */
  color: var(--close-btn-base-color, var(--muted));
  font-size: 20px; 
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
  box-shadow: none;
}
.pay-modal__close:hover {
  background: var(--close-btn-hover-bg, rgba(168, 85, 247, 0.15));
  color: var(--close-btn-hover-color, var(--game-brand));
  /* Используем токен для единого hover-эффекта (адаптируем для игр) */
  box-shadow:
    inset 0 0 0 1px var(--game-brand),
    0 0 8px var(--game-brand-soft);
}

.pay-modal__title { 
  font-size: 22px; 
  margin-bottom: 0; /* Убираем отступ снизу, чтобы было одинаково */
}
.pay-modal__subtitle {
  font-size: 14px; opacity: .75; margin: 8px 0 20px; line-height: 1.5;
}

.pay-modal__notice {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(168, 85, 247, 0.34);
  background:
    linear-gradient(180deg, rgba(38, 24, 61, 0.82), rgba(20, 20, 31, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.pay-modal__notice-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f5f2ff;
}

.pay-modal__notice-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.pay-confirm {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.pay-confirm-card {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pay-confirm-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.pay-confirm-card.is-checked {
  border-color: rgba(34, 197, 94, 0.55);
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), rgba(18, 27, 22, 0.92));
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.14), 0 12px 30px rgba(16, 72, 41, 0.16);
}

.pay-confirm-card__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-confirm-card__box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  background: rgba(10, 12, 22, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.pay-confirm-card.is-checked .pay-confirm-card__box {
  border-color: rgba(34, 197, 94, 0.92);
  background: rgba(34, 197, 94, 0.18);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.08);
}

.pay-confirm-card.is-checked .pay-confirm-card__box::after {
  content: '';
  display: block;
  width: 6px;
  height: 11px;
  margin: 3px 0 0 7px;
  border-right: 2px solid #9af0bf;
  border-bottom: 2px solid #9af0bf;
  transform: rotate(45deg);
}

.pay-confirm-card__text {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.94);
}

.pay-confirm__error {
  margin-top: -2px;
}

/* Опции */
.pay-modal__options { display: grid; gap: 12px; }
.pay-modal__option {
  width: 100%; display: flex; align-items: center; text-align: left;
  background: #1a1d26; 
  border: none; /* Убираем border полностью */
  border-radius: 14px;
  padding: 14px 20px; cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.2s ease;
  /* Используем box-shadow для базового border вместо реального border */
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset !important;
  outline: none !important;
}
/* ТОЛЬКО hover подсвечивает - используем токен */
.pay-modal__option:hover {
  /* Заменяем базовый border (box-shadow) на подсветку */
  box-shadow: var(--button-hover-shadow) !important;
  background: #222633 !important;
}
/* Убираем ВСЕ подсветки при любых состояниях, кроме hover */
.pay-modal__option:focus,
.pay-modal__option:focus-visible,
.pay-modal__option:active,
.pay-modal__option:focus-within {
  outline: none !important;
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: none !important;
  background: #1a1d26 !important;
  transform: none !important;
}
/* Hover имеет приоритет над focus */
.pay-modal__option:focus:hover,
.pay-modal__option:focus-visible:hover,
.pay-modal__option:active:hover,
.pay-modal__option:focus-within:hover {
  /* Убираем transform, чтобы не дергались соседние кнопки */
  /* Заменяем базовый border (box-shadow) на подсветку */
  box-shadow: var(--button-hover-shadow) !important;
  background: #222633 !important;
}
.pay-modal__option::-moz-focus-inner{ border: 0 !important; }
/* Убираем класс active если он где-то устанавливается */
.pay-modal__option.active,
.pay-modal__option[class*="active"],
.pay-modal__option[aria-selected="true"] {
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: none !important;
  background: #1a1d26 !important;
  transform: none !important;
}
/* Гарантируем отсутствие подсветки для всех состояний, кроме hover */
/* Убираем это правило - оно конфликтует с hover */
/* FreeKassa использует тот же стиль, что и остальные опции - единый токен */
.pay-modal__option--fk:hover {
  /* Заменяем базовый border (box-shadow) на подсветку */
  box-shadow: var(--button-hover-shadow) !important;
}

.pay-modal__option-icon {
  width: 42px; height: 42px; margin-right: 16px;
  display: flex; align-items: center; justify-content: center;
  background: #262b38; border-radius: 12px; font-size: 20px;
}
.pay-modal__option-title { font-size: 16px; margin: 0 0 4px; }
.pay-modal__option-desc { font-size: 13px; opacity: .75; }

/* Шаги */
.pay-step { 
  display: none !important; 
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
}
.pay-modal.active .pay-step.is-active { 
  display: block !important; 
  visibility: visible !important;
  opacity: 1 !important;
  position: static;
  left: auto;
  width: auto;
  height: auto;
  overflow: visible;
}

/* Кнопка "Назад" (шаг 2) */
.pay-modal__back {
  margin: -4px 0 12px; padding: 4px 10px;
  background: none; border: none; border-radius: 999px;
  color: var(--game-muted, #9ca3af); font: inherit; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  transition: color .15s, background-color .15s, transform .1s;
}
.pay-modal__back::before { content: "←"; }
.pay-modal__back:hover {
  color: var(--game-brand, #a855f7);
  background: rgba(88, 28, 135, 0.18); transform: translateX(-1px);
}
.pay-modal__back:active { transform: translateX(-0.5px) scale(0.98); }

/* Форма */
.pay-modal__form {
  display: flex; flex-direction: column; gap: 20px; margin: 32px 0 16px;
}
.pay-modal__field { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  margin-bottom: 4px;
}
.pay-modal__label { font-size: 13px; line-height: 1.4; color: var(--game-muted, #9ca3af); }
.pay-modal__hint { 
  font-size: 12px; 
  line-height: 1.3; 
  color: var(--game-muted, #6b7280); 
  margin-top: 4px; 
  opacity: 0.8; 
}
.pay-modal__label .optional {
  color: var(--game-muted, #6b7280);
  font-weight: normal;
}
.pay-modal__error {
  font-size: 14px; /* Увеличили размер текста */
  line-height: 1.4;
  color: #ef4444;
  margin-top: 6px; /* Увеличили отступ сверху */
  display: block; /* Упрощаем до блока, так как иконки больше нет */
  opacity: 0;
  transform: translateY(-8px); /* Начинаем снизу */
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-height: 20px; /* Минимальная высота для плавной анимации */
}
.pay-modal__error:not([hidden]) {
  opacity: 1;
  transform: translateY(0); /* Сдвигаем вверх при появлении */
}
.pay-modal__field input[aria-invalid="true"],
.pay-modal__field textarea[aria-invalid="true"] {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.pay-modal__input,
.pay-modal__select,
.pay-modal__textarea,
.pay-modal__field input,
.pay-modal__field textarea {
  width: 100%; font: inherit; color: var(--game-foreground, #f9fafb);
  background: var(--game-input-bg, rgba(8,10,24,.9));
  border: 1px solid var(--game-border-soft, rgba(255,255,255,.06));
  border-radius: 12px; padding: 10px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s, transform .06s;
  position: relative;
}
/* Исключаем readonly поля из базового стиля border */
.pay-modal__input--readonly,
input.pay-modal__input--readonly,
input[readonly].pay-modal__input,
.pay-modal__field input[name="nickname"],
.pay-modal__field input[name="server"],
#order-nickname,
#order-server,
#webpay-nickname,
#webpay-server {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.pay-modal__input::placeholder,
.pay-modal__textarea::placeholder { color: #6b7280; }

/* Сразу после базовых стилей - переопределяем для readonly полей */
.pay-modal__input--readonly,
input.pay-modal__input--readonly,
input[readonly].pay-modal__input,
input[name="nickname"].pay-modal__input,
input[name="server"].pay-modal__input,
.pay-modal__field input[name="nickname"],
.pay-modal__field input[name="server"],
#order-nickname,
#order-server,
#webpay-nickname,
#webpay-server {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.pay-modal__field input:hover,
.pay-modal__field textarea:hover,
.pay-modal__input:hover,
.pay-modal__textarea:hover {
  border-color: color-mix(in srgb, var(--game-brand, #a855f7) 40%, transparent);
}
/* Исключаем readonly поля из hover эффекта */
.pay-modal__field input[readonly]:hover,
.pay-modal__field input.pay-modal__input--readonly:hover,
.pay-modal__input[readonly]:hover,
.pay-modal__input.pay-modal__input--readonly:hover {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.pay-modal__field input:focus,
.pay-modal__field textarea:focus,
.pay-modal__input:focus,
.pay-modal__textarea:focus {
  border-color: transparent; /* Убираем border, используем стиль как у поиска */
  background: radial-gradient(circle at top left,
              color-mix(in srgb, var(--game-brand, #a855f7) 16%, transparent),
              rgba(7,9,20,.98));
  /* Красивая подсветка для активных инпутов, как у поиска на главной */
  box-shadow:
    inset 0 0 0 1.5px var(--game-brand, #a855f7),
    0 0 14px var(--game-brand-soft, rgba(168,85,255,.35));
}
/* Исключаем readonly поля из focus эффекта */
.pay-modal__field input[readonly]:focus,
.pay-modal__field input.pay-modal__input--readonly:focus,
.pay-modal__input[readonly]:focus,
.pay-modal__input.pay-modal__input--readonly:focus {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(34, 197, 94, 0.12) !important;
  box-shadow: none !important;
}

/* Текстовое поле */
.pay-modal__textarea,
.pay-modal__field textarea {
  resize: none; min-height: 72px; max-height: 120px; line-height: 1.4;
  overflow-y: auto; scrollbar-width: none;
}
.pay-modal__textarea::-webkit-scrollbar,
.pay-modal__field textarea::-webkit-scrollbar { width: 0; height: 0; }

/* Общее сообщение об ошибке */
.pay-modal__general-error {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  color: #ef4444;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease;
}
.pay-modal__general-error::before {
  content: "⚠";
  font-size: 18px;
  flex-shrink: 0;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Сабмит */
.pay-modal__submit {
  margin-top: 8px; width: 100%; 
  border: none; /* Убираем border полностью */
  border-radius: 10px; 
  padding: 12px 20px;
  font: inherit; 
  font-weight: 700; /* Как у .btn-pay */
  color: var(--game-brand, #a855f7); /* Как у .btn-pay */
  cursor: pointer;
  background: var(--game-panel-2, #1a1d26);
  transition: box-shadow 0.2s ease, color 0.2s ease;
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Используем токены для единого стиля */
  box-shadow: var(--dt-interactive-primary-idle-shadow, var(--pay-btn-active-shadow));
  /* Исправление для iOS Safari */
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.pay-modal__submit:hover:not(:disabled),
button.pay-modal__submit:hover:not(:disabled) { 
  /* Усиление свечения при hover, как у .btn-pay */
  box-shadow: var(--dt-interactive-primary-hover-shadow, var(--pay-btn-hover-enhanced));
  color: var(--game-brand, #a855f7) !important;
  text-shadow: 0 0 8px var(--game-brand-soft, rgba(168,85,255,.35)) !important;
}
.pay-modal__submit:active:not(:disabled) { 
  transform: var(--dt-interactive-motion-transform, none); 
}
.pay-modal__submit:disabled {
  background: var(--game-panel-2, #1a1d26);
  border: none;
  color: var(--game-muted, #9ca3af);
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}
.pay-modal__submit-text,
.pay-modal__submit-loader {
  display: inline-block;
}
.pay-modal__submit-loader {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================== WEBPAY BLOCK ========================== */
.pay-webpay-info {
  order: -1; /* Размещаем ПЕРВЫМ в flex-контейнере формы */
  margin-top: 0; /* Убираем верхний отступ, так как он первый */
  margin-bottom: 20px; /* Добавляем отступ снизу */
}
.pay-webpay-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px; /* Унифицируем отступ снизу с формой FreeKassa */
}
.pay-webpay-total,
.pay-webpay-purpose {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pay-webpay-label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--game-muted, #9ca3af);
  margin-bottom: 4px;
}
.pay-webpay-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--game-foreground, #f9fafb);
  font-variant-numeric: tabular-nums;
}
.pay-webpay-purpose-text {
  background: var(--game-input-bg, rgba(8,10,24,.9));
  border: 1px solid var(--game-border-soft, rgba(255,255,255,.06));
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--game-foreground, #f9fafb);
  word-break: break-word;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.pay-webpay-copy-btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  border: none; /* Убираем border полностью */
  background: var(--game-panel-2, #1a1d26);
  color: var(--game-text, #fff);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 44px;
  position: relative;
  /* Используем box-shadow для базового border вместо реального border */
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
}

.pay-webpay-copy-btn:hover {
  /* Заменяем базовый border (box-shadow) на подсветку */
  color: var(--game-brand, #a855f7);
  text-shadow: 0 0 8px var(--game-brand-soft, rgba(168,85,255,.35));
  box-shadow: var(--button-hover-shadow);
}

.pay-webpay-copy-btn:active:not(.copied) {
  transform: var(--dt-interactive-motion-transform, none);
}

.pay-webpay-copy-btn.copied {
  background: var(--game-panel-2, #1a1d26);
  border-color: transparent; /* Убираем border, переносим в ::before */
  color: var(--game-brand, #a855f7);
  font-weight: 700;
  text-shadow: 0 0 12px var(--game-brand-soft, rgba(168,85,255,.35)), 0 0 20px var(--game-brand-soft, rgba(168,85,255,.35));
}
/* Подсветка через ::before, как у переключателей - красиво на скруглениях */
.pay-webpay-copy-btn.copied::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--game-brand, #a855f7);
  box-shadow: 
    0 0 0 2px var(--game-brand-soft, rgba(168,85,255,.35)),
    0 0 0 1px color-mix(in srgb, var(--game-brand, #a855f7) 55%, rgba(255,255,255,.08)) inset,
    0 0 12px var(--game-brand-soft, rgba(168,85,255,.35));
  pointer-events: none;
  z-index: -1;
}

/* Кнопки действий WebPay */
.pay-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.pay-modal__back-btn,
button.pay-modal__back-btn,
#pay-fk-back {
  padding: 12px 20px;
  border-radius: 10px;
  border: none !important; /* Убираем border полностью */
  background: var(--game-panel-2, #1a1d26) !important;
  color: var(--game-text, #fff) !important;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s ease, color 0.2s ease;
  flex: 0 0 auto;
  /* Используем box-shadow для базового border вместо реального border */
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset !important;
}
.pay-modal__back-btn:hover,
button.pay-modal__back-btn:hover,
#pay-fk-back:hover {
  /* Заменяем базовый border (box-shadow) на подсветку */
  color: var(--game-brand, #a855f7) !important;
  text-shadow: 0 0 8px var(--game-brand-soft, rgba(168,85,255,.35)) !important;
  background: var(--game-panel-2, #1a1d26) !important;
  box-shadow: var(--button-hover-shadow) !important;
}
.pay-modal__back-btn:active {
  transform: var(--dt-interactive-motion-transform, none);
}
.pay-modal__submit-btn,
button.pay-modal__submit-btn,
#pay-fk-submit,
#webpay-submit-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 10px;
  border: none !important; /* Убираем border полностью */
  background: var(--game-panel-2, #1a1d26) !important;
  color: var(--game-brand, #a855f7) !important; /* Как у .btn-pay */
  font: inherit;
  font-size: 14px;
  font-weight: 700 !important; /* Как у .btn-pay */
  cursor: pointer;
  transition: box-shadow 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  /* Используем токены для единого стиля, как у .btn-pay */
  box-shadow: var(--pay-btn-active-shadow) !important;
  /* Исправление для iOS Safari */
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
/* Прямой hover для активных кнопок */
.pay-modal__submit-btn:hover:not(:disabled),
button.pay-modal__submit-btn:hover:not(:disabled),
#pay-fk-submit:hover:not(:disabled),
#webpay-submit-btn:hover:not(:disabled) {
  /* Усиление свечения при hover, как у .btn-pay */
  color: var(--game-brand, #a855f7) !important;
  text-shadow: 0 0 8px var(--game-brand-soft, rgba(168,85,255,.35)) !important;
  background: var(--game-panel-2, #1a1d26) !important;
  box-shadow: var(--pay-btn-hover-enhanced) !important;
}
.pay-modal__submit-btn:active:not(:disabled) {
  transform: var(--dt-interactive-motion-transform, none);
}
.pay-modal__submit-btn:disabled {
  background: var(--game-panel-2, #1a1d26);
  border-color: rgba(255,255,255,.06);
  color: var(--game-muted, #9ca3af);
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   12) АДАПТИВ
   Порядок: от больших экранов к маленьким (desktop-first)
   Главное: плавные переходы между брейкпоинтами без "прыжков"
   -------------------------------------------------------------------------- */

/* ============================================================
   1. БОЛЬШИЕ ЭКРАНЫ (min-width, от большего к меньшему)
   ============================================================ */

/* ≥1281px — Большой десктоп */
@media (min-width: 1281px){
  /* Заголовок: 1 строка по центру или 2, запас для выносных элементов */
  .product-card .card-title{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    white-space: normal;
    overflow: hidden;
    min-height: calc(1.2em + 16px);
    max-height: calc(2 * 1.2em + 16px);
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: none;
  }
  .product-card .card-title .ct-top,
  .product-card .card-title .ct-rest{
    display: block;
  }
}

/* 1187–1280px — Стандартный десктоп с правой корзиной */
@media (min-width: 1187px) and (max-width: 1280px){
  :root{ --cart-w: 300px; }
  .main-content{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) var(--cart-w) !important;
    gap: var(--space-5) !important;
    align-items: start !important;
  }
  :is(#products, .products, .products-grid, .cards-grid, .goods-grid){
    grid-column: 1 / span 3 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: var(--space-4) !important;
  }
  #cart.cart{
    grid-column: 4 !important;
    width: var(--cart-w) !important;
    flex: 0 0 var(--cart-w) !important;
    position: sticky;
    top: 16px;
  }
  /* Заголовок: 1 строка по центру или 2, запас для выносных элементов */
  .product-card .card-title{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    white-space: normal;
    overflow: hidden;
    min-height: calc(1.2em + 16px);
    max-height: calc(2 * 1.2em + 16px);
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: none;
  }
  .product-card .card-title .ct-top,
  .product-card .card-title .ct-rest{
    display: block;
  }
  .card-title{ --title-maxch: 10.8ch; }
}

/* 1086–1186px — Узкий десктоп с правой корзиной */
@media (min-width: 1086px) and (max-width: 1186px){
  :root{ --cart-w: 300px; }
  .main-content{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) var(--cart-w) !important;
    gap: var(--space-5);
    align-items: start;
  }
  :is(#products, .products, .products-grid, .cards-grid, .goods-grid){
    grid-column: 1 / span 3 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: var(--space-4);
  }
  #cart.cart{
    grid-column: 4 !important;
    width: var(--cart-w) !important;
    flex: 0 0 var(--cart-w) !important;
    position: sticky;
    top: 16px;
  }
  /* price-row в столбик (более плотная верстка карточки) */
  .product-card .price-row{
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
    align-items: center !important;
  }
  .product-card .price-row > *{ min-width: 0 !important; }
  .product-card .price-row .add-btn{
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    margin: 0 !important;
  }
  .product-card .price-row .counter{
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    column-gap: 12px !important;
    align-items: center !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }
  /* Заголовок: 1 строка по центру или 2, запас для выносных элементов */
  .product-card .card-title{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    white-space: normal;
    overflow: hidden;
    min-height: calc(1.2em + 16px);
    max-height: calc(2 * 1.2em + 16px);
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: none;
  }
  .product-card .card-title .ct-top,
  .product-card .card-title .ct-rest{
    display: block;
  }
}

/* ≥1086px — Десктоп-корзина (скрыть мобильный шит) */
@media (min-width: 1086px){
  .cart-drawer{ display: none; }
}

/* ≥1025px — ПК: шапка с выравниванием */
@media (min-width: 1025px){
  /* Шапка: верхний край лого = верхний край тайтла, нижний край лого = нижний край переключателей */
  .game-header{
    align-items: flex-start;
  }
  .game-header-content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    height: 120px; /* Фиксированная высота = высота логотипа */
  }
  .page-title{
    margin: 0 0 var(--space-3) 0;
    padding-top: 0;
    line-height: 1.2;
  }
  .game-header .header-actions{
    margin-top: auto;
    align-self: flex-start;
  }
  /* Навигация: название слева, переключатель справа */
  .navigation .page-1400{
    align-items: center;
    justify-content: space-between;
  }
  .navigation .mode-switch,
  .navigation #nav-mode-switch{
    margin-left: auto;
  }
  /* Отступы навигации */
  .navigation{
    margin-block-start: var(--space-4);
    margin-block-end: var(--space-4);
  }
  .hr-section{
    margin-block-start: 32px;
    margin-block-end: 32px;
  }
}

/* ≥732px — ПК/планшет: базовая компоновка */
@media (min-width: 732px){
  /* Шапка: верхний край лого = верхний край тайтла, нижний край лого = нижний край переключателей */
  .game-header{
    align-items: flex-start;
  }
  .game-logo{
    width: 120px;
    height: 120px;
  }
  .game-header-content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    height: 120px; /* Фиксированная высота = высота логотипа */
  }
  .page-title{
    margin: 0 0 var(--space-3) 0;
    text-align: left;
    padding-top: 0;
    line-height: 1.2;
  }
  .game-header .header-actions{
    margin-top: auto;
    align-self: flex-start;
  }
  /* Навигация: название слева, переключатель справа */
  .navigation .page-1400{
    align-items: center;
    justify-content: space-between;
  }
  .navigation .mode-switch,
  .navigation #nav-mode-switch{
    margin-left: auto;
    gap: 0 !important;
  }
  /* Отступы навигации */
  .navigation{
    margin-block-start: var(--space-4);
    margin-block-end: var(--space-4);
  }
  .hr-section{
    margin-block-start: 32px;
    margin-block-end: 32px;
  }
}

/* ≥951px — Универсально для всех видов переключателей: лого 130×130px */
@media (min-width: 951px){
  .game-logo{
    width: 130px !important;
    height: 130px !important;
  }
  .game-header-content{
    min-height: 130px !important;
    height: 130px !important;
  }
}

/* ============================================================
   2. СРЕДНИЕ ДИАПАЗОНЫ (min-width AND max-width)
   ============================================================ */

/* 700–740px — Каталог: 2 колонки (больше места для текста) */
@media (min-width: 700px) and (max-width: 740px){
  :is(#products, .products, .products-grid, .cards-grid, .goods-grid){
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--space-4) !important;
    justify-items: stretch !important;
    align-items: stretch !important;
  }
  :is(#products, .products, .products-grid, .cards-grid, .goods-grid) > .product-card{
    grid-column: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* 741–1085px — Каталог: 3 колонки */
@media (min-width: 741px) and (max-width: 1085px){
  :is(#products, .products, .products-grid, .cards-grid, .goods-grid){
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: var(--space-4) !important;
    justify-items: stretch !important;
    align-items: stretch !important;
  }
  :is(#products, .products, .products-grid, .cards-grid, .goods-grid) > .product-card{
    grid-column: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* 700–850px — Шапка: 5 и 6 переключателей — лого 160×160px */
@media (min-width: 700px) and (max-width: 850px){
  /* 5 и 6 фильтров: лого 160×160px для правильного выравнивания */
  .game-header:has(.header-actions[data-filters-count="5"]) .game-logo,
  .game-header:has(.header-actions[data-filters-count="6"]) .game-logo{
    width: 160px !important;
    height: 160px !important;
  }
  .game-header:has(.header-actions[data-filters-count="5"]) .game-header-content,
  .game-header:has(.header-actions[data-filters-count="6"]) .game-header-content{
    min-height: 160px !important;
    height: 160px !important;
  }
}

/* 851–950px — Шапка: 5 и 6 переключателей — лого 150×150px */
@media (min-width: 851px) and (max-width: 950px){
  /* 5 и 6 фильтров: лого 150×150px для правильного выравнивания */
  .game-header:has(.header-actions[data-filters-count="5"]) .game-logo,
  .game-header:has(.header-actions[data-filters-count="6"]) .game-logo{
    width: 150px !important;
    height: 150px !important;
  }
  .game-header:has(.header-actions[data-filters-count="5"]) .game-header-content,
  .game-header:has(.header-actions[data-filters-count="6"]) .game-header-content{
    min-height: 150px !important;
    height: 150px !important;
  }
}

/* 700–950px — Шапка: 5 и 6 переключателей */
@media (min-width: 700px) and (max-width: 950px){
  /* 5 фильтров: 3×2 сетка (3 колонки, 2 ряда), два нижних по центру */
  .game-header .header-actions[data-filters-count="5"]{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: 36px 36px;
    gap: 12px 14px;
    justify-items: stretch;
    width: 100%;
  }
  .game-header .header-actions[data-filters-count="5"] .filter-btn{
    width: 100%;
    height: 36px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
    justify-self: stretch;
  }
  /* Два нижних переключателя по центру вместе, одинаковой ширины как верхние */
  .game-header .header-actions[data-filters-count="5"] .filter-btn:nth-child(4),
  .game-header .header-actions[data-filters-count="5"] .filter-btn:nth-child(5){
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: calc((100% - 2 * 14px) / 3) !important;
    height: 36px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  /* Первый переключатель: справа от центра (выровнен по правому краю центра) */
  .game-header .header-actions[data-filters-count="5"] .filter-btn:nth-child(4){
    justify-self: end !important;
    margin-right: calc(50% - ((100% - 2 * 14px) / 3) - 7px) !important;
  }
  /* Второй переключатель: слева от центра (выровнен по левому краю центра) */
  .game-header .header-actions[data-filters-count="5"] .filter-btn:nth-child(5){
    justify-self: start !important;
    margin-left: calc(50% - ((100% - 2 * 14px) / 3) - 7px) !important;
  }
  
  /* 6 фильтров: 3×2 сетка (3 колонки, 2 ряда), растягивается на всю ширину */
  .game-header .header-actions[data-filters-count="6"]{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(100px, 1fr)) !important;
    grid-template-rows: 36px 36px;
    gap: 12px 14px;
    justify-items: stretch;
    width: 100%;
  }
  .game-header .header-actions[data-filters-count="6"] .filter-btn{
    width: 100%;
    height: 36px;
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
    min-width: 0;
  }
}

/* 700–731px — Планшет: навигация "как на десктопе" (такие же стили как на ≥732px) */
@media (min-width: 700px) and (max-width: 731px){
  /* Навигация: название слева, переключатель справа (такие же стили как на ≥732px) */
  .navigation .page-1400{
    align-items: center;
    justify-content: space-between;
  }
  .navigation .mode-switch,
  .navigation #nav-mode-switch{
    margin-left: auto;
  }
  /* Исправляем "/" - он должен быть на одном уровне с текстом */
  .navigation-sep{
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    line-height: 1 !important;
    vertical-align: middle !important;
  }
  /* Переключатель должен быть такого же размера как на 732px (одинаковые размеры везде) */
  #nav-mode-switch .mode-btn[data-mode="inapp"],
  #nav-mode-switch .mode-btn[data-mode="web"]{
    width: 110px !important;
    min-width: 110px !important;
    white-space: nowrap !important;
    padding: 0 10px !important;
  }
  /* Gap между кнопками переключателя (убрали шов, кнопки вплотную) */
  .navigation .mode-switch,
  .navigation #nav-mode-switch{
    gap: 0 !important;
  }
  /* Шапка: стили как на ПК (≥732px) */
  .game-header{
    align-items: flex-start;
  }
  .game-logo{
    width: 120px;
    height: 120px;
  }
  .game-header-content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    height: 120px; /* Фиксированная высота = высота логотипа */
  }
  .page-title{
    margin: 0 0 var(--space-3) 0;
    text-align: left;
    padding-top: 0;
    line-height: 1.2;
  }
  .game-header .header-actions{
    margin-top: auto;
    align-self: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
  }
  
  /* 1 фильтр: центрирован, ограниченная ширина */
  .game-header .header-actions[data-filters-count="1"]{
    justify-content: center;
  }
  .game-header .header-actions[data-filters-count="1"] .filter-btn{
    max-width: 200px;
    width: auto;
    min-width: 140px;
  }
  
  /* 2 фильтра: в ряд, центрированы */
  .game-header .header-actions[data-filters-count="2"]{
    justify-content: center;
  }
  .game-header .header-actions[data-filters-count="2"] .filter-btn{
    flex: 0 1 auto;
    min-width: 0;
  }
  
  /* 3 фильтра: в ряд */
  .game-header .header-actions[data-filters-count="3"]{
    justify-content: flex-start;
  }
  .game-header .header-actions[data-filters-count="3"] .filter-btn{
    flex: 0 1 auto;
    min-width: 0;
  }
}

/* ============================================================
   3. МОБИЛЬНЫЕ (max-width, от большего к меньшему)
   ============================================================ */

/* ≤1085px — Док-бар + мобильный шит корзины */
@media (max-width: 1085px){
  :root{
    --dock-h: 72px;                         /* высота док-бара при закрытой корзине */
    --drawer-gap: 32px;                     /* зазор снизу при открытой корзине */
    --sheet-bg: var(--game-panel, var(--panel, #111111));
    --grip-color: color-mix(in srgb, #fff 35%, transparent);
  }

  /* Резерв под док-бар / под 32px при открытом шите */
  body{ padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)) !important; }
  body.drawer-open{ padding-bottom: calc(var(--drawer-gap) + env(safe-area-inset-bottom, 0px)) !important; }
  body.has-dock .site-footer{
    padding-bottom: calc(var(--dock-h, 72px) + env(safe-area-inset-bottom, 0px) + 16px) !important;
  }

  /* Док-бар и десктоп-корзина */
  .mobile-bar{ display: block !important; }
  .mobile-bar[hidden]{ display: none !important; }
  #cart.cart, .cart-nav{ display: none !important; }
  .cart-drawer{ display: contents !important; }

  /* Скрыт = вообще не виден */
  .cart-drawer[aria-hidden="true"]{ pointer-events: none !important; }
  .cart-drawer[aria-hidden="true"] .cart-drawer__overlay,
  .cart-drawer[aria-hidden="true"] .cart-drawer__sheet{ display: none !important; }

  /* Открыт = шит над 32px, оверлей до самого низа */
  body.drawer-open .mobile-bar{ opacity: 0; pointer-events: none; }
  body.drawer-open .cart-drawer__sheet{
    bottom: calc(var(--drawer-gap) + env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100vh - var(--drawer-gap) - 70px) !important;
  }
  body.drawer-open .cart-drawer__overlay{ bottom: 0 !important; }

  /* Подкрашиваем нижний зазор тем же цветом, что и шит */
  body.drawer-open .cart-drawer__overlay::after{
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--drawer-gap) + env(safe-area-inset-bottom, 0px));
    background: var(--sheet-bg);
    pointer-events: none;
  }

  /* Сам шит: одинаковый фон, без теней, хэндл над окном */
  #cart-drawer .cart-drawer__sheet{
    background: var(--sheet-bg) !important;
    box-shadow: none !important;
    filter: none !important;
    padding: 8px 0 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  #cart-drawer .cart-drawer__sheet::before,
  #cart-drawer .cart-drawer__sheet::after{ content: none !important; display: none !important; }

  #cart-drawer .cart-drawer__grip{
    display: block !important;
    position: absolute;
    left: 50%;
    top: -26px;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: var(--grip-color);
    pointer-events: auto;
    cursor: grab;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
  }
  #cart-drawer .cart-drawer__grip:empty{ height: 0; }
  #cart-drawer .cart-drawer__grip:empty::after{
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: var(--grip-color);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
  }

  /* Футер в цвет шита */
  #cart-drawer .cart-drawer__footer{
    background: transparent !important;
    box-shadow: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    padding: 12px 16px 16px !important;
    margin-top: auto !important;
  }

  /* Карточка заказа «как на ПК» (фон/бордеры) */
  #cart-drawer .cart-item{
    background: var(--game-panel-2) !important;
    border: var(--game-border) !important;
    border-radius: var(--game-radius) !important;
  }

  /* Без лишних «пустых» отступов снизу */
  #cart-drawer .cart-drawer__body,
  #cart-drawer .cart-drawer__content{
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
  }
  #cart-drawer .cart-drawer__sheet > *:last-child,
  #cart-drawer .cart-drawer__body > *:last-child{
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Служебные «спейсеры»/тени — off */
  #cart-drawer .sheet-spacer,
  #cart-drawer [data-spacer],
  #cart-drawer .spacer,
  #cart-drawer .cart-drawer__bottom,
  #cart-drawer .drawer-bottom,
  #cart-drawer .bottom-shadow,
  #cart-drawer .cart-bottom-sheet{
    display: none !important;
    height: 0 !important;
    content: none !important;
  }

  /* На мобайле заголовок карточки делаем на две строки */
  .card-title{ --title-maxch: 12.5ch; }
}

/* ≤919px — "Плюс" под ценой, счётчик на всю ширину */
@media (max-width: 919px){
  .product-card .price-row{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px;
    align-items: center;
  }
  .product-card .add-btn{
    justify-self: center !important;
  }
  .product-card .price-row .counter{
    justify-self: stretch !important;
    width: 100%;
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 12px;
    padding: 0 8px;
  }
  .product-card .counter .dec{ justify-self: start; }
  .product-card .counter .count{
    justify-self: center;
    min-width: 2ch;
    text-align: center;
    font-weight: 600;
  }
  .product-card .counter .inc{ justify-self: end; }
}

/* ≤685px — Принудительный перенос навигации в две строки */
@media (max-width: 685px){
  .navigation .page-1400{
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    row-gap: var(--space-4) !important;
  }
  /* Левая часть навигации (хлебные крошки) - первая строка */
  .navigation .nav-crumbs{
    flex: 0 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    order: 1 !important;
  }
  /* Переключатель - вторая строка */
  .navigation .page-1400 > #nav-mode-switch,
  .navigation .mode-switch{
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: static !important;
    order: 2 !important;
  }
}

/* ≤699px — Мобильная навигация и шапка */
@media (max-width: 699px){
  /* Навигация: по умолчанию пытаемся в 1 строку */
  .navigation .page-1400{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 35px !important;
    width: 100% !important;
  }
  .navigation .nav-crumbs{
    flex: 0 1 auto !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin: 0 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .navigation .nav-crumbs .navigation-sep{
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    line-height: 1 !important;
    margin: 0 8px !important;
    vertical-align: middle !important;
  }
  /* Переключатель: такие же размеры как на 700px */
  #nav-mode-switch .mode-btn[data-mode="inapp"],
  #nav-mode-switch .mode-btn[data-mode="web"]{
    width: 110px !important;
    min-width: 110px !important;
    white-space: nowrap !important;
    padding: 8px 20px !important;
  }
  .navigation .page-1400 > #nav-mode-switch,
  .navigation .mode-switch{
    flex: 0 0 auto !important;
    width: max-content !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin-left: var(--space-4) !important;
    margin-right: 0 !important;
    position: static !important;
  }
  
  /* Если не влазит в одну строку - переключатель под текстом по центру (аккуратный перенос) */
  .navigation .page-1400.is-stacked{
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    row-gap: var(--space-4) !important;
  }
  .navigation .page-1400.is-stacked .nav-crumbs{
    flex: 0 0 100% !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: visible;
    text-overflow: clip;
  }
  .navigation .page-1400.is-stacked .mode-switch,
  .navigation .page-1400.is-stacked > #nav-mode-switch{
    margin-left: 0 !important;
    margin-right: 0 !important;
    order: 2 !important;
  }
  
  .navigation{
    margin-bottom: var(--space-3) !important;
  }
  
  /* Шапка: нижний край лого = нижний край переключателя (такие же стили как на 700px для плавного перехода) */
  .game-header{
    align-items: flex-end !important;
  }
  .game-logo{
    align-self: flex-end !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .game-header-content{
    display: flex !important;
    flex-direction: column !important;
    /* justify-content: flex-end применяется только для ≤530px, для 531-699px переопределяется ниже */
    justify-content: flex-end !important;
  }
  .page-title{
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .game-header .header-actions{
    margin-top: var(--space-3) !important;
  }
  /* Точное выравнивание нижнего края лого с переключателями */
  .navigation .page-1400{
    align-items: flex-end !important;
    padding-bottom: 0 !important;
  }
  .navigation .mode-switch,
  #nav-mode-switch{
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* 3 фильтра: 2 колонки (2+1), последний по центру */
  .game-header .header-actions[data-filters-count="3"]{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: 36px 36px;
    gap: 12px 14px;
  }
  .game-header .header-actions[data-filters-count="3"] .filter-btn:not(:last-child){
    width: 100%;
    height: 36px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
    justify-self: stretch;
  }
  .game-header .header-actions[data-filters-count="3"] .filter-btn:nth-child(3){
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    align-self: center !important;
    width: calc((100% - 14px) / 2) !important;
    height: 36px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  .game-header .header-actions[data-filters-count="3"] .filter-btn:nth-child(4){
    display: none !important;
  }

  /* Каталог: 2 колонки */
  #products.products{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--space-4) !important;
    justify-items: stretch !important;
    align-items: stretch !important;
  }
  /* Заголовок: до 3 строк на мобилке, чуть меньший шрифт — чтобы вмещался длинный текст */
  .product-card .card-title{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    white-space: normal;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.25;
    min-height: calc(1.25em + 16px);
    max-height: calc(3 * 1.25em + 16px);
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: none;
  }
  .product-card .card-title .ct-top,
  .product-card .card-title .ct-rest{
    display: block;
  }
}

/* 531–641px — Сетка шапки (лого | контент) */
@media (min-width: 531px) and (max-width: 641px){
  .game-header{
    display: grid;
    grid-template-columns: 166px 1fr;
    column-gap: var(--space-5);
    align-items: start;
    margin-bottom: 32px;
  }
  .game-logo{
    grid-column: 1;
    width: 166px;
    height: 176px;
    object-fit: cover;
    margin: 0;
    align-self: start;
  }
  .game-header-content{
    grid-column: 2;
    display: flex;
    flex-direction: column;
    /* Переопределяем justify-content: flex-end из max-width: 699px */
    /* Используем space-between для выравнивания: тайтл вверху, переключатели внизу */
    justify-content: space-between !important;
    min-height: 176px;
  }
  .page-title{
    margin: 0 0 var(--space-3) 0 !important;
    line-height: 1.05;
    text-align: center;
    margin-inline: auto;
    text-wrap: balance;
    max-inline-size: 28ch;
    hyphens: none;
    overflow-wrap: break-word;
  }
  .game-header .header-actions{
    margin-block-start: 0;
    margin-top: 0 !important;
    align-content: end;
  }
  
  /* 1 фильтр: центрирован, ограниченная ширина */
  .game-header .header-actions[data-filters-count="1"]{
    display: flex !important;
    justify-content: center !important;
  }
  .game-header .header-actions[data-filters-count="1"] .filter-btn{
    width: auto !important;
    max-width: 200px !important;
    min-width: 140px !important;
    height: 36px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
  }
  
  /* 2 фильтра: центрированы, в ряд */
  .game-header .header-actions[data-filters-count="2"]{
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px 14px !important;
    justify-content: center !important;
  }
  .game-header .header-actions[data-filters-count="2"] .filter-btn{
    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 36px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
  }
  
  /* 3 фильтра: 2 колонки (2+1), последний по центру */
  .game-header .header-actions[data-filters-count="3"]{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: 36px 36px;
    gap: 12px 14px;
  }
  .game-header .header-actions[data-filters-count="3"] .filter-btn:not(:last-child){
    width: 100%;
    height: 36px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
    justify-self: stretch;
  }
  .game-header .header-actions[data-filters-count="3"] .filter-btn:nth-child(3){
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    align-self: center !important;
    width: calc((100% - 14px) / 2) !important;
    height: 36px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  .game-header .header-actions[data-filters-count="3"] .filter-btn:nth-child(4){
    display: none !important;
  }
  
  /* 5 фильтров: 2×3 сетка (2 колонки, 3 ряда), первые 4 в первых 2 строках, 5-я по центру */
  .game-header .header-actions[data-filters-count="5"]{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: 36px 36px 36px;
    gap: 12px 14px;
    justify-items: stretch;
    width: 100%;
  }
  .game-header .header-actions[data-filters-count="5"] .filter-btn:not(:last-child){
    width: 100%;
    height: 36px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
    justify-self: stretch;
  }
  .game-header .header-actions[data-filters-count="5"] .filter-btn:nth-child(5){
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    justify-self: center !important;
    align-self: center !important;
    width: calc((100% - 14px) / 2) !important;
    height: 36px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  
  /* 4 фильтра: 2x2 сетка (как было) */
  .game-header .header-actions:not([data-filters-count="1"]):not([data-filters-count="2"]):not([data-filters-count="3"]):not([data-filters-count="5"]):not([data-filters-count="6"]),
  .game-header .header-actions[data-filters-count="4"]{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 36px;
    gap: 12px 14px;
    justify-items: stretch;
  }
  .game-header .header-actions:not([data-filters-count="1"]):not([data-filters-count="2"]):not([data-filters-count="3"]):not([data-filters-count="5"]):not([data-filters-count="6"]) .filter-btn,
  .game-header .header-actions[data-filters-count="4"] .filter-btn{
    width: 100%;
    height: 36px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
  }
  
  /* 6 фильтров: 2x3 сетка, растягивается на всю ширину */
  .game-header .header-actions[data-filters-count="6"]{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: 36px 36px 36px;
    gap: 12px 14px;
    justify-items: stretch;
    width: 100%;
  }
  .game-header .header-actions[data-filters-count="6"] .filter-btn{
    width: 100%;
    height: 36px;
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
  }
  /* Навигация */
  .navigation .page-1400{
    align-items: center;
  }
  .navigation .mode-switch,
  .navigation #nav-mode-switch{
    margin-left: auto;
  }
  .navigation .page-1400.is-stacked{
    flex-direction: column !important;
    align-items: center !important;
    height: auto !important;
    gap: var(--space-4) !important;
  }
  .navigation .page-1400.is-stacked .nav-crumbs{
    width: 100%;
    justify-content: center;
  }
  .navigation .page-1400.is-stacked .mode-switch,
  .navigation .page-1400.is-stacked #nav-mode-switch{
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ≤530px — Мобильная шапка: лого убрать */
@media (max-width: 530px){
  .game-header{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    gap: 14px !important;
    margin-bottom: var(--space-6) !important;
  }
  .game-logo{ display: none !important; }
  .page-title{
    order: 1 !important;
    margin: 0 !important;
    text-align: center !important;
    max-width: 100% !important;
    text-wrap: balance !important;
    line-height: 1.15 !important;
  }
  .game-header .header-actions{
    order: 2 !important;
    width: 100% !important;
    margin: var(--space-4) 0 0 !important;
  }
  .game-header .header-actions > *{ min-width: 0 !important; }
  .game-header .filter-btn{
    height: 38px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  
  /* 1 фильтр: центрирован, ограниченная ширина */
  .game-header .header-actions[data-filters-count="1"]{
    display: flex !important;
    justify-content: center !important;
  }
  .game-header .header-actions[data-filters-count="1"] .filter-btn{
    width: auto !important;
    max-width: 200px !important;
    min-width: 140px !important;
  }
  
  /* 2 фильтра: центрированы, в ряд */
  .game-header .header-actions[data-filters-count="2"]{
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    justify-content: center !important;
  }
  .game-header .header-actions[data-filters-count="2"] .filter-btn{
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
  
  /* 3 фильтра: 2 колонки (2+1) */
  .game-header .header-actions[data-filters-count="3"]{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 14px !important;
    row-gap: 12px !important;
  }
  .game-header .header-actions[data-filters-count="3"] .filter-btn:nth-child(1),
  .game-header .header-actions[data-filters-count="3"] .filter-btn:nth-child(2){
    width: 100% !important;
  }
  .game-header .header-actions[data-filters-count="3"] .filter-btn:nth-child(3){
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    align-self: center !important;
    width: calc((100% - 14px) / 2) !important;
    height: 38px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  .game-header .header-actions[data-filters-count="3"] .filter-btn:nth-child(4){
    display: none !important;
  }
  
  /* 5 фильтров: 2×3 сетка (2 колонки, 3 ряда), первые 4 в первых 2 строках, 5-я по центру */
  .game-header .header-actions[data-filters-count="5"]{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: 38px 38px 38px !important;
    column-gap: 14px !important;
    row-gap: 12px !important;
  }
  .game-header .header-actions[data-filters-count="5"] .filter-btn:not(:last-child){
    width: 100% !important;
  }
  .game-header .header-actions[data-filters-count="5"] .filter-btn:nth-child(5){
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    justify-self: center !important;
    align-self: center !important;
    width: calc((100% - 14px) / 2) !important;
    height: 38px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  
  /* 4 фильтра: 2x2 сетка (как было) */
  .game-header .header-actions:not([data-filters-count="1"]):not([data-filters-count="2"]):not([data-filters-count="3"]):not([data-filters-count="5"]),
  .game-header .header-actions[data-filters-count="4"]{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 14px !important;
    row-gap: 12px !important;
  }
  .game-header .header-actions:not([data-filters-count="1"]):not([data-filters-count="2"]):not([data-filters-count="3"]):not([data-filters-count="5"]) .filter-btn,
  .game-header .header-actions[data-filters-count="4"] .filter-btn{
    width: 100% !important;
  }
}

/* ≤449px — В крошках только "Главная" */
@media (max-width: 449px){
  .navigation .nav-crumbs .navigation-sep{ display: none !important; }
  .navigation .nav-crumbs > :not(:first-child){ display: none !important; }
  .navigation{ margin-bottom: var(--space-4) !important; }
}

/* ≤399px — Каталог: 1 колонка + компактная крошка */
@media (max-width: 399px){
  #products.products{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
    justify-items: stretch !important;
    align-items: stretch !important;
  }
  .nav-crumbs{
    font-size: clamp(11px, 3.3vw, 15px) !important;
  }
}

/* 642–699px — Сетка шапки (объединяем 642-681px и 682-699px для плавного перехода) */
@media (min-width: 642px) and (max-width: 699px){
  .game-header{
    display: grid;
    grid-template-columns: 166px 1fr;
    column-gap: var(--space-5);
    align-items: start;
    margin-bottom: 32px;
  }
  .game-logo{
    grid-column: 1;
    width: 166px;
    height: 176px;
    object-fit: cover;
    margin: 0;
    align-self: start;
  }
  .game-header-content{
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between !important;
    min-height: 176px;
  }
  .page-title{
    margin: 0 0 var(--space-3) 0 !important;
    line-height: 1.05;
    text-align: center;
    margin-inline: auto;
    text-wrap: balance;
    max-inline-size: 28ch;
    hyphens: none;
    overflow-wrap: break-word;
  }
  .game-header .header-actions{
    margin-block-start: 0;
    margin-top: 0 !important;
    align-content: end;
  }
  
  /* 1 фильтр: центрирован, ограниченная ширина */
  .game-header .header-actions[data-filters-count="1"]{
    display: flex !important;
    justify-content: center !important;
  }
  .game-header .header-actions[data-filters-count="1"] .filter-btn{
    width: auto !important;
    max-width: 200px !important;
    min-width: 140px !important;
    height: 36px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
  }
  
  /* 2 фильтра: центрированы, в ряд */
  .game-header .header-actions[data-filters-count="2"]{
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px 14px !important;
    justify-content: center !important;
  }
  .game-header .header-actions[data-filters-count="2"] .filter-btn{
    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 36px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
  }
  
  /* 3 фильтра: 2 колонки (2+1), последний по центру */
  .game-header .header-actions[data-filters-count="3"]{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: 36px 36px;
    gap: 12px 14px;
  }
  .game-header .header-actions[data-filters-count="3"] .filter-btn:not(:last-child){
    width: 100%;
    height: 36px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
    justify-self: stretch;
  }
  .game-header .header-actions[data-filters-count="3"] .filter-btn:nth-child(3){
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    align-self: center !important;
    width: calc((100% - 14px) / 2) !important;
    height: 36px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  .game-header .header-actions[data-filters-count="3"] .filter-btn:nth-child(4){
    display: none !important;
  }
  
  /* 5 фильтров: 2×3 сетка (2 колонки, 3 ряда), первые 4 в первых 2 строках, 5-я по центру */
  .game-header .header-actions[data-filters-count="5"]{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: 36px 36px 36px;
    gap: 12px 14px;
    justify-items: stretch;
    width: 100%;
  }
  .game-header .header-actions[data-filters-count="5"] .filter-btn:not(:last-child){
    width: 100%;
    height: 36px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
    justify-self: stretch;
  }
  .game-header .header-actions[data-filters-count="5"] .filter-btn:nth-child(5){
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    justify-self: center !important;
    align-self: center !important;
    width: calc((100% - 14px) / 2) !important;
    height: 36px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  
  /* 4 фильтра: 2x2 сетка (как было) */
  .game-header .header-actions:not([data-filters-count="1"]):not([data-filters-count="2"]):not([data-filters-count="3"]):not([data-filters-count="5"]):not([data-filters-count="6"]),
  .game-header .header-actions[data-filters-count="4"]{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 36px;
    gap: 12px 14px;
    justify-items: stretch;
  }
  .game-header .header-actions:not([data-filters-count="1"]):not([data-filters-count="2"]):not([data-filters-count="3"]):not([data-filters-count="5"]):not([data-filters-count="6"]) .filter-btn,
  .game-header .header-actions[data-filters-count="4"] .filter-btn{
    width: 100%;
    height: 36px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
  }
  
  /* 6 фильтров: 2x3 сетка, растягивается на всю ширину */
  .game-header .header-actions[data-filters-count="6"]{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: 36px 36px 36px;
    gap: 12px 14px;
    justify-items: stretch;
    width: 100%;
  }
  .game-header .header-actions[data-filters-count="6"] .filter-btn{
    width: 100%;
    height: 36px;
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
    justify-content: center;
  }
  /* Навигация */
  .navigation .page-1400{
    align-items: center;
    justify-content: space-between;
  }
  .navigation .mode-switch,
  .navigation #nav-mode-switch{
    margin-left: auto;
  }
  .navigation .page-1400.is-stacked{
    flex-direction: column !important;
    align-items: center !important;
    height: auto !important;
    gap: var(--space-4) !important;
    justify-content: center !important;
  }
  .navigation .page-1400.is-stacked .nav-crumbs{
    width: 100%;
    justify-content: center;
  }
  .navigation .page-1400.is-stacked .mode-switch,
  .navigation .page-1400.is-stacked #nav-mode-switch{
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ========================== UID HELP BUTTON ========================== */
/* Обёртка для input с кнопкой помощи внутри */
.pay-modal__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 12px;
  /* Красивая подсветка для активных инпутов, как у поиска на главной */
  box-shadow: inset 0 0 0 1.5px rgba(167,94,255,.35);
  transition: box-shadow 0.2s ease;
}
.pay-modal__input-wrapper:focus-within {
  box-shadow:
    inset 0 0 0 1.5px var(--game-brand, #a855f7),
    0 0 14px var(--game-brand-soft, rgba(168,85,255,.35));
}

/* Кнопка помощи внутри поля ввода */
.pay-modal__help-btn--inside {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: var(--dt-interactive-transition-shadow, all 0.2s ease);
  flex-shrink: 0;
  z-index: 1;
}
.pay-modal__help-btn--inside:hover {
  color: var(--game-brand, #a855f7);
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-50%) scale(1.05);
}
.pay-modal__help-btn--inside:active {
  transform: translateY(-50%) scale(0.98);
}
.pay-modal__help-btn--inside svg {
  width: 16px;
  height: 16px;
}

/* Добавляем padding-right для input, чтобы текст не перекрывался с кнопкой */
.pay-modal__input-wrapper .pay-modal__input {
  padding-right: 46px; /* Место для кнопки (28px + 10px справа + 8px отступ) */
}

/* ========================== UID HELP MODAL ========================== */
.uid-help-modal {
  position: fixed;
  inset: 0;
  z-index: 100000; /* Выше, чем pay-modal */
  display: none; /* По умолчанию скрыта */
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}
.uid-help-modal[aria-hidden="false"]:not([hidden]) {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.uid-help-modal[hidden],
.uid-help-modal[aria-hidden="true"] {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.uid-help-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.uid-help-modal__window {
  position: relative;
  z-index: 2;
  width: clamp(300px, 90vw, 600px);
  background: #11131b;
  color: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 90vh;
  overflow-y: auto;
}

.uid-help-modal__content {
  width: 100%;
}

.uid-help-modal__text {
  color: #fff;
  line-height: 1.6;
}

.uid-help-modal__text h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 700;
}

.uid-help-modal__text ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}

.uid-help-modal__text li {
  margin-bottom: 12px;
}

.uid-help-modal__text code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.uid-help-modal__text p {
  margin: 16px 0 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.uid-help-modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: var(--close-btn-size, 32px);
  height: var(--close-btn-size, 32px);
  background: var(--close-btn-base-bg, rgba(255, 255, 255, 0.08));
  border: none;
  border-radius: var(--close-btn-border-radius, 50%); /* Круглые */
  color: var(--close-btn-base-color, var(--game-muted, #9ca3af));
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
}
.uid-help-modal__close:hover {
  background: var(--close-btn-hover-bg, rgba(168, 85, 247, 0.15));
  color: var(--close-btn-hover-color, var(--game-brand, #a855f7));
  /* Используем токен для единого hover-эффекта (адаптируем для игр) */
  box-shadow:
    inset 0 0 0 1px var(--game-brand, #a855f7),
    0 0 8px var(--game-brand-soft, rgba(168,85,255,.35));
}

.uid-help-modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 8px;
}

.uid-help-modal__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========================== NICKNAME & SERVER FIELDS ========================== */
/* Readonly поля для автоматически заполненных данных */
/* Усиленная специфичность для переопределения всех других правил */
.pay-modal__input--readonly,
input.pay-modal__input--readonly,
input[readonly].pay-modal__input,
input[name="nickname"].pay-modal__input,
input[name="server"].pay-modal__input,
.pay-modal__field input[name="nickname"],
.pay-modal__field input[name="server"],
#order-nickname,
#order-server,
#webpay-nickname,
#webpay-server,
.pay-modal__field #order-nickname,
.pay-modal__field #order-server,
.pay-modal__field #webpay-nickname,
.pay-modal__field #webpay-server {
  background: rgba(34, 197, 94, 0.12) !important; /* Зеленый фон */
  border: 1px solid rgba(255, 255, 255, 0.08) !important; /* Обычная граница без фиолетового */
  border-color: rgba(255, 255, 255, 0.08) !important; /* Обычная граница без фиолетового */
  color: var(--game-text, #f9fafb) !important;
  cursor: default !important;
  pointer-events: none !important; /* Запрещаем взаимодействие */
  user-select: none !important; /* Запрещаем выделение текста */
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  opacity: 0.9;
  touch-action: none !important; /* Запрещаем touch события на мобильных */
  box-shadow: none !important; /* Убираем все тени */
}

/* Переопределяем hover и focus для readonly полей - убираем фиолетовый */
/* Максимальная специфичность для переопределения всех правил */
.pay-modal__input--readonly:hover,
.pay-modal__input--readonly:focus,
.pay-modal__input--readonly:active,
input.pay-modal__input--readonly:hover,
input.pay-modal__input--readonly:focus,
input.pay-modal__input--readonly:active,
input[readonly].pay-modal__input:hover,
input[readonly].pay-modal__input:focus,
input[readonly].pay-modal__input:active,
#order-nickname:hover,
#order-nickname:focus,
#order-nickname:active,
#order-server:hover,
#order-server:focus,
#order-server:active,
#webpay-nickname:hover,
#webpay-nickname:focus,
#webpay-nickname:active,
#webpay-server:hover,
#webpay-server:focus,
#webpay-server:active,
.pay-modal__field input[name="nickname"]:hover,
.pay-modal__field input[name="nickname"]:focus,
.pay-modal__field input[name="nickname"]:active,
.pay-modal__field input[name="server"]:hover,
.pay-modal__field input[name="server"]:focus,
.pay-modal__field input[name="server"]:active,
.pay-modal__field #order-nickname:hover,
.pay-modal__field #order-nickname:focus,
.pay-modal__field #order-server:hover,
.pay-modal__field #order-server:focus,
.pay-modal__field #webpay-nickname:hover,
.pay-modal__field #webpay-nickname:focus,
.pay-modal__field #webpay-server:hover,
.pay-modal__field #webpay-server:focus {
  border: 1px solid rgba(255, 255, 255, 0.08) !important; /* Обычная граница без фиолетового */
  border-color: rgba(255, 255, 255, 0.08) !important; /* Обычная граница без фиолетового */
  background: rgba(34, 197, 94, 0.12) !important; /* Зеленый фон */
  box-shadow: none !important;
  outline: none !important;
  cursor: default !important;
  pointer-events: none !important;
}

/* Индикатор загрузки для полей */
.pay-modal__field--loading {
  position: relative;
}

.pay-modal__field--loading::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(168, 85, 247, 0.3);
  border-top-color: var(--game-brand, #a855f7);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  pointer-events: none;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Заполненные поля (успешная валидация) */
/* Стили для успешно заполненных полей (зеленый фон) */
.pay-modal__input--filled,
.pay-modal__input--readonly.pay-modal__input--filled,
input.pay-modal__input--readonly.pay-modal__input--filled,
input[readonly].pay-modal__input--filled,
#order-nickname.pay-modal__input--filled,
#order-server.pay-modal__input--filled,
#webpay-nickname.pay-modal__input--filled,
#webpay-server.pay-modal__input--filled {
  background: rgba(34, 197, 94, 0.12) !important; /* Зеленый фон вместо фиолетового */
  border-color: rgba(255, 255, 255, 0.08) !important; /* Обычная граница, без зеленой подсветки */
  color: var(--game-text, #f9fafb) !important;
  box-shadow: none !important; /* Убираем зеленую тень */
  position: relative;
  padding-right: 36px !important; /* Место для галочки */
}

/* Убеждаемся, что readonly поля всегда зеленые, даже с классом filled */
.pay-modal__input--readonly.pay-modal__input--filled:hover,
.pay-modal__input--readonly.pay-modal__input--filled:focus,
input.pay-modal__input--readonly.pay-modal__input--filled:hover,
input.pay-modal__input--readonly.pay-modal__input--filled:focus,
input[readonly].pay-modal__input--filled:hover,
input[readonly].pay-modal__input--filled:focus,
#order-nickname.pay-modal__input--filled:hover,
#order-nickname.pay-modal__input--filled:focus,
#order-server.pay-modal__input--filled:hover,
#order-server.pay-modal__input--filled:focus,
#webpay-nickname.pay-modal__input--filled:hover,
#webpay-nickname.pay-modal__input--filled:focus,
#webpay-server.pay-modal__input--filled:hover,
#webpay-server.pay-modal__input--filled:focus {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

/* Галочка через JavaScript элемент - позиционируется внутри input-wrapper */
.pay-modal__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pay-modal__checkmark {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(34, 197, 94, 1);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Для полей с кнопкой помощи внутри - сдвигаем галочку левее */
.pay-modal__input-wrapper:has(.pay-modal__help-btn--inside) .pay-modal__checkmark {
  right: 48px; /* Сдвигаем левее, чтобы не перекрывалась с кнопкой помощи */
}

@media (max-width: 520px) {
  .uid-help-modal__window {
    width: 95%;
    padding: 20px;
  }
  
  /* Модалка оплаты для мобильных */
  .pay-modal__window {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 24px 20px;
    border-radius: 16px;
    margin: 12px;
  }
  
  .pay-modal__title {
    font-size: 20px;
  }
  
  .pay-modal__form {
    gap: 16px;
    margin: 24px 0 12px;
  }
  
  .pay-modal__actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  
  .pay-modal__back-btn,
  .pay-modal__submit-btn {
    width: 100%;
    min-height: 48px;
  }
  
  /* Принудительно применяем стиль для iOS Safari - используем токены как у .btn-pay */
  .pay-modal__submit-btn,
  .pay-modal__submit {
    background: var(--game-panel-2, #1a1d26) !important;
    border: none !important; /* Убираем border полностью */
    color: var(--game-brand, #a855f7) !important; /* Как у .btn-pay */
    font-weight: 700 !important; /* Как у .btn-pay */
    /* Используем токены для единого стиля, как у .btn-pay */
    box-shadow: var(--pay-btn-active-shadow) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border-radius: 10px !important;
  }
}

/* ========================================================================
   КРИТИЧЕСКИ ВАЖНО: Переопределение border для readonly полей
   Размещено в конце файла для максимального приоритета
   ======================================================================== */
.pay-modal__field #order-nickname,
.pay-modal__field #order-server,
.pay-modal__field #webpay-nickname,
.pay-modal__field #webpay-server,
.pay-modal__field input[name="nickname"].pay-modal__input--readonly,
.pay-modal__field input[name="server"].pay-modal__input--readonly,
.pay-modal__field input[readonly][name="nickname"],
.pay-modal__field input[readonly][name="server"],
#order-nickname.pay-modal__input--readonly,
#order-server.pay-modal__input--readonly,
#webpay-nickname.pay-modal__input--readonly,
#webpay-server.pay-modal__input--readonly,
input#order-nickname.pay-modal__input--readonly,
input#order-server.pay-modal__input--readonly,
input#webpay-nickname.pay-modal__input--readonly,
input#webpay-server.pay-modal__input--readonly,
.pay-modal__field input[name="nickname"],
.pay-modal__field input[name="server"] {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(34, 197, 94, 0.12) !important;
  box-shadow: none !important;
  outline: none !important;
}

.pay-modal__field #order-nickname:hover,
.pay-modal__field #order-nickname:focus,
.pay-modal__field #order-nickname:active,
.pay-modal__field #order-server:hover,
.pay-modal__field #order-server:focus,
.pay-modal__field #order-server:active,
.pay-modal__field #webpay-nickname:hover,
.pay-modal__field #webpay-nickname:focus,
.pay-modal__field #webpay-nickname:active,
.pay-modal__field #webpay-server:hover,
.pay-modal__field #webpay-server:focus,
.pay-modal__field #webpay-server:active,
.pay-modal__field input[name="nickname"].pay-modal__input--readonly:hover,
.pay-modal__field input[name="nickname"].pay-modal__input--readonly:focus,
.pay-modal__field input[name="nickname"].pay-modal__input--readonly:active,
.pay-modal__field input[name="server"].pay-modal__input--readonly:hover,
.pay-modal__field input[name="server"].pay-modal__input--readonly:focus,
.pay-modal__field input[name="server"].pay-modal__input--readonly:active,
input#order-nickname.pay-modal__input--readonly:hover,
input#order-nickname.pay-modal__input--readonly:focus,
input#order-nickname.pay-modal__input--readonly:active,
input#order-server.pay-modal__input--readonly:hover,
input#order-server.pay-modal__input--readonly:focus,
input#order-server.pay-modal__input--readonly:active,
input#webpay-nickname.pay-modal__input--readonly:hover,
input#webpay-nickname.pay-modal__input--readonly:focus,
input#webpay-nickname.pay-modal__input--readonly:active,
input#webpay-server.pay-modal__input--readonly:hover,
input#webpay-server.pay-modal__input--readonly:focus,
input#webpay-server.pay-modal__input--readonly:active {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(34, 197, 94, 0.12) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
  .pay-modal__window {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    padding: 20px 16px;
    margin: 8px;
  }
  
  .pay-modal__title {
    font-size: 18px;
  }
}

/* Исправление для iOS Safari - принудительно применяем единый стиль */
@supports (-webkit-touch-callout: none) {
  .pay-modal__submit-btn,
  .pay-modal__submit,
  button.pay-modal__submit-btn,
  button.pay-modal__submit {
    background: var(--game-panel-2, #1a1d26) !important;
    border: none !important; /* Убираем border полностью */
    color: var(--game-brand, #a855f7) !important; /* Как у .btn-pay */
    font-weight: 700 !important; /* Как у .btn-pay */
    /* Используем токены для единого стиля, как у .btn-pay */
    box-shadow: var(--pay-btn-active-shadow) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  .pay-modal__submit-btn:active,
  .pay-modal__submit:active,
  button.pay-modal__submit-btn:active,
  button.pay-modal__submit:active {
    background: var(--game-panel-2, #1a1d26) !important;
    border: none !important;
    color: var(--game-brand, #a855f7) !important;
  }
  
  .pay-modal__submit-btn:hover:not(:disabled),
  .pay-modal__submit:hover:not(:disabled),
  button.pay-modal__submit-btn:hover:not(:disabled),
  button.pay-modal__submit:hover:not(:disabled),
  #pay-fk-submit:hover:not(:disabled),
  #webpay-submit-btn:hover:not(:disabled) {
    background: var(--game-panel-2, #1a1d26) !important;
    /* Усиление свечения при hover, как у .btn-pay */
    color: var(--game-brand, #a855f7) !important;
    text-shadow: 0 0 8px var(--game-brand-soft, rgba(168,85,255,.35)) !important;
    box-shadow: var(--pay-btn-hover-enhanced) !important;
  }
  /* Hover для кнопки "Назад" */
  .pay-modal__back-btn:hover {
    /* Заменяем базовый border (box-shadow) на подсветку */
    color: var(--game-brand, #a855f7) !important;
    text-shadow: 0 0 8px var(--game-brand-soft, rgba(168,85,255,.35)) !important;
    box-shadow: var(--button-hover-shadow) !important;
  }
}

/* Дополнительные стили для всех кнопок в модалке на iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .pay-modal__submit-btn,
  .pay-modal__submit {
    -webkit-appearance: none !important;
    appearance: none !important;
  }
}

body.service-ai #nav-mode-switch,
body.service-playstation #nav-mode-switch,
body.service-ai #mode-modal,
body.service-playstation #mode-modal{
  display:none !important;
}

body.service-ai .products,
body.service-playstation .products{
  grid-template-columns:repeat(auto-fill, minmax(250px, 1fr));
  gap:20px;
}

.product-card[data-service="ai"],
.product-card[data-service="playstation"]{
  --card-accent:#5b34a8;
  --card-accent-2:#2f3138;
  --card-accent-soft:rgba(167,94,255,.18);
  padding:var(--space-5) var(--space-4) var(--space-4);
  gap:var(--space-3);
  border:var(--game-border);
  background:var(--game-panel);
  box-shadow:var(--game-shadow);
}

.product-card[data-service="playstation"]{
  --card-accent:#278ef0;
  --card-accent-soft:rgba(39,142,240,.16);
}

.product-card[data-service="ai"]:hover,
.product-card[data-service="playstation"]:hover{
  box-shadow:var(--elev-2);
  border-color: color-mix(in srgb, var(--game-brand) 45%, #2e2e2e);
  background: color-mix(in srgb, var(--game-panel) 94%, var(--game-brand) 6%);
}

.product-card[data-service="ai"] .card-badge,
.product-card[data-service="playstation"] .card-badge,
.product-card[data-service="ai"] .card-subtitle,
.product-card[data-service="playstation"] .card-subtitle,
.product-card[data-service="ai"] .card-detail,
.product-card[data-service="playstation"] .card-detail,
.product-card[data-service="ai"] .product-card__purchase-hint-badge,
.product-card[data-service="playstation"] .product-card__purchase-hint-badge{
  display:none;
}

.product-card--service-catalog{
  align-items:stretch;
}

.product-card[data-service="ai"] .card-media,
.product-card[data-service="playstation"] .card-media{
  aspect-ratio:4/3;
}

.product-card[data-service="ai"] .card-media{
  border:var(--game-border);
  background:linear-gradient(180deg, var(--panel), var(--panel-2));
}

.product-card[data-service="ai"] .card-media::after{
  display:none;
}

.product-card[data-service="ai"] .card-media img,
.product-card[data-service="playstation"] .card-media img{
  width:78%;
  height:78%;
  object-fit:contain;
  padding:0;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.35));
}

.product-card[data-service="ai"] .card-media img{
    width:60%;
    height:60%;
    filter:none;
}

.product-card[data-service="ai"][data-category="cursor"] .card-media img{
    width:60%;
    height:60%;
}

body.service-ai .game-logo,
body.service-playstation .game-logo{
  background:none !important;
  border:none !important;
  box-shadow:none !important;
  padding:0;
}

body.service-ai .game-logo,
body.service-playstation .game-logo,
body.service-ai .card-media img,
body.service-playstation .card-media img{
  transform:none;
  transform-origin:center;
}

.product-card--service-catalog .add-btn{
  flex:0 0 44px;
  width:44px;
  height:44px;
}

@media (max-width: 920px){
  body.service-ai .products,
  body.service-playstation .products{
    grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
  }
}


/* Shared product info overlay: SWGOH, DBM subscriptions, future service catalogs. */
:root{
  --product-info-trigger-size:34px;
  --product-info-trigger-inset:10px;
  --product-info-trigger-radius:10px;
  --product-info-trigger-border:rgba(196,181,253,.46);
  --product-info-trigger-bg:rgba(22,22,28,.90);
  --product-info-trigger-bg-hover:rgba(43,37,55,.96);
  --product-card-hover-outline:var(--dt-product-surface-hover-outline);
}
.product-card--has-info-trigger{
  position:relative;
  overflow:hidden;
}
.product-card--has-info-trigger.product-card--active-until::before{
  box-shadow:none;
}
.product-card__info-trigger.product-card__active-until-badge::after{
  content:none !important;
  display:none !important;
  opacity:0 !important;
  box-shadow:none !important;
  filter:none !important;
  transform:none !important;
}
.product-card__info-trigger,
.product-card__info-trigger.product-card__info-badge{
  position:absolute !important;
  top:var(--product-info-trigger-inset) !important;
  right:var(--product-info-trigger-inset) !important;
  width:var(--product-info-trigger-size) !important;
  height:var(--product-info-trigger-size) !important;
  min-width:var(--product-info-trigger-size) !important;
  flex:0 0 var(--product-info-trigger-size) !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  border:1px solid var(--product-info-trigger-border) !important;
  border-radius:var(--product-info-trigger-radius) !important;
  background:var(--product-info-trigger-bg) !important;
  color:#fff !important;
  font:900 19px/1 var(--font, inherit) !important;
  text-align:center !important;
  box-shadow:none !important;
  text-shadow:none !important;
  cursor:pointer;
  z-index:12;
  appearance:none;
  -webkit-appearance:none;
  transition:border-color .18s ease, background-color .18s ease, color .18s ease;
}
.product-card__info-trigger:hover,
.product-card__info-trigger.product-card__info-badge:hover,
.product-card__info-trigger[aria-expanded="true"]{
  border-color:rgba(221,214,254,.80) !important;
  background:var(--product-info-trigger-bg-hover) !important;
  box-shadow:none !important;
  transform:none !important;
  filter:none !important;
}
.product-card__info-trigger:focus{ outline:none; }
.product-card__info-trigger:focus:not(:focus-visible){ box-shadow:none !important; }
.product-card__info-trigger:focus-visible{
  outline:2px solid rgba(196,181,253,.95);
  outline-offset:2px;
  box-shadow:none !important;
}
.product-card__info-overlay{
  position:absolute;
  inset:0;
  z-index:11;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:10px 16px 16px;
  border-radius:inherit;
  background:linear-gradient(180deg, rgba(20,17,31,.98), rgba(11,10,18,.97));
  border:1px solid rgba(169,105,255,.30);
  box-shadow:none !important;
  backdrop-filter:none !important;
  opacity:0;
  transform:none;
  pointer-events:none;
  overflow:hidden;
  box-sizing:border-box;
}
.product-card__info-overlay[hidden]{ display:none !important; }
.product-card--info-open .product-card__info-overlay{
  opacity:1;
  pointer-events:auto;
}
.product-card--info-open .card-media,
.product-card--info-open .card-title,
.product-card--info-open .card-subtitle,
.product-card--info-open .price-row{
  opacity:0;
  transform:none;
  pointer-events:none;
  filter:none;
}
.product-card--info-open .product-card__active-until-badge,
.product-card--info-open .product-card__purchase-hint-badge,
.product-card--info-open .product-card__hidden-badge{
  opacity:0;
  pointer-events:none;
}
.product-card--info-open .product-card__info-trigger{
  opacity:1 !important;
  pointer-events:auto !important;
  filter:none !important;
  transform:none !important;
}

.product-card__info-overlay-header{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-height:var(--product-info-trigger-size);
  padding-right:calc(var(--product-info-trigger-size) + 10px);
}
.product-card__info-overlay-header-meta{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
}
.product-card__info-overlay-header-meta:empty{ display:none; }
.product-card__info-overlay-meta{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.product-card__info-overlay-meta.product-card__info-overlay-meta--single{ grid-template-columns:1fr; }
.product-card__info-overlay-pill{
  display:block;
  min-width:0;
  max-width:100%;
  padding:12px 14px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border:1px solid rgba(169,105,255,.2);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03);
}
.product-card__info-overlay-header-meta .product-card__info-overlay-pill{
  width:auto;
  max-width:100%;
  padding:10px 13px;
  border-radius:13px;
}
.product-card__info-overlay-pill-label,
.product-card__info-overlay-label{ display:none; }
.product-card__info-overlay-pill-text{
  min-width:0;
  font-size:13px;
  line-height:1.45;
  text-align:left;
  color:#fff;
  font-weight:600;
  white-space:normal;
  overflow-wrap:anywhere;
}
.product-card__info-overlay-content{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
  max-width:100%;
  overflow-x:hidden;
}
.product-card__info-overlay-section{
  display:flex;
  flex-direction:column;
  gap:0;
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
  padding:14px 15px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.06);
}
.product-card__info-overlay-text{
  font-size:15px;
  line-height:1.58;
  color:#f1ecff;
  white-space:pre-line;
  overflow-wrap:anywhere;
  text-align:left;
  font-weight:650;
}
.product-card__info-overlay-title{
  min-width:0;
  color:#fff;
  font-size:15px;
  line-height:1.25;
  font-weight:850;
  text-align:left;
  overflow-wrap:anywhere;
}
.product-card__info-overlay-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.product-card__info-overlay-list-item{
  position:relative;
  padding-left:18px;
  color:#f1ecff;
  font-size:14px;
  line-height:1.52;
  font-weight:650;
  text-align:left;
  overflow-wrap:anywhere;
}
.product-card__info-overlay-list-item::before{
  content:'•';
  position:absolute;
  left:0;
  top:0;
  color:#c4b5fd;
  font-weight:900;
}
.product-card__info-overlay-body{
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding-right:0;
  text-align:left;
  scrollbar-width:thin;
  scrollbar-color:rgba(169,105,255,.48) transparent;
}
.product-card__info-overlay-body::-webkit-scrollbar{ width:6px; }
.product-card__info-overlay-body::-webkit-scrollbar-thumb{
  background:rgba(169,105,255,.4);
  border-radius:999px;
}
.product-card:hover,
.product-card[data-service="ai"]:hover,
.product-card[data-service="playstation"]:hover,
.product-card--service-catalog.product-card--product-info:hover{
  border-color:var(--product-card-hover-outline);
  box-shadow:var(--game-shadow);
  background:var(--game-panel);
  filter:none;
  transform:none;
}
.product-card:hover::after,
.product-card:focus-visible::after{
  opacity:0;
  box-shadow:none;
  filter:none;
}
.product-card:focus-visible{
  outline:2px solid color-mix(in srgb, var(--game-brand) 60%, transparent);
  outline-offset:3px;
}
@media (max-width: 767px){
  .product-card__info-overlay{
    padding:10px 14px 14px;
  }
  .product-card__info-overlay-title{
    font-size:14px;
  }
  .product-card__info-overlay-list-item{
    font-size:13px;
    line-height:1.5;
  }
}
.product-card--has-info-trigger:hover{
  border-color:var(--product-card-hover-outline);
  box-shadow:var(--game-shadow);
  background:var(--game-panel);
  filter:none;
  transform:none;
}

/* PlayStation internal modes: subscriptions / PSN balance top-up. Mirrors captured Steam top-up structure. */
body.service-playstation {
  --psn-topup-panel: var(--panel, #151515);
  --psn-topup-panel-2: var(--panel-2, #111111);
  --psn-topup-text: var(--text, #fff);
  --psn-topup-muted: var(--muted, #bdbdbd);
  --psn-topup-brand: var(--brand, #a75eff);
  --psn-topup-brand-soft: var(--brand-soft, rgba(167, 94, 255, .35));
  --psn-topup-border: var(--border-soft, 1px solid rgba(255, 255, 255, .06));
  --psn-topup-shadow: var(--card-shadow, 0 8px 24px rgba(0, 0, 0, .35));
  --psn-topup-radius: var(--radius, 16px);
}

body.service-playstation .navigation #nav-mode-switch.psn-mode-switch {
  display: inline-flex !important;
  align-items: center;
  width: auto;
  max-width: 100%;
  flex-wrap: nowrap;
  gap: 0;
  margin-top: 0;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 999px;
  box-shadow: none;
  overflow: visible;
  position: relative;
  isolation: isolate;
}

body.service-playstation .psn-mode-switch .mode-btn,
body.service-playstation .psn-topup-region {
  min-height: 42px;
  padding: var(--space-2, 8px) var(--space-4, 16px);
  border: none;
  border-radius: calc(var(--psn-topup-radius) * .75);
  background: var(--psn-topup-panel-2);
  color: var(--psn-topup-text);
  font-family: var(--font-accent, inherit);
  font-size: var(--game-text-md, 16px);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow .2s ease, background .2s ease, color .2s ease;
}

body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 110px;
  max-width: none;
  height: 35px;
  min-height: 35px;
  padding: 8px 20px;
  box-sizing: border-box;
  overflow: visible;
  font-size: 14px;
  line-height: 1;
}

body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .mode-btn.active {
  width: auto;
  min-width: 110px;
  flex: 0 0 auto;
}

body.service-playstation .psn-mode-switch .mode-btn:hover:not(.active),
body.service-playstation .psn-topup-region:hover:not(.active) {
  color: var(--psn-topup-brand);
  box-shadow: inset 0 0 0 1.5px var(--psn-topup-brand);
  text-shadow: 0 0 8px var(--psn-topup-brand-soft);
}

body.service-playstation .psn-mode-switch .mode-btn.active,
body.service-playstation .psn-topup-region.active {
  color: var(--psn-topup-brand);
  background: var(--psn-topup-panel-2);
  box-shadow:
    inset 0 0 0 1.5px var(--psn-topup-brand),
    0 0 14px var(--psn-topup-brand-soft);
  text-shadow: 0 0 12px var(--psn-topup-brand-soft), 0 0 20px var(--psn-topup-brand-soft);
}

body.service-playstation.psn-topup-mode #filters,
body.service-playstation.psn-topup-mode #products,
body.service-playstation.psn-topup-mode #cart,
body.service-playstation.psn-topup-mode #cart-drawer,
body.service-playstation.psn-topup-mode #mobile-dock {
  display: none !important;
}

body.service-playstation .psn-topup-panel {
  width: min(700px, 100%);
  margin: 0 auto var(--space-7, 28px);
}

body.service-playstation .psn-topup-panel[hidden] {
  display: none !important;
}

body.service-playstation .psn-topup-region-switch {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
  margin: 0 0 var(--space-5, 20px);
  padding: var(--space-2, 8px);
  background: var(--psn-topup-panel);
  border: var(--psn-topup-border);
  border-radius: var(--psn-topup-radius);
  box-shadow: var(--psn-topup-shadow);
}

body.service-playstation .psn-topup-region {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, 8px);
  min-width: 0;
}

body.service-playstation .psn-topup-region__flag {
  font-size: 18px;
  line-height: 1;
}

body.service-playstation .psn-topup-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4, 16px);
  align-items: end;
}

body.service-playstation .psn-topup-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-2, 8px);
}

body.service-playstation .psn-topup-label,
body.service-playstation .psn-topup-total-label {
  display: block;
  color: var(--psn-topup-text);
  font-family: var(--font-accent, inherit);
  font-size: var(--game-text-md, 16px);
  font-weight: 600;
}

body.service-playstation .psn-topup-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  border-radius: var(--psn-topup-radius);
  box-shadow: inset 0 0 0 1.5px rgba(167, 94, 255, .35);
  transition: box-shadow .2s ease;
}

body.service-playstation .psn-topup-input-wrap:focus-within {
  box-shadow:
    inset 0 0 0 1.5px var(--psn-topup-brand),
    0 0 14px var(--psn-topup-brand-soft);
}

body.service-playstation .psn-topup-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  width: 100%;
  padding: var(--space-3, 12px) 70px var(--space-3, 12px) var(--space-4, 16px);
  border: 0;
  border-radius: var(--psn-topup-radius);
  outline: 0;
  background: var(--psn-topup-panel);
  color: var(--psn-topup-text);
  font-family: var(--font-accent, inherit);
  font-size: var(--game-text-lg, 18px);
  font-weight: 600;
}

body.service-playstation .psn-topup-input:focus {
  background: color-mix(in srgb, var(--psn-topup-panel) 94%, var(--psn-topup-brand) 6%);
}

body.service-playstation .psn-topup-currency {
  position: absolute;
  right: var(--space-4, 16px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--psn-topup-text);
  font-family: var(--font-accent, inherit);
  font-size: var(--game-text-lg, 18px);
  font-weight: 600;
  pointer-events: none;
}

body.service-playstation .psn-topup-total {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-2, 8px);
}

body.service-playstation .psn-topup-total-value {
  display: flex;
  min-height: 44px;
  align-items: baseline;
  gap: var(--space-2, 8px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
  border: var(--psn-topup-border);
  border-radius: var(--psn-topup-radius);
  background: var(--psn-topup-panel);
  color: rgba(34, 197, 94, 1);
  font-family: var(--font-accent, inherit);
  font-size: var(--game-text-lg, 18px);
  font-weight: 700;
  line-height: 1.2;
}

body.service-playstation .psn-topup-hint,
body.service-playstation .psn-topup-error,
body.service-playstation .psn-topup-note {
  font-family: var(--font-body, inherit);
  font-size: var(--game-text-sm, 14px);
  line-height: 1.5;
}

body.service-playstation .psn-topup-hint {
  color: var(--psn-topup-muted);
}

body.service-playstation .psn-topup-error {
  color: rgba(239, 68, 68, 1);
}

body.service-playstation .psn-topup-note {
  grid-column: 1 / 3;
  padding: var(--space-4, 16px);
  border: 1px solid rgba(34, 197, 94, .3);
  border-radius: var(--psn-topup-radius);
  background: rgba(34, 197, 94, .12);
  color: rgba(34, 197, 94, 1);
}

body.service-playstation .psn-topup-note p {
  margin: 0;
}

body.service-playstation .psn-topup-note p + p {
  margin-top: 6px;
}

body.service-playstation .psn-topup-submit {
  grid-column: 1 / 3;
  justify-self: center;
  width: min(320px, 100%);
  min-height: 52px;
  padding: var(--space-4, 16px) var(--space-6, 24px);
  border: none !important;
  border-radius: var(--psn-topup-radius);
  background: var(--psn-topup-panel-2);
  color: var(--psn-topup-brand);
  font-family: var(--font-accent, inherit);
  font-size: var(--game-text-lg, 18px);
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1.5px var(--psn-topup-brand),
    0 0 14px var(--psn-topup-brand-soft) !important;
  transition: box-shadow .2s ease, color .2s ease, opacity .2s ease;
}

body.service-playstation .psn-topup-submit:hover:not(:disabled) {
  box-shadow:
    inset 0 0 0 1.5px var(--psn-topup-brand),
    0 0 14px var(--psn-topup-brand-soft),
    0 0 20px var(--psn-topup-brand-soft),
    0 0 30px var(--psn-topup-brand-soft) !important;
}

body.service-playstation .psn-topup-submit:disabled {
  color: var(--psn-topup-muted);
  opacity: .52;
  cursor: not-allowed;
  box-shadow: none !important;
}

body.service-playstation .psn-topup-confirm {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5, 20px);
}

body.service-playstation .psn-topup-confirm.is-open {
  display: flex;
}

body.service-playstation .psn-topup-confirm__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(8px);
}

body.service-playstation .psn-topup-confirm__window {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: var(--space-6, 24px);
  border: var(--psn-topup-border);
  border-radius: var(--psn-topup-radius);
  background: var(--psn-topup-panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .45);
}

body.service-playstation .psn-topup-confirm__title {
  margin: 0 0 var(--space-2, 8px);
  color: var(--psn-topup-text);
  font-family: var(--font-heading, inherit);
  font-size: var(--game-h3, 22px);
}

body.service-playstation .psn-topup-confirm__eyebrow {
  margin-bottom: var(--space-5, 20px);
  color: var(--psn-topup-brand);
  font-family: var(--font-accent, inherit);
  font-size: var(--game-text-sm, 14px);
  font-weight: 800;
  letter-spacing: .04em;
}

body.service-playstation .psn-topup-confirm__summary {
  display: grid;
  gap: var(--space-3, 12px);
  margin: 0 0 var(--space-5, 20px);
}

body.service-playstation .psn-topup-confirm__summary div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4, 16px);
  padding-bottom: var(--space-3, 12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

body.service-playstation .psn-topup-confirm__summary dt {
  color: var(--psn-topup-muted);
}

body.service-playstation .psn-topup-confirm__summary dd {
  margin: 0;
  color: var(--psn-topup-text);
  font-weight: 800;
  text-align: right;
}

body.service-playstation .psn-topup-confirm__summary div:last-child dd {
  color: rgba(34, 197, 94, 1);
}

body.service-playstation .psn-topup-confirm__note {
  margin: 0 0 var(--space-5, 20px);
  color: #cbc6d8;
  line-height: 1.5;
}

body.service-playstation .psn-topup-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3, 12px);
}

body.service-playstation .psn-topup-confirm__cancel,
body.service-playstation .psn-topup-confirm__confirm {
  min-height: 42px;
  padding: 0 var(--space-4, 16px);
  border-radius: calc(var(--psn-topup-radius) * .75);
  font: inherit;
  cursor: pointer;
}

body.service-playstation .psn-topup-confirm__cancel {
  border: 1px solid rgba(255, 255, 255, .14);
  background: transparent;
  color: var(--psn-topup-text);
}

body.service-playstation .psn-topup-confirm__confirm {
  border: none;
  background: var(--psn-topup-panel-2);
  color: var(--psn-topup-brand);
  font-weight: 800;
  box-shadow:
    inset 0 0 0 1.5px var(--psn-topup-brand),
    0 0 14px var(--psn-topup-brand-soft);
}

@media (max-width: 768px) {
  body.service-playstation .game-header {
    align-items: center;
    gap: var(--space-3, 12px);
  }

  body.service-playstation .game-logo {
    display: block !important;
    visibility: visible !important;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }

  body.service-playstation .game-header-content {
    min-width: 0;
  }

  body.service-playstation .game-header-content .page-title {
    order: 0;
  }

  body.service-playstation .navigation #nav-mode-switch.psn-mode-switch {
    width: max-content;
    max-width: 100%;
    flex-wrap: nowrap;
    margin-left: auto;
  }

  body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .mode-btn {
    flex: 0 0 auto;
    min-width: max-content;
    max-width: none;
    overflow: visible;
    padding: 8px 9px;
    font-size: 13.5px;
    line-height: 1.15;
    white-space: nowrap;
  }

  body.service-playstation .psn-topup-panel {
    width: 100%;
  }

  body.service-playstation .psn-topup-region-switch {
    width: 100%;
  }

  body.service-playstation .psn-topup-region {
    flex: 1 1 calc(50% - var(--space-1, 4px));
  }

  body.service-playstation .psn-topup-form {
    grid-template-columns: 1fr;
    gap: var(--space-3, 12px);
  }

  body.service-playstation .psn-topup-note,
  body.service-playstation .psn-topup-submit {
    grid-column: 1;
  }

  body.service-playstation .psn-topup-submit {
    justify-self: stretch;
    width: 100%;
    font-size: var(--game-text-md, 16px);
    padding: var(--space-3, 12px) var(--space-4, 16px);
    min-height: 48px;
  }

  body.service-playstation .psn-topup-confirm__summary div {
    display: block;
  }

  body.service-playstation .psn-topup-confirm__summary dd {
    margin-top: 4px;
    text-align: left;
  }

  body.service-playstation .psn-topup-confirm__actions {
    justify-content: stretch;
  }

  body.service-playstation .psn-topup-confirm__cancel,
  body.service-playstation .psn-topup-confirm__confirm {
    flex: 1 1 0;
  }
}

@media (max-width: 340px) {
  body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .mode-btn {
    padding: 8px 6px;
    font-size: 13px;
  }
}


/* ======================================================================
   PSN UI REMEDIATION: shared switch/modal styling
   Staged-only package psn_preview_ui_remediation_20260628T133155Z
   ====================================================================== */
:root {
  --dt-shared-ui-bg: var(--game-panel, #151515);
  --dt-shared-ui-bg-2: var(--game-panel-2, #111111);
  --dt-shared-ui-text: var(--game-text, #fff);
  --dt-shared-ui-muted: var(--game-muted, #bdbdbd);
  --dt-shared-ui-brand: var(--game-brand, #a75eff);
  --dt-shared-ui-brand-soft: var(--game-brand-soft, rgba(167, 94, 255, .35));
  --dt-shared-ui-border: 1px solid rgba(255, 255, 255, .08);
  --dt-shared-ui-radius: var(--game-radius, 16px);
  --dt-shared-ui-transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
  --shared-modal-title-color: #ffffff;
  --shared-modal-body-color: #eeeaf7;
  --shared-modal-muted-color: #d8d1e8;
}

.dt-shared-modal__title,
body.service-playstation .psn-topup-confirm__title,
body.service-playstation .psn-mode-choice__title {
  color: var(--shared-modal-title-color) !important;
}

.dt-shared-modal__window,
body.service-playstation .psn-topup-confirm__window,
body.service-playstation .psn-mode-choice__window {
  color: var(--shared-modal-body-color);
}

body.service-playstation .psn-mode-choice__hint,
body.service-playstation .psn-topup-confirm__note,
body.service-playstation .psn-topup-provider__option small,
body.service-playstation .psn-mode-choice__option small {
  color: var(--shared-modal-muted-color) !important;
}

.dt-shared-mode-switch,
body.service-playstation .navigation #nav-mode-switch.psn-mode-switch.dt-shared-mode-switch {
  display: inline-grid !important;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  align-items: center;
  width: min(380px, 100%);
  gap: 4px;
  padding: 4px;
  border: var(--dt-shared-ui-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--dt-shared-ui-bg) 88%, #000 12%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 26px rgba(0, 0, 0, .24);
  overflow: hidden;
}

.dt-shared-mode-switch__btn,
body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .dt-shared-mode-switch__btn {
  width: auto !important;
  min-width: 0 !important;
  max-width: none;
  height: 36px;
  min-height: 36px;
  flex: initial !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent;
  color: var(--dt-shared-ui-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px transparent;
  transition: var(--dt-shared-ui-transition);
}

.dt-shared-mode-switch__btn:hover:not(.active),
.dt-shared-mode-switch__btn:focus-visible:not(.active) {
  color: var(--dt-shared-ui-brand);
  background: color-mix(in srgb, var(--dt-shared-ui-bg-2) 86%, var(--dt-shared-ui-brand) 14%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dt-shared-ui-brand) 60%, transparent);
  outline: none;
}

.dt-shared-mode-switch__btn.active,
body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .dt-shared-mode-switch__btn.active {
  color: var(--dt-shared-ui-brand);
  background: var(--dt-shared-ui-bg-2);
  text-shadow: 0 0 10px var(--dt-shared-ui-brand-soft);
  box-shadow: inset 0 0 0 1.5px var(--dt-shared-ui-brand), 0 0 14px var(--dt-shared-ui-brand-soft);
}

.dt-shared-mode-switch__btn:active:not(.active) {
  background: color-mix(in srgb, var(--dt-shared-ui-bg-2) 78%, var(--dt-shared-ui-brand) 22%);
}

body.service-playstation .navigation .page-1400 {
  gap: var(--space-4, 16px);
}

body.service-playstation .navigation #nav-mode-switch.psn-mode-switch.dt-shared-mode-switch {
  margin-left: auto;
}

.dt-shared-modal,
body.service-playstation .psn-topup-confirm,
body.service-playstation .psn-mode-choice {
  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,
body.service-playstation .psn-topup-confirm.is-open,
body.service-playstation .psn-mode-choice.is-open {
  display: flex;
}

.dt-shared-modal__overlay,
body.service-playstation .psn-topup-confirm__overlay,
body.service-playstation .psn-mode-choice__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(8px);
}

.dt-shared-modal__window,
body.service-playstation .psn-topup-confirm__window,
body.service-playstation .psn-mode-choice__window {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: var(--space-6, 24px);
  border: var(--dt-shared-ui-border);
  border-radius: var(--dt-shared-ui-radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--dt-shared-ui-bg) 94%, var(--dt-shared-ui-brand) 6%), var(--dt-shared-ui-bg));
  box-shadow: 0 20px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.dt-shared-modal__close,
body.service-playstation .psn-topup-confirm__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-shared-ui-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: var(--dt-shared-ui-transition);
}

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

body.service-playstation .psn-topup-provider {
  display: grid;
  gap: var(--space-3, 12px);
  margin: 0 0 var(--space-5, 20px);
  padding: 0;
  border: 0;
}

body.service-playstation .psn-topup-provider__title {
  color: var(--dt-shared-ui-text);
  font-family: var(--font-accent, inherit);
  font-size: var(--game-text-md, 16px);
  font-weight: 800;
}

body.service-playstation .psn-topup-provider__options,
body.service-playstation .psn-mode-choice__options {
  display: grid;
  gap: var(--space-3, 12px);
}

body.service-playstation .psn-topup-provider__option,
body.service-playstation .psn-mode-choice__option {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--dt-shared-ui-bg-2);
  color: var(--dt-shared-ui-text);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: var(--dt-shared-ui-transition);
}

body.service-playstation .psn-topup-provider__option span,
body.service-playstation .psn-mode-choice__option span {
  font-family: var(--font-accent, inherit);
  font-size: 16px;
  font-weight: 800;
}

body.service-playstation .psn-topup-provider__option small,
body.service-playstation .psn-mode-choice__option small {
  color: var(--dt-shared-ui-muted);
  font-size: 13px;
  line-height: 1.35;
}

body.service-playstation .psn-topup-provider__option:hover,
body.service-playstation .psn-topup-provider__option:focus-visible,
body.service-playstation .psn-mode-choice__option:hover,
body.service-playstation .psn-mode-choice__option:focus-visible,
body.service-playstation .psn-topup-region:hover:not(.active),
body.service-playstation .psn-topup-region:focus-visible:not(.active),
body.service-playstation .psn-topup-submit:hover:not(:disabled),
body.service-playstation .psn-topup-submit:focus-visible:not(:disabled),
body.service-playstation .psn-topup-confirm__cancel:hover,
body.service-playstation .psn-topup-confirm__cancel:focus-visible,
body.service-playstation .psn-topup-confirm__confirm:hover:not(:disabled),
body.service-playstation .psn-topup-confirm__confirm:focus-visible:not(:disabled) {
  color: var(--dt-shared-ui-brand);
  background: color-mix(in srgb, var(--dt-shared-ui-bg-2) 86%, var(--dt-shared-ui-brand) 14%);
  box-shadow: inset 0 0 0 1.5px var(--dt-shared-ui-brand), 0 0 14px var(--dt-shared-ui-brand-soft) !important;
  outline: none;
}

body.service-playstation .psn-topup-confirm__confirm:hover:not(:disabled),
body.service-playstation .psn-topup-confirm__confirm:focus-visible:not(:disabled) {
  color: #ffffff;
  background: color-mix(in srgb, var(--dt-shared-ui-bg-2) 72%, var(--dt-shared-ui-brand) 28%);
  box-shadow: inset 0 0 0 1.5px var(--dt-shared-ui-brand), 0 0 22px var(--dt-shared-ui-brand-soft) !important;
}

body.service-playstation .psn-topup-provider__option.is-active,
body.service-playstation .psn-topup-provider__option[aria-checked="true"] {
  color: var(--dt-shared-ui-brand);
  background: color-mix(in srgb, var(--dt-shared-ui-bg-2) 82%, var(--dt-shared-ui-brand) 18%);
  box-shadow: inset 0 0 0 1.5px var(--dt-shared-ui-brand), 0 0 14px var(--dt-shared-ui-brand-soft);
}

body.service-playstation .psn-topup-region:active:not(.active),
body.service-playstation .psn-topup-submit:active:not(:disabled),
body.service-playstation .psn-topup-provider__option:active,
body.service-playstation .psn-mode-choice__option:active,
body.service-playstation .psn-topup-confirm__cancel:active,
body.service-playstation .psn-topup-confirm__confirm:active:not(:disabled),
body.service-playstation .psn-topup-confirm__close:active {
  background: color-mix(in srgb, var(--dt-shared-ui-bg-2) 76%, var(--dt-shared-ui-brand) 24%);
}

body.service-playstation .psn-mode-choice__hint {
  margin: 0 0 var(--space-5, 20px);
  color: var(--dt-shared-ui-muted);
  line-height: 1.5;
}

body.service-playstation .psn-topup-confirm__actions {
  gap: var(--space-3, 12px);
}

body.service-playstation .psn-topup-confirm__cancel,
body.service-playstation .psn-topup-confirm__confirm {
  transition: var(--dt-shared-ui-transition);
}

@media (max-width: 768px) {
  body.service-playstation .navigation .page-1400 {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  body.service-playstation .navigation #nav-mode-switch.psn-mode-switch.dt-shared-mode-switch {
    width: 100%;
    margin-left: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .dt-shared-mode-switch__btn {
    min-width: 0 !important;
    padding: 0 8px !important;
    font-size: 13px;
    white-space: normal;
  }

  body.service-playstation .psn-topup-confirm__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


/* ======================================================================
   PSN UI REMEDIATION PASS 2: exact SW-like switch and shared choice cards
   ====================================================================== */
:root {
  --dt-shared-choice-card-radius: 16px;
  --dt-shared-choice-card-padding: 16px;
  --dt-shared-choice-card-min-height: 92px;
}

.dt-shared-mode-switch,
body.service-playstation .navigation #nav-mode-switch.psn-mode-switch.dt-shared-mode-switch {
  display: inline-flex !important;
  grid-template-columns: none;
  width: auto;
  max-width: 100%;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  flex-wrap: nowrap;
}

.dt-shared-mode-switch__btn,
body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .dt-shared-mode-switch__btn {
  height: 35px;
  min-height: 35px;
  width: auto !important;
  min-width: 110px !important;
  flex: 0 0 auto !important;
  padding: 8px 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--game-panel-2, var(--dt-shared-ui-bg-2));
  color: var(--game-text, var(--dt-shared-ui-text));
  font-family: var(--font-accent, inherit);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, text-shadow .2s ease;
}

.dt-shared-mode-switch__btn:first-child,
body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .dt-shared-mode-switch__btn:first-child {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.dt-shared-mode-switch__btn:last-child,
body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .dt-shared-mode-switch__btn:last-child {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .dt-shared-mode-switch__btn[data-psn-mode="topup"] {
  min-width: 168px !important;
}

.dt-shared-mode-switch__btn:hover:not(.active),
.dt-shared-mode-switch__btn:focus-visible:not(.active),
body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .dt-shared-mode-switch__btn:hover:not(.active),
body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .dt-shared-mode-switch__btn:focus-visible:not(.active) {
  color: var(--game-brand, var(--dt-shared-ui-brand));
  background: var(--game-panel-2, var(--dt-shared-ui-bg-2));
  text-shadow: 0 0 8px var(--game-brand-soft, var(--dt-shared-ui-brand-soft));
  box-shadow: var(--button-hover-border-only, inset 0 0 0 1.5px var(--dt-shared-ui-brand));
  outline: none;
}

.dt-shared-mode-switch__btn.active,
body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .dt-shared-mode-switch__btn.active {
  color: var(--game-brand, var(--dt-shared-ui-brand));
  background: var(--game-panel-2, var(--dt-shared-ui-bg-2));
  font-weight: 700;
  text-shadow: 0 0 12px var(--game-brand-soft, var(--dt-shared-ui-brand-soft)), 0 0 20px var(--game-brand-soft, var(--dt-shared-ui-brand-soft));
  box-shadow: var(--pay-btn-hover-enhanced, inset 0 0 0 1.5px var(--dt-shared-ui-brand), 0 0 14px var(--dt-shared-ui-brand-soft));
}

.dt-shared-choice-card,
body.service-playstation .psn-mode-choice__option.dt-shared-choice-card {
  position: relative;
  min-height: var(--dt-shared-choice-card-min-height);
  padding: var(--dt-shared-choice-card-padding) var(--dt-shared-choice-card-padding) var(--dt-shared-choice-card-padding) 52px;
  border: var(--dt-shared-ui-border) !important;
  border-radius: var(--dt-shared-choice-card-radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--dt-shared-ui-bg-2) 94%, var(--dt-shared-ui-brand) 6%), var(--dt-shared-ui-bg-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 12px 30px rgba(0, 0, 0, .24);
}

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

.dt-shared-choice-card span,
body.service-playstation .psn-mode-choice__option.dt-shared-choice-card span {
  font-size: 17px;
  line-height: 1.2;
}

.dt-shared-choice-card small,
body.service-playstation .psn-mode-choice__option.dt-shared-choice-card small {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.4;
}

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

body.service-playstation .psn-mode-choice__window {
  width: min(640px, 100%);
}

body.service-playstation .psn-mode-choice__options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
  body.service-playstation .navigation .page-1400 {
    align-items: flex-start;
  }

  body.service-playstation .navigation #nav-mode-switch.psn-mode-switch.dt-shared-mode-switch {
    width: max-content;
    max-width: 100%;
    margin-left: 0;
    align-self: flex-start;
  }

  body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .dt-shared-mode-switch__btn {
    min-width: 102px !important;
    padding: 8px 13px !important;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
  }

  body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .dt-shared-mode-switch__btn[data-psn-mode="topup"] {
    min-width: 158px !important;
  }

  body.service-playstation .psn-mode-choice__window {
    padding: 22px;
  }

  body.service-playstation .psn-mode-choice__options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .dt-shared-mode-switch__btn {
    min-width: 96px !important;
    padding: 8px 10px !important;
    font-size: 12.5px;
  }

  body.service-playstation .navigation #nav-mode-switch.psn-mode-switch .dt-shared-mode-switch__btn[data-psn-mode="topup"] {
    min-width: 150px !important;
  }
}

/* ==========================================================================
   Site-Wide Modal Unification adapters
   Package: sitewide_modal_unification_20260628T161740Z
   ========================================================================== */
.mode-modal.dt-shared-modal {
  background: transparent;
  display: none;
  place-items: initial;
  z-index: 1200;
}

.mode-modal.dt-shared-modal.is-open:not([hidden]) {
  display: flex;
}

.mode-modal.dt-shared-modal .mode-modal__card {
  width: min(640px, 100%);
  min-width: 0;
  padding: var(--space-6, 24px);
}

.mode-modal.dt-shared-modal .mode-modal__grid {
  margin: var(--space-5, 20px) 0 var(--space-3, 12px);
}

.mode-modal.dt-shared-modal .mode-modal__option {
  align-content: start;
  min-height: var(--dt-modal-choice-min-height, 92px);
  padding: var(--dt-modal-choice-padding, 16px) var(--dt-modal-choice-padding, 16px) var(--dt-modal-choice-padding, 16px) 52px;
  text-decoration: none;
}

.mode-modal.dt-shared-modal .mode-modal__option:hover,
.mode-modal.dt-shared-modal .mode-modal__option:focus,
.mode-modal.dt-shared-modal .mode-modal__option:focus-visible,
.mode-modal.dt-shared-modal .mode-modal__option:active,
.mode-modal.dt-shared-modal .mode-modal__option:focus-within {
  transform: none;
}

.mode-modal.dt-shared-modal .mode-modal__option-title,
.mode-modal.dt-shared-modal .mode-modal__option-note {
  position: relative;
  z-index: 1;
}

.mode-modal.dt-shared-modal.is-single .mode-modal__card {
  width: min(640px, calc(100vw - 32px));
}

.mode-modal.dt-shared-modal.is-single .mode-modal__grid {
  grid-template-columns: 1fr;
}

body.service-playstation .psn-mode-choice__window {
  width: min(640px, 100%);
}

body.service-playstation .psn-topup-panel {
  width: min(700px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}

body.service-playstation .psn-topup-panel[hidden] {
  display: none !important;
}

body.service-playstation .psn-topup-region-switch,
body.service-playstation .psn-topup-form,
body.service-playstation .psn-topup-note,
body.service-playstation .psn-topup-submit {
  width: 100%;
  max-width: 700px;
  justify-self: stretch;
  box-sizing: border-box;
}

body.service-playstation .psn-topup-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body.service-playstation .psn-topup-submit {
  justify-self: stretch;
}

@media (max-width: 768px) {
  .mode-modal.dt-shared-modal .mode-modal__card {
    width: min(100%, calc(100vw - 32px));
    padding: 22px;
  }

  .mode-modal.dt-shared-modal .mode-modal__grid,
  body.service-playstation .psn-mode-choice__options,
  body.service-playstation .psn-topup-form {
    grid-template-columns: 1fr;
  }

  body.service-playstation .psn-topup-panel {
    width: 100%;
  }
}

/* Site-wide modal visual fix 2: PSN top-up axis and compact modal adapters. */
body.service-playstation.psn-topup-mode .game-header {
  width: min(700px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4, 16px);
  text-align: left;
}

body.service-playstation.psn-topup-mode .game-header-content {
  flex: 0 1 auto;
  min-width: 0;
}

body.service-playstation.psn-topup-mode .game-header-content .page-title {
  margin: 0;
  text-align: left;
  white-space: nowrap;
}

body.service-playstation.psn-topup-mode .game-logo {
  display: block !important;
  visibility: visible !important;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}

.mode-modal.dt-shared-modal .mode-modal__card {
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  flex: 0 1 auto !important;
}

.mode-modal.dt-shared-modal .mode-modal__grid {
  align-items: start;
}

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

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

body.service-playstation .psn-topup-provider__option span,
body.service-playstation .psn-topup-provider__option small {
  grid-column: 2;
  min-width: 0;
  margin-left: 0;
}

@media (max-width: 768px) {
  body.service-playstation.psn-topup-mode .game-header {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  body.service-playstation.psn-topup-mode .game-logo {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  body.service-playstation.psn-topup-mode .game-header-content .page-title {
    white-space: normal;
  }
}

/* Site-wide modal visual fix 3: mobile confirm viewport and provider states. */
body.service-playstation .psn-topup-confirm.dt-shared-modal {
  overscroll-behavior: contain;
}

body.service-playstation .psn-topup-provider__option:not(.is-active):not([aria-checked="true"]):hover {
  color: var(--dt-modal-text, var(--dt-shared-ui-text));
  background: color-mix(in srgb, var(--dt-modal-bg-2, var(--dt-shared-ui-bg-2)) 92%, var(--dt-modal-brand, var(--dt-shared-ui-brand)) 8%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dt-modal-brand, var(--dt-shared-ui-brand)) 42%, transparent) !important;
}

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

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

@media (max-width: 768px), (max-height: 720px) {
  body.service-playstation .psn-topup-confirm.dt-shared-modal {
    align-items: flex-start;
    justify-content: center;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  body.service-playstation .psn-topup-confirm__window.dt-shared-modal__window {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-top: 0;
    margin-block: 0;
  }

  body.service-playstation .psn-topup-confirm__close.dt-shared-modal__close {
    position: sticky;
    top: 0;
    z-index: 5;
    float: right;
    display: grid;
    place-items: center;
    margin: -4px -4px 4px auto;
  }
}



/* ==========================================================================
   Live modal parity follow-up: keep PSN and SWGOH mode popups on one shared shell.
   Baseline: sitewide modal unification applied on preview.
   ========================================================================== */
.mode-modal.dt-shared-modal,
body.service-playstation .psn-mode-choice.dt-shared-modal {
  align-items: center;
  justify-content: center;
  padding: var(--space-5, 20px);
  background: transparent;
}

.mode-modal.dt-shared-modal .mode-modal__card.dt-shared-modal__window,
body.service-playstation .psn-mode-choice__window.dt-shared-modal__window {
  width: min(640px, 100%);
  max-height: calc(100dvh - 40px);
  height: auto !important;
  min-height: 0 !important;
  flex: 0 1 auto !important;
  overflow-y: auto;
  padding: var(--space-6, 24px) !important;
  border: var(--dt-modal-border) !important;
  border-radius: var(--dt-modal-radius) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--dt-modal-bg) 94%, var(--dt-modal-brand) 6%), var(--dt-modal-bg)) !important;
  color: var(--dt-modal-text) !important;
  box-shadow: var(--dt-modal-shadow) !important;
}

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

.mode-modal.dt-shared-modal .mode-modal__hint,
body.service-playstation .psn-mode-choice__hint {
  margin: 0 0 var(--space-5, 20px) !important;
  color: var(--dt-modal-muted) !important;
  font-family: var(--font-body, inherit) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.mode-modal.dt-shared-modal .mode-modal__footer-hint {
  margin: var(--space-3, 12px) 0 0 !important;
  color: var(--dt-modal-muted) !important;
  font-family: var(--font-body, inherit) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.mode-modal.dt-shared-modal .mode-modal__grid,
body.service-playstation .psn-mode-choice__options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: var(--space-3, 12px) !important;
  margin: 0 !important;
}

.mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card,
body.service-playstation .psn-mode-choice__option.dt-shared-choice-card {
  position: relative !important;
  display: grid !important;
  align-content: start !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: var(--dt-modal-choice-min-height, 92px) !important;
  padding: var(--dt-modal-choice-padding, 16px) var(--dt-modal-choice-padding, 16px) var(--dt-modal-choice-padding, 16px) 52px !important;
  border: var(--dt-modal-border) !important;
  border-radius: var(--dt-modal-choice-radius, 16px) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--dt-modal-bg-2) 94%, var(--dt-modal-brand) 6%), var(--dt-modal-bg-2)) !important;
  color: var(--dt-modal-text) !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: var(--dt-modal-card-shadow) !important;
  transform: none !important;
  transition: var(--dt-modal-transition) !important;
}

.mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card::before,
body.service-playstation .psn-mode-choice__option.dt-shared-choice-card::before {
  content: "";
  position: absolute !important;
  left: 16px !important;
  top: 18px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--dt-modal-bg) 80%, var(--dt-modal-brand) 20%) !important;
  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) !important;
}

.mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card:hover,
.mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card:focus,
.mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card:focus-visible,
body.service-playstation .psn-mode-choice__option.dt-shared-choice-card:hover,
body.service-playstation .psn-mode-choice__option.dt-shared-choice-card:focus,
body.service-playstation .psn-mode-choice__option.dt-shared-choice-card: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)) !important;
  box-shadow: inset 0 0 0 1.5px var(--dt-modal-brand), 0 0 18px var(--dt-modal-brand-soft) !important;
  outline: none !important;
  transform: none !important;
}

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

.mode-modal.dt-shared-modal .mode-modal__option-title,
body.service-playstation .psn-mode-choice__option.dt-shared-choice-card span {
  display: block !important;
  margin: 0 !important;
  color: var(--dt-modal-text) !important;
  font-family: var(--font-accent, inherit) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.mode-modal.dt-shared-modal .mode-modal__option-note,
body.service-playstation .psn-mode-choice__option.dt-shared-choice-card small {
  display: block !important;
  margin: 4px 0 0 !important;
  color: var(--dt-modal-muted) !important;
  font-family: var(--font-body, inherit) !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

.mode-modal.dt-shared-modal.is-single .mode-modal__card.dt-shared-modal__window,
.mode-modal.dt-shared-modal.is-single .mode-modal__grid,
.mode-modal.dt-shared-modal.is-single .mode-modal__option.dt-shared-choice-card,
.mode-modal.dt-shared-modal.is-single .mode-modal__option-title,
.mode-modal.dt-shared-modal.is-single .mode-modal__option-note {
  text-align: left !important;
  align-items: initial !important;
  justify-items: initial !important;
  justify-content: initial !important;
}

@media (max-width: 768px) {
  .mode-modal.dt-shared-modal .mode-modal__card.dt-shared-modal__window,
  body.service-playstation .psn-mode-choice__window.dt-shared-modal__window {
    width: min(100%, calc(100vw - 32px));
    padding: 22px !important;
  }

  .mode-modal.dt-shared-modal .mode-modal__grid,
  body.service-playstation .psn-mode-choice__options {
    grid-template-columns: 1fr !important;
  }
}

/* All modal variants follow-up: consume shared shell for one-button runtime popups. */
.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__card,
.mode-modal.dt-shared-modal.dt-modal-variant--choice-modal .mode-modal__card {
  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);
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__card {
  width: min(640px, calc(100vw - 32px));
  padding: var(--space-6, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3, 12px);
  text-align: center;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__hint,
.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__footer-hint {
  max-width: 460px;
  margin: 0;
  color: var(--dt-modal-muted) !important;
  font-size: 15px;
  line-height: 1.5;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__grid {
  order: 4;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  margin: var(--space-3, 12px) 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;
  font-family: var(--font-accent, inherit);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  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%);
}

/* PSN layout fix: stable subscription card footer controls and shared top-up axis. */
body.service-playstation.psn-subscriptions-mode .product-card[data-service="playstation"] {
  min-height: 0;
}

body.service-playstation.psn-subscriptions-mode .product-card[data-service="playstation"] .price-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: var(--space-3, 12px) !important;
  min-height: 44px !important;
  height: 44px !important;
  margin-top: auto;
}

body.service-playstation.psn-subscriptions-mode .product-card[data-service="playstation"] .price-chip {
  height: 44px !important;
  min-height: 44px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

body.service-playstation.psn-subscriptions-mode .product-card[data-service="playstation"] .add-btn {
  grid-column: 2 !important;
  justify-self: end !important;
  align-self: center !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
}

body.service-playstation.psn-subscriptions-mode .product-card[data-service="playstation"] .counter {
  grid-column: 2 !important;
  justify-self: stretch !important;
  align-self: center !important;
  width: 112px !important;
  height: 44px !important;
  min-height: 44px !important;
  display: grid !important;
  grid-template-columns: 32px minmax(2ch, 1fr) 32px !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 4px !important;
  padding: 0 6px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

body.service-playstation.psn-subscriptions-mode .product-card[data-service="playstation"] .counter .dec,
body.service-playstation.psn-subscriptions-mode .product-card[data-service="playstation"] .counter .inc {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  justify-self: center !important;
}

body.service-playstation.psn-subscriptions-mode .product-card[data-service="playstation"] .counter .count {
  min-width: 2ch !important;
  text-align: center !important;
  line-height: 1 !important;
}

body.service-playstation .psn-topup-axis {
  width: min(700px, calc(100% - 32px));
  margin: 0 auto var(--space-7, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  gap: var(--space-5, 20px);
}

body.service-playstation .psn-topup-axis[hidden] {
  display: none !important;
}

body.service-playstation.psn-topup-mode .psn-topup-axis .game-header {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4, 16px);
  text-align: left;
}

body.service-playstation.psn-topup-mode .psn-topup-axis .game-header-content {
  flex: 0 1 auto;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  justify-content: center;
}

body.service-playstation.psn-topup-mode .psn-topup-axis .game-header-content .page-title {
  margin: 0;
  text-align: left;
  white-space: nowrap;
}

body.service-playstation.psn-topup-mode .psn-topup-axis .game-logo {
  display: block !important;
  visibility: visible !important;
  flex: 0 0 72px;
  width: 72px !important;
  height: 72px !important;
}

body.service-playstation.psn-topup-mode .psn-topup-axis .psn-topup-panel {
  width: 100%;
  max-width: 700px;
  margin: 0;
  justify-self: stretch;
}

body.service-playstation.psn-topup-mode .psn-topup-axis .psn-topup-region-switch,
body.service-playstation.psn-topup-mode .psn-topup-axis .psn-topup-form,
body.service-playstation.psn-topup-mode .psn-topup-axis .psn-topup-note,
body.service-playstation.psn-topup-mode .psn-topup-axis .psn-topup-submit {
  width: 100%;
  max-width: 700px;
  justify-self: stretch;
  box-sizing: border-box;
}

body.service-playstation.psn-topup-mode .psn-topup-axis .psn-topup-submit {
  justify-self: stretch;
}

@media (max-width: 768px) {
  body.service-playstation .psn-topup-axis {
    width: calc(100% - 32px);
    gap: var(--space-4, 16px);
  }

  body.service-playstation.psn-topup-mode .psn-topup-axis .game-header {
    justify-content: flex-start;
    text-align: left;
  }

  body.service-playstation.psn-topup-mode .psn-topup-axis .game-logo {
    flex-basis: 64px;
    width: 64px !important;
    height: 64px !important;
  }

  body.service-playstation.psn-topup-mode .psn-topup-axis .game-header-content .page-title {
    white-space: normal;
  }
}
body.service-playstation.psn-topup-mode .psn-topup-axis .psn-topup-hint,
body.service-playstation.psn-topup-mode .psn-topup-axis .psn-topup-error {
  grid-column: 1 / 3;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  body.service-playstation.psn-topup-mode .psn-topup-axis .psn-topup-hint,
  body.service-playstation.psn-topup-mode .psn-topup-axis .psn-topup-error {
    grid-column: 1;
  }
}

/* Runtime modal fix proposal: mode modal root owns the single viewport overlay. */
.mode-modal.dt-shared-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  min-width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  margin-block: 0 !important;
  margin-inline: calc((100vw - 100%) / -2) !important;
  box-sizing: border-box !important;
  z-index: 1200 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: var(--space-5, 20px) !important;
  background: rgba(0, 0, 0, .68) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.mode-modal.dt-shared-modal::before {
  content: none !important;
}

.mode-modal.dt-shared-modal.is-open:not([hidden]) {
  display: flex !important;
}

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

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__card.dt-shared-modal__window {
  width: min(640px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 40px) !important;
  height: auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__grid {
  width: auto !important;
  min-width: 0 !important;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__option.dt-shared-modal__button {
  width: auto !important;
  min-width: 168px !important;
  max-width: min(260px, 100%) !important;
}

/* Runtime modal review fix: make the mode panel visibly match the PSN shared surface. */
.mode-modal.dt-shared-modal .mode-modal__card.dt-shared-modal__window {
  position: relative !important;
  width: min(640px, calc(100vw - 40px)) !important;
  max-height: calc(100dvh - 40px) !important;
  height: auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: var(--space-6, 24px) !important;
  border: var(--dt-modal-border, 1px solid rgba(255, 255, 255, .08)) !important;
  border-radius: var(--dt-modal-radius, 16px) !important;
  background-color: var(--dt-modal-bg, var(--game-panel, var(--panel, #151515))) !important;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--dt-modal-bg, #151515) 94%, var(--dt-modal-brand, #a75eff) 6%), var(--dt-modal-bg, #151515)) !important;
  color: var(--dt-modal-text, #ffffff) !important;
  box-shadow: var(--dt-modal-shadow, 0 20px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04)) !important;
  box-sizing: border-box !important;
}

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

.mode-modal.dt-shared-modal .mode-modal__hint,
.mode-modal.dt-shared-modal .mode-modal__footer-hint {
  color: var(--dt-modal-muted, #d8d1e8) !important;
  font-family: var(--font-body, inherit) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.mode-modal.dt-shared-modal .mode-modal__hint:empty,
.mode-modal.dt-shared-modal .mode-modal__footer-hint:empty {
  display: none !important;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__card.dt-shared-modal__window {
  width: fit-content !important;
  min-width: min(360px, calc(100vw - 32px)) !important;
  max-width: min(560px, calc(100vw - 32px)) !important;
  padding: var(--space-6, 24px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: var(--space-3, 12px) !important;
  text-align: center !important;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal #mode-modal-title,
.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__title {
  margin: 0 !important;
  max-width: 460px !important;
  text-align: center !important;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__hint,
.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__footer-hint {
  max-width: 460px !important;
  margin: 0 !important;
  text-align: center !important;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__grid {
  order: 4 !important;
  width: auto !important;
  min-width: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: var(--space-1, 4px) 0 0 !important;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__option.dt-shared-modal__button {
  width: auto !important;
  min-width: 168px !important;
  max-width: min(260px, 100%) !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 20px !important;
  border: var(--dt-modal-border, 1px solid rgba(255, 255, 255, .08)) !important;
  border-radius: 12px !important;
  background-color: color-mix(in srgb, var(--dt-modal-bg-2, #111111) 80%, var(--dt-modal-brand, #a75eff) 20%) !important;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--dt-modal-bg-2, #111111) 72%, var(--dt-modal-brand, #a75eff) 28%), color-mix(in srgb, var(--dt-modal-bg-2, #111111) 84%, var(--dt-modal-brand, #a75eff) 16%)) !important;
  color: #ffffff !important;
  font-family: var(--font-accent, inherit) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .28) !important;
}

.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: color-mix(in srgb, var(--dt-modal-bg-2, #111111) 72%, var(--dt-modal-brand, #a75eff) 28%) !important;
  background-image: none !important;
  box-shadow: inset 0 0 0 1.5px var(--dt-modal-brand, #a75eff), 0 0 22px var(--dt-modal-brand-soft, rgba(167, 94, 255, .35)) !important;
  outline: none !important;
}

.mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__option-title {
  display: block !important;
  margin: 0 !important;
  color: #ffffff !important;
  font: inherit !important;
  text-align: center !important;
}

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

@media (max-width: 768px) {
  .mode-modal.dt-shared-modal .mode-modal__card.dt-shared-modal__window {
    width: min(100%, calc(100vw - 32px)) !important;
    padding: 22px !important;
  }

  .mode-modal.dt-shared-modal.dt-modal-variant--notice-modal .mode-modal__card.dt-shared-modal__window {
    width: fit-content !important;
    min-width: min(320px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
  }
}

/* Final review: semantic choice cards without touching notice dismiss actions. */
.mode-modal.dt-shared-modal.dt-modal-action-choice .mode-modal__card.dt-shared-modal__window,
.mode-modal.dt-shared-modal.dt-modal-action-single-choice .mode-modal__card.dt-shared-modal__window {
  width: min(640px, calc(100vw - 40px)) !important;
  align-items: stretch !important;
  text-align: left !important;
}

.mode-modal.dt-shared-modal.dt-modal-action-choice .mode-modal__grid,
.mode-modal.dt-shared-modal.dt-modal-action-single-choice .mode-modal__grid {
  width: 100% !important;
  display: grid !important;
  align-items: stretch !important;
  gap: 14px !important;
  margin: var(--space-5, 20px) 0 var(--space-3, 12px) !important;
}

.mode-modal.dt-shared-modal.dt-modal-action-choice .mode-modal__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.mode-modal.dt-shared-modal.dt-modal-action-single-choice .mode-modal__grid {
  grid-template-columns: minmax(0, min(420px, 100%)) !important;
  justify-content: center !important;
}

.mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 104px !important;
  display: grid !important;
  align-content: start !important;
  gap: 7px !important;
  padding: 18px 18px 18px 52px !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: var(--dt-modal-choice-radius, 16px) !important;
  background-color: var(--dt-modal-bg-2, #111111) !important;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--dt-modal-bg-2, #111111) 94%, var(--dt-modal-brand, #a75eff) 6%), var(--dt-modal-bg-2, #111111)) !important;
  color: var(--dt-modal-text, #ffffff) !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 12px 30px rgba(0, 0, 0, .24) !important;
  transform: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease !important;
}

.mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card::before {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  top: 21px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--dt-modal-bg, #151515) 80%, var(--dt-modal-brand, #a75eff) 20%) !important;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--dt-modal-brand, #a75eff) 62%, transparent) !important;
}

.mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card:hover {
  border-color: color-mix(in srgb, var(--dt-modal-brand, #a75eff) 58%, rgba(255, 255, 255, .12)) !important;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--dt-modal-bg-2, #111111) 88%, var(--dt-modal-brand, #a75eff) 12%), var(--dt-modal-bg-2, #111111)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 34px rgba(0, 0, 0, .30) !important;
}

.mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card:focus-visible {
  border-color: var(--dt-modal-brand, #a75eff) !important;
  background-color: var(--dt-modal-bg-2, #111111) !important;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--dt-modal-bg-2, #111111) 88%, var(--dt-modal-brand, #a75eff) 12%), var(--dt-modal-bg-2, #111111)) !important;
  box-shadow: inset 0 0 0 1.5px var(--dt-modal-brand, #a75eff), 0 0 0 2px color-mix(in srgb, var(--dt-modal-brand, #a75eff) 18%, transparent), 0 14px 34px rgba(0, 0, 0, .30) !important;
  outline: none !important;
}

.mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card .mode-modal__option-title {
  display: block !important;
  margin: 0 !important;
  color: var(--dt-modal-text, #ffffff) !important;
  font-family: var(--font-accent, inherit) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card .mode-modal__option-note {
  display: block !important;
  margin: 0 !important;
  color: var(--dt-modal-muted, #d8d1e8) !important;
  font-family: var(--font-body, inherit) !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

.mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card .mode-modal__option-note[hidden] {
  display: none !important;
}

.mode-modal.dt-shared-modal.dt-modal-action-single-choice .mode-modal__option.dt-shared-single-choice-card {
  min-height: 72px !important;
  align-content: center !important;
}

@media (max-width: 768px) {
  .mode-modal.dt-shared-modal.dt-modal-action-choice .mode-modal__grid,
  .mode-modal.dt-shared-modal.dt-modal-action-single-choice .mode-modal__grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card {
    min-height: 96px !important;
    padding: 16px 16px 16px 50px !important;
  }
}

/* Final modal component polish: shared four-slot shell and action-card geometry. */
:root{
  --dt-modal-shell-width:720px;
  --dt-modal-shell-min-height-desktop:0px;
  --dt-modal-shell-padding-desktop:20px;
  --dt-modal-shell-padding-mobile:22px;
  --dt-modal-shell-radius:var(--game-radius,16px);
  --dt-modal-shell-border:var(--game-border,1px solid rgba(255,255,255,.06));
  --dt-modal-shell-background:var(--game-panel,#151515);
  --dt-modal-shell-shadow:var(--game-shadow,0 8px 24px rgba(0,0,0,.35));
  --dt-modal-section-gap:22px;
  --dt-modal-title-max-width:none;
  --dt-modal-action-gap:12px;
  --dt-modal-single-card-width:260px;
  --dt-modal-action-card-width:var(--dt-modal-single-card-width);
  --dt-modal-action-card-min-height:98px;
  --dt-modal-action-card-padding:16px;
  --dt-modal-action-min-height:var(--dt-modal-action-card-min-height);
  --dt-modal-action-radius:16px;
  --dt-modal-action-padding:var(--dt-modal-action-card-padding);
  --dt-modal-footer-gap:22px;
  --dt-modal-overlay-background:rgba(0,0,0,.68);
  --dt-modal-overlay-blur:8px;
}

.mode-modal.dt-modal-root{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  min-height:100dvh !important;
  display:grid !important;
  place-items:center !important;
  padding:24px !important;
  box-sizing:border-box !important;
  z-index:9999 !important;
  overflow:auto !important;
  background:var(--dt-modal-overlay-background) !important;
  backdrop-filter:blur(var(--dt-modal-overlay-blur)) !important;
  -webkit-backdrop-filter:blur(var(--dt-modal-overlay-blur)) !important;
}
.mode-modal.dt-modal-root[hidden]{ display:none !important; }

.mode-modal.dt-modal-root .dt-modal-window{
  width:min(var(--dt-modal-shell-width),100%) !important;
  max-width:var(--dt-modal-shell-width) !important;
  min-height:var(--dt-modal-shell-min-height-desktop) !important;
  height:auto !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:0 !important;
  padding:var(--dt-modal-shell-padding-desktop) !important;
  text-align:left !important;
  border:var(--dt-modal-shell-border) !important;
  border-radius:var(--dt-modal-shell-radius) !important;
  background:var(--dt-modal-shell-background) !important;
  box-shadow:var(--dt-modal-shell-shadow) !important;
  color:var(--game-text,#fff) !important;
}

.mode-modal.dt-modal-root .dt-modal-title{
  order:1 !important;
  display:block !important;
  margin:0 0 6px 0 !important;
  max-width:var(--dt-modal-title-max-width) !important;
  width:100% !important;
  text-align:left !important;
  color:var(--game-text,#fff) !important;
  font-family:var(--font-accent,inherit) !important;
  font-size:20px !important;
  font-weight:600 !important;
  line-height:1.25 !important;
}
.mode-modal.dt-modal-root .dt-modal-description{
  order:2 !important;
  display:block !important;
  margin:0 0 var(--dt-modal-section-gap) 0 !important;
  max-width:none !important;
  text-align:left !important;
  color:var(--game-muted,#bdbdbd) !important;
  font-family:var(--font-body,inherit) !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.45 !important;
}
.mode-modal.dt-modal-root .dt-modal-actions{
  order:3 !important;
  width:100% !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  justify-items:stretch !important;
  align-items:stretch !important;
  gap:var(--dt-modal-action-gap) !important;
  margin:0 !important;
}
.mode-modal.dt-modal-root .dt-modal-footer-note{
  order:4 !important;
  display:block !important;
  margin:var(--dt-modal-footer-gap) 0 0 0 !important;
  max-width:none !important;
  text-align:left !important;
  color:var(--game-muted,#bdbdbd) !important;
  font-family:var(--font-body,inherit) !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.45 !important;
}
.mode-modal.dt-modal-root .dt-modal-title[hidden],
.mode-modal.dt-modal-root .dt-modal-description[hidden],
.mode-modal.dt-modal-root .dt-modal-footer-note[hidden],
.mode-modal.dt-modal-root .dt-modal-slot--empty{
  display:none !important;
  margin:0 !important;
}

.mode-modal.dt-modal-root .dt-modal-actions--single{
  grid-template-columns:minmax(0,var(--dt-modal-single-card-width)) !important;
  justify-content:center !important;
}
.mode-modal.dt-modal-root .dt-modal-actions--multi{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  justify-content:stretch !important;
}

.mode-modal.dt-modal-root .mode-modal__option[hidden],
.mode-modal.dt-modal-root .dt-modal-action-card[hidden]{
  display:none !important;
}
.mode-modal.dt-modal-root .dt-modal-action-card{
  position:relative !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:var(--dt-modal-action-card-min-height) !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:6px !important;
  padding:var(--dt-modal-action-card-padding) var(--dt-modal-action-card-padding) var(--dt-modal-action-card-padding) 52px !important;
  text-align:left !important;
  line-height:normal !important;
  border-radius:var(--dt-modal-action-radius) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--game-panel-2,#111) 94%,var(--game-brand,#a75eff) 6%),var(--game-panel-2,#111)) !important;
  color:var(--game-text,#fff) !important;
  cursor:pointer !important;
  transform:none !important;
  outline:none !important;
  box-shadow:none !important;
  -webkit-tap-highlight-color:transparent !important;
  transition:border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}
.mode-modal.dt-modal-root .dt-modal-action-card::before{
  content:'' !important;
  position:absolute !important;
  left:18px !important;
  top:19px !important;
  width:16px !important;
  height:16px !important;
  border-radius:999px !important;
  border:2px solid color-mix(in srgb,var(--game-brand,#a75eff) 68%,#fff 12%) !important;
  background:color-mix(in srgb,var(--game-brand,#a75eff) 18%,transparent) !important;
  box-shadow:inset 0 0 0 4px var(--game-panel-2,#111) !important;
}
.mode-modal.dt-modal-root .dt-modal-action-card:hover{
  transform:none !important;
  border-color:color-mix(in srgb,var(--game-brand,#a75eff) 48%,rgba(255,255,255,.16)) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.28), inset 0 0 0 1px color-mix(in srgb,var(--game-brand,#a75eff) 24%,transparent) !important;
}
.mode-modal.dt-modal-root .dt-modal-action-card:active{
  transform:none !important;
  background:color-mix(in srgb,var(--game-panel-2,#111) 88%,#000 12%) !important;
  box-shadow:inset 0 2px 10px rgba(0,0,0,.26) !important;
}
.mode-modal.dt-modal-root .dt-modal-action-card:focus-visible{
  transform:none !important;
  outline:2px solid color-mix(in srgb,var(--game-brand,#a75eff) 75%,#fff 10%) !important;
  outline-offset:3px !important;
  border-color:color-mix(in srgb,var(--game-brand,#a75eff) 62%,rgba(255,255,255,.18)) !important;
  box-shadow:none !important;
}
.mode-modal.dt-modal-root .dt-modal-action-card .mode-modal__option-title{
  margin:0 !important;
  text-align:left !important;
  color:var(--game-text,#fff) !important;
  font-family:var(--font-accent,inherit) !important;
  font-size:16px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
}
.mode-modal.dt-modal-root .dt-modal-action-card .mode-modal__option-note{
  display:block !important;
  margin:0 !important;
  text-align:left !important;
  color:var(--game-muted,#bdbdbd) !important;
  font-family:var(--font-body,inherit) !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.35 !important;
}
.mode-modal.dt-modal-root .dt-modal-action-card .mode-modal__option-note[hidden]{
  display:none !important;
}

@media (max-width: 767px){
  .mode-modal.dt-modal-root{
    padding:18px 20px !important;
  }
  .mode-modal.dt-modal-root .dt-modal-window{
    width:min(350px,100%) !important;
    max-width:350px !important;
    min-height:0 !important;
    height:auto !important;
    padding:var(--dt-modal-shell-padding-mobile) !important;
  }
  .mode-modal.dt-modal-root .dt-modal-actions,
  .mode-modal.dt-modal-root .dt-modal-actions--single,
  .mode-modal.dt-modal-root .dt-modal-actions--multi{
    grid-template-columns:minmax(0,1fr) !important;
    justify-content:stretch !important;
  }
  .mode-modal.dt-modal-root .dt-modal-action-card{
    min-height:92px !important;
  }
}

/* Final modal component polish hardening: outrank legacy dt-shared-modal variants without game-specific geometry. */
.mode-modal.dt-modal-root.dt-shared-modal .mode-modal__card.dt-modal-window.dt-shared-modal__window{
  width:min(var(--dt-modal-shell-width),100%) !important;
  max-width:var(--dt-modal-shell-width) !important;
  min-height:var(--dt-modal-shell-min-height-desktop) !important;
  height:auto !important;
  padding:var(--dt-modal-shell-padding-desktop) !important;
  border:var(--dt-modal-shell-border) !important;
  border-radius:var(--dt-modal-shell-radius) !important;
  background:var(--dt-modal-shell-background) !important;
  box-shadow:var(--dt-modal-shell-shadow) !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  text-align:left !important;
}
.mode-modal.dt-modal-root.dt-shared-modal .mode-modal__grid.dt-modal-actions.dt-modal-actions--single{
  grid-template-columns:minmax(0,var(--dt-modal-single-card-width)) !important;
  justify-content:center !important;
}
.mode-modal.dt-modal-root.dt-shared-modal .mode-modal__grid.dt-modal-actions.dt-modal-actions--multi{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  justify-content:stretch !important;
}
.mode-modal.dt-modal-root.dt-shared-modal .mode-modal__option.dt-modal-action-card.dt-shared-choice-card{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:var(--dt-modal-action-card-min-height) !important;
  padding:var(--dt-modal-action-card-padding) var(--dt-modal-action-card-padding) var(--dt-modal-action-card-padding) 52px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:6px !important;
  text-align:left !important;
  border-radius:var(--dt-modal-action-radius) !important;
}
@media (max-width: 767px){
  .mode-modal.dt-modal-root.dt-shared-modal .mode-modal__card.dt-modal-window.dt-shared-modal__window{
    width:min(350px,100%) !important;
    max-width:350px !important;
    min-height:0 !important;
    height:auto !important;
    padding:var(--dt-modal-shell-padding-mobile) !important;
  }
  .mode-modal.dt-modal-root.dt-shared-modal .mode-modal__grid.dt-modal-actions,
  .mode-modal.dt-modal-root.dt-shared-modal .mode-modal__grid.dt-modal-actions.dt-modal-actions--single,
  .mode-modal.dt-modal-root.dt-shared-modal .mode-modal__grid.dt-modal-actions.dt-modal-actions--multi{
    grid-template-columns:minmax(0,1fr) !important;
    justify-content:stretch !important;
  }
  .mode-modal.dt-modal-root.dt-shared-modal .mode-modal__option.dt-modal-action-card.dt-shared-choice-card{
    min-height:92px !important;
  }
}

/* Compact single-card/footer final follow-up: shared geometry by semantic layout only. */
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-action-choice .mode-modal__card.dt-modal-window.dt-shared-modal__window,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-action-single-choice .mode-modal__card.dt-modal-window.dt-shared-modal__window{
  width:min(var(--dt-modal-shell-width),100%) !important;
  min-width:0 !important;
  max-width:var(--dt-modal-shell-width) !important;
}

.mode-modal.dt-modal-root.dt-shared-modal .dt-modal-title,
.mode-modal.dt-modal-root.dt-shared-modal #mode-modal-title,
.mode-modal.dt-modal-root.dt-shared-modal .mode-modal__title{
  width:100% !important;
  max-width:var(--dt-modal-title-max-width) !important;
}

.mode-modal.dt-modal-root.dt-shared-modal .dt-modal-footer-note,
.mode-modal.dt-modal-root.dt-shared-modal .mode-modal__footer-hint{
  order:4 !important;
  margin:var(--dt-modal-footer-gap) 0 0 0 !important;
}

.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-action-single-choice .mode-modal__grid.dt-modal-actions.dt-modal-actions--single{
  grid-template-columns:minmax(0,var(--dt-modal-single-card-width)) !important;
  justify-content:center !important;
  align-items:start !important;
}

.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-action-choice .mode-modal__grid.dt-modal-actions.dt-modal-actions--multi{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  justify-content:stretch !important;
  align-items:stretch !important;
}

.mode-modal.dt-modal-root.dt-shared-modal .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-action-single-choice .mode-modal__option.dt-shared-single-choice-card{
  min-height:var(--dt-modal-action-card-min-height) !important;
  padding:var(--dt-modal-action-card-padding) var(--dt-modal-action-card-padding) var(--dt-modal-action-card-padding) 52px !important;
  align-content:initial !important;
  justify-content:flex-start !important;
}

@media (max-width: 767px){
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-action-choice .mode-modal__card.dt-modal-window.dt-shared-modal__window,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-action-single-choice .mode-modal__card.dt-modal-window.dt-shared-modal__window{
    width:min(350px,100%) !important;
    inline-size:min(350px,100%) !important;
    min-width:0 !important;
    max-width:350px !important;
    max-inline-size:350px !important;
    min-height:0 !important;
    height:auto !important;
  }

  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-action-choice .mode-modal__grid.dt-modal-actions.dt-modal-actions--multi,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-action-single-choice .mode-modal__grid.dt-modal-actions.dt-modal-actions--single{
    grid-template-columns:minmax(0,1fr) !important;
    justify-content:stretch !important;
  }

  .mode-modal.dt-modal-root.dt-shared-modal .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-action-single-choice .mode-modal__option.dt-shared-single-choice-card{
    min-height:92px !important;
  }
}

/* True game/service modal unification: semantic shared component for all standard action modals. */
.dt-modal-root.dt-shared-modal{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  min-height:100dvh !important;
  display:grid !important;
  place-items:center !important;
  padding:24px !important;
  box-sizing:border-box !important;
  z-index:9999 !important;
  overflow:auto !important;
  background:var(--dt-modal-overlay-background,rgba(0,0,0,.68)) !important;
  backdrop-filter:blur(var(--dt-modal-overlay-blur,8px)) !important;
  -webkit-backdrop-filter:blur(var(--dt-modal-overlay-blur,8px)) !important;
}
.dt-modal-root.dt-shared-modal[hidden],
.dt-modal-root.dt-shared-modal[aria-hidden="true"]:not(.is-open){
  display:none !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-window{
  width:min(var(--dt-modal-shell-width),100%) !important;
  min-width:0 !important;
  max-width:var(--dt-modal-shell-width) !important;
  min-height:var(--dt-modal-shell-min-height-desktop) !important;
  height:auto !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:0 !important;
  padding:var(--dt-modal-shell-padding-desktop) !important;
  text-align:left !important;
  border:var(--dt-modal-shell-border) !important;
  border-radius:var(--dt-modal-shell-radius) !important;
  background:var(--dt-modal-shell-background) !important;
  box-shadow:var(--dt-modal-shell-shadow) !important;
  color:var(--game-text,#fff) !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-title{
  order:1 !important;
  display:block !important;
  width:100% !important;
  max-width:var(--dt-modal-title-max-width) !important;
  margin:0 0 6px 0 !important;
  text-align:left !important;
  color:var(--game-text,#fff) !important;
  font-family:var(--font-accent,inherit) !important;
  font-size:20px !important;
  font-weight:600 !important;
  line-height:1.25 !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-description{
  order:2 !important;
  display:block !important;
  width:100% !important;
  max-width:none !important;
  margin:0 0 var(--dt-modal-section-gap) 0 !important;
  text-align:left !important;
  color:var(--game-muted,#bdbdbd) !important;
  font-family:var(--font-body,inherit) !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.45 !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-actions{
  order:3 !important;
  width:100% !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  justify-items:stretch !important;
  align-items:stretch !important;
  gap:var(--dt-modal-action-gap) !important;
  margin:0 !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-actions.dt-modal-actions--single{
  grid-template-columns:minmax(0,var(--dt-modal-action-card-width)) !important;
  justify-content:center !important;
  align-items:start !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-actions.dt-modal-actions--multi{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  justify-content:stretch !important;
  align-items:stretch !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-footer-note{
  order:4 !important;
  display:block !important;
  width:100% !important;
  max-width:none !important;
  margin:var(--dt-modal-footer-gap) 0 0 0 !important;
  text-align:left !important;
  color:var(--game-muted,#bdbdbd) !important;
  font-family:var(--font-body,inherit) !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.45 !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-title[hidden],
.dt-modal-root.dt-shared-modal .dt-modal-description[hidden],
.dt-modal-root.dt-shared-modal .dt-modal-footer-note[hidden],
.dt-modal-root.dt-shared-modal .dt-modal-slot--empty{
  display:none !important;
  margin:0 !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-action-card{
  position:relative !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:var(--dt-modal-action-card-min-height) !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:6px !important;
  padding:var(--dt-modal-action-card-padding) var(--dt-modal-action-card-padding) var(--dt-modal-action-card-padding) 52px !important;
  text-align:left !important;
  text-decoration:none !important;
  line-height:normal !important;
  border-radius:var(--dt-modal-action-radius) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--game-panel-2,#111) 94%,var(--game-brand,#a75eff) 6%),var(--game-panel-2,#111)) !important;
  color:var(--game-text,#fff) !important;
  cursor:pointer !important;
  transform:none !important;
  outline:none !important;
  box-shadow:none !important;
  -webkit-tap-highlight-color:transparent !important;
  transition:border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-action-card::before{
  content:'' !important;
  position:absolute !important;
  left:18px !important;
  top:19px !important;
  width:16px !important;
  height:16px !important;
  border-radius:999px !important;
  border:2px solid color-mix(in srgb,var(--game-brand,#a75eff) 68%,#fff 12%) !important;
  background:color-mix(in srgb,var(--game-brand,#a75eff) 18%,transparent) !important;
  box-shadow:inset 0 0 0 4px var(--game-panel-2,#111) !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-action-card:hover{
  transform:none !important;
  border-color:color-mix(in srgb,var(--game-brand,#a75eff) 48%,rgba(255,255,255,.16)) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.28), inset 0 0 0 1px color-mix(in srgb,var(--game-brand,#a75eff) 24%,transparent) !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-action-card:active{
  transform:none !important;
  background:color-mix(in srgb,var(--game-panel-2,#111) 88%,#000 12%) !important;
  box-shadow:inset 0 2px 10px rgba(0,0,0,.26) !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-action-card:focus-visible{
  transform:none !important;
  outline:2px solid color-mix(in srgb,var(--game-brand,#a75eff) 75%,#fff 10%) !important;
  outline-offset:3px !important;
  border-color:color-mix(in srgb,var(--game-brand,#a75eff) 62%,rgba(255,255,255,.18)) !important;
  box-shadow:none !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-action-card .mode-modal__option-title,
.dt-modal-root.dt-shared-modal .dt-modal-action-card > span:first-child{
  display:block !important;
  margin:0 !important;
  text-align:left !important;
  color:var(--game-text,#fff) !important;
  font-family:var(--font-accent,inherit) !important;
  font-size:16px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-action-card .mode-modal__option-note,
.dt-modal-root.dt-shared-modal .dt-modal-action-card > small{
  display:block !important;
  margin:0 !important;
  text-align:left !important;
  color:var(--game-muted,#bdbdbd) !important;
  font-family:var(--font-body,inherit) !important;
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.35 !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-action-card .mode-modal__option-note[hidden],
.dt-modal-root.dt-shared-modal .dt-modal-action-card > small[hidden]{
  display:none !important;
}
@media (max-width: 767px){
  .dt-modal-root.dt-shared-modal{
    padding:18px 20px !important;
  }
  .dt-modal-root.dt-shared-modal .dt-modal-window{
    width:min(350px,100%) !important;
    min-width:0 !important;
    max-width:350px !important;
    min-height:0 !important;
    height:auto !important;
    padding:var(--dt-modal-shell-padding-mobile) !important;
  }
  .dt-modal-root.dt-shared-modal .dt-modal-actions,
  .dt-modal-root.dt-shared-modal .dt-modal-actions.dt-modal-actions--single,
  .dt-modal-root.dt-shared-modal .dt-modal-actions.dt-modal-actions--multi{
    grid-template-columns:minmax(0,1fr) !important;
    justify-content:stretch !important;
  }
  .dt-modal-root.dt-shared-modal .dt-modal-action-card{
    min-height:92px !important;
  }
}


/* Component adapters: same shared variables, no service-id geometry. */
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__window.dt-modal-window.dt-shared-modal__window,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__window.dt-modal-window.dt-shared-modal__window{
  width:min(var(--dt-modal-shell-width),100%) !important;
  inline-size:min(var(--dt-modal-shell-width),100%) !important;
  flex:0 0 auto !important;
  min-width:0 !important;
  max-width:var(--dt-modal-shell-width) !important;
  max-inline-size:var(--dt-modal-shell-width) !important;
  min-height:var(--dt-modal-shell-min-height-desktop) !important;
  height:auto !important;
  box-sizing:border-box !important;
  padding:var(--dt-modal-shell-padding-desktop) !important;
  border:var(--dt-modal-shell-border) !important;
  border-radius:var(--dt-modal-shell-radius) !important;
  background:var(--dt-modal-shell-background) !important;
  box-shadow:var(--dt-modal-shell-shadow) !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  text-align:left !important;
}
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__title.dt-modal-title,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__title.dt-modal-title{
  width:100% !important;
  max-width:var(--dt-modal-title-max-width) !important;
}
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--multi,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--multi{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:var(--dt-modal-action-gap) !important;
}
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--single,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--single{
  grid-template-columns:minmax(0,var(--dt-modal-action-card-width)) !important;
  justify-content:center !important;
}
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:var(--dt-modal-action-card-min-height) !important;
  padding:var(--dt-modal-action-card-padding) var(--dt-modal-action-card-padding) var(--dt-modal-action-card-padding) 52px !important;
  border-radius:var(--dt-modal-action-radius) !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:6px !important;
  text-align:left !important;
}
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__footer.dt-modal-footer-note,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__footer.dt-modal-footer-note{
  order:4 !important;
  margin:var(--dt-modal-footer-gap) 0 0 0 !important;
  max-width:none !important;
}
@media (max-width: 767px){
  .psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__window.dt-modal-window.dt-shared-modal__window,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__window.dt-modal-window.dt-shared-modal__window{
    width:min(350px,100%) !important;
    min-width:0 !important;
    max-width:350px !important;
    min-height:0 !important;
    height:auto !important;
    padding:var(--dt-modal-shell-padding-mobile) !important;
  }
  .psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__options.dt-modal-actions,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__actions.dt-modal-actions{
    grid-template-columns:minmax(0,1fr) !important;
    justify-content:stretch !important;
  }
  .psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
    min-height:92px !important;
  }
}

/* Component root reset: let service modal components use the canonical viewport overlay. */
.psn-mode-choice.dt-modal-root.dt-shared-modal,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  inline-size:100vw !important;
  max-width:none !important;
  min-height:100dvh !important;
  display:grid !important;
  place-items:center !important;
  padding:24px !important;
  box-sizing:border-box !important;
  overflow:auto !important;
  background:var(--dt-modal-overlay-background,rgba(0,0,0,.68)) !important;
  backdrop-filter:blur(var(--dt-modal-overlay-blur,8px)) !important;
  -webkit-backdrop-filter:blur(var(--dt-modal-overlay-blur,8px)) !important;
}
@media (max-width: 767px){
  .psn-mode-choice.dt-modal-root.dt-shared-modal,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal{
    padding:18px 20px !important;
  }
  .psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--multi,
  .psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--single,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--multi,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--single{
    grid-template-columns:minmax(0,1fr) !important;
  }
}

/* Component shell width finalization: avoid shrink-to-fit on service modal grid items. */
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__window.dt-modal-window.dt-shared-modal__window,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__window.dt-modal-window.dt-shared-modal__window{
  width:var(--dt-modal-shell-width) !important;
  inline-size:var(--dt-modal-shell-width) !important;
  max-width:calc(100vw - 48px) !important;
  max-inline-size:calc(100vw - 48px) !important;
}
@media (max-width: 767px){
  .psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__window.dt-modal-window.dt-shared-modal__window,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__window.dt-modal-window.dt-shared-modal__window{
    width:min(350px,100%) !important;
    inline-size:min(350px,100%) !important;
    max-width:350px !important;
    max-inline-size:350px !important;
  }
}

/* Compact single and unified vertical rhythm: semantic layout by final action count only. */
.dt-modal-root.dt-shared-modal.dt-modal-layout--single{
  --dt-modal-current-shell-width:500px;
  --dt-modal-current-card-width:260px;
  --dt-modal-current-card-min-height:76px;
  --dt-modal-current-card-padding-block:14px;
  --dt-modal-current-card-padding-inline:16px;
  --dt-modal-current-indicator-left:18px;
  --dt-modal-current-indicator-top:18px;
  --dt-modal-current-card-title-size:15px;
  --dt-modal-current-card-note-size:13px;
  --dt-modal-current-title-size:20px;
  --dt-modal-current-title-gap:8px;
  --dt-modal-current-description-gap:22px;
  --dt-modal-current-footer-gap:22px;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi{
  --dt-modal-current-shell-width:720px;
  --dt-modal-current-card-width:var(--dt-modal-action-card-width);
  --dt-modal-current-card-min-height:var(--dt-modal-action-card-min-height);
  --dt-modal-current-card-padding-block:var(--dt-modal-action-card-padding);
  --dt-modal-current-card-padding-inline:var(--dt-modal-action-card-padding);
  --dt-modal-current-indicator-left:18px;
  --dt-modal-current-indicator-top:19px;
  --dt-modal-current-card-title-size:16px;
  --dt-modal-current-card-note-size:14px;
  --dt-modal-current-title-size:20px;
  --dt-modal-current-title-gap:8px;
  --dt-modal-current-description-gap:22px;
  --dt-modal-current-footer-gap:22px;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-window,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-window,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__card.dt-modal-window.dt-shared-modal__window,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__card.dt-modal-window.dt-shared-modal__window,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--single .psn-mode-choice__window.dt-modal-window.dt-shared-modal__window,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__window.dt-modal-window.dt-shared-modal__window,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__window.dt-modal-window.dt-shared-modal__window,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__window.dt-modal-window.dt-shared-modal__window{
  width:min(var(--dt-modal-current-shell-width),100%) !important;
  inline-size:min(var(--dt-modal-current-shell-width),100%) !important;
  max-width:var(--dt-modal-current-shell-width) !important;
  max-inline-size:var(--dt-modal-current-shell-width) !important;
  min-height:0 !important;
  height:auto !important;
  padding:22px !important;
  justify-content:flex-start !important;
  gap:0 !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-title,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-title,
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__title.dt-modal-title,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__title.dt-modal-title{
  width:100% !important;
  max-width:none !important;
  margin:0 0 var(--dt-modal-current-title-gap) 0 !important;
  font-size:var(--dt-modal-current-title-size) !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-description,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-description{
  margin:0 0 var(--dt-modal-current-description-gap) 0 !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-description[hidden],
.dt-modal-root.dt-shared-modal .dt-modal-description.dt-modal-slot--empty{
  margin:0 !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions,
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions.dt-modal-actions--single,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__grid.dt-modal-actions.dt-modal-actions--single,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--single .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--single,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--single{
  grid-template-columns:minmax(0,var(--dt-modal-current-card-width)) !important;
  justify-content:center !important;
  align-items:start !important;
  gap:0 !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-actions,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-actions.dt-modal-actions--multi,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__grid.dt-modal-actions.dt-modal-actions--multi,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--multi,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--multi{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  justify-content:stretch !important;
  align-items:stretch !important;
  gap:var(--dt-modal-action-gap) !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
  min-height:var(--dt-modal-current-card-min-height) !important;
  padding:var(--dt-modal-current-card-padding-block) var(--dt-modal-current-card-padding-inline) var(--dt-modal-current-card-padding-block) 52px !important;
  justify-content:center !important;
  gap:6px !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card::before,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card::before{
  left:var(--dt-modal-current-indicator-left) !important;
  top:var(--dt-modal-current-indicator-top) !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card .mode-modal__option-title,
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card > span:first-child,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card .mode-modal__option-title,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card > span:first-child{
  font-size:var(--dt-modal-current-card-title-size) !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card .mode-modal__option-note,
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card > small,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card .mode-modal__option-note,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card > small{
  font-size:var(--dt-modal-current-card-note-size) !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card .mode-modal__option-note,
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card > small{
  display:none !important;
  margin:0 !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-footer-note,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-footer-note,
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__footer.dt-modal-footer-note,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__footer.dt-modal-footer-note{
  margin:var(--dt-modal-current-footer-gap) 0 0 0 !important;
  position:static !important;
  inset:auto !important;
}
@media (max-width: 767px){
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single,
  .dt-modal-root.dt-shared-modal.dt-modal-layout--multi{
    padding:18px 20px !important;
  }
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-window,
  .dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-window,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__card.dt-modal-window.dt-shared-modal__window,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__card.dt-modal-window.dt-shared-modal__window,
  .psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--single .psn-mode-choice__window.dt-modal-window.dt-shared-modal__window,
  .psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__window.dt-modal-window.dt-shared-modal__window,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__window.dt-modal-window.dt-shared-modal__window,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__window.dt-modal-window.dt-shared-modal__window{
    width:min(350px,100%) !important;
    inline-size:min(350px,100%) !important;
    max-width:350px !important;
    max-inline-size:350px !important;
    min-height:0 !important;
    height:auto !important;
    padding:22px !important;
  }
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions,
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions.dt-modal-actions--single,
  .dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-actions,
  .dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-actions.dt-modal-actions--multi,
  .mode-modal.dt-modal-root.dt-shared-modal .mode-modal__grid.dt-modal-actions,
  .psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__options.dt-modal-actions,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__actions.dt-modal-actions{
    grid-template-columns:minmax(0,1fr) !important;
    justify-content:stretch !important;
    gap:12px !important;
  }
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card,
  .dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card,
  .mode-modal.dt-modal-root.dt-shared-modal .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
  .psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
    min-height:76px !important;
  }
}


/* Compact rhythm cleanup: remove legacy grid margins and keep mobile cards usable. */
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-actions,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__grid.dt-modal-actions,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__grid.dt-modal-actions,
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__options.dt-modal-actions,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__actions.dt-modal-actions{
  display:grid !important;
  margin:0 !important;
  row-gap:var(--dt-modal-action-gap) !important;
  column-gap:var(--dt-modal-action-gap) !important;
}
@media (max-width: 767px){
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions,
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions.dt-modal-actions--single,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__grid.dt-modal-actions.dt-modal-actions--single,
  .psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--single .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--single,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--single{
    grid-template-columns:minmax(0,1fr) !important;
    justify-content:stretch !important;
    margin:0 !important;
  }
}

/* Exact desktop shell width for shared components; mobile media rules below keep fluid width. */
@media (min-width: 768px){
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-window,
  .dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-window,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__card.dt-modal-window.dt-shared-modal__window,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__card.dt-modal-window.dt-shared-modal__window,
  .psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--single .psn-mode-choice__window.dt-modal-window.dt-shared-modal__window,
  .psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__window.dt-modal-window.dt-shared-modal__window,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__window.dt-modal-window.dt-shared-modal__window,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__window.dt-modal-window.dt-shared-modal__window{
    width:var(--dt-modal-current-shell-width) !important;
    inline-size:var(--dt-modal-current-shell-width) !important;
    max-width:calc(100vw - 48px) !important;
    max-inline-size:calc(100vw - 48px) !important;
    box-sizing:border-box !important;
  }
}

/* Mobile stack finalization for semantic multi action modals. */
@media (max-width: 767px){
  .dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-actions.dt-modal-actions--multi,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__grid.dt-modal-actions.dt-modal-actions--multi,
  .psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--multi,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--multi{
    grid-template-columns:minmax(0,1fr) !important;
    justify-content:stretch !important;
    align-items:stretch !important;
    margin:0 !important;
    row-gap:12px !important;
    column-gap:12px !important;
  }
}

/* Indicator and compact single-card follow-up: shared action-card semantics only. */
.dt-modal-root.dt-shared-modal.dt-modal-layout--single{
  --dt-modal-current-card-width:240px;
  --dt-modal-current-card-min-height:68px;
  --dt-modal-current-card-padding-block:11px;
  --dt-modal-current-card-padding-inline:14px;
  --dt-modal-current-indicator-left:16px;
  --dt-modal-current-indicator-top:50%;
  --dt-modal-current-card-title-size:15px;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi{
  --dt-modal-current-indicator-left:17px;
  --dt-modal-current-indicator-top:18px;
}
.dt-modal-root.dt-shared-modal .dt-modal-action-card::before{
  box-sizing:border-box !important;
  width:18px !important;
  height:18px !important;
  border-width:2px !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card::before{
  transform:translateY(-50%) !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card::before{
  transform:none !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--single .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
  min-height:var(--dt-modal-current-card-min-height) !important;
  padding:var(--dt-modal-current-card-padding-block) var(--dt-modal-current-card-padding-inline) var(--dt-modal-current-card-padding-block) 48px !important;
}
@media (max-width: 767px){
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single{
    --dt-modal-current-card-width:100%;
  }
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
  .psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--single .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
    min-height:68px !important;
  }
}

/* Exact 180x52 single-action card finalization. */
.dt-modal-root.dt-shared-modal.dt-modal-layout--single{
  --dt-modal-current-card-width:180px;
  --dt-modal-current-card-min-height:52px;
  --dt-modal-current-card-padding-block:0px;
  --dt-modal-current-card-padding-inline:0px;
  --dt-modal-current-indicator-left:50px;
  --dt-modal-current-indicator-top:50%;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions,
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions.dt-modal-actions--single,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__grid.dt-modal-actions.dt-modal-actions--single,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--single .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--single,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--single{
  grid-template-columns:minmax(0,180px) !important;
  justify-content:center !important;
  justify-items:center !important;
  align-items:start !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--single .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
  width:180px !important;
  max-width:100% !important;
  height:52px !important;
  min-height:52px !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:18px max-content !important;
  column-gap:8px !important;
  place-content:center !important;
  align-items:center !important;
  justify-items:center !important;
  text-align:center !important;
  margin-inline:auto !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card .mode-modal__option-title,
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card > span:first-child{
  grid-column:2 !important;
  width:auto !important;
  max-width:96px !important;
  text-align:center !important;
  margin:0 !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card::before{
  grid-column:1 !important;
  width:18px !important;
  height:18px !important;
  position:static !important;
  left:auto !important;
  top:auto !important;
  margin:0 !important;
  transform:none !important;
}
@media (max-width: 767px){
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single{
    --dt-modal-current-card-width:180px;
  }
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions,
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions.dt-modal-actions--single,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__grid.dt-modal-actions.dt-modal-actions--single,
  .psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--single .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--single,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--single{
    grid-template-columns:minmax(0,180px) !important;
    justify-content:center !important;
    justify-items:center !important;
  }
}

/* Multi-card content-driven geometry: equalize desktop pairs by row stretch only. */
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi{
  --dt-modal-current-card-min-height:0px;
  --dt-modal-current-card-note-size:11.5px;
  --dt-modal-current-indicator-top:23px;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-actions,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-actions.dt-modal-actions--multi,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__grid.dt-modal-actions.dt-modal-actions--multi,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--multi,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--multi{
  align-items:stretch !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
  height:auto !important;
  min-height:0 !important;
  padding:21px 16px 21px 36px !important;
  align-self:stretch !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card .mode-modal__option-note,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card > small,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__action-note{
  width:calc(100% + 16px) !important;
  max-width:calc(100% + 16px) !important;
}

@media (max-width: 767px){
  .dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-actions,
  .dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-actions.dt-modal-actions--multi,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__grid.dt-modal-actions.dt-modal-actions--multi,
  .psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--multi,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--multi{
    align-items:start !important;
  }
  .dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
  .psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
    align-self:auto !important;
  }
}

/* Multi-card title alignment: keep indicator opposite the first title line, not the full card height. */
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
  justify-content:flex-start !important;
  align-items:flex-start !important;
}

/* Final modal UI regression fix: semantic single compactness and multi typography/spacing. */
.dt-modal-root.dt-shared-modal{
  --dt-modal-current-title-gap:8px;
  --dt-modal-current-description-gap:24px;
  --dt-modal-current-footer-gap:24px;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single{
  --dt-modal-current-card-width:156px;
  --dt-modal-current-card-min-height:48px;
  --dt-modal-current-card-title-size:18px;
  --dt-modal-current-indicator-left:auto;
  --dt-modal-current-indicator-top:auto;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi{
  --dt-modal-current-card-min-height:0px;
  --dt-modal-current-card-title-size:17px;
  --dt-modal-current-card-note-size:13.5px;
  --dt-modal-current-indicator-left:18px;
  --dt-modal-current-indicator-top:19px;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-window,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-window,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__card.dt-modal-window.dt-shared-modal__window,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__card.dt-modal-window.dt-shared-modal__window,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__window.dt-modal-window.dt-shared-modal__window,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__window.dt-modal-window.dt-shared-modal__window{
  padding:24px !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-title,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-title{
  margin-bottom:var(--dt-modal-current-title-gap) !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-description,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-description{
  margin-bottom:var(--dt-modal-current-description-gap) !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-footer-note,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-footer-note{
  margin-top:var(--dt-modal-current-footer-gap) !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions,
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions.dt-modal-actions--single,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__grid.dt-modal-actions.dt-modal-actions--single,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--single{
  grid-template-columns:minmax(0,156px) !important;
  justify-content:center !important;
  justify-items:center !important;
  align-items:start !important;
  gap:0 !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
  width:156px !important;
  max-width:100% !important;
  height:48px !important;
  min-height:48px !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:16px max-content !important;
  column-gap:12px !important;
  place-content:center !important;
  align-items:center !important;
  justify-items:center !important;
  text-align:center !important;
  margin-inline:auto !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card::before{
  grid-column:1 !important;
  width:16px !important;
  height:16px !important;
  position:static !important;
  left:auto !important;
  top:auto !important;
  margin:0 !important;
  transform:none !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card .mode-modal__option-title,
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card > span:first-child,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__action-title{
  grid-column:2 !important;
  width:auto !important;
  max-width:88px !important;
  margin:0 !important;
  text-align:center !important;
  font-size:18px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card .mode-modal__option-note,
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card > small,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__action-note{
  display:none !important;
  margin:0 !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-actions,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-actions.dt-modal-actions--multi,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__grid.dt-modal-actions.dt-modal-actions--multi,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--multi,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--multi{
  align-items:stretch !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
  height:auto !important;
  min-height:0 !important;
  padding:18px 16px 18px 50px !important;
  align-self:stretch !important;
  justify-content:flex-start !important;
  align-items:flex-start !important;
  gap:6px !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card::before{
  width:18px !important;
  height:18px !important;
  left:18px !important;
  top:19px !important;
  position:absolute !important;
  transform:none !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card .mode-modal__option-title,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card > span:first-child,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__action-title{
  font-size:17px !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  margin:0 !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card .mode-modal__option-note,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card > small,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__action-note{
  width:auto !important;
  max-width:none !important;
  font-size:13.5px !important;
  font-weight:400 !important;
  line-height:1.4 !important;
  margin:0 !important;
}
@media (max-width: 767px){
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-window,
  .dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-window,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__card.dt-modal-window.dt-shared-modal__window,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__card.dt-modal-window.dt-shared-modal__window,
  .psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__window.dt-modal-window.dt-shared-modal__window,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__window.dt-modal-window.dt-shared-modal__window{
    padding:22px !important;
  }
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions,
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions.dt-modal-actions--single,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__grid.dt-modal-actions.dt-modal-actions--single,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--single{
    grid-template-columns:minmax(0,156px) !important;
    justify-content:center !important;
    justify-items:center !important;
  }
  .dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
  .psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
    align-self:auto !important;
  }
}

/* Final shared modal micro-polish: title rhythm, compact single action, unified indicator/focus. */
.dt-modal-root.dt-shared-modal{
  --dt-modal-current-title-size:20px;
  --dt-modal-current-title-weight:700;
  --dt-modal-current-title-line-height:1.25;
  --dt-modal-current-title-gap:8px;
  --dt-modal-current-title-action-gap:22px;
  --dt-modal-current-description-gap:22px;
  --dt-modal-current-footer-gap:22px;
  --dt-modal-indicator-size:18px;
  --dt-modal-indicator-border:2px;
  --dt-modal-indicator-glow:inset 0 0 0 4px var(--game-panel-2,#111), 0 0 10px color-mix(in srgb,var(--game-brand,#a75eff) 18%,transparent);
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single{
  --dt-modal-current-card-width:136px;
  --dt-modal-current-card-min-height:48px;
  --dt-modal-current-card-title-size:18px;
  --dt-modal-single-indicator-size:16px;
  --dt-modal-single-indicator-gap:12px;
  --dt-modal-single-padding-inline:20px;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi{
  --dt-modal-current-card-title-size:17px;
  --dt-modal-current-card-note-size:13.5px;
  --dt-modal-current-indicator-left:18px;
  --dt-modal-current-indicator-top:19px;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-title,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-title,
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__title.dt-modal-title,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__title.dt-modal-title{
  width:100% !important;
  max-width:none !important;
  margin:0 0 var(--dt-modal-current-title-gap) 0 !important;
  font-size:var(--dt-modal-current-title-size) !important;
  font-weight:var(--dt-modal-current-title-weight) !important;
  line-height:var(--dt-modal-current-title-line-height) !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-description:not([hidden]):not(.dt-modal-slot--empty),
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-description:not([hidden]):not(.dt-modal-slot--empty){
  display:block !important;
  margin:0 0 var(--dt-modal-current-description-gap) 0 !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-description[hidden],
.dt-modal-root.dt-shared-modal .dt-modal-description.dt-modal-slot--empty,
.dt-modal-root.dt-shared-modal .dt-modal-description:empty{
  display:none !important;
  margin:0 !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-window:not(:has(.dt-modal-description:not([hidden]):not(.dt-modal-slot--empty):not(:empty))) .dt-modal-title{
  margin-bottom:var(--dt-modal-current-title-action-gap) !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-footer-note,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-footer-note,
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__footer.dt-modal-footer-note,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__footer.dt-modal-footer-note{
  margin-top:var(--dt-modal-current-footer-gap) !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-action-card::before{
  width:var(--dt-modal-indicator-size) !important;
  height:var(--dt-modal-indicator-size) !important;
  box-sizing:border-box !important;
  border-width:var(--dt-modal-indicator-border) !important;
  box-shadow:var(--dt-modal-indicator-glow) !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions,
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions.dt-modal-actions--single,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__grid.dt-modal-actions.dt-modal-actions--single,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--single .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--single,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--single{
  grid-template-columns:minmax(0,var(--dt-modal-current-card-width)) !important;
  justify-content:center !important;
  justify-items:center !important;
  align-items:start !important;
  gap:0 !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--single .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
  width:var(--dt-modal-current-card-width) !important;
  max-width:100% !important;
  height:var(--dt-modal-current-card-min-height) !important;
  min-height:var(--dt-modal-current-card-min-height) !important;
  padding:0 var(--dt-modal-single-padding-inline) !important;
  display:grid !important;
  grid-template-columns:var(--dt-modal-single-indicator-size) max-content !important;
  column-gap:var(--dt-modal-single-indicator-gap) !important;
  place-content:center !important;
  align-items:center !important;
  justify-items:center !important;
  text-align:center !important;
  margin-inline:auto !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card::before{
  grid-column:1 !important;
  width:var(--dt-modal-single-indicator-size) !important;
  height:var(--dt-modal-single-indicator-size) !important;
  position:static !important;
  left:auto !important;
  top:auto !important;
  margin:0 !important;
  transform:none !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card .mode-modal__option-title,
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card > span:first-child,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__action-title{
  grid-column:2 !important;
  width:auto !important;
  max-width:72px !important;
  margin:0 !important;
  text-align:center !important;
  font-size:var(--dt-modal-current-card-title-size) !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card .mode-modal__option-note,
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-action-card > small,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__action-note{
  display:none !important;
  margin:0 !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
  height:auto !important;
  min-height:0 !important;
  padding:18px 16px 18px 50px !important;
  align-self:stretch !important;
  justify-content:flex-start !important;
  align-items:flex-start !important;
  gap:6px !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card::before{
  left:var(--dt-modal-current-indicator-left) !important;
  top:var(--dt-modal-current-indicator-top) !important;
  position:absolute !important;
  transform:none !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card .mode-modal__option-title,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card > span:first-child,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__action-title{
  font-size:var(--dt-modal-current-card-title-size) !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  margin:0 !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card .mode-modal__option-note,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card > small,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__action-note{
  width:auto !important;
  max-width:none !important;
  font-size:var(--dt-modal-current-card-note-size) !important;
  font-weight:400 !important;
  line-height:1.4 !important;
  margin:0 !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-action-card:focus:not(:focus-visible){
  outline:none !important;
  box-shadow:none !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-action-card:focus-visible{
  outline:2px solid color-mix(in srgb,var(--game-brand,#a75eff) 75%,#fff 10%) !important;
  outline-offset:3px !important;
  box-shadow:none !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-action-card:focus-visible:hover{
  box-shadow:none !important;
}
@media (max-width: 767px){
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions,
  .dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions.dt-modal-actions--single,
  .mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__grid.dt-modal-actions.dt-modal-actions--single,
  .psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--single .psn-mode-choice__options.dt-modal-actions.dt-modal-actions--single,
  .dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__actions.dt-modal-actions.dt-modal-actions--single{
    grid-template-columns:minmax(0,var(--dt-modal-current-card-width)) !important;
    justify-content:center !important;
    justify-items:center !important;
  }
}

/* Final normal-flow modal rhythm: no negative margins or compensation transforms. */
.dt-modal-root.dt-shared-modal{
  --dt-modal-current-title-gap:8px;
  --dt-modal-current-description-gap:22px;
  --dt-modal-current-footer-gap:22px;
}
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single #mode-modal-title.dt-modal-title,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi #mode-modal-title.dt-modal-title,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .mode-modal__title.dt-modal-title,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__title.dt-modal-title,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--single .psn-mode-choice__title.dt-modal-title,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__title.dt-modal-title,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-service-mode-modal__title.dt-modal-title,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__title.dt-modal-title{
  margin:0 0 var(--dt-modal-current-title-gap) 0 !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-description:not([hidden]):not(.dt-modal-slot--empty),
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-description:not([hidden]):not(.dt-modal-slot--empty){
  display:block !important;
  margin:0 0 var(--dt-modal-current-description-gap) 0 !important;
  transform:none !important;
}
.dt-modal-root.dt-shared-modal .dt-modal-description[hidden],
.dt-modal-root.dt-shared-modal .dt-modal-description.dt-modal-slot--empty,
.dt-modal-root.dt-shared-modal .dt-modal-description:empty{
  display:none !important;
  margin:0 !important;
  transform:none !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-actions,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-actions,
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-footer-note,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-footer-note{
  transform:none !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--single .dt-modal-footer-note,
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-footer-note,
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__footer.dt-modal-footer-note,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__footer.dt-modal-footer-note{
  margin-top:var(--dt-modal-current-footer-gap) !important;
}

/* Shared multi-action presentation parity: PSN/service modals match the SWGOH two-action baseline. */
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-title,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi #mode-modal-title.dt-modal-title,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__title.dt-modal-title,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__title.dt-modal-title,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__title.dt-modal-title{
  font-size:28px !important;
  font-weight:800 !important;
  line-height:1.15 !important;
}
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__option.dt-modal-action-card.dt-shared-choice-card,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 12px 30px rgba(0,0,0,.24) !important;
}

/* Shared multi-action indicator parity: PSN/service indicators use the SWGOH inner-center treatment. */
.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-modal-action-card::before,
.mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .mode-modal__option.dt-modal-action-card.dt-shared-choice-card::before,
.psn-mode-choice.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card::before,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal.dt-modal-layout--multi .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card::before{
  background:color-mix(in srgb,var(--game-panel-2,#111) 82%,var(--game-brand,#a75eff) 18%) !important;
  box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--game-brand,#a75eff) 62%,transparent) !important;
}


/* ======================================================================
   PSN service visual unification — Phase 3 Service 1
   Scope: /service/playstation/ only. CSS-only connection to approved
   selectable-control, field/input and primary-cta token families.
   Geometry remains owned by existing PSN layout rules.
   ====================================================================== */
body.service-playstation .navigation #nav-mode-switch.psn-mode-switch.dt-shared-mode-switch .dt-shared-mode-switch__btn,
body.service-playstation .psn-topup-region {
  background: var(--dt-select-idle-bg);
  color: var(--dt-select-idle-text);
  text-shadow: none;
  box-shadow: var(--dt-select-idle-shadow);
  outline: none;
  transform: var(--dt-interactive-motion-transform, none);
  transition: var(--dt-interactive-transition-shadow);
}

body.service-playstation .navigation #nav-mode-switch.psn-mode-switch.dt-shared-mode-switch .dt-shared-mode-switch__btn:hover:not(.active),
body.service-playstation .psn-topup-region:hover:not(.active) {
  background: var(--dt-select-hover-bg);
  color: var(--dt-select-hover-text);
  text-shadow: var(--dt-select-hover-text-shadow);
  box-shadow: var(--dt-select-hover-shadow) !important;
  transform: none;
}

body.service-playstation .navigation #nav-mode-switch.psn-mode-switch.dt-shared-mode-switch .dt-shared-mode-switch__btn.active,
body.service-playstation .psn-topup-region.active,
body.service-playstation .psn-topup-region[aria-selected="true"] {
  background: var(--dt-select-selected-bg);
  color: var(--dt-select-selected-text);
  text-shadow: var(--dt-select-text-shadow);
  box-shadow: var(--dt-select-selected-shadow) !important;
  transform: none;
}

body.service-playstation .navigation #nav-mode-switch.psn-mode-switch.dt-shared-mode-switch .dt-shared-mode-switch__btn.active:hover,
body.service-playstation .psn-topup-region.active:hover,
body.service-playstation .psn-topup-region[aria-selected="true"]:hover {
  background: var(--dt-select-selected-hover-bg);
  color: var(--dt-select-selected-hover-text);
  text-shadow: var(--dt-select-selected-hover-text-shadow);
  box-shadow: var(--dt-select-selected-hover-shadow) !important;
  transform: none;
}

body.service-playstation .navigation #nav-mode-switch.psn-mode-switch.dt-shared-mode-switch .dt-shared-mode-switch__btn:active,
body.service-playstation .psn-topup-region:active {
  background: var(--dt-select-pressed-bg, var(--dt-control-pressed-background));
  color: var(--dt-select-pressed-text, var(--dt-control-pressed-color));
  text-shadow: none;
  box-shadow: var(--dt-select-pressed-shadow, var(--dt-control-pressed-shadow)) !important;
  transform: none;
}

body.service-playstation .navigation #nav-mode-switch.psn-mode-switch.dt-shared-mode-switch .dt-shared-mode-switch__btn:focus-visible,
body.service-playstation .psn-topup-region:focus-visible {
  background: var(--dt-control-focus-visible-background, var(--dt-select-hover-bg));
  color: var(--dt-control-focus-visible-color, var(--dt-select-hover-text));
  text-shadow: var(--dt-select-hover-text-shadow);
  box-shadow: var(--dt-control-focus-visible-shadow, var(--dt-select-hover-shadow)) !important;
  outline: var(--dt-control-focus-visible-outline, var(--dt-interactive-focus-outline));
  outline-offset: var(--dt-control-focus-visible-outline-offset, var(--dt-interactive-focus-outline-offset));
  transform: none;
}

body.service-playstation .psn-topup-region:disabled,
body.service-playstation .psn-topup-region[aria-disabled="true"] {
  opacity: var(--dt-disabled-opacity);
  cursor: var(--dt-disabled-cursor);
  color: var(--dt-input-disabled-text);
  box-shadow: var(--dt-select-idle-shadow) !important;
}

body.service-playstation .psn-topup-input-wrap {
  background: var(--dt-interactive-field-bg);
  border-radius: var(--dt-field-wrapper-radius, var(--psn-topup-radius));
  box-shadow: var(--dt-interactive-field-idle-shadow);
  outline: none;
  transform: none;
  transition: box-shadow var(--dt-interactive-transition), background var(--dt-interactive-transition), opacity var(--dt-interactive-transition);
}

body.service-playstation .psn-topup-input-wrap:hover {
  box-shadow: var(--dt-interactive-field-hover-shadow);
}

body.service-playstation .psn-topup-input-wrap:focus-within {
  background: var(--dt-field-wrapper-focus-within-background, var(--dt-interactive-field-bg));
  box-shadow: var(--dt-interactive-field-focus-shadow);
  outline: none;
}

body.service-playstation .psn-topup-input {
  background: var(--dt-field-input-background, transparent);
  color: var(--dt-field-input-color, var(--dt-input-idle-text));
  border: var(--dt-field-input-border, 0);
  box-shadow: var(--dt-field-input-shadow, none);
  outline: var(--dt-field-input-outline, none);
  caret-color: var(--dt-field-input-caret-color, currentColor);
  transform: none;
}

body.service-playstation .psn-topup-input::placeholder {
  color: var(--dt-input-placeholder);
}

body.service-playstation .psn-topup-input:focus {
  background: var(--dt-field-input-background, transparent);
  outline: none;
}

body.service-playstation .psn-topup-input:disabled,
body.service-playstation .psn-topup-input[readonly] {
  color: var(--dt-input-disabled-text);
  cursor: var(--dt-disabled-cursor);
}

body.service-playstation .psn-topup-form:has(#psn-topup-error:not([hidden])) .psn-topup-input-wrap,
body.service-playstation .psn-topup-input[aria-invalid="true"]:not(:focus) {
  box-shadow: var(--dt-interactive-field-error-shadow);
}

body.service-playstation .psn-topup-submit {
  background: var(--dt-primary-idle-bg);
  color: var(--dt-primary-idle-text);
  box-shadow: var(--dt-primary-idle-shadow) !important;
  text-shadow: none;
  transform: none;
  transition: var(--dt-interactive-transition-shadow);
}

body.service-playstation .psn-topup-submit:hover:not(:disabled):not([aria-busy="true"]),
body.service-playstation .psn-topup-submit:focus-visible:not(:disabled):not([aria-busy="true"]) {
  background: var(--dt-primary-hover-bg);
  color: var(--dt-primary-hover-text);
  box-shadow: var(--dt-primary-hover-shadow) !important;
  transform: none;
}

body.service-playstation .psn-topup-submit:focus-visible:not(:disabled) {
  outline: var(--dt-interactive-focus-outline);
  outline-offset: var(--dt-interactive-focus-outline-offset);
}

body.service-playstation .psn-topup-submit:active:not(:disabled):not([aria-busy="true"]) {
  background: var(--dt-primary-pressed-bg);
  color: var(--dt-primary-pressed-text);
  box-shadow: var(--dt-primary-pressed-shadow) !important;
  transform: none;
}

body.service-playstation .psn-topup-submit:disabled,
body.service-playstation .psn-topup-submit[aria-disabled="true"],
body.service-playstation .psn-topup-submit[aria-busy="true"] {
  opacity: var(--dt-interactive-disabled-opacity);
  cursor: var(--dt-interactive-disabled-cursor);
  color: var(--dt-input-disabled-text);
  box-shadow: var(--dt-select-idle-shadow) !important;
  transform: none;
}

body.service-playstation .psn-topup-submit:disabled:hover,
body.service-playstation .psn-topup-submit[aria-disabled="true"]:hover,
body.service-playstation .psn-topup-submit[aria-busy="true"]:hover {
  background: var(--dt-primary-idle-bg);
  color: var(--dt-input-disabled-text);
  box-shadow: var(--dt-select-idle-shadow) !important;
  transform: none;
}

/* DonateTeam service visual unification - Phase 3 Service 3.
   Scope: AI and Telegram service catalogs only. Existing geometry stays owned by catalog CSS. */
[data-service-slug="ai"] .filter-btn,
[data-service-slug="telegram"] .filter-btn,
[data-service-slug="telegram"] .mode-btn {
  background: var(--dt-control-idle-background);
  color: var(--dt-control-idle-color);
  box-shadow: var(--dt-control-idle-shadow);
  text-shadow: none;
  transform: none;
  transition: var(--dt-interactive-transition-shadow, box-shadow .2s ease, color .2s ease, text-shadow .2s ease, background .2s ease);
}

[data-service-slug="ai"] .filter-btn:hover:not(.active),
[data-service-slug="telegram"] .filter-btn:hover:not(.active),
[data-service-slug="telegram"] .mode-btn:hover:not(.active) {
  background: var(--dt-control-hover-background);
  color: var(--dt-control-hover-color);
  box-shadow: var(--dt-control-hover-shadow);
  text-shadow: var(--dt-control-selected-hover-text-shadow);
  transform: none;
}

[data-service-slug="ai"] .filter-btn.active,
[data-service-slug="telegram"] .filter-btn.active,
[data-service-slug="telegram"] .mode-btn.active {
  background: var(--dt-control-selected-background);
  color: var(--dt-control-selected-color);
  box-shadow: var(--dt-control-selected-shadow);
  text-shadow: var(--dt-control-selected-text-shadow);
  transform: none;
}

[data-service-slug="ai"] .filter-btn.active:hover,
[data-service-slug="telegram"] .filter-btn.active:hover,
[data-service-slug="telegram"] .mode-btn.active:hover {
  background: var(--dt-control-selected-hover-background);
  color: var(--dt-control-selected-hover-color);
  box-shadow: var(--dt-control-selected-hover-shadow);
  text-shadow: var(--dt-control-selected-hover-text-shadow);
  transform: none;
}

[data-service-slug="ai"] .filter-btn:active,
[data-service-slug="telegram"] .filter-btn:active,
[data-service-slug="telegram"] .mode-btn:active {
  background: var(--dt-control-pressed-background);
  color: var(--dt-control-pressed-color);
  box-shadow: var(--dt-control-pressed-shadow);
  transform: none;
}

[data-service-slug="ai"] .filter-btn:focus-visible,
[data-service-slug="telegram"] .filter-btn:focus-visible,
[data-service-slug="telegram"] .mode-btn:focus-visible {
  background: var(--dt-control-focus-visible-background);
  color: var(--dt-control-focus-visible-color);
  box-shadow: var(--dt-control-focus-visible-shadow);
  outline: var(--dt-control-focus-visible-outline);
  outline-offset: var(--dt-control-focus-visible-outline-offset);
  text-shadow: var(--dt-select-hover-text-shadow);
  transform: none;
}

[data-service-slug="ai"] .product-card,
[data-service-slug="telegram"] .product-card {
  transition: var(--dt-card-transition);
  transform: none;
}

[data-service-slug="ai"] .product-card:hover,
[data-service-slug="telegram"] .product-card:hover {
  border: var(--dt-card-hover-border);
  box-shadow: var(--dt-card-hover-shadow);
  transform: none;
}

[data-service-slug="ai"] .product-card:focus-visible,
[data-service-slug="telegram"] .product-card:focus-visible {
  border: var(--dt-card-focus-visible-border);
  box-shadow: var(--dt-card-focus-visible-shadow);
  outline: var(--dt-card-focus-visible-outline);
  outline-offset: var(--dt-card-focus-visible-outline-offset);
  transform: none;
}

[data-service-slug="ai"] .add-btn,
[data-service-slug="telegram"] .add-btn {
  color: var(--dt-card-action-idle-text);
  background: var(--dt-card-action-idle-bg);
  box-shadow: var(--dt-card-action-idle-shadow);
  transition: var(--dt-card-action-transition);
  transform: none;
}

[data-service-slug="ai"] .add-btn:hover,
[data-service-slug="telegram"] .add-btn:hover {
  box-shadow: var(--dt-card-action-hover-shadow);
  transform: none;
}

[data-service-slug="ai"] .add-btn:active,
[data-service-slug="telegram"] .add-btn:active {
  transform: var(--dt-card-action-pressed-transform);
}

[data-service-slug="ai"] .add-btn:focus-visible,
[data-service-slug="telegram"] .add-btn:focus-visible {
  outline: var(--dt-interactive-focus-outline);
  outline-offset: var(--dt-interactive-focus-outline-offset);
  box-shadow: var(--dt-card-action-hover-shadow);
  transform: none;
}

[data-service-slug="ai"] .product-card__info-trigger,
[data-service-slug="telegram"] .product-card__info-trigger {
  background: var(--dt-help-badge-idle-bg);
  color: var(--dt-help-badge-idle-text);
  box-shadow: var(--dt-help-badge-idle-shadow);
  transform: none;
}

[data-service-slug="ai"] .product-card__info-trigger:hover,
[data-service-slug="telegram"] .product-card__info-trigger:hover {
  background: var(--dt-help-badge-hover-bg);
  box-shadow: var(--dt-help-badge-hover-shadow);
  transform: none;
}

[data-service-slug="ai"] .cart-clear-btn,
[data-service-slug="telegram"] .cart-clear-btn {
  background: var(--dt-destructive-clear-idle-bg);
  transition: var(--dt-destructive-clear-transition);
  transform: none;
}

[data-service-slug="ai"] .cart-clear-btn:hover,
[data-service-slug="telegram"] .cart-clear-btn:hover {
  background: var(--dt-destructive-clear-hover-bg);
  transform: var(--dt-destructive-clear-transform);
}

[data-service-slug="ai"] .cart-clear-btn:focus-visible,
[data-service-slug="telegram"] .cart-clear-btn:focus-visible {
  outline: var(--dt-interactive-focus-outline);
  outline-offset: 2px;
  box-shadow: var(--dt-interactive-focus-shadow);
  transform: none;
}

[data-service-slug="ai"] .btn-pay,
[data-service-slug="telegram"] .btn-pay {
  background: var(--dt-primary-idle-bg);
  color: var(--dt-primary-idle-text);
  transform: none;
}

[data-service-slug="ai"] .btn-pay:not(:disabled),
[data-service-slug="telegram"] .btn-pay:not(:disabled) {
  box-shadow: var(--dt-primary-idle-shadow);
}

[data-service-slug="ai"] .btn-pay:hover:not(:disabled):not([aria-busy="true"]),
[data-service-slug="telegram"] .btn-pay:hover:not(:disabled):not([aria-busy="true"]) {
  background: var(--dt-primary-hover-bg);
  color: var(--dt-primary-hover-text);
  box-shadow: var(--dt-primary-hover-shadow);
  transform: none;
}

[data-service-slug="ai"] .btn-pay:active:not(:disabled):not([aria-busy="true"]),
[data-service-slug="telegram"] .btn-pay:active:not(:disabled):not([aria-busy="true"]) {
  background: var(--dt-primary-pressed-bg);
  color: var(--dt-primary-pressed-text);
  box-shadow: var(--dt-primary-pressed-shadow);
  transform: none;
}

[data-service-slug="ai"] .btn-pay:focus-visible,
[data-service-slug="telegram"] .btn-pay:focus-visible {
  outline: var(--dt-interactive-focus-outline);
  outline-offset: var(--dt-interactive-focus-outline-offset);
  transform: none;
}

[data-service-slug="ai"] .btn-pay:disabled,
[data-service-slug="telegram"] .btn-pay:disabled,
[data-service-slug="ai"] .btn-pay[aria-disabled="true"],
[data-service-slug="telegram"] .btn-pay[aria-disabled="true"],
[data-service-slug="ai"] .btn-pay[aria-busy="true"],
[data-service-slug="telegram"] .btn-pay[aria-busy="true"] {
  opacity: var(--dt-interactive-disabled-opacity);
  cursor: var(--dt-interactive-disabled-cursor);
  color: var(--dt-input-disabled-text);
  box-shadow: none;
  transform: none;
}


/* DonateTeam popup selectable hover border-only fix - 20260707.
   Scope: shared popup/modal selectable action cards only.
   Uses !important because legacy modal state rules in this file already use !important. */
.dt-modal-root.dt-shared-modal .dt-modal-action-card:hover:not(.active):not(.is-active):not([aria-selected="true"]):not([aria-checked="true"]),
.mode-modal.dt-modal-root.dt-shared-modal .mode-modal__option.dt-modal-action-card.dt-shared-choice-card:hover:not(.active):not(.is-active):not([aria-selected="true"]):not([aria-checked="true"]),
.mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card:hover:not(.active):not(.is-active):not([aria-selected="true"]):not([aria-checked="true"]),
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card:hover:not(.is-active):not([aria-selected="true"]):not([aria-checked="true"]),
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card:hover:not(.is-active):not([aria-selected="true"]):not([aria-checked="true"]){
  transform:none !important;
  filter:none !important;
  text-shadow:none !important;
  color:var(--game-text,#fff) !important;
  border-color:var(--dt-modal-brand,var(--game-brand,#a75eff)) !important;
  background-color:var(--dt-modal-bg-2,var(--game-panel-2,#111)) !important;
  background-image:linear-gradient(180deg,color-mix(in srgb,var(--dt-modal-bg-2,var(--game-panel-2,#111)) 94%,var(--dt-modal-brand,var(--game-brand,#a75eff)) 6%),var(--dt-modal-bg-2,var(--game-panel-2,#111))) !important;
  box-shadow:inset 0 0 0 1.5px var(--dt-modal-brand,var(--game-brand,#a75eff)) !important;
}

.dt-modal-root.dt-shared-modal .dt-modal-action-card:focus-visible,
.mode-modal.dt-modal-root.dt-shared-modal .mode-modal__option.dt-modal-action-card.dt-shared-choice-card:focus-visible,
.mode-modal.dt-shared-modal .mode-modal__option.dt-shared-choice-card:focus-visible,
.psn-mode-choice.dt-modal-root.dt-shared-modal .psn-mode-choice__option.dt-modal-action-card.dt-shared-choice-card:focus-visible,
.dt-service-mode-modal.dt-modal-root.dt-shared-modal .dt-service-mode-modal__action.dt-modal-action-card.dt-shared-choice-card:focus-visible{
  transform:none !important;
  filter:none !important;
  text-shadow:none !important;
  border-color:var(--dt-modal-brand,var(--game-brand,#a75eff)) !important;
}

.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{
  transform:none !important;
  filter:none !important;
  text-shadow:none !important;
  color:#fff !important;
  border-color:var(--dt-modal-brand,var(--game-brand,#a75eff)) !important;
  background-color:color-mix(in srgb,var(--dt-modal-bg-2,#111111) 80%,var(--dt-modal-brand,#a75eff) 20%) !important;
  background-image:linear-gradient(180deg,color-mix(in srgb,var(--dt-modal-bg-2,#111111) 72%,var(--dt-modal-brand,#a75eff) 28%),color-mix(in srgb,var(--dt-modal-bg-2,#111111) 84%,var(--dt-modal-brand,#a75eff) 16%)) !important;
  box-shadow:inset 0 0 0 1.5px var(--dt-modal-brand,var(--game-brand,#a75eff)) !important;
  outline:none !important;
}
