body.hasGlobalLoading {
  overflow: hidden;
}

.mirGlobalLoadingOverlay {
  position: fixed;
  inset: 0;
  z-index: 1450;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(242, 199, 105, 0.14), transparent 26%),
    radial-gradient(circle at 50% 82%, rgba(73, 123, 195, 0.12), transparent 30%),
    rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(4px);
}

.mirGlobalLoadingOverlay[hidden] {
  display: none !important;
}

.mirGlobalLoadingPanel {
  width: min(560px, calc(100vw - 40px));
  padding: 28px 28px 24px;
  display: grid;
  justify-items: center;
  gap: 12px;
  border-radius: 4px;
  border: 1px solid rgba(170, 148, 77, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 237, 171, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.36),
    0 18px 46px rgba(0, 0, 0, 0.42);
  background:
    linear-gradient(180deg, rgba(99, 73, 27, 0.22), rgba(99, 73, 27, 0) 22%),
    linear-gradient(180deg, rgba(29, 42, 64, 0.92), rgba(12, 16, 24, 0.96));
}

.mirGlobalLoadingEyebrow {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #d9bc71;
}

.mirGlobalLoadingSigil {
  position: relative;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
}

.mirGlobalLoadingRing,
.mirGlobalLoadingCore {
  position: absolute;
  border-radius: 999px;
}

.mirGlobalLoadingRingOuter {
  inset: 0;
  border: 2px solid rgba(233, 202, 116, 0.22);
  border-top-color: rgba(233, 202, 116, 0.92);
  box-shadow: 0 0 24px rgba(233, 202, 116, 0.14);
  animation: mirGlobalLoadingSpin 1.8s linear infinite;
}

.mirGlobalLoadingRingInner {
  inset: 18px;
  border: 2px solid rgba(111, 178, 255, 0.18);
  border-right-color: rgba(111, 178, 255, 0.82);
  animation: mirGlobalLoadingSpinReverse 1.2s linear infinite;
}

.mirGlobalLoadingCore {
  inset: 39px;
  background:
    radial-gradient(circle, rgba(255, 226, 149, 0.9) 0%, rgba(225, 175, 72, 0.76) 42%, rgba(62, 39, 12, 0.2) 100%);
  box-shadow:
    0 0 20px rgba(240, 201, 98, 0.34),
    inset 0 0 10px rgba(255, 247, 212, 0.38);
  animation: mirGlobalLoadingPulse 1.6s ease-in-out infinite;
}

.mirGlobalLoadingTitle {
  font-family: 'SimHei', 'Microsoft YaHei UI', serif;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: #efe1ae;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.62);
}

.mirGlobalLoadingDesc,
.mirGlobalLoadingStatus {
  text-align: center;
  line-height: 1.7;
}

.mirGlobalLoadingDesc {
  max-width: 420px;
  font-size: 13px;
  color: #bdb494;
}

.mirGlobalLoadingStatus {
  min-height: 24px;
  padding: 5px 12px;
  border: 1px solid rgba(203, 171, 94, 0.24);
  background: rgba(5, 8, 13, 0.58);
  color: #e9ca74;
  font-size: 12px;
}

.mirGlobalLoadingOverlay.is-warn .mirGlobalLoadingPanel {
  border-color: rgba(199, 146, 54, 0.58);
}

.mirGlobalLoadingOverlay.is-warn .mirGlobalLoadingStatus {
  border-color: rgba(214, 157, 57, 0.4);
  color: #ffcf77;
}

.mirGlobalLoadingOverlay.is-error .mirGlobalLoadingPanel {
  border-color: rgba(176, 86, 86, 0.62);
  background:
    linear-gradient(180deg, rgba(99, 43, 43, 0.22), rgba(99, 43, 43, 0) 22%),
    linear-gradient(180deg, rgba(29, 42, 64, 0.92), rgba(12, 16, 24, 0.96));
}

.mirGlobalLoadingOverlay.is-error .mirGlobalLoadingEyebrow,
.mirGlobalLoadingOverlay.is-error .mirGlobalLoadingTitle,
.mirGlobalLoadingOverlay.is-error .mirGlobalLoadingStatus {
  color: #ffb0a8;
}

.mirGlobalLoadingOverlay.is-error .mirGlobalLoadingStatus {
  border-color: rgba(192, 97, 97, 0.4);
}

@keyframes mirGlobalLoadingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes mirGlobalLoadingSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes mirGlobalLoadingPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.82; }
  50% { transform: scale(1.04); opacity: 1; }
}