html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
canvas {
    display: block;
    outline: none;
}
body {
    background: #000000; /* Полностью черный фон */
}
#unity-container {
    width: 100%;
    height: 100%;
    position: relative;
}
#unity-canvas {
    width: 100%;
    height: 100%;
    background: #000000;
}
#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000; /* Черный фон для загрузчика */
}
#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

/* Стили для логотипа */
#unity-logo {
    text-align: center;
    margin-bottom: 20px;
}

#unity-logo img {
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

#brand-text {
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffd700, #ff8c00, #ffd700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

#progress-ring-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #ffd700 0%,
        #ff8c00 30%,
        #ffd700 60%,
        #ffed4e 100%
    );
    mask: radial-gradient(farthest-side, transparent 0%, transparent 38px, #000 40px, #000 50px, transparent 52px);
    -webkit-mask: radial-gradient(farthest-side, transparent 0%, transparent 38px, #000 40px, #000 50px, transparent 52px);
    transition: background 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 15px rgba(0,0,0,0.3);
    will-change: transform;
}

#progress-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 50%, rgba(255,255,255,0.05));
    pointer-events: none;
}

#progress-ring::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    filter: blur(2px);
    z-index: -1;
}

#progress-text {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    z-index: 1;
    user-select: none;
}

#unity-progress-bar-empty {
    display: none;
}
#unity-progress-bar-full {
    display: none;
}

.spinner {
    display: none !important;
}

@media (max-width: 480px) {
    #brand-text {
        font-size: 22px;
        letter-spacing: 3px;
    }
    #progress-ring-container {
        width: 80px;
        height: 80px;
    }
    #progress-ring {
        mask: radial-gradient(farthest-side, transparent 0%, transparent 30px, #000 32px, #000 40px, transparent 42px);
        -webkit-mask: radial-gradient(farthest-side, transparent 0%, transparent 30px, #000 32px, #000 40px, transparent 42px);
    }
    #progress-text {
        font-size: 16px;
    }
    #unity-logo img {
        max-width: 150px;
        max-height: 100px;
    }
}