/* Desktop launch splash (founder 2026-11-11): "Welcome to Pranor AI" fills the window from the first paint, never a blank screen.
   Shown only while the app loads, and only when boot-splash.js finds the Tauri shell (it adds .boot-splash-on to <html>); the website never sees it. */
#boot-splash { display: none; }
html.boot-splash-on #boot-splash {
  position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  background: radial-gradient(60% 50% at 50% 38%, rgba(139, 92, 246, 0.10), transparent 70%), radial-gradient(40% 35% at 80% 75%, rgba(59, 130, 255, 0.08), transparent 70%), #fff;
  transition: opacity 0.3s ease;
}
html.boot-splash-on #boot-splash.boot-splash-out { opacity: 0; pointer-events: none; }
#boot-splash .bs-title {
  margin: 0; padding: 0 16px; font: 700 clamp(34px, 6vw, 56px)/1.1 "Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.035em; text-align: center;
  background-image: linear-gradient(100deg, #3b82ff, #8b5cf6 30%, #ec4899 55%, #8b5cf6 78%, #3b82ff); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bs-shift 7s linear infinite;
}
/* Same height as the Welcome screen's arrow button, so the title does not jump when the splash fades out over it. */
#boot-splash .bs-wait { height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
#boot-splash .bs-ring { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(109, 40, 217, 0.18); border-top-color: #6d28d9; animation: bs-spin 0.8s linear infinite; }
#boot-splash .bs-line { margin: 0; font: 500 14px/1.2 "Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif; color: #5a5a68; transition: opacity 0.35s ease; }
#boot-splash .bs-line.bs-fade { opacity: 0; }
@keyframes bs-shift { to { background-position: -260% 0; } }
@keyframes bs-spin { to { transform: rotate(360deg); } }
/* Reduced motion: the title stops drifting; the ring keeps turning, because it is the only sign that the app is working. */
@media (prefers-reduced-motion: reduce) { #boot-splash .bs-title { animation: none; } }
