/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Верхняя часть с профилем */
/* Найти и заменить этот блок */
.header {
    display: flex !important;
    justify-content: flex-end !important; /* Прижимаем всё вправо */
    align-items: center !important;
    padding: 10px 0px 10px 10px !important; /* Минимум справа (4px) */
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
    gap: 4px !important; /* Расстояние между балансом и аватаркой */
}

/* Баланс - КОРОТКАЯ КНОПКА */
/* Основные переменные (убедись, что они совпадают с твоим проектом) */
:root {
    --color-accent-blue: #a9d9f8;
}

/* ============= БАЛАНС: COMPACT LIQUID GLASS (КОМПАКТНАЯ ВЕРСИЯ) ============= */

.balance-display {
    position: relative !important;
    margin-right: -45px !important; /* Уменьшил отрицательный отступ */
    margin-top: -28px !important;   /* Уменьшил отступ сверху */
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 10px !important; /* Уменьшил отступы */
    
    /* ULTRA LIQUID GLASS - сохраняем точно такие же цвета */
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%) brightness(1.05) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.05) !important;
    
    color: rgba(0, 0, 0, 0.75) !important; /* ТОЧНО ТАК ЖЕ */
    font-weight: 700 !important;
    font-size: 11px !important; /* Уменьшил размер шрифта */
    letter-spacing: 0.25px !important;
    
    border-radius: 15px !important; /* Немного уменьшил скругление */
    
    /* ТОЧНО ТАКИЕ ЖЕ ГРАНИЦЫ, но чуть тоньше */
    border: 0.7px solid rgba(255, 255, 255, 0.45) !important;
    border-top: 0.9px solid rgba(255, 255, 255, 0.6) !important;
    border-bottom: 0.45px solid rgba(0, 0, 0, 0.06) !important;
    
    /* ТОЧНО ТАКИЕ ЖЕ ТЕНИ, но чуть меньше */
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.08),
        0 1.5px 5px rgba(0, 0, 0, 0.04),
        inset 0 0.35px 0 rgba(255, 255, 255, 0.7),
        inset 0 -0.35px 0 rgba(0, 0, 0, 0.04) !important;
    
    white-space: nowrap !important;
    min-width: fit-content !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    z-index: 100 !important;
    cursor: default;
    
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Акриловый слой - ТОЧНО КАК В wheel-mini-btn, но адаптирован */
.balance-display::before {
    content: "" !important;
    position: absolute !important;
    top: 0.4px !important; /* Уменьшил */
    left: 0.4px !important;
    right: 0.4px !important;
    bottom: 0.4px !important;
    border-radius: 14.6px !important; /* Соответственно новому border-radius */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.1) 100%
    ) !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Эффект влажного стекла - ТОЧНО КАК В wheel-mini-btn, но адаптирован */
.balance-display::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 45% !important;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.08) 40%,
        transparent 100%
    ) !important;
    border-radius: 15px 15px 7px 7px !important; /* Адаптировал под новый размер */
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Акцент на сумме - сохраняем цвет, уменьшаем размер */
.balance-amount {
    color: #007AFF !important; /* ТОЧНО ТАКОЙ ЖЕ ЦВЕТ */
    font-weight: 800 !important;
    font-size: 11px !important; /* Уменьшил */
    margin-left: 2px !important; /* Уменьшил отступ */
    text-shadow: 0 1px 1px rgba(0, 122, 255, 0.1) !important;
}

/* ============= ТЕМНАЯ ТЕМА - ТОЧНО ТАК ЖЕ (адаптированная версия) ============= */

