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%;
    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;
}
/* Новый контейнер с текстом */
#unity-info-text {
    position: absolute;
    bottom: 44px; /* Отступ от низа */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px); /* Отступы от краёв 24px с каждой стороны */
    max-width: 600px; /* Ограничиваем максимальную ширину */
    text-align: center;
    z-index: 10;
    color: white;
    font-size: 16px;
    line-height: 1.4;
    font-family: Arial, sans-serif;
}

#unity-info-text a {
    color: #75E8FF;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.2s;
}

#unity-info-text a:hover {
    opacity: 0.8;
}

#unity-info-text a:active {
    opacity: 0.6;
}

/* Стиль для последней строки */
.last-line {
    display: block;
    margin-top: 0.8em; /* Увеличиваем отступ в 2 раза (стандартный line-height 1.4 = ~22px, умножаем на 2 = ~44px) */
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    #unity-info-text {
        font-size: 14px;
        bottom: 44px;
    }
    
    .last-line {
        margin-top: 1em; /* Немного больше для мобильных */
    }
}

@media (max-width: 512px) {
    #unity-info-text {
        font-size: 12px;
        bottom: 44px;
        width: calc(100% - 32px);
    }
    
    .last-line {
        margin-top: 1.2em; /* Еще больше для маленьких экранов */
    }
}
