#app-boot-splash {
  --boot-ivory: #f8f7f1;
  --boot-forest: #123f30;
  --boot-gold: #c69a45;
  --boot-gold-soft: rgb(198 154 69 / 0.28);

  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  overflow: hidden;
  background: var(--boot-ivory);
  color: var(--boot-forest);
  font-family: Tajawal, sans-serif;
}

#app-boot-splash .boot-splash__glow {
  position: absolute;
  inset: 18% 12% auto;
  height: min(42vh, 360px);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--boot-gold-soft) 0%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

#app-boot-splash .boot-splash__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: min(100%, 360px);
  text-align: center;
}

#app-boot-splash .boot-splash__logo {
  width: min(72vw, 280px);
  filter: drop-shadow(0 10px 24px rgb(18 63 48 / 0.1));
  animation: boot-splash-breathe 3.2s ease-in-out infinite;
}

#app-boot-splash .boot-splash__logo img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

#app-boot-splash .boot-splash__track {
  position: relative;
  width: min(56vw, 180px);
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(18 63 48 / 0.12);
}

#app-boot-splash .boot-splash__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--boot-forest) 0%, var(--boot-gold) 55%, var(--boot-forest) 100%);
  animation: boot-splash-bar 1.6s ease-in-out infinite;
}

#app-boot-splash .boot-splash__copy {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--boot-forest);
}

#app-boot-splash .boot-splash__dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#app-boot-splash .boot-splash__dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--boot-gold);
  opacity: 0.35;
  animation: boot-splash-dot 1.4s ease-in-out infinite;
}

#app-boot-splash .boot-splash__dots i:nth-child(2) {
  animation-delay: 0.18s;
}

#app-boot-splash .boot-splash__dots i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes boot-splash-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 8px 18px rgb(18 63 48 / 0.08));
  }
  50% {
    transform: translateY(-4px) scale(1.025);
    filter: drop-shadow(0 14px 28px rgb(198 154 69 / 0.22));
  }
}

@keyframes boot-splash-bar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(280%);
  }
}

@keyframes boot-splash-dot {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 768px) {
  #app-boot-splash .boot-splash__logo {
    width: min(42vw, 320px);
  }

  #app-boot-splash .boot-splash__track {
    width: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #app-boot-splash .boot-splash__logo,
  #app-boot-splash .boot-splash__bar,
  #app-boot-splash .boot-splash__dots i {
    animation: none;
  }

  #app-boot-splash .boot-splash__logo {
    filter: drop-shadow(0 8px 18px rgb(18 63 48 / 0.08));
  }

  #app-boot-splash .boot-splash__bar {
    left: 29%;
    transform: none;
  }

  #app-boot-splash .boot-splash__dots i {
    opacity: 0.75;
  }
}