@media (prefers-color-scheme: dark) {
    .balance-display {
        background: rgba(28, 28, 28, 0.6) !important; /* ТОЧНО ТАКОЙ ЖЕ ЦВЕТ */
        backdrop-filter: blur(20px) saturate(160%) brightness(0.95) !important;
        color: rgba(255, 255, 255, 0.8) !important; /* ТОЧНО ТАК ЖЕ */
        
        border: 0.55px solid rgba(255, 255, 255, 0.1) !important;
        border-top: 0.7px solid rgba(255, 255, 255, 0.15) !important;
        border-bottom: 0.45px solid rgba(0, 0, 0, 0.25) !important;
        
        box-shadow: 
            0 5px 15px rgba(0, 0, 0, 0.25),
            0 1.5px 5px rgba(0, 0, 0, 0.15),
            inset 0 0.35px 0 rgba(255, 255, 255, 0.1),
            inset 0 -0.35px 0 rgba(0, 0, 0, 0.3) !important;
    }
    
    .balance-display::before {
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(255, 255, 255, 0.04) 100%
        ) !important; /* ТОЧНО ТАК ЖЕ */
    }
    
    .balance-display::after {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 40%,
            transparent 100%
        ) !important; /* ТОЧНО ТАК ЖЕ */
    }
    
    .balance-display:hover {
        background: rgba(35, 35, 35, 0.7) !important; /* ТОЧНО ТАКОЙ ЖЕ ЦВЕТ */
        backdrop-filter: blur(22px) saturate(170%) brightness(0.98) !important;
        -webkit-backdrop-filter: blur(22px) saturate(170%) brightness(0.98) !important;
        
        border-color: rgba(255, 255, 255, 0.18) !important;
        border-top-color: rgba(255, 255, 255, 0.22) !important;
        
        color: rgba(255, 255, 255, 0.95) !important; /* ТОЧНО ТАК ЖЕ */
    }
    
    .balance-amount {
        color: #0A84FF !important; /* ТОЧНО ТАКОЙ ЖЕ ЦВЕТ */
    }
}

/* Если нужна еще более компактная версия для мобильных */
@media (max-width: 768px) {
    .balance-display {
        padding: 4px 8px !important;
        font-size: 10px !important;
        border-radius: 13px !important;
        margin-right: -35px !important;
        margin-top: -24px !important;
    }
    
    .balance-amount {
        font-size: 10px !important;
    }
    
    .balance-display::before {
        border-radius: 12.5px !important;
    }
    
    .balance-display::after {
        border-radius: 13px 13px 6px 6px !important;
    }
}

/* Аватарка профиля */
.profile {
    display: flex;
    align-items: center;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* ИЗМЕНЕНО: уменьшили толщину рамки с 3px до 2px для чистоты */
    border: 2px solid rgba(255, 215, 0, 0.3); 
    object-fit: cover;
    background: linear-gradient(45deg, #667eea, #764ba2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    border-color: gold;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Основной контент */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 20px 90px; /* Увеличено снизу для навигации */
    text-align: center;
}

/* Заголовок */
.title {
    font-size: 3.5em;
    background: linear-gradient(45deg, 
        #0066ff,     /* Яркий синий */
        #00ccff,     /* Голубой */
        #0066ff);    /* Яркий синий */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0px;
    text-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
}

.subtitle {
    font-size: 1.2em;
    color: #a0a0c0;
    margin-bottom: 50px;
    opacity: 0.9;
}

/* Инструкция */
.instruction {
    margin-top: 30px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    font-size: 14px;
    max-width: 500px;
    margin-left: 20px;
    text-align: center;
}

/* Блок "скоро" */
.coming-soon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin-top: 60px;
    font-size: 1.2em;
    color: #ccc;
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============= СТИЛИ ДЛЯ СТРАНИЦЫ КЕЙСА ============= */

.case-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 90px;
}

.case-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.case-title {
    color: #FFD700;
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* === Стили для главной страницы с кейсом === */
.case-section {
    display: grid !important;
    grid-template-columns: repeat(2, 180px) !important; /* 2 колонки фиксированной ширины */
    gap: 0px !important;
    margin: 20px auto !important;
    padding: 0 !important;
    width: auto !important; /* Изменено с 100% */
    max-width: none !important; /* Убираем ограничение */
    justify-content: center !important; /* Центрируем сетку */
    justify-items: center !important;
    align-items: start !important;
    box-sizing: border-box !important;
}

.case-card-link {
    display: block !important;
    width: 180px !important; /* Фиксированная ширина */
    height: 220px !important; /* Фиксированная высота */
    text-decoration: none !important;
    margin: 0 !important;
    justify-self: center !important;
}

/* Сама карточка внутри ссылки */
.case-card {
    width: 180px !important; /* Фиксированная ширина */
    height: 220px !important; /* Фиксированная высота */
    background: transparent !important;
    border-radius: 18px;
    overflow: visible;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    transition: all 0.3s ease;
}

/* Изображение */
.case-image {
    width: 180px !important; /* Фиксированная ширина */
    height: 140px !important; /* Фиксированная высота (или 180px, если хочешь выше) */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    padding: 0;
    background: transparent !important;
}

/* 1. Исходное состояние картинки */
.case-image img {
    width: auto;
    height: 140%; 
    max-width: 90%; /* Ограничиваем ширину */
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
    transform: scale(1.8);
    transition: transform 0.3s ease;
}

/* 2. Эффект при наведении */
.case-card-link:hover .case-image img {
    transform: scale(2); 
}

/* Информация о кейсе */
.case-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 10px 5px;
    text-align: center;
    background: transparent !important;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    min-height: 80px; /* Фиксированная минимальная высота */
}

.case-card-link:hover {
    transform: translateY(-8px);
}

.case-card-link:hover .case-card {
    border-color: rgba(150, 200, 255, 0.5);
    box-shadow: 
        0 20px 45px rgba(0, 80, 200, 0.5),
        inset 0 0 100px rgba(255, 255, 255, 0.12);
}

/* Название кейса - СНЕЖНОЕ ПЕРЕЛИВАНИЕ */
.case-name {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: -5px;
    line-height: 1.2;
    
    /* Серебряно-снежный */
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #f8f8ff 30%,
        #e6e6fa 50%,
        #f0f8ff 70%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Сложное сияние */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(230, 230, 250, 0.7),
        0 0 30px rgba(176, 224, 230, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.5);
    
    /* Анимация "мерцания снежинок" */
    animation: snow-twinkle 2s infinite alternate;
    position: relative;
    letter-spacing: 0.2px;
}

/* Плавное движение снега */
@keyframes snow-drift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Дополнительный эффект снежинок */
.case-name::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 20px;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0;
    animation: snowfall 3s infinite linear;
    pointer-events: none;
}

