/* ==========================================================
   EP Splash (mobile/tablet <= 992px) — optimized & cleaner
   - uses only your vars + your blue/gray
   - stable on mobile address bar (svh/dvh fallback)
   - responsive logo sizing + safe paddings
   ========================================================== */

/* base splash */
.ep-splash {
  margin: 0;
  width: 100vw;

  /* ✅ mobile safe viewport */
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;

  overflow: hidden;
  background: var(--ep-bg-grad);
  color: #0f172a;
  font-family: "Vazirmatn", sans-serif;

  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
}

/* background glow layer */
.ep-splash__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* ✅ single set, then tune via media queries */
  background: radial-gradient(
      520px 520px at 50% 35%,
      rgba(49, 143, 227, 0.22),
      transparent 60%
    ),
    radial-gradient(
      420px 420px at 18% 18%,
      rgba(49, 143, 227, 0.12),
      transparent 62%
    ),
    radial-gradient(
      420px 420px at 82% 22%,
      rgba(163, 163, 163, 0.12),
      transparent 62%
    );
}

/* center area */
.ep-splash__center {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: clamp(14px, 3.2vw, 22px);
}

/* logo */
.ep-splash__logo {
  /* ✅ smoother scaling (no huge jumps) */
  width: clamp(240px, 84vw, 440px);
  height: auto;
  object-fit: contain;
  display: block;

  padding: clamp(12px, 2.6vw, 18px) clamp(10px, 2.4vw, 16px);
}

/* footer */
.ep-splash__footer {
  position: relative;
  z-index: 1;

  padding: clamp(10px, 2.4vw, 14px) clamp(12px, 3vw, 16px)
    clamp(12px, 3vw, 18px);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.8vw, 10px);
}

.ep-splash__footerLine {
  width: clamp(260px, 92vw, 520px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(49, 143, 227, 0.35),
    rgba(163, 163, 163, 0.22),
    transparent
  );
}

.ep-splash__footerText {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-size: clamp(0.82rem, 2.6vw, 0.92rem);
  color: rgba(15, 23, 42, 0.72);

  /* ✅ prevent ugly wrapping */
  flex-wrap: wrap;
  text-align: center;
  line-height: 1.8;
}

.ep-splash__powered {
  font-weight: 700;
  color: rgba(49, 143, 227, 0.95);
}

.ep-splash__dot {
  color: rgba(163, 163, 163, 0.9);
}

.ep-splash__version {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.65);
}

/* ==========================================================
     Responsive tuning (only where needed)
     ========================================================== */

/* small phones: lighter glows + smaller radii */
@media (max-width: 575.98px) {
  .ep-splash__bg {
    background: radial-gradient(
        380px 380px at 50% 33%,
        rgba(49, 143, 227, 0.2),
        transparent 62%
      ),
      radial-gradient(
        320px 320px at 18% 18%,
        rgba(49, 143, 227, 0.1),
        transparent 64%
      ),
      radial-gradient(
        320px 320px at 82% 22%,
        rgba(163, 163, 163, 0.1),
        transparent 64%
      );
  }

  .ep-splash__footerLine {
    width: clamp(240px, 92vw, 440px);
  }
}

/* very small / short devices: reduce vertical spacing */
@media (max-width: 360px), (max-height: 700px) {
  .ep-splash__center {
    padding: 12px 10px;
  }

  .ep-splash__footer {
    padding: 10px 10px 12px;
  }
}
