:root {
  color-scheme: light;
  background: #0f172a;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #f8fafc;
}

.pwa-splash {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding:
    calc(24px + env(safe-area-inset-top))
    calc(24px + env(safe-area-inset-right))
    calc(24px + env(safe-area-inset-bottom))
    calc(24px + env(safe-area-inset-left));
  box-sizing: border-box;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 38%, rgb(37 99 235 / 24%), transparent 34%),
    linear-gradient(155deg, #111c34 0%, #0f172a 58%, #081021 100%);
  opacity: 1;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.pwa-splash--hidden {
  visibility: hidden;
  opacity: 0;
}

.pwa-splash__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 360px);
  text-align: center;
}

.pwa-splash__icon {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  box-shadow: 0 22px 60px rgb(0 0 0 / 34%);
}

.pwa-splash__brand {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.pwa-splash__subtitle {
  margin-top: 8px;
  color: rgb(255 255 255 / 68%);
  font-size: 14px;
}

.pwa-splash__loader {
  width: 28px;
  height: 28px;
  margin-top: 34px;
  border: 3px solid rgb(255 255 255 / 20%);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: pwa-spin 800ms linear infinite;
}

.pwa-splash__status {
  min-height: 18px;
  margin-top: 14px;
  color: rgb(255 255 255 / 58%);
  font-size: 12px;
}

.pwa-noscript {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  color: #ffffff;
  background: #0f172a;
  text-align: center;
}

@keyframes pwa-spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .pwa-splash__loader {
    animation-duration: 1.8s;
  }
}
