/* Launch splash for the installed app (cold start only; see splash.js and src/lib/splash.ts).
   Plain CSS so it paints before the app's JavaScript loads. Bone, like Android's own launch
   screen (manifest background_color) and the app behind it, so nothing flashes; it doesn't
   animate in, it only fades away. */
#splash { display: none; }
@media (display-mode: standalone), (display-mode: fullscreen) {
  #splash {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    background: #ede5d5; color: #242321;
    padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom);
    transition: opacity .5s cubic-bezier(.4, 0, .2, 1), visibility .5s;
  }
  html.no-splash #splash { display: none; }
}
#splash img { width: 168px; height: auto; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
#splash p { margin: 0; font: italic 600 17px/1.3 Georgia, "Times New Roman", serif; color: #55544f; }
#splash i { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: #dfff35; }
#splash.gone { opacity: 0; visibility: hidden; }
#splash.gone img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  #splash, #splash img { transition: none; }
}
