[hidden] {
  display: none !important;
}

:root {
  color-scheme: dark;
  --bg-body: #0f0f13;
  --bg-header: rgba(18, 18, 24, 0.92);
  --bg-panel: #15151b;
  --bg-card: #191920;
  --bg-elev: #21212a;
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.14);
  --gold: #f4be3a;
  --gold-hover: #ffca4b;
  --gold-soft: rgba(244, 190, 58, 0.14);
  --gold-border: rgba(244, 190, 58, 0.36);
  --gold-ink: #1b1304;
  --ice: #48b8f0;
  --green: #34d399;
  --red: #f87171;
  --text: #f1f2f6;
  --text-dim: #9498ab;
  --sidebar-w: 198px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #0b0d14;
  color: var(--text);
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==================== МНОГОСЛОЙНЫЙ АТМОСФЕРНЫЙ ФОН САЙТА ==================== */
.site_backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #090b12;
}

/* 1. Звёздное зимнее небо и северное сияние «Мир танков» */
.sb_sky {
  position: absolute;
  inset: 0;
  background: url('/assets/lesta/bg_lesta_star_hangar.webp') center top / cover no-repeat;
  opacity: 0.78;
}

/* 2. Заснеженный еловый лес на горизонте и по краям экрана */
.sb_forest {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1960px, 128vw);
  height: 880px;
  background: url('/assets/lesta/bg_lesta_tanks_backdrop.webp') center top / cover no-repeat;
  opacity: 0.34;
  filter: brightness(0.46) contrast(1.18) saturate(1.15);
}

/* 3. Ночной снежный пейзаж с фонарём и новогодними ящиками внизу */
.sb_snow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30px;
  height: 540px;
  background: url('/assets/lesta/bg_lesta_snow_boxes.webp') center bottom / cover no-repeat;
  opacity: 0.38;
  filter: brightness(0.62) saturate(1.1);
}

/* 4. Тонкий морозный узор Лесты */
.sb_frost {
  position: absolute;
  inset: 0;
  background: url('/assets/lesta/bg_lesta_frost_pattern.webp') right top / cover no-repeat;
  opacity: 0.42;
  mix-blend-mode: screen;
}

