.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.modal-overlay.fade-out {
    opacity: 0;
}

.modal-content {
    text-align: center;
    color: #ffffff;
    font-family: Arial, sans-serif;
    max-width: 80%;
}

.modal-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 30px;
}

.modal-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.modal-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.modal-text {
    font-size: 24px;
    margin-bottom: 20px;
}

.modal-subtitle {
    font-size: 16px;
    opacity: 0.8;
}

/* BGAMING loader */
.bgaming-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bgaming-loader .loader-item img,
.bgaming-loader .loader-split {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: -7px;
}

/* Стилі для мобільних пристроїв у ландшафтному режимі */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-logo {
        max-width: 400px;
        margin-bottom: 20px;
    }
    
    .modal-images {
        gap: 15px;
        margin: 20px 0;
    }
    
    .modal-image {
        width: 60px;
        height: 60px;
    }
    
    .modal-text {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .modal-subtitle {
        font-size: 14px;
    }
    
    .bgaming-loader .loader-item img,
    .bgaming-loader .loader-split {
        width: 15px;
        height: 15px;
        margin-right: -5px;
    }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
    .modal-overlay {
        padding: 5px;
    }
    
    .modal-content {
        max-width: 98%;
    }
    
    .modal-logo {
        max-width: 300px;
        margin-bottom: 15px;
    }
    
    .modal-images {
        gap: 10px;
        margin: 15px 0;
    }
    
    .modal-image {
        width: 50px;
        height: 50px;
    }
    
    .modal-text {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .modal-subtitle {
        font-size: 12px;
    }
    
    .bgaming-loader .loader-item img,
    .bgaming-loader .loader-split {
        width: 12px;
        height: 12px;
        margin-right: -4px;
    }
}

@media screen and (max-height: 400px) and (orientation: landscape) {
    .modal-overlay {
        padding: 2px;
    }
    
    .modal-content {
        max-width: 99%;
    }
    
    .modal-logo {
        max-width: 200px;
        margin-bottom: 10px;
    }
    
    .modal-images {
        gap: 8px;
        margin: 10px 0;
    }
    
    .modal-image {
        width: 40px;
        height: 40px;
    }
    
    .modal-text {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .modal-subtitle {
        font-size: 10px;
    }
    
    .bgaming-loader .loader-item img,
    .bgaming-loader .loader-split {
        width: 10px;
        height: 10px;
        margin-right: -3px;
    }
}