/* Map launch loading screen (LAUNCH → map) */
#wu-map-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.45s ease;
  pointer-events: auto;
  font-family: "Rajdhani", sans-serif;
  color: #eaf4ff;
}
#wu-map-loader.hidden {
  display: none !important;
}
#wu-map-loader.is-out {
  opacity: 0;
  pointer-events: none;
}

#wu-map-loader .wu-ml-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 8, 20, 0.35) 0%, rgba(2, 6, 14, 0.55) 45%, rgba(2, 6, 14, 0.82) 100%),
    url("/assets/ui/lgscreen/bg.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: wuMlBgDrift 18s ease-in-out infinite alternate;
}
#wu-map-loader .wu-ml-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, transparent 0%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 28%, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

@keyframes wuMlBgDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, 0.8%, 0); }
}

#wu-map-loader .wu-ml-center {
  position: relative;
  z-index: 1;
  width: min(560px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 32px;
  margin-top: 6vh;
}

#wu-map-loader .wu-ml-mark {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(78, 200, 255, 0.35));
  margin-bottom: 10px;
  animation: wuMlPulse 2.4s ease-in-out infinite;
}
@keyframes wuMlPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 14px rgba(78, 200, 255, 0.3)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 0 22px rgba(78, 200, 255, 0.5)); }
}

#wu-map-loader .wu-ml-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: #f2f8ff;
  text-shadow: 0 0 24px rgba(78, 200, 255, 0.45), 0 2px 0 rgba(0, 0, 0, 0.55);
  margin: 0 0 4px;
  line-height: 1.1;
}
#wu-map-loader .wu-ml-sub {
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: rgba(142, 196, 235, 0.85);
  text-transform: uppercase;
  margin: 0 0 28px;
}

#wu-map-loader .wu-ml-bar {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 28px;
  border-radius: 999px;
  background: rgba(4, 12, 24, 0.88);
  border: 1px solid rgba(90, 180, 255, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(40, 140, 220, 0.18);
  overflow: hidden;
}
#wu-map-loader .wu-ml-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2ecf5a 0%, #7dff4a 45%, #c8ff6a 100%);
  box-shadow: 0 0 16px rgba(90, 255, 90, 0.45);
  transition: width 0.28s ease-out;
}
#wu-map-loader .wu-ml-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 45%, rgba(0, 0, 0, 0.12) 100%);
  pointer-events: none;
}
#wu-map-loader .wu-ml-bar-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  z-index: 1;
  pointer-events: none;
  text-transform: uppercase;
}

#wu-map-loader .wu-ml-tip {
  margin-top: 14px;
  max-width: 440px;
  min-height: 2.4em;
  font-size: 0.92rem;
  line-height: 1.35;
  color: rgba(210, 230, 255, 0.88);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  opacity: 1;
  transition: opacity 0.35s ease;
}
#wu-map-loader .wu-ml-tip.is-swap {
  opacity: 0;
}

@media (max-width: 520px) {
  #wu-map-loader .wu-ml-mark { width: 72px; height: 72px; }
  #wu-map-loader .wu-ml-bar { height: 24px; }
  #wu-map-loader .wu-ml-bar-label { font-size: 0.6rem; letter-spacing: 0.08em; }
}