@keyframes snow-twinkle {
    0% {
        filter: brightness(1) contrast(1);
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 0.9),
            0 0 25px rgba(230, 230, 250, 0.7);
    }
    100% {
        filter: brightness(1.2) contrast(1.1);
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 1),
            0 0 40px rgba(176, 224, 230, 0.9),
            0 0 60px rgba(135, 206, 250, 0.6);
    }
}

@keyframes snowfall {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    10%, 90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.case-price {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    
    /* Эффект жидкого стекла */
    background: rgba(255, 255, 255, 0.05) !important; /* Очень прозрачный белый */
    backdrop-filter: blur(12px) saturate(180%) !important; /* Размытие заднего фона */
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    
    padding: 6px 14px !important;
    border-radius: 16px !important;
    
    /* Тонкая светящаяся граница */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    
    white-space: nowrap !important;
    width: fit-content !important;
    margin: 8px auto !important;
    
    transition: all 0.3s ease !important;
}

/* Эффект при наведении, чтобы стекло "оживало" */
.case-price:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Фикс самой звезды внутри цены */
.case-price .stars-icon {
    width: 20px !important;  /* Чуть меньше для кнопки */
    height: 20px !important;
    margin: 0 !important;   /* Убираем внешние отступы */
    display: inline-block !important;
    background-size: contain !important;
}

/* Фикс цифр */
.price-amount {
    font-size: 14px !important;
    margin: 0 !important;
    line-height: 1 !important; /* Чтобы высота текста не распирала блок */
}

/* Индикатор "нажми" */
.case-card::after {
    content: '▶';
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.6);
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 4;
}

