:root {
  --splash-navy: #0a3d91;
  --splash-teal: #18aaa7;
  --splash-fade-duration: 320ms;
}

html.global-splash-active,
html.global-splash-active body {
  overflow: hidden;
}

.app-route-stage {
  min-height: 100vh;
  opacity: 1;
}

.app-route-stage--loading {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.global-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: #f8fbff;
  opacity: 1;
  transition: opacity var(--splash-fade-duration) ease;
}

.global-splash::before {
  position: absolute;
  inset: 42% -18% -34%;
  content: "";
  opacity: 0.34;
  background:
    repeating-radial-gradient(
      ellipse at 50% 105%,
      transparent 0 26px,
      rgba(24, 170, 167, 0.07) 27px 28px,
      transparent 29px 48px
    );
  pointer-events: none;
}

.global-splash--exiting {
  opacity: 0;
  pointer-events: none;
}

.global-splash__composition {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(220px, 30vw, 320px);
  aspect-ratio: 1;
  place-items: center;
}

.global-splash__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 4deg,
    var(--splash-teal) 0deg 116deg,
    transparent 116deg 156deg,
    rgba(24, 170, 167, 0.34) 156deg 174deg,
    transparent 174deg 208deg,
    var(--splash-navy) 208deg 326deg,
    transparent 326deg 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 5px),
    #000 calc(100% - 4px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 5px),
    #000 calc(100% - 4px)
  );
  animation: branded-loader-rotate 1.65s linear infinite;
  will-change: transform;
}

.global-splash__core {
  display: grid;
  width: 82%;
  height: 82%;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
}

.global-splash__logo {
  display: block;
  width: 78%;
  height: auto;
  max-height: 58%;
  object-fit: contain;
}

@keyframes branded-loader-rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 374px) {
  .global-splash__composition {
    width: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-splash {
    transition-duration: 1ms;
  }

  .global-splash__ring {
    animation: none;
  }
}
