/* Boot splash: shown from first paint until the app has finished its initial load (see src/lib/splash.ts).
   Lives in /public so it loads before the JS bundle and works under a strict CSP (no inline styles). */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #ecfdf5 100%);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#splash.splash--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: splash-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.splash__mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(0, 210, 132, 0.6);
  background: linear-gradient(135deg, #0f172a, #1e293b);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}
.splash__mark b {
  color: #00d284;
  font-weight: 900;
}
.splash__mark::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 2px solid rgba(0, 210, 132, 0.35);
  animation: splash-pulse 1.8s ease-out infinite;
}
.splash__mark::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px #fff;
}
.splash__name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.splash__name strong {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.splash__name span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #047857;
}
.splash__bar {
  position: relative;
  width: 160px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
  animation: splash-pop 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.splash__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00d284, #34d399);
  animation: splash-slide 1.2s ease-in-out infinite;
}
@keyframes splash-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}
@keyframes splash-pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.92);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}
@keyframes splash-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(320%);
  }
}
@media (prefers-reduced-motion: reduce) {
  #splash,
  .splash__brand,
  .splash__bar,
  .splash__bar::after,
  .splash__mark::before {
    animation: none;
    transition: none;
  }
  .splash__bar::after {
    width: 100%;
  }
}