.case-card-link:hover .case-card::after {
    opacity: 1;
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

/* ===================== АДАПТИВНОСТЬ (ОСТАВЛЕНО ТОЛЬКО ДЛЯ КАРТОЧЕК) ===================== */
@media (max-width: 768px) {
    .case-section {
        justify-content: center;
        padding-left: 0;
    }
    
    .case-card-link {
        width: 180px;
        height: 210px;
    }
    
    .case-image {
        height: 120px !important; /* Исправленный стиль */
    }
    
    .case-name {
        font-size: 14px;
    }
    
    .price-amount {
        font-size: 14px; /* Изменено для 768px */
    }
    
    .case-info {
        padding: 0 10px 8px !important; /* Исправленный стиль */
        min-height: 80px !important; /* Исправленный стиль */
    }
    
    .instruction {
        margin: 30px auto;
        max-width: 400px;
        margin-left: auto; /* Исправлено на auto */
        margin-right: auto;
    }

    .case-price {
        padding: 4px 8px;
        border-radius: 12px;
    }
    .price-icon {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .case-card-link {
        width: 160px;
        height: 190px;
    }
    
    .case-image {
        height: 100px !important; /* Скорректировано для 480px */
        padding: 8px;
    }
    
    .case-name {
        font-size: 12px;
    }
    
    .price-amount {
        font-size: 13px; /* Изменено для 480px */
    }
    
    .case-price {
        padding: 3px 6px;
        border-radius: 10px;
    }
}

/* Добавляем управление блоком аватарки */
.profile-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    
    /* ВОТ ЭТО ЧИСЛО ДВИГАЕТ АВАТАРКУ ВПРАВО */
    /* Отрицательное значение (напр. -20px) тянет её К КРАЮ экрана */
    /* Положительное (напр. 20px) толкает её ВЛЕВО к балансу */
    margin-right: 10px !important; 
    
    gap: 6px !important; /* Расстояние между авой и кнопкой FREE SPIN */
}

/* Фикс для самой картинки, чтобы не было лишних отступов */
.profile {
    margin: 0 !important;
    padding: 0 !important;
}

/* Стили только для страницы рулетки */
.wheel-page .balance-display {
    /* Убираем фиксированное позиционирование, которое мешает */
    position: absolute !important; 
    
    /* Регулируй эти числа, чтобы поставить баланс идеально */
    top: 20px !important;   /* Отступ сверху */
    right: 5px !important;  /* Отступ справа (увеличь, если он наезжает на крестик или край) */
    
    /* Сброс лишних отступов */
    margin: 0 !important; 
}

/* Если на рулетке нет аватарки, можно сделать баланс побольше */
.wheel-page .balance-display {
    font-size: 18px !important;
    padding: 10px 20px !important;
}

/* Улучшенная 3D монета Giftly Coin */
.gc-coin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    position: relative;
    vertical-align: middle;
    margin-bottom: 3px;
    
    /* Золотой градиент с эффектом металла */
    background: radial-gradient(circle at 30% 30%, #fff9c4 0%, #ffcc00 50%, #e6ac00 100%);
    border-radius: 50%;
    
    /* Объемные границы (внешняя и внутренняя чеканка) */
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),            /* Тень под монетой */
        inset 0 -2px 2px rgba(0, 0, 0, 0.2),    /* Внутренняя тень снизу */
        inset 0 2px 2px rgba(255, 255, 255, 0.5), /* Блик сверху */
        0 0 0 1px #d4af37;                      /* Тонкий золотой ободок */
    
    font-family: 'Arial Black', sans-serif;
    font-style: normal;
    overflow: hidden;
}

/* Анимированный блик на всю монету */
.gc-coin::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        to bottom right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0) 40%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0) 60%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(35deg);
    animation: luxuryShine 4s infinite ease-in-out;
}

/* Элегантная анимация блеска */
@keyframes luxuryShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(35deg); }
    30% { transform: translateX(100%) translateY(100%) rotate(35deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(35deg); }
}

/* Эффект легкого пульсирующего свечения вокруг */
.balance-display .gc-coin {
    animation: coinGlow 2s infinite alternate;
}

@keyframes coinGlow {
    from { filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.4)); }
    to { filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8)); }
}

/* Убираем только горизонтальный скролл */
html, body {
    overflow-x: hidden !important;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #141e32 0%, #192841 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Поверх всего */
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

/* Крутящееся кольцо */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(169, 217, 248, 0.1);
    border-top: 5px solid #A9D9F8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-title {
    color: #fff;
    font-size: 24px;
    letter-spacing: 5px;
    margin: 0;
    text-shadow: 0 0 15px rgba(169, 217, 248, 0.5);
}

.loader-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-top: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стиль для иконки звезды - УВЕЛИЧЕННЫЙ РАЗМЕР */
.stars-icon {
    display: inline-block;
    width: 30px; /* Увеличено с 20px до 28px */
    height: 30px; /* Увеличено с 20px до 28px */
    background-image: url('img/star.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-left: 5px; /* Увеличено отступ */
    margin-bottom: 2px; /* Добавлен отступ снизу для лучшего выравнивания */
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3)); /* Добавляем легкую тень */
}

/* Адаптивность иконки */
@media (max-width: 768px) {
    .stars-icon {
        width: 50px; /* Увеличено с 18px до 24px */
        height: 50px; /* Увеличено с 18px до 24px */
    }
}

@media (max-width: 480px) {
    .stars-icon {
        width: 18px; /* Увеличено с 16px до 22px */
        height: 18px; /* Увеличено с 16px до 22px */
    }
}

/* Добавьте в конец style.css или в <style> */
html, body {
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow-x: hidden;
}

/* Отключение выделения текста */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Отключение масштабирования двойным тапом */
*:not(input):not(textarea) {
    -webkit-user-select: none;
    user-select: none;
}

.balance-display {
    margin-right: 0 !important;
    margin-left: auto !important;
    margin-top: -40px !important; /* Поднимаем вверх */
    transform: translateX(71px) !important;
}

