/* Independent of the app bundle: readable even when its JS or CSS cannot load. */
body.juzzle-starting {
  margin: 0;
  background: #fbfcfe;
  color: #323b4a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Public copy is already readable before React loads, including without JS. */
.seo-public {
  box-sizing: border-box;
  width: min(100%, 960px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) 24px;
  font:
    16px/1.75 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  overflow-wrap: anywhere;
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 24px;
  font-weight: 750;
  text-decoration: none;
}

.seo-public h1 {
  margin: 32px 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.seo-public h2 {
  margin: 32px 0 12px;
  font-size: 21px;
}

.seo-public p,
.seo-public li {
  max-width: 76ch;
}

.seo-public li + li {
  margin-top: 8px;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
}

.seo-links a {
  color: #406acb;
  text-underline-offset: 4px;
}

.initial-public-retry {
  width: min(100%, 960px);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 24px 40px;
}

html[data-startup-returning='true'] .seo-public {
  display: none;
}

html:not([data-startup-returning='true']) body.juzzle-starting:has(.seo-public) .startup {
  width: min(100%, 960px);
  min-height: auto;
  margin: 0 auto;
  padding: 0 24px 32px;
}

html:not([data-startup-returning='true']) body.juzzle-starting:has(.seo-public) .startup-card {
  width: 100%;
  padding: 20px;
}

html:not([data-startup-returning='true']) body.juzzle-starting:has(.seo-public) .startup-brand {
  display: none;
}

.startup {
  --startup-muted: #657084;
  --startup-surface: #fff;
  --startup-line: #e4e8ef;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px 16px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}

.startup-card {
  box-sizing: border-box;
  width: min(100%, 460px);
  padding: 32px 24px;
  border: 1px solid var(--startup-line);
  border-radius: 24px;
  background: var(--startup-surface);
}

.startup-brand {
  margin: 0 0 24px;
  color: #406acb;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.startup h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.45;
  word-break: keep-all;
}

.startup-description {
  margin: 12px 0 24px;
  color: var(--startup-muted);
  font-size: 15px;
}

.startup-retry {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 14px;
  color: #fff;
  background: #406acb;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  touch-action: manipulation;
}

.startup-retry:hover,
.startup-retry:active {
  background: #365cc0;
}

.startup-retry:focus-visible {
  outline: 3px solid #6795f7;
  outline-offset: 4px;
}

.startup-note {
  margin: 16px 0 0;
  color: var(--startup-muted);
  font-size: 12px;
}

.startup-public {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--startup-line);
  color: var(--startup-muted);
  font-size: 13px;
}

.startup-public p {
  margin: 0 0 10px;
}

.startup-public p:last-child {
  margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']) body.juzzle-starting {
    color: #e8edf6;
    background: #151b24;
  }

  html:not([data-theme='light']) .startup {
    --startup-muted: #aab6c8;
    --startup-surface: #1d2531;
    --startup-line: #344052;
  }
}

html[data-theme='dark'] body.juzzle-starting {
  color: #e8edf6;
  background: #151b24;
}

html[data-theme='dark'] .startup {
  --startup-muted: #aab6c8;
  --startup-surface: #1d2531;
  --startup-line: #344052;
}
