:root {
  /* --- Color palette from second CSS --- */
  --bg-main: radial-gradient(60% 60% at 50% 20%, #2a2f45 0%, #0b0e19 100%);
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.18);
  --accent-red: #e53935;
  --accent-gold: #f5c46b;
  --text-main: #ffffff;
  --text-muted: rgba(255,255,255,0.6);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --blur: blur(18px);
  --font-main: 'Roboto Condensed', sans-serif;
  
  /* --- Game-specific variables --- */
  --brand1: #f5c46b;
  --brand2: #e9c979;
  --accent: #4da3ff;
  --violet: #a64aff;
  
  --radius-md: 14px;
  --shadow-lg: 0 22px 70px rgba(0,0,0,.55);
  --shadow-md: 0 14px 45px rgba(0,0,0,.45);
  --shadow-in: inset 0 1px 0 rgba(255,255,255,.06);
  
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 22px;
  --tap: 56px;
  
  --navStroke: rgba(255,255,255,.10);

      --icon: rgba(255,255,255,.55);
      --iconActive: rgba(255,255,255,.88);

      /* фон таббара (ТВОЙ) */
      --navBg:
        radial-gradient(60% 55% at 50% 18%, #2b3046 0%, #1a1f33 40%, #0c0f1b 75%, #090b14 100%),
        linear-gradient(180deg, #1a1f33 0%, #0b0e19 100%);

      /* кнопка по центру (ТВОЙ) */
      --fabBg: radial-gradient(65% 60% at 50% 20%, #ff4d4d 0%, #c91c14 40%, #8f140d 75%, #2a0503 100%);
      --fabBorder: 1px solid rgba(255, 160, 40, .26);
      --fabShadow: 0 22px 64px rgba(0, 0, 0, .60),
                   0 0 26px rgba(255, 120, 0, .16),
                   inset 0 1px 0 rgba(255, 255, 255, 0.55),
                   inset 0 -4px 8px rgba(0, 0, 0, 0.2);
}

*{box-sizing:border-box}
html,body{height:100%; margin:0;}

body {
  color: var(--text-main);
  font-family: var(--font-main);
  background: var(--bg-main);
  overflow: hidden;
}

/* Фоновая картинка */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url('assets/osnovanie.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* ====== РАЗМЫТИЕ ФОНА ДЛЯ НЕГЛАВНЫХ СТРАНИЦ ====== */
.bg-blur .bg {
    filter: blur(8px);
    transition: filter 0.3s ease;
}

/* Контейнер для затемнения поверх фона */
.page-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 24, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bg-blur .page-overlay {
    opacity: 1;
    pointer-events: all;
}

/* Убедимся что контент страниц выше фона */
.page {
    position: relative;
    z-index: 10;
}

/* Создаем контейнер для всего контента вверху */
header {
    position: relative;
    z-index: 10;
}

/* Градиентный оверлей поверх фона, но под контентом */
header::before {
    content: '';
    position: absolute;
    top: -100px; /* Расширяем вверх за пределы header */
    left: 0;
    right: 0;
    height: 300px; /* Достаточная высота для плавного перехода */
    background: linear-gradient(
        to bottom,
        rgba(10, 12, 24, 0.95) 0%,    /* Темный вверху */
        rgba(10, 12, 24, 0.85) 15%,   /* Полупрозрачный */
        rgba(10, 12, 24, 0.7) 30%,    /* Еще прозрачнее */
        rgba(10, 12, 24, 0.4) 60%,    /* Полупрозрачный */
        rgba(10, 12, 24, 0.1) 85%,    /* Почти прозрачный */
        transparent 100%              /* Полностью прозрачный внизу */
    );
    pointer-events: none; /* Чтобы не мешал кликам */
    z-index: -1; /* Помещаем под контентом header */
}

/* Альтернативный вариант с более выраженным градиентом */
header::after {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
    pointer-events: none;
    z-index: -1;
    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 60%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 60%,
        transparent 100%
    );
}

/* --- Topbar как во втором примере --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(10, 12, 24, 0.8);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-border);
}

.title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title .subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.title .badge {
  color: var(--accent);
  margin-left: 6px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--text-main);
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
}

.icon-btn:hover {
  background: var(--glass-bg);
}

/* Progress capsule (pixel-perfect style) */
.progress-wrap {
  margin: 8px 16px 0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(8,10,18,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 26px;
  backdrop-filter: blur(14px);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.progress-inner {
  position: relative;
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7dfa3 0%, #e9c979 48%, #d7ad55 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -8px 16px rgba(0,0,0,0.18),
    0 8px 18px rgba(0,0,0,0.18);
}

.progress-inner:before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 20px;
  border: 1px solid rgba(90,60,10,0.22);
  pointer-events: none;
}

.avatar-medal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 44px;
  padding: 2px;
  background: linear-gradient(180deg,#f9e7b8 0%, #e0b562 100%);
  box-shadow:
    0 8px 16px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.55);
}

.avatar-medal .avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  color: #1a0f22;
  background: linear-gradient(135deg, rgba(58,167,255,.32), rgba(166,74,255,.22));
  overflow: hidden;
}

.avatar-medal .avatar.has-photo {
  background-size: cover;
  background-position: center;
}

.progress-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(18,14,8,0.92);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.progress-count {
  flex: 0 0 auto;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

/* ... предыдущие стили остаются ... */

/* --- Stats row (Lives / Coins) --- */
.stats-row {
  margin: 8px 16px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: var(--blur);
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.08);
  min-height: 70px;
}

.stat-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.stat-icon:before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 14px;
}

.stat-icon.coin {
}

/* Стили для SVG внутри иконок */
.stat-icon svg {
  width: 84px;
  height: 84px;
  transform: scale(0.45); /* Масштабируем большие SVG */
  position: absolute;
  z-index: 1;
}

/* Специальные стили для ваших монет и жизней SVG */
.stat-card:nth-child(1) .stat-icon svg {
  transform: scale(0.4) translateY(-2px); /* Жизни */
}

.stat-card:nth-child(2) .stat-icon svg {
  transform: scale(0.38) translateY(-1px); /* Монеты */
}

.stat-meta { 
  line-height: 1.1;
  min-width: 0;
  flex: 1;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1;
}

/* Стили для чисел с разделением */
.stat-value span {
  font-weight: 800;
}

.stat-value span:last-child {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
}

/* Эффекты при наведении */
.stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 12px 35px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.2s ease;
}

/* Адаптивность */
@media (max-width: 380px) {
  .stats-row { 
    grid-template-columns: 1fr; 
    gap: 10px;
    margin-left: 12px;
    margin-right: 12px;
  }
  
  .stat-card {
    padding: 12px;
  }
  
  .stat-icon {
    width: 42px;
    height: 42px;
  }
  
  .stat-icon svg {
    width: 26px;
    height: 26px;
  }
  
  .stat-value {
    font-size: 18px;
  }
}

@media (max-width: 320px) {
  .stat-card {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 10px;
  }
  
  .stat-meta {
    width: 100%;
  }
}

/* --- Остальные стили вашей игры --- */
.app {
  height: 100%;
  padding: 0 16px calc(96px + env(safe-area-inset-bottom));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.page { display: none; }
.page.active { display: block; }

/* --- Generic surfaces --- */
.card, .gameCard {
  margin-top: 26px;
  border-radius: var(--radius-xl);
  /*background: var(--glass-bg);*/
  /*border: 1px solid var(--glass-border);*/
  /*box-shadow: var(--shadow-lg);*/
  padding: var(--space-4);
  /*backdrop-filter: var(--blur);*/
}

.card { margin-bottom: var(--space-3); }
.cardTitle { font-weight: 900; font-size: 14px; letter-spacing: .2px; margin-bottom: 12px; }

/* --- Game --- */
.gameHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.title { font-weight: 950; font-size: 16px; letter-spacing: .2px; }
.xpPill {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,160,40,.14);
  border: 1px solid rgba(255,160,40,.25);
  color: rgba(255,240,230,.92);
  white-space: nowrap;
}


.gameFooter { display: flex; gap: 10px; margin-top: 14px; }

.btn {
  height: var(--tap);
  flex: 1;
  border: 0;
  border-radius: 18px;
  padding: 0 16px;
  font-weight: 950;
  cursor: pointer;
  color: #1a0f22;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 16px 44px rgba(255,120,0,.30);
}

.btn:active { transform: translateY(1px); }

.btn.ghost {
  color: var(--text-main);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-in);
}

.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn .btn-icon { display: inline-flex; align-items: center; gap: 8px; }
.btn .btn-icon i { font-size: 14px; }

.tip { padding: 10px 6px; color: rgba(255,255,255,.72); font-size: 12px; text-align: center; }



/* Центральная кнопка должна быть выше */
.navCenter, .centerRing {
  position: relative;
  z-index: 3;
}

/* ====== СТИЛИ ДЛЯ КНОПОК НАВИГАЦИИ ====== */
.navItem {
    height: 56px;
    width: 56px;
    border-radius: 16px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    z-index: 3;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0 auto;
}

/* Контейнер для SVG и текста */
.navItem .icon-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

/* Стили для SVG иконок */
.navItem svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    opacity:0.6;
    stroke: rgba(0, 0, 0, 0.92);
    stroke-width: 0.5;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
    transition: all 0.2s ease;
}

.navItem span {color:rgb(207 213 243 / 92%);font-size:11px;letter-spacing: 0.2px;}

/* Подпись под иконкой */
.navItem .icon-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(18, 14, 8, 0.85);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    letter-spacing: 0.2px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

/* Активная кнопка */
.navItem.active {
        background: radial-gradient(65% 60% at 50% 20%, #ff4d4d 0%, #c91c14 40%, #8f140d 75%, #2a0503 100%);
    border: 1px solid rgba(255, 160, 40, .26);
    box-shadow: 0 22px 64px rgba(0, 0, 0, .60), 0 0 26px rgba(255, 120, 0, .16), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -4px 8px rgba(0, 0, 0, 0.2);
}

.navItem.active svg {
    fill: #fff;
    stroke: #fff;
    filter: drop-shadow(0 2px 4px rgba(166, 74, 255, 0.3));
    opacity:1;
}

.navItem.active .icon-label {
    opacity: 1;
    transform: translateY(0);
    color: #fff;
}

/* Ховер эффект */
.navItem:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}


/* Центральная кнопка */
.navCenter {
  position: relative;
  height: 84px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 4; /* Выше всех */
}

.centerRing {
  position: absolute;
  width: 84px; height: 84px;
  border-radius: 999px;
  background:
  radial-gradient(
    65% 60% at 50% 20%,
    #ff4d4d 0%,
    #c91c14 40%,
    #8f140d 75%,
    #2a0503 100%
  );

  border: 1px solid rgba(255,160,40,.26);
  box-shadow: 
    0 22px 64px rgba(0,0,0,.60), 
    0 0 26px rgba(255,120,0,.16),
    inset 0 1px 0 rgba(255,255,255,0.55), /* Добавляем внутреннюю подсветку */
    inset 0 -4px 8px rgba(0,0,0,0.2); /* Добавляем внутреннюю тень */
}

.centerRing::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  border: 1px solid rgba(90,60,10,0.22);
  pointer-events: none;
}

.centerHead {
  position: relative;
  width: 178px; height: 128px;
  transform: translateY(25px);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.60));
  border-radius: 999px;
  z-index: 5;
}

/* Прогресс бар в навигации */
.bottomNav > * { position: relative; z-index: 3; }

.bottomNav .progress-fill {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--progress-width, 0%);
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: inherit;
    transition: width 0.5s ease;
    z-index: 2;
}

/* canvas overlay */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 10; }

/* --- Responsive --- */
@media (max-width: 390px) {
  .board { padding: 10px; }
  #holesGrid, .tam-grid { gap: 10px; padding: 8px; }
}

@media (max-width: 360px) {
  .progress-wrap, .stats-row, .app, .bottomNav {
    margin-left: 12px;
    margin-right: 12px;
  }
}

/* ====== СООБЩЕНИЯ ИГРЫ ====== */
.game-message {
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 12px;
  z-index: 10000;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}

.game-message.success {
  background: #4CAF50;
  color: white;
}

.game-message.error {
  background: #f44336;
  color: white;
}

.game-message.warning {
  background: #ff9800;
  color: white;
}

.game-message.info {
  background: #2196F3;
  color: white;
}

/* ====== ЗАГРУЗКИ ====== */
.shop-loading,
.leaders-loading,
.friends-loading {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #f5c46b;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

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


/* ====== АДАПТИВНОСТЬ ====== */
@media (max-width: 380px) {
  .modal-content {
    padding: 20px;
  }
  
  .welcome-title {
    font-size: 18px;
  }
  
  .levelup-level {
    font-size: 60px;
  }
  
  .loading-logo {
    width: 100%;
    height: auto;
  }
}

/* ====== ТЕМЫ TELEGRAM ====== */
[data-theme="light"] {
  --text-main: #000000;
  --text-muted: rgba(0,0,0,0.6);
  --glass-bg: rgba(255,255,255,0.9);
  --glass-border: rgba(0,0,0,0.1);
}

[data-theme="dark"] {
  --text-main: #ffffff;
  --text-muted: rgba(255,255,255,0.6);
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.18);
}


/* ====== ИСПРАВЛЕНИЯ ДЛЯ ПРОГРЕСС БАРА ====== */
.progress-wrap {
  position: relative;
  overflow: hidden;
}

.progress-inner {
  position: relative;
  overflow: hidden;
  padding: 6px;
  border-radius: 22px;
  background:
  radial-gradient(
    60% 55% at 50% 18%,
    #f7dfa3 0%,
    #ecd08a 32%,
    #d7ad55 65%,
    #9e7a34 100%
  ),
  linear-gradient(
    180deg,
    #f1d58f 0%,
    #d7ad55 45%,
    #8f6a2a 100%
  );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -8px 16px rgba(0,0,0,0.18),
    0 8px 18px rgba(0,0,0,0.18);
  min-height: 44px;
}

.progress-inner:before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 20px;
  border: 1px solid rgba(90,60,10,0.22);
  pointer-events: none;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 160, 40, 0.3), rgba(255, 200, 80, 0.2));
  border-radius: 20px;
  z-index: 0;
  transition: width 0.5s ease;
}

.avatar-medal {
  position: relative;
  z-index: 1;
}

.progress-text {
  position: relative;
  z-index: 1;
}

/* ====== ЗАЩИТА ОТ АВТО-УДАРОВ ====== */
.hole {
  position: relative;
  transition: transform 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}


/* Отключаем выделение текста во время игры */
#board {
  user-select: none;
  -webkit-user-select: none;
}


/* ====== КНОПКА ИГРАТЬ ====== */
#btnPlay {
  background: linear-gradient(135deg, #4da3ff, #a64aff);
  border: none;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

#btnPlay:active {
  transform: translateY(2px);
}

/* ====== АДАПТИВНОСТЬ ====== */
@media (max-width: 380px) {
  .progress-inner {
    padding: 6px 12px 6px 8px;
    min-height: 40px;
  }
  
  .progress-text {
    font-size: 14px;
  }
}

/* ====== ЭФФЕКТ ПРОМАХА ====== */
.miss-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.miss-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.miss-heart {
  width: 280px;
  height: 280px;
  margin-bottom: 30px;
  filter: drop-shadow(0 20px 40px rgba(255, 0, 0, 0.4));
  animation: missHeartBeat 1.2s ease-out;
}

