/* ======================================================================
   DonateTeam — STEAM-GIFTS.CSS
   Стили для страницы Steam подарков (игры с изданиями)
   ====================================================================== */

/* ========== 0) TOKENS / АЛИАСЫ ======================================= */
:root{
  --steam-gifts-bg: var(--bg, #0f0f0f);
  --steam-gifts-panel: var(--panel, #151515);
  --steam-gifts-panel-2: var(--panel-2, #111111);
  --steam-gifts-text: var(--text, #fff);
  --steam-gifts-muted: var(--muted, #bdbdbd);

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

  --steam-gifts-border: var(--border-soft, 1px solid rgba(255,255,255,.06));
  --steam-gifts-shadow: var(--card-shadow, 0 8px 24px rgba(0,0,0,.35));
  --steam-gifts-radius: var(--radius, 16px);
  --steam-gifts-close-btn-size: 36px;
}

/* ========== 1) ПОИСК ВМЕСТО ФИЛЬТРОВ ================================== */
/* Фильтры скрываются через JavaScript в game-ui.js для steam-gifts */
/* Это правило удалено, чтобы не конфликтовать с Telegram */

/* Показываем поиск для Steam подарков */
.game-header-content .steam-gifts-search-wrap {
  margin-top: var(--space-4);
  margin-bottom: 0;
  height: var(--search-h, 44px);
  width: 100%;
  max-width: 100%;
  order: 2;
}

/* ≥1025px — ПК: шапка с выравниванием и поиск под тайтлом */
@media (min-width: 1025px) {
  .game-header:has(.steam-gifts-search-wrap){
    align-items: flex-start;
  }
  .game-header:has(.steam-gifts-search-wrap) .game-header-content{
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: var(--space-5);
    height: auto !important;
    min-height: 120px !important;
  }
  .game-header:has(.steam-gifts-search-wrap) .page-title{
    margin-bottom: 0 !important;
  }
  .game-header-content .steam-gifts-search-wrap {
    margin: 0 !important;
    align-self: flex-start !important;
    flex: 0 0 auto !important;
    width: min(100%, 620px) !important;
    min-width: 360px;
    max-width: 620px !important;
  }
}


.steam-gifts-search-wrap .steam-gifts-invite-help-btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--steam-gifts-brand) 46%, rgba(255,255,255,.12));
  border-radius: 8px;
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 82%, var(--steam-gifts-brand) 18%);
  color: var(--steam-gifts-text);
  font: 700 13px/1.2 var(--font-base, inherit);
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  transition: border-color .18s ease, background .18s ease, transform .14s ease;
}

.steam-gifts-search-wrap .steam-gifts-invite-help-btn:hover,
.steam-gifts-search-wrap .steam-gifts-invite-help-btn:focus-visible {
  border-color: color-mix(in srgb, var(--steam-gifts-brand) 72%, rgba(255,255,255,.18));
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 72%, var(--steam-gifts-brand) 28%);
  outline: none;
}

.steam-gifts-search-wrap .steam-gifts-invite-help-btn:active {
  transform: translateY(1px);
}

.steam-gifts-invite-help-modal {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.steam-gifts-invite-help-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.steam-gifts-invite-help-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.steam-gifts-invite-help-modal__window {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  max-height: min(82vh, 620px);
  overflow-y: auto;
  padding: var(--space-6);
  border: var(--steam-gifts-border);
  border-radius: var(--steam-gifts-radius);
  background: var(--steam-gifts-panel);
  box-shadow: 0 22px 55px rgba(0,0,0,.72);
}

.steam-gifts-invite-help-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--steam-gifts-text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.steam-gifts-invite-help-modal__eyebrow {
  margin: 0 44px var(--space-2) 0;
  color: var(--steam-gifts-brand);
  font: 800 12px/1.2 var(--font-accent, inherit);
  letter-spacing: 0;
  text-transform: uppercase;
}

.steam-gifts-invite-help-modal__title {
  margin: 0 44px var(--space-4) 0;
  color: var(--steam-gifts-text);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: 0;
}

.steam-gifts-invite-help-modal__steps {
  margin: 0;
  padding-left: 22px;
  color: var(--steam-gifts-text);
}

.steam-gifts-invite-help-modal__steps li {
  margin: 0 0 var(--space-3);
  line-height: 1.55;
}

.steam-gifts-invite-help-modal__example {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid color-mix(in srgb, var(--steam-gifts-brand) 34%, rgba(255,255,255,.1));
  border-radius: 8px;
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 86%, var(--steam-gifts-brand) 14%);
  min-width: 0;
  overflow-wrap: anywhere;
}

.steam-gifts-invite-help-modal__example span {
  display: block;
  margin-bottom: 6px;
  color: var(--steam-gifts-muted);
  font-size: 12px;
  font-weight: 700;
}

.steam-gifts-invite-help-modal__example code {
  display: block;
  max-width: 100%;
  color: var(--steam-gifts-text);
  font: 700 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

@media (max-width: 640px) {
  .game-header-content .steam-gifts-search-wrap {
    height: auto;
    min-height: var(--search-h, 44px);
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 6px;
  }

  .game-header-content .steam-gifts-search-wrap .search-input {
    min-width: min(100%, 210px);
    min-height: var(--search-h, 44px);
  }

  .steam-gifts-search-wrap .steam-gifts-invite-help-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .steam-gifts-invite-help-modal__window {
    padding: var(--space-5);
  }
}

/* ========== 2) КАРТОЧКА ИГРЫ ========================================= */
.steam-game-card {
  --card-accent: var(--steam-gifts-brand);
  --card-accent-2: var(--steam-gifts-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(--steam-gifts-panel);
  border: var(--steam-gifts-border);
  border-radius: var(--steam-gifts-radius);
  box-shadow: var(--steam-gifts-shadow);
  transition: box-shadow .22s ease, border-color .22s ease, filter .22s ease;
}

.steam-game-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;
}

.steam-game-card::after {
  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(--steam-gifts-brand) 0%, transparent),
    0 0 0 0 color-mix(in srgb, var(--steam-gifts-brand) 0%, transparent);
  transition: opacity .22s ease, box-shadow .22s ease, filter .22s ease;
}

.steam-game-card:hover {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--steam-gifts-brand) 55%, rgba(255,255,255,.08)),
    0 0 20px color-mix(in srgb, var(--steam-gifts-brand) 30%, transparent),
    0 18px 44px rgba(0,0,0,.58);
  border-color: color-mix(in srgb, var(--steam-gifts-brand) 70%, #2e2e2e);
  background: color-mix(in srgb, var(--steam-gifts-panel) 90%, var(--steam-gifts-brand) 10%);
  filter: brightness(1.06);
}

.steam-game-card:hover::after,
.steam-game-card:focus-visible::after {
  opacity: 1;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--steam-gifts-brand) 75%, rgba(255,255,255,.08)) inset,
    0 0 0 2px color-mix(in srgb, var(--steam-gifts-brand) 34%, transparent),
    0 16px 42px color-mix(in srgb, var(--steam-gifts-brand) 34%, transparent);
}

.steam-game-card:focus-visible {
  outline: none;
}

.steam-game-card__sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  min-width: 56px;
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #75b71b 0%, #4e870c 100%);
  color: #f4ffd8;
  font: 800 14px/1 var(--font-accent);
  box-shadow:
    0 8px 20px rgba(73, 150, 20, .28),
    inset 0 0 0 1px rgba(255,255,255,.14);
}

.steam-game-card--sale .steam-game-card__media {
  box-shadow: inset 0 0 0 1px rgba(117, 183, 27, .22);
}

/* Обложка игры */
.steam-game-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 460 / 215;
  border-radius: var(--steam-gifts-radius);
  border: 0;
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--steam-gifts-brand) 22%, transparent), transparent 62%),
    linear-gradient(135deg, #12121d 0%, #211735 100%);
}

.steam-game-card__media::before {
  content: "Steam\A Gift";
  position: absolute;
  inset: 18% 24%;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre;
  text-align: center;
  line-height: 1.35;
  color: color-mix(in srgb, var(--steam-gifts-text) 88%, var(--steam-gifts-brand) 12%);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  border: 1px solid color-mix(in srgb, var(--steam-gifts-brand) 50%, rgba(255,255,255,.08));
  border-radius: calc(var(--steam-gifts-radius) - 4px);
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 82%, transparent);
  opacity: .92;
  pointer-events: none;
}

.steam-game-card__media img.steam-game-card__img--fallback + * {
  display: none;
}

.steam-game-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(110deg, transparent 0 38%, rgba(255,255,255,.055) 48%, transparent 58% 100%);
  transform: translateX(-110%);
  pointer-events: none;
  opacity: 0;
}

.steam-game-card__media:has(img.is-loaded)::before,
.steam-game-card__media:has(img.steam-game-card__img--fallback)::before {
  opacity: 0;
}

.steam-game-card__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.35));
  transition: opacity .16s ease, transform .25s ease;
}

.steam-game-card__media img.is-loaded {
  opacity: 1;
}

.steam-game-card__media img[src*="steamstatic.com"],
.steam-game-card__media img[src*="store_item_assets/steam/apps/"] {
  width: 100%;
  height: 100%;
  aspect-ratio: 460 / 215;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(0,0,0,.32);
}

.steam-game-card__media img.steam-game-card__img--fallback {
  object-fit: contain;
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 88%, var(--steam-gifts-brand) 12%);
  box-shadow: 0 10px 22px rgba(0,0,0,.32);
}

.steam-gift-image--fallback {
  object-fit: cover;
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 88%, var(--steam-gifts-brand) 12%);
}

.steam-gifts-loader {
  display: none !important;
}

body.is-steam-gifts .steam-gifts-loader {
  display: none !important;
}

body.is-steam-gifts-loading .products > * {
  display: none !important;
}

body.is-steam-gifts-loading #products.products {
  display: grid !important;
  grid-template-columns: 1fr !important;
  min-height: 320px;
  align-content: center;
  justify-items: stretch;
}

body.is-steam-gifts-loading #products.products::before {
  content: "Загружаем каталог Steam Gifts...";
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  padding: 34px 36px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)),
    color-mix(in srgb, var(--steam-gifts-panel-2) 92%, var(--steam-gifts-brand) 8%);
  color: color-mix(in srgb, var(--steam-gifts-text) 82%, #ffffff 18%);
  font: 600 20px/1.35 var(--font-accent);
  letter-spacing: .01em;
  text-align: center;
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}

body.is-steam-gifts-loading #products.products::after {
  content: "";
  width: 42px;
  height: 42px;
  justify-self: center;
  margin-top: -84px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.12);
  border-top-color: color-mix(in srgb, var(--steam-gifts-brand) 88%, #fff 12%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--steam-gifts-brand) 28%, transparent);
  animation: steam-gifts-spin .9s linear infinite;
}

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

body.is-steam-gifts-loading #service-desc,
body.is-steam-gifts-loading #faq,
body.is-steam-gifts-loading footer,
body.is-steam-gifts-loading .footer {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  margin: 0;
}

.steam-game-card[data-art="poster"] .steam-game-card__media {
  aspect-ratio: 4 / 3;
}