/* 5. Тёплый золотой ореол сверху + мягкое затемнение под карточками для идеальной читаемости */
.sb_vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 64% 38% at 56% 6%, rgba(244, 190, 58, 0.11), transparent 70%),
    radial-gradient(ellipse 52% 45% at 15% 40%, rgba(56, 189, 248, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(10, 12, 18, 0.28) 0%, rgba(12, 13, 20, 0.56) 46%, rgba(10, 11, 17, 0.74) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-icon] > svg,
.wallet_coins_ico > svg,
.cmd_atmo_ico > svg,
#btn-mute > svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==================== ШАПКА САЙТА ==================== */
.site_header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 120;
  background: var(--bg-header);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header_inner {
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

#hdr-buff-slot:empty,
#hdr-game-slot:empty {
  display: none;
}

.header_left {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.brand_logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.brand_logo:hover {
  transform: translateY(-1px);
}

.brand_emblem {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand_emblem svg,
.brand_emblem_img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(244, 190, 58, 0.3));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.brand_logo:hover .brand_emblem_img {
  filter: drop-shadow(0 3px 14px rgba(244, 190, 58, 0.5));
  transform: scale(1.04);
}

.brand_word {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 21.5px;
  letter-spacing: 0.04em;
  color: #ffffff;
  display: inline-flex;
  align-items: baseline;
}

.brand_word .bw_wot {
  background: linear-gradient(180deg, #ffffff 0%, #e7eaf2 58%, #b7bdcc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand_word span,
.brand_word .bw_win {
  color: var(--gold);
}

.brand_word .bw_win {
  background: linear-gradient(180deg, #fff1b8 0%, #f4be3a 52%, #c58412 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main_nav {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 6px;
}

.nav_item {
  position: relative;
  height: 70px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.16s ease;
}

.nav_item:hover {
  color: #ffffff;
}

.nav_item.active {
  color: var(--gold);
}

.nav_item.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.nav_ico {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav_ico svg {
  width: 100%;
  height: 100%;
}

.header_right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.game_badge_single {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: #d7dae6;
  white-space: nowrap;
}

.game_badge_single svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.game_switch_pill {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
}

.gs_btn {
  padding: 6px 11px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gs_btn.active {
  background: rgba(244, 190, 58, 0.16);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(244, 190, 58, 0.35);
}

.wallet_group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 5px 4px 12px;
  border-radius: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.wallet_info {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  background: transparent;
  padding: 2px 4px 2px 0;
  cursor: pointer;
  text-align: left;
}

.wallet_coins_ico {
  width: 24px;
  height: 24px;
  display: flex;
  flex-shrink: 0;
}

.wallet_vals {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.wallet_gold {
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
}

.wallet_rub {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.btn_deposit {
  height: 36px;
  padding: 0 15px;
  border: none;
  border-radius: 9px;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn_deposit:hover {
  background: var(--gold-hover);
  box-shadow: 0 4px 16px rgba(244, 190, 58, 0.35);
}

.profile_btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: #d6d9e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.profile_btn:hover {
  border-color: var(--border-strong);
  color: #ffffff;
}

.admin_gear_btn {
  color: var(--text-dim);
}

.admin_gear_btn:hover {
  color: var(--gold);
  border-color: var(--gold-border);
}

.count_dot {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.count_dot_warn {
  background: #ef4444;
  color: #fff;
}

/* ==================== ЛЕВАЯ КОЛОНКА LIVE ДРОПОВ ==================== */
.live_sidebar {
  position: fixed;
  top: 82px;
  left: 14px;
  bottom: 14px;
  width: var(--sidebar-w);
  z-index: 90;
  background: rgba(19, 20, 28, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.live_online_box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.online_pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(244, 190, 58, 0.7);
  animation: goldPulse 1.8s infinite;
}

@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 190, 58, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(244, 190, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 190, 58, 0); }
}

.live_online_box strong {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: #ffffff;
}

.online_txt {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 11px;
}

.live_feed_list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: none;
}

.live_feed_list::-webkit-scrollbar {
  display: none;
}

/* Палитра редкостей AnyTanks r0..r6 */
.cpt_r0 { --rar: 139, 148, 168; }
.cpt_r1 { --rar: 94, 152, 217; }
.cpt_r2 { --rar: 75, 105, 255; }
.cpt_r3 { --rar: 148, 82, 255; }
.cpt_r4 { --rar: 214, 52, 232; }
.cpt_r5 { --rar: 235, 75, 75; }
.cpt_r6 { --rar: 244, 190, 58; }

.lf_card {
  --rar: 139, 148, 168;
  position: relative;
  flex-shrink: 0;
  height: 108px;
  padding: 8px 10px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--rar), 0.18), rgba(25, 25, 32, 0.96) 72%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 2.5px solid rgb(var(--rar));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.lf_card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--rar), 0.55);
}

.lf_pic {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lf_pic img {
  max-width: 108px;
  max-height: 62px;
  object-fit: contain;
  border-radius: 5px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55));
}

.lf_foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.lf_title {
  font-family: 'Manrope', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lf_price {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #d6d9e6;
  background: rgba(0, 0, 0, 0.42);
  padding: 2px 5px;
  border-radius: 5px;
  flex-shrink: 0;
}

.lf_hover {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 25, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

@media (hover: hover) {
  .lf_card:hover .lf_hover {
    opacity: 1;
    pointer-events: auto;
  }
}

.lf_hover_case {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf_hover_user {
  font-size: 11.5px;
  color: #fff;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== ОСНОВНАЯ ОБЛАСТЬ СТРАНИЦЫ ==================== */
.page_shell {
  position: relative;
  z-index: 1;
  padding-top: 84px;
  padding-left: calc(var(--sidebar-w) + 28px);
  padding-right: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page_container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  flex: 1;
}

/* ==================== ПЕРВЫЙ ЭКРАН 70 / 30 ==================== */
.hero_split {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(300px, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.hero_slider {
  position: relative;
  min-height: 312px;
  border-radius: 18px;
  overflow: hidden;
  background: #141318;
  border: 1px solid var(--gold-border);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.hero_slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  z-index: 4;
  background: linear-gradient(90deg, transparent, rgba(244, 190, 58, 0.85), transparent);
  box-shadow: 0 0 18px var(--gold);
}

.hero_slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.hero_slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero_slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 15, 22, 0.96) 0%, rgba(14, 15, 22, 0.82) 44%, rgba(14, 15, 22, 0.14) 84%);
}

.hero_slide_legend {
  background-color: #11131d;
  background-position: 85% center;
}

.hero_slide_body {
  position: relative;
  z-index: 2;
  max-width: 470px;
}

.hero_kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(244, 190, 58, 0.14);
  border: 1px solid rgba(244, 190, 58, 0.32);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero_h1 {
  margin: 0 0 12px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero_h1 span {
  color: var(--gold);
}

.hero_p {
  margin: 0 0 22px;
  color: rgba(235, 237, 245, 0.78);
  font-size: 14.5px;
  line-height: 1.5;
}

.btn_hero_cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn_hero_cta:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn_hero_cta svg {
  width: 16px;
  height: 16px;
}

.hero_dots {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(12, 12, 16, 0.65);
  backdrop-filter: blur(8px);
}

.hero_dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero_dot.active {
  width: 20px;
  background: var(--gold);
}

.hero_side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.promo_card {
  position: relative;
  border-radius: 16px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 85% 20%, rgba(244, 190, 58, 0.14), transparent 60%),
    var(--bg-panel);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promo_card_head {
  text-align: center;
}

.promo_card_head h3 {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.promo_card_head p {
  margin: 3px 0 0;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
}

.promo_code_btn {
  margin-top: 10px;
  width: 100%;
  height: 40px;
  border-radius: 10px;
  background: rgba(244, 190, 58, 0.08);
  border: 1px dashed rgba(244, 190, 58, 0.55);
  color: var(--gold);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.promo_code_btn:hover {
  background: rgba(244, 190, 58, 0.16);
}

.promo_code_btn svg {
  width: 15px;
  height: 15px;
}

/* Виджет «Мои предметы» с веером 3 карточек (от AnyTanks) */
.fan_widget {
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.16s ease;
}

.fan_widget:hover {
  border-color: var(--gold-border);
}

.fan_cards_row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  height: 86px;
}

.fan_mini {
  width: 74px;
  height: 82px;
  border-radius: 10px;
  padding: 6px;
  background: #1d1d26;
  border: 1px solid rgba(244, 190, 58, 0.32);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.fan_mini img {
  max-width: 56px;
  max-height: 42px;
  object-fit: contain;
  border-radius: 4px;
}

.fan_mini span {
  font-family: 'Manrope', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.1;
  color: #eceff9;
}

.fan_l { transform: rotate(-10deg) translateX(10px) translateY(4px); }
.fan_c { transform: translateY(-3px) scale(1.06); z-index: 2; border-color: var(--gold); }
.fan_r { transform: rotate(10deg) translateX(-10px) translateY(4px); }

/* ==================== СЕКЦИЯ НОВОГОДНИЕ КОРОБКИ (#ng) ==================== */
.ny_showcase {
  position: relative;
  border-radius: 20px;
  padding: 24px 24px 26px;
  margin-bottom: 34px;
  background:
    radial-gradient(ellipse 55% 44% at 50% 0%, rgba(56, 189, 248, 0.22), transparent 72%),
    linear-gradient(95deg, rgba(16, 21, 32, 0.92) 0%, rgba(16, 21, 32, 0.80) 58%, rgba(15, 19, 29, 0.62) 100%),
    url('/assets/lesta/bg_lesta_snow_boxes.webp') right center / cover no-repeat;
  border: 1px solid rgba(103, 210, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
}

.ny_showcase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.85), transparent);
}

.sec_head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.sec_title {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sec_sub {
  font-size: 13px;
  color: var(--text-dim);
}

.cases_grid_4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.cat_block {
  margin-bottom: 36px;
}

/* Карточка кейса гибрида Вариант А */
.wc_card {
  --pedestal: 244, 190, 58;
  position: relative;
  border-radius: 15px;
  background: rgba(21, 21, 29, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 16px 16px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wc_card[data-cat="newyear"] { --pedestal: 72, 184, 240; }
.wc_card[data-cat="wotwin"]  { --pedestal: 244, 190, 58; }
.wc_card[data-cat="nations"] { --pedestal: 226, 168, 72; }
.wc_card[data-cat="risk"]    { --pedestal: 239, 92, 82; }

.wc_card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.52);
}

.wc_badge {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(244, 190, 58, 0.16);
  border: 1px solid rgba(244, 190, 58, 0.42);
  color: var(--gold);
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.wc_art {
  position: relative;
  width: 100%;
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.wc_art::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--pedestal), 0.22) 0%, rgba(var(--pedestal), 0.05) 48%, transparent 72%);
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.wc_card:hover .wc_art::before {
  transform: scale(1.18);
}

.wc_art img {
  position: relative;
  z-index: 1;
  max-width: 96%;
  max-height: 148px;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.65));
  transition: transform 0.22s ease, filter 0.22s ease;
}

.wc_card:hover .wc_art img {
  transform: scale(1.06) translateY(-3px);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.78));
}

.wc_name {
  margin: 0 0 3px;
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.wc_sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* Фирменная кнопка карточки Варианта А: Открыть | [ 249 ₽ ] */
.wc_btn {
  margin-top: auto;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #eceff9;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.wc_btn b {
  color: var(--gold);
  font-weight: 800;
}

.wc_card:hover .wc_btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
}

.wc_card:hover .wc_btn b {
  color: var(--gold-ink);
}

/* ==================== ВНУТРЕННЯЯ СТРАНИЦА КЕЙСА И РУЛЕТКА ==================== */
.stage_panel {
  border-radius: 18px;
  padding: 22px 24px 26px;
  background:
    radial-gradient(ellipse 48% 40% at 50% 0%, rgba(244, 190, 58, 0.08), transparent 72%),
    var(--bg-panel);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.stage_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.stage_title_wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn_back {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #d6d9e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn_back:hover {
  border-color: var(--gold-border);
  color: #fff;
}

.btn_back svg {
  width: 18px;
  height: 18px;
}

.stage_h1 {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.stage_game_tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
}

.stage_tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tool_box {
  height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.tool_box input[type="range"] {
  width: 74px;
  accent-color: var(--gold);
}

.btn_fast_toggle {
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn_fast_toggle svg {
  width: 15px;
  height: 15px;
}

.btn_fast_toggle.active {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold);
}

/* Трек рулетки */
.cr_viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  border-radius: 14px;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.7);
}

.cr_track {
  overflow: hidden;
  padding: 6px 0;
}

.cr_strip {
  display: flex;
  gap: 8px;
  width: max-content;
  will-change: transform;
}

.cr_card {
  --rar: 139, 148, 168;
  position: relative;
  width: 160px;
  height: 164px;
  flex-shrink: 0;
  border-radius: 12px;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 56%, rgba(var(--rar), 0.25), rgba(22, 22, 29, 0.96) 72%);
  border: 1px solid rgba(var(--rar), 0.38);
  border-bottom: 3px solid rgb(var(--rar));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
}

.cr_card.cr_item_win {
  transform: translateY(-4px) scale(1.025);
  border-color: rgb(var(--rar));
  box-shadow: 0 0 28px rgba(var(--rar), 0.55);
  z-index: 2;
}

.cr_card.cr_item_dim {
  opacity: 0.3;
}

.cr_card_pic {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cr_card_pic img {
  max-width: 124px;
  max-height: 92px;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6));
}

.cr_fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  pointer-events: none;
  z-index: 2;
}

