/* ============================ СОВРЕМЕННЫЙ НОВОГОДНИЙ ЛЕДЯНОЙ СТИЛЬ ============================ */
/* Стили ТОЛЬКО для экрана кейса в SPA */

/* Все стили обернуты в #case-view-screen чтобы они не влияли на другие экраны */
#case-view-screen {
    background: linear-gradient(135deg, 
        #001a33 0%, 
        #00334d 25%, 
        #006699 50%, 
        #0099cc 75%, 
        #66ccff 100%);
    color: white;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    padding-top: 60px; /* Для header */
}

/* Сброс стилей ТОЛЬКО для элементов внутри кейса */
#case-view-screen * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Контейнер для всей страницы с кейсом - УМЕНЬШЕН */
#case-view-screen .case-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 15px 20px;
}

/* Шапка с названием и описанием кейса - УМЕНЬШЕНА */
#case-view-screen .case-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

#case-view-screen .case-title {
    color: #ffffff;
    font-size: 2em;
    margin-bottom: 8px;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.8),
        0 0 15px rgba(173, 216, 230, 0.6),
        0 2px 3px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
    animation: ice-glow 3s ease-in-out infinite;
}

/* Ледяное свечение заголовка */
@keyframes ice-glow {
    0%, 100% { 
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.9),
            0 0 20px rgba(173, 216, 230, 0.7),
            0 0 30px rgba(135, 206, 250, 0.5);
    }
    50% { 
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 30px rgba(173, 216, 230, 0.8),
            0 0 45px rgba(135, 206, 250, 0.6),
            0 0 60px rgba(102, 204, 255, 0.4);
    }
}

#case-view-screen .case-subtitle {
    color: #e6f7ff;
    font-size: 0.9em;
    max-width: 500px;
    margin: 0 auto 15px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

/* Информация о кейсе - УМЕНЬШЕНА */
#case-view-screen .case-info {
    background: linear-gradient(135deg, 
        rgba(0, 102, 153, 0.15) 0%,
        rgba(0, 153, 204, 0.12) 50%,
        rgba(102, 204, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    padding: 18px;
    margin: 20px auto;
    max-width: 450px;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: 
        0 10px 25px rgba(0, 60, 120, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

#case-view-screen .case-price {
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 15px rgba(173, 216, 230, 0.7),
        0 1px 3px rgba(0, 0, 0, 0.5);
}

#case-view-screen .case-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

#case-view-screen .case-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #e6f7ff;
    padding: 8px 18px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.85em;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#case-view-screen .case-stat:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 100, 200, 0.3);
}

/* Горизонтальная слот-машина - УМЕНЬШЕНА */
#case-view-screen .slot-container {
    position: relative;
    width: 100%;
    height: 280px;
    margin: 35px 0 50px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, 
        rgba(0, 40, 80, 0.95) 0%,
        rgba(0, 80, 140, 0.9) 50%,
        rgba(0, 120, 180, 0.85) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 15px 35px rgba(0, 80, 160, 0.4),
        inset 0 0 100px rgba(255, 255, 255, 0.15);
    position: relative;
}

#case-view-screen .slot-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#case-view-screen .slot-track {
    display: flex;
    height: 100%;
    flex-wrap: nowrap;
    transition: none;
    will-change: transform;
}

#case-view-screen .slot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 100%;
    flex-shrink: 0;
    padding: 15px;
    opacity: 1;
    transition: all 0.3s ease;
}

#case-view-screen .slot-item.active {
    opacity: 1;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0.12), 
        rgba(173, 216, 230, 0.08),
        rgba(255, 255, 255, 0.12)
    );
    box-shadow: 
        inset 0 0 40px rgba(255, 255, 255, 0.25),
        0 0 30px rgba(173, 216, 230, 0.3);
    border-radius: 18px;
    transform: scale(1.04);
}

#case-view-screen .slot-item-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.6);
    transition: all 0.5s ease;
}

/* Ледяной эффект на картинке */
#case-view-screen .slot-item-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    border-radius: 18px;
    pointer-events: none;
}