@keyframes missHeartBeat {
  0% {
    transform: scale(0.3);
    opacity: 0;
    filter: drop-shadow(0 0 0 rgba(255, 0, 0, 0));
  }
  30% {
    transform: scale(1.2);
    opacity: 1;
    filter: drop-shadow(0 0 40px rgba(255, 0, 0, 0.6));
  }
  50% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.5));
  }
  70% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 35px rgba(255, 0, 0, 0.55));
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 25px rgba(255, 0, 0, 0.4));
  }
}

.miss-message {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  text-shadow: 
    0 4px 8px rgba(255, 0, 0, 0.5),
    0 0 20px rgba(255, 0, 0, 0.6);
  margin-bottom: 20px;
  animation: missTextPulse 2s ease-in-out infinite;
}

@keyframes missTextPulse {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(0.98);
  }
}

.miss-lives {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  background: rgba(255, 0, 0, 0.2);
  padding: 12px 24px;
  border-radius: 16px;
  border: 2px solid rgba(255, 100, 100, 0.4);
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

.miss-continue {
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  border: none;
  border-radius: 16px;
  color: white;
  cursor: pointer;
  box-shadow: 
    0 12px 30px rgba(255, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.miss-continue:active {
  transform: translateY(2px);
  box-shadow: 
    0 8px 20px rgba(255, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}


.miss-heart.shaking {
    animation: heartShake 0.4s ease 0.5s;
}

/* Затемнение экрана при эффектах */
.game-effect-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9998;
    pointer-events: none;
    transition: background 0.3s ease;
}

.game-effect-overlay.active {
    background: rgba(0, 0, 0, 0.4);
}

@keyframes missGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 15px rgba(255, 0, 0, 0.5));
    }
}



/* ====== СТРАНИЦА ЗАДАНИЙ - КАК PROMO КАРТОЧКА ====== */

/* Контейнер для всех заданий */
.tasks-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* КАРТОЧКА ЗАДАНИЯ - ГОРИЗОНТАЛЬНОЕ РАСПОЛОЖЕНИЕ */
.task-card {
  display: flex;
  align-items: center;
  min-height: 112px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  padding: 16px !important;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  transition: all 0.3s ease;
  gap: 16px; /* Отступ между изображением и контентом */
}

/* Полученные задания - серые */
.task-card.claimed {
  background: linear-gradient(180deg, rgba(128,128,128,.10), rgba(128,128,128,.06));
  border-color: rgba(128,128,128,.14);
  filter: grayscale(0.7);
  opacity: 0.7;
}

/* Задания для получения - золотые */
.task-card.can-claim {
  background: radial-gradient(
    60% 55% at 50% 18%,
    #f7dfa3 0%,
    #ecd08a 32%,
    #d7ad55 65%,
    #9e7a34 100%
  ),
  linear-gradient(
    180deg,
    #f1d58f 0%,
    #d7ad55 45%,
    #8f6a2a 100%
  );
  border: 1px solid rgba(90, 60, 10, 0.22);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -8px 16px rgba(0,0,0,.18),
    0 8px 18px rgba(0,0,0,.18);
}

.task-card.can-claim::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 16px;
  border: 1px solid rgba(90, 60, 10, 0.22);
  pointer-events: none;
  z-index: -1;
}

/* Анимация пульсации */
.task-card.can-claim {
    position: relative;
    animation: taskCardGlow 2s infinite ease-in-out;
}

@keyframes taskCardGlow {
    0%, 100% {
        box-shadow: 
            0 8px 18px rgba(0,0,0,0.18),
            inset 0 1px 0 rgba(255,255,255,0.55),
            inset 0 -8px 16px rgba(0,0,0,0.18),
            0 0 0 rgba(247, 223, 163, 0);
    }
    50% {
        box-shadow: 
            0 12px 25px rgba(0,0,0,0.25),
            inset 0 1px 0 rgba(255,255,255,0.65),
            inset 0 -8px 16px rgba(0,0,0,0.22),
            0 0 30px rgba(247, 223, 163, 0.6);
    }
}

/* ИЗОБРАЖЕНИЕ СЛЕВА - фиксированная ширина */
.task-image {
  flex: 0 0 auto;
  width: 140px;
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.task-image img {
      width: 160px;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
    user-select: none;
    -webkit-user-drag: none;
    border-radius: 12px;
    margin-right: 15px;
}

/* КОНТЕНТ СПРАВА - занимает оставшееся пространство */
.task-content {
  flex: 1;
  min-width: 0; /* Важно для корректного обрезания текста */
}

.task-name {
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: 1.05;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
}

.task-card.can-claim .task-name {
  color: rgba(18, 14, 8, 0.92);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.task-card.claimed .task-name {
  color: rgba(255, 255, 255, 0.7);
}

.task-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}

.task-card.can-claim .task-desc {
  color: rgba(18, 14, 8, 0.75);
}

.task-card.claimed .task-desc {
  color: rgba(255, 255, 255, 0.4);
}

/* ПРОГРЕСС БАР */
.task-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.task-card.in-progress .progress-fill {
  background: linear-gradient(90deg, #4da3ff, #a64aff);
}

.task-card.can-claim .progress-fill {
  background: rgba(18, 14, 8, 0.3);
}

.task-card.claimed .progress-fill {
  background: rgba(128, 128, 128, 0.3);
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

.task-card.can-claim .progress-text {
  color: rgba(18, 14, 8, 0.85);
  font-weight: 700;
}

.task-card.claimed .progress-text {
  color: rgba(255, 255, 255, 0.4);
}

/* НАГРАДА */
.task-reward {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reward-coins {
  font-size: 14px;
  font-weight: 700;
  color: #f6c21f;
  display: flex;
  align-items: center;
  gap: 4px;
}

.reward-coins::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23f7dfa3'/%3E%3Cstop offset='48%25' stop-color='%23e9c979'/%3E%3Cstop offset='100%25' stop-color='%23d7ad55'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='256' cy='256' r='220' fill='%23fff2c9'/%3E%3Ccircle cx='256' cy='256' r='210' fill='url(%23g)'/%3E%3Ccircle cx='256' cy='256' r='170' fill='%23fff6d4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Для золотых заданий которые можно получить */
.task-card.can-claim .reward-coins::before {
  filter: brightness(0.8) saturate(1.2);
}

/* Для уже полученных серых заданий */
.task-card.claimed .reward-coins::before {
  filter: grayscale(1) opacity(0.6);
}

.reward-boost {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(77, 163, 255, 0.2);
  border: 1px solid rgba(77, 163, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

.task-card.can-claim .reward-boost {
  background: rgba(18, 14, 8, 0.15);
  border-color: rgba(90, 60, 10, 0.3);
  color: rgba(18, 14, 8, 0.85);
}

.task-card.claimed .reward-boost {
  background: rgba(128, 128, 128, 0.2);
  border-color: rgba(128, 128, 128, 0.3);
  color: rgba(255, 255, 255, 0.5);
}

/* СТАТУС ЗАДАНИЯ */
.task-status {
  margin-top: 8px;
}

.task-in-progress {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(77, 163, 255, 0.15);
  border: 1px solid rgba(77, 163, 255, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

.task-completed {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(128, 128, 128, 0.15);
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.task-card.can-claim .task-claim-overlay {
  display: flex;
}

/* === КНОПКА "ЗАБРАТЬ НАГРАДУ" В СТИЛЕ МОДАЛЬНОГО ОКНА === */
.task-claim-btn {
    position: relative;
    width: 100%;
    height: 56px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    filter: drop-shadow(0 24px 70px rgba(0,0,0,.65));
    margin-top: 10px;
}

.task-claim-btn__text {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.2px;
    color: rgba(18, 14, 8, 0.92);
    font: 400 18px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    font-weight: 700;
}

/* SVG кнопки */
.task-claim-btn__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.task-claim-btn:active {
    transform: translateY(1px);
}

/* Обновленный оверлей с меньшим затемнением */
.task-claim-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* Меньшая прозрачность */
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: 18px;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.task-card.can-claim .task-claim-overlay {
    display: flex;
}


/* БЕЙДЖ "ПОЛУЧЕНО" */
.claimed-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(76, 175, 80, 0.7));
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
  z-index: 2;
}

.task-card.claimed .claimed-badge {
  display: block;
}

/* АНИМАЦИИ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}



@keyframes taskSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task-card {
  animation: taskSlideIn 0.4s ease backwards;
}

.task-card:nth-child(1) { animation-delay: 0.1s; }
.task-card:nth-child(2) { animation-delay: 0.2s; }
.task-card:nth-child(3) { animation-delay: 0.3s; }
.task-card:nth-child(4) { animation-delay: 0.4s; }

/* АДАПТИВНОСТЬ - теперь без колонок на мобильных! */
@media (max-width: 600px) {
  .task-card {
    gap: 12px; /* Уменьшаем отступ на мобильных */
    min-height: 100px;
    padding: 12px !important;
  }
  
  .task-image {
    flex: 0 0 120px; /* Уменьшаем изображение на мобильных */
    height: 120px;
  }
  
  .task-name {
    font-size: 15px;
  }
  
  .task-desc {
    font-size: 12px;
  }
  
  .task-claim-btn {
    padding: 12px 20px;
    font-size: 14px;
    min-width: 140px;
  }
  
  .task-in-progress,
  .task-completed {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .claimed-badge {
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 3px 8px;
  }
  
  /* Для очень маленьких экранов можно сделать перенос */
  @media (max-width: 360px) {
    .task-card {
      flex-wrap: wrap;
    }
    
    .task-image {
      flex: 0 0 50px;
      height: 50px;
      margin-bottom: 8px;
    }
    
    .task-content {
      flex: 1 0 100%; /* На очень маленьких экранах контент под изображением */
    }
  }
}

/* СОСТОЯНИЯ ЗАГРУЗКИ И ОШИБОК */
.tasks-loading {
  padding: 60px 20px;
  text-align: center;
  color: rgba(255,255,255,.6);
}

.no-tasks {
  padding: 60px 20px;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 2px dashed rgba(255,255,255,.1);
}

.no-tasks-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-tasks-title {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  margin-bottom: 8px;
}

.no-tasks-desc {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  max-width: 300px;
  margin: 0 auto;
}

.tasks-error {
  padding: 40px 20px;
  text-align: center;
}

.error-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.error-desc {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin: 8px 0 16px;
}

/* Улучшаем навигацию для страницы бонусов */
[data-page="bonuses"] .bottomNav {
    background: rgba(20, 23, 35, 0.85);
    backdrop-filter: blur(20px);
}

/* Стили для иконок в навигации */
.navItem[data-go="bonuses"].active svg,
.navItem[data-go="skins"].active svg,
.navItem[data-go="leaders"].active svg,
.navItem[data-go="friends"].active svg {
    fill: var(--accent-gold);
    stroke: var(--accent-gold);
    filter: drop-shadow(0 2px 4px rgba(245, 196, 107, 0.3));
}

.navItem[data-go="bonuses"].active span,
.navItem[data-go="skins"].active span,
.navItem[data-go="leaders"].active span,
.navItem[data-go="friends"].active span {
    color: var(--accent-gold);
}


/* ====== ПЛАВАЮЩАЯ КНОПКА PVP НА ГЛАВНОЙ СТРАНИЦЕ ====== */
.pvp-float-btn {
    position: fixed;
    right: 20px;
    bottom: 70px;
    width: 140px;
    height: 70px;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pvp-float-btn:active {
    box-shadow: 
        0 5px 20px rgba(255, 0, 0, 0.3),
        0 0 15px rgba(255, 100, 100, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


.pvp-btn-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    position: relative;
    z-index: 2;
}

/* Текстовый лейбл */
.pvp-float-btn::after {
    content: 'PvP';
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 
        0 2px 4px rgba(255, 0, 0, 0.5),
        0 0 8px rgba(255, 100, 100, 0.5);
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.pvp-float-btn:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность для маленьких экранов */
@media (max-width: 380px) {
    .pvp-float-btn {
        right: 15px;
        bottom: 90px;
        width: 60px;
        height: 60px;
    }
    
    .pvp-float-btn::after {
        font-size: 11px;
        top: -22px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 320px) {
    .pvp-float-btn {
        right: 10px;
        bottom: 85px;
        width: 55px;
        height: 55px;
    }
}

/* Если кнопка перекрывает навигацию на очень маленьких экранах */
@media (max-height: 700px) {
    .pvp-float-btn {
        bottom: 80px;
    }
}

/* Эффект когда активна страница PvP */
[data-page="pvp"] .pvp-float-btn {
    background: linear-gradient(145deg, rgba(100, 200, 255, 0.9), rgba(30, 150, 255, 0.9));
    box-shadow: 
        0 10px 30px rgba(30, 150, 255, 0.4),
        0 0 20px rgba(100, 200, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[data-page="pvp"] .pvp-btn-pulse {
    background: radial-gradient(circle at center, 
        rgba(100, 200, 255, 0.4) 0%,
        rgba(100, 200, 255, 0.2) 40%,
        transparent 70%);
}

[data-page="pvp"] .pvp-float-btn::after {
    color: rgba(100, 200, 255, 0.9);
    text-shadow: 
        0 2px 4px rgba(30, 150, 255, 0.5),
        0 0 8px rgba(100, 200, 255, 0.5);
}


/* ====== ТЕКСТОВЫЕ ЭФФЕКТЫ ДЛЯ XP И ПОТЕРИ ЖИЗНЕЙ ====== */
.effect-text {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    font-weight: 900;
    font-size: 22px;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3);
    animation: textFloatUp 1.5s ease-out forwards;
    opacity: 0;
    white-space: nowrap;
}

/* Эффект для потери жизней */
.life-effect-text {
    color: #FF4444; /* красный */
    text-shadow: 
        0 2px 4px rgba(255, 68, 68, 0.4),
        0 0 10px rgba(255, 68, 68, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, 
        rgba(255, 68, 68, 0.15) 0%, 
        rgba(255, 68, 68, 0.05) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Анимация для рандомных наклонов */
@keyframes textTiltLeft {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(-8deg); }
}

@keyframes textTiltRight {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(8deg); }
}

/* Фоновый контейнер для текста */
.text-effect-container {
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    backdrop-filter: blur(4px);
}

.xp-effect-text .text-effect-container {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(255, 200, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.life-effect-text .text-effect-container {
    background: linear-gradient(135deg, 
        rgba(255, 68, 68, 0.1) 0%, 
        rgba(255, 50, 50, 0.05) 100%);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

/* Иконки рядом с текстом */
.text-effect-container::before {
    margin-right: 8px;
    font-weight: 900;
}

.xp-effect-text .text-effect-container::before {
    content: '↑';
    color: #FFD700;
}

.life-effect-text .text-effect-container::before {
    content: '↓';
    color: #FF4444;
}

/* Дополнительная анимация для XP */
@keyframes xpShine {
    0% {
        background-position: -100px;
    }
    40%, 100% {
        background-position: 200px;
    }
}

.xp-effect-text {
    position: relative;
    overflow: hidden;
}

.xp-effect-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    background-size: 200px 100%;
    animation: xpShine 1s ease-out;
    pointer-events: none;
}

/* Дополнительная анимация для потери жизней */
@keyframes lifePulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.05);
        opacity: 1;
    }
}

.life-effect-text .text-effect-container {
    animation: lifePulse 0.5s ease 2;
}


.effect-text.dissolving {
    animation: textDissolve 0.8s ease-out forwards;
}


/* ====== МАГАЗИН СКИНОВ (ОБНОВЛЕННЫЕ СТИЛИ) ====== */
.shop-header {
  padding: 16px 16px 0;
  margin-bottom: 16px;
  text-align: center;
}

.shop-title {
  font-size: 24px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  margin-bottom: 8px;
}

.shop-subtitle {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  margin-bottom: 4px;
}

/* ====== БЛОК "ТВОЙ АКТИВНЫЙ СКИН" В СТИЛЕ ПРОМО-БЛОКА ====== */
.active-skin-container {
  margin-bottom: 20px;
  animation: fadeIn 0.4s ease;
}

.active-skin-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 112px;
  background:
  radial-gradient(
    60% 55% at 50% 18%,
    #cfe6d8 0%,
    #9fcbb1 35%,
    #5f9f80 65%,
    #2f5f4a 100%
  ),
  linear-gradient(
    180deg,
    #cfe6d8 0%,
    #7fbfa0 45%,
    #2f5f4a 100%
  );

  backdrop-filter: blur(10px);
  padding: 16px !important;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);

box-shadow:
  0 20px 60px rgba(0,0,0,.55),
  inset 0 1px 0 rgba(255,255,255,.18),
  inset 0 -16px 28px rgba(0,0,0,.35);

}

.active-skin-promo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(77, 163, 255, 0.05) 0%,
    rgba(166, 74, 255, 0.03) 25%,
    transparent 50%
  );
  pointer-events: none;
}

.active-skin-left {
  flex: 0 0 auto;
  width: 120px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.active-skin-ico {
  width: 240px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 12px;
  margin-left: 15px;
}

.active-skin-right {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding-left: 10px;
}

.active-skin-title {
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: 18px;
  color: #0f1116;
}

.active-skin-accent {
  color: #e0bd6e;
  background: radial-gradient(
    60% 55% at 50% 18%,
    #2b3046 0%,
    #1a1f33 40%,
    #0c0f1b 75%,
    #090b14 100%
  ),
  linear-gradient(
    180deg,
    #1a1f33 0%,
    #0b0e19 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.active-skin-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  max-width: 220px;
}

/* Бейдж "АКТИВЕН" */
.active-skin-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(76, 175, 80, 0.7));
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
  z-index: 2;
}

/* Плейсхолдер в том же стиле */
.active-skin-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 112px;
  background:
    linear-gradient(
      180deg,
      #1a1c22 0%,
      #0f1116 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 16px !important;
  border-radius: 18px;
}

.active-skin-placeholder .active-skin-left {
  flex: 0 0 auto;
  width: 120px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  font-size: 42px;
  opacity: 0.5;
}

.placeholder-content {
  flex: 1;
  padding-left: 10px;
}

.placeholder-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.placeholder-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* Анимация появления */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 380px) {
  .active-skin-promo,
  .active-skin-placeholder {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    min-height: auto;
    padding: 14px !important;
  }
  
  .active-skin-left {
    width: 100%;
    height: 80px;
  }
  
  .active-skin-ico {
    width: 140px;
    margin-left: 0;
  }
  
  .active-skin-right,
  .placeholder-content {
    padding-left: 0;
    text-align: center;
  }
  
  .active-skin-desc {
    max-width: 100%;
  }
  
  .active-skin-badge {
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* Эффект при клике */
.active-skin-promo:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.skin-preview {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.2);
  display: grid;
  place-items: center;
}

.skin-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skin-info {
  flex: 1;
}

.skin-name {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 4px;
}

.skin-desc {
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

.skin-badge.active {
  padding: 6px 12px;
  background: linear-gradient(180deg, var(--accent-red), var(--accent-red)90%);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 18px rgba(211,66,69,.22);
}

/* Сетка скинов */
.skins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.skin-item {
  border-radius: 16px;
  background: #4f5561;
  backdrop-filter: blur(14px);
  padding: 16px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.skin-item.owned {
  background: #2f5f4a;
  border-color: rgba(76,175,80,.3);
}

.skin-item.equipped {
  background: #111420;
  border-color: rgba(77,163,255,.3);
  transform: translateY(-2px);
}

.skin-image {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.3);
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  position: relative;
}

.skin-image img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.owned-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  background: linear-gradient(180deg, #4CAF50, #45a049);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,.2);
}

.skin-details {
  flex: 1;
  margin-bottom: 12px;
}

.skin-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 4px;
  text-align: center;
}

.skin-desc {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

.skin-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
  text-align: center;
}

.skin-price.not-enough {
  color: rgba(255,255,255,.4);
}

.skin-actions {
  display: flex;
  justify-content: center;
}

.skin-actions .btn {
  padding: 8px 16px;
  font-size: 13px;
  height: auto;
  min-width: 100px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent-red), var(--accent-red)90%);
  color: white;
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 600;
  box-shadow: 0 10px 18px rgba(211,66,69,.22);
}

.skin-actions .equip-btn {
  background: linear-gradient(180deg, #4CAF50, #45a049);
  box-shadow: 0 10px 18px rgba(76,175,80,.22);
}

.skin-actions .buy-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(180deg, rgba(211,66,69,.5), rgba(211,66,69,.4));
}

/* Купленные скины */
.owned-skins {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.owned-skin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.1);
}

.owned-skin-item.equipped {
  background: linear-gradient(180deg, rgba(77,163,255,.12), rgba(77,163,255,.06));
  border-color: rgba(77,163,255,.25);
}

.owned-skin-image {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.owned-skin-image img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.owned-skin-info {
  flex: 1;
}

.owned-skin-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 4px;
}

.owned-skin-price {
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: 600;
}

.owned-skin-item .btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #4CAF50, #45a049);
  color: white;
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(76,175,80,.22);
}

/* Статистика */
.skins-stats {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.skins-stats .stat-item {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  background: #111420;
}

.skins-stats .stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-bottom: 4px;
}

.skins-stats .stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Состояния */
.empty-owned {
  padding: 40px 20px;
  text-align: center;
}

.empty-owned .empty-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
}

.empty-owned .empty-icon svg {
  width: 22px;
  height: 22px;
  fill: rgba(255,255,255,.72);
}

.empty-owned .empty-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin-bottom: 8px;
}

.empty-owned .empty-desc {
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

.loading-skins {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: rgba(255,255,255,.6);
}

.loading-skins .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

.no-skins {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
}

.no-skins .no-skins-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
}

.no-skins .no-skins-icon svg {
  width: 22px;
  height: 22px;
  fill: rgba(255,255,255,.72);
}

/* Анимации для карточек */
@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skin-item {
  animation: cardSlideIn 0.4s ease backwards;
}

/* Адаптивность */
@media (max-width: 600px) {
  .skins-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .skins-grid {
    grid-template-columns: 1fr;
  }
  
  .skins-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .active-skin-card {
    flex-direction: column;
    text-align: center;
  }
  
  .owned-skin-item {
    flex-direction: column;
    text-align: center;
  }
  
  .owned-skin-item .btn {
    width: 100%;
    margin-top: 10px;
  }
}

/* Эффекты при нажатии */
.skin-item:active,
.owned-skin-item:active,
.active-skin-card:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* Улучшенный чекбокс для купленных скинов */
.skin-checkmark {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  background: linear-gradient(180deg, #4CAF50, #45a049);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.skin-checkmark:after {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Исправляем контейнеры с контентом */
.card {
  margin-bottom: 20px;
  overflow: visible !important; /* Разрешаем выход содержимого за пределы */
}

/* Увеличиваем высоту списков */
.leaders-list-container,
.friends-list-container,
.skins-grid,
.tasks-container {
  max-height: auto !important;
  overflow-y: auto !important;
  padding-right: 5px; /* Для скроллбара */
}

/* ====== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ ДРУЗЕЙ ====== */

/* Реферальная ссылка */
.ref-link-display {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.ref-link-text {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  background: rgba(0,0,0,.2);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
}

.ref-copy-btn {
  padding: 6px 12px;
  font-size: 11px;
  white-space: nowrap;
}

.ref-code-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
  padding: 6px 12px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
}

/* Статистика в виде сетки */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stats-item {
  aspect-ratio: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
}

.stats-item .day-number {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.stats-item .day-reward {
  font-size: 10px;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Список друзей */
.friends-list {
  min-height: 200px;
}

.friends-empty {
  padding: 40px 20px;
  text-align: center;
  background: rgba(255,255,255,.03);
  border: 2px dashed rgba(255,255,255,.1);
  border-radius: 16px;
  margin: 20px 0;
}

.friends-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.friends-empty .empty-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin-bottom: 8px;
}

.friends-empty .empty-desc {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  max-width: 300px;
  margin: 0 auto;
}

/* Карточки друзей */
.friend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}

.friend-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, var(--accent), var(--violet));
}

.friend-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.friend-info {
  flex: 1;
  min-width: 0;
}

.friend-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-status {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online { background: #4CAF50; }
.status-dot.offline { background: #f44336; }
.status-dot.played { background: #2196F3; }

.friend-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  text-align: right;
  flex-shrink: 0;
}

/* Иконки в стиле остальных страниц */
.task-icon.success {
  background: rgba(76, 175, 80, 0.1);
  border-color: rgba(76, 175, 80, 0.3);
}

.task-icon.success svg {
  fill: #4CAF50;
}

.task-icon.bonus {
  background: rgba(77, 163, 255, 0.1);
  border-color: rgba(77, 163, 255, 0.3);
}

.task-icon.bonus svg {
  fill: #4da3ff;
}

/* Адаптивность */
@media (max-width: 380px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ref-link-display {
    flex-direction: column;
    gap: 8px;
    min-width: auto;
  }
  
  .ref-link-text {
    max-width: 100%;
    text-align: center;
  }
}

/* Анимации */
.friend-item {
  animation: slideIn 0.3s ease backwards;
}

.friend-item:nth-child(1) { animation-delay: 0.1s; }
.friend-item:nth-child(2) { animation-delay: 0.2s; }
.friend-item:nth-child(3) { animation-delay: 0.3s; }
.friend-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для аватаров с инициалами */
.friend-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: grid;
    place-items: center;
}

.friend-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.avatar-initials {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 0;
}

/* Для загруженного изображения */
.friend-avatar.loaded .avatar-initials {
    display: none;
}

.friend-avatar.loaded img {
    display: block;
}

.friend-avatar:not(.loaded) img {
    display: none;
}

.page.active .card {padding:0px}

/* ====== МАГАЗИН БУСТОВ (ОБНОВЛЕННЫЕ СТИЛИ) ====== */
.shop-header {
  padding: 16px 16px 0;
  margin-bottom: 16px;
  text-align: center;
}

.shop-title-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
}

.shop-subtitle {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  margin-bottom: 4px;
}

/* Список бустов */
.shop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.boost-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  transition: all 0.2s ease;
}

.boost-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.boost-icon:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  opacity: 0.2;
}

.boost-icon[style*="background: #ffb300"]:before {
  background: #ffb300;
}

.boost-icon[style*="background: #3aa7ff"]:before {
  background: #3aa7ff;
}

.boost-icon[style*="background: #a64aff"]:before {
  background: #a64aff;
}

.boost-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.boost-info {
  flex: 1;
  min-width: 0;
}

.boost-name {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 6px;
}

.boost-desc {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.3;
  margin-bottom: 8px;
}

.boost-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.boost-duration {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  gap: 4px;
}

.boost-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
  text-align: right;
}

