html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: #f5f5f5;
}

#root {
  min-height: 100vh;
  min-height: 100dvh;
}

#startup-status {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem
    max(1.5rem, env(safe-area-inset-bottom));
  display: grid;
  place-items: end center;
  font: 15px/1.45 system-ui, -apple-system, sans-serif;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  background: #000 url("/loading-splash.jpg") center / cover no-repeat;
}

@media (min-width: 500px) and (min-height: 500px) and (orientation: portrait) {
  #startup-status {
    background-image: url("/loading-splash-ipad-portrait.jpg");
  }
}

@media (min-width: 500px) and (min-height: 500px) and (orientation: landscape) {
  #startup-status {
    background-image: url("/loading-splash-ipad-landscape.jpg");
  }
}

#startup-status strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

#startup-detail {
  margin: 0.35rem 0 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

#startup-status.startup-error {
  place-items: end center;
}

#startup-status.startup-error > div {
  max-width: 22rem;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
}

#startup-status.startup-error #startup-detail {
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-wrap;
}
