#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

#loading-screen.fade-out {
    opacity: 0;
}

.loading-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 100000;
    padding: 0;
}

.loading-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.loading-close-btn:active {
    transform: scale(0.95);
}

.loading-close-btn svg {
    width: 20px;
    height: 20px;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loading-logo {
    width: 200px;
    height: auto;
    max-width: 80%;
}

.loading-text {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    font-family: 'Roboto', 'Inter', sans-serif;
}

.loading-coins {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.loading-coin {
    width: 32px;
    height: 32px;
    animation: coin-wave 1.4s ease-in-out infinite;
}

.loading-coin:nth-child(1) {
    animation-delay: 0s;
}

.loading-coin:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-coin:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes coin-wave {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-15px) scale(1.1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .loading-logo {
        width: 150px;
    }
    
    .loading-text {
        font-size: 16px;
    }
    
    .loading-coin {
        width: 28px;
        height: 28px;
    }
    
    .loading-coins {
        gap: 12px;
    }
    
    .loading-close-btn {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }
    
    .loading-close-btn svg {
        width: 18px;
        height: 18px;
    }
}