.boost-price.not-enough {
  color: rgba(255,255,255,.4);
}

.boost-buy {
  padding: 10px 20px;
  font-size: 14px;
  height: auto;
  min-width: 90px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent-red), var(--accent-red)90%);
  color: white;
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 600;
  box-shadow: 0 10px 18px rgba(211,66,69,.22);
  cursor: pointer;
}

.boost-buy.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(180deg, rgba(211,66,69,.5), rgba(211,66,69,.4));
}

/* Активные бусты */
.active-boosts-card {
  margin-top: 24px;
}

.active-boosts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.active-boost {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(76,175,80,.12), rgba(76,175,80,.06));
  border: 1px solid rgba(76,175,80,.3);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.active-boost-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.active-boost-icon.x2 {
  background: rgba(255,179,0,.2);
  border: 1px solid rgba(255,179,0,.4);
}

.active-boost-icon.auto {
  background: rgba(58,167,255,.2);
  border: 1px solid rgba(58,167,255,.4);
}

.active-boost-icon.slow {
  background: rgba(166,74,255,.2);
  border: 1px solid rgba(166,74,255,.4);
}

.active-boost-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.active-boost-info {
  flex: 1;
}

.active-boost-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 4px;
}

.active-boost-timer {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Состояния загрузки и ошибок */
.shop-loading,
.shop-error {
  padding: 40px 20px;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

.shop-error .error-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
}

.shop-error .error-icon svg {
  width: 22px;
  height: 22px;
  fill: rgba(255,255,255,.72);
}

.error-desc {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin: 8px 0 16px;
}

.no-boosts {
  padding: 30px 20px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.1);
}

.no-boosts-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
}

.no-boosts-icon svg {
  width: 22px;
  height: 22px;
  fill: rgba(255,255,255,.72);
}

/* Анимации */
@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.boost-item,
.active-boost {
  animation: cardSlideIn 0.4s ease backwards;
}

.boost-item:nth-child(1) { animation-delay: 0.1s; }
.boost-item:nth-child(2) { animation-delay: 0.2s; }
.boost-item:nth-child(3) { animation-delay: 0.3s; }

/* Эффекты при нажатии */
.boost-item:active,
.active-boost:active,
.shop-error .btn:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.boost-buy:active:not(.disabled) {
  transform: translateY(1px);
  box-shadow: 0 6px 12px rgba(211,66,69,.22);
}


/* Адаптивность */
@media (max-width: 600px) {
  .boost-item {
    flex-wrap: wrap;
  }
  
  .boost-buy {
    width: 100%;
    margin-top: 12px;
  }
  
  .boost-meta {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .shop-list {
    gap: 10px;
  }
  
  .boost-item {
    padding: 14px;
  }
  
  .boost-icon {
    width: 50px;
    height: 50px;
  }
  
  .boost-icon img {
    width: 32px;
    height: 32px;
  }
  
  .active-boost {
    padding: 12px;
  }
  
  .active-boost-icon {
    width: 40px;
    height: 40px;
  }
  
  .active-boost-icon img {
    width: 20px;
    height: 20px;
  }
}

/* Иконки для бустов (SVG стили) */
.boost-duration svg,
.active-boost-timer svg {
  width: 12px;
  height: 12px;
  fill: rgba(255,255,255,.5);
}

/* Эффекты для дорогих бустов */
.boost-item.premium {
  background: linear-gradient(180deg, rgba(255,215,0,.12), rgba(255,200,0,.06));
  border: 1px solid rgba(255,215,0,.3);
}

.boost-item.premium .boost-price {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255,215,0,.3);
}

/* Статус "доступно бесплатно" */
.boost-item.free .boost-price {
  color: #4CAF50;
  font-weight: 800;
}

