body {
  margin: 0;
  background: var(--color-bg, #000);
}

html[data-theme="light"],
html[data-theme="light"] body {
  background: #f5f6f8;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #000;
}

#splash_screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg, #000);
  transition: opacity 0.3s ease;
}

#splash_screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

html[data-theme="light"] #splash_screen {
  background: #f5f6f8;
}

html[data-theme="dark"] #splash_screen {
  background: #000;
}

.splashLoader {
  position: relative;
  z-index: 1;
  display: block;
  width: 200px;
  height: 60px;
}

.splashCircle {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transform-origin: 50%;
  animation: splashCircleBounce 0.5s alternate infinite ease;
}

.splashCircleOne,
.splashShadowOne {
  left: 15%;
}

.splashCircleTwo,
.splashShadowTwo {
  left: 45%;
  animation-delay: 0.2s;
}

.splashCircleThree,
.splashShadowThree {
  right: 15%;
  animation-delay: 0.3s;
}

.splashShadow {
  position: absolute;
  top: 62px;
  z-index: -1;
  width: 20px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(1px);
  transform-origin: 50%;
  animation: splashShadowPulse 0.5s alternate infinite ease;
}

html[data-theme="light"] .splashCircle {
  background: #111;
}

html[data-theme="light"] .splashShadow {
  background: rgba(0, 0, 0, 0.28);
}

.splashSrOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes splashCircleBounce {
  0% {
    top: 60px;
    height: 5px;
    border-radius: 50px 50px 25px 25px;
    transform: scaleX(1.7);
  }

  40% {
    height: 20px;
    border-radius: 50%;
    transform: scaleX(1);
  }

  100% {
    top: 0;
  }
}

@keyframes splashShadowPulse {
  0% {
    transform: scaleX(1.5);
  }

  40% {
    opacity: 0.7;
    transform: scaleX(1);
  }

  100% {
    opacity: 0.4;
    transform: scaleX(0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  #splash_screen {
    transition: none;
  }

  .splashCircle,
  .splashShadow {
    animation: none;
  }

  .splashCircle {
    top: 18px;
  }

  .splashShadow {
    top: 48px;
    opacity: 0.55;
  }
}
