/* Exact twin of crystala #res-loading — kept outside Vite CSS minify */
#res-loading {
  --bg-dark: #1c1c1c;
  --text-primary: #303133;
  font-size: 40px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  color: var(--text-primary);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  /* Avoid Safari GPU hangs from backdrop-filter: invert */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
#res-loading[data-hidden='1'] {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
#res-loading .textWrapper {
  height: fit-content;
  min-width: 1em;
  width: fit-content;
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.25ch;
  position: relative;
  z-index: 0;
  color: white;
}
#res-loading .textWrapper .text {
  margin: 8px 0;
  letter-spacing: 0.25ch;
}
#res-loading .invertbox {
  position: absolute;
  height: 100%;
  width: 1em;
  left: 0;
  top: 0;
  border-radius: 20%;
  background-color: rgba(255, 255, 255, 0.22);
  animation: move 2s ease-in-out infinite;
}
@keyframes move {
  50% {
    left: calc(100% - 1em);
  }
}
