/* The page the browser shows while the application downloads and starts: the light warm page (the shared look, LOOK-REFERENCE
   section 3), dark text, the app icon, the product name and a moving accent bar (#3F6290). Avalonia removes .avalonia-splash itself
   when it draws its first frame; the same look continues inside the application (WebRoot's opening view). */
.avalonia-splash { position: absolute; height: 100%; width: 100%; display: flex; justify-content: center; align-items: center;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: #1f1f1f; text-align: center; background: #faf6f1; }

.avalonia-splash .splash-box { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 460px; padding: 0 24px; }
.avalonia-splash .splash-logo { width: 96px; height: 96px; margin-bottom: 6px; border-radius: 22px; }
.avalonia-splash .splash-name { font-size: 28px; font-weight: 600; }
.avalonia-splash .splash-bar { width: 240px; height: 4px; border-radius: 2px; background: rgba(31, 31, 31, 0.12); overflow: hidden; }
.avalonia-splash .splash-bar > span { display: block; width: 40%; height: 100%; border-radius: 2px; background: #3F6290;
  animation: splash-slide 1.3s ease-in-out infinite; }
.avalonia-splash .splash-note { font-size: 14px; line-height: 1.4; color: #5f5f5f; }

@keyframes splash-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* The overlay that covers the application's own opening view for the whole start: same look, always on top, its bar and logo move on the compositor. */
.nagi-loading { position: fixed; inset: 0; z-index: 2147483000; display: flex; justify-content: center; align-items: center;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: #1f1f1f; text-align: center; background: #faf6f1; transition: opacity 250ms; }
.nagi-loading.nagi-loading-done { opacity: 0; pointer-events: none; }
.nagi-loading .splash-box { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 460px; padding: 0 24px; }
.nagi-loading .splash-logo { width: 96px; height: 96px; margin-bottom: 6px; border-radius: 22px; animation: nagi-breathe 2.4s ease-in-out infinite; }
.nagi-loading .splash-name { font-size: 28px; font-weight: 600; }
.nagi-loading .splash-bar { width: 240px; height: 4px; border-radius: 2px; background: rgba(31, 31, 31, 0.12); overflow: hidden; }
.nagi-loading .splash-bar > span { display: block; width: 40%; height: 100%; border-radius: 2px; background: #3F6290; will-change: transform;
  animation: splash-slide 1.3s ease-in-out infinite; }
.nagi-loading .splash-note { font-size: 14px; line-height: 1.4; color: #5f5f5f; }
@keyframes nagi-breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.85; } }

.avalonia-splash.splash-close {
    transition: opacity 200ms, display 200ms;
    display: none;
    opacity: 0;
}

/* The page a phone-sized device gets instead of the portal (main.js, isPhone): same brand gradient as the opening page. */
.phone-page { box-sizing: border-box; min-height: 100vh; padding: 40px 24px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; text-align: center; color: #ffffff; font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #3F6290 0%, #3F6290 100%); }
.phone-page .phone-logo { width: 64px; height: 64px; }
.phone-page h1 { margin: 6px 0 4px; font-size: 24px; font-weight: 600; line-height: 1.25; }
.phone-page p { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.92); }
/* The phone apps of this product: plain text links (owner rule: never store badges), 44 px tap targets, wrapping on a 360 px screen. */
.phone-page p.phone-stores { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; font-weight: 600; }
.phone-page p.phone-stores a { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 10px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.phone-page p.phone-stores a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* The shared look (owner 2026-10-26; the Construction reference, LOOK-REFERENCE.md section 3): the page behind the application is the warm page tint,
   the opening page is that tint with dark text, the accent bar and the app icon, and dark mode follows the browser. All styling stays in this file. */
html, body { background: #faf6f1; }
/* LOOK-REFERENCE section 4 (changed 2026-10-29): no big snake; only the small one at the top left. Colour snake on the light page. */
.avalonia-splash .splash-snake, .nagi-loading .splash-snake { position: absolute; top: 24px; left: 28px; height: 44px; width: auto; }
.avalonia-splash .splash-snake-dark, .nagi-loading .splash-snake-dark { display: none; }

/* The loading screen is always the light warm page, like the app (owner, 2026-10-29): no dark variant before the app has loaded. */
