#site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(139, 69, 245, 0.45), transparent 42%),
    radial-gradient(ellipse at 20% 80%, rgba(109, 40, 217, 0.35), transparent 40%),
    radial-gradient(ellipse at 85% 70%, rgba(167, 139, 250, 0.2), transparent 35%),
    linear-gradient(160deg, #0a0614 0%, #1a0b2e 45%, #090707 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#site-loader::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 40%, rgba(139, 69, 245, 0.25), transparent 28%),
    radial-gradient(circle at 70% 60%, rgba(109, 40, 217, 0.22), transparent 30%);
  animation: site-loader-drift 4.5s ease-in-out infinite alternate;
  pointer-events: none;
}

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

.site-loader-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 24px;
  text-align: center;
}

.site-loader-ring {
  display: none;
}

.site-loader-orb {
  width: min(42vw, 220px);
  height: min(42vw, 220px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 28%),
    radial-gradient(circle at 50% 50%, #a78bfa, #8B45F5 40%, #6D28D9 70%, #3b0764 100%);
  box-shadow:
    0 0 60px rgba(139, 69, 245, 0.65),
    0 0 120px rgba(109, 40, 217, 0.4),
    inset 0 0 40px rgba(255, 255, 255, 0.12);
  animation: site-orb-pulse 1.6s ease-in-out infinite;
}

.site-loader-brand {
  font-family: "Anton SC", Impact, sans-serif;
  letter-spacing: clamp(4px, 1.2vw, 12px);
  color: #ffffff;
  font-size: clamp(2.8rem, 12vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 10%, #e9d5ff 45%, #8B45F5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(139, 69, 245, 0.75));
  animation: site-brand-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-loader-bar {
  width: min(56vw, 260px);
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.site-loader-bar > i {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6D28D9, #c4b5fd, #8B45F5);
  animation: site-bar 1.1s ease-in-out infinite;
}

@keyframes site-loader-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.06); }
}

@keyframes site-orb-pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.9; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes site-brand-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
    letter-spacing: 20px;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes site-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

@keyframes site-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  #site-loader::before,
  .site-loader-orb,
  .site-loader-brand,
  .site-loader-bar > i {
    animation: none !important;
  }
  .site-loader-brand {
    letter-spacing: 6px;
    opacity: 1;
  }
}
