html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    height: 100%;
}

canvas {
    display: block;
}

body {
    margin: 0;
}

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

#unity-canvas {
    width: 100%;
    height: 100%;
    background:

{

{

{
    BACKGROUND_COLOR
}

}
}
;
}

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

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

#unity-logo {
    text-align: center;
    pointer-events: none;
}

#unity-logo img {
    max-width: 80%;
    max-height: 80%;
    pointer-events: none;
}

#unity-progress-bar-empty {
    width: 40%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 2px solid #fff;
    padding: 2px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    background-color: #000000 !important; /* Принудительно устанавливаем чёрный фон */
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, 
        #90EE90 0%,  /* светло-зеленый */
        #ecec47 50%, /* светло-желтый */
        #90EE90 100% /* светло-зеленый */
    );
    background-size: 100% 100%;
    transition: width 0.2s ease-out;
    mask: linear-gradient(90deg, #000 calc(100% - 0.1%), transparent calc(100% + 0.1%));
    -webkit-mask: linear-gradient(90deg, #000 calc(100% - 0.1%), transparent calc(100% + 0.1%));
}

.light #unity-progress-bar-empty {
    border-color: #505050;
    background-color: #000000 !important; /* Переопределяем для светлой темы тоже */
}


.light #unity-progress-bar-full {
    background: linear-gradient(90deg,
        #90EE90,    /* светло-зеленый */
        #FFFFE0,    /* светло-желтый */
        #90EE90     /* светло-зеленый */
    );
}

.spinner,
.spinner:after {
    border-radius: 50%;
    width: 5em;
    height: 5em;
}

.spinner {
    margin: 10px;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #ffffff;
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}

@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-top: 20px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    /* Добавляем подложку */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(4px);
}

