﻿/* ===== SpiderGift · компоненты ===== */

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  font-weight: 700;
  font-size: 16px;
  transition: transform .16s var(--ease-spring), filter .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(145deg, #4d9dff, #2f6bff);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(47,107,255,.38);
}
.btn-primary:active { box-shadow: 0 4px 14px rgba(47,107,255,.35); }
.btn-success {
  background: linear-gradient(145deg, #5ae58c, #2fb765);
  color: #04240f;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(69,214,127,.3);
}
.btn-danger { background: linear-gradient(145deg, #ff5f7a, #e21f45); border-color: transparent; }
.btn-ghost { background: var(--surface); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--r-sm); }
/* «Купить звёзды» в пополнении: второй по важности, поэтому золотой контур */
.tp-buy {
  margin-top: 10px;
  color: var(--gold);
  background: rgba(255, 176, 32, .08);
  border-color: rgba(255, 176, 32, .35);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  font-weight: 700;
  font-size: 15px;
}
.pill .ic { font-size: 15px; line-height: 1; }
.pill-balance { color: #fff; }

/* сегментированный переключатель */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 5px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--stroke);
}
.segmented button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  border-radius: 15px;
  color: var(--text-mute);
  font-weight: 700;
  font-size: 15px;
  transition: background .25s, color .2s, transform .16s var(--ease-spring);
}
.segmented button.active { background: var(--surface-3); color: #fff; }
.segmented button:active { transform: scale(.96); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--stroke);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip.active { background: var(--surface-3); color: #fff; border-color: var(--stroke-strong); }
/* переключатель шансов — есть только у админа, справа в заголовке «Содержимое» */
.section-head .chance-toggle { margin-left: auto; height: 32px; padding: 0 12px; font-size: 13px; }
.chance-toggle.on { background: rgba(255, 176, 32, .12); color: var(--gold); border-color: rgba(255, 176, 32, .4); }

/* ---------- карточки кейсов ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 12px;
}
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--stroke);
  overflow: hidden;
  transition: transform .2s var(--ease-spring), border-color .25s;
}
/* мягкое свечение строго за обложкой, цвет берётся из акцента кейса */
.case-card::before {
  content: '';
  position: absolute;
  top: 8px; left: 12%; right: 12%;
  height: 58%;
  border-radius: 50%;
  /* мягкость даёт сам градиент, без filter: blur() — фильтр заставлял iOS
     перерисовывать каждую карточку при прокрутке */
  background: radial-gradient(ellipse at center, var(--glow, rgba(124,61,255,.5)), transparent 72%);
  opacity: .62;
  pointer-events: none;
  transition: opacity .3s;
}
.case-card:active { transform: scale(.97); border-color: var(--stroke-strong); }
.case-card:active::before { opacity: 1; }
.case-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  /* без min-height:0 грид-элемент не даёт себя сжать, картинка растягивает бокс
     по своей высоте, и карточки с вертикальными обложками выходят выше прочих */
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.case-art img, .case-art svg {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.55));
}
/* Покачивание — только у обложки на странице кейса. В сетке их полтора
   десятка, и бесконечная анимация вместе с тенью-фильтром не давала iOS
   закешировать слои: при быстрой прокрутке карточки оставались пустыми. */
.case-hero .case-art img, .case-hero .case-art svg {
  animation: bob 5.5s ease-in-out infinite;
}
.case-photo {
  position: relative;
  width: 100%; height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
}
/* нарисованная обложка показывается, только если фото с CDN не загрузилось */
.case-fallback { display: none; width: 100%; height: 100%; }
.case-photo.failed .case-fallback { display: block; }
.case-name {
  position: relative;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.case-price {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  font-weight: 700;
  font-size: 18px;
}
.case-price.free { background: linear-gradient(145deg, #5ae58c, #2fb765); color: #04240f; }
.case-badge {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: var(--r-full);
  /* без backdrop-filter: такая плашка есть у каждой карточки, и десяток
     размытий внутри ленты сажал прокрутку. Плотный фон даёт тот же вид. */
  background: rgba(8, 7, 12, .74);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

/* ---------- собственные иконки ---------- */
.ic-svg { display: block; flex: 0 0 auto; }
.ic-badge.sm { width: 32px; height: 32px; border-radius: 11px; }
.ic-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 13px;
  color: var(--tone, var(--accent-soft));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--tone) 26%, transparent),
                            color-mix(in srgb, var(--tone) 8%, transparent));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent),
    0 4px 14px color-mix(in srgb, var(--tone) 18%, transparent);
}
.ic-badge::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone) 32%, transparent), transparent 70%);
  filter: blur(8px);
  opacity: .8;
  pointer-events: none;
  z-index: -1;
}
/* запасной вариант, если браузер не знает color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .ic-badge { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--stroke); }
  .ic-badge::after { display: none; }
}
.row-ic .ic-svg { color: inherit; }

/* ---------- иконка валюты: звезда, одна на всё приложение ---------- */
.cur {
  display: inline-block;
  width: 15px; height: 15px;
  vertical-align: -2px;
  background: var(--gold);
  -webkit-mask: url('/assets/star.svg') center/contain no-repeat;
  mask: url('/assets/star.svg') center/contain no-repeat;
}
.cur-lg { width: 19px; height: 19px; vertical-align: -3px; }
/* картинка вместо эмодзи прямо в строке текста (🎁 в уведомлениях) */
.emo-pic { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.25em; object-fit: contain; }
.cur-sm { width: 12px; height: 12px; vertical-align: -1px; }