.steam-game-card[data-art="poster"] .steam-game-card__media img {
  width: auto;
  height: min(88%, 260px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 18px 34px rgba(0,0,0,.42);
}

.steam-game-card:has(.steam-game-card__status) .steam-game-card__edition-name,
.steam-game-card:has(.steam-game-card__status) .steam-game-card__price-row {
  display: none;
}

.steam-game-card:has(.steam-game-card__status) .steam-game-card__change-btn {
  margin-top: auto;
  min-height: 40px;
  border-color: color-mix(in srgb, var(--text-2, #fff) 10%, transparent);
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 92%, #000 8%);
  color: var(--steam-gifts-text);
  box-shadow: none;
}

.steam-game-card:has(.steam-game-card__status) .steam-game-card__change-btn:hover {
  border-color: color-mix(in srgb, var(--text-2, #fff) 18%, transparent);
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 84%, #fff 4%);
  color: var(--steam-gifts-text);
  box-shadow: none;
}

.steam-game-card:hover .steam-game-card__media img {
  transform: none;
}

/* Название игры */
.steam-game-card__title {
  font-size: var(--game-text-md, 16px);
  font-weight: 600;
  color: var(--steam-gifts-text);
  margin: 0;
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Цена или "Выберите издание" */
.steam-game-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  min-height: 40px;
}

/* Когда нет цены и счетчика (только кнопка "Изменить") */
.steam-game-card__price-row:empty {
  display: none;
}

.steam-game-card__price {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  height: 40px;
  font-weight: 600;
  font-family: var(--font-accent);
  color: var(--steam-gifts-text);
  background: rgba(255,255,255,.02);
  border: 1px solid #5a5a5a;
  border-radius: var(--steam-gifts-radius);
  white-space: nowrap;
  min-width: 0;
  font-size: var(--game-text-md, 16px);
}

.steam-game-card__select-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  height: 40px;
  font-size: var(--game-text-sm, 14px);
  color: var(--steam-gifts-muted);
  font-weight: 500;
  background: rgba(255,255,255,.02);
  border: 1px solid #5a5a5a;
  border-radius: var(--steam-gifts-radius);
  white-space: nowrap;
  min-width: 0;
}

.steam-game-card__select-text--ready {
  color: var(--steam-gifts-text);
  border-color: color-mix(in srgb, var(--steam-gifts-brand) 46%, #4d4d4d);
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 86%, var(--steam-gifts-brand) 14%);
}

/* Индикация выбранного издания (вместо App ID) */
.steam-game-card__edition-name {
  font-size: var(--game-text-sm, 14px);
  color: var(--steam-gifts-muted);
  margin-top: -4px;
  margin-bottom: var(--space-2);
  font-weight: 400;
  line-height: 1.25;
  min-height: 2.5em;
  opacity: 0.8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Кнопка добавления "+" */
.steam-game-card__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(--steam-gifts-text);
  background: radial-gradient(120% 120% at 50% 0%, var(--steam-gifts-brand) 0%, var(--steam-gifts-brand-2) 65%);
  box-shadow: 0 10px 26px var(--steam-gifts-brand-soft), 0 0 0 1px rgba(255,255,255,.08) inset;
  transition: box-shadow .2s ease, filter .2s ease;
  font-weight: 700;
}

.steam-game-card__add-btn:hover {
  filter: brightness(1.12);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.16) inset,
    0 0 18px color-mix(in srgb, var(--steam-gifts-brand) 55%, transparent),
    0 16px 36px var(--steam-gifts-brand-soft);
}

.steam-game-card__add-btn:active {
  transform: none;
}

.steam-game-card__change-btn {
  font-size: var(--game-text-sm, 14px);
  padding: var(--space-2) var(--space-4);
  width: 100%;
  margin-top: var(--space-2);
  border-radius: var(--steam-gifts-radius);
  background: var(--steam-gifts-panel-2);
  border: var(--steam-gifts-border);
  color: var(--steam-gifts-text);
  font-weight: 500;
  cursor: pointer;
}

.steam-game-card__change-btn:hover {
  border-color: color-mix(in srgb, var(--steam-gifts-brand) 70%, #2e2e2e);
  color: var(--steam-gifts-brand);
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 88%, var(--steam-gifts-brand) 12%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--steam-gifts-brand) 35%, transparent),
    0 0 18px color-mix(in srgb, var(--steam-gifts-brand) 28%, transparent);
}

/* Счётчик (когда в корзине) */
.steam-game-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 var(--space-4);
  border-radius: var(--steam-gifts-radius);
  border: 1px solid color-mix(in srgb, var(--steam-gifts-brand) 46%, #4d4d4d);
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 84%, var(--steam-gifts-brand) 16%);
  color: var(--steam-gifts-text);
  font-size: var(--game-text-sm, 14px);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steam-game-card__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(--steam-gifts-panel-2);
  border: var(--steam-gifts-border);
  border-radius: var(--steam-gifts-radius);
}


.steam-game-card__counter .count {
  min-width: 2ch;
  text-align: center;
  font-weight: 600;
  line-height: 1;
  color: var(--steam-gifts-text);
}

.steam-game-card__counter .inc,
.steam-game-card__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(--steam-gifts-text);
  transition: box-shadow .2s ease, filter .2s ease;
  aspect-ratio: 1 / 1;
}

.steam-game-card__counter .dec {
  background: linear-gradient(180deg, #2a2a2a, #232323);
  box-shadow: 0 6px 14px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset;
}

.steam-game-card__counter .inc {
  background: radial-gradient(140% 140% at 50% 20%, var(--steam-gifts-brand) 0 60%, var(--steam-gifts-brand-2) 100%);
  box-shadow: 0 6px 16px var(--steam-gifts-brand-soft), 0 0 0 1px rgba(255,255,255,.06) inset;
}

/* ========== 3) МОДАЛКА ВЫБОРА ИЗДАНИЯ ================================ */
.steam-edition-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.steam-edition-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

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

.steam-edition-modal__window {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background: var(--steam-gifts-panel);
  border: var(--steam-gifts-border);
  border-radius: var(--steam-gifts-radius);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Заголовок модалки */
.steam-edition-modal__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.steam-edition-modal__logo {
  width: 176px;
  height: 82px;
  border-radius: var(--steam-gifts-radius);
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #11111a 0%, #221638 100%);
  color: transparent;
}

.steam-edition-modal__header-content {
  flex: 1;
  min-width: 0;
}

.steam-edition-modal__title {
  font-size: var(--game-h2, 34px);
  font-weight: 700;
  color: var(--steam-gifts-text);
  margin: 0 0 var(--space-2) 0;
  font-family: var(--font-heading);
  overflow-wrap: anywhere;
}

.steam-edition-modal__app-id {
  font-size: var(--game-text-sm, 14px);
  color: var(--steam-gifts-muted);
  margin: 0;
}

.steam-edition-modal__close {
  position: absolute;
  right: var(--space-4);
  top: var(--space-4);
  width: var(--steam-gifts-close-btn-size, 36px);
  height: var(--steam-gifts-close-btn-size, 36px);
  min-width: var(--steam-gifts-close-btn-size, 36px);
  min-height: var(--steam-gifts-close-btn-size, 36px);
  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(--steam-gifts-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;
}
.steam-edition-modal__close:hover {
  background: var(--close-btn-hover-bg, rgba(168, 85, 247, 0.15));
  color: var(--close-btn-hover-color, var(--steam-gifts-brand));
  /* Используем токен для единого hover-эффекта (адаптируем для Steam Gifts) */
  box-shadow:
    inset 0 0 0 1px var(--steam-gifts-brand),
    0 0 8px var(--steam-gifts-brand-soft, rgba(167,94,255,.35));
}

.steam-edition-modal__close:focus {
  outline: none;
}

.steam-edition-modal__close:focus-visible {
  outline: 2px solid var(--steam-gifts-brand);
  outline-offset: 3px;
  border-color: color-mix(in srgb, var(--steam-gifts-brand) 72%, rgba(255, 255, 255, 0.2));
  box-shadow: 0 0 0 3px var(--steam-gifts-brand-soft, rgba(167, 94, 255, 0.35));
}

/* Заголовок секции */
.steam-edition-modal__section-title {
  font-size: var(--game-text-lg, 18px);
  font-weight: 700;
  color: var(--steam-gifts-text);
  margin-bottom: var(--space-4);
}

/* Подсказка в модалке издания */
.steam-edition-modal__hint {
  font-size: var(--game-text-sm, 14px);
  color: var(--steam-gifts-muted);
  margin-bottom: var(--space-8);
  line-height: 1.5;
}

/* Список изданий - всегда вертикально (как на телефоне) */
.steam-edition-modal__editions {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  max-height: 400px;
  padding-bottom: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--steam-gifts-brand-soft) transparent;
}

/* Разделители hr-section в модалке */
.steam-edition-modal__window .hr-section {
  width: 100%;
  height: 2px;
  margin-block: var(--space-8);
  border: none;
  background: linear-gradient(
    90deg,
    rgba(167, 94, 255, 0) 0%,
    rgba(167, 94, 255, 0.35) 25%,
    rgba(167, 94, 255, 0.75) 50%,
    rgba(167, 94, 255, 0.35) 75%,
    rgba(167, 94, 255, 0) 100%
  );
  box-shadow: 0 0 8px rgba(167, 94, 255, 0.15);
  padding: 0;
}

/* Разделители между изданиями (фирменные) */
.steam-edition-card:not(:last-child) {
  border-bottom: var(--steam-gifts-border);
  margin-bottom: 0;
  padding-bottom: var(--space-4);
}

.steam-edition-card:not(:first-child) {
  padding-top: var(--space-4);
}

.steam-edition-modal__editions::-webkit-scrollbar {
  width: 6px;
}

.steam-edition-modal__editions::-webkit-scrollbar-track {
  background: transparent;
}

.steam-edition-modal__editions::-webkit-scrollbar-thumb {
  background: var(--steam-gifts-brand-soft);
  border-radius: 3px;
}

.steam-edition-modal__editions::-webkit-scrollbar-thumb:hover {
  background: var(--steam-gifts-brand);
}

/* Карточка издания - всегда на всю ширину */
.steam-edition-card {
  width: 100%;
  padding: var(--space-4);
  background: var(--steam-gifts-panel-2);
  border: none; /* Убираем border полностью, используем только ::before */
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease; /* Убираем transition для border */
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}

/* Первая и последняя карточка с закругленными углами */
.steam-edition-modal__editions > .steam-edition-card:first-child {
  border-top-left-radius: var(--steam-gifts-radius);
  border-top-right-radius: var(--steam-gifts-radius);
}

.steam-edition-modal__editions > .steam-edition-card:last-child {
  border-bottom-left-radius: var(--steam-gifts-radius);
  border-bottom-right-radius: var(--steam-gifts-radius);
  /* border-bottom убран, так как border полностью убран с карточки */
}

.steam-edition-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;
  border: none;
  transition: filter 0.2s ease; /* Убираем transition для border, чтобы не было белого бордюра */
}

.steam-edition-card:hover:not(.selected) {
  /* НЕ меняем border, border визуально через ::before */
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 88%, var(--steam-gifts-brand) 12%);
  filter: brightness(1.05);
}

