/* ========== Loading Overlay ========== */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-loading);
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-overlay.exit {
  animation: pageSlideLeft 0.8s var(--ease-out-expo) forwards;
}

.loading-center {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Progress number — 851ShouShu font, 32px (was 36, -4px) */
.loading-number {
  font-family: var(--font-851);
  font-size: 32px;
  font-weight: 300;
  color: var(--accent-red);
  letter-spacing: 2px;
  animation: fadeIn 0.6s ease forwards;
  z-index: 2;
}

.loading-number.fade-out {
  animation: fadeOut 0.6s ease forwards;
}

/* Orbiting jiao — larger orbit radius (100px), sprite rotated 90deg CW via SVG internal transform */
.loading-jiao {
  position: absolute;
  width: 32px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -16px;
}

.loading-jiao-1 {
  animation: orbitCW 5s linear infinite;
}

.loading-jiao-2 {
  animation: orbitCCW 5s linear infinite;
}

/* ========== Logo Screen ========== */
.logo-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-loading);
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.logo-screen.show {
  opacity: 1;
  pointer-events: auto;
  animation: logoFadeIn 0.8s var(--ease-out-expo) forwards;
}

.logo-screen.fade-out {
  animation: fadeOut 0.8s ease forwards;
}

.logo-screen.exit {
  animation: pageSlideLeft 0.8s var(--ease-out-expo) forwards;
}

/* Logo — doubled from 200px to 400px */
.logo-img {
  max-width: 400px;
  opacity: 0;
  animation: logoFadeIn 1.2s var(--ease-out-expo) 0.3s forwards;
}

.logo-tag {
  position: absolute;
  bottom: 15%;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--text-ghost);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.8s ease 1s forwards;
}