:root {
  color-scheme: light dark;
  --splash-bg: #e7ece6;
  --splash-surface: #f1f3ee;
  --splash-text: #26312b;
  --splash-muted: #647168;
  --splash-line: #a7b3a9;
  --splash-accent: #26483b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --splash-bg: #101512;
    --splash-surface: #171d19;
    --splash-text: #f6f2e9;
    --splash-muted: #b6beb7;
    --splash-line: #59655e;
    --splash-accent: #9eae98;
  }
}

.app-startup-splash {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--bg, var(--splash-bg));
  color: var(--text, var(--splash-text));
  font-family: Manrope, Inter, system-ui, sans-serif;
}

.startup-mobile-content {
  display: none;
}

.startup-desktop-content {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.startup-desktop-content img {
  width: 72px;
}

.startup-desktop-content p {
  margin: 0;
  color: var(--text, var(--splash-text));
  font-size: 1rem;
}

.app-startup-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.app-startup-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line, var(--splash-line));
  border-radius: 14px;
  background: var(--surface, var(--splash-surface));
}

.app-startup-mark img {
  width: 32px;
  height: 32px;
}

.app-startup-wordmark {
  font-size: 1.42rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.app-startup-progress {
  width: min(220px, 62vw);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line, var(--splash-line)) 48%, transparent);
}

.app-startup-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--sage, var(--splash-accent));
  animation: terrakey-startup-progress 1.15s ease-in-out infinite;
}

.app-startup-splash p {
  margin: 0;
  color: var(--muted, var(--splash-muted));
  font-size: 0.78rem;
}

@keyframes terrakey-startup-progress {
  from { transform: translateX(-115%); }
  to { transform: translateX(260%); }
}

@media (prefers-reduced-motion: reduce) {
  .app-startup-progress span {
    width: 100%;
    animation: none;
    opacity: 0.7;
  }
}

@media (max-width: 700px) {
  .startup-mobile-content {
    display: grid;
    justify-items: center;
    gap: 18px;
  }

  .startup-desktop-content {
    display: none;
  }
}
