*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --splash-fade-out: 0.8s;
  --splash-fade-in: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --splash-fade-out: 0.2s;
    --splash-fade-in: 0.15s;
  }
}

html {
  background: #000;
  color-scheme: dark;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: #000;
  color: #000;
  width: 100%;
  min-height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.splash {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100svh;
  height: 100dvh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    env(safe-area-inset-top, 0)
    env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
  overflow: hidden;
  z-index: 1;
}

.splash__video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000;
  border: 0;
  outline: none;
  opacity: 1;
  transition: opacity var(--splash-fade-out) ease;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.splash.is-entering .splash__video {
  transition-duration: var(--splash-fade-in);
}

.splash.is-fading .splash__video,
.splash.is-done .splash__video {
  opacity: 0;
}