.steam-edition-card:hover:not(.selected)::before {
  border: 1px solid color-mix(in srgb, var(--steam-gifts-brand) 90%, #fff);
  box-shadow: none !important; /* Сразу убираем внутреннюю тень без transition */
  /* Используем filter для свечения, которое правильно работает со скруглениями */
  filter:
    drop-shadow(0 0 10px var(--steam-gifts-brand-soft))
    drop-shadow(0 0 18px color-mix(in srgb, var(--steam-gifts-brand) 22%, transparent));
  /* Убираем transition для border, чтобы не было белого бордюра при наведении */
  transition: filter 0.2s ease;
}

.steam-edition-card.selected {
  /* НЕ меняем border, border визуально через ::before */
  border: none; /* Убираем border полностью */
  background: var(--steam-gifts-panel-2);
  position: relative;
}

.steam-edition-card.selected .steam-edition-card__name {
  color: var(--steam-gifts-brand);
  font-weight: 700;
  text-shadow: 0 0 12px var(--steam-gifts-brand-soft), 0 0 20px var(--steam-gifts-brand-soft);
}

.steam-edition-card.selected .steam-edition-card__price {
  color: var(--steam-gifts-brand);
  text-shadow: 0 0 12px var(--steam-gifts-brand-soft), 0 0 20px var(--steam-gifts-brand-soft);
}

/* Подсветка через ::before для идеальных скруглений */
.steam-edition-card.selected::before {
  content: "";
  position: absolute;
  inset: 0; /* Точно по краю для идеальных скруглений */
  border-radius: inherit;
  border: 1.5px solid var(--steam-gifts-brand);
  pointer-events: none;
  z-index: 0;
  /* Используем filter для свечения, которое правильно работает со скруглениями */
  filter: drop-shadow(0 0 14px var(--steam-gifts-brand-soft));
}

/* Усиление свечения при hover для выбранной карточки */
.steam-edition-card.selected:hover::before {
  filter: 
    drop-shadow(0 0 14px var(--steam-gifts-brand-soft))
    drop-shadow(0 0 20px var(--steam-gifts-brand-soft))
    drop-shadow(0 0 30px var(--steam-gifts-brand-soft));
}

.steam-edition-card__name {
  font-size: var(--game-text-md, 16px);
  font-weight: 600;
  color: var(--steam-gifts-text);
  margin: 0;
  line-height: 1.3;
}

.steam-edition-card__price {
  font-size: var(--game-text-lg, 18px);
  font-weight: 700;
  color: var(--steam-gifts-brand);
  font-family: var(--font-accent);
  margin-top: auto;
}

/* Скрываем цену в карточке издания (теперь цены только в модалке выбора страны) */
.steam-edition-card__price {
  display: none;
}

/* ========== 4) МОДАЛКА ВЫБОРА СТРАНЫ ====================================== */
.steam-country-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.steam-country-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

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

.steam-country-modal__window {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background: var(--steam-gifts-panel);
  border: var(--steam-gifts-border);
  border-radius: var(--steam-gifts-radius);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.steam-country-modal__close {
  position: absolute;
  right: var(--space-4);
  top: var(--space-4);
  width: var(--steam-gifts-close-btn-size, 36px);
  height: var(--steam-gifts-close-btn-size, 36px);
  min-width: var(--steam-gifts-close-btn-size, 36px);
  min-height: var(--steam-gifts-close-btn-size, 36px);
  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(--steam-gifts-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;
}
.steam-country-modal__close:hover {
  background: var(--close-btn-hover-bg, rgba(168, 85, 247, 0.15));
  color: var(--close-btn-hover-color, var(--steam-gifts-brand));
  /* Используем токен для единого hover-эффекта (адаптируем для Steam Gifts) */
  box-shadow:
    inset 0 0 0 1px var(--steam-gifts-brand),
    0 0 8px var(--steam-gifts-brand-soft, rgba(167,94,255,.35));
}

.steam-country-modal__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.steam-country-modal__logo {
  width: 176px;
  height: 82px;
  border-radius: var(--steam-gifts-radius);
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #11111a 0%, #221638 100%);
  color: transparent;
}

.steam-country-modal__header-content {
  flex: 1;
  min-width: 0;
}

.steam-country-modal__title {
  font-size: var(--game-h2, 34px);
  font-weight: 700;
  color: var(--steam-gifts-text);
  margin: 0 0 var(--space-2) 0;
  font-family: var(--font-heading);
  overflow-wrap: anywhere;
}

.steam-country-modal__edition-name {
  font-size: var(--game-text-sm, 14px);
  color: var(--steam-gifts-muted);
  margin: 0;
}

.steam-country-modal__section-title {
  font-size: var(--game-text-lg, 18px);
  font-weight: 700;
  color: var(--steam-gifts-text);
  margin-bottom: var(--space-8);
  line-height: 1.2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.steam-country-modal__countries {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  max-height: 400px;
  padding: 4px 1px 12px;
  border-radius: var(--steam-gifts-radius);
  scroll-padding-top: 4px;
  scroll-padding-bottom: 12px;
  overscroll-behavior: contain;
  /* Скрываем полосу прокрутки, но оставляем прокрутку */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE и Edge */
}

/* Скрываем полосу прокрутки в WebKit браузерах */
.steam-country-modal__countries::-webkit-scrollbar {
  display: none;
}

.steam-country-modal__window .hr-section {
  width: 100%;
  height: 2px;
  margin-block: var(--space-8);
  border: none;
  background: linear-gradient(
    90deg,
    rgba(167, 94, 255, 0) 0%,
    rgba(167, 94, 255, 0.35) 25%,
    rgba(167, 94, 255, 0.75) 50%,
    rgba(167, 94, 255, 0.35) 75%,
    rgba(167, 94, 255, 0) 100%
  );
  box-shadow: 0 0 8px rgba(167, 94, 255, 0.15);
  padding: 0;
}

.steam-country-card:not(:last-child) {
  border-bottom: var(--steam-gifts-border);
  margin-bottom: 0;
  padding-bottom: var(--space-4);
}

.steam-country-card:not(:first-child) {
  padding-top: var(--space-4);
}

.steam-country-modal__countries::-webkit-scrollbar {
  width: 6px;
}

.steam-country-modal__countries::-webkit-scrollbar-track {
  background: transparent;
}

.steam-country-modal__countries::-webkit-scrollbar-thumb {
  background: var(--steam-gifts-brand-soft);
  border-radius: 3px;
}

.steam-country-modal__countries::-webkit-scrollbar-thumb:hover {
  background: var(--steam-gifts-brand);
}

.steam-country-card {
  width: 100%;
  padding: var(--space-4);
  background: var(--steam-gifts-panel-2);
  border: none; /* Убираем border полностью, используем только ::before */
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease; /* Убираем transition для border */
  display: flex;
  align-items: center;
  gap: var(--space-4);
  position: relative;
}

.steam-country-modal__countries > .steam-country-card:first-child {
  border-top-left-radius: var(--steam-gifts-radius);
  border-top-right-radius: var(--steam-gifts-radius);
}

.steam-country-modal__countries > .steam-country-card:last-child {
  border-bottom-left-radius: var(--steam-gifts-radius);
  border-bottom-right-radius: var(--steam-gifts-radius);
  /* border-bottom убран, так как border полностью убран с карточки */
}

.steam-country-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;
  border: none; /* По умолчанию без border */
  transition: filter 0.2s ease; /* Убираем transition для border, чтобы не было белого бордюра */
}

.steam-country-card:hover:not(.selected) {
  /* НЕ меняем border, border визуально через ::before */
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 88%, var(--steam-gifts-brand) 12%);
  filter: brightness(1.05);
}

.steam-country-card:hover:not(.selected)::before {
  border: 0;
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--steam-gifts-brand) 88%, #fff),
    inset 0 0 18px color-mix(in srgb, var(--steam-gifts-brand) 14%, transparent) !important;
  filter: none;
  transition: box-shadow 0.2s ease;
}

.steam-country-card.selected {
  /* НЕ меняем border, border визуально через ::before */
  border: none; /* Убираем border полностью */
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 84%, var(--steam-gifts-brand) 16%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--steam-gifts-brand) 18%, transparent);
}

.steam-country-card.selected .steam-country-card__name,
.steam-country-card.selected .steam-country-card__price {
  color: var(--steam-gifts-brand);
  font-weight: 700;
  text-shadow: 0 0 12px var(--steam-gifts-brand-soft), 0 0 20px var(--steam-gifts-brand-soft);
}

/* Подсветка через ::before для идеальных скруглений */
.steam-country-card.selected::before {
  content: "";
  position: absolute;
  inset: 0; /* Точно по краю для идеальных скруглений */
  border-radius: inherit;
  border: 0;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    inset 0 0 0 1.5px var(--steam-gifts-brand),
    inset 0 0 20px color-mix(in srgb, var(--steam-gifts-brand) 16%, transparent);
  filter: none;
}

/* Усиление свечения при hover для выбранной карточки страны */
.steam-country-card.selected:hover::before {
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--steam-gifts-brand) 92%, #fff),
    inset 0 0 24px color-mix(in srgb, var(--steam-gifts-brand) 22%, transparent);
  filter: none;
}

.steam-country-card__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 30px;
  min-width: 42px;
  min-height: 30px;
  border-radius: 5px;
  overflow: hidden;
  background: #0f1320;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0,0,0,.16) inset;
  position: relative;
}

.steam-country-card__flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.steam-country-card__flag img,
.cart-item__country-flag img,
.steam-country-flag-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.steam-country-card__flag:empty::before {
  content: attr(data-country-code);
  color: var(--steam-gifts-muted);
  font: 700 11px/1 var(--font-accent);
  letter-spacing: 0;
}

.steam-country-card__flag,
.cart-item__country-flag{
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  text-transform: none !important;
  letter-spacing: 0 !important;
}


.steam-country-card__name {
  font-size: var(--game-text-md, 16px);
  font-weight: 600;
  color: var(--steam-gifts-text);
  flex: 1;
  margin: 0;
  line-height: 1.3;
}

.steam-country-card__price {
  font-size: var(--game-text-lg, 18px);
  font-weight: 700;
  color: var(--steam-gifts-text);
  font-family: var(--font-accent);
  margin-left: auto;
  margin-right: var(--space-8);
  padding-right: var(--space-2);
}

.steam-country-card--sale .steam-country-card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  line-height: 1;
}

.steam-country-card__price-current {
  color: var(--steam-gifts-text);
}

.steam-country-card__price-old {
  color: rgba(255,255,255,.48);
  font-size: var(--game-text-sm, 14px);
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(255,255,255,.42);
}

.steam-country-card.selected .steam-country-card__price-current,
.steam-country-card:hover:not(.selected) .steam-country-card__price-current {
  color: var(--steam-gifts-brand);
  text-shadow: 0 0 10px var(--steam-gifts-brand-soft);
}

.steam-country-card.selected .steam-country-card__price-old,
.steam-country-card:hover:not(.selected) .steam-country-card__price-old {
  color: rgba(255,255,255,.56);
  text-shadow: none;
}

.steam-country-card:hover:not(.selected) .steam-country-card__price {
  color: var(--steam-gifts-brand);
  text-shadow: 0 0 10px var(--steam-gifts-brand-soft);
}

.steam-country-card__checkmark {
  position: absolute;
  top: 50%;
  right: var(--space-4);
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--steam-gifts-brand);
  color: transparent;
  border-radius: 50%;
  font-size: 0;
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 0 8px var(--steam-gifts-brand-soft);
  flex-shrink: 0;
  overflow: hidden;
}

.steam-country-card__checkmark::before {
  content: '';
  width: 7px;
  height: 12px;
  border-right: 2px solid var(--steam-gifts-panel);
  border-bottom: 2px solid var(--steam-gifts-panel);
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

.steam-country-modal__selected-count {
  font-size: var(--game-text-lg, 18px);
  font-weight: 700;
  color: var(--steam-gifts-brand);
  margin-left: var(--space-2);
  line-height: 1.2;
}

.steam-country-modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.steam-country-modal__actions-row {
  width: 100%;
}

.steam-country-modal__back-btn {
  width: 100%;
  cursor: pointer;
  padding: var(--space-4) var(--space-6);
  border: var(--steam-gifts-border);
  border-radius: var(--steam-gifts-radius);
  font-size: var(--game-text-md, 16px);
  font-weight: 600;
  color: var(--steam-gifts-text);
  background: var(--steam-gifts-panel-2);
  font-family: var(--font-accent);
  transition: all 0.2s ease;
  min-height: 48px;
}

.steam-country-modal__back-btn:hover {
  border-color: color-mix(in srgb, var(--steam-gifts-brand) 45%, #2e2e2e);
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 92%, var(--steam-gifts-brand) 8%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--steam-gifts-brand) 25%, rgba(255,255,255,.06)) inset;
}

.steam-country-modal__back-btn:active {
  transform: scale(0.98);
}

.steam-country-modal__confirm-btn {
  width: 100%;
  cursor: pointer;
  padding: var(--space-4) var(--space-6);
  border: none; /* Убираем border */
  border-radius: var(--steam-gifts-radius);
  font-size: var(--game-text-md, 16px);
  font-weight: 700;
  color: var(--steam-gifts-brand);
  background: var(--steam-gifts-panel-2);
  font-family: var(--font-accent);
  transition: all 0.2s ease;
  min-height: 48px;
  position: relative;
  /* В спокойном состоянии без свечения */
  box-shadow: none;
}

/* Интенсивный яркий бордюр и свечение только в активном состоянии (не disabled) */
.steam-country-modal__confirm-btn:not(:disabled) {
  box-shadow:
    inset 0 0 0 1.5px var(--steam-gifts-brand),
    0 0 14px var(--steam-gifts-brand-soft);
}

