#pwa-splash {
  --pwa-splash-bg: #f2fbfb;
  --pwa-splash-title: #2a625c;
  --pwa-splash-spinner-track: rgba(64, 168, 156, 0.18);
  --pwa-splash-spinner-head: #40a89c;

  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px))
    max(24px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  background:
    radial-gradient(ellipse 110% 80% at 12% -6%, rgba(64, 168, 156, 0.24), transparent 54%),
    radial-gradient(ellipse 88% 68% at 92% 10%, rgba(10, 209, 201, 0.16), transparent 48%),
    linear-gradient(158deg, #eaf6f4 0%, #f0fafa 32%, #f5fcfb 58%, var(--pwa-splash-bg) 100%);
  color: var(--pwa-splash-title);
  font-family:
    'Avenir Next Cyr',
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

[data-mantine-color-scheme='dark'] #pwa-splash {
  --pwa-splash-bg: #0f1413;
  --pwa-splash-title: #8fd9d0;
  --pwa-splash-spinner-track: rgba(64, 168, 156, 0.14);
  --pwa-splash-spinner-head: #6dd9cc;

  background:
    radial-gradient(ellipse 110% 80% at 12% -6%, rgba(64, 168, 156, 0.08), transparent 58%),
    radial-gradient(ellipse 88% 68% at 92% 10%, rgba(64, 168, 156, 0.05), transparent 52%),
    linear-gradient(168deg, #0f1413 0%, #111816 42%, var(--pwa-splash-bg) 100%);
}

#pwa-splash.pwa-splash--leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pwa-splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.pwa-splash__logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(64, 168, 156, 0.22);
}

[data-mantine-color-scheme='dark'] .pwa-splash__logo {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.pwa-splash__title {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pwa-splash-title);
}

.pwa-splash__subtitle {
  margin: -8px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: color-mix(in srgb, var(--pwa-splash-title) 72%, transparent);
}

.pwa-splash__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--pwa-splash-spinner-track);
  border-top-color: var(--pwa-splash-spinner-head);
  border-radius: 50%;
  animation: pwa-splash-spin 0.85s linear infinite;
}

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

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

  .pwa-splash__spinner {
    animation: none;
    border-top-color: var(--pwa-splash-spinner-head);
    opacity: 0.85;
  }
}