#case-view-screen .slot-item.active .slot-item-image {
    border-color: #ffffff;
    box-shadow: 
        0 0 35px rgba(255, 255, 255, 0.7),
        inset 0 0 20px rgba(0, 0, 0, 0.7);
    transform: scale(1.06);
}

#case-view-screen .slot-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

#case-view-screen .slot-item-name {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1em;
    font-weight: bold;
    margin-top: 12px;
    text-align: center;
    text-shadow: 
        0 1px 3px rgba(0,0,0,0.5),
        0 0 8px rgba(255, 255, 255, 0.4);
    min-height: 35px;
}

/* Центральная линия для слота - Ледяная */
#case-view-screen .slot-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
        to bottom, 
        transparent, 
        #ffffff, 
        #b3e0ff, 
        #ffffff, 
        transparent
    );
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 
        0 0 18px #ffffff,
        0 0 30px #b3e0ff;
    pointer-events: none;
}

#case-view-screen .slot-center-line::before,
#case-view-screen .slot-center-line::after {
    content: '❄';
    position: absolute;
    width: 30px;
    height: 30px;
    background: transparent;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    text-align: center;
    line-height: 30px;
    color: #ffffff;
    text-shadow: 0 0 10px #b3e0ff;
    opacity: 0.8;
}

#case-view-screen .slot-center-line::before {
    top: 8px;
}

#case-view-screen .slot-center-line::after {
    bottom: 8px;
}

/* Баланс и счетчик - УМЕНЬШЕН */
#case-view-screen .stats-overlay {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 20;
    pointer-events: none;
}

#case-view-screen .stat-box {
    background: linear-gradient(135deg, 
        rgba(0, 60, 100, 0.85) 0%,
        rgba(0, 100, 150, 0.8) 100%);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 18px;
    font-size: 0.95em;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: bold;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 6px 18px rgba(0, 60, 120, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Кнопка открытия кейса - УМЕНЬШЕНА */
#case-view-screen .open-section {
    text-align: center;
    margin: 35px 0;
    position: relative;
}

/* Ледяная кнопка */
#case-view-screen .open-button {
    background: linear-gradient(135deg, 
        #006699 0%,
        #0099cc 25%,
        #33ccff 50%,
        #0099cc 75%,
        #006699 100%);
    color: #ffffff;
    border: none;
    padding: 20px 70px;
    font-size: 1.4em;
    font-weight: bold;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 15px 35px rgba(0, 100, 160, 0.5),
        inset 0 2px 15px rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    background-size: 200% 100%;
}

/* Эффект льда на кнопке */
#case-view-screen .open-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    border-radius: 42px;
    z-index: -1;
    animation: ice-shimmer 3s linear infinite;
}

@keyframes ice-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#case-view-screen .open-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 
        0 20px 45px rgba(0, 120, 180, 0.7),
        inset 0 2px 15px rgba(255, 255, 255, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.4);
    animation: ice-gradient 1.5s ease-in-out infinite;
}

@keyframes ice-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#case-view-screen .open-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

#case-view-screen .open-button.spinning {
    background: linear-gradient(135deg, #00334d, #002233);
    color: #99ddff;
}

/* Призы - УМЕНЬШЕНЫ */
#case-view-screen .prizes-section {
    margin: 45px 0;
}

#case-view-screen .section-header {
    color: #ffffff;
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(173, 216, 230, 0.6);
}

#case-view-screen .section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        #ffffff, 
        #b3e0ff, 
        #ffffff, 
        transparent);
    border-radius: 2px;
}

#case-view-screen .prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

#case-view-screen .prize-card {
    background: linear-gradient(135deg, 
        rgba(0, 60, 100, 0.75) 0%,
        rgba(0, 100, 150, 0.65) 50%,
        rgba(0, 60, 100, 0.75) 100%);
    border-radius: 20px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 25px rgba(0, 60, 120, 0.25);
    position: relative;
    overflow: hidden;
}

/* Ледяной эффект на карточках */
#case-view-screen .prize-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.5), 
        transparent);
}

#case-view-screen .prize-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 100, 150, 0.4);
}