/* Усиление свечения при hover для активных кнопок */
.steam-country-modal__confirm-btn:hover:not(:disabled) {
  box-shadow:
    inset 0 0 0 1.5px var(--steam-gifts-brand),
    0 0 14px var(--steam-gifts-brand-soft),
    0 0 20px var(--steam-gifts-brand-soft),
    0 0 30px var(--steam-gifts-brand-soft);
}

.steam-country-modal__confirm-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.steam-country-modal__confirm-btn:disabled {
  background: var(--steam-gifts-panel-2);
  border: none;
  color: var(--steam-gifts-muted);
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Плашка страны в корзине */
.cart-item__country {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-2);
  background: var(--steam-gifts-panel-2);
  border: var(--steam-gifts-border);
  border-radius: var(--steam-gifts-radius);
  cursor: default;
  pointer-events: none;
  transition: none;
  margin-top: var(--space-2);
  width: 100%;
}

.cart-item__country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 18px;
  min-width: 24px;
  min-height: 18px;
  border-radius: 3px;
  overflow: hidden;
  background: #0f1320;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  position: relative;
}

.cart-item__country-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cart-item__country-flag:empty::before {
  content: attr(data-country-code);
  color: var(--steam-gifts-muted);
  font: 700 10px/1 var(--font-accent);
  letter-spacing: 0;
}

.cart-item__country-name {
  font-size: var(--game-text-sm, 14px);
  color: var(--steam-gifts-text);
  font-weight: 500;
}

/* Кнопка добавления */
.steam-edition-modal__actions {
  display: flex;
}

.steam-edition-modal__add-btn {
  width: 100%;
  cursor: pointer;
  padding: var(--space-4) var(--space-6);
  border: var(--steam-gifts-border);
  border-radius: var(--steam-gifts-radius);
  font-size: var(--game-text-md, 16px);
  font-weight: 600;
  color: var(--steam-gifts-text);
  background: var(--steam-gifts-panel-2);
  font-family: var(--font-accent);
  transition: all 0.2s ease;
  min-height: 48px;
}
.steam-edition-modal__add-btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--steam-gifts-brand) 45%, #2e2e2e);
  color: var(--steam-gifts-brand);
  text-shadow: 0 0 8px var(--steam-gifts-brand-soft);
}
.steam-edition-modal__add-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.steam-edition-modal__add-btn:disabled {
  background: var(--steam-gifts-panel-2);
  border-color: rgba(255,255,255,.06);
  color: var(--steam-gifts-muted);
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ========== 4) АДАПТИВ =============================================== */

/* Мобильные устройства */
@media (max-width: 768px) {
  .steam-edition-modal__window,
  .steam-country-modal__window {
    max-width: 100%;
    padding: var(--space-4);
    max-height: 95vh;
  }

  .steam-edition-modal__header,
  .steam-country-modal__header {
    flex-direction: column;
    gap: var(--space-3);
  }

  .steam-edition-modal__logo,
  .steam-country-modal__logo {
    width: 104px;
    height: 58px;
  }

  .steam-edition-modal__header-content,
  .steam-country-modal__header-content {
    width: 100%;
  }

  .steam-edition-modal__title,
  .steam-country-modal__title {
    font-size: var(--game-h3, 22px);
  }

  .steam-edition-modal__editions,
  .steam-country-modal__countries {
    flex-direction: column;
    overflow-x: visible;
  }

  .steam-edition-card,
  .steam-country-card {
    min-width: 100%;
    max-width: 100%;
  }

  .steam-game-card__change-btn {
    font-size: var(--game-text-sm, 14px);
    padding: 0 var(--space-2);
    min-width: 70px;
  }
}

@media (max-width: 530px) {
  .steam-game-card__price-row:has(.steam-game-card__add-btn) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }

  .steam-game-card__price-row:has(.steam-game-card__add-btn) .steam-game-card__select-text,
  .steam-game-card__price-row:has(.steam-game-card__add-btn) .steam-game-card__price,
  .steam-game-card__price-row:has(.steam-game-card__add-btn) .steam-game-card__status {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
    padding-inline: var(--space-3);
  }

  .steam-game-card__price-row:has(.steam-game-card__add-btn) .steam-game-card__add-btn {
    width: 100%;
    height: 42px;
    border-radius: 14px;
    flex: 0 0 auto;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .steam-edition-modal__window,
  .steam-country-modal__window {
    padding: var(--space-3);
    border-radius: var(--steam-gifts-radius);
  }

  .steam-edition-modal__header,
  .steam-country-modal__header {
    padding-bottom: var(--space-3);
  }

  .steam-edition-modal__title {
    font-size: 20px;
  }

  .steam-game-card {
    padding: var(--space-4) var(--space-3) var(--space-3);
  }
}

/* ========== АДАПТИВ ДЛЯ STEAM ПОДАРКОВ (из game.css) ========== */

/* ======================================================================
   STEAM GIFTS — MOBILE CART: привести к виду "как на играх"
   (фиолетовая кнопка, нормальный футер, карточки и итог)
   ВСТАВИТЬ В КОНЕЦ steam-gifts.css
   ====================================================================== */

   @media (max-width: 755px){

    /* 1) Сам шит + тело */
   #cart-drawer .cart-drawer__sheet{
      background: var(--steam-gifts-panel-2) !important;
      border-top-left-radius: 20px !important;
      border-top-right-radius: 20px !important;
      box-shadow: 0 -20px 40px rgba(0,0,0,.6) !important;
      padding: 8px 0 0 !important;
      width: min(100%, 560px) !important;
      max-width: 560px !important;
    }
  
    #cart-drawer .cart-drawer__body{
      padding: 8px 16px !important;
      background: transparent !important;
      max-height: 56vh !important;
      overflow: auto !important;
    }
  
    #cart-drawer .cart-list{ gap: 10px !important; }
  
    /* 2) Хедер (Корзина + удалить) */
    #cart-drawer .cart-drawer__header{
      padding: 8px 16px 6px !important;
    }
    #cart-drawer .cart-drawer__header h3{
      font-size: 18px !important;
      font-weight: 800 !important;
    }
    #cart-drawer .cart-drawer__clear{
      color: var(--steam-gifts-muted) !important;
      opacity: .9 !important;
    }
    #cart-drawer .cart-drawer__clear:hover{
      color:#ff6b6b !important;
    }
  
    /* 3) Карточки товаров */
    #cart-drawer .cart-item{
      background: var(--steam-gifts-panel) !important;
      border: 1px solid rgba(255,255,255,.08) !important;
      border-radius: 16px !important;
      padding: 12px !important;
      grid-template-columns: minmax(0, 1fr) auto !important;
      gap: 12px !important;
    }
    #cart-drawer .cart-item > div:first-child{
      min-width: 0 !important;
    }
    #cart-drawer .cart-item__title{
      font-weight: 600 !important;
      font-size: 14px !important;
      color: var(--steam-gifts-text) !important;
      display: -webkit-box !important;
      -webkit-line-clamp: 2 !important;
      -webkit-box-orient: vertical !important;
      overflow: hidden !important;
      line-height: 1.2 !important;
    }
    #cart-drawer .cart-item__price{
      color: var(--steam-gifts-brand) !important;
      font-weight: 700 !important;
      font-size: 14px !important;
      font-family: var(--font-accent) !important;
    }
  
    /* 4) Счётчик +/- как на играх */
    #cart-drawer .cart-qty{ gap: 8px !important; }
    #cart-drawer .cart-qty button{
      width: 34px !important;
      height: 34px !important;
      border-radius: 10px !important;
      background: transparent !important;
      border: 0 !important;
      color: var(--steam-gifts-brand) !important;
      font-weight: 800 !important;
    }
    #cart-drawer .cart-qty input{
      width: 48px !important;
      height: 34px !important;
      border-radius: 10px !important;
      border: 0 !important;
      background: #1a1a1a !important;
      color: #fff !important;
      text-align: center !important;
      font-weight: 700 !important;
      font-family: var(--font-accent) !important;
    }
  
    /* 5) Футер: итог + большая фиолетовая кнопка */
    #cart-drawer .cart-drawer__footer{
      padding: 12px 16px 16px !important;
      background: transparent !important; /* как на играх */
      border-top-left-radius: 0 !important;
      border-top-right-radius: 0 !important;
      box-shadow: none !important;
      gap: 10px !important;
    }
  
    #cart-drawer .cart-total{
      display:flex !important;
      align-items:baseline !important;
      justify-content:space-between !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      color: var(--steam-gifts-text) !important;
    }
    /* если сумма отдельным элементом — подсветим */
    #cart-drawer .cart-total :is(.sum, .total, .amount, .value, strong){
      color: var(--steam-gifts-text) !important;
    }
  
    /* Кнопка оплаты — применяем к любым вариантам разметки */
    #cart-drawer .cart-drawer__footer :is(button, a, .btn, .pay-btn, .checkout-btn, #pay, [data-pay]){
      width: 100% !important;
      height: 56px !important;
      border-radius: 16px !important;
      border: none !important; /* Убираем border */
      cursor: pointer !important;
      font-weight: 800 !important;
      font-family: var(--font-accent) !important;
      color: var(--steam-gifts-brand) !important;
      background: var(--steam-gifts-panel-2, var(--panel-2)) !important;
      transition: all 0.2s ease !important;
      position: relative !important;
      /* В спокойном состоянии без свечения */
      box-shadow: none !important;
    }
    /* Интенсивный яркий бордюр и свечение только в активном состоянии (не disabled) */
    #cart-drawer .cart-drawer__footer :is(button, a, .btn, .pay-btn, .checkout-btn, #pay, [data-pay]):not(:disabled) {
      box-shadow:
        inset 0 0 0 1.5px var(--steam-gifts-brand),
        0 0 14px var(--steam-gifts-brand-soft, rgba(167,94,255,.35)) !important;
    }
    /* Усиление свечения при hover для активных кнопок оплаты */
    #cart-drawer .cart-drawer__footer :is(button, a, .btn, .pay-btn, .checkout-btn, #pay, [data-pay]):hover:not(:disabled) {
      box-shadow:
        inset 0 0 0 1.5px var(--steam-gifts-brand),
        0 0 14px var(--steam-gifts-brand-soft, rgba(167,94,255,.35)),
        0 0 20px var(--steam-gifts-brand-soft, rgba(167,94,255,.35)),
        0 0 30px var(--steam-gifts-brand-soft, rgba(167,94,255,.35)) !important;
    }
    #cart-drawer .cart-drawer__footer :is(button, a, .btn, .pay-btn, .checkout-btn, #pay, [data-pay]):active:not(:disabled){
      transform: translateY(1px) !important;
    }
    #cart-drawer .cart-drawer__footer :is(button, a, .btn, .pay-btn, .checkout-btn, #pay, [data-pay]):disabled {
      box-shadow: none !important;
    }
  
    /* Если у тебя реальная disabled-кнопка — делаем её НЕ серой “полосой” */
    #cart-drawer .cart-drawer__footer :is(button, .btn)[disabled],
    #cart-drawer .cart-drawer__footer :is(button, .btn).is-disabled{
      opacity: .45 !important;
      filter: saturate(.8) !important;
      background: color-mix(in srgb, var(--steam-gifts-brand) 55%, #2a2a2a) !important;
      box-shadow: none !important;
      cursor: not-allowed !important;
      transform: none !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-content .steam-gifts-search-wrap{
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: var(--space-4) 0 0 !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; }
}

/* Плашка "Игры не найдены" - по центру сетки */
#products.products #steam-gifts-no-results {
  grid-column: 1 / -1;
  justify-self: center;
  align-self: center;
  margin: var(--space-6) 0;
  position: static;
  left: auto;
  transform: none;
}

/* ≤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;
  }
}

/* ========== Batch 2: visual/perf refinements ========================= */
html.steam-gifts-route .game-logo {
  width: 112px;
  height: 112px;
  padding: 8px;
  object-fit: contain;
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 86%, var(--steam-gifts-brand) 14%);
}