.cr_fade_left {
  left: 0;
  background: linear-gradient(90deg, #0d0d12 8%, rgba(13, 13, 18, 0));
}

.cr_fade_right {
  right: 0;
  background: linear-gradient(270deg, #0d0d12 8%, rgba(13, 13, 18, 0));
}

.cr_marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}

.cr_marker_line {
  flex: 1;
  width: 2px;
  background: #fff4d2;
  box-shadow: 0 0 10px var(--gold);
}

.cr_marker_top {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 11px solid var(--gold);
}

.cr_marker_bottom {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 11px solid var(--gold);
}

.stage_actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn_open_case {
  min-width: 260px;
  height: 50px;
  padding: 0 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8c94c 0%, #e5ac2b 100%);
  color: var(--gold-ink);
  font-family: 'Manrope', sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(244, 190, 58, 0.28);
  transition: filter 0.15s ease, transform 0.1s ease, opacity 0.15s;
}

.btn_open_case:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn_open_case:disabled {
  opacity: 0.6;
  cursor: default;
}

.stage_hint {
  margin: 0;
  max-width: 620px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.45;
}

/* Баннер выпавшего приза под рулеткой */
.win_bar {
  --rar: 244, 190, 58;
  width: 100%;
  max-width: 820px;
  padding: 14px 18px;
  border-radius: 14px;
  background: radial-gradient(circle at 10% 50%, rgba(var(--rar), 0.24), rgba(24, 24, 32, 0.98) 65%);
  border: 1px solid rgba(var(--rar), 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.win_bar_left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.win_bar_left img {
  width: 72px;
  height: 54px;
  object-fit: contain;
  border-radius: 6px;
}

.win_bar_title {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.win_bar_sub {
  font-size: 12.5px;
  color: var(--text-dim);
}

.win_bar_btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Сетка «Что может выпасть» (стиль карточек AnyTanks) */
.prizes_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 12px;
}

.cpt {
  --rar: 139, 148, 168;
  position: relative;
  height: 184px;
  border-radius: 13px;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 55%, rgba(var(--rar), 0.22), rgba(22, 22, 29, 0.96) 72%);
  border: 1px solid rgba(var(--rar), 0.34);
  border-bottom: 3px solid rgb(var(--rar));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.cpt:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--rar), 0.8);
}

