html.loader-scroll-lock,
body.loader-scroll-lock {
  overflow: hidden;
}

#boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #00060f;
  display: flex;
  align-items: center;
  justify-content: center;
}

#boot-loader .boot-loader__container {
  width: min(28rem, calc(100vw - 2rem));
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#boot-loader .boot-loader__brand {
  gap: 0.9rem;
  margin: 0 0 1.75rem;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}

#boot-loader .boot-loader__logo {
  width: clamp(2.5rem, 4vw, 3.3rem);
  height: auto;
  flex-shrink: 0;
  display: block;
}

#boot-loader .boot-loader__progress {
  width: 100%;
  height: 0.45rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

#boot-loader .boot-loader__progress-bar {
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(1, 132, 248, 0.45);
  transform-origin: left center;
  animation: boot-loader-progress 1.2s ease-in-out infinite alternate;
}

#boot-loader .boot-loader__error {
  max-width: 28rem;
  margin: 1.5rem 0 0;
  text-align: center;
  color: #ffffff;
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  line-height: 1.45;
}

#boot-loader .boot-loader__error[hidden] {
  display: none;
}

#boot-loader.boot-loader--failed .boot-loader__progress {
  display: none;
}

#boot-loader.boot-loader--failed .boot-loader__error {
  display: block;
}

#noscript-warning {
  min-height: 100vh;
  margin: 0;
  padding: 1.5rem;
  background: #00060f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 2.7vw, 1.15rem);
  line-height: 1.5;
}

@keyframes boot-loader-progress {
  from {
    transform: scaleX(0.55);
  }

  to {
    transform: scaleX(1);
  }
}

@media (max-width: 767px) {
  #boot-loader .boot-loader__container {
    width: min(24rem, calc(100vw - 1.5rem));
    padding: 1.5rem 0.75rem;
  }

  #boot-loader .boot-loader__brand {
    gap: 0.7rem;
    margin-bottom: 1.35rem;
    font-size: clamp(1.5rem, 8vw, 2.25rem);
  }
}

.js #noscript-warning {
  display: none;
}

.no-js #boot-loader,
.no-js #app {
  display: none !important;
}