.steam-game-card {
  min-width: 0;
  min-height: 100%;
}

.steam-game-card__media img,
.steam-game-card__media img[src*="steamstatic.com"],
.steam-game-card__media img[src*="store_item_assets/steam/apps/"] {
  object-fit: contain;
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 90%, var(--steam-gifts-brand) 10%);
}

.steam-edition-modal__logo,
.steam-country-modal__logo {
  object-fit: contain;
  padding: 6px;
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 86%, var(--steam-gifts-brand) 14%);
}

body.is-steam-gifts-loading #products.products {
  min-height: 112px;
  align-content: start;
}

body.is-steam-gifts-loading #products.products::before {
  min-height: 72px;
  padding: 18px 20px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.3;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

body.is-steam-gifts-loading #products.products::after {
  width: 24px;
  height: 24px;
  margin-top: -54px;
  border-width: 2px;
}

#products.products .steam-gifts-load-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0 2px;
  min-width: 0;
}

.steam-gifts-load-more__button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--steam-gifts-brand) 48%, rgba(255,255,255,.1));
  border-radius: 8px;
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 78%, var(--steam-gifts-brand) 22%);
  color: var(--steam-gifts-text);
  font: 700 14px/1.2 var(--font-base, inherit);
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, filter .18s ease;
}

.steam-gifts-load-more__button:hover,
.steam-gifts-load-more__button:focus-visible {
  border-color: color-mix(in srgb, var(--steam-gifts-brand) 72%, rgba(255,255,255,.18));
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 68%, var(--steam-gifts-brand) 32%);
  outline: none;
  filter: brightness(1.06);
}

.steam-gifts-load-more__meta {
  color: var(--steam-gifts-muted);
  font-size: 13px;
  line-height: 1.3;
}

@media (max-width: 640px) {
  html.steam-gifts-route .game-logo {
    width: 76px;
    height: 76px;
    padding: 6px;
  }

  #products.products .steam-gifts-load-more {
    flex-direction: column;
    gap: 6px;
  }

  .steam-gifts-load-more__button {
    width: 100%;
    max-width: 280px;
  }
}

/* ========== Batch 3: preview visual polish proposal =================== */
html.steam-gifts-route .game-header:has(.steam-gifts-search-wrap) {
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 1025px) {
  html.steam-gifts-route .game-header:has(.steam-gifts-search-wrap) .game-header-content {
    gap: 18px;
    min-height: 102px !important;
  }

  html.steam-gifts-route .game-header-content .steam-gifts-search-wrap {
    width: min(100%, 760px) !important;
    max-width: 760px !important;
  }
}

html.steam-gifts-route .game-logo {
  width: 98px;
  height: 98px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: rgba(255,255,255,.025);
  box-shadow: 0 14px 30px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.025);
}

html.steam-gifts-route .game-header-content .steam-gifts-search-wrap {
  min-height: 48px;
  height: auto;
  gap: 8px;
  padding: 5px 8px 5px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 94%, #fff 6%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.16);
}

html.steam-gifts-route .game-header-content .steam-gifts-search-wrap:focus-within {
  border-color: color-mix(in srgb, var(--steam-gifts-brand) 42%, rgba(255,255,255,.14));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--steam-gifts-brand) 24%, transparent),
    0 12px 30px rgba(0,0,0,.2);
}

html.steam-gifts-route .steam-gifts-search-wrap .search-input {
  min-height: 38px;
  padding: 0 2px;
  font-size: 15px;
  line-height: 1.25;
}

html.steam-gifts-route .steam-gifts-search-wrap .search-input::placeholder {
  color: rgba(255,255,255,.46);
  font-weight: 500;
  letter-spacing: 0;
}

html.steam-gifts-route .steam-gifts-search-wrap .search-clear {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  opacity: .56;
  transition: opacity .18s ease, background .18s ease;
}

html.steam-gifts-route .steam-gifts-search-wrap.has-text .search-clear,
html.steam-gifts-route .steam-gifts-search-wrap .search-clear:hover,
html.steam-gifts-route .steam-gifts-search-wrap .search-clear:focus-visible {
  opacity: .9;
  background: rgba(255,255,255,.045);
  outline: none;
}

html.steam-gifts-route .steam-gifts-search-wrap .search-clear svg {
  width: 12px;
  height: 12px;
  stroke: color-mix(in srgb, var(--steam-gifts-text) 72%, var(--steam-gifts-brand) 28%);
  stroke-width: 2.2;
}

html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn {
  min-height: 34px;
  padding: 0 11px;
  border-color: rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  color: color-mix(in srgb, var(--steam-gifts-text) 78%, var(--steam-gifts-muted) 22%);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: none;
}

html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn:hover,
html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn:focus-visible {
  border-color: color-mix(in srgb, var(--steam-gifts-brand) 38%, rgba(255,255,255,.12));
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 86%, var(--steam-gifts-brand) 14%);
  color: var(--steam-gifts-text);
}

body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
  gap: var(--space-5) !important;
  min-height: 0;
  align-content: start;
  justify-items: stretch;
}