.cpt_rub {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(10, 10, 15, 0.75);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.cpt_chance {
  position: absolute;
  top: 8px;
  left: 32px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(10, 10, 15, 0.78);
  border: 1px solid rgba(244, 190, 58, 0.3);
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--gold);
  white-space: nowrap;
}

.cpt_i {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

.cpt_tip {
  position: absolute;
  top: 26px;
  left: 0;
  width: 195px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(25, 25, 34, 0.98);
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.65);
  color: var(--text);
  font-family: 'Rubik', sans-serif;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.42;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 15;
}

.cpt_i:hover .cpt_tip,
.cpt_i:focus .cpt_tip,
.cpt_i:focus-within .cpt_tip {
  opacity: 1;
  visibility: visible;
}

.cpt_pic {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
}

.cpt_pic img {
  max-width: 132px;
  max-height: 98px;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6));
}

.cpt_info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.cpt_num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpt_word {
  font-size: 11.5px;
  font-weight: 500;
  color: rgb(var(--rar));
}

/* ==================== АПГРЕЙД И КОНТРАКТЫ ==================== */
.upg_stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 24px;
}

.upg_slot {
  min-width: 0;
  min-height: 220px;
  border-radius: 14px;
  background: #111116;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.upg_slot_filled {
  border-style: solid;
  border-color: var(--gold-border);
}