.boost-item.free .boost-buy {
  background: linear-gradient(180deg, #4CAF50, #45a049);
  box-shadow: 0 10px 18px rgba(76,175,80,.22);
}


/* ====== ИСПРАВЛЕНИЕ РАЗМЫТИЯ ФОНА ====== */
.page:not(.active) {
    display: none;
}

.page.active {
    display: block;
    position: relative;
    z-index: 10;
    animation: pageFadeIn 0.3s ease;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Убираем отдельный элемент page-overlay */
.page-overlay {
    display: none;
}

/* Убираем затемнение для header при размытии */
.bg-blur header::before,
.bg-blur header::after {
    display: none;
}

/* Размытие только для фона */
.bg-blur .bg {
    background: radial-gradient(circle at 50% 45%, rgba(140, 160, 255, .08), transparent 38%),
    repeating-conic-gradient(
      from -10deg at 50% 42%,
      rgba(255,255,255,.08) 0 7deg,
      rgba(255,255,255,0) 7deg 14deg
    );
    filter: blur(13px) brightness(0.4);
    transform: scale(1.05);
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Для страниц с контентом делаем фон менее размытым */
[data-page="boosts"] .bg,
[data-page="bonuses"] .bg,
[data-page="skins"] .bg,
[data-page="leaders"] .bg,
[data-page="friends"] .bg,
[data-page="pvp"] .bg {
    filter: blur(15px) brightness(0.8);
}

/* ====== ЗАПРЕТ ВСЕХ НЕЖЕЛАТЕЛЬНЫХ ВЗАИМОДЕЙСТВИЙ ====== */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  touch-action: manipulation;
}

/* Разрешаем выделение только для текстовых полей ввода */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Запрет зума на iOS */
html {
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

/* Запрет масштабирования */
@media (hover: none) and (pointer: coarse) {
  input[type="text"],
  input[type="search"],
  input[type="password"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  textarea {
    font-size: 16px !important; /* Предотвращает зум на iOS */
  }
}

/* Запрет выделения для всего, кроме нужных элементов */
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.allow-select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Запрет скролла на body при открытых модалках */
body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Улучшаем скролл для контейнеров */
.app {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  height: calc(100vh - 200px);
}

/* Убираем стандартное поведение iOS для ссылок */
a {
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}


/* ====== МОДАЛЬНОЕ ОКНО ЕЖЕДНЕВНЫХ БОНУСОВ (BOTTOM SHEET) ====== */
.daily-bonus-sheet {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 80px; /* Выше навигации */
  height: 580px;
  border-radius: 26px;
  background:
    radial-gradient(
    60% 55% at 50% 18%,
    #2b3046 0%,
    #1a1f33 40%,
    #0c0f1b 75%,
    #090b14 100%
  ),
  linear-gradient(
    180deg,
    #1a1f33 0%,
    #0b0e19 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: translateY(120%);
  transition: transform 360ms cubic-bezier(0.2, 0.95, 0.25, 1);
  z-index: 100;
  will-change: transform;
  backdrop-filter: blur(20px);
}

.daily-bonus-sheet.active {
  transform: translateY(0);
}

/* Tiny stars effect */
.daily-bonus-sheet::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 20%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1px 1px at 35% 25%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(1.2px 1.2px at 55% 18%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(1px 1px at 70% 32%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 22%, rgba(255, 255, 255, 0.25), transparent 60%),
    radial-gradient(1px 1px at 18% 42%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(1.2px 1.2px at 82% 48%, rgba(255, 255, 255, 0.2), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Overlay */
.daily-bonus-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  z-index: 99;
}

.daily-bonus-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Sheet top with grabber */
.bonus-sheet-top {
  position: relative;
  padding: 14px 16px 10px;
  cursor: grab;
  user-select: none;
}

.bonus-sheet-top:active {
  cursor: grabbing;
}

.sheet-grabber {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 84px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.close-sheet-btn {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  z-index: 2;
}

.close-sheet-btn:active {
  transform: translateY(1px);
}

/* Sheet content */
.bonus-sheet-content {
  padding: 10px 18px 18px;
  height: calc(100% - 52px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Icon wrap */
.bonus-icon-wrap {
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.bonus-icon-wrap svg {
  width: 86px;
  height: 86px;
}

/* Title */
.bonus-title {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(90deg, #f7dfa3, #e9c979);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bonus-desc {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.5;
  max-width: 310px;
  margin: -4px auto 0;
}

/* Streak grid */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 2px;
}

.bonus-day-card {
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 12px 10px;
  min-height: 88px;
  position: relative;
  transition: all 0.3s ease;
}

.bonus-day-card.active {
  border-color: rgba(49, 211, 123, 0.55);
  box-shadow: 0 0 0 1px rgba(49, 211, 123, 0.25) inset;
  background: rgba(49, 211, 123, 0.08);
}

.bonus-day-card.today {
  border-color: rgba(244, 163, 27, 0.55);
  box-shadow: 0 0 0 1px rgba(244, 163, 27, 0.25) inset;
  background: rgba(244, 163, 27, 0.08);
  transform: scale(1.05);
}

.bonus-day-card.claimed {
  border-color: rgba(107, 108, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(107, 108, 255, 0.25) inset;
  background: rgba(107, 108, 255, 0.08);
}

.bonus-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  font-size: 12px;
}

.bonus-amount {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}

/* Gift row */
.gift-row {
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.gift-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gift-row-right {
  text-align: right;
}

.gift-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 12px;
}

.gift-value {
  font-weight: 800;
  font-size: 18px;
  margin-top: 2px;
  color: #f6c21f;
}

/* Claim button */
.claim-bonus-btn {
  margin-top: auto;
  width: 100%;
  padding: 16px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, var(--accent-red), var(--accent-red) 90%);
  color: white;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(211, 66, 69, 0.25);
  transition: all 0.2s ease;
}

.claim-bonus-btn:active {
  transform: translateY(1px);
  box-shadow: 0 5px 20px rgba(211, 66, 69, 0.25);
}

.claim-bonus-btn.disabled {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(233, 236, 255, 0.45);
  cursor: not-allowed;
  box-shadow: none;
}

.claim-bonus-btn.disabled:active {
  transform: none;
}

/* Timer */
.bonus-timer {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* SVG icons */
.check-icon {
  width: 22px;
  height: 22px;
}

.coin-icon {
  width: 22px;
  height: 22px;
}

/* Responsive */
@media (max-height: 700px) {
  .daily-bonus-sheet {
    height: 500px;
    bottom: 70px;
  }
}

@media (max-width: 380px) {
  .daily-bonus-sheet {
    left: 12px;
    right: 12px;
  }
  
  .bonus-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .bonus-title {
    font-size: 28px;
  }
}

.daily-bonus-sheet.active {
  animation: sheetAppear 0.4s cubic-bezier(0.2, 0.95, 0.25, 1);
}

/* ====== ЗОЛОТАЯ ПУЛЬСАЦИЯ ТЕКУЩЕГО ДНЯ ====== */
.bonus-day-card.today {
  position: relative;
  z-index: 2;
  cursor: pointer;
  border: none !important;
  overflow: hidden;
  transform: scale(1.05);
  animation: goldPulse 2s infinite ease-in-out !important;
  box-shadow: 
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -8px 16px rgba(0, 0, 0, 0.18) !important;
}

/* Золотой градиентный фон */
.bonus-day-card.today::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(
      60% 55% at 50% 18%,
      #f7dfa3 0%,
      #ecd08a 32%,
      #d7ad55 65%,
      #9e7a34 100%
    ),
    linear-gradient(
      180deg,
      #f1d58f 0%,
      #d7ad55 45%,
      #8f6a2a 100%
    );
  border-radius: 16px;
  z-index: -2;
}

/* Внутренняя обводка как в прогресс-баре */
.bonus-day-card.today::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  border: 1px solid rgba(90, 60, 10, 0.22);
  pointer-events: none;
  z-index: -1;
}

/* Текст внутри золотой карточки */
.bonus-day-card.today .bonus-day-top span {
  color: rgba(18, 14, 8, 0.92) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  font-weight: 700 !important;
}

.bonus-day-card.today .bonus-amount {
  color: rgba(18, 14, 8, 0.92) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  font-weight: 800 !important;
  font-size: 22px !important;
}

/* Иконка внутри золотой карточки */
.bonus-day-card.today .coin-icon circle {
  fill: rgba(18, 14, 8, 0.15) !important;
}

.bonus-day-card.today .coin-icon path {
  fill: rgba(18, 14, 8, 0.8) !important;
}

/* Анимация пульсации золотом */
@keyframes goldPulse {
  0%, 100% {
    box-shadow: 
      0 8px 18px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      inset 0 -8px 16px rgba(0, 0, 0, 0.18),
      0 0 0 rgba(247, 223, 163, 0);
    transform: scale(1.05);
  }
  50% {
    box-shadow: 
      0 12px 25px rgba(0, 0, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.65),
      inset 0 -8px 16px rgba(0, 0, 0, 0.22),
      0 0 30px rgba(247, 223, 163, 0.6);
    transform: scale(1.08);
  }
}

/* Дополнительное свечение */
@keyframes goldGlow {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

.bonus-day-card.today {
  position: relative;
}


/* Эффект при наведении */
.bonus-day-card.today:hover {
  animation: goldPulse 0.8s infinite ease-in-out !important;
}

/* ====== WELCOME BOTTOM SHEET (в стиле ежедневных бонусов) ====== */
#welcomeSheet {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 80px;
  height: 580px;
  border-radius: 26px;
  background:
    radial-gradient(
      60% 55% at 50% 18%,
      #2b3046 0%,
      #1a1f33 40%,
      #0c0f1b 75%,
      #090b14 100%
    ),
    linear-gradient(
      180deg,
      #1a1f33 0%,
      #0b0e19 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: translateY(120%);
  transition: transform 360ms cubic-bezier(0.2, 0.95, 0.25, 1);
  z-index: 1000;
  will-change: transform;
  backdrop-filter: blur(20px);
  display: block !important; /* Важно: переопределяем display */
}

#welcomeSheet.active {
  transform: translateY(0);
}

#welcomeOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  z-index: 999;
  display: block !important;
}

#welcomeOverlay.active {
  opacity: 1;
  pointer-events: all;
}

.welcome-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 2px;
}

.feature-card {
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 12px;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
}

.feature-name {
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

.welcome-tip {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(77, 163, 255, 0.12), rgba(77, 163, 255, 0.06));
  border: 1px solid rgba(77, 163, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.tip-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.tip-icon svg {
  width: 100%;
  height: 100%;
}

.tip-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.tip-text strong {
  color: #4da3ff;
  font-weight: 700;
}

/* Анимация появления карточек */
@keyframes featureSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card {
  animation: featureSlideIn 0.4s ease backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Золотой градиент для заголовка */
#welcomeSheet .bonus-title {
  background: linear-gradient(90deg, #f7dfa3, #e9c979, #f5c46b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Адаптивность для маленьких экранов */
@media (max-height: 700px) {
  #welcomeSheet {
    height: 500px;
    bottom: 70px;
  }
  
  .welcome-features-grid {
    gap: 10px;
  }
  
  .feature-card {
    padding: 12px 10px;
    min-height: 90px;
  }
  
  .feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }
  
  .feature-icon svg {
    width: 30px;
    height: 30px;
  }
  
  .feature-name {
    font-size: 13px;
  }
  
  .feature-desc {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  #welcomeSheet {
    left: 12px;
    right: 12px;
  }
  
  .welcome-features-grid {
    grid-template-columns: 1fr;
  }
}

/* Анимация открытия */
@keyframes sheetAppear {
  from {
    opacity: 0;
    transform: translateY(120%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#welcomeSheet.active {
  animation: sheetAppear 0.4s cubic-bezier(0.2, 0.95, 0.25, 1);
}

/* Убираем возможное наследование display: none */
.daily-bonus-sheet:not(#welcomeSheet) {
  /* Оставляем как есть для daily-bonus-sheet */
}

#welcomeSheet.daily-bonus-sheet {
    display: block !important;
}


/* ====== ПРОМО-БЛОК ДЛЯ МАГАЗИНА СКИНОВ ====== */
.promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  min-height: 112px;
  margin-bottom: 20px;
  padding: 16px !important;

  /* ОСНОВНОЙ ФОН (глубина) */
  border-radius: 20px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* ВЫПУКЛОСТЬ + ГЛУБИНА */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -10px 20px rgba(0,0,0,.55),
    0 14px 36px rgba(0,0,0,.6);           /* внешняя тень */

  position: relative;
  overflow: hidden;
}

/* СВЕТЯЩИЙСЯ БЛИК (опционально, но выглядит жирно) */
.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background:
    radial-gradient(140px 60px at 30% 10%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(180px 80px at 80% 0%, rgba(200,140,255,.08), transparent 65%);

  pointer-events: none;
  opacity: .85;
}

/* АККУРАТНАЯ ОБВОДКА ВНУТРИ */
.promo-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(20px - 1px);

  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}

.promo-left {
  flex: 1 1 auto;
  min-width: 0;
}

.promo-title {
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: 18px;
  color: #ffffff;
}

.promo-accent {
  color: #e0bd6e; /* жёлтый акцент */
  background: radial-gradient(
    60% 55% at 50% 18%,
    #f7dfa3 0%,
    #ecd08a 32%,
    #d7ad55 65%,
    #9e7a34 100%
  ),
  linear-gradient(
    180deg,
    #f1d58f 0%,
    #d7ad55 45%,
    #8f6a2a 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.promo-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}

.promo-right {
  flex: 0 0 auto;
  width: 120px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-ico {
  width: 200px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 12px;
  margin-right:15px;
}

/* Адаптивность для промо-блока */
@media (max-width: 380px) {
  .promo-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    min-height: auto;
  }
  
  .promo-right {
    width: 100%;
    height: 80px;
  }
  
  .promo-ico {
    width: 90px;
  }
}

/* ====== ПРОМО-КАРТОЧКА ВТОРОГО ТИПА ====== */
.promo-card2 {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    margin-left: -15px;
    margin-right: -15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 30px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

/* Фоновое изображение с затемнениями */
.promo-card2::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to bottom, 
            rgba(10, 12, 24, 0.9) 0%,
            rgba(10, 12, 24, 0.6) 20%,
            rgba(10, 12, 24, 0.4) 40%,
            rgba(10, 12, 24, 0.4) 60%,
            rgba(10, 12, 24, 0.6) 80%,
            rgba(10, 12, 24, 0.9) 100%
        ),
        url('assets/ui/bg_page.webp');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* Солнечная подсветка за иконкой */
.promo-card2::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(
        ellipse at center,
        rgba(247, 223, 163, 0.25) 0%,
        rgba(247, 223, 163, 0.1) 30%,
        transparent 70%
    );
    filter: blur(20px);
    z-index: -1;
}

/* Иконка в центре */
.promo-card2-icon {
    width: 100%;
    max-width: 280px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

/* Заголовок страницы */
.promo-card2-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-align: center;
    margin-top:-50px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fcf76b 0%, #feed87 50%, #f9a926 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Описание */
.promo-card2-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    line-height: 1.4;
    max-width: 280px;
    position: relative;
    z-index: 1;
    margin-top: -10px;
}

/* Адаптивность для промо-карточки */
@media (max-width: 380px) {
    .promo-card2 {
        min-height: 200px;
        padding: 25px 16px;
    }
    
    .promo-card2-title {
        font-size: 24px;
    }
    
    .promo-card2-desc {
        font-size: 13px;
        max-width: 240px;
    }
    
    .promo-card2-icon {
        max-width: 240px;
        margin-bottom: 15px;
    }
}

/* ====== ТАБЫ ДЛЯ КАТЕГОРИЙ СКИНОВ ====== */
.skin-tabs {
  margin-bottom: 20px;
}

.skin-tabs-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skin-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.skin-tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.skin-tab.active {
  background: radial-gradient(
    60% 55% at 50% 18%,
    #ff3b2f 0%,
    #d11f14 35%,
    #a2170b 65%,
    #3a0603 100%
  ),
  linear-gradient(
    180deg,
    rgba(255,255,255,.18) 0%,
    rgba(0,0,0,.0) 55%,
    rgba(0,0,0,.25) 100%
  );
  color: #fff;
  box-shadow:
      0 24px 70px rgba(0,0,0,.65),
      inset 0 1px 0 rgba(255,255,255,.18),
      inset 0 -18px 30px rgba(0,0,0,.45);
    
    border: 1px solid rgba(255,255,255,.14);

}

.tab-icon {
  font-size: 20px;
  line-height: 1;
  filter: grayscale(0.5);
  opacity: 0.7;
}

.skin-tab.active .tab-icon {
  filter: grayscale(0);
  opacity: 1;
}

.tab-text {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Контент табов */
.skin-tabs-content {
  position: relative;
  min-height: 300px;
}

.skin-tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.skin-tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Состояние "Скоро" для пустых категорий */
.coming-soon {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
  border: 2px dashed rgba(255, 255, 255, .1);
}

.coming-soon-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.coming-soon-title {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 8px;
}

.coming-soon-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  max-width: 300px;
  margin: 0 auto;
}

/* Адаптивность для табов */
@media (max-width: 380px) {
  .skin-tabs-header {
    gap: 4px;
    padding: 3px;
  }
  
  .skin-tab {
    padding: 10px 6px;
    font-size: 12px;
  }
  
  .tab-icon {
    font-size: 18px;
  }
  
  .tab-text {
    font-size: 11px;
  }
}



/* ====== ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ТАБЛИЦЫ ЛИДЕРОВ ====== */

/* Карточка лидера */
.leader-card {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(14px);
    padding: 16px !important;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    transition: all 0.3s ease;
    gap: 16px;
    margin-bottom: 10px;
}

/* Текущий пользователь */
.leader-card.current {
    background: radial-gradient(
        60% 55% at 50% 18%,
        #cfe6d8 0%,
        #9fcbb1 35%,
        #5f9f80 65%,
        #2f5f4a 100%
    ),
    linear-gradient(
        180deg,
        #cfe6d8 0%,
        #7fbfa0 45%,
        #2f5f4a 100%
    );
    border: 1px solid rgba(255,255,255,.12);
    box-shadow:
        0 20px 60px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.18),
        inset 0 -16px 28px rgba(0,0,0,.35);
    transform: translateY(-2px);
}

.leader-card.current .leader-info-name {
    color: #17191e;
}

.leader-card.current .leader-info-stat {
    color: #17191e;
}

/* Аватар */
.leader-avatar-container {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(77,163,255,.32), rgba(166,74,255,.22));
}

.leader-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Инициалы для дефолтного аватара */
.leader-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Информация о лидере */
.leader-info {
    flex: 1;
    min-width: 0;
}

.leader-info-name {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,.95);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-info-stats {
    display: flex;
    gap: 12px;
}

.leader-info-stat {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    gap: 4px;
}

.leader-info-stat svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Место в таблице */
.leader-rank-container {
    flex: 0 0 auto;
    width: 90px;
    height: 90px;
    position: absolute;
    right:0px;
    top:0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Иконки для топ-3 мест */
.leader-rank-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Текст для мест ниже 3-го */
.leader-rank-text {
    font-size: 20px;
    font-weight: 800;
    color: rgba(255,255,255,.9);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.leader-card.top-1 .leader-rank-text,
.leader-card.top-2 .leader-rank-text,
.leader-card.top-3 .leader-rank-text {
    color: rgba(18,14,8,0.92);
    text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

/* Стили для топ мест */
.leader-card.top-1 {
    background: radial-gradient(
        60% 55% at 50% 18%,
        #FFD700 0%,
        #FFCC00 35%,
        #FF9900 65%,
        #CC6600 100%
    ),
    linear-gradient(
        180deg,
        #FFE44D 0%,
        #FFCC00 45%,
        #CC6600 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 20px 60px rgba(255, 204, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -16px 28px rgba(204, 102, 0, 0.35);
}

.leader-card.top-2 {
    background: radial-gradient(
        60% 55% at 50% 18%,
        #C0C0C0 0%,
        #A0A0A0 35%,
        #808080 65%,
        #606060 100%
    ),
    linear-gradient(
        180deg,
        #D4D4D4 0%,
        #A0A0A0 45%,
        #606060 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 20px 60px rgba(192, 192, 192, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -16px 28px rgba(96, 96, 96, 0.35);
}

.leader-card.top-3 {
    background: radial-gradient(
        60% 55% at 50% 18%,
        #CD7F32 0%,
        #B87333 35%,
        #A0522D 65%,
        #8B4513 100%
    ),
    linear-gradient(
        180deg,
        #D2691E 0%,
        #B87333 45%,
        #8B4513 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 20px 60px rgba(205, 127, 50, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -16px 28px rgba(139, 69, 19, 0.35);
}

/* Иконки SVG для статистики */
.icon-xp {
    fill: #FFD700;
}

.icon-hits {
    fill: #4da3ff;
}

.icon-level {
    fill: #a64aff;
}

/* Анимация появления карточек */
@keyframes leaderCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leader-card {
    animation: leaderCardSlideIn 0.3s ease backwards;
}

.leader-card:nth-child(1) { animation-delay: 0.1s; }
.leader-card:nth-child(2) { animation-delay: 0.2s; }
.leader-card:nth-child(3) { animation-delay: 0.3s; }
.leader-card:nth-child(4) { animation-delay: 0.4s; }
.leader-card:nth-child(5) { animation-delay: 0.5s; }
.leader-card:nth-child(6) { animation-delay: 0.6s; }

/* Адаптивность для карточек лидеров */
@media (max-width: 380px) {
    .leader-card {
        padding: 14px !important;
        gap: 12px;
    }
    
    .leader-avatar-container {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    
    .leader-avatar-initials {
        font-size: 18px;
    }
    
    .leader-info-name {
        font-size: 15px;
    }
    
    .leader-info-stats {
        flex-direction: column;
        gap: 4px;
    }
    
    .leader-rank-container {
        width: 44px;
        height: 44px;
    }
    
    .leader-rank-text {
        font-size: 18px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 320px) {
    .leader-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px 12px !important;
    }
    
    .leader-info {
        width: 100%;
        text-align: center;
    }
    
    .leader-info-stats {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Эффект при наведении */
.leader-card:not(.current):hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 
        0 20px 60px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.12),
        inset 0 -16px 28px rgba(0,0,0,.35),
        0 8px 20px rgba(0,0,0,.2);
}

/* ====== СТИЛИ ДЛЯ СТРАНИЦЫ ДРУЗЬЯ В СТИЛЕ СКИНОВ ====== */

/* Статистика в сетке */
.referrals-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-card-small {
  background: #111420;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.stat-card-small-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 4px;
  line-height: 1;
}

.stat-card-small-label {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  line-height: 1.2;
}

/* Список рефералов */
.referrals-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}

.referral-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.referral-item:hover {
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.referral-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(77,163,255,.32), rgba(166,74,255,.22));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
}

.referral-info {
  flex: 1;
  min-width: 0;
}

.referral-name {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.referral-status {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.played { 
  background: #4CAF50; 
}
.status-dot.offline { 
  background: #f44336; 
}

.referral-date {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  margin-top: 2px;
}

.referral-score {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-gold);
  text-align: right;
  min-width: 40px;
}

/* Пустое состояние */
.referrals-empty {
  padding: 40px 20px;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 2px dashed rgba(255,255,255,.1);
}

.referrals-empty .empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  opacity: 0.3;
}

.referrals-empty .empty-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  margin-bottom: 8px;
}

.referrals-empty .empty-desc {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Карточки наград */
.rewards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reward-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.reward-card:hover {
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.reward-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.reward-card-content {
  flex: 1;
  min-width: 0;
}

.reward-card-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: 4px;
}

.reward-card-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.reward-card-desc {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  line-height: 1.3;
}

/* Секция поделиться */
.share-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-link-container {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(10px);
}

.share-link-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.share-link-input {
  flex: 1;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: rgba(255,255,255,.9);
  outline: none;
  cursor: default;
  user-select: all;
}

.share-link-input::selection {
  background: rgba(77,163,255,.3);
}

.share-link-copy {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent-red), var(--accent-red)90%);
  border: 1px solid rgba(255,255,255,.16);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.share-link-copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(211,66,69,.25);
}

.share-link-copy:active {
  transform: translateY(0);
}

.ref-code-section {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.ref-code-label {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
}

.ref-code-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 2px;
  font-family: monospace;
}

/* Кнопки шаринга */
.share-buttons-grid {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(10px);
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.2);
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn.telegram {
  background: linear-gradient(180deg, rgba(0,136,204,.2), rgba(0,136,204,.1));
  border-color: rgba(0,136,204,.3);
}

.share-btn.telegram:hover {
  background: linear-gradient(180deg, rgba(0,136,204,.3), rgba(0,136,204,.2));
  border-color: rgba(0,136,204,.4);
}

.share-btn.whatsapp {
  background: linear-gradient(180deg, rgba(37,211,102,.2), rgba(37,211,102,.1));
  border-color: rgba(37,211,102,.3);
}

.share-btn.whatsapp:hover {
  background: linear-gradient(180deg, rgba(37,211,102,.3), rgba(37,211,102,.2));
  border-color: rgba(37,211,102,.4);
}

.share-btn span {
  flex: 1;
  text-align: center;
}

/* Адаптивность */
@media (max-width: 380px) {
  .referrals-stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .stat-card-small {
    padding: 10px;
  }
  
  .stat-card-small-value {
    font-size: 20px;
  }
  
  .referral-item {
    padding: 12px;
    gap: 10px;
  }
  
  .referral-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .referral-name {
    font-size: 14px;
  }
  
  .reward-card {
    padding: 14px;
    gap: 12px;
  }
  
  .reward-card-icon {
    width: 40px;
    height: 40px;
  }
  
  .share-link-display {
    flex-direction: column;
    gap: 8px;
  }
  
  .share-link-copy {
    width: 100%;
  }
  
  .share-buttons {
    grid-template-columns: 1fr;
  }
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.referral-item,
.reward-card {
  animation: fadeInUp 0.3s ease backwards;
}

.referral-item:nth-child(1) { animation-delay: 0.1s; }
.referral-item:nth-child(2) { animation-delay: 0.2s; }
.referral-item:nth-child(3) { animation-delay: 0.3s; }
.reward-card:nth-child(1) { animation-delay: 0.1s; }
.reward-card:nth-child(2) { animation-delay: 0.2s; }
.reward-card:nth-child(3) { animation-delay: 0.3s; }

/* ====== УВЕДОМЛЕНИЯ ВНИЗУ ЭКРАНА ====== */
/* ====== УВЕДОМЛЕНИЯ ВНИЗУ ЭКРАНА С ГРАДИЕНТНЫМ ФОНОМ ====== */
.bottom-notification {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 100px; /* Выше навигации */
  z-index: 1000;
  transform: translateY(120%);
  transition: transform 360ms cubic-bezier(0.2, 0.95, 0.25, 1);
  will-change: transform;
  opacity: 0;
}

.bottom-notification.active {
  transform: translateY(0);
  opacity: 1;
}

.notification-content {
  border-radius: 18px;
  padding: 0;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  position: relative;
  background: 
    radial-gradient(
      60% 55% at 50% 18%,
      #2b3046 0%,
      #1a1f33 40%,
      #0c0f1b 75%,
      #090b14 100%
    ),
    linear-gradient(
      180deg,
      #1a1f33 0%,
      #0b0e19 100%
    );
}

/* Tiny stars effect как в других модалках */
.notification-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 20%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1px 1px at 35% 25%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(1.2px 1.2px at 55% 18%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(1px 1px at 70% 32%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 22%, rgba(255, 255, 255, 0.25), transparent 60%),
    radial-gradient(1px 1px at 18% 42%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(1.2px 1.2px at 82% 48%, rgba(255, 255, 255, 0.2), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

.notification-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  position: relative;
  z-index: 1;
}

.notification-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.notification-icon svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.notification-text {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 800;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.notification-message {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.notification-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.notification-close:active {
  transform: scale(0.95);
}

/* Прогресс бар для таймера */
.notification-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
  transform: translateX(-100%);
}

.progress-bar.animating {
  animation: notificationProgress 4s linear forwards;
}

@keyframes notificationProgress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* Анимация появления уведомлений */
@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateY(120%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bottom-notification.active {
  animation: notificationSlideIn 0.4s cubic-bezier(0.2, 0.95, 0.25, 1);
}

/* Эффект при наведении */
.notification-content:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65);
  transition: all 0.3s ease;
}

/* Для разных типов уведомлений - добавляем акцентную полоску */
.notification-content.success::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #4CAF50, #45a049);
  border-radius: 18px 0 0 18px;
}

.notification-content.error::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #f44336, #d32f2f);
  border-radius: 18px 0 0 18px;
}

.notification-content.warning::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ff9800, #f57c00);
  border-radius: 18px 0 0 18px;
}

.notification-content.info::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2196F3, #1976D2);
  border-radius: 18px 0 0 18px;
}

/* Адаптивность */
@media (max-width: 380px) {
  .bottom-notification {
    left: 12px;
    right: 12px;
    bottom: 90px;
  }
  
  .notification-top {
    padding: 16px;
    gap: 12px;
  }
  
  .notification-icon {
    width: 32px;
    height: 32px;
  }
  
  .notification-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .notification-title {
    font-size: 15px;
  }
  
  .notification-message {
    font-size: 13px;
  }
  
  .notification-close {
    width: 30px;
    height: 30px;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 320px) {
  .notification-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .notification-icon {
    align-self: flex-start;
  }
  
  .notification-close {
    position: absolute;
    top: 16px;
    right: 16px;
  }
}

/* Для планшетов и больших экранов */
@media (min-width: 768px) {
  .bottom-notification {
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
  }
  
  .bottom-notification.active {
    transform: translateX(-50%) translateY(0);
  }
  
  @keyframes notificationSlideIn {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(120%);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }
}

/* Золотой акцент для важных уведомлений */
.notification-content.important::after {
  background: linear-gradient(180deg, #f7dfa3, #d7ad55);
}

.notification-content.important .notification-icon {
  background: linear-gradient(135deg, rgba(247, 223, 163, 0.2), rgba(215, 173, 85, 0.15));
}

/* Эффект свечения для важных уведомлений */
.notification-content.important {
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(247, 223, 163, 0.1);
}

/* ====== МОДАЛЬНОЕ ОКНО "ЖИЗНИ ЗАКОНЧИЛИСЬ" ====== */


.no-lives-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.no-lives-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.no-lives-option:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.option-icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.no-lives-option:first-child .option-icon {
  background: rgba(255, 107, 107, 0.2);
}

.no-lives-option:last-child .option-icon {
  background: rgba(77, 163, 255, 0.2);
}

.option-content {
  flex: 1;
}

.option-title {
  font-weight: 700;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
}

.option-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ====== МОДАЛЬНОЕ ОКНО ПОВЫШЕНИЯ УРОВНЯ ====== */


/* ====== ДЕФОЛТНЫЕ АВАТАРКИ ====== */
.avatar-medal .avatar.has-photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('assets/user/avatars/default.webp'); /* Фолбэк */
}

/* Для лидеров и друзей */
.leader-avatar,
.friend-avatar,
.referral-avatar {
    background-image: url('assets/user/avatars/default.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Инициалы поверх аватара (если нет фото) */
.avatar-initials {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 1;
    background: rgba(0,0,0,0.3);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

.screen{position:relative;height:100%;width:100%}
.bg{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;
  transform:scale(1.01);
}
.vignette{
  position:absolute;inset:0;
  background:
    radial-gradient(1100px 900px at 50% 30%, rgba(255,190,100,.03), transparent 40%),
    radial-gradient(900px 700px at 50% 75%, rgba(0,0,0,.06), rgba(0,0,0,.1) 68%),
    linear-gradient(180deg, rgba(0,0,0,.07) 0%, rgba(0,0,0,.1) 100%);
  pointer-events:none;
}
.hud{
  position:absolute;left:0;right:0;bottom:0;
  padding:18px 18px calc(18px + var(--safe-b));
  display:flex;justify-content:center;
}
.progress-wrap-load{
  width:min(440px, 92vw);
  filter: drop-shadow(0 24px 70px rgba(0,0,0,.65));
}
.bar{width:100%;height:auto;display:block}
.progress-text-load{
  margin-top:10px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 8px;
  text-shadow:0 2px 10px rgba(0,0,0,.55);
  opacity:.95;
  margin-bottom:15px;
}
.progress-text-load .label{
  font-weight:700;letter-spacing:.2px;
  color:rgba(255,255,255,.9);
}
.progress-text-load .value{
  font-weight:800;
  color:rgba(255,255,255,.95);
}


.modal__card::after{
  content:"";
  position:absolute;
  inset:-22%;
  pointer-events:none;
  z-index:1;

  background:
    radial-gradient(circle at 50% 45%, rgba(140, 160, 255, .10), transparent 38%),
    repeating-conic-gradient(
      from 0deg at 50% 42%,
      rgba(255,255,255,.10) 0 8deg,
      rgba(255,255,255,0) 8deg 16deg
    );

  mix-blend-mode: screen;
  transform-origin: 50% 42%;
  opacity:.18;

  animation: rays-spin 30s linear infinite;
}

/* отдельная “пульсация” без вращения */
.modal__card::before{
  content:"";
  position:absolute;
  inset:-22%;
  pointer-events:none;
  z-index:1;

  background:
    radial-gradient(circle at 50% 45%, rgba(140, 160, 255, .08), transparent 62%);
  mix-blend-mode: screen;

  opacity:.16;
  animation: rays-pulse 3.2s ease-in-out infinite;
}

@keyframes rays-spin{
  from { transform: rotate(0deg) translateY(-2%); }
  to   { transform: rotate(360deg) translateY(-2%); }
}

@keyframes rays-pulse{
  0%,100% { opacity:.20; transform: scale(1); filter: blur(0px); }
  50%     { opacity:.42; transform: scale(1.4); filter: blur(.7px); }
}


/* ===== Анимации для онбординга ===== */
.is-swapping .modal__trophy {
    opacity: 0;
    transform: translateY(10px) scale(.985);
    filter: drop-shadow(0 10px 16px rgba(0,0,0,.20));
    transition: opacity .28s ease, transform .28s ease, filter .28s ease;
}

.is-swapping .modal__title,
.is-swapping .modal__sub {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease;
}

/* ===== Стили для точек прогресса ===== */
.stepper {
    margin-top: 2px;
    margin-bottom: 10px;
    padding: 10px 12px 12px;
    border-radius: 16px;
}

.stepper__title {
    display: block;
    text-align: center;
    font-weight: 800;
    letter-spacing: .2px;
    color: rgba(255,255,255,.92);
    margin-bottom: 10px;
}

.stepper__row {
    --line-h: 4px;
    --dot: 34px;
    display: grid;
    grid-template-columns: var(--dot) 1fr var(--dot) 1fr var(--dot);
    align-items: center;
    gap: 10px;
}

.stepper__dot {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: radial-gradient(60% 60% at 35% 30%, rgba(255,255,255,.16), rgba(0,0,0,0) 55%),
                rgba(10,12,28,.55);
    box-shadow: 0 10px 22px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    transition: transform .12s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.stepper__num {
    font-weight: 900;
    font-size: 14px;
    color: rgba(243,240,255,.90);
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* активная точка — золотая */
.stepper__dot.is-active {
    border-color: rgb(231 168 70);
    background: radial-gradient(70% 70% at 35% 30%, rgba(255,255,255,.26), rgba(0,0,0,0) 60%),
                radial-gradient(60% 55% at 50% 18%, rgba(252,249,160,.35) 0%, rgba(245,214,90,.20) 35%, rgba(238,176,72,.15) 70%, rgba(0,0,0,0) 100%),
                rgba(10,12,28,.45);
    box-shadow: 0 14px 28px rgba(0,0,0,.45),
                0 0 0 4px rgba(245,214,90,.12),
                inset 0 1px 0 rgba(255,255,255,.12);
}

/* done — тоже золотой, но спокойнее */
.stepper__dot.is-done {
    border-color: rgba(245,214,90,.55);
    box-shadow: 0 12px 24px rgba(0,0,0,.38),
                inset 0 1px 0 rgba(255,255,255,.10);
}

.stepper__line {
    height: 4px;
    border-radius: 99px;
    background: rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    position: relative;
    overflow: hidden;
}

.stepper__line::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
    background: linear-gradient(90deg, rgb(252 233 160 / 35%), rgb(240 188 76), rgba(238, 176, 72, .90), rgba(195, 121, 57, .85));
}

.stepper__line.is-done::before { 
    transform: translateX(0%); 
}





/* ======= NAV WRAP ======= */
    .bottomNav{
      --cx: calc(50% + 0px);

      position: fixed;
      left: 50%;
      transform: translateX(-50%);
      bottom: calc(14px + env(safe-area-inset-bottom));
      width: min(390px, 94vw);
      height: 74px;
      z-index: 50;
      pointer-events: auto;
    }

    /* ======= PLATE (ПРЯМОУГОЛЬНИК + ВЫРЕЗ) ======= */
    .navPlate,
    .navStroke{
      position:absolute;
      inset:0;
      pointer-events:none;
    }

    /* свечение по периметру (вокруг всей плашки) */
    .navGlow{
      position:absolute;
      inset:-6px;                 /* чтобы glow был виден со всех сторон */
      border-radius: 30px;
      pointer-events:none;
      z-index:0;
      background:
        radial-gradient(120% 140% at 50% 0%, rgba(160,110,255,.18), transparent 58%),
        radial-gradient(120% 140% at 50% 120%, rgba(255,120,0,.10), transparent 60%);
      filter: blur(10px);
      opacity:.9;

      /* дырка в glow тоже */
      -webkit-mask:
        linear-gradient(#000 0 0),
        radial-gradient(circle 62px at var(--cx) 18px, #000 98%, transparent 100%);
      -webkit-mask-composite: xor;
              mask-composite: exclude;
    }

    .navPlate{
      z-index:1;
      background: var(--navBg);
      border-radius: 22px;
      box-shadow:
        inset 0 1px 0 rgb(15 15 15 / 55%),
        inset 0 -8px 16px rgba(0, 0, 0, 0.18),
        0 10px 26px rgba(0,0,0,.45);

      /* ВЫРЕЗ (увеличил): чтобы точно была пустота вокруг FAB */
      -webkit-mask:
        linear-gradient(#000 0 0),
        radial-gradient(circle 50px at var(--cx) 18px, #000 98%, transparent 100%);
      -webkit-mask-composite: xor;
              mask-composite: exclude;
    }

    .navStroke{
      z-index:2;
      border-radius: 22px;

      /* обводка по периметру */
      border: 1px solid rgba(255,255,255,.10);
      border-top-color: rgba(255,255,255,.14);

      /* ВНЕШНИЙ glow по обводке (по кругу/всем сторонам) */
      box-shadow:
        0 0 0 1px rgba(255,255,255,.06),
        0 0 18px rgba(160,110,255,.12),
        0 0 34px rgba(255,120,0,.06),
        inset 0 1px 0 rgba(255,255,255,.06);

      /* дырка в обводке */
      -webkit-mask:
        linear-gradient(#000 0 0),
        radial-gradient(circle 50px at var(--cx) 18px, #000 98%, transparent 100%);
      -webkit-mask-composite: xor;
              mask-composite: exclude;
    }

    /* ======= ITEMS ======= */
    .navItem{
      position:absolute;
      bottom: 4px;
      width: 74px;
      height: 74px;
      border:0;
      background: transparent;
      color: var(--icon);
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap: 6px;
      cursor:pointer;
      -webkit-tap-highlight-color: transparent;
      z-index: 5;
      padding:0;
    }

    .navItem.is-active{ color: var(--iconActive); }

    .navItem span{
      font-size: 10px;
      line-height: 1;
      opacity: .85;
      text-transform: uppercase;
      letter-spacing: -0.2px;
      font-weight:500;
      text-shadow: 0 6px 18px rgba(0,0,0,.35);
    }

    .navItem[data-go="skins"]{ left: 6px; }
    .navItem[data-go="bonuses"]{ left: 70px; }
    .navItem[data-go="leaders"]{ right: 70px; }
    .navItem[data-go="friends"]{ right: 6px; }

    .navIcon{
      width: 28px;
      height: 28px;
      display:block;
      filter: drop-shadow(0 6px 12px rgba(0,0,0,.35));
    }

    /* ======= CENTER BUTTON ======= */
    .navCenter{
      position:absolute;
      left: var(--cx);
      top: -22px;
      transform: translateX(-50%);
      width: 82px;
      height: 82px;
      border:0;
      background: transparent;
      cursor:pointer;
      z-index: 10;
      -webkit-tap-highlight-color: transparent;
      padding:0;
    }

    .navCenterInner{
      position:relative;
      width:100%;
      height:100%;
      border-radius: 999px;
      overflow:hidden;
      background: var(--fabBg);
      border: var(--fabBorder);
      box-shadow: var(--fabShadow);
      display:grid;
      place-items:center;
    }

    .navCenterInner::after{
      content:"";
      position:absolute;
      inset:-14px;
      border-radius: 999px;
      background: radial-gradient(circle, rgba(255,120,0,.16), transparent 62%);
      filter: blur(2px);
      z-index:-1;
    }
    
    .centerHead{
      width:100%;
      object-fit: cover;
      display:block;
      user-select:none;
      -webkit-user-drag:none;
    }

    .navLabel{
      position:absolute;
      left: var(--cx);
      transform: translateX(-50%);
      bottom: 22px;
      font-size: 18px;
      letter-spacing: .2px;
      color: rgba(255,255,255,.68);
      text-shadow: 0 6px 18px rgba(0,0,0,.45);
      pointer-events:none;
      z-index: 6;
    }

    .navCenter:active{ transform: translateX(-50%) translateY(1px); }
    .navItem:active{ transform: translateY(1px); }
    


.navItem-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(
    65% 60% at 50% 20%,
    #ff4d4d 0%,
    #c91c14 40%,
    #8f140d 75%,
    #2a0503 100%
  );
    border: 2px solid rgba(255,160,40,.26);
    box-shadow: 0 22px 64px rgba(0,0,0,.60), 
    0 0 26px rgba(255,120,0,.16),
    inset 0 1px 0 rgba(255,255,255,0.55), /* Добавляем внутреннюю подсветку */
    inset 0 -4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 6px 16px rgba(255, 0, 0, 0.6);
    }
}

.navItem-badge.empty {
    width: 10px;
    height: 10px;
    top: 2px;
    right: 2px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff3b2f, #ff0000);
    animation: badgePulseSmall 1.5s infinite ease-in-out;
}

@keyframes badgePulseSmall {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}


/* === КНОПКА ПОДПИСКИ НА КАНАЛ === */
.subscribe-channel-btn {
    position: relative;
    width: min(420px, 94vw);
    height: 140px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    filter: drop-shadow(0 24px 70px rgba(0,0,0,.65));
    display: block;
    margin: 20px auto 0;
}

.subscribe-channel-btn__text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.92);
    font: 400 18px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    font-weight: 700;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.subscribe-channel-btn__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.subscribe-channel-btn:active {
    transform: translateY(1px);
}

/* Задание подписки на канал - особый стиль */
.task-card[data-task-id="subscribe_channel"].in-progress {
    border: 2px solid rgba(77, 163, 255, 0.3);
    background: linear-gradient(180deg, rgba(77, 163, 255, 0.15), rgba(77, 163, 255, 0.08));
    animation: subscribeCardPulse 3s infinite ease-in-out;
}

@keyframes subscribeCardPulse {
    0%, 100% {
        border-color: rgba(77, 163, 255, 0.3);
        box-shadow: 0 8px 18px rgba(0,0,0,0.18),
                    0 0 0 rgba(77, 163, 255, 0);
    }
    50% {
        border-color: rgba(77, 163, 255, 0.6);
        box-shadow: 0 12px 25px rgba(0,0,0,0.25),
                    0 0 20px rgba(77, 163, 255, 0.4);
    }
}

/* Убедимся что кнопки не перекрываются */
.task-card .task-content {
    position: relative;
    z-index: 1;
}

.task-claim-overlay {
    z-index: 10;
}



/*PVPV */

/* PvP Game Screen */
.pvp-game-screen {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pvp-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pvp-player-info {
    text-align: center;
    flex: 1;
}

.pvp-player-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.pvp-player-level {
    font-size: 14px;
    color: #a64aff;
    background: rgba(166, 74, 255, 0.1);
    padding: 4px 10px;
    border-radius: 10px;
    display: inline-block;
}

.pvp-vs-section {
    text-align: center;
    flex: 2;
}

.pvp-score {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #FFD700;
}

.pvp-vs-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

.pvp-timer {
    font-size: 20px;
    font-weight: 700;
    color: #4da3ff;
    background: rgba(77, 163, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
}

.pvp-game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
    flex: 1;
}

.pvp-game-hole {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.2s;
}

.pvp-game-hole:active {
    transform: scale(0.95);
}

.pvp-hole-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.pvp-hole-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pvp-mole-img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: auto;
    bottom: -60%;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.5), opacity 0.3s ease;
    z-index: 2;
}

/* PvP Main Menu */
.pvp-main-menu {
    padding: 20px;
}

.pvp-title-section {
    text-align: center;
    margin-bottom: 30px;
}

.pvp-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff3366, #a64aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pvp-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.pvp-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 16px;
}

.pvp-stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #4da3ff;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.pvp-modes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.pvp-mode-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.pvp-mode-card:active {
    transform: scale(0.98);
}

.pvp-mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4da3ff, #a64aff);
}

.mode-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.mode-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFD700;
}

.mode-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.mode-energy {
    font-size: 12px;
    color: #4da3ff;
    margin-bottom: 10px;
}

.mode-energy.no-energy {
    color: #ff3366;
}

.mode-reward {
    font-size: 12px;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    padding: 6px 12px;
    border-radius: 10px;
    display: inline-block;
}



/* ===== СТИЛИ ДЛЯ НОВОЙ СИСТЕМЫ ПОЛЯ ===== */

/* Фоновая картинка */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url('assets/osnovanie.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

:root{
      --gap: 8px;
      --cell: 220px;
      --holeW: 220px;
      --holeH: 155px;

      /* земля (JS подстроит под фон) */
      --soil-1:#ffcf84;
      --soil-2:#f2a24b;
      --soil-3:#c35a24;
      --soil-4:#4a1c10;

      /* дыра — ЖЁСТКО темная */
      --pit-0:#020101;
      --pit-1:#070202;
      --pit-2:#000000;

      /* эффекты */
      --ember:#ffb24a;
      --ember2:#ff6a1a;
      --spark:#ffd07a;

      /* ambient от фона */
      --amb-r: 255;
      --amb-g: 170;
      --amb-b: 90;
      --amb: rgba(var(--amb-r),var(--amb-g),var(--amb-b),1);
      --amb-soft: rgba(var(--amb-r),var(--amb-g),var(--amb-b),.18);
      --amb-rim: rgba(var(--amb-r),var(--amb-g),var(--amb-b),.26);

      /* parallax */
      --px: 0px;
      --py: 0px;

      /* ===== КЛЮЧЕВО ДЛЯ “РЕАЛИСТИЧНО ВЫЛЕЗ ИЗ ДЫРЫ” =====
         groundY — линия “плоскости земли” по спрайту (ниже скрываем OUT-часть).
         Подкрути на 1–2% если у твоего mole_up другая компоновка. */
      --groundY: 54%;

      --ui: rgba(255,255,255,.08);
      --ui2: rgba(255,255,255,.12);
    }

/* Контейнер игрового поля */
#board {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ===== Board ===== */
    .boardWrap{
      position:fixed; inset:0;
      z-index:2;
      display:grid;
      place-items:center;
      padding: 110px 16px 22px;
    }
    .board{
      width:min(92vw, calc(var(--cell) * 3 + var(--gap) * 2));
      display:grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--gap);
      align-items:center;
      justify-items:center;
      background: transparent !important;
      border:none !important;
      outline:none !important;
      box-shadow:none !important;
    }
    .cell{
      width: min(90%, var(--cell));
      aspect-ratio: 1 / 1;
      display:grid;
      place-items:center;
      background: transparent !important;
      overflow: visible;
      border:none !important;
      outline:none !important;
      box-shadow:none !important;
    }
    .cell::before,
    .cell::after{ content:none !important; }

    /* ===== Hole container ===== */
    .hole{
      position:relative;
      width: min(90%, var(--holeW));
      height: var(--holeH);
      transform: translateY(12px);
      user-select:none;
      -webkit-tap-highlight-color: transparent;
      will-change: transform;
      background: transparent !important;
      border:none !important;
      outline:none !important;
      box-shadow:none !important;
    }

    /* “прилипание” к фону (контактная тень, не парение) */
    .hole::before{
      content:"";
      position:absolute;
      left:50%;
      bottom: 18px;
      transform: translateX(-50%);
      width: 96%;
      height: 42%;
      background: radial-gradient(closest-side, rgba(0,0,0,.66), rgba(0,0,0,0));
      filter: blur(16px);
      opacity: .95;
      z-index: 0;
      mix-blend-mode: multiply;
      pointer-events:none;
    }

    /* ===== Layering: BACK (pit) -> MOLE -> FRONT (rim) ===== */
    .holeBackSvg,
    .holeFrontSvg{
      position:absolute;
      inset:0;
      width:100%;
      height:100%;
      display:block;
      pointer-events:none;
      will-change: transform, filter;
      transform: translate(calc(var(--px) * .10), calc(var(--py) * .08));
      
    }
   
   .holeFrontSvg{
  filter: none !important;      /* важно */
  background: transparent !important;
}


    /* ===== Effects: ruffle / sparks / dust / shockwave / debris ===== */
    .ruffle, .sparks, .dust, .shockwave, .debris{
      position:absolute;
      inset:0;
      pointer-events:none;
    }
    .ruffle{ z-index: 5; opacity:0; }
    .sparks{ z-index: 6; opacity:0; }
    .dust{ z-index: 6; opacity:0; }
    .shockwave{ z-index: 7; opacity:0; }
    .debris{ z-index: 7; opacity:0; }

    .ruffle i{
      position:absolute;
      left:50%;
      top:56%;
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,.20), rgba(0,0,0,0) 55%),
        linear-gradient(180deg, var(--soil-1), var(--soil-3));
      box-shadow: 0 12px 18px rgba(0,0,0,.30);
      transform: translate(-50%,-50%);
      opacity:0;
      filter: saturate(1.1);
    }

    .sparks b{
      position:absolute;
      left:50%;
      top:52%;
      width: 3px;
      height: 3px;
      border-radius: 999px;
      background: radial-gradient(circle, var(--spark), rgba(255,255,255,0));
      box-shadow: 0 0 14px rgba(255,190,90,.55);
      transform: translate(-50%,-50%);
      opacity:0;
    }

    .dust{
      left:50%;
      top:54%;
      width: 84%;
      height: 64%;
      transform: translate(-50%,-50%) scale(.92);
      filter: blur(1px);
      mix-blend-mode: screen;
    }
    .dust::before,
    .dust::after{
      content:"";
      position:absolute;
      inset:-10%;
      border-radius: 999px;
      background:
        radial-gradient(closest-side at 40% 65%, rgba(255,255,255,.18), transparent 60%),
        radial-gradient(closest-side at 60% 58%, rgba(255,255,255,.12), transparent 62%),
        radial-gradient(closest-side at 50% 76%, var(--amb-soft), transparent 66%);
      opacity:.95;
      transform: scale(.88);
    }
    .dust::after{
      background:
        radial-gradient(closest-side at 46% 62%, rgba(0,0,0,.22), transparent 66%),
        radial-gradient(closest-side at 66% 56%, rgba(0,0,0,.16), transparent 64%),
        radial-gradient(closest-side at 50% 74%, rgba(0,0,0,.12), transparent 70%);
      mix-blend-mode: multiply;
      opacity:.55;
    }

    .shockwave{
      left:50%;
      top:56%;
      width: 26px;
      height: 26px;
      border-radius:999px;
      transform: translate(-50%,-50%) scale(.12);
      border: 2px solid rgba(255,255,255,.14);
      box-shadow: 0 0 24px var(--amb-soft);
    }

    .debris s{
      position:absolute;
      left:50%;
      top:56%;
      width: 14px;
      height: 8px;
      border-radius: 14px;
      background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,.18), rgba(0,0,0,0) 60%),
        linear-gradient(180deg, var(--soil-2), var(--soil-4));
      box-shadow: 0 12px 18px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.10);
      transform: translate(-50%,-50%) rotate(0deg);
      opacity:0;
      filter: saturate(1.08);
      will-change: transform, opacity;
    }

    /* triggers */
    .hole.pop .ruffle{ opacity:1; }
    .hole.pop .ruffle i{ animation: dirtBurst .40s ease-out forwards; }

    .hole.pop .sparks{ opacity:1; }
    .hole.pop .sparks b{ animation: sparkBurst .55s ease-out forwards; }

    .hole.hit .dust{ animation: dustPuff .32s ease-out 1; }
    .hole.hit .shockwave{ animation: wave .28s ease-out 1; }

    .hole.pop .debris{ opacity:1; }
    .hole.pop .debris s{ animation: debrisFly .44s ease-out forwards; }

    .hole.hit .holeFrontSvg{ animation: rimHit .16s ease-in-out 1; }
    .hole.pop .holeFrontSvg{ animation: rimShake .18s ease-in-out 1; }

    /* “рыхление обода” */
    .hole.pop .holeFrontSvg .rim{
      animation: rimLift .22s cubic-bezier(.2,.9,.2,1) 1;
    }
    .hole.pop .holeFrontSvg .clod{
      animation: clodPop .28s cubic-bezier(.2,.9,.2,1) 1;
    }
    .hole.hit .holeFrontSvg .rim{
      animation: rimSquash .14s cubic-bezier(.2,.9,.2,1) 1;
    }
    .hole.hit .holeFrontSvg .crackFX{
      animation: crackFlash .22s ease-out 1;
    }

    /* strata / rimlight parallax */
    .holeBackSvg .strata{
      transform: translate(calc(var(--px) * .24), calc(var(--py) * .18));
      transform-origin: 50% 60%;
      will-change: transform;
      opacity:.78;
    }
    .holeBackSvg .ambientTop{
      transform: translate(calc(var(--px) * .18), calc(var(--py) * .12));
      will-change: transform;
      mix-blend-mode: screen;
      opacity:.85;
    }
    .holeFrontSvg .rimSweep{
      opacity: 0;
      transform-box: fill-box;
      transform-origin: 50% 55%;
    }
    .hole.is-up .holeFrontSvg .rimSweep{
      animation: sweep 1.35s ease-in-out infinite;
    }

    @keyframes sweep{
      0%{ opacity:0; transform: translateX(-22%) skewX(-14deg); }
      20%{ opacity:.55; }
      55%{ opacity:.35; }
      100%{ opacity:0; transform: translateX(24%) skewX(-14deg); }
    }

    @keyframes rimLift{
      0%{ transform: translateY(0) scaleY(1); }
      55%{ transform: translateY(-2px) scaleY(1.02); }
      100%{ transform: translateY(0) scaleY(1); }
    }
    @keyframes rimSquash{
      0%{ transform: translateY(0) scaleY(1); }
      60%{ transform: translateY(1px) scaleY(.985); }
      100%{ transform: translateY(0) scaleY(1); }
    }
    @keyframes clodPop{
      0%{ transform: translateY(0) scale(1); }
      45%{ transform: translateY(-3px) scale(1.03); }
      100%{ transform: translateY(0) scale(1); }
    }

    @keyframes rimShake{
      0%{ transform: translateY(0) rotate(0deg); }
      25%{ transform: translateY(-1px) rotate(-.5deg); }
      50%{ transform: translateY(0) rotate(.45deg); }
      75%{ transform: translateY(1px) rotate(-.3deg); }
      100%{ transform: translateY(0) rotate(0deg); }
    }
    @keyframes rimHit{
      0%{ transform: translateY(0) scale(1); }
      45%{ transform: translateY(1px) scale(.993); }
      100%{ transform: translateY(0) scale(1); }
    }

    @keyframes dirtBurst{
      0%{ opacity:0; transform: translate(-50%,-50%) scale(.35); }
      30%{ opacity:1; }
      100%{
        opacity:0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.95);
      }
    }

    @keyframes sparkBurst{
      0%{ opacity:0; transform: translate(-50%,-50%) scale(.5); }
      20%{ opacity:1; }
      100%{
        opacity:0;
        transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(1.1);
      }
    }

    @keyframes crackFlash{
      0%{ opacity:0; }
      20%{ opacity:1; }
      100%{ opacity:0; }
    }

    @keyframes dustPuff{
      0%{ opacity:0; transform: translate(-50%,-50%) scale(.90); }
      18%{ opacity:1; }
      100%{ opacity:0; transform: translate(-50%,-58%) scale(1.06); }
    }

    @keyframes wave{
      0%{ opacity:0; transform: translate(-50%,-50%) scale(.2); }
      25%{ opacity:.9; }
      100%{ opacity:0; transform: translate(-50%,-50%) scale(3.6); }
    }

    @keyframes debrisFly{
      0%{ opacity:0; transform: translate(-50%,-50%) scale(.55) rotate(0deg); }
      18%{ opacity:1; }
      100%{
        opacity:0;
        transform:
          translate(calc(-50% + var(--dx2)), calc(-50% + var(--dy2)))
          scale(.98)
          rotate(var(--rot2));
      }
    }

    /* ===== responsive ===== */
    @media (max-width: 480px){
      :root{
        --gap: 2px;
        --cell: 150px;
        --holeW: 170px;
        --holeH: 124px;
      }
      .boardWrap{ padding-top: 92px; }
    }

    .hint{
      position:fixed;
      left: 50%;
      transform: translateX(-50%);
      bottom: calc(10px + env(safe-area-inset-bottom));
      z-index:3;
      font-size: 12px;
      color: rgba(255,255,255,.75);
      text-shadow: 0 10px 20px rgba(0,0,0,.45);
      pointer-events:none;
    }
    
/* ===== ПРИВЯЗКА К ГЕОМЕТРИИ ДЫРЫ (из SVG holeBackSVG) =====
   viewBox 520x360, внутренняя “дырка”:
   cx=260 (50%), cy=210 (~58.33%), rx=136 (~26.15% ширины), ry=70 (~19.44% высоты)
*/
:root{
  --hole-cx: 50%;
  --hole-rx: 27.2%;
  --hole-ry: 20.4%;
  --hole-cy: 58.8%;

  /* линия земли на спрайте (где обод “перекрывает”) */
  --mole-ground: 84%;
  --mole-up: -4%;
  --mole-start: 210%;
  --mole-down: 220%;
}

.holeBackSvg   { z-index: 1; }
.holeRimBackSvg{ z-index: 2; }
.moleInLayer   { z-index: 3; }
.moleOutLayer  { z-index: 4; }
.holeFrontSvg  { z-index: 5; }

/* общий контейнер слоёв крота */
.moleInLayer, .moleOutLayer{
  position:absolute;
  inset:0;
  pointer-events:none;
  transform: translate(calc(var(--px) * .10), calc(var(--py) * .08));
  background: transparent !important;
}

.moleInEllipse{
  position:absolute; inset:0;
  clip-path: ellipse(var(--hole-rx) var(--hole-ry) at var(--hole-cx) var(--hole-cy));
  -webkit-clip-path: ellipse(var(--hole-rx) var(--hole-ry) at var(--hole-cx) var(--hole-cy));
}

.holeBackSvg{
  filter: none !important;  /* важно */
}
.holeBackSvg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  pointer-events:none;
  will-change: transform, filter;
  transform: translate(calc(var(--px) * .10), calc(var(--py) * .08));
  z-index: 1; /* Добавьте это */
  filter: none !important;  /* важно - убираем фильтры */
}

/* ВНУТРИ ДЫРЫ: режем слоем по эллипсу отверстия (pixel-perfect) */
.moleInLayer{
  clip-path: ellipse(var(--hole-rx) var(--hole-ry) at var(--hole-cx) var(--hole-cy));
  -webkit-clip-path: ellipse(var(--hole-rx) var(--hole-ry) at var(--hole-cx) var(--hole-cy));
}

/* OUT слой по умолчанию спрятан */
.moleOutLayer{
  clip-path: inset(100% 0 0 0);
  -webkit-clip-path: inset(100% 0 0 0);
  transition: clip-path .18s ease, -webkit-clip-path .18s ease;
  will-change: clip-path;
}

/* UP — открываем верх головы */
.hole.is-up .moleOutLayer{
  clip-path: inset(0 0 calc(100% - var(--mole-ground)) 0);
  -webkit-clip-path: inset(0 0 calc(100% - var(--mole-ground)) 0);
}

/* DOWN — закрываем обратно (анимацией) */
.hole.is-down .moleOutLayer{
  clip-path: inset(100% 0 0 0);
  -webkit-clip-path: inset(100% 0 0 0);
}

.moleMotion{
  position:absolute;
  left:50%;
  top:0;
  width:100%;
  height:100%;
  transform: translateX(-50%) translateY(var(--mole-start));
  transition: transform .20s cubic-bezier(.22,.9,.22,1);
  will-change: transform;
}

.hole.is-up .moleMotion{
  transform: translateX(-50%) translateY(var(--mole-up));
}

.hole.is-down .moleMotion{
  transform: translateX(-50%) translateY(var(--mole-down));
  transition: transform .14s ease;
}

/* сама голова: якорим так, чтобы "точка выхода" совпала с дырой */
.moleImg{
  position:absolute;
  left:50%;
  width:70%!important;
  height:auto;
  transform: translateX(-50%);
  bottom: 26%; /* ключ: сидит в дыре */
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.55));
}
/* Принудительный порядок слоев */
.hole > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hole,
.moleInLayer,
.moleOutLayer,
.moleMotion {
  overflow: visible;
}

/* ===== +XP popup ===== */
.xpLayer{
  position:fixed;
  inset:0;
  z-index: 2;           /* под HUD (у HUD z-index:3), но над фоном */
  pointer-events:none;
}

.xpPop{
  position:absolute;
  font-weight: 900;
  letter-spacing: .3px;
  font-size: 22px;
  color: rgba(255,255,255,.95);
  text-shadow:
    0 10px 22px rgba(0,0,0,.55),
    0 0 18px rgba(255,200,120,.35);
  transform: translate(-50%,-50%);
  opacity:0;
  animation: xpFloat .75s ease-out forwards;
  will-change: transform, opacity;
}

.xpPop::after{
  content:"";
  position:absolute;
  inset:-14px -18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,200,120,.18), transparent 60%);
  filter: blur(2px);
  z-index:-1;
}

