body {
    padding: 0;
    margin: 0;
    background: url("back.jpg") no-repeat center center;
    background-size: 100% 100%;  /* ширина = ширине окна, высота пропорционально */
    background-position: top center; /* фиксируем по центру */
    background-attachment: fixed; /* не прокручивается */
}


#unity-container {
    position: absolute;
}

#unity-container.unity-desktop {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#unity-container.unity-mobile {
    position: fixed;
    width: 100dvw;
    height: 100dvh;
}

#unity-canvas {
    display: block;
    width: 100dvw;
    height: 100%;
    max-height: 100dvh;
    background: transparent; /* убрал серый фон */
}

.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%;
}

/* прогресс-бар внизу */
#unity-loading-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.4);
    display: none;
}

#unity-logo {
    display: none; /* убираем логотип Unity */
}

/* контейнер для прогресса */
#unity-progress-bar-empty {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: #4caf50; /* зелёный индикатор */
    transition: width 0.3s ease;
}

#unity-footer {
    position: relative;
}

.unity-mobile #unity-footer {
    display: none;
}

#unity-logo-title-footer {
    display: none; /* скрываем лого снизу */
}

#unity-build-title,
#unity-fullscreen-button {
    display: none; /* убираем ненужные элементы */
}

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