/*
 * The installed app's launch screen. index.html links this file under
 * `(display-mode: standalone) and (max-width: 767.98px)`; anywhere else #kc-launch stays an empty
 * div. It carries on the splash Android draws from the manifest (background_color and the icon)
 * and the startup image iOS shows, until the first screen has rendered; core/pwa/launch-screen.ts
 * then fades it out over the light app. Unhashed in public/ and loaded as a stylesheet, not inline,
 * so a CSP without 'unsafe-inline' does not block it.
 * WHY no `hidden` attribute to start from: Tailwind's preflight hides [hidden] with !important.
 */
#kc-launch {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: #0e1014 url('/assets/icons/icon-512.png') 50% 50% / 128px 128px no-repeat;
  transition: opacity 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* A reload of the page is not a launch from the icon: launch-screen-reload.js marks it before paint. */
html[data-kc-reload] #kc-launch {
  display: none;
}

#kc-launch.kc-launch--leaving {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #kc-launch {
    transition-duration: 1ms;
  }
}
