/* ============================================================
   19-splash.css — Splash screen
   ============================================================ */

/* Splash screen on app open */
.splash {
  position: fixed;
  inset: 0;
  z-index: 30000;
  background: #04050a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding-bottom: 5vh;
  transition: opacity 0.4s ease;
}

.splash::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 44%;
  width: 80vmin;
  height: 80vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(240,193,75,0.14), rgba(240,193,75,0) 62%);
  animation: splashGlow 2.4s ease-in-out infinite;
}

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

.splash-logo {
  position: relative;
  width: min(86vw, 400px);
  height: auto;
  border-radius: 22px;
  display: block;
  animation: splashIn 0.75s cubic-bezier(0.2, 1.25, 0.4, 1) both, splashFloat 3s ease-in-out 0.75s infinite;
}

.splash-text {
  position: relative;
  font-size: 18px;
  color: #d5d8de;
  font-weight: 500;
  letter-spacing: 0.2px;
  animation: splashTextIn 0.6s ease 0.35s both;
}

.splash-bar {
  position: relative;
  width: min(52vw, 230px);
  height: 8px;
  border-radius: 4px;
  background: #222428;
  overflow: hidden;
}

.splash-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #5ad1e0, #4aa8f5);
  animation: splashFill 1.75s cubic-bezier(0.4, 0.1, 0.3, 1) forwards;
}

@keyframes splashIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes splashFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

@keyframes splashGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes splashTextIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes splashFill {
  0% { width: 0; }
  55% { width: 68%; }
  100% { width: 100%; }
}


@media (prefers-reduced-motion: reduce) {
  .splash-logo,
  .splash::before {
    animation: none;
  }
}
