/* NOBCode motion v1 — boot splash + <nob-motion> element. Colours from the logo palette. */
#nob-splash{
  position:fixed;inset:0;z-index:2147483000;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;
  background:#140a1b;color:#c9c0d3;
  font:500 14px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.01em;
  opacity:0;
  /* without the script (blocked or failed): fade in, then get out of the way after 4 s */
  animation:nob-splash-in .2s ease-out .25s forwards,nob-splash-gone .3s ease 4s forwards;
}
#nob-splash.nob-js{animation:nob-splash-in .2s ease-out .25s forwards}
#nob-splash.nob-now{animation:none;opacity:1}
#nob-splash.nob-out{opacity:0!important;pointer-events:none;transition:opacity .3s ease}
#nob-splash img{display:block;width:min(260px,52vw);height:auto}
#nob-splash img.nob-splash-loader{width:min(170px,40vw)}
#nob-splash .nob-splash-text{min-height:1.4em}
@keyframes nob-splash-in{to{opacity:1}}
@keyframes nob-splash-gone{to{opacity:0;visibility:hidden}}

/* light: system setting, unless the page says it is dark */
@media (prefers-color-scheme:light){
  html:not([data-theme=dark]):not(.dark) #nob-splash{background:#ffffff;color:#5b4f66}
}
html[data-theme=light] #nob-splash,html.light #nob-splash{background:#ffffff;color:#5b4f66}
html[data-theme=dark] #nob-splash,html.dark #nob-splash{background:#140a1b;color:#c9c0d3}

@media (prefers-reduced-motion:reduce){
  #nob-splash{opacity:1;animation:nob-splash-gone 0s 4s forwards}
  #nob-splash.nob-out{transition:none}
  #nob-splash.nob-js{animation:none}
}

nob-motion{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;line-height:0}
nob-motion img{display:block;max-width:100%;height:auto}