/* ---------- карточка дропа ---------- */
.drop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--stroke);
  overflow: hidden;
  transition: transform .18s var(--ease-spring), border-color .2s;
}
/* нижняя подсветка редкости — она же граница «шапки» с ценой */
.drop-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--rar, var(--rarity-common));
  opacity: .9;
}
.drop-card.sel {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 10px 30px rgba(124, 61, 255, .3);
}
.drop-card:active { transform: scale(.96); }

.drop-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 4px 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Geologica', 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  /* на узких экранах длинные суммы ужимаются, а не обрезаются */
  min-width: 0;
}
.drop-price > span { overflow: hidden; text-overflow: ellipsis; }
.drop-price .cur { flex: 0 0 auto; }
/* шанс лежит поверх арта, а не в строке с ценой: на узком экране они наезжали
   друг на друга и цену было не прочитать */
.drop-chance {
  position: absolute;
  top: 32px; left: 6px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: var(--r-full);
  background: rgba(7, 6, 11, .88);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
}
.drop-art {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, var(--rar-soft, transparent), transparent 70%);
}
.drop-art img { width: 100%; height: 100%; object-fit: cover; }
.drop-art .fallback { font-size: 34px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.drop-meta {
  padding: 7px 8px 9px;
  text-align: center;
  background: linear-gradient(180deg, transparent, var(--rar-soft, transparent));
}
.drop-name {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drop-model {
  margin-top: 1px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--rar, var(--text-mute));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* старое имя класса ещё используется в паре мест */
.gift-card { position: relative; }
.gift-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gift-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gift-thumb .fallback { font-size: 34px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.gift-name {
  position: relative;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gift-price, .price {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.gift-price small { color: var(--text-mute); font-weight: 600; font-size: 11px; }
.gift-price.stars { color: var(--gold); }
.gift-card.is-stars { --rar: rgba(255, 176, 32, .55); }
.gift-card.is-stars .gift-thumb {
  background: linear-gradient(160deg, rgba(255,176,32,.18), rgba(255,176,32,.03));
}
.gift-chance {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: var(--r-full);
  background: rgba(8, 7, 12, .76);
  font-size: 10.5px;
  font-weight: 700;
  color: #d7e2ff;
}

.rar-common    { --rar: #8b85a8; --rar-soft: rgba(139,133,168,.14); }
.rar-rare      { --rar: #4d8dff; --rar-soft: rgba(77,141,255,.16); }
.rar-epic      { --rar: #b589ff; --rar-soft: rgba(181,137,255,.18); }
.rar-legendary { --rar: #ffc93c; --rar-soft: rgba(255,201,60,.16); }
.rar-mythic    { --rar: #ff4d6d; --rar-soft: rgba(255,77,109,.18); }

.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gift-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gift-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gift-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 8px; }

/* ---------- live-лента ---------- */
.live {
  margin: 14px calc(var(--pad) * -1) 0;
  padding: 0 var(--pad);
}
.live-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255,59,92,.7);
  animation: live-pulse 1.8s infinite;
}
.live-rail { position: relative; }
.live-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.live-strip::-webkit-scrollbar { display: none; }
.live-item {
  position: relative;
  flex: 0 0 auto;
  width: 66px;
  padding: 7px 5px 6px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--stroke);
  text-align: center;
  overflow: hidden;
  animation: live-in .45s var(--ease-out);
  transition: transform .16s var(--ease-spring), border-color .2s;
}
.live-item::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--rar, var(--rarity-common));
  opacity: .85;
}
.live-item:active { transform: scale(.94); border-color: var(--stroke-strong); }
.live-art {
  display: block;
  width: 46px; height: 46px;
  margin: 0 auto 4px;
}
.live-item img, .live-item .fallback {
  width: 46px; height: 46px;
  border-radius: 10px;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.live-item .lprice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------- списки/строки ---------- */
.card {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--stroke);
}
.card + .card { margin-top: 12px; }

.list { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--stroke); overflow: hidden; }
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  transition: background .2s;
}
.list-row + .list-row { border-top: 1px solid var(--stroke); }
.list-row:active { background: var(--surface-2); }
.row-ic {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  font-size: 18px;
}
.row-main { flex: 1; min-width: 0; }
/* строки размечены span-ами: без block подпись прилипала к заголовку в одну строку */
.row-title { display: block; font-size: 15px; font-weight: 600; }
.row-sub { display: block; font-size: 12.5px; color: var(--text-mute); margin-top: 2px; }
.row-tag {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}
.row-reward {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 700;
}
.row-reward.ready { background: linear-gradient(145deg, #5ae58c, #2fb765); color: #04240f; }

/* пока быстрое открытие выключено, строка приглушена — как автовывод в краше */
.fast-row {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--stroke);
  margin-bottom: 12px;
  cursor: pointer;
  opacity: .55;
  transition: opacity .22s, border-color .22s;
}
.fast-row.on { opacity: 1; border-color: var(--stroke-strong); }

.progress {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-3);
  overflow: hidden;
  margin-top: 8px;
}
.progress span {
  display: block; height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #4d9dff, #a45cff);
  transition: width .5s var(--ease-out);
}

.stat-card { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--stroke); }
.stat-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 15px; }
.stat-row + .stat-row { border-top: 1px dashed var(--stroke); }
.stat-row .k { color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.stat-row .v { font-weight: 700; }
/* картиночная иконка в строке статистики — ставим вровень с нарисованными */
.pic-badge.stat-pic { width: 18px; height: 18px; transform: none; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 20px;
  text-align: center;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--stroke);
}
.empty .art { font-size: 44px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); }
.empty-art .ic-badge { width: 60px; height: 60px; border-radius: 20px; }
/* готовая картинка вместо нарисованной иконки (в том числе анимированная) */
.empty-pic {
  width: 110px; height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5));
}
.gift-thumb .stars-thumb { color: var(--gold); }
.gift-price.stars .ic-svg { display: inline-block; vertical-align: -2px; }
.empty h3 { font-size: 20px; }
.empty p { margin: 0; color: var(--text-mute); font-size: 14px; max-width: 260px; }

/* ---------- модалка ---------- */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 4, 8, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade-in .22s ease;
}
.modal {
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  /* лучи выигрыша шире контента — без этого браузер даёт горизонтальный скролл */
  overflow-x: hidden;
  padding: 20px var(--pad) calc(24px + var(--safe-bottom));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow-2);
  animation: sheet-up .34s var(--ease-out);
}
.modal-grip {
  width: 38px; height: 4px;
  margin: 0 auto 16px;
  border-radius: 4px;
  background: var(--surface-3);
}
.modal h3 { font-size: 21px; margin-bottom: 4px; }
.modal-center { align-items: center; }
.modal-center .modal { border-radius: var(--r-lg); max-width: 380px; margin: 0 16px; animation: pop-in .3s var(--ease-spring); }

/* ---------- тосты ---------- */
.toast-root {
  position: fixed;
  left: 0; right: 0;
  top: calc(var(--safe-top) + 10px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 16px;
}
/* Уведомление: иконка в цветном кружке, свечение по типу и полоска,
   которая утекает за время жизни — видно, сколько ещё провисит. */
.toast {
  --tone: var(--accent-soft, #b589ff);
  --tone-dim: rgba(181, 137, 255, .22);
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  max-width: 360px;
  padding: 12px 16px 12px 13px;
  overflow: hidden;
  border-radius: 17px;
  background:
    radial-gradient(120% 180% at 0% 50%, var(--tone-dim), transparent 58%),
    linear-gradient(180deg, rgba(32, 27, 46, .97), rgba(20, 17, 30, .97));
  border: 1px solid var(--stroke-strong);
  box-shadow:
    0 14px 34px -10px rgba(0, 0, 0, .72),
    inset 0 1px 0 rgba(255, 255, 255, .07);
  color: #efeaff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.005em;
  backdrop-filter: blur(14px);
  pointer-events: auto;
  cursor: pointer;
  animation: toast-in .42s var(--ease-spring) both;
}
/* цветная грань слева — за неё цепляется взгляд */
.toast::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--tone);
  box-shadow: 0 0 12px var(--tone);
}
.toast-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: var(--tone);
  background: var(--tone-dim);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 34%, transparent);
}
.toast-text { min-width: 0; }
.toast-bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, var(--tone), transparent);
  animation: toast-drain var(--life, 2800ms) linear forwards;
}
.toast.err {
  --tone: #ff6b81;
  --tone-dim: rgba(255, 59, 92, .2);
  color: #ffd6dd;
}
.toast.ok {
  --tone: #3ddc97;
  --tone-dim: rgba(61, 220, 151, .18);
  color: #d2ffe9;
}
.toast.out { animation: toast-out .28s var(--ease-out) forwards; }

@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .toast-bar { animation: none; opacity: .35; }
}

/* ---------- скелетоны ---------- */
.skeleton {
  border-radius: var(--r-md);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}
.sk-case { height: 210px; }

/* ------------------------------ ПРОМОКОДЫ ------------------------------ */
.promo-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  text-align: left;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(120% 140% at 8% 50%, rgba(124, 61, 255, .28), transparent 62%),
    var(--surface);
  transition: transform .18s var(--ease-out), border-color .18s;
}
.promo-btn:active { transform: scale(.985); border-color: var(--stroke-strong); }
.promo-ic {
  flex: none;
  width: 44px; height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(124, 61, 255, .55));
}
.promo-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.promo-text b { font-size: 16px; }
.promo-text small { color: var(--text-mute); font-size: 12px; }
/* стрелка-шеврон: рисуем рамкой, отдельная иконка не нужна */
.promo-go {
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: rotate(-45deg);
}

.promo-sheet { text-align: center; }
.promo-hero {
  width: 84px; height: 84px;
  margin: 4px auto 10px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(124, 61, 255, .6));
}
.promo-sheet h3 { font-size: 22px; font-weight: 800; }
.promo-sheet p { margin-top: 4px; font-size: 13px; }
.promo-field {
  width: 100%;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  color: #fff;
  font-family: 'Geologica', 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}
.promo-field:focus { outline: none; border-color: var(--accent-soft); }
.promo-field::placeholder { color: var(--text-dim); letter-spacing: .1em; font-weight: 600; }
.promo-err {
  min-height: 18px;
  margin: 8px 0 10px;
  font-size: 12.5px;
  color: #ff6b81;
}
.promo-history { margin-top: 18px; text-align: left; }
.promo-history-head {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-mute);
}
.promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 13px;
}
.promo-row + .promo-row { margin-top: 6px; }
.promo-row b { color: var(--gold); display: inline-flex; align-items: center; gap: 4px; }

/* --------------------- КАРТИНОЧНЫЕ ИКОНКИ И АВАТАРЫ --------------------- */
/* .pic-badge — готовый арт вместо нарисованной иконки в заголовке раздела */
.pic-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--pic, 34px);
  height: var(--pic, 34px);
}
/* вопросительный знак вытянутый: в общем квадрате он выглядит вдвое крупнее
   остальных, поэтому уменьшаем и сажаем ровно по строке заголовка */
.pic-badge.pic-vopros {
  width: 17px; height: 17px;
  transform: translateY(-6px);
}
.pic-badge img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 9px rgba(0, 0, 0, .5));
}

/* аватар игрока в списках ставок краша и дабла */
.bet-ava {
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #2a2338, #171324);
  border: 1px solid var(--stroke);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-soft);
}
.bet-ava img { width: 100%; height: 100%; object-fit: cover; }
/* забрал выигрыш в краше / цвет ставки в дабле */
.bet-ava.won      { border-color: #3ddc97; box-shadow: 0 0 0 2px rgba(61, 220, 151, .28); }
.bet-ava.bet-red  { border-color: #ff4d6d; box-shadow: 0 0 0 2px rgba(255, 77, 109, .26); }
.bet-ava.bet-black{ border-color: #6b7a99; box-shadow: 0 0 0 2px rgba(107, 122, 153, .26); }
.bet-ava.bet-green{ border-color: #3ddc97; box-shadow: 0 0 0 2px rgba(61, 220, 151, .26); }
