/* Startup only: local artwork, finite motion, no artificial minimum wait. */
.startup-active { overflow: hidden; }
.startup-active > :not(#startup-splash):not(script) { visibility: hidden; }
#startup-splash[hidden], #startup-splash [hidden] { display: none; }
#startup-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: auto;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: max(28px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: #0c2925;
  background-image: radial-gradient(ellipse at 50% 34%, #24584a 0, #123b32 34%, #0c2925 72%);
  color: #fff8e9;
  text-align: center;
  font-family: Vazir, Tahoma, sans-serif;
  line-height: 1.8;
  direction: rtl;
}
.startup-brand {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  margin-block: auto;
  padding-block: 42px 64px;
}
.startup-emblem { position: relative; width: 184px; height: 184px; margin: 0 auto 22px; display: grid; place-items: center; }
.startup-emblem::before, .startup-emblem::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #bad0aa40;
  border-radius: 50%;
  animation: startup-breathe 2.8s ease-in-out 3;
}
.startup-emblem::after { inset: -20px; border-style: dashed; border-color: #bad0aa20; animation-delay: .35s; }
.startup-emblem img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 32px;
  box-shadow: 0 20px 45px #04191466;
  animation: startup-arrive .7s ease-out both;
}
.startup-name { margin: 0; color: #fff8e9; font-size: clamp(36px, 10vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.6; }
.startup-tagline { margin: 6px 0 0; color: #d4e2cd; font-size: 15px; }
.startup-landscape { position: absolute; z-index: -1; inset: auto 0 0; width: 100%; height: 42%; min-height: 240px; pointer-events: none; }
.startup-route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: startup-route 2.8s ease-out .2s forwards; }
.startup-status { z-index: 1; width: 100%; max-width: 400px; padding: 0 0 10px; }
.startup-dots { display: flex; justify-content: center; gap: 7px; direction: ltr; height: 20px; }
.startup-dots i { width: 5px; height: 5px; border-radius: 50%; background: #edc18d; animation: startup-dot 1.4s ease-in-out 6; }
.startup-dots i:nth-child(2) { animation-delay: .16s; }
.startup-dots i:nth-child(3) { animation-delay: .32s; }
.startup-status p { font-size: 13px; color: #d4e2cd; margin: 6px 0; }
.startup-recovery { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.startup-recovery button, .startup-recovery a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #d4e2cd80;
  border-radius: 14px;
  background: #123b32;
  color: #fff8e9;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.startup-recovery :focus-visible { outline: 3px solid #edc18d; outline-offset: 3px; }
.startup-paused *, .startup-paused *::before, .startup-paused *::after { animation-play-state: paused !important; }
@keyframes startup-arrive { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes startup-breathe { 50% { transform: scale(1.06); opacity: .4; } }
@keyframes startup-route { to { stroke-dashoffset: 0; } }
@keyframes startup-dot { 50% { opacity: .3; transform: translateY(-4px); } }
@media (max-height: 540px) {
  .startup-brand { padding-block: 12px 24px; }
  .startup-emblem { width: 104px; height: 104px; margin-bottom: 12px; }
  .startup-emblem img { width: 76px; height: 76px; border-radius: 22px; }
  .startup-name { font-size: 30px; }
  .startup-landscape { min-height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  #startup-splash *, #startup-splash *::before, #startup-splash *::after { animation: none !important; }
  .startup-route { stroke-dashoffset: 0; }
}
