:root {
  --splash-base-200: oklch(96.5% 0.008 75);
  --splash-base-content: oklch(18% 0.02 60);
  --splash-primary: oklch(32% 0.1 28);
  --splash-crossfade-ms: 800ms;
  --splash-font: "Inter", system-ui, sans-serif;
}

#vesper-splash {
  position: fixed;
  inset: 0;
  z-index: 999999;
  font-family: var(--splash-font);
  color: var(--splash-base-content);
  background: var(--splash-base-200);
  opacity: 1;
  transition: opacity 400ms ease-out;
  pointer-events: auto;
}

#vesper-splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}

#vesper-splash .splash-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#vesper-splash .splash-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--splash-base-200);
}

#vesper-splash .splash-background__slides {
  position: absolute;
  inset: 0;
}

#vesper-splash .splash-background__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--splash-crossfade-ms) ease-in-out;
}

#vesper-splash .splash-background__slide.is-active {
  opacity: 1;
}

#vesper-splash .splash-background__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#vesper-splash .splash-background__tint {
  position: absolute;
  inset: 0;
  background: color-mix(in oklch, var(--splash-primary) 28%, transparent);
  mix-blend-mode: multiply;
  pointer-events: none;
}

#vesper-splash .splash-background__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 35%,
    color-mix(in oklch, var(--splash-base-content) 55%, transparent) 85%,
    color-mix(in oklch, var(--splash-base-content) 80%, transparent) 100%
  );
  pointer-events: none;
}

#vesper-splash .splash-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}

#vesper-splash .splash-topbar {
  display: flex;
  align-items: center;
  padding: 16px;
}

#vesper-splash .splash-logo {
  height: 16px;
  width: auto;
  display: block;
}

#vesper-splash .splash-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 0;
}

#vesper-splash .splash-loader {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: vesper-splash-spin 0.9s linear infinite;
}

@keyframes vesper-splash-spin {
  to {
    transform: rotate(360deg);
  }
}
