html.launching,
html.launching body {
  background: #004d99;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

#app-splash.splash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100svh;
  box-sizing: border-box;
  z-index: 2147483647;
  display: block;
  overflow: hidden;
  background: #004d99;
  color: #ffeb00;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 250ms ease-out;
}

#app-splash .splash-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

#app-splash .splash-mark {
  display: grid;
  place-items: center;
  width: min(26vw, 120px);
  height: min(26vw, 120px);
  border: 12px solid #ffeb00;
  border-radius: 50%;
  box-sizing: border-box;
}

#app-splash .splash-mark span {
  display: block;
  width: min(7vw, 32px);
  height: min(7vw, 32px);
  border-radius: 50%;
  background: #ffeb00;
}

#app-splash .splash-name {
  margin: 0;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#app-splash.splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}

#app-splash.splash.is-removed {
  display: none;
}

/* Installed apps start under the status bar; centre in the whole screen. */
@media (display-mode: standalone), (display-mode: fullscreen) {
  #app-splash.splash {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
  }

  /* The startup images scale from the short side, also in landscape. */
  #app-splash .splash-inner {
    gap: 3vmin;
  }

  #app-splash .splash-mark {
    width: min(26vmin, 120px);
    height: min(26vmin, 120px);
    border-width: 3vmin;
  }

  #app-splash .splash-mark span {
    width: min(7vmin, 32px);
    height: min(7vmin, 32px);
  }

  #app-splash .splash-name {
    font-size: clamp(2rem, 9vmin, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  #app-splash.splash {
    transition: none;
  }
}