#case-view-screen .prize-card.main-prize {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(173, 216, 230, 0.2) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: ice-card-glow 2s ease-in-out infinite alternate;
}

@keyframes ice-card-glow {
    0% { 
        box-shadow: 
            0 0 25px rgba(255, 255, 255, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.08);
    }
    100% { 
        box-shadow: 
            0 0 40px rgba(255, 255, 255, 0.5),
            inset 0 0 30px rgba(255, 255, 255, 0.15);
    }
}

#case-view-screen .prize-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

#case-view-screen .prize-icon {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

#case-view-screen .prize-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#case-view-screen .prize-name {
    color: white;
    font-size: 1.3em;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

#case-view-screen .prize-stats {
    color: #ffffff;
    font-size: 1.1em;
    margin: 12px 0;
    text-shadow: 0 0 8px rgba(173, 216, 230, 0.6);
}

#case-view-screen .prize-rarity {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 18px;
    font-size: 0.85em;
    font-weight: bold;
    margin-top: 12px;
}

#case-view-screen .rarity-legendary {
    background: linear-gradient(135deg, 
        rgba(255, 50, 50, 0.25) 0%,
        rgba(255, 100, 100, 0.35) 100%);
    color: #ffcccc;
    border: 1px solid rgba(255, 100, 100, 0.5);
}

#case-view-screen .rarity-common {
    background: linear-gradient(135deg, 
        rgba(100, 150, 255, 0.25) 0%,
        rgba(150, 200, 255, 0.35) 100%);
    color: #cce0ff;
    border: 1px solid rgba(150, 200, 255, 0.5);
}

#case-view-screen .prize-chance {
    color: #e6f7ff;
    font-size: 0.9em;
    margin-top: 15px;
    opacity: 0.85;
}

/* Результат - окно - УМЕНЬШЕНО И ОПТИМИЗИРОВАНО */
#case-view-screen .result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 25, 50, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

#case-view-screen .result-container {
    background: linear-gradient(135deg, 
        rgba(0, 40, 80, 0.95) 0%,
        rgba(0, 80, 140, 0.9) 50%,
        rgba(0, 120, 180, 0.85) 100%);
    border-radius: 24px;
    padding: 25px;
    max-width: 400px;
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 0 50px rgba(255, 255, 255, 0.3),
        inset 0 0 40px rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: resultAppear 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

/* Ледяная рамка на окне результата */
#case-view-screen .result-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 24px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(173, 216, 230, 0.2), 
        rgba(255, 255, 255, 0.1)) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

#case-view-screen .result-title {
    color: #ffffff;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(173, 216, 230, 0.7);
}

#case-view-screen .result-item {
    margin: 20px 0;
}

#case-view-screen .result-image {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #ffffff;
    margin: 0 auto 15px;
    box-shadow: 
        0 0 25px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(173, 216, 230, 0.4);
    position: relative;
}

/* Ледяной блеск на картинке результата */
#case-view-screen .result-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 16px;
    animation: ice-sparkle 2s ease-in-out infinite;
}

@keyframes ice-sparkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

#case-view-screen .result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

#case-view-screen .result-name {
    color: white;
    font-size: 1.6em;
    margin: 10px 0;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 255, 255, 0.4);
}

#case-view-screen .result-rarity {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 18px;
    font-size: 0.9em;
    font-weight: bold;
    margin: 8px 0;
}

#case-view-screen .result-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

#case-view-screen .result-button {
    padding: 12px 28px;
    border-radius: 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#case-view-screen .result-button.primary {
    background: linear-gradient(135deg, 
        #006699 0%,
        #0099cc 50%,
        #006699 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

#case-view-screen .result-button.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

#case-view-screen .result-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#case-view-screen .result-button.primary:hover {
    box-shadow: 0 8px 20px rgba(0, 100, 150, 0.5);
}