body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader)::before,
body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader)::after {
  content: none;
  display: none;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader {
  display: flex !important;
  min-height: 252px;
  padding: 18px 16px 16px;
  gap: 14px;
  pointer-events: none;
  border-color: rgba(255,255,255,.07);
  background: color-mix(in srgb, var(--steam-gifts-panel) 92%, #fff 8%);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader::before {
  box-shadow: 0 0 0 1px rgba(255,255,255,.045) inset;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader::after {
  opacity: .08;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media,
body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__title,
body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__price-row {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.045), transparent),
    color-mix(in srgb, var(--steam-gifts-panel-2) 88%, #fff 12%);
  background-size: 220% 100%, 100% 100%;
  animation: steam-gifts-skeleton-sheen 2.6s ease-in-out infinite;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media {
  width: 100%;
  aspect-ratio: 460 / 215;
  min-height: 112px;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__title {
  width: 78%;
  height: 18px;
  margin: 2px auto 0;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader:nth-of-type(2n) .steam-game-card__title {
  width: 64%;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__price-row {
  width: 52%;
  height: 34px;
  margin: auto auto 0;
}

@keyframes steam-gifts-skeleton-sheen {
  0%, 55% { background-position: 140% 0, 0 0; }
  100% { background-position: -80% 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media,
  body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__title,
  body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__price-row {
    animation: none;
  }
}

@media (max-width: 640px) {
  html.steam-gifts-route .game-header:has(.steam-gifts-search-wrap) {
    margin-bottom: 22px !important;
  }

  html.steam-gifts-route .game-logo {
    width: 72px;
    height: 72px;
    padding: 3px;
    border-radius: 18px;
  }

  html.steam-gifts-route .game-header-content .steam-gifts-search-wrap {
    gap: 7px;
    padding: 8px;
  }

  html.steam-gifts-route .steam-gifts-search-wrap .search-input {
    min-width: 0;
    flex-basis: calc(100% - 48px);
  }

  html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn {
    min-height: 36px;
    font-size: 12.5px;
  }

  body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader) {
    gap: var(--space-4) !important;
  }

  body.is-steam-gifts-loading #products.products .steam-gifts-loader {
    min-height: 220px;
  }
}

/* ========== Batch 4: preview visual polish V2 ========================= */
html.steam-gifts-route .game-logo,
html.steam-gifts-route.steam-gifts-shell-ready .game-logo,
body.is-steam-gifts .game-logo,
body.is-steam-gifts-loading .game-logo {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html.steam-gifts-route .game-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.24));
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader {
  padding: 14px;
  gap: 13px;
  border-color: rgba(255,255,255,.055);
  background: color-mix(in srgb, var(--steam-gifts-panel) 95%, #fff 5%);
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media {
  width: 100%;
  min-height: 128px;
  aspect-ratio: 460 / 215;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent),
    linear-gradient(135deg, color-mix(in srgb, var(--steam-gifts-panel-2) 92%, #fff 8%), color-mix(in srgb, var(--steam-gifts-panel-2) 82%, var(--steam-gifts-brand) 18%));
  background-size: 220% 100%, 100% 100%;
  box-shadow: none;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media::before {
  content: none !important;
  display: none !important;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  background:
    radial-gradient(circle at 22% 20%, rgba(255,255,255,.07), transparent 34%),
    linear-gradient(110deg, transparent 0 38%, rgba(255,255,255,.05) 48%, transparent 58% 100%);
  opacity: .65;
  transform: none;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__title,
body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__price-row {
  border: 0;
  box-shadow: none;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__title::before,
body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__title::after,
body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__price-row::before,
body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__price-row::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 640px) {
  html.steam-gifts-route .game-logo {
    width: 70px;
    height: 70px;
  }

  body.is-steam-gifts-loading #products.products .steam-gifts-loader {
    padding: 12px;
  }

  body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media {
    min-height: 118px;
  }
}

/* ========== Batch 5: preview UI/functional polish ===================== */
html.steam-gifts-route .game-logo,
html.steam-gifts-route.steam-gifts-shell-ready .game-logo,
body.is-steam-gifts .game-logo,
body.is-steam-gifts-loading .game-logo {
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

@media (min-width: 1025px) {
  html.steam-gifts-route .game-header:has(.steam-gifts-search-wrap) {
    align-items: flex-start;
  }

  html.steam-gifts-route .game-header:has(.steam-gifts-search-wrap) .game-header-content {
    min-height: 96px !important;
    justify-content: space-between !important;
    gap: 10px;
  }

  html.steam-gifts-route .game-header-content .steam-gifts-search-wrap {
    margin-top: auto !important;
  }
}

html.steam-gifts-route #products.products .steam-game-card:not(.steam-gifts-loader) .steam-game-card__media::before {
  content: none !important;
  display: none !important;
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader) .steam-game-card__title {
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: 0;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media::before {
  content: "Steam Gift" !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  white-space: normal;
  text-align: center;
  border: 0 !important;
  border-radius: inherit;
  background: transparent !important;
  color: color-mix(in srgb, var(--steam-gifts-text) 76%, var(--steam-gifts-brand) 24%);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  opacity: .72;
  pointer-events: none;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media::after {
  z-index: 0;
}

.steam-country-card__flag,
.cart-item__country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.steam-country-flag-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steam-country-flag-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 82%, var(--steam-gifts-brand) 18%);
  color: var(--steam-gifts-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
}

.steam-country-flag--fallback img {
  display: none !important;
}

@media (max-width: 640px) {
  html.steam-gifts-route .game-header:has(.steam-gifts-search-wrap) {
    gap: 14px;
  }

  html.steam-gifts-route .game-header-content .steam-gifts-search-wrap {
    width: 100% !important;
  }

  html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader) .steam-game-card__title {
    font-size: 16px;
  }

  body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media::before {
    font-size: 14px;
  }
}

/* ========== Batch 6: preview UI acceptance V4 ========================= */
@media (min-width: 1025px) {
  html.steam-gifts-route .game-header:has(.steam-gifts-search-wrap) .game-header-content {
    min-height: 130px !important;
    justify-content: space-between !important;
  }

  html.steam-gifts-route .game-header-content .steam-gifts-search-wrap {
    margin-top: auto !important;
  }
}

html.steam-gifts-route .cart-item__country-flag[data-country-code]:empty::before {
  content: attr(data-country-code);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--steam-gifts-text);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1;
}

html.steam-gifts-route .cart-item__country-flag .steam-country-flag-fallback {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  font-size: 9px;
  line-height: 1;
}



/* ========== Batch 7: preview UI simplify V5 ========================== */
html.steam-gifts-route .game-logo,
html.steam-gifts-route.steam-gifts-shell-ready .game-logo,
body.is-steam-gifts .game-logo,
body.is-steam-gifts-loading .game-logo,
html.steam-gifts-route .game-logo.steam-gifts-logo--normalized {
  display: block !important;
  width: 112px !important;
  height: 112px !important;
  min-width: 112px !important;
  min-height: 112px !important;
  max-width: 112px !important;
  max-height: 112px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  clip-path: none !important;
  aspect-ratio: 1 / 1;
}

body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader) {
  display: block !important;
  min-height: 46px !important;
  padding: 8px 0 !important;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader)::before {
  content: "Загружаем каталог Steam Gifts..." !important;
  display: inline-flex !important;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader)::after {
  content: none !important;
  display: none !important;
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader) .steam-game-card__edition-name {
  display: none !important;
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader) .steam-game-card__title {
  font-size: clamp(17px, 1.08vw, 19px) !important;
  line-height: 1.22 !important;
  font-weight: 850 !important;
}

html.steam-gifts-route .cart-item__country {
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
}

html.steam-gifts-route .cart-item__country-flag,
html.steam-gifts-route .cart-item__country-flag *,
html.steam-gifts-route .cart-item__country-flag::before,
html.steam-gifts-route .cart-item__country-flag::after {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

html.steam-gifts-route .cart-item__country-name {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

@media (max-width: 640px) {
  html.steam-gifts-route .game-logo,
  html.steam-gifts-route.steam-gifts-shell-ready .game-logo,
  body.is-steam-gifts .game-logo,
  body.is-steam-gifts-loading .game-logo,
  html.steam-gifts-route .game-logo.steam-gifts-logo--normalized {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
    max-width: 76px !important;
    max-height: 76px !important;
  }

  body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader)::before {
    font-size: 12px;
  }

  html.steam-gifts-route .cart-item__country-name {
    white-space: normal;
  }
}


/* ========== Batch 8: preview UI V5.1 logo/skeleton correction ======== */
html.steam-gifts-route .game-logo,
html.steam-gifts-route.steam-gifts-shell-ready .game-logo,
body.is-steam-gifts .game-logo,
body.is-steam-gifts-loading .game-logo,
html.steam-gifts-route .game-logo.steam-gifts-logo--asset {
  display: block !important;
  width: 112px !important;
  height: 112px !important;
  min-width: 112px !important;
  min-height: 112px !important;
  max-width: 112px !important;
  max-height: 112px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  clip-path: none !important;
  aspect-ratio: 1 / 1;
}

body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--space-5) !important;
  min-height: 0 !important;
  padding: 0 !important;
  align-content: start;
  justify-items: stretch;
}

body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader)::before,
body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader)::after {
  content: none !important;
  display: none !important;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader {
  display: flex !important;
  visibility: visible !important;
  width: auto !important;
  height: auto !important;
  min-height: 238px !important;
  margin: 0 !important;
  padding: 14px !important;
  overflow: hidden !important;
  gap: 13px;
  pointer-events: none;
  border-color: rgba(255,255,255,.06);
  background: color-mix(in srgb, var(--steam-gifts-panel) 94%, #fff 6%);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader:nth-of-type(n+4) {
  display: none !important;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media {
  width: 100%;
  min-height: 128px;
  aspect-ratio: 460 / 215;
  border: 0 !important;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent),
    linear-gradient(135deg, color-mix(in srgb, var(--steam-gifts-panel-2) 92%, #fff 8%), color-mix(in srgb, var(--steam-gifts-panel-2) 84%, var(--steam-gifts-brand) 16%));
  background-size: 220% 100%, 100% 100%;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media::before {
  content: "Steam Gift" !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: inherit;
  background: transparent !important;
  color: color-mix(in srgb, var(--steam-gifts-text) 76%, var(--steam-gifts-brand) 24%);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .02em;
  opacity: .72;
  pointer-events: none;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media::after {
  content: "" !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block !important;
  border-radius: inherit;
  background:
    radial-gradient(circle at 22% 20%, rgba(255,255,255,.07), transparent 34%),
    linear-gradient(110deg, transparent 0 38%, rgba(255,255,255,.05) 48%, transparent 58% 100%);
  opacity: .65;
  transform: none;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__title,
body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__price-row {
  display: block !important;
  visibility: visible !important;
  position: relative;
  overflow: hidden;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.045), transparent),
    color-mix(in srgb, var(--steam-gifts-panel-2) 88%, #fff 12%);
  background-size: 220% 100%, 100% 100%;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__title {
  width: 78%;
  height: 18px;
  margin: 2px auto 0;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__price-row {
  width: 52%;
  height: 34px;
  margin: auto auto 0;
}

@media (prefers-reduced-motion: no-preference) {
  body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media,
  body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__title,
  body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__price-row {
    animation: steam-gifts-skeleton-sheen 2.6s ease-in-out infinite;
  }
}

@media (max-width: 640px) {
  html.steam-gifts-route .game-logo,
  html.steam-gifts-route.steam-gifts-shell-ready .game-logo,
  body.is-steam-gifts .game-logo,
  body.is-steam-gifts-loading .game-logo,
  html.steam-gifts-route .game-logo.steam-gifts-logo--asset {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
    max-width: 76px !important;
    max-height: 76px !important;
  }

  body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader) {
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }

  body.is-steam-gifts-loading #products.products .steam-gifts-loader {
    min-height: 214px !important;
    padding: 12px !important;
  }

  body.is-steam-gifts-loading #products.products .steam-gifts-loader:nth-of-type(n+4) {
    display: none !important;
  }

  body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media {
    min-height: 116px;
  }

  body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media::before {
    font-size: 14px;
  }
}

/* ========== Batch 9: preview UI V5.3 logo/skeleton only correction ===== */
html.steam-gifts-route .game-logo,
html.steam-gifts-route.steam-gifts-shell-ready .game-logo,
body.is-steam-gifts .game-logo,
body.is-steam-gifts-loading .game-logo,
html.steam-gifts-route .game-logo.steam-gifts-logo--asset {
  display: block !important;
  width: 130px !important;
  height: 130px !important;
  min-width: 130px !important;
  min-height: 130px !important;
  max-width: 130px !important;
  max-height: 130px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  clip-path: none !important;
  mask-image: none !important;
  aspect-ratio: 1 / 1;
}

body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  min-height: 0 !important;
  padding: 0 !important;
  align-content: start !important;
  justify-items: stretch !important;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader:nth-of-type(-n+6) {
  display: flex !important;
  visibility: visible !important;
  width: auto !important;
  height: auto !important;
  min-height: 218px !important;
  padding: 12px !important;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader:nth-of-type(n+7) {
  display: none !important;
  visibility: hidden !important;
}

body.is-steam-gifts-loading #products.products .steam-gifts-loader .steam-game-card__media {
  min-height: 112px !important;
  border-radius: 10px !important;
}

@media (max-width: 1024px) {
  html.steam-gifts-route .game-logo,
  html.steam-gifts-route.steam-gifts-shell-ready .game-logo,
  body.is-steam-gifts .game-logo,
  body.is-steam-gifts-loading .game-logo,
  html.steam-gifts-route .game-logo.steam-gifts-logo--asset {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
    border-radius: 14px !important;
  }

  body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  body.is-steam-gifts-loading #products.products .steam-gifts-loader:nth-of-type(-n+4) {
    display: flex !important;
    visibility: visible !important;
  }

  body.is-steam-gifts-loading #products.products .steam-gifts-loader:nth-of-type(n+5) {
    display: none !important;
    visibility: hidden !important;
  }
}

@media (max-width: 640px) {
  html.steam-gifts-route .game-logo,
  html.steam-gifts-route.steam-gifts-shell-ready .game-logo,
  body.is-steam-gifts .game-logo,
  body.is-steam-gifts-loading .game-logo,
  html.steam-gifts-route .game-logo.steam-gifts-logo--asset {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    min-height: 82px !important;
    max-width: 82px !important;
    max-height: 82px !important;
    border-radius: 12px !important;
  }

  body.is-steam-gifts-loading #products.products:has(.steam-gifts-loader) {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.is-steam-gifts-loading #products.products .steam-gifts-loader:nth-of-type(-n+3) {
    display: flex !important;
    visibility: visible !important;
  }

  body.is-steam-gifts-loading #products.products .steam-gifts-loader:nth-of-type(n+4) {
    display: none !important;
    visibility: hidden !important;
  }
}

/* ========== Batch 10: preview UI V5.4 logo source/render lock ======== */
html.steam-gifts-route .game-logo,
html.steam-gifts-route.steam-gifts-shell-ready .game-logo,
body.is-steam-gifts .game-logo,
body.is-steam-gifts-loading .game-logo,
html.steam-gifts-route .game-logo.steam-gifts-logo--asset {
  display: block !important;
  width: 130px !important;
  height: 130px !important;
  min-width: 130px !important;
  min-height: 130px !important;
  max-width: 130px !important;
  max-height: 130px !important;
  object-fit: contain !important;
  object-position: center center !important;
  background-image: none !important;
  background-size: auto !important;
  background-position: 50% 50% !important;
  overflow: visible !important;
  transform: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  clip-path: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.steam-gifts-route .game-logo::before,
html.steam-gifts-route .game-logo::after,
body.is-steam-gifts .game-logo::before,
body.is-steam-gifts .game-logo::after,
body.is-steam-gifts-loading .game-logo::before,
body.is-steam-gifts-loading .game-logo::after {
  content: none !important;
  display: none !important;
  background-image: none !important;
  transform: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

@media (max-width: 1024px) {
  html.steam-gifts-route .game-logo,
  html.steam-gifts-route.steam-gifts-shell-ready .game-logo,
  body.is-steam-gifts .game-logo,
  body.is-steam-gifts-loading .game-logo,
  html.steam-gifts-route .game-logo.steam-gifts-logo--asset {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
  }
}

@media (max-width: 640px) {
  html.steam-gifts-route .game-logo,
  html.steam-gifts-route.steam-gifts-shell-ready .game-logo,
  body.is-steam-gifts .game-logo,
  body.is-steam-gifts-loading .game-logo,
  html.steam-gifts-route .game-logo.steam-gifts-logo--asset {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    min-height: 82px !important;
    max-width: 82px !important;
    max-height: 82px !important;
  }
}
/* V5.5: source-failure state must not fall back to the old giant loading panel. */
body.is-steam-gifts-unavailable #products.products {
  display: block !important;
  min-height: 0 !important;
}

body.is-steam-gifts-unavailable #products.products::before,
body.is-steam-gifts-unavailable #products.products::after {
  content: none !important;
  display: none !important;
}

body.is-steam-gifts-unavailable #products.products > * {
  display: block !important;
}

#products.products .steam-gifts-empty-state {
  max-width: 560px;
  margin: 18px auto 28px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: color-mix(in srgb, var(--steam-gifts-panel-2) 92%, var(--steam-gifts-brand) 8%);
  color: var(--steam-gifts-text);
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

#products.products .steam-gifts-empty-state__title {
  font: 700 16px/1.35 var(--font-accent);
  margin: 0 0 6px;
}

#products.products .steam-gifts-empty-state__text {
  margin: 0;
  color: color-mix(in srgb, var(--steam-gifts-muted) 82%, #fff 18%);
  font-size: 14px;
  line-height: 1.45;
}


/* Steam Gifts fast image fallback: pure CSS, no fallback image request. */
html.steam-gifts-route #products.products .steam-game-card:not(.steam-gifts-loader) .steam-game-card__media.steam-game-card__media--fallback::before {
  content: none !important;
  display: none !important;
}

.steam-game-card__media--fallback {
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--steam-gifts-brand) 22%, transparent), transparent 45%),
    radial-gradient(circle at 88% 86%, rgba(76, 63, 150, .28), transparent 46%),
    linear-gradient(135deg, #11121b 0%, #1c1630 58%, #251a3a 100%);
}

.steam-game-card__fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 18px 22px;
  color: var(--steam-gifts-text);
  text-align: center;
  pointer-events: none;
}

.steam-game-card__fallback-title {
  max-width: 92%;
  color: color-mix(in srgb, var(--steam-gifts-text) 92%, var(--steam-gifts-brand) 8%);
  font: 800 clamp(15px, 1.05vw, 18px)/1.18 var(--font-accent);
  overflow-wrap: anywhere;
}

