html.site-loading,
html.site-loading body {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
  color: #f8fafc;
  font-family: Outfit, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader-card {
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.site-loader-mark {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 16px 28px rgba(245, 159, 34, 0.24));
}

.site-loader-title,
.site-loader-subtitle {
  display: none;
}

.site-loader-track {
  position: relative;
  width: min(280px, 82vw);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.site-loader-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: #ffffff;
  animation: site-loader-scan 1.1s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes site-loader-scan {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(255%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader,
  .site-loader-bar {
    transition: none;
    animation: none;
  }
}

@media (max-width: 640px) {
  .site-loader-mark {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
  .site-loader-track {
    width: min(180px, 65vw);
    height: 4px;
  }
}
