html,
body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, #092057 0%, #090f23 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.3s ease;
}
#loadingOverlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(123, 147, 232, 0.2) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(123, 147, 232, 0.2) 0.5px, transparent 0.5px);
  background-size: 50px 50px;
  background-position: center center;
  transform: perspective(500px) rotateX(60deg) scale(2.5);
  transform-origin: center center;
  opacity: 0.8;
  pointer-events: none;
  animation: grid-drift 60s linear infinite;
}
@keyframes grid-drift {
  0% {
    background-position: center 0;
  }
  100% {
    background-position: center 1000px;
  }
}
.loading-container {
  color: #fff;
  font-size: 24px;
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;
  text-align: center;
  max-width: calc(100vw - 32px);
  padding: 0 16px;
  box-sizing: border-box;
}
.loading-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.wireframe-cage {
  position: absolute;
  width: min(320px, 78vw);
  height: min(320px, 78vw);
  transform-origin: center center;
  animation: spin-cage 25s linear infinite;
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
}
@keyframes spin-cage {
  0% {
    transform: rotate(0deg) scale(0.9);
  }
  50% {
    transform: rotate(180deg) scale(1.04);
  }
  100% {
    transform: rotate(360deg) scale(0.9);
  }
}
.logo-container-svg {
  position: relative;
  width: min(300px, 72vw);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.brand-logo-svg {
  width: 100%;
  height: auto;
}
.loading-title {
  font-size: 26px;
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  margin-top: 120px;
  color: rgba(255, 255, 255, 0.78);
}
.loading-download {
  display: none;
  margin-top: 16px;
  opacity: 0.65;
}
.loading-download-label {
  font-size: 16px;
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;
  font-weight: 400;
}
.loading-download-file {
  font-size: 16px;
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;
  font-weight: 400;
}
#topLeftLogo {
  position: fixed;
  top: 20px;
  left: 24px;
  height: 40px;
  display: flex;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  user-select: none;
}
.top-left-logo-svg {
  height: 30px;
  width: auto;
  display: block;
  fill: rgba(215, 215, 215, 1);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 8px rgba(0, 0, 0, 0.25));
}
@media (max-width: 559px) {
  #topLeftLogo {
    left: 16px;
  }
}
#canvas {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  touch-action: none;
}
