.app-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: min(100%, 430px);
  height: 100dvh;
  margin: auto;
  overflow: hidden;
  background: #fcf4ec;
  opacity: 1;
  transition: opacity .3s ease;
}
.app-splash-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-splash-brand {
  position: absolute;
  top: max(11.3%, calc(env(safe-area-inset-top) + 18px));
  left: 50%;
  width: 30.2%;
  aspect-ratio: 156 / 69;
  overflow: hidden;
  transform: translateX(-50%);
  mix-blend-mode: multiply;
}

/* Crop the margin around the supplied screenshot of the wordmark. */
.app-splash-brand img {
  position: absolute;
  top: calc(-100% * 44 / 69);
  left: calc(-100% * 34 / 156);
  display: block;
  width: calc(100% * 241 / 156);
  max-width: none;
  height: auto;
}

.app-splash.is-leaving { opacity: 0; pointer-events: none; }
@media (min-width:600px) {
  .app-splash { height: min(920px, 100dvh); border-radius: 20px; }
}
@media (max-height: 660px) {
  .app-splash-art { object-fit: contain; }
  .app-splash-brand { width: min(30.2%, 18dvh); }
}
@media (prefers-reduced-motion:reduce) {
  .app-splash { transition: none; }
}