@keyframes xpFloat{
  0%   { opacity:0; transform: translate(-50%,-50%) translateY(10px) scale(.95); }
  15%  { opacity:1; }
  100% { opacity:0; transform: translate(-50%,-50%) translateY(-44px) scale(1.08); }
}

/* ===== СТИЛИ ДЛЯ +XP POPUP ===== */
.xpLayer {
  position: fixed;
  inset: 0;
  z-index: 2; /* Под HUD (у HUD z-index: 3), но над фоном */
  pointer-events: none;
}

.xpPop {
  position: absolute;
  font-weight: 900;
  letter-spacing: 0.3px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    0 10px 22px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(255, 200, 120, 0.35);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: xpFloat 0.75s ease-out forwards;
  will-change: transform, opacity;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.xpPop::after {
  content: "";
  position: absolute;
  inset: -14px -18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 200, 120, 0.18), transparent 60%);
  filter: blur(2px);
  z-index: -1;
}

@keyframes xpFloat {
  0%   { opacity: 0; transform: translate(-50%, -50%) translateY(10px) scale(0.95); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) translateY(-44px) scale(1.08); }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
  .xpPop {
    font-size: 18px;
  }
}



.fireflies{
  position:absolute;
  inset: 0;
  z-index: 1;
  pointer-events:none;
  overflow:hidden;
  mix-blend-mode: screen;
}

