/* CoinWhales — شاشة التحميل الافتتاحية */
body.app-splash-active .container {
  visibility: hidden;
  pointer-events: none;
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 28px calc(12vh + env(safe-area-inset-bottom, 0px));
  background: #060b14 url("./assets/splash-bg.png") center center / cover no-repeat;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.app-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-splash__bar-wrap {
  width: min(320px, 88vw);
  text-align: center;
}

.app-splash__bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(8, 18, 40, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.app-splash__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #9a7b2e 0%,
    #f0d060 22%,
    #ffe9a8 50%,
    #f0d060 78%,
    #9a7b2e 100%
  );
  background-size: 200% 100%;
  box-shadow:
    0 0 12px rgba(255, 215, 100, 0.65),
    0 0 24px rgba(255, 200, 80, 0.35);
  transition: width 0.22s ease-out;
  animation: splash-bar-shimmer 1.6s linear infinite;
}

@keyframes splash-bar-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.app-splash__percent {
  margin: 14px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffe9a8;
  text-shadow: 0 0 14px rgba(255, 215, 100, 0.55), 0 2px 10px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
