:root {
  --nl-loader-accent: #e8ff47;
}

.nl-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 15, 15, .62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .18s ease,
    visibility .18s ease;
}

.nl-loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.nl-loading-content {
  width: min(440px, 100%);
  text-align: center;
  color: #f0ede6;
  user-select: none;
}

.nl-loading-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  position: relative;
  display: grid;
  place-items: center;
}

.nl-loading-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 255, 71, .15);
  border-top-color: var(--nl-loader-accent);
  border-right-color: rgba(232, 255, 71, .55);
  border-radius: 50%;
  animation: nl-ring-spin 1.15s linear infinite;
  box-shadow:
    0 0 24px rgba(232, 255, 71, .08),
    inset 0 0 18px rgba(232, 255, 71, .03);
}

.nl-loading-cube {
  width: 42px;
  height: 42px;
  animation:
    nl-cube-float 1.8s ease-in-out infinite,
    nl-cube-turn 3.6s linear infinite;
  filter: drop-shadow(
    0 0 10px rgba(232, 255, 71, .22)
  );
}

.nl-loading-cube svg {
  display: block;
  width: 100%;
  height: 100%;
}

.nl-loading-title {
  margin: 0;
  color: #f0ede6;
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.nl-loading-detail {
  margin: 7px auto 0;
  max-width: 380px;
  color: #a4a49d;
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: .88rem;
  line-height: 1.55;
}

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

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

@keyframes nl-cube-turn {
  0% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(5deg);
  }

  100% {
    transform: rotate(-3deg);
  }
}

@keyframes nl-cube-float {
  0%,
  100% {
    translate: 0 2px;
  }

  50% {
    translate: 0 -3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nl-loading-ring {
    animation-duration: 2.4s;
  }

  .nl-loading-cube {
    animation: none;
  }
}