.upg_slot img {
  max-width: 140px;
  max-height: 100px;
  object-fit: contain;
  border-radius: 8px;
}

.upg_wheel_box {
  position: relative;
  width: 264px;
  height: 264px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upg_wheel_svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.upg_pointer_wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.upg_pointer_dot {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--gold);
  box-shadow: 0 0 14px var(--gold);
}

.upg_center_info {
  position: absolute;
  text-align: center;
}

.upg_chance_val {
  font-family: 'Manrope', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
}

.upg_cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.panel_box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 22px;
}

.scroll_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.selectable_card {
  cursor: pointer;
}

.selectable_card.selected {
  outline: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(244, 190, 58, 0.28);
}

/* Слоты контрактов */
.contract_slots_grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 20px;
}

.c_slot {
  min-width: 0;
  height: 118px;
  border-radius: 12px;
  background: #111116;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.c_slot_title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c_slot_filled {
  border-style: solid;
  border-color: var(--gold-border);
  cursor: pointer;
}

.c_slot img {
  max-width: 82px;
  max-height: 58px;
  object-fit: contain;
  border-radius: 5px;
}

/* ==================== КНОПКИ, ТАБЛИЦЫ, АДМИНКА ==================== */
.btn_gold_solid {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn_gold_solid:hover:not(:disabled) {
  background: var(--gold-hover);
}

.btn_gold_outline {
  padding: 9px 15px;
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.btn_green_soft {
  padding: 9px 14px;
  border: 1px solid rgba(52, 211, 153, 0.38);
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.13);
  color: #6ee7b7;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}

.btn_ghost {
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
}

.btn_ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.btn_gold_solid svg,
.btn_gold_outline svg,
.btn_green_soft svg,
.btn_ghost svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

#btn-tg-test {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn_sm {
  padding: 6px 10px;
  font-size: 11.5px;
  border-radius: 8px;
}

.btn_full {
  width: 100%;
}

.kpi_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi_card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.kpi_lbl {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.kpi_val {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.kpi_sub {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 4px;
}

.admin_switches {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.sw_pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #111116;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sw_pill input {
  accent-color: var(--gold);
}

.data_table_wrap {
  overflow-x: auto;
}

.data_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data_table th, .data_table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data_table th {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 12px;
}

.status_pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.st_pending { background: var(--gold-soft); color: var(--gold); }
.st_completed { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; }
.st_rejected { background: rgba(248, 113, 113, 0.14); color: #fca5a5; }

.ledger_list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 340px;
  overflow-y: auto;
}

.ledger_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 9px;
  background: #111116;
  border: 1px solid var(--border);
  font-size: 12.5px;
}

/* ==================== МОДАЛЬНЫЕ ОКНА И ПОДВАЛ ==================== */
.ui_input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #101015;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.ui_input:focus {
  border-color: var(--gold);
}

.ui_input option {
  background: #15151b;
  color: #f1f2f6;
}

.form_row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form_row label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.form_grid_2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal_backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 6, 9, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal_backdrop[hidden] {
  display: none !important;
}

.modal_card {
  width: 100%;
  max-width: 450px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #17171f;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.modal_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal_head h3 {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.modal_close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal_close svg {
  width: 16px;
  height: 16px;
}

.modal_sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
}

.dep_presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.dep_preset_btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #101015;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.dep_preset_btn span {
  font-family: 'Rubik', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
}

.dep_preset_hot {
  border-color: var(--gold-border);
  background: var(--gold-soft);
}

.pay_methods {
  display: flex;
  gap: 8px;
}

.pm_btn {
  flex: 1;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #101015;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
}

.pm_active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
}

.toast_stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 16px;
  border-radius: 11px;
  background: #1c1c25;
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  font-weight: 500;
}

.site_footer {
  margin-top: 50px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--border);
}

.footer_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer_brand {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer_brand_img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 6px rgba(244, 190, 58, 0.25));
}

