html.nc-booting,
html.nc-booting body {
  min-height: 100%;
  overflow: hidden !important;
  background: #090a0b;
}

html.nc-booting::before {
  content: "";
  position: fixed;
  z-index: 2147483644;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.07), transparent 29%),
    #090a0b;
  animation: nc-preloader-light-in 0.9s ease-out both;
}

html.nc-booting::after {
  content: "NC";
  position: fixed;
  z-index: 2147483647;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 1.25rem;
  color: rgba(245, 245, 245, 0.94);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.018)),
    #0f1012;
  box-shadow:
    0 0 0 0.35rem rgba(255, 255, 255, 0.018),
    0 1.5rem 4rem rgba(0, 0, 0, 0.46),
    0 0 2rem rgba(255, 255, 255, 0.06);
  font: 700 1.08rem/1 Arial, sans-serif;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  transform: translate(-50%, -50%);
  animation:
    nc-preloader-light-in 0.75s ease-out both,
    nc-preloader-instant 1.65s 0.15s ease-in-out infinite;
}

html.nc-booting body > :not(#nc-preloader):not(script) {
  visibility: hidden !important;
}

.nc-preloader {
  position: fixed;
  z-index: 2147483645;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f1f1f1;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.07), transparent 29%),
    #090a0b;
  opacity: 1;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

.nc-preloader[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.nc-preloader__stage {
  position: relative;
  width: 12rem;
  height: 8rem;
  display: grid;
  place-items: center;
}

.nc-preloader__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.25rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.018)),
    rgba(15, 16, 18, 0.92);
  box-shadow:
    0 1.25rem 3.25rem rgba(0, 0, 0, 0.48),
    0 0 0 0.3rem rgba(255, 255, 255, 0.016),
    0 0 1.8rem rgba(255, 255, 255, 0.045),
    inset 0 1px rgba(255, 255, 255, 0.085);
  font-family: "Inter";
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  animation: nc-preloader-mark-pulse 1.65s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.nc-preloader__mark svg {
  width: 2.9rem;
  height: auto;
  overflow: visible;
  stroke: rgba(245, 245, 245, 0.92);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 0.55rem rgba(255, 255, 255, 0.16));
}

.nc-preloader__mark::after {
  content: "";
  position: absolute;
  inset: -1px;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18), transparent 70%);
  background-size: 220% 100%;
  animation: nc-preloader-sheen 2.6s ease-in-out infinite;
  pointer-events: none;
}

.nc-preloader__caption {
  position: absolute;
  top: calc(50% + 3.45rem);
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  font-family: "IBM Plex Mono";
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  white-space: nowrap;
  color: rgba(235, 235, 235, 0.38);
  animation: nc-preloader-breathe 1.65s ease-in-out infinite;
}

.nc-preloader__dots {
  display: inline-block;
  width: 1.6em;
  margin-left: 0.16em;
  text-align: left;
}

.nc-preloader__dots::after {
  content: ".";
  animation: nc-preloader-dots 1.2s steps(1, end) infinite;
}

@keyframes nc-preloader-light-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes nc-preloader-instant {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow:
      0 0 0 0.25rem rgba(255, 255, 255, 0.012),
      0 1.5rem 4rem rgba(0, 0, 0, 0.46),
      0 0 1rem rgba(255, 255, 255, 0.025);
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.27);
    box-shadow:
      0 0 0 0.48rem rgba(255, 255, 255, 0.026),
      0 1.5rem 4rem rgba(0, 0, 0, 0.46),
      0 0 2.2rem rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) scale(1.025);
  }
}

@keyframes nc-preloader-mark-pulse {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
      0 1.25rem 3.25rem rgba(0, 0, 0, 0.48),
      0 0 0 0.24rem rgba(255, 255, 255, 0.012),
      0 0 1rem rgba(255, 255, 255, 0.025),
      inset 0 1px rgba(255, 255, 255, 0.07);
    transform: scale(0.97);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.23);
    box-shadow:
      0 1.25rem 3.25rem rgba(0, 0, 0, 0.48),
      0 0 0 0.42rem rgba(255, 255, 255, 0.022),
      0 0 2rem rgba(255, 255, 255, 0.075),
      inset 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
  }
}

@keyframes nc-preloader-sheen {
  0%,
  18% {
    background-position: 170% 0;
  }
  72%,
  100% {
    background-position: -70% 0;
  }
}

@keyframes nc-preloader-breathe {
  0%,
  100% {
    opacity: 0.38;
  }
  50% {
    opacity: 0.82;
  }
}

@keyframes nc-preloader-dots {
  0%,
  32% {
    content: ".";
  }
  33%,
  65% {
    content: "..";
  }
  66%,
  100% {
    content: "...";
  }
}

@media (prefers-reduced-motion: reduce) {
  .nc-preloader__mark,
  .nc-preloader__mark::after,
  .nc-preloader__caption,
  .nc-preloader__dots::after,
  html.nc-booting::before,
  html.nc-booting::after {
    animation: none;
  }
}
