body {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    text-align: center;
}

.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;
}

#unityContainerCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

#logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
}

#unityContainer {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
	min-height: calc(0.2 * 100vw);
	max-height: calc(3 / 4 * 100vw);
    background: transparent;
}

#ui-root {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  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: 81px;
  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: 24px 0px; /* Возвращаем вертикальные отступы */
  display: flex;
  align-items: center; /* вертикально центрируем наполнитель */
  overflow: hidden; /* Скрываем переполнение */
  z-index: 10;
}

.full {
  background: no-repeat left center / auto 100% url(../TemplateData/progress-bar-full-dark.webp);
  width: 0%;
  height: 100%;
  border-radius: 9999px;
  min-width: 0;
  display: block;
  box-sizing: border-box;
  position: relative;
  z-index: 20;
  /*left: 3px;  Убеждаемся, что начинается от левого края */
}