.footer_brand span {
  color: var(--gold);
}

.footer_note {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
}

.footer_links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer_links a:hover {
  color: var(--gold);
}

.mobile_bar {
  display: none;
}

/* ==================== АДАПТИВ ==================== */
@media (max-width: 1560px) {
  .header_left {
    gap: 16px;
  }
  .nav_item {
    padding: 0 10px;
    font-size: 12px;
    gap: 6px;
  }
  #hdr-game-slot {
    display: none;
  }
}

@media (max-width: 1320px) {
  .main_nav .nav_ico {
    display: none;
  }
  #hdr-buff-slot {
    display: none;
  }
  .btn_deposit {
    padding: 0 11px;
  }
}

@media (max-width: 1180px) {
  .cases_grid_4, .cases_grid_5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero_split {
    grid-template-columns: 1fr;
  }
  .hero_side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
}

@media (max-width: 1100px) {
  .live_sidebar {
    display: none;
  }
  .main_nav {
    display: none;
  }
  .page_shell {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 72px;
  }
  .mobile_bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    z-index: 200;
    background: rgba(16, 16, 22, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    display: flex;
  }
  .mb_link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-dim);
  }
  .mb_link.active {
    color: var(--gold);
  }
  .mb_link svg {
    width: 19px;
    height: 19px;
  }
  .toast_stack {
    bottom: 72px;
    right: 12px;
    left: 12px;
  }
}

@media (max-width: 920px) {
  .cases_grid_4, .cases_grid_5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upg_stage { grid-template-columns: minmax(0, 1fr); }
  .upg_cols { grid-template-columns: minmax(0, 1fr); }
  .contract_slots_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .hero_slider {
    min-height: 268px;
  }
  .hero_slide {
    padding: 24px 22px 38px;
  }
  .hero_h1 {
    font-size: 27px;
  }
  .hero_p {
    font-size: 13.5px;
    margin-bottom: 16px;
  }
  .hero_side {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage_h1 {
    font-size: 21px;
  }
}

@media (max-width: 640px) {
  .header_inner {
    padding: 0 10px;
    gap: 7px;
  }
  .header_right {
    gap: 6px;
  }
  #btn-hdr-pf,
  .site_header a.profile_btn[data-nav="/inventory"] {
    display: none;
  }
  .btn_deposit {
    padding: 0 10px;
    font-size: 12px;
  }
  .brand_word {
    font-size: 17px;
  }
  .brand_emblem {
    width: 35px;
    height: 35px;
  }
  .hdr_user_nick {
    max-width: 72px;
  }
}

@media (max-width: 600px) {
  .hero_slider {
    min-height: 240px;
  }
  .hero_slide {
    padding: 20px 16px 38px;
  }
  .hero_h1 {
    font-size: 22px;
  }
  .ny_showcase {
    padding: 18px 14px 20px;
  }
  .stage_panel {
    padding: 16px 14px 20px;
  }
  .panel_box {
    padding: 16px 14px;
  }
}

@media (max-width: 560px) {
  .form_grid_2 {
    grid-template-columns: 1fr;
  }
  .pay_methods {
    flex-wrap: wrap;
  }
  .wc_card {
    padding: 12px 10px;
  }
  .wc_art {
    height: 126px;
  }
  .wc_name {
    font-size: 14.5px;
  }
  .wc_btn {
    height: 36px;
    padding: 0 9px;
    font-size: 12px;
    gap: 4px;
    white-space: nowrap;
  }
}

/* ==================== СПЕЦЭФФЕКТЫ, АНИМАЦИИ И ИНТЕРАКТИВ (FX v2) ==================== */
.ambient_canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fx_canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2500;
  pointer-events: none;
}

/* Медленное дыхание северного сияния на фоне */
.sb_sky {
  animation: auroraDrift 22s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
  0%   { transform: scale(1.0) translateY(0px); opacity: 0.72; }
  50%  { transform: scale(1.035) translateY(-8px); opacity: 0.86; }
  100% { transform: scale(1.015) translateY(4px); opacity: 0.76; }
}

/* Встряска камеры на мощных ударах (легендарки, ковка контрактов, сгорание) */
.fx_shake_sm {
  animation: shakeSm 0.34s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
.fx_shake_lg {
  animation: shakeLg 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shakeSm {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-3px, 2px, 0); }
  45% { transform: translate3d(3px, -2px, 0); }
  70% { transform: translate3d(-2px, 1px, 0); }
}

@keyframes shakeLg {
  0%, 100% { transform: translate3d(0, 0, 0); }
  15% { transform: translate3d(-6px, 3px, 0); }
  35% { transform: translate3d(6px, -4px, 0); }
  55% { transform: translate3d(-4px, 3px, 0); }
  80% { transform: translate3d(3px, -1px, 0); }
}