.firefly{
  position:absolute;
  left: var(--x, 50%);
  top:  var(--y, 45%);
  width: var(--w, 14px);
  height: var(--h, 22px);
  transform: translate(-50%,-50%) rotate(var(--rot, 0deg)) scale(.8);
  opacity: 0;

  /* “огонёк” как капля */
  border-radius: 60% 60% 70% 70% / 55% 55% 85% 85%;

  /* Тело пламени: горячее ядро + желтый + оранжевый + прозрачный край */
  background:
    radial-gradient(circle at 50% 62%, rgba(255,255,255,.95) 0 18%, rgba(255,255,255,0) 35%),
    radial-gradient(circle at 50% 70%, #FCF9A0 0 35%, rgba(245,214,90,.95) 50%, rgba(238,176,72,.75) 65%, rgba(195,121,57,0) 78%),
    radial-gradient(circle at 50% 90%, rgba(195,121,57,.55) 0 35%, rgba(195,121,57,0) 70%);

  filter:
    blur(.15px)
    drop-shadow(0 0 10px rgba(245,214,90,.35))
    drop-shadow(0 0 22px rgba(238,176,72,.18));

  /* хвост (шлейф) */
}
.firefly::before{
  content:"";
  position:absolute;
  left:50%;
  top: 72%;
  width: 68%;
  height: 86%;
  transform: translateX(-50%) rotate(12deg);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 10%, rgba(252,249,160,.55), rgba(245,214,90,.15) 40%, rgba(238,176,72,0) 75%);
  filter: blur(1px);
  opacity: .65;
}

