#splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: #ffffff;
  animation: boot-fail 0.01s linear 4s forwards;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #splash {
    background: #0d1527;
  }
}

:root[data-theme="dark"] #splash {
  background: #0d1527;
}

#splash.is-leaving {
  animation: boot-out 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.splash-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(#6b29fc 0deg, #0a68f2 108deg, rgb(10 104 242 / 0.16) 108deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  animation: splash-spin 0.8s linear infinite;
}

@keyframes splash-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes boot-fail {
  to {
    visibility: hidden;
  }
}

@keyframes boot-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
