/* public/bootLoader.css — the loading screen (T-1007, bootLoader.js). Covers the page until it is ready, then fades out. Tokens only. */
#boot-loader { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-family, sans-serif); background: var(--bg-page, #050505); opacity: 1; transition: opacity 0.85s ease-in-out; animation: boot-gone 0.5s ease 6s forwards; }
#boot-loader.boot-loader-done { opacity: 0; pointer-events: none; transition: opacity 0.6s ease-in-out 0.9s; }   /* the console fades in AFTER the zoom */
#boot-loader.boot-loader-done .boot-loader-label { opacity: 0; transition: opacity 0.2s; }
.boot-loader-canvas { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% calc(50% - 16px); transition: transform 1.5s cubic-bezier(0.6, 0, 0.85, 0.35); }   /* slow start, then it rushes to fill the screen */
.boot-loader-label { position: relative; margin: 150px 0 0; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text-muted, #9ca3af); }
/* ⛔ a dead script can never leave the console covered: the screen removes itself at 6 s (sign-in mode cancels this - it waits for a person) */
@keyframes boot-gone { to { opacity: 0; visibility: hidden; } }
/* no page scrollbar while the pill screen is up: the page draws behind it and is taller than the window, so a silver default scrollbar showed at
   the right edge (the owner, 2026-11-23). Not in sign-in mode. */
html:has(> #boot-loader:not(.boot-loader-ambient)) { overflow: hidden; }   /* until the screen is REMOVED, fade included */
#boot-loader.boot-loader-ambient { animation: none; }
/* sign-in mode: the pill sits BEHIND the sign-in box (9999), the box goes glassy so the spinning pill shows through it */
html.boot-ambient #boot-loader { z-index: 9998; pointer-events: none; }
#boot-loader.boot-loader-ambient .boot-loader-label { display: none; }
html.boot-ambient #auth-overlay { background-color: transparent; backdrop-filter: none; }
html.boot-ambient #auth-overlay .auth-card { background-color: color-mix(in srgb, var(--bg-card) 62%, transparent); backdrop-filter: blur(2px); }
@media (prefers-reduced-motion: reduce) { #boot-loader, .boot-loader-canvas { transition: none; } }
/* PAGE FADES (the owner, 2026-11-23: "a fadeout fadein between clicking pages … not a fan of abrupt changes"): the page you switch TO
   fades in. A fade-OUT would have to delay every switch, and code reads the new page at once - so the new page dissolves in instead. */
@media (prefers-reduced-motion: no-preference) {
  .tab-view.active { animation: page-in 0.28s ease-out; }
}
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
