body {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    text-align: center;
    background-color: #ffffff;
}

.game-wrapper {
    width: 100%;
    background: #000000;
    margin: 0;
    min-height: 100%;
}

.game {
    position: relative;
    /* min-height: 100%; */
}

.webgl-content {
    border: none;
    bottom: 30%;
    height: 100vh;
    padding: 0;
}

#logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    height: 25%;
}

/* Unity контейнер - мобильная версия (портретная) */
#unity-container.unity-mobile {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#unity-canvas.unity-mobile {
    width: 100%;
    height: 100%;
}

/* Unity контейнер - десктопная версия (растягивается) */
#unity-container.unity-desktop {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-canvas.unity-desktop {
    width: 100%;
    height: 100%;
}

#ui-root {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 999999;
  pointer-events: none;
  overflow: visible;

  display: flex;
  justify-content: center;
  align-items: center;
}

.ui-scaled {
  transform: scale(1);
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  overflow: visible;
  position: relative;
  z-index: 50;
}



.progress {
  /* Размеры и позиционирование теперь задаются в JavaScript */
  height: 50px;
  overflow: visible;
  z-index: 100;
}

.box {
  width: 100%;
  height: 100%;
  overflow: visible;
  /* Убираем масштабирование, которое создавало проблемы */
}

.empty {
  background: no-repeat center / contain url(../TemplateData/progress-bar-empty-dark.webp);
  width: 100%;
  height: 100%;
  position: relative;
  box-sizing: border-box;
  padding: 12px 0px;
  display: flex;
  align-items: center; /* вертикально центрируем наполнитель */
  overflow: hidden; /* Скрываем переполнение */
  z-index: 10;
}

.full {
  /* Полоса всегда во всю ширину, обрезаем её по прогрессу через clip-path */
  background: no-repeat left center / 100% 100% url(../TemplateData/progress-bar-full-dark.webp);
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  display: block;
  box-sizing: border-box;
  position: relative;
  z-index: 20;
}