/* Анимации */
@keyframes buttonPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes resultAppear {
    0% { 
        opacity: 0; 
        transform: scale(0.8) translateY(40px); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

/* ИНДИКАТОР ПРОКРУТКИ */
#case-view-screen .slot-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 
        0 0 12px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(173, 216, 230, 0.7);
    z-index: 15;
    background: rgba(0, 60, 100, 0.75);
    padding: 12px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: none;
    pointer-events: none;
    backdrop-filter: blur(8px);
}

/* Адаптивность */
@media (max-width: 768px) {
    #case-view-screen .case-container {
        padding: 30px 12px 15px;
        max-width: 95%;
    }
    
    #case-view-screen .case-title {
        font-size: 1.7em;
    }
    
    #case-view-screen .slot-container {
        height: 230px;
        margin: 25px 0 35px;
    }
    
    #case-view-screen .slot-item {
        width: 130px;
        padding: 10px;
    }
    
    #case-view-screen .slot-item-image {
        width: 110px;
        height: 110px;
    }
    
    #case-view-screen .open-button {
        padding: 16px 50px;
        font-size: 1.2em;
    }
    
    #case-view-screen .prizes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #case-view-screen .stats-overlay {
        padding: 0 15px;
    }
    
    #case-view-screen .stat-box {
        padding: 8px 18px;
        font-size: 0.85em;
    }
    
    /* Адаптивность для компактного окна результата на мобильных */
    #case-view-screen .result-container {
        max-width: 350px;
        padding: 20px 15px;
    }
    
    #case-view-screen .result-title {
        font-size: 1.6em;
        margin-bottom: 15px;
    }

    #case-view-screen .result-image {
        width: 120px;
        height: 120px;
    }

    #case-view-screen .result-name {
        font-size: 1.4em;
    }

    #case-view-screen .result-button {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    #case-view-screen .result-buttons {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    #case-view-screen .case-title {
        font-size: 1.5em;
    }
    
    #case-view-screen .open-button {
        padding: 14px 35px;
        font-size: 1.1em;
    }
    
    #case-view-screen .result-container {
        padding: 20px 15px;
    }
    
    #case-view-screen .result-title {
        font-size: 1.5em;
    }
    
    #case-view-screen .result-image {
        width: 120px;
        height: 120px;
    }
    
    #case-view-screen .result-name {
        font-size: 1.3em;
    }
}

/* --- СЕТКА ПРИЗОВ --- */
#case-view-screen .prizes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* --- СТЕКЛЯННАЯ КАРТОЧКА (Glassmorphism) --- */
#case-view-screen .prize-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    min-height: 170px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Эффект при наведении */
#case-view-screen .prize-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Контейнер иконки и заголовка */
#case-view-screen .prize-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Иконка предмета */
#case-view-screen .prize-icon img,
#case-view-screen .prize-header img {
    width: 65px !important;
    height: 65px !important;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 8px;
    object-fit: contain;
}

/* Название предмета */
#case-view-screen .prize-name {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Цена / Звезды */
#case-view-screen .prize-stars {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

/* Скрываем лишние описания */
#case-view-screen .prize-stats {
    display: none !important;
}

/* ПЛАШКА РЕДКОСТИ (Кнопка) */
#case-view-screen .prize-rarity,
#case-view-screen .rarity-tag {
    width: 85%;
    padding: 7px 0;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: auto;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Шанс (в самом низу) */
#case-view-screen .prize-chance {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}

/* --- ЦВЕТА ПЛАШЕК --- */

/* РЕДКИЙ (Золотой) */
#case-view-screen .rarity-rare,
#case-view-screen .rare .rarity-tag,
#case-view-screen .prize-rarity[style*="background: #ff4d4d"] {
    background: linear-gradient(135deg, #ffcc00, #ff9900) !important;
    color: #000 !important;
}

/* ОБЫЧНЫЙ (Синий) */
#case-view-screen .rarity-common,
#case-view-screen .uncommon .rarity-tag {
    background: linear-gradient(135deg, #00c6ff, #0072ff) !important;
    color: #fff !important;
}

/* ЛЕГЕНДАРНЫЙ (Зеленый) */
#case-view-screen .rarity-legendary,
#case-view-screen .legendary .rarity-tag {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    color: #fff !important;
}

