.iav-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgb(237 27 47 / 13%), transparent 32%),
    var(--iav-bg, #07090d);
  opacity: 1;
  visibility: visible;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.iav-loader[hidden],
.iav-loader.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.iav-loader__core {
  position: relative;
  width: 136px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.iav-loader__core::before,
.iav-loader__core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}

.iav-loader__core::before {
  border-top-color: #ed1b2f;
  border-right-color: #f2b928;
  animation: iav-loader-spin 900ms linear infinite;
  filter: drop-shadow(0 0 12px rgb(237 27 47 / 45%));
}

.iav-loader__core::after {
  inset: 10px;
  border-bottom-color: #089b3a;
  border-left-color: #13b9e8;
  animation: iav-loader-spin 1.25s linear infinite reverse;
}

.iav-loader__mark {
  width: 78px;
  height: 78px;
  object-fit: contain;
  animation: iav-loader-pulse 1.25s ease-in-out infinite;
}

.iav-loader__label {
  position: absolute;
  top: calc(100% + 18px);
  width: max-content;
  max-width: min(78vw, 320px);
  color: var(--iav-text-muted, #a8b1c0);
  font: 700 0.76rem/1.3 var(--iav-font-body, sans-serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes iav-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes iav-loader-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.78; }
  50% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .iav-loader__core::before,
  .iav-loader__core::after,
  .iav-loader__mark {
    animation: none;
  }
}
