/* Animated splash (backlog 33). public/splash.js adds html.splash only in the installed app on a cold
   launch. scripts/build-splash.mjs renders the iOS launch images from this file and the markup in
   index.html, so both draw the same frame. Colors: B2-R Paper and ink; dark from styles/dark.css. */
#splash { display: none; }
html.splash, html.splash body { background: #F4ECDD; }
html.splash-dark, html.splash-dark body { background: #141814; }
html.splash #splash {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  background: #F4ECDD;
  color: #253027;
  --splash-focus: #9B6B3E;
}
html.splash-dark #splash { background: #141814; color: #ECE4D4; --splash-focus: #C29462; }
.splash-mark { position: relative; transform: translateY(calc(-1 * var(--splash-shift, 0px))); }
.splash-mark svg { display: block; width: 84px; height: auto; overflow: visible; fill: currentColor; }
.splash-failure {
  position: absolute;
  top: calc(100% + 28px);
  left: 50%;
  width: 280px;
  margin-left: -140px;
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  font: 400 15px/1.45 Inter, system-ui, -apple-system, sans-serif;
}
.splash-failure[hidden] { display: none; }
.splash-failure p { margin: 0; }
.splash-failure button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: 500 15px Inter, system-ui, -apple-system, sans-serif;
  cursor: pointer;
}
.splash-failure button:focus-visible { outline: 2px solid var(--splash-focus); outline-offset: 2px; }
