/* The start-up screen (the product owner's "Quiet Start", docs/STYLE.md "Loading"): shown from the
   first paint until the app is ready, then faded out by src/splash.ts. Its colours are the app's
   own (light, or dark with the device or the person's setting), so nothing flashes. A static file,
   not inline, so a strict Content-Security-Policy allows it. */
#splash { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: #f4f5f7; color: #14171c; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; transition: opacity .25s ease; }
#splash .splash-brand { display: flex; align-items: center; gap: 14px; }
#splash .splash-mark { width: 56px; height: 56px; }
#splash .splash-word { width: 151px; height: 44px; }
#splash .splash-line { margin: 0; color: #5d6573; }
#splash .splash-slow { margin: 0; color: #5d6573; font-size: 12px; opacity: 0; animation: splash-show 0s 15s forwards; }
#splash .splash-rail { position: absolute; left: 24px; right: 24px; bottom: 24px; height: 2px; overflow: hidden; background: #d8dce3; }
#splash .splash-rail::after { content: ""; position: absolute; top: 0; left: -28%; width: 28%; height: 100%; background: #14171c; animation: splash-rail 2.3s cubic-bezier(.46, 0, .2, 1) infinite; }
#splash .dot { fill: #f4f5f7; }
#splash .frame { stroke-dasharray: 100; animation: splash-frame 2.8s ease-in-out infinite; }
#splash .slash { stroke-dasharray: 47; animation: splash-slash 2.8s ease-in-out infinite; }
#splash .bar { animation: splash-bar 2.8s ease-in-out infinite; }
#splash .bar2 { animation-delay: .17s; } #splash .bar3 { animation-delay: .34s; }
#splash.splash-out { opacity: 0; pointer-events: none; }
@keyframes splash-rail { to { left: 100%; } }
@keyframes splash-frame { 0% { stroke-dashoffset: 100; opacity: .1; } 27%, 73% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 100; opacity: .1; } }
@keyframes splash-slash { 0%, 21% { stroke-dashoffset: 47; opacity: .2; } 43%, 73% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 47; opacity: .2; } }
@keyframes splash-bar { 0%, 18% { opacity: .15; } 33%, 73% { opacity: 1; } 92%, 100% { opacity: .15; } }
@keyframes splash-show { to { opacity: 1; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #splash { background: #0d1015; color: #e8ebf0; }
  :root:not([data-theme="light"]) #splash .splash-line, :root:not([data-theme="light"]) #splash .splash-slow { color: #9aa4b2; }
  :root:not([data-theme="light"]) #splash .splash-rail { background: #2c323c; }
  :root:not([data-theme="light"]) #splash .splash-rail::after { background: #e8ebf0; }
  :root:not([data-theme="light"]) #splash .dot { fill: #0d1015; }
}
:root[data-theme="dark"] #splash { background: #0d1015; color: #e8ebf0; }
:root[data-theme="dark"] #splash .splash-line, :root[data-theme="dark"] #splash .splash-slow { color: #9aa4b2; }
:root[data-theme="dark"] #splash .splash-rail { background: #2c323c; }
:root[data-theme="dark"] #splash .splash-rail::after { background: #e8ebf0; }
:root[data-theme="dark"] #splash .dot { fill: #0d1015; }
@media (max-width: 550px) {
  #splash .splash-brand { gap: 10px; } #splash .splash-mark { width: 42px; height: 42px; } #splash .splash-word { width: 113px; height: 33px; }
  #splash .splash-rail { left: 14px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #splash *, #splash *::after { animation: none !important; }
  #splash .frame, #splash .slash { stroke-dashoffset: 0; }
  #splash .splash-slow { opacity: 1; display: none; }
}