/* лёгкий “дымок/сияние” вокруг */
.firefly::after{
  content:"";
  position:absolute;
  inset: -40% -55%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 55%, rgba(252,249,160,.18), rgba(238,176,72,.08) 35%, rgba(0,0,0,0) 70%);
  filter: blur(2px);
  opacity:.55;
}

/* движение как у искр/пламени: вверх, чуть в сторону, немного вращения */
.firefly{
  animation:
    flameFly var(--dur, 5.6s) linear infinite,
    flameFlicker .95s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes flameFly{
  0%{
    opacity: 0;
    transform: translate(-50%,-50%) translate(0,0) rotate(var(--rot,0deg)) scale(.65);
  }
  12%{ opacity: .95; }
  55%{ opacity: .65; }
  90%{ opacity: .2; }
  100%{
    opacity: 0;
    transform:
      translate(-50%,-50%)
      translate(var(--tx, 40px), var(--ty, -140px))
      rotate(calc(var(--rot,0deg) + var(--spin, 18deg)))
      scale(1);
  }
}

@keyframes flameFlicker{
  0%,100%{
    filter:
      blur(.15px)
      drop-shadow(0 0 10px rgba(245,214,90,.30))
      drop-shadow(0 0 22px rgba(238,176,72,.16));
  }
  35%{
    filter:
      blur(.35px)
      drop-shadow(0 0 14px rgba(252,249,160,.40))
      drop-shadow(0 0 30px rgba(238,176,72,.22));
  }
  70%{
    filter:
      blur(.2px)
      drop-shadow(0 0 12px rgba(245,214,90,.33))
      drop-shadow(0 0 26px rgba(238,176,72,.18));
  }
}


/* Profile Page Styles */
.profile-info {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #4da3ff, #a64aff);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar-large.has-photo {
  background: none;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-details {
  flex: 1;
}

.profile-name {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: white;
}

.profile-id {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
  font-family: monospace;
  background: rgba(255,255,255,0.1);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

.profile-level {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Settings */
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-label {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.setting-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
}

.setting-text {
  flex: 1;
}

.setting-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.setting-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.setting-control {
  margin-left: 12px;
}

/* Language Select */
.language-select {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  min-width: 120px;
  cursor: pointer;
}

.language-select option {
  background: #1a1f33;
  color: white;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.2);
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background: linear-gradient(135deg, #4da3ff, #a64aff);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Support Section */
.support-section {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
}

.support-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.support-item:hover {
  background: rgba(255,255,255,0.1);
}

.support-icon {
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.support-text {
  flex: 1;
}

.support-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.support-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.support-action {
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

/* App Info */
.app-info {
  text-align: center;
  padding: 20px;
}

.app-version {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.app-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* Make avatar in header clickable */
.avatar-medal {
  cursor: pointer;
  transition: transform 0.2s;
}

.avatar-medal:hover {
  transform: scale(1.05);
}

.avatar-medal:active {
  transform: scale(0.95);
}


/* ====== СТИЛИ ДЛЯ СКИНОВ ====== */
.skin-preview-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.skin-preview-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.skin-preview-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(1.2);
}

/* Модальное окно предпросмотра скина */
.skin-preview-modal {
  padding: 20px;
  text-align: center;
}

.skin-preview-hole {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  position: relative;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

.skin-preview-hole.animated {
  transform: scale(1);
  opacity: 1;
}

.mini-hole {
  position: relative;
  width: 100%;
  height: 100%;
}

.mini-hole-back,
.mini-hole-front {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.mini-hole-back {
  background: linear-gradient(135deg, var(--soil-2), var(--soil-4));
  filter: blur(4px);
}

.mini-hole-front {
  background: linear-gradient(135deg, var(--soil-1), var(--soil-3));
  border: 3px solid rgba(0, 0, 0, 0.2);
}

.mini-hole-mole {
  position: absolute;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: molePop 0.5s ease-out;
}

.mini-hole-mole img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes molePop {
  0% { transform: translateY(100%) scale(0.5); opacity: 0; }
  70% { transform: translateY(-10%) scale(1.1); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.skin-preview-info {
  margin-bottom: 20px;
}

.skin-preview-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.skin-preview-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  line-height: 1.4;
}

.skin-preview-price {
  font-size: 20px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 20px;
}

.skin-preview-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.skin-preview-buy-btn,
.skin-preview-ok-btn,
.skin-preview-close-btn {
  min-width: 120px;
  height: 44px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skin-preview-buy-btn {
  background: linear-gradient(135deg, #4da3ff, #a64aff);
  color: white;
}

.skin-preview-ok-btn {
  background: linear-gradient(135deg, #FCF9A0, #EEB048);
  color: #333;
}

.skin-preview-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.skin-preview-buy-btn:hover,
.skin-preview-ok-btn:hover,
.skin-preview-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Стили для PvP игры */
.pvp-game-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pvp-hole {
    position: relative;
    background: radial-gradient(circle at center, #5d4037 0%, #3e2723 100%);
    border-radius: 20px;
    border: 3px solid #8d6e63;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.5),
                0 5px 15px rgba(0,0,0,0.3);
}

.pvp-hole:hover {
    transform: scale(1.05);
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.5),
                0 8px 20px rgba(255,215,0,0.3);
}

.pvp-mole.active {
    opacity: 1 !important;
    animation: moleAppear 0.3s ease;
}

@keyframes moleAppear {
    0% { transform: translateX(-50%) translateY(100%); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-50px); opacity: 0; }
}

/* Стили для модального окна выбора режима */
.pvp-mode-selection {
    margin: 20px 0;
}

.pvp-mode-btn {
    width: 100%;
    padding: 16px;
    margin: 10px 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.pvp-mode-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.pvp-mode-btn[data-mode="friend"] {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.pvp-mode-btn[data-mode="bot"] {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

/* Стили для списка друзей */
.friends-select-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
}

.friend-select-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.friend-select-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.friend-select-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 12px;
}

.friend-select-invite {
    background: #4CAF50;
    border: none;
    border-radius: 8px;
    color: white;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.friend-select-invite:hover {
    background: #388E3C;
    transform: scale(1.05);
}


/* ====== СТИЛИ МАГАЗИНА ====== */

/* Контейнер магазина */
.shop-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Карточка баланса */
.shop-balance-card {
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.15), rgba(166, 74, 255, 0.15));
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.balance-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.balance-item:last-child {
    border-bottom: none;
}

.balance-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.balance-icon.coin {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #8b4513;
}

.balance-icon.earth {
    background: linear-gradient(135deg, #32cd32, #228b22);
    color: #fff;
}

.balance-icon.vip {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #8b4513;
}

.balance-info {
    flex: 1;
}

.balance-label {
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Табы магазина */
.shop-tabs {
    background: rgba(20, 20, 30, 0.7);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-tabs-header {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    gap: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.shop-tab {
    flex: 1;
    min-width: 80px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.shop-tab.active {
    background: linear-gradient(135deg, #4da3ff, #a64aff);
    color: white;
    box-shadow: 0 4px 12px rgba(77, 163, 255, 0.3);
}

.shop-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.shop-tab-pane {
    display: none;
    padding: 20px;
}

.shop-tab-pane.active {
    display: block;
}

/* Сетка товаров и бустов */
.boosts-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .boosts-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Карточка буста */
.boost-card {
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.8), rgba(30, 30, 50, 0.8));
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.boost-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(77, 163, 255, 0.3);
}

.boost-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.boost-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.boost-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.boost-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.boost-card-body {
    margin-bottom: 20px;
}

.boost-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.boost-description {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
    margin: 0;
}

.boost-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.boost-price {
    font-size: 20px;
    font-weight: 700;
    color: #4da3ff;
}

.boost-price.not-enough {
    color: #ff4757;
    opacity: 0.7;
}

.boost-price.earth {
    color: #32cd32;
}

.btn.boost-buy {
    background: linear-gradient(135deg, #4da3ff, #a64aff);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn.boost-buy:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(77, 163, 255, 0.4);
}

.btn.boost-buy.disabled {
    background: linear-gradient(135deg, #666, #888);
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Карточка товара */
.product-card {
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.8), rgba(30, 30, 50, 0.8));
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.product-card.coin-pack {
    border-color: rgba(255, 215, 0, 0.3);
}

.product-card.energy-pack {
    border-color: rgba(0, 255, 255, 0.3);
}

.product-card.life-pack {
    border-color: rgba(255, 105, 180, 0.3);
}

.product-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.product-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.product-badge {
    background: linear-gradient(135deg, #32cd32, #228b22);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-card-body {
    margin-bottom: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-description {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
    margin: 0;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #4da3ff;
}

.product-price.not-enough {
    color: #ff4757;
    opacity: 0.7;
}

.product-price.earth {
    color: #32cd32;
}

.btn.product-buy {
    background: linear-gradient(135deg, #4da3ff, #a64aff);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn.product-buy:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(77, 163, 255, 0.4);
}

.btn.product-buy.disabled {
    background: linear-gradient(135deg, #666, #888);
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* VIP секция */
.vip-container {
    max-width: 600px;
    margin: 0 auto;
}

.vip-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.vip-card-header {
    margin-bottom: 30px;
}

.vip-icon-large {
    font-size: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.4));
}

.vip-title-large {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-duration {
    font-size: 16px;
    opacity: 0.8;
}

.vip-benefits {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.benefits-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffd700;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.benefit-check {
    color: #32cd32;
    font-weight: bold;
    margin-right: 15px;
    font-size: 20px;
    min-width: 24px;
}

.benefit-text {
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.9;
}

.vip-price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.vip-price {
    font-size: 32px;
    font-weight: 800;
    color: #32cd32;
}

.vip-price.not-enough {
    color: #ff4757;
}

.btn.vip-buy-btn {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border: none;
    color: #8b4513;
    padding: 15px 40px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn.vip-buy-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.btn.vip-buy-btn.disabled {
    background: linear-gradient(135deg, #666, #888);
    color: #aaa;
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.vip-active-info {
    background: rgba(32, 200, 32, 0.2);
    border: 2px solid #20c020;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.vip-active-badge {
    background: linear-gradient(135deg, #20c020, #20a020);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.vip-expires {
    font-size: 14px;
    opacity: 0.9;
}

/* Активные бусты */
.active-boosts-card {
    background: rgba(20, 20, 30, 0.7);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.active-boosts-container {
    min-height: 100px;
}

.no-active-boosts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.no-boosts-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.active-boost-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #4da3ff;
    transition: all 0.3s ease;
}

.active-boost-item:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateX(5px);
}

.active-boost-item .boost-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.boost-info {
    flex: 1;
}

.boost-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.boost-timer {
    font-size: 12px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 5px;
}

.boost-progress {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-left: 15px;
}

.boost-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4da3ff, #a64aff);
    border-radius: 3px;
    transition: width 1s linear;
}

/* Плейсхолдеры */
.no-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    grid-column: 1 / -1;
}

.no-products-icon {
    font-size: 50px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.vip-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.vip-coming-soon {
    background: linear-gradient(135deg, #666, #888);
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 20px;
    font-size: 14px;
}

/* Анимации */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(77, 163, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(77, 163, 255, 0.6);
    }
}

.boost-card.featured {
    animation: pulseGlow 2s infinite;
    border-color: #4da3ff;
}

@keyframes highlightPurchase {
    0% {
        background: rgba(77, 163, 255, 0.1);
    }
    100% {
        background: transparent;
    }
}

.purchase-highlight {
    animation: highlightPurchase 1s ease;
}




