body {
  font-family: 'Inter', sans-serif;
  margin: 0;
}

/* Основной контейнер лоадера */
#loader {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: var(--brand-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@supports (height: 100dvh) {
  #loader {
    height: 100dvh;
  }
}

#shape {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  left: 22%;
  top: 18%;
}

#shape-gradient {
  position: absolute;
  border-radius: 164px 0 0 0;
  transform: rotate(-6deg) rotate3d(0.39, 1, 0.1, 50deg);
  width: 110%;
  height: 100%;
  left: 14%;
  top: 19%;
  z-index: 2;
  background: var(--shape-gradient, transparent);
  box-shadow:
    0 0 150px var(--shape-shadow-color),
    0 0 120px var(--shape-shadow-color),
    0 0 120px var(--shape-shadow-color),
    0 0 120px var(--shape-shadow-color);
  opacity: 0.5;
}

#bg-up {
  position: absolute;
  z-index: 2;
  width: 60%;
  right: 0;
  top: 0;
}

#bg-down {
  position: absolute;
  z-index: 2;
  width: 40%;
  left: 0;
  bottom: 0;
}

/* Стили для звезд */
.star {
  width: 4px;
  height: 4px;
  background-color: #fefeff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #fefeffa3;
  position: absolute;
  z-index: 3;
}

#star-1 {
  top: 30%;
  left: 5%;
  opacity: 0.5;
}

#star-2 {
  top: 20%;
  left: 20%;
  opacity: 0.9;
}

#star-3 {
  top: 12%;
  right: 40%;
  opacity: 0.8;
}

#star-4 {
  top: 38%;
  right: 6%;
  opacity: 0.6;
}

#star-5 {
  bottom: 35%;
  left: 12%;
  opacity: 0.7;
}

#star-6 {
  bottom: 20%;
  left: 28%;
  opacity: 0.2;
}

#star-7 {
  bottom: 17%;
  right: 23%;
  opacity: 0.5;
}

#star-8 {
  bottom: 55%;
  right: 35%;
  opacity: 0.5;
}

#star-9 {
  bottom: 50%;
  left: 37.5%;
  opacity: 0.5;
}

#star-10 {
  top: 22%;
  left: 40%;
  opacity: 0.9;
}

#star-11 {
  bottom: 23%;
  right: 4%;
  opacity: 0.5;
}

#star-12 {
  top: 18%;
  right: 16%;
  opacity: 0.6;
}

#bg-elements {
  display: none;
}

/* Стили для блока с лого игры */
#game-logo {
  width: 100%;
  max-width: 900px;
  text-align: center;
  position: relative;
  margin-top: auto;
  z-index: 2;
}

#main-game-image-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

#main-image {
  max-width: var(--main-image-max-width, 372px);
  position: relative;
  z-index: 2;
  max-height: var(--main-image-max-height, 50vh);
}

#hilo-text {
  position: relative;
  z-index: 4;
  margin-top: 40px;
  max-height: 10vh;
  margin-bottom: 20px;
}

/* Контент лоадера (логотип, прогресс) */
#loader-content {
  text-align: center;
  margin-top: auto;
  margin-bottom: 40px;
  z-index: 2;
}

#logo {
  text-align: center;
  margin-bottom: var(--logo-margin-bottom, 20px);
}

#logo img {
  height: var(--logo-height, auto);
  width: var(--logo-width, auto);
}

#progress {
  width: var(--progress-width, 330px);
  height: var(--progress-height, 8px);
  border-radius: 10px;
  box-sizing: border-box;
  padding: 2px;
  position: relative;
  background-color: #fff;
}

#bar {
  position: absolute;
  border-radius: 10px;
  width: 98%;
  right: 2px;
  height: var(--progress-bar-height, 4px);
  background-color: var(--progress-color);
}

#percent {
  margin-top: 13px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.09px;
  color: var(--fg-content-primary, #ffffff);
}

/* Медиа-запросы для адаптивности */
@media screen and (max-width: 1100px) {
  #shape,
  #shape-gradient {
    left: 10%;
    width: 150%;
    border-radius: 70px 0 0 0;
    top: 17%;
  }

  #bg-up {
    width: var(--bg-up-width-tablet, 93%);
    left: var(--bg-up-left-tablet, 30%);
  }

  #bg-down {
    width: var(--bg-down-width-tablet, 40%);
    left: var(--bg-down-left-tablet, 0%);
  }
}

@media screen and (max-width: 744px) {
  #backlight-img-mobile {
    display: block;
  }

  #backlight-img {
    display: none;
  }

  #shape {
    top: 5%;
    left: 10%;
  }

  #shape-gradient {
    top: 18%;
    left: -8%;
  }

  #bg-up {
    width: var(--bg-up-width-mobile, 130%);
    left: var(--bg-up-left-mobile, -8%);
  }

  #bg-down {
    width: var(--bg-down-width-mobile, 60%);
  }

  #main-image {
    max-width: var(--main-image-max-width-mobile, 225px);
    width: var(--main-image-width-mobile, 100%);
  }

  #hilo-text {
    margin-top: 20px;
    width: 164px;
  }

  #logo {
    margin-bottom: var(--logo-margin-bottom-mobile, 20px);
  }

  #logo img {
    height: var(--logo-height-mobile, auto);
    width: var(--logo-width-mobile, auto);
  }

  #progress {
    width: 246px;
  }

  #percent {
    margin-top: 9px;
    line-height: 20px;
    font-size: 14px;
  }
}

@media screen and (max-height: 550px) {
  #main-image {
    max-height: 40vh;
    margin-top: 10%;
  }

  #hilo-text {
    margin: 10px 0;
  }
}

@media screen and (min-height: 650px) and (max-width: 744px) {
  #shape {
    transform: var(--shape-transform-tall-mobile, scaleY(1.4));
  }
}
