body {
    background:
      radial-gradient(circle at 50% 34%, rgba(103, 174, 247, 0.16) 0%, rgba(103, 174, 247, 0) 55%),
      radial-gradient(circle at 16% 84%, rgba(103, 174, 247, 0.11) 0%, rgba(103, 174, 247, 0) 50%),
      radial-gradient(circle at 86% 16%, rgba(103, 174, 247, 0.1) 0%, rgba(103, 174, 247, 0) 46%), #090c10;
    touch-action: none;
    overflow-y: hidden !important;
  }

  body.body-light {
    background:
      radial-gradient(circle at 50% 34%, rgba(103, 174, 247, 0.24) 0%, rgba(103, 174, 247, 0) 55%),
      radial-gradient(circle at 16% 84%, rgba(103, 174, 247, 0.16) 0%, rgba(103, 174, 247, 0) 50%),
      radial-gradient(circle at 86% 16%, rgba(103, 174, 247, 0.14) 0%, rgba(103, 174, 247, 0) 46%), #f2f9ff !important;
  }

  @keyframes spin {
    0% {
      transform: rotate(0);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  .spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1003;
    background:
      radial-gradient(circle at 50% 34%, rgba(103, 174, 247, 0.16) 0%, rgba(103, 174, 247, 0) 55%),
      radial-gradient(circle at 16% 84%, rgba(103, 174, 247, 0.11) 0%, rgba(103, 174, 247, 0) 50%),
      radial-gradient(circle at 86% 16%, rgba(103, 174, 247, 0.1) 0%, rgba(103, 174, 247, 0) 46%), #090c10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .body-light .spinner {
    background:
      radial-gradient(circle at 50% 34%, rgba(103, 174, 247, 0.24) 0%, rgba(103, 174, 247, 0) 55%),
      radial-gradient(circle at 16% 84%, rgba(103, 174, 247, 0.16) 0%, rgba(103, 174, 247, 0) 50%),
      radial-gradient(circle at 86% 16%, rgba(103, 174, 247, 0.14) 0%, rgba(103, 174, 247, 0) 46%), #f2f9ff;
    transition-duration: 0.15s;
    transition-property: background-color;
    transition-timing-function: ease-in;
  }

  .spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  .body-light .spinner::after {
    opacity: 0.035;
  }

  .spinner .splash-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .spinner .splash-mark {
    position: relative;
    width: 150px;
    height: 150px;
    isolation: isolate;
  }

  .spinner .splash-mark::before {
    content: '';
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(103, 174, 247, 0.28) 0%, rgba(103, 174, 247, 0) 70%);
    pointer-events: none;
    z-index: 0;
  }

  .body-light .spinner .splash-mark::before {
    background: radial-gradient(circle at 50% 50%, rgba(103, 174, 247, 0.24) 0%, rgba(103, 174, 247, 0) 70%);
  }

  .spinner .splash-glass {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    z-index: 1;
    background: rgba(21, 27, 35, 0.42);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 10px 30px rgba(103, 174, 247, 0.18);
  }

  .body-light .spinner .splash-glass {
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.75),
      0 10px 30px rgba(103, 174, 247, 0.25);
  }

  .spinner .splash-progress {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.2s ease-out;
  }

  .spinner .splash-progress-track {
    fill: none;
    stroke: rgba(103, 174, 247, 0.15);
    stroke-width: 3;
  }

  .spinner .splash-progress-arc {
    fill: none;
    stroke: #67aef7;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.3s ease-out;
  }

  .spinner .splash-rings {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 3px 3px 0 rgba(103, 174, 247, 1);
    transform: translate3d(0, 0, 0);
    z-index: 2;
    animation: spin 2s linear infinite;
    transition: opacity 0.3s ease-out;
  }

  .spinner .splash-rings::before,
  .spinner .splash-rings::after {
    content: '';
    position: absolute;
    border-radius: 50%;
  }

  .spinner .splash-rings::before {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    box-shadow: 0 3px 3px 0 rgba(103, 174, 247, 0.6);
    animation: spin 3s linear infinite;
  }

  .spinner .splash-rings::after {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    box-shadow: 0 3px 3px 0 rgba(103, 174, 247, 0.25);
    animation: spin 1.5s linear infinite;
  }

  .spinner .logo {
    display: flex;
    position: absolute;
    inset: 0;
    justify-content: center;
    align-items: center;
    z-index: 3;
  }

  .spinner .splash-logo-glass {
    display: none;
    width: 78px;
    height: 78px;
  }

  .spinner .logo.is-glass .splash-logo-glass {
    display: block;
  }

  .spinner .logo.is-glass .splash-logo-fallback {
    display: none;
  }

  .spinner .splash-error {
    visibility: hidden;
    position: absolute;
    top: calc(100% + 1.1rem);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    max-width: min(80vw, 22rem);
    text-align: center;
    color: #8b93a2;
    font-family:
      Open Sans,
      sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .body-light .spinner .splash-error {
    color: #5c616f;
  }

  .spinner.is-updating .splash-rings {
    opacity: 0;
    animation-play-state: paused;
  }

  .spinner.is-updating .splash-progress {
    opacity: 1;
  }

  .spinner.is-updating .splash-progress-arc {
    filter: drop-shadow(0 0 4px rgba(103, 174, 247, 0.45));
  }

  .spinner.is-updating .logo {
    opacity: 1;
  }

  @keyframes logo-pulse {
    0%,
    100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.62;
      transform: scale(1.04);
    }
  }

  .spinner.is-finalizing .logo {
    animation: logo-pulse 1.35s ease-in-out infinite;
  }

  @media (prefers-reduced-motion: reduce) {
    .spinner .splash-rings {
      animation: none;
    }

    .spinner .splash-progress-arc {
      transition: none;
    }

    .spinner.is-finalizing .logo {
      animation: none;
    }
  }
