/* Chests Screen Styling - Theme Aware */

#chests-screen .container {
    margin-top: 20px;
}

#chests-screen h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

#chests-screen > .container > p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Chests Container */
.chests-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 60px;
}

/* Chests Info Section */
.chests-info-section {
    text-align: center;
    width: 100%;
}

.chests-count-title {
    color: var(--text-secondary);
    font-size: 20px;
    margin: 0 0 30px 0;
    font-weight: 500;
}

.chests-count-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 24px;
}

/* Chest Icon Container */
.chest-icon-container {
    position: relative;
    perspective: 1000px;
}

.chest-icon {
    font-size: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 20px var(--primary-color));
    user-select: none;
}

.chest-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px var(--primary-color));
}

.chest-icon:active {
    transform: scale(0.95);
}

/* Open Chest Button - Like start-btn */
.open-chest-btn {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    min-height: 60px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: startBtnPulse 2s ease-in-out infinite;
}

.open-chest-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.open-chest-btn:active {
    transform: scale(0.98);
}

.open-chest-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes startBtnPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
}

/* Back Button - Like secondary-btn */
.chests-back-button {
    width: 100%;
    margin-top: 40px;
    padding: 14px;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.chests-back-button:hover {
    background: var(--hover-bg);
    box-shadow: 0 4px 15px var(--box-shadow-color);
}

.chests-back-button:active {
    transform: scale(0.98);
}


/* Reward Animation */
@keyframes rewardPop {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.reward-animation {
    animation: rewardPop 0.5s ease-out;
}

/* Responsive */
@media (max-width: 480px) {
    .chest-icon {
        font-size: 80px;
    }
    
    .chests-count-title {
        font-size: 16px;
    }
    
    .open-chest-btn {
        min-height: 50px;
        font-size: 16px;
    }
}
