/* Available before the JavaScript bundle, including on a cold first visit. */
body { margin: 0; }
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  height: 100svh;
  overflow: hidden;
  background: #312449;
  color: #f9f0d9;
  opacity: 1;
  transition: opacity 280ms ease;
}
.loading-screen.is-ready { opacity: 0; }
.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 15px;
}
.loading-ring { width: 44px; height: 44px; overflow: visible; animation: loading-turn 1.4s linear infinite; }
.loading-ring circle { fill: none; stroke-width: 2.5; }
.loading-ring__track { stroke: #ffffff20; }
.loading-ring__fill {
  stroke: #f5cc77;
  stroke-linecap: round;
  stroke-dasharray: 126;
  stroke-dashoffset: 105;
  transition: stroke-dashoffset 180ms ease;
}
.loading-label { font: 10px monospace; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.65; }
.loading-wiggler {
  position: absolute;
  bottom: -2px;
  left: 50%;
  height: 43svh;
  width: auto;
  max-width: 80vw;
  object-fit: contain;
  object-position: bottom;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: loading-wiggle 2.8s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
@keyframes loading-turn { to { transform: rotate(360deg); } }
@keyframes loading-wiggle {
  0%, 100% { transform: translateX(-50%) rotate(-2deg); }
  50% { transform: translateX(-50%) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .loading-screen, .loading-screen * { animation: none !important; transition: none !important; }
}
