body {
  font-family: 'Inter', sans-serif;
  margin: 0;
}

/* Основной контейнер лоадера */
#loader {
  width: 100vw;
  height: 100vh;
  background: var(--brand-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

@supports (height: 100dvh) {
  #loader {
    height: 100dvh;
  }
}

/* Стили для звезд */
.star {
  width: 4px;
  height: 4px;
  background-color: #fefeff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #fefeffa3;
  position: absolute;
}

#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 {
  top: 30%;
  right: 38%;
  opacity: 0.8;
}

#star-9 {
  top: 25%;
  right: 52%;
  opacity: 0.9;
}

#star-10 {
  top: 48%;
  right: 56%;
  opacity: 0.9;
}

#star-11 {
  bottom: 23%;
  right: 4%;
  opacity: 0.5;
}

#wave {
  position: absolute;
  left: 0;
  top: 90%;
  width: 100%;
  max-height: 95vh;
  z-index: 1;
  transform: translateY(-90%);
}

#bg-up {
  position: absolute;
  z-index: 2;
  width: 90%;
  left: 0;
  top: 0;
  display: none;
}

#bg-down {
  position: absolute;
  z-index: 2;
  width: 120%;
  left: -8%;
  bottom: 0;
  display: none;
}

/* Стили для блока с лого игры */
#game-logo {
  width: 100%;
  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 {
  width: 463px;
  position: relative;
  z-index: 2;
}

#main-image-mobile {
  display: none;
}

#main-game-image-wrap::before {
  content: '';
  position: absolute;
  width: 100%;
  top: -10%;
  max-width: 415px;
  z-index: 2;
  background: radial-gradient(
    ellipse at center,
    var(--spotlight-color, #ffffff00) 20%,
    transparent 70%
  );
  height: 120%;
  border-radius: 100%;
}

#mines-text {
  width: 310px;
  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: 16px;
}

#logo img {
  height: var(--logo-height);
  width: var(--logo-width);
}

#progress {
  width: 330px;
  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: 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, #fff);
}

/* Медиа-запросы для адаптивности */
@media screen and (max-width: 744px) {
  #wave {
    width: 150%;
    top: 90%;
    left: -25%;
    max-height: 75vh;
    transform: translateY(-90%);
  }

  #main-image {
    width: 295px;
  }

  #mines-text {
    width: 226px;
  }

  #logo {
    margin-bottom: 20px;
  }

  #logo img {
    height: var(--logo-height-mobile);
    width: var(--logo-width-mobile);
  }

  #progress {
    width: 246px;
  }

  #percent {
    margin-top: 9px;
    line-height: 20px;
    font-size: 14px;
  }

  #bg-up {
    width: 200%;
    left: -50%;
  }

  #bg-down {
    width: 226%;
    left: -81%;
  }
}

@media screen and (max-height: 550px) {
  #mines-text {
    margin: 10px 0;
  }
}

@media screen and (max-width: 549px) {
  #bg-down {
    left: -165%;
    width: 390%;
  }

  #wave {
    width: 150%;
    top: 80%;
    left: -25%;
    max-height: 75vh;
    transform: translateY(-100%);
  }
}
