body {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

#unity-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

    #unity-container.unity-desktop {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    #unity-container.unity-mobile {
        position: fixed;
        width: 100%;
        height: 100%;
    }

#unity-canvas {
    z-index: 0;
    background: url('background.png') no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 100%;
}
#additional-background {
    position: absolute;
    width: 100%;
    height: 0;
    padding-bottom: 178.3%; /* 913/512 = 1.783 (соотношение сторон) */
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url('background1.png') no-repeat center center;
    background-size: contain;
    z-index: 1;
}

/* Адаптация под разные размеры экрана */
@media (max-width: 512px) {
    #additional-background {
        width: 100%;
        height: auto;
        max-height: 913px;
    }
}

#unity-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 190px;
    height: 190px;
    background: url('icon.png') no-repeat center;
    background-size: contain;
    transform: translate(-50%, -50%) scale(1);
    animation: pulse 2s ease-in-out infinite;
    display: block;  
    z-index: 10; 
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none;
}