.steam-game-card__fallback-kicker {
  color: color-mix(in srgb, var(--steam-gifts-muted) 82%, var(--steam-gifts-brand) 18%);
  font: 700 11px/1 var(--font-main);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Steam Gifts preview UI polish: homepage-like hover/search/help, 20260612T093905Z */
html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader) {
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, border-color .2s ease, background .2s ease;
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(167,94,255,.25);
  filter: brightness(1.05);
  border-color: rgba(255,255,255,.08);
  background: var(--steam-gifts-panel);
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader):hover::after {
  opacity: 0;
  box-shadow: none;
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader):hover .steam-game-card__media img {
  transform: none;
}

html.steam-gifts-route .game-header-content .steam-gifts-search-wrap {
  min-height: 46px;
  height: 46px;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  border: 0;
  border-radius: 10px;
  background: #121212;
  box-shadow: inset 0 0 0 1.5px rgba(167,94,255,.35);
}

html.steam-gifts-route .game-header-content .steam-gifts-search-wrap:focus-within {
  box-shadow:
    inset 0 0 0 1.5px var(--steam-gifts-brand, var(--brand)),
    0 0 14px var(--steam-gifts-brand-soft, var(--brand-soft));
}

html.steam-gifts-route .steam-gifts-search-wrap .search-input {
  min-height: 34px;
  padding: 2px 0;
  font: 600 15px/1.2 inherit;
  color: var(--steam-gifts-text, var(--text));
}

html.steam-gifts-route .steam-gifts-search-wrap .search-input::placeholder {
  color: rgba(255,255,255,.5);
  font-weight: 500;
  letter-spacing: .3px;
}

html.steam-gifts-route .steam-gifts-search-wrap .search-clear {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  opacity: .72;
  transition: opacity .2s ease, transform .15s ease, background .2s ease;
}

html.steam-gifts-route .steam-gifts-search-wrap.has-text .search-clear,
html.steam-gifts-route .steam-gifts-search-wrap .search-clear:hover,
html.steam-gifts-route .steam-gifts-search-wrap .search-clear:focus-visible {
  opacity: 1;
  transform: scale(1.06);
  background: transparent;
  outline: none;
}

html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn {
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: color-mix(in srgb, var(--steam-gifts-text, #fff) 82%, var(--steam-gifts-brand, #a75eff) 18%);
  font-size: 0;
  line-height: 1;
  box-shadow: none;
}

html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn::before {
  content: '?';
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn:hover,
html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn:focus-visible {
  border-color: color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 45%, rgba(255,255,255,.14));
  background: color-mix(in srgb, var(--steam-gifts-panel-2, #111) 86%, var(--steam-gifts-brand, #a75eff) 14%);
  color: var(--steam-gifts-text, #fff);
  outline: none;
}

@media (max-width: 640px) {
  html.steam-gifts-route .game-header-content .steam-gifts-search-wrap {
    min-height: 44px;
    height: 44px;
    padding-inline: 12px 7px;
  }

  html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn {
    flex-basis: 32px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }
}

/* steam-gifts-preview-ui-polish-hover-search-v2 20260612T100014Z */
html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader) {
  transition: box-shadow .2s ease, filter .2s ease, border-color .2s ease, background .2s ease;
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader):hover,
html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader):focus-visible {
  transform: none;
  border-color: color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 58%, rgba(255,255,255,.12));
  background: var(--steam-gifts-panel, var(--panel));
  box-shadow:
    0 0 0 1.5px color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 62%, rgba(255,255,255,.08)) inset,
    0 0 18px color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 18%, transparent),
    0 12px 30px rgba(0,0,0,.38);
  filter: brightness(1.035);
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader):hover::after,
html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader):focus-visible::after {
  opacity: 1;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 46%, rgba(255,255,255,.08)) inset;
  filter: none;
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader):hover .steam-game-card__media img,
html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader):focus-visible .steam-game-card__media img {
  transform: none;
}

html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: transparent;
  font-size: 0;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn::before {
  content: '?';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--steam-gifts-text, #fff) 88%, var(--steam-gifts-brand, #a75eff) 12%);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-indent: 0;
  pointer-events: none;
}

html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn:hover,
html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn:focus-visible {
  border-color: color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 66%, rgba(255,255,255,.16));
  background: color-mix(in srgb, var(--steam-gifts-panel-2, #111) 82%, var(--steam-gifts-brand, #a75eff) 18%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 30%, transparent) inset,
    0 0 12px color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 22%, transparent);
  outline: none;
}

html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn:hover::before,
html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn:focus-visible::before {
  color: var(--steam-gifts-text, #fff);
}

html.steam-gifts-route .steam-gifts-search-wrap .search-clear {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

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

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

html.steam-gifts-route .steam-gifts-invite-help-modal__close {
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

html.steam-gifts-route .steam-gifts-invite-help-modal__close:hover,
html.steam-gifts-route .steam-gifts-invite-help-modal__close:focus-visible {
  border-color: color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 58%, rgba(255,255,255,.14));
  background: color-mix(in srgb, var(--steam-gifts-panel-2, #111) 80%, var(--steam-gifts-brand, #a75eff) 20%);
  color: var(--steam-gifts-text, #fff);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 28%, transparent) inset,
    0 0 12px color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 20%, transparent);
  outline: none;
}

@media (max-width: 640px) {
  html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn {
    flex-basis: 32px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }

  html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn::before {
    font-size: 17px;
  }

  html.steam-gifts-route .steam-gifts-search-wrap .search-clear {
    width: 30px;
    height: 30px;
  }
}

/* steam-gifts-preview-search-help-minimal-fix-20260612T103746Z */
html.steam-gifts-route .steam-gifts-search-wrap .steam-gifts-invite-help-btn,
html.steam-gifts-route .steam-gifts-search-wrap [data-steam-gifts-invite-help] {
  display: none !important;
}

html.steam-gifts-route .game-header-content .steam-gifts-search-wrap {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
}
/* /steam-gifts-preview-search-help-minimal-fix-20260612T103746Z */

/* steam-gifts-preview-modal-image-visual-cleanup-20260612T105659Z */
html.steam-gifts-route .steam-edition-modal__logo,
html.steam-gifts-route .steam-country-modal__logo {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.steam-gifts-route .steam-edition-modal__logo.steam-gift-modal-logo--fallback,
html.steam-gifts-route .steam-country-modal__logo.steam-gift-modal-logo--fallback {
  background: transparent !important;
}
/* /steam-gifts-preview-modal-image-visual-cleanup-20260612T105659Z */

/* steam-gifts-preview-active-frontend-regression-fix-20260612T113300Z */
html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader) .steam-game-card__price-row .steam-game-card__change-btn--in-cart {
  flex: 1 1 auto;
  width: 100%;
  height: 40px;
  min-height: 40px;
  margin-top: 0 !important;
}
/* /steam-gifts-preview-active-frontend-regression-fix-20260612T113300Z */


/* steam-gifts-preview-grid-loader-controls-fix-20260612T140906Z */
html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader) {
  transform: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, filter .18s ease;
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader) .steam-game-card__price-row {
  min-height: 40px;
  align-items: center;
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader) .steam-game-card__change-btn--in-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader):hover,
html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader):focus-visible {
  transform: none !important;
  border-color: color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 54%, rgba(255,255,255,.14));
  background: color-mix(in srgb, var(--steam-gifts-panel, var(--panel)) 94%, var(--steam-gifts-brand, #a75eff) 6%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 46%, rgba(255,255,255,.08)) inset,
    0 0 14px color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 16%, transparent),
    0 12px 28px rgba(0,0,0,.34);
  filter: none;
}

html.steam-gifts-route #products.products .steam-gifts-load-more {
  padding: 18px 0 4px;
  gap: 10px;
}

