/* Без белой вспышки и рывка (packages/ui/src/reveal.ts): фон по теме — сразу, до скриптов;
   точки — если загрузка дольше трети секунды; приложение проявляется плавно. Файлом, а не
   встроенным <style>: CSP страниц (architecture.md §14). */
html { background: #f2f5f9; color-scheme: light; }
html[data-theme="dark"] { background: #0f1115; color-scheme: dark; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] { background: #0f1115; color-scheme: dark; } }
#splash { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: inherit; transition: opacity .35s ease; }
#splash.out { opacity: 0; pointer-events: none; }
#splash div { display: flex; gap: 9px; opacity: 0; animation: splash-in .3s ease .35s forwards; }
#splash i { width: 10px; height: 10px; border-radius: 50%; background: #7c7ff0; animation: splash-dot 1.2s ease-in-out infinite; }
#splash i:nth-child(2) { animation-delay: .15s; }
#splash i:nth-child(3) { animation-delay: .3s; }
#root { opacity: 0; transition: opacity .4s ease; }
html.ready #root { opacity: 1; }
@keyframes splash-in { to { opacity: 1; } }
@keyframes splash-dot { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { #splash, #root { transition: none; } #splash i { animation: none; } }
