@font-face {
  font-family: "Futura PT";
  src: url("futuraptbook.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  background: #090006;
  font-family: "Futura PT", Futura, "Trebuchet MS", Arial, Helvetica, sans-serif;
}

.loading-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 320px;
  min-height: 240px;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(8, 0, 8, 0.02), rgba(8, 0, 8, 0.2)),
    url("assets/background.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.loading-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 66%, rgba(0, 0, 0, 0.34));
}

.brand-logo {
  position: absolute;
  z-index: 4;
  left: 5.7292vw;
  top: 6.0185vh;
  width: 19.1667vw;
  height: auto;
  max-width: 368px;
  min-width: 150px;
  opacity: 0;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.18));
  animation: revealLogo 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 250ms forwards;
}

.welcome-block {
  position: absolute;
  z-index: 5;
  left: 3.3854vw;
  top: 77.5vh;
  width: 48vw;
  min-width: 600px;
  opacity: 0;
  animation: fadeUp 780ms cubic-bezier(0.2, 0.8, 0.2, 1) 540ms forwards;
}

.welcome-block h1,
.welcome-block p,
.loading-status,
.version-label {
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.welcome-block h1 {
  width: auto;
  min-width: 260px;
  min-height: 28px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  white-space: nowrap;
}

.welcome-block p {
  width: 757px;
  max-width: 78vw;
  min-height: 26px;
  margin-top: 0;
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
}

.progress-wrap {
  position: absolute;
  z-index: 5;
  left: 3.3854vw;
  top: 83.8889vh;
  width: 93.2292vw;
  height: 7px;
  overflow: hidden;
  background: rgba(217, 217, 217, 0.3);
  opacity: 0;
  transform: scaleX(0.985);
  transform-origin: left center;
  animation: revealBar 760ms cubic-bezier(0.22, 1, 0.36, 1) 780ms forwards;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: #eb268f;
  box-shadow: 0 0 18px rgba(235, 38, 143, 0.58);
  transition: width 360ms ease;
}

.loading-status {
  position: absolute;
  z-index: 5;
  left: 3.3854vw;
  top: 85.7407vh;
  width: 70vw;
  min-height: 18px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  animation: fadeUp 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 920ms forwards;
}

.version-label {
  position: absolute;
  z-index: 5;
  left: 1.5625vw;
  top: 97.2222vh;
  width: 160px;
  min-height: 15px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 10px;
  line-height: 15px;
  font-weight: 400;
  opacity: 0;
  animation: fadeIn 760ms ease 1200ms forwards;
}

.petal-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -18vh;
  width: 44px;
  height: auto;
  opacity: 0;
  filter: blur(0.1px) drop-shadow(0 0 10px rgba(235, 38, 143, 0.36));
  animation-name: petalDrift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

.petal.is-reverse {
  animation-name: petalDriftReverse;
}

.petal.is-soft {
  filter: blur(1.1px) drop-shadow(0 0 16px rgba(235, 38, 143, 0.48));
}

@keyframes revealLogo {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes revealBar {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes petalDrift {
  0% {
    opacity: 0;
    transform: translate3d(0, -16vh, 0) rotate(0deg) scale(0.82);
  }
  10% {
    opacity: 0.85;
  }
  88% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: translate3d(-14vw, 132vh, 0) rotate(430deg) scale(1.08);
  }
}

@keyframes petalDriftReverse {
  0% {
    opacity: 0;
    transform: translate3d(0, -16vh, 0) rotate(0deg) scale(0.78);
  }
  12% {
    opacity: 0.72;
  }
  86% {
    opacity: 0.76;
  }
  100% {
    opacity: 0;
    transform: translate3d(12vw, 130vh, 0) rotate(-390deg) scale(1.12);
  }
}

@media (max-width: 900px) {
  .brand-logo {
    width: 30vw;
    min-width: 132px;
  }

  .welcome-block {
    width: 86vw;
    min-width: 0;
    top: 74vh;
  }

  .welcome-block h1 {
    font-size: 20px;
    line-height: 29px;
  }

  .welcome-block p {
    width: 86vw;
    max-width: 86vw;
    font-size: 14px;
    line-height: 22px;
  }
}

@media (min-width: 901px) and (max-width: 1400px) {
  .welcome-block {
    top: calc(83.8889vh - 68px);
    width: 88vw;
    min-width: 0;
  }

  .welcome-block h1 {
    width: 300px;
  }

  .welcome-block p {
    width: 88vw;
    max-width: 88vw;
    font-size: 14px;
    line-height: 24px;
  }
}

@media (max-height: 620px) {
  .welcome-block {
    top: 70vh;
  }

  .progress-wrap {
    top: 84.5vh;
  }

  .loading-status {
    top: 87vh;
  }
}
