html.nbt-booting,
html.nbt-booting body {
  min-height: 100%;
  overflow: hidden;
  background: #07100d;
}

html.nbt-booting body {
  margin: 0;
}

html.nbt-booting #root,
html.nbt-booting body > noscript {
  visibility: hidden;
}

html.nbt-booting body::before {
  position: fixed;
  z-index: 2147483647;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  border: 3px solid rgba(142, 208, 90, 0.2);
  border-top-color: #8ed05a;
  border-radius: 10px;
  box-shadow: 0 0 28px rgba(142, 208, 90, 0.2);
  content: "";
  transform: translate(-50%, -50%);
  animation: nbt-bootstrap-spin 0.9s linear infinite;
}

html.nbt-booting body::after {
  position: fixed;
  z-index: 2147483647;
  top: calc(50% + 48px);
  left: 50%;
  color: #d9e0d4;
  content: "Loading Chunkweave...";
  font:
    600 14px/1.4 ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: 0.04em;
  transform: translateX(-50%);
}

html.nbt-page-ready #root {
  animation: nbt-bootstrap-reveal 180ms ease-out both;
}

@keyframes nbt-bootstrap-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes nbt-bootstrap-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.nbt-booting body::before,
  html.nbt-page-ready #root {
    animation-duration: 0.01ms;
  }
}