/* ===== УНИВЕРСАЛЬНЫЙ ФОН ДЛЯ ВСЕХ ЭКРАНОВ ===== */

body {
    background: linear-gradient(135deg, #080808 0%, #0f0f1a 50%, #0a0a15 100%) !important;
    background-color: #080808 !important;
}

#case-view-screen,
#initial-loader {
    background: linear-gradient(135deg, #080808 0%, #0f0f1a 50%, #0a0a15 100%) !important;
}

/* 4. Для экрана рулетки */
#wheel-screen {
    background: inherit !important;
}

.wheel-page {
    background: inherit !important;
}

/* 5. Для экрана профиля */
#profile-screen {
    background: inherit !important;
}

/* 6. Для экрана крафтов */
#crafts-screen {
    background: inherit !important;
}

/* 7. Для экрана топа */
#top-screen {
    background: inherit !important;
}

/* 8. Для загрузочного экрана */
#initial-loader {
    background: linear-gradient(135deg, #121212 0%, #1a1a2e 50%, #16213e 100%) !important;
}  

.wheel-page > div:last-child {
    margin-top: -100px;
    padding-top: 10px;
}

/*ЗАПРЕТ
/* Запрет перетаскивания и выделения изображений */
img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: auto !important; /* Сохраняем кликабельность */
    -webkit-touch-callout: none !important; /* Запрет контекстного меню на iOS */
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Дополнительная защита для всех элементов с картинками */
*[draggable="true"] {
    -webkit-user-drag: element !important;
}

/* Принудительный запрет для всех картинок внутри контейнеров кейсов */
.case-image img,
.case-image,
.case-card img,
.prize-icon img,
#modal-item-image,
#user-avatar-header,
.avatar-mini,
.wheel-mini-icon,
img[src*="cdn.changes.tg"],
img[src*="telegram"],
img[src*="star.png"] {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: none !important; /* Полностью отключаем drag события */
    -webkit-touch-callout: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* Специально для картинок с атрибутом draggable */
img[draggable="true"] {
    -webkit-user-drag: auto !important;
}

/* Запрет выделения текста и элементов */
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Разрешаем выделение только в полях ввода */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

#openCaseBtn.cooldown-active {
    background: linear-gradient(135deg, #666, #444) !important;
    cursor: not-allowed !important;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.7);
}

#openCaseBtn.cooldown-active:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Регулировка цены для каждого кейса */

/* ЕЖЕДНЕВНЫЙ КЕЙС */
.freecase-special .case-price {
    position: relative !important;
    top: 7px !important; /* Регулируйте вертикальное положение */
    left: 0px !important; /* Регулируйте горизонтальное положение */
    margin: 0 auto !important;
    transform: scale(1) !important; /* Масштаб кнопки */
}

/* КЕЙС ЗИМА 2026 */
.wintercase-special .case-price {
    position: relative !important;
    top: 7px !important;
    left: 0px !important;
    margin: 0 auto !important;
    transform: scale(1) !important;
}

/* КЕЙС БОМЖА */
.testcase-special .case-price {
    position: relative !important;
    top: -2px !important;
    left: 0px !important;
    margin: 0 auto !important;
    transform: scale(1) !important;
}

/* КЕЙС МАЖОРА */
.major-case-special .case-price {
    position: relative !important;
    top: -2px !important;
    left: 0px !important;
    margin: 0 auto !important;
    transform: scale(1) !important;
}

/* СЛАДКИЙ КЕЙС */
.sweetycase-special .case-price {
    position: relative !important;
    top: 5px !important;
    left: 0px !important;
    margin: 0 auto !important;
    transform: scale(1) !important;
}

/* КЕЙС ВЕДЬМЫ */
.witchcase-special .case-price {
    position: relative !important;
    top: 5px !important;
    left: 0px !important;
    margin: 0 auto !important;
    transform: scale(1) !important;
}

/* КЕЙС МУЖИКА */
.mancase-special .case-price {
    position: relative !important;
    top: 5px !important;
    left: 0px !important;
    margin: 0 auto !important;
    transform: scale(1) !important;
}

/* ЖЕНСКИЙ КЕЙС */
.womancase-special .case-price {
    position: relative !important;
    top: 5px !important;
    left: 0px !important;
    margin: 0 auto !important;
    transform: scale(1) !important;
}

/* ЗОЛОТОЙ КЕЙС */
.gold-case-special .case-price {
    position: relative !important;
    top: 0px !important;
    left: 0px !important;
    margin: 0 auto !important;
    transform: scale(1) !important;
}