mahan-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #209497 0%, #00a64f 100%);
}

mahan-splash-screen .bg-watermark {
  position: absolute;
  height: calc(100% * 668 / 700);
  aspect-ratio: 530 / 668;
  left: calc(50% - 100vh * 123 / 700);
  left: calc(50% - 100dvh * 123 / 700);
  top: calc(100% * 32 / 700);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  background: url('../../image/0-evolution/splash-screen/flame-background.svg') center / contain no-repeat;
}

mahan-splash-screen .mahan-brand-information {
  position: relative;
  top: calc(-100vh * 44 / 700);
  top: calc(-100dvh * 44 / 700);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 480ms cubic-bezier(0.4, 0, 0.2, 1);
}

mahan-splash-screen .mahan-logo {
  object-fit: contain;
}

mahan-splash-screen .mahan-logo,
mahan-splash-screen .bg-watermark {
  visibility: hidden;
}

mahan-splash-screen .mahan-logo.is-loaded,
mahan-splash-screen .bg-watermark.is-loaded {
  visibility: visible;
  animation: mahan-splash-asset-in 320ms ease-out both;
}

@keyframes mahan-splash-asset-in {
  from { opacity: 0; }
}

mahan-splash-screen .app-version {
  position: absolute;
  bottom: 24px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Yekan Bakh FaNum", Roboto, "Helvetica Neue", sans-serif;
  font-size: 13px;
  direction: ltr;
  user-select: none;
  animation: mahan-splash-version-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

mahan-splash-screen[closing] {
  animation: mahan-splash-fade-out 480ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

mahan-splash-screen[closing] .mahan-brand-information {
  transform: translateY(-4px);
}

@keyframes mahan-splash-version-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mahan-splash-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  mahan-splash-screen .mahan-logo.is-loaded,
  mahan-splash-screen .bg-watermark.is-loaded {
    animation: none;
  }

  mahan-splash-screen .app-version {
    animation: none;
  }

  mahan-splash-screen .mahan-brand-information {
    transition: none;
  }

  mahan-splash-screen[closing] .mahan-brand-information {
    transform: none;
  }

  mahan-splash-screen[closing] {
    animation: none;
    opacity: 0;
  }
}
