* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

#unity-container.unity-mobile {
  position: fixed;
  inset: 0;
}

/* Canvas растянут на весь экран поверх верстки */
#unity-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 32px;      /* если нужно как на макете */
}

/* Экран загрузки */
.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 32px;
}

/* Фон – тайлится и всегда заполняет */
.screen__bg {
  position: absolute;
  inset: 0;
  background-image: url("TemplateData/img-background.jpg");
  background-repeat: repeat;
  background-size: auto;      /* тайлинг по 1:1 */
  background-color: #00050E;
}

/* Логотип по центру */
.screen__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.screen__logo img {
  width: min(60vw, 500px);
  height: auto;
}

/* Блок прогресса внизу */
.loading {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  width: min(60vw, 500px);
}

/* Бар */
.loading__bar {
  position: relative;
  width: 100%;
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);  /* подложка */
}

/* Заполненная часть */
.loading__bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, #ff3b30, #ff9500);
  box-shadow: 0 0 24px rgba(255, 59, 48, 0.8);
}

/* Машинка */
.loading__car {
  position: absolute;
  bottom: 30px;     /* чуть выше бара */
  left: 0;
  width: 110px;
  height: 50px;
  transform: translateX(-50%);
}
