@font-face {
  font-family: 'IRANYekanSplash';
  src: url('../fonts/IRANYekanX-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

#splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #cee030;
  z-index: 9999;
  transition: opacity 0.4s ease-out;
}

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

.splash-logo {
  display: block;
  width: clamp(9rem, 42vw, 14rem);
  max-width: 90vw;
  height: auto;
  object-fit: contain;
}

.splash-loading {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(1rem, 4vh, 1.75rem));
  transform: translateX(-50%);
  margin: 0;
  direction: rtl;
  font-family: 'IRANYekanSplash', sans-serif;
  font-size: clamp(0.8rem, 3.2vw, 0.95rem);
  line-height: 1.4;
  color: rgba(28, 69, 55, 0.85);
  white-space: nowrap;
}

.splash-logo {
  width: 350px;
  height: 350px;
}

.splash-loading {
  font-size: 25px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(1.25rem, 5vh, 2rem));
}