#max-startup-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  background:
    radial-gradient(ellipse at 50% 52%, rgba(59, 140, 240, .07), transparent 55%),
    #fff;
  opacity: 1;
  pointer-events: auto;
}

#max-startup-splash img {
  display: block;
  width: min(240px, 72vw);
  height: auto;
  transform-origin: center;
  animation: max-startup-zoom 920ms cubic-bezier(.2, .72, .28, 1) both;
}

#max-startup-splash.max-startup-splash--leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease-out, visibility 180ms;
}

@keyframes max-startup-zoom {
  0% { transform: scale(.72); opacity: .9; }
  43% { transform: scale(.88); opacity: 1; }
  70% { transform: scale(1.045); }
  86%, 100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #max-startup-splash img {
    animation: none;
  }

  #max-startup-splash.max-startup-splash--leaving {
    transition: none;
  }
}