/* Подсветка баланса при начислении */
.val_flash_up {
  animation: valFlashGold 0.65s ease;
}

@keyframes valFlashGold {
  0%   { filter: brightness(1); transform: scale(1); }
  30%  { filter: brightness(1.45); transform: scale(1.06); text-shadow: 0 0 14px rgba(244, 190, 58, 0.75); }
  100% { filter: brightness(1); transform: scale(1); }
}

/* Живой выезд новых карточек в левой Live-ленте */
.lf_card.lf_new {
  animation: liveDropSlideIn 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes liveDropSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-34px) scale(0.92);
    box-shadow: 0 0 26px rgba(var(--rar), 0.65);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Каскадное появление и 3D-наклон карточек кейсов со световым бликом */
.wc_card {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 30%;
  transform: perspective(860px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  animation: cardFadeUp 0.46s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--stagger, 0ms);
  transition: transform 0.14s ease-out, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wc_card:hover {
  transform: perspective(860px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-5px);
}

.wc_card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 160px at var(--gx) var(--gy), rgba(255, 255, 255, 0.085), transparent 75%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.wc_card:hover::after {
  opacity: 1;
}

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: perspective(860px) translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: perspective(860px) translateY(0) scale(1);
  }
}

/* Веер карточек «Мои предметы» оживает при наведении */
.fan_mini {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}
.fan_widget:hover .fan_l { transform: rotate(-16deg) translateX(2px) translateY(2px); }
.fan_widget:hover .fan_c { transform: translateY(-9px) scale(1.1); box-shadow: 0 12px 24px rgba(244, 190, 58, 0.28); }
.fan_widget:hover .fan_r { transform: rotate(16deg) translateX(-2px) translateY(2px); }

/* ==================== МУЛЬТИ-РУЛЕТКА (1x..5x) И ФИЗИКА ШТИФТА ==================== */
.spin_qty_group {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  gap: 2px;
}

.sq_btn {
  height: 30px;
  min-width: 36px;
  padding: 0 9px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-dim);
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sq_btn:hover:not(.active) {
  color: #fff;
}

.sq_btn.active {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 2px 10px rgba(244, 190, 58, 0.35);
}

.cr_multi_stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cr_viewport {
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cr_viewport_compact {
  padding: 12px 0;
}

.cr_viewport_compact .cr_card {
  height: 124px;
  padding: 9px 10px;
}

.cr_viewport_compact .cr_card_pic img {
  max-height: 64px;
}

.cr_viewport_spinning {
  border-color: rgba(244, 190, 58, 0.42);
  box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.8), 0 0 26px rgba(244, 190, 58, 0.12);
}

.cr_viewport_suspense {
  transform: scale(1.012);
  border-color: rgba(244, 190, 58, 0.65);
}

/* Живая подсветка карточки, проходящей прямо под лазерной линией */
.cr_card.cr_card_center {
  transform: translateY(-2px) scale(1.035);
  border-color: rgba(255, 244, 210, 0.85);
  box-shadow: 0 0 20px rgba(var(--rar), 0.45);
  z-index: 2;
}

/* Физический отскок верхнего/нижнего зубца маркера при ударе о карточку */
.cr_marker_top,
.cr_marker_bottom {
  transition: transform 0.065s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center top;
}

.cr_marker.cr_marker_kick .cr_marker_top {
  transform: rotate(-22deg) translateY(-2px) scale(1.14);
  filter: drop-shadow(0 0 8px var(--gold));
}

.cr_marker.cr_marker_kick .cr_marker_bottom {
  transform: rotate(18deg) translateY(2px) scale(1.1);
}

/* Выигрышная карточка: пульсация ореола и диагональный золотой блик */
.cr_card.cr_item_win {
  overflow: hidden;
  transform: translateY(-5px) scale(1.045);
  animation: winCardGlow 1.6s ease-in-out infinite alternate;
}

.cr_card.cr_item_win::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -120%;
  width: 65%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: rotate(24deg);
  animation: winShineSweep 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

@keyframes winCardGlow {
  from { box-shadow: 0 0 22px rgba(var(--rar), 0.48); }
  to   { box-shadow: 0 0 38px rgba(var(--rar), 0.82); }
}

@keyframes winShineSweep {
  to { left: 165%; }
}