html.steam-gifts-route .steam-gifts-load-more__button {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.09);
  background: color-mix(in srgb, var(--steam-gifts-panel, var(--panel)) 94%, var(--steam-gifts-brand, #a75eff) 6%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.025) inset,
    0 10px 24px rgba(0,0,0,.28);
  filter: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

html.steam-gifts-route .steam-gifts-load-more__button:hover,
html.steam-gifts-route .steam-gifts-load-more__button:focus-visible {
  border-color: color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 58%, rgba(255,255,255,.14));
  background: color-mix(in srgb, var(--steam-gifts-panel, var(--panel)) 90%, var(--steam-gifts-brand, #a75eff) 10%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 28%, transparent) inset,
    0 0 14px color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 18%, transparent),
    0 12px 26px rgba(0,0,0,.32);
  outline: none;
}

html.steam-gifts-route .mode-switch {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: color-mix(in srgb, var(--steam-gifts-panel, var(--panel)) 92%, #000 8%);
  box-shadow: 0 10px 24px rgba(0,0,0,.24);
}

html.steam-gifts-route .mode-switch .mode-btn {
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: color-mix(in srgb, var(--steam-gifts-text, #fff) 74%, var(--steam-gifts-muted, #a7a7b8) 26%);
  text-shadow: none;
  box-shadow: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

html.steam-gifts-route .mode-switch .mode-btn:hover:not(.active),
html.steam-gifts-route .mode-switch .mode-btn:focus-visible:not(.active) {
  color: var(--steam-gifts-text, #fff);
  border-color: color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 34%, rgba(255,255,255,.08));
  background: rgba(255,255,255,.04);
  box-shadow: none;
  outline: none;
}

html.steam-gifts-route .mode-switch .mode-btn.active,
html.steam-gifts-route .mode-switch .mode-btn[aria-selected="true"] {
  color: var(--steam-gifts-text, #fff);
  border-color: color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 48%, rgba(255,255,255,.1));
  background: color-mix(in srgb, var(--steam-gifts-panel-2, #111) 82%, var(--steam-gifts-brand, #a75eff) 18%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 20%, transparent) inset,
    0 0 12px color-mix(in srgb, var(--steam-gifts-brand, #a75eff) 16%, transparent);
  text-shadow: none;
}
/* /steam-gifts-preview-grid-loader-controls-fix-20260612T140906Z */

/* Steam Gifts buttons/selectable controls unification, 20260706.
   Scope: /service/steam-gifts/ only. Connects existing DonateTeam interactive tokens
   to game/edition/country selection cards and flow action buttons without layout shifts. */
html.steam-gifts-route {
  --sg-unified-control-transition: background var(--dt-control-transition-fast, .18s ease),
    border-color var(--dt-control-transition-fast, .18s ease),
    box-shadow var(--dt-control-transition-fast, .18s ease),
    color var(--dt-control-transition-fast, .18s ease),
    filter var(--dt-control-transition-fast, .18s ease);
  --sg-unified-card-depth: 0 8px 24px rgba(0,0,0,.35);
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader),
html.steam-gifts-route .steam-edition-card,
html.steam-gifts-route .steam-country-card,
html.steam-gifts-route .steam-gifts-load-more__button,
html.steam-gifts-route .steam-country-modal__back-btn,
html.steam-gifts-route .steam-edition-modal__add-btn,
html.steam-gifts-route .steam-country-modal__confirm-btn {
  transform: none;
  filter: none;
  transition: var(--sg-unified-control-transition);
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader) {
  background: var(--dt-select-idle-bg, var(--steam-gifts-panel));
  border-color: var(--dt-select-idle-border, rgba(255,255,255,.06));
  box-shadow: var(--dt-select-idle-shadow, inset 0 0 0 1px rgba(255,255,255,.06)), var(--sg-unified-card-depth);
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader):hover,
html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader):focus-visible {
  background: var(--dt-select-hover-bg, var(--steam-gifts-panel));
  border-color: var(--dt-select-hover-border, var(--steam-gifts-brand));
  box-shadow: var(--dt-select-hover-shadow, inset 0 0 0 1.5px var(--steam-gifts-brand)), 0 12px 28px rgba(0,0,0,.34);
  filter: none;
  outline: none;
}

html.steam-gifts-route .steam-game-card:not(.steam-gifts-loader):focus-visible {
  outline: var(--dt-control-focus-visible-outline, 2px solid rgba(167,94,255,.68));
  outline-offset: var(--dt-control-focus-visible-outline-offset, 1px);
}

html.steam-gifts-route .steam-edition-card,
html.steam-gifts-route .steam-country-card {
  background: var(--dt-select-idle-bg, var(--steam-gifts-panel-2));
  color: var(--dt-select-idle-text, var(--steam-gifts-text));
  box-shadow: none;
}

html.steam-gifts-route .steam-edition-card::before,
html.steam-gifts-route .steam-country-card::before {
  border: 0;
  box-shadow: inset 0 0 0 1px var(--dt-select-idle-border, rgba(255,255,255,.06));
  filter: none;
  transition: box-shadow var(--dt-control-transition-fast, .18s ease), filter var(--dt-control-transition-fast, .18s ease);
}

html.steam-gifts-route .steam-edition-card:hover:not(.selected),
html.steam-gifts-route .steam-country-card:hover:not(.selected),
html.steam-gifts-route .steam-edition-card:focus-visible:not(.selected),
html.steam-gifts-route .steam-country-card:focus-visible:not(.selected) {
  background: var(--dt-select-hover-bg, var(--steam-gifts-panel-2));
  color: var(--dt-select-hover-text, var(--steam-gifts-brand));
  filter: none;
  outline: none;
}

html.steam-gifts-route .steam-edition-card:hover:not(.selected)::before,
html.steam-gifts-route .steam-country-card:hover:not(.selected)::before,
html.steam-gifts-route .steam-edition-card:focus-visible:not(.selected)::before,
html.steam-gifts-route .steam-country-card:focus-visible:not(.selected)::before {
  border: 0;
  box-shadow: var(--dt-select-hover-shadow, inset 0 0 0 1.5px var(--steam-gifts-brand)) !important;
  filter: none;
}

html.steam-gifts-route .steam-edition-card.selected,
html.steam-gifts-route .steam-country-card.selected {
  background: var(--dt-select-selected-bg, var(--steam-gifts-panel-2));
  color: var(--dt-select-selected-text, var(--steam-gifts-brand));
  box-shadow: none;
  filter: none;
}

html.steam-gifts-route .steam-edition-card.selected::before,
html.steam-gifts-route .steam-country-card.selected::before {
  border: 0;
  box-shadow: var(--dt-select-selected-shadow, inset 0 0 0 1.5px var(--steam-gifts-brand), 0 0 14px var(--steam-gifts-brand-soft));
  filter: none;
}

html.steam-gifts-route .steam-edition-card.selected:hover::before,
html.steam-gifts-route .steam-country-card.selected:hover::before,
html.steam-gifts-route .steam-edition-card.selected:focus-visible::before,
html.steam-gifts-route .steam-country-card.selected:focus-visible::before {
  box-shadow: var(--dt-select-selected-hover-shadow, inset 0 0 0 1.5px var(--steam-gifts-brand), 0 0 14px var(--steam-gifts-brand-soft), 0 0 20px var(--steam-gifts-brand-soft));
  filter: none;
}

html.steam-gifts-route .steam-edition-card.selected .steam-edition-card__name,
html.steam-gifts-route .steam-country-card.selected .steam-country-card__name,
html.steam-gifts-route .steam-country-card.selected .steam-country-card__price,
html.steam-gifts-route .steam-country-card.selected .steam-country-card__price-current {
  color: var(--dt-select-selected-text, var(--steam-gifts-brand));
  text-shadow: var(--dt-select-text-shadow, 0 0 12px var(--steam-gifts-brand-soft));
}

html.steam-gifts-route .steam-edition-card:hover:not(.selected) .steam-edition-card__name,
html.steam-gifts-route .steam-country-card:hover:not(.selected) .steam-country-card__name,
html.steam-gifts-route .steam-country-card:hover:not(.selected) .steam-country-card__price,
html.steam-gifts-route .steam-country-card:hover:not(.selected) .steam-country-card__price-current {
  color: var(--dt-select-hover-text, var(--steam-gifts-brand));
  text-shadow: var(--dt-select-hover-text-shadow, 0 0 8px var(--steam-gifts-brand-soft));
}

html.steam-gifts-route .steam-edition-card:focus-visible,
html.steam-gifts-route .steam-country-card:focus-visible,
html.steam-gifts-route .steam-gifts-load-more__button:focus-visible,
html.steam-gifts-route .steam-country-modal__back-btn:focus-visible,
html.steam-gifts-route .steam-edition-modal__add-btn:focus-visible,
html.steam-gifts-route .steam-country-modal__confirm-btn:focus-visible {
  outline: var(--dt-control-focus-visible-outline, 2px solid rgba(167,94,255,.68));
  outline-offset: var(--dt-control-focus-visible-outline-offset, 1px);
}

html.steam-gifts-route .steam-edition-modal__add-btn,
html.steam-gifts-route .steam-country-modal__confirm-btn:not(:disabled) {
  background: var(--dt-primary-idle-bg, var(--steam-gifts-panel-2));
  color: var(--dt-primary-idle-text, var(--steam-gifts-brand));
  box-shadow: var(--dt-primary-idle-shadow, inset 0 0 0 1.5px var(--steam-gifts-brand), 0 0 14px var(--steam-gifts-brand-soft));
  text-shadow: none;
}

html.steam-gifts-route .steam-edition-modal__add-btn:not(:disabled) {
  border-color: var(--dt-primary-idle-border, var(--steam-gifts-brand));
}

html.steam-gifts-route .steam-edition-modal__add-btn:hover:not(:disabled),
html.steam-gifts-route .steam-country-modal__confirm-btn:hover:not(:disabled),
html.steam-gifts-route .steam-edition-modal__add-btn:focus-visible:not(:disabled),
html.steam-gifts-route .steam-country-modal__confirm-btn:focus-visible:not(:disabled) {
  background: var(--dt-primary-hover-bg, var(--steam-gifts-panel-2));
  color: var(--dt-primary-hover-text, var(--steam-gifts-text));
  box-shadow: var(--dt-primary-hover-shadow, inset 0 0 0 1.5px var(--steam-gifts-brand), 0 0 14px var(--steam-gifts-brand-soft), 0 0 20px var(--steam-gifts-brand-soft));
  text-shadow: none;
  transform: none;
  filter: none;
}

html.steam-gifts-route .steam-edition-modal__add-btn:hover:not(:disabled) {
  border-color: var(--dt-primary-hover-border, var(--steam-gifts-brand));
}

html.steam-gifts-route .steam-edition-modal__add-btn:active:not(:disabled),
html.steam-gifts-route .steam-country-modal__confirm-btn:active:not(:disabled) {
  background: var(--dt-primary-pressed-bg, var(--steam-gifts-panel-2));
  color: var(--dt-primary-pressed-text, var(--steam-gifts-brand));
  box-shadow: var(--dt-primary-pressed-shadow, inset 0 2px 8px rgba(0,0,0,.32));
  transform: none;
  filter: none;
}

html.steam-gifts-route .steam-country-modal__back-btn,
html.steam-gifts-route .steam-gifts-load-more__button {
  background: var(--dt-secondary-idle-bg, var(--steam-gifts-panel-2));
  color: var(--dt-secondary-idle-text, var(--steam-gifts-text));
  border-color: var(--dt-select-idle-border, rgba(255,255,255,.06));
  box-shadow: var(--dt-secondary-idle-shadow, inset 0 0 0 1px rgba(255,255,255,.06));
}

html.steam-gifts-route .steam-country-modal__back-btn:hover,
html.steam-gifts-route .steam-country-modal__back-btn:focus-visible,
html.steam-gifts-route .steam-gifts-load-more__button:hover,
html.steam-gifts-route .steam-gifts-load-more__button:focus-visible {
  background: var(--dt-secondary-hover-bg, var(--steam-gifts-panel-2));
  color: var(--dt-secondary-hover-text, var(--steam-gifts-brand));
  border-color: var(--dt-select-hover-border, var(--steam-gifts-brand));
  box-shadow: var(--dt-secondary-hover-shadow, inset 0 0 0 1.5px var(--steam-gifts-brand));
  transform: none;
  filter: none;
}

html.steam-gifts-route .steam-country-modal__back-btn:active,
html.steam-gifts-route .steam-gifts-load-more__button:active {
  background: var(--dt-secondary-pressed-bg, var(--steam-gifts-panel-2));
  color: var(--dt-secondary-pressed-text, var(--steam-gifts-brand));
  box-shadow: var(--dt-secondary-pressed-shadow, inset 0 2px 8px rgba(0,0,0,.32));
  transform: none;
  filter: none;
}

html.steam-gifts-route .steam-edition-modal__add-btn:disabled,
html.steam-gifts-route .steam-country-modal__confirm-btn:disabled {
  transform: none;
  filter: none;
}
/* /Steam Gifts buttons/selectable controls unification, 20260706 */

/* Steam Gifts selected glow cleanup, 20260706.
   Scope: selected content only. Keeps unified selectable mapping, selected border,
   geometry and no-transform contract while removing dirty text/icon glow. */
html.steam-gifts-route .steam-edition-card.selected::before,
html.steam-gifts-route .steam-country-card.selected::before {
  box-shadow:
    inset 0 0 0 1.5px var(--dt-select-selected-border, var(--steam-gifts-brand)),
    0 0 10px var(--dt-interactive-accent-soft-18, rgba(167,94,255,.18));
  filter: none;
}

html.steam-gifts-route .steam-edition-card.selected:hover::before,
html.steam-gifts-route .steam-country-card.selected:hover::before,
html.steam-gifts-route .steam-edition-card.selected:focus-visible::before,
html.steam-gifts-route .steam-country-card.selected:focus-visible::before {
  box-shadow:
    inset 0 0 0 1.5px var(--dt-select-selected-hover-border, var(--steam-gifts-brand)),
    0 0 12px var(--dt-interactive-accent-soft-22, rgba(167,94,255,.22));
  filter: none;
}

html.steam-gifts-route .steam-edition-card.selected .steam-edition-card__name,
html.steam-gifts-route .steam-edition-card.selected:hover .steam-edition-card__name,
html.steam-gifts-route .steam-edition-card.selected:focus-visible .steam-edition-card__name,
html.steam-gifts-route .steam-country-card.selected .steam-country-card__name,
html.steam-gifts-route .steam-country-card.selected .steam-country-card__price,
html.steam-gifts-route .steam-country-card.selected .steam-country-card__price-current,
html.steam-gifts-route .steam-country-card.selected .steam-country-card__price-old,
html.steam-gifts-route .steam-country-card.selected:hover .steam-country-card__name,
html.steam-gifts-route .steam-country-card.selected:hover .steam-country-card__price,
html.steam-gifts-route .steam-country-card.selected:hover .steam-country-card__price-current,
html.steam-gifts-route .steam-country-card.selected:hover .steam-country-card__price-old,
html.steam-gifts-route .steam-country-card.selected:focus-visible .steam-country-card__name,
html.steam-gifts-route .steam-country-card.selected:focus-visible .steam-country-card__price,
html.steam-gifts-route .steam-country-card.selected:focus-visible .steam-country-card__price-current,
html.steam-gifts-route .steam-country-card.selected:focus-visible .steam-country-card__price-old,
html.steam-gifts-route .steam-game-card__edition-name,
html.steam-gifts-route .steam-game-card__status {
  text-shadow: none;
  filter: none;
}

html.steam-gifts-route .steam-country-card.selected .steam-country-card__checkmark {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  filter: none;
}

html.steam-gifts-route .steam-country-card.selected:hover .steam-country-card__checkmark,
html.steam-gifts-route .steam-country-card.selected:focus-visible .steam-country-card__checkmark {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.20);
  filter: none;
}
/* /Steam Gifts selected glow cleanup, 20260706 */

/* Steam Gifts selected checkmark no-transform centering, 20260706. */
html.steam-gifts-route .steam-country-card.selected .steam-country-card__checkmark {
  top: calc(50% - 12px);
  transform: none;
}
/* /Steam Gifts selected checkmark no-transform centering, 20260706 */
