html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

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

#unity-canvas {
    width: 100%;
    height: 100%;
    background: linear-gradient(140deg, rgba(0, 59, 66, 1) 0%, rgba(66, 162, 165, 1) 100%);
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#unity-logo {
    text-align: center;
    pointer-events: none;
    animation: logo-rotate 6s linear infinite, logo-scale 2s ease-in-out infinite;
}

#unity-logo img {
    max-width: 160px;
    max-height: 160px;
    pointer-events: none;
}

/* Прогресс-бар */
#unity-progress-bar-empty {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    border: 2px solid rgba(255, 211, 37, 0.7);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

#unity-progress-bar-full {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(270deg, #3fa2ff, #ffd325, #3fa2ff);
    background-size: 300% 300%;
    animation: gradientMove 3s linear infinite;
    transition: width 0.5s ease;
}

/* Анимации */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes logo-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

/* Для светлой темы */
.light #unity-progress-bar-empty {
    border-color: rgba(255, 211, 37, 0.7);
}
.light #unity-progress-bar-full {
    background: linear-gradient(270deg, #3fa2ff, #ffd325, #3fa2ff);
}
