body {
    padding: 0;
    margin: 0
}

#unity-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Всегда full, без центрирования */
#unity-canvas {
    background: #000;
    width: 100%;
    height: 100%;
    display: block;
}

/* Full canvas */
#unity-loading-bar {
    --loading-width: min(220px, 48vw);
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 10;
}

#unity-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#unity-logo {
    width: var(--loading-width);
    aspect-ratio: 1 / 1;
    background: url('loading-logo.png') no-repeat center;
    background-size: contain;
}

#unity-progress-bar-empty {
    width: var(--loading-width);
    height: 18px;
    margin-top: 10px;
    background: url('progress-bar-empty-dark.png') no-repeat center;
    background-size: 100% 100%;
}

#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    background: url('progress-bar-full-dark.png') no-repeat center;
    background-size: 100% 100%;
}

#unity-loading-spinner {
    width: 36px;
    height: 36px;
    margin-top: 14px;
    border: 4px solid rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: none;
    animation: unity-loading-spin 0.9s linear infinite;
}

#unity-loading-bar.unity-starting #unity-progress-bar-empty {
    display: none;
}

#unity-loading-bar.unity-starting #unity-loading-spinner {
    display: block;
}

#unity-loading-bar.unity-loading-hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes unity-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

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