.win_bar {
  animation: winBarPop 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes winBarPop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.win_multi_wrap {
  width: 100%;
  max-width: 960px;
  padding: 16px 18px;
  border-radius: 15px;
  background: rgba(20, 21, 30, 0.95);
  border: 1px solid var(--gold-border);
  animation: winBarPop 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.win_multi_list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

/* ==================== КИНЕМАТОГРАФИЧЕСКОЕ ОКНО ТРОФЕЯ ==================== */
.trophy_backdrop {
  background: radial-gradient(circle at 50% 45%, rgba(18, 20, 32, 0.88), rgba(5, 6, 10, 0.96));
  backdrop-filter: blur(12px);
}

.trophy_stage {
  --rar: 244, 190, 58;
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 32px 28px 26px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(var(--rar), 0.28), rgba(18, 19, 27, 0.97) 68%);
  border: 1px solid rgba(var(--rar), 0.65);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85), 0 0 60px rgba(var(--rar), 0.28);
  text-align: center;
  animation: trophyPopIn 0.46s cubic-bezier(0.18, 1.25, 0.4, 1);
}

.trophy_fx_clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.trophy_close_btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
}

@keyframes trophyPopIn {
  0%   { opacity: 0; transform: scale(0.78) translateY(24px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.trophy_rays {
  position: absolute;
  top: 34%;
  left: 50%;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  margin-top: -260px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(var(--rar), 0.16) 0deg 12deg,
    transparent 12deg 24deg
  );
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 10%, transparent 66%);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 10%, transparent 66%);
  pointer-events: none;
  animation: spinRays 24s linear infinite;
}

@keyframes spinRays {
  to { transform: rotate(360deg); }
}

.trophy_rar_pill {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(var(--rar), 0.18);
  border: 1px solid rgba(var(--rar), 0.6);
  color: rgb(var(--rar));
  font-family: 'Manrope', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trophy_art_wrap {
  position: relative;
  z-index: 2;
  height: 196px;
  margin: 14px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trophy_art_wrap img {
  max-width: 88%;
  max-height: 186px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.78)) drop-shadow(0 0 24px rgba(var(--rar), 0.38));
  animation: trophyFloat 3.2s ease-in-out infinite alternate;
}

@keyframes trophyFloat {
  from { transform: translateY(4px) scale(0.99); }
  to   { transform: translateY(-7px) scale(1.03); }
}

.trophy_title {
  position: relative;
  z-index: 2;
  margin: 0 0 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 800;
}

.trophy_meta {
  position: relative;
  z-index: 2;
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.trophy_actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

/* ==================== РАДАР АПГРЕЙДЕРА И КОВКА КОНТРАКТА ==================== */
.upg_blade {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 2.5px;
  height: 48px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ffffff 0%, var(--gold) 65%, transparent 100%);
  box-shadow: 0 0 12px var(--gold);
  border-radius: 2px;
  transition: box-shadow 0.08s ease, background 0.08s ease;
}

/* Живая подсветка, когда стрелка проходит прямо через золотой сектор выигрыша */
.upg_wheel_box.upg_in_zone .upg_chance_val {
  color: #ffe28a;
  text-shadow: 0 0 22px rgba(244, 190, 58, 0.78);
}

.upg_wheel_box.upg_in_zone .upg_blade {
  background: linear-gradient(180deg, #ffffff 0%, #6ee7b7 55%, transparent 100%);
  box-shadow: 0 0 18px #6ee7b7;
}

.upg_wheel_box.upg_in_zone .upg_pointer_dot {
  border-color: #6ee7b7;
  box-shadow: 0 0 18px #6ee7b7;
}

.upg_wheel_box.upg_flash_win {
  animation: upgWinPulse 0.75s ease;
}

.upg_wheel_box.upg_flash_burn {
  animation: upgBurnPulse 0.65s ease;
}

@keyframes upgWinPulse {
  0%   { filter: drop-shadow(0 0 0 rgba(52, 211, 153, 0)); transform: scale(1); }
  35%  { filter: drop-shadow(0 0 32px rgba(52, 211, 153, 0.75)); transform: scale(1.05); }
  100% { filter: drop-shadow(0 0 0 rgba(52, 211, 153, 0)); transform: scale(1); }
}

@keyframes upgBurnPulse {
  0%   { filter: drop-shadow(0 0 0 rgba(248, 113, 113, 0)); }
  30%  { filter: drop-shadow(0 0 32px rgba(248, 113, 113, 0.8)); }
  100% { filter: drop-shadow(0 0 0 rgba(248, 113, 113, 0)); }
}

.c_slot.c_slot_forging {
  border-color: var(--gold);
  background: radial-gradient(circle at 50% 50%, rgba(244, 190, 58, 0.28), #14131a 72%);
  box-shadow: 0 0 24px rgba(244, 190, 58, 0.45);
  animation: slotForgePulse 0.32s ease-in-out infinite alternate;
}

@keyframes slotForgePulse {
  from { transform: scale(0.97); }
  to   { transform: scale(1.04); }
}
