html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #07101c;
  color: #f4f8ff;
  font-family: Arial, sans-serif;
}

#unity-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #1F1F20;
}

#unity-loading-bar {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #030914;
  opacity: 1;
  text-align: center;
  transition: opacity 550ms cubic-bezier(0.4, 0, 0.2, 1);
}

#unity-loading-bar.is-visible {
  display: block;
}

#unity-loading-bar.is-leaving {
  opacity: 0;
  pointer-events: none;
}

#unity-loading-art {
  position: absolute;
  inset: -3%;
  background: #030914 url("space-splash.png") center / cover no-repeat;
  transform: scale(1);
  transform-origin: 50% 48%;
  animation: space-splash-drift 12s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform;
}

#unity-loading-art::before,
#unity-loading-art::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

#unity-loading-art::before {
  inset: 0;
  background: radial-gradient(
    circle at 50% 57%,
    rgba(72, 202, 255, 0.12) 0%,
    rgba(24, 115, 170, 0.045) 24%,
    transparent 58%
  );
  opacity: 0.44;
  mix-blend-mode: screen;
  animation: space-splash-breathe 4.8s ease-in-out infinite alternate;
}

#unity-loading-art::after {
  top: -30%;
  bottom: -30%;
  left: -42%;
  width: 18%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(116, 224, 255, 0.025) 22%,
    rgba(196, 242, 255, 0.14) 50%,
    rgba(116, 224, 255, 0.025) 78%,
    transparent 100%
  );
  filter: blur(18px);
  mix-blend-mode: screen;
  transform: translateX(-140%) rotate(11deg);
  animation: space-splash-light-sweep 7.5s ease-in-out 1.2s infinite;
}

#space-splash-brand {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#unity-progress-bar-empty {
  position: absolute;
  left: 50%;
  bottom: max(34px, 6.5vh);
  z-index: 2;
  width: min(360px, 48vw);
  height: 3px;
  overflow: hidden;
  transform: translateX(-50%);
  border: 1px solid rgba(185, 227, 242, 0.24);
  border-radius: 3px;
  background: rgba(3, 9, 20, 0.72);
  box-shadow: 0 0 24px rgba(43, 182, 229, 0.16);
}

#unity-progress-bar-full {
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #18b9e6 0%, #7ce8ff 78%, #f0a44a 100%);
  box-shadow: 0 0 12px rgba(64, 213, 255, 0.72);
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 16px;
  z-index: 20;
  display: none;
  width: min(720px, calc(100vw - 32px));
  transform: translateX(-50%);
}

#unity-warning.is-visible {
  display: block;
}

#unity-warning > div {
  margin-bottom: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #101010;
}

#unity-warning .unity-warning {
  background: #ffe87c;
}

#unity-warning .unity-error {
  background: #ff827c;
}

@keyframes space-splash-drift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.045);
  }
}

@keyframes space-splash-breathe {
  from {
    opacity: 0.32;
  }

  to {
    opacity: 0.62;
  }
}

@keyframes space-splash-light-sweep {
  0%,
  14% {
    opacity: 0;
    transform: translateX(-140%) rotate(11deg);
  }

  35% {
    opacity: 0.7;
  }

  58%,
  100% {
    opacity: 0;
    transform: translateX(850%) rotate(11deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #unity-loading-bar {
    transition-duration: 150ms;
  }

  #unity-loading-art,
  #unity-loading-art::before,
  #unity-loading-art::after {
    animation: none;
  }
}