/* Кнопка "Назад" */
#case-view-screen .back-button {
    position: absolute;
    top: -70px;
    left: -15px;
    color: #A9D9F8;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid rgba(169, 217, 248, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#case-view-screen .back-button:hover {
    background: rgba(169, 217, 248, 0.1);
    border-color: rgba(169, 217, 248, 0.6);
}

/* ============= ПЕРЕКЛЮЧАТЕЛЬ БЫСТРОГО ОТКРЫТИЯ ============= */

/* Контейнер для кнопки и переключателя */
#case-view-screen .open-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
    max-width: 500px;
    width: 100%;
}

/* Основная кнопка открытия */
#case-view-screen .open-button {
    background: linear-gradient(135deg, 
        #006699 0%,
        #0099cc 25%,
        #33ccff 50%,
        #0099cc 75%,
        #006699 100%);
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 25px rgba(0, 100, 160, 0.4),
        inset 0 1px 10px rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    display: block;
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    background-size: 200% 100%;
    flex: 1;
    min-height: 50px;
    max-width: 300px;
}

/* Эффект льда на кнопке */
#case-view-screen .open-button::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.08), 
        transparent);
    border-radius: 31px;
    z-index: -1;
    animation: ice-shimmer 3s linear infinite;
}

#case-view-screen .open-button:hover:not(:disabled) {
    transform: scale(1.03);
    box-shadow: 
        0 12px 30px rgba(0, 120, 180, 0.5),
        inset 0 1px 12px rgba(255, 255, 255, 0.4),
        0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

/* Переключатель справа от кнопки */
#case-view-screen .quick-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, 
        rgba(0, 60, 100, 0.7) 0%,
        rgba(0, 100, 150, 0.6) 100%);
    padding: 10px 15px;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    box-shadow: 
        0 8px 20px rgba(0, 80, 140, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

#case-view-screen .quick-toggle:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(0, 100, 160, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Иконка молнии */
#case-view-screen .toggle-icon {
    font-size: 20px;
    color: #FFD700;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.7));
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Переключатель */
#case-view-screen .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

#case-view-screen .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Ползунок переключателя */
#case-view-screen .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #003366, #004d80);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: .3s;
    border-radius: 24px;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.4),
        0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Круг внутри переключателя */
#case-view-screen .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, #ffffff, #e6f7ff);
    transition: .3s;
    border-radius: 50%;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 6px rgba(255, 255, 255, 0.4);
}

/* Переключатель ВКЛЮЧЕН */
#case-view-screen input:checked + .slider {
    background: linear-gradient(135deg, 
        #006699 0%,
        #0099cc 50%,
        #33ccff 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.2),
        0 0 10px rgba(0, 153, 204, 0.5);
}

#case-view-screen input:checked + .slider:before {
    transform: translateX(26px);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 215, 0, 0.6);
}

/* Эффект свечения при включении */
#case-view-screen input:checked + .slider:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.2), 
        rgba(0, 153, 204, 0.3), 
        rgba(255, 215, 0, 0.2));
    border-radius: 26px;
    z-index: -1;
    animation: toggle-glow 1.5s ease-in-out infinite alternate;
}

@keyframes toggle-glow {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    #case-view-screen .open-button-wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
    }
    
    #case-view-screen .open-button {
        width: 100%;
        max-width: none;
        font-size: 1em;
        padding: 12px 25px;
    }
    
    #case-view-screen .quick-toggle {
        width: 100%;
        justify-content: center;
        padding: 8px 20px;
    }
    
    #case-view-screen .switch {
        width: 46px;
        height: 22px;
    }
    
    #case-view-screen .slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
    }
    
    #case-view-screen input:checked + .slider:before {
        transform: translateX(24px);
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    #case-view-screen .open-button {
        font-size: 0.95em;
        padding: 10px 20px;
    }
    
    #case-view-screen .toggle-icon {
        font-size: 18px;
    }
    
    #case-view-screen .switch {
        width: 42px;
        height: 20px;
    }
    
    #case-view-screen .slider:before {
        height: 14px;
        width: 14px;
    }
    
    #case-view-screen input:checked + .slider:before {
        transform: translateX(22px);
    }
}