:root { color-scheme: light; --splash-bg: #faf9f6; --splash-ink: #26313d; --splash-muted: #7d8a96; }
html, body { margin: 0; width: 100%; height: 100%; background: var(--splash-bg); }
#startup-splash { position: fixed; inset: 0; z-index: 2147483646; overflow: auto; background: radial-gradient(ellipse at 10% 5%, #eef8f3 0, transparent 38%), radial-gradient(ellipse at 100% 100%, #f3f1f8 0, transparent 40%), var(--splash-bg); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--splash-ink); transition: opacity 500ms ease; }
.splash-content { box-sizing: border-box; width: min(100%, 420px); min-height: 480px; margin: 0 auto; padding: clamp(72px, 23vh, 250px) 24px 100px; text-align: center; }
.splash-logo-space { height: 160px; display: flex; justify-content: center; margin-bottom: 30px; }
.splash-logo { width: 160px; height: 160px; position: relative; flex-shrink: 0; transition: left 650ms cubic-bezier(.22,1,.36,1), top 650ms cubic-bezier(.22,1,.36,1), width 650ms cubic-bezier(.22,1,.36,1), height 650ms cubic-bezier(.22,1,.36,1), opacity 200ms ease; }
.splash-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity 260ms ease; }
#splash-gif { mix-blend-mode: darken; }
#splash-icon { opacity: 0; }
.splash-logo.is-static #splash-icon { opacity: 1; }
.splash-logo.is-static #splash-gif { opacity: 0; }
.splash-copy { transition: opacity 180ms ease, transform 450ms ease; }
.splash-copy h1 { margin: 0 0 14px; font-size: clamp(21px, 5.5vw, 26px); font-weight: 700; line-height: 1.5; }
.splash-copy p { margin: 0; color: var(--splash-muted); font-size: 17px; line-height: 1.85; }
.splash-progress { height: 7px; margin-top: 50px; overflow: hidden; border-radius: 20px; background: #e6ebe8; transition: opacity 180ms ease; }
.splash-progress span { display: block; width: 38%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9ccdbf, #77ada3); animation: loading-sweep 1.7s ease-in-out infinite; }
.splash-status { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 22px 0 0; font-size: 14px; color: var(--splash-muted); transition: opacity 180ms ease; }
.status-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #83b5aa; animation: pulse 1.5s ease-in-out infinite; }
.splash-thanks { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; text-align: center; font-size: 12px; color: #92a29f; transition: opacity 180ms ease; }
#splash-retry { margin-top: 20px; padding: 10px 22px; border: 0; border-radius: 10px; background: #83aba2; color: white; font: inherit; cursor: pointer; }
#startup-splash.is-exiting .splash-copy, #startup-splash.is-exiting .splash-progress, #startup-splash.is-exiting .splash-status, #startup-splash.is-exiting .splash-thanks { opacity: 0; }
#startup-splash.is-exiting .splash-copy { transform: translateY(-8px); }
#startup-splash.is-hidden { opacity: 0; pointer-events: none; }
#startup-splash.has-error .splash-progress span, #startup-splash.has-error .status-dot { animation: none; }
@keyframes loading-sweep { from { transform: translateX(-110%); } to { transform: translateX(365%); } }
@keyframes pulse { 50% { opacity: .45; } }
@media (max-height: 620px) { .splash-content { padding-top: 30px; } .splash-logo-space { margin-bottom: 14px; } .splash-progress { margin-top: 25px; } .splash-thanks { position: static; padding-bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { #startup-splash, .splash-logo, .splash-logo img, .splash-copy { transition: none; } .splash-progress span, .status-dot { animation: none; } .splash-progress span { width: 100%; opacity: .55; } }
