@font-face {
  font-family: amaranth;
  src: url("/fonts/amaranth/Amaranth-Regular.otf") format("opentype");
  font-display: swap;
}

body client-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  color: #2f3438;
  background: #fcf7f3;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 420ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 420ms cubic-bezier(0.4, 0, 0.2, 1);
}

body client-splash-screen img {
  width: min(17rem, 62vw);
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(157, 130, 108, 0.12));
  transform: translateX(-8%)
}

body client-splash-screen .spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  margin-top: 2rem;
}

body client-splash-screen .spinner > div {
  display: inline-block;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 9999px;
  background: #9e8065;
  opacity: 0.44;
  transform: translateY(0) scale(0.9);
  animation-duration: 1.35s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

body client-splash-screen .bounce1 {
  animation-name: client-splash-wave-dot-one;
}

body client-splash-screen .bounce2 {
  animation-name: client-splash-wave-dot-two;
}

body client-splash-screen .bounce3 {
  animation-name: client-splash-wave-dot-three;
}

body client-splash-screen p {
  margin: 4rem 0 0;
  font-family: amaranth, Arial, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.2;
  color: #3f4549;
  letter-spacing: 0;
}

html:not(.client-splash-screen-recent) body:not(.client-splash-screen-hidden) {
  overflow: hidden;
}

html.client-splash-screen-recent body client-splash-screen,
body.client-splash-screen-hidden client-splash-screen {
  opacity: 0;
  visibility: hidden;
}

html.client-splash-screen-recent body client-splash-screen {
  transition: none;
}

@keyframes client-splash-wave-dot-one {
  0%,
  30%,
  100% {
    transform: translateY(0) scale(0.9);
    opacity: 0.44;
  }

  12% {
    transform: translateY(-0.45rem) scale(1.05);
    opacity: 1;
  }
}

@keyframes client-splash-wave-dot-two {
  0%,
  22%,
  55%,
  100% {
    transform: translateY(0) scale(0.9);
    opacity: 0.44;
  }

  37% {
    transform: translateY(-0.45rem) scale(1.05);
    opacity: 1;
  }
}

@keyframes client-splash-wave-dot-three {
  0%,
  47%,
  80%,
  100% {
    transform: translateY(0) scale(0.9);
    opacity: 0.44;
  }

  62% {
    transform: translateY(-0.45rem) scale(1.05);
    opacity: 1;
  }
}
