.entry-loading-screen {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: var(--z-max, 2000);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 24px;
  /* Keep each token-purity exception on the same line as its literal fallback. */
  /* prettier-ignore */
  background: var(--color-header-bg, #1c261a); /* @design-system-exception(Cold-start loader renders before theme tokens load) */
  /* prettier-ignore */
  color: var(--color-white, #fff); /* @design-system-exception(Cold-start loader renders before theme tokens load) */
  /* Entry must not change glyph metrics when the app's web fonts arrive. */
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif;
  font-size: var(--text-body, 15px);
  font-weight: 400;
  line-height: var(--line-body, 1.6);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-align: center;
  overflow-y: auto;
}

.entry-loading-screen__content {
  align-self: center;
  justify-self: center;
  width: min(100%, 480px);
  padding-block: 16px;
}

.entry-loading-screen__identity {
  /* Intrinsic image dimensions are unknown on a cold request. Reserve the full
     allowed logo height rather than letting its arrival move the status. */
  height: max(180px, min(35dvh, 300px));
  display: grid;
  place-items: center;
}

.entry-loading-screen__business-logo {
  box-sizing: border-box;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(35dvh, 300px);
  object-fit: contain;
  padding: var(--space-5, 24px);
  border-radius: var(--radius-lg, 12px);
  /* prettier-ignore */
  background: color-mix(in srgb, var(--color-white, #fff) 90%, transparent); /* @design-system-exception(Cold-start loader renders before theme tokens load) */
}

.entry-loading-screen__product-logo {
  display: block;
  width: min(100%, 270px);
  height: auto;
}

.entry-loading-screen__business-name {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(var(--text-display), 8vw, 52.5px);
  font-weight: var(--weight-display);
  line-height: var(--line-display);
  overflow-wrap: anywhere;
}

.entry-loading-screen__status {
  margin: 16px 0 0;
  font-size: var(--text-body, 15px);
  line-height: var(--line-body, 1.6);
}

.entry-loading-screen__dots {
  display: inline-block;
  width: 1em;
  text-align: left;
}

.entry-loading-screen__dots > span {
  animation: entry-connecting-dot 1.5s ease-in-out infinite;
}

.entry-loading-screen__dots > span:nth-child(2) {
  animation-delay: 0.2s;
}

.entry-loading-screen__dots > span:nth-child(3) {
  animation-delay: 0.4s;
}

.entry-loading-screen__attribution {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-block: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  font-size: var(--text-caption, 12px);
  line-height: var(--line-caption, 1.4);
}

.entry-loading-screen__attribution img {
  width: min(40vw, 120px);
  height: auto;
}

/* Pending images retain their geometry, including during the HTML/Vue handoff. */
.entry-loading-screen[data-logo-state="pending"]
  .entry-loading-screen__business-logo,
.entry-loading-screen[data-entry-handoff="pending"] {
  visibility: hidden;
}

.entry-loading-screen__accessible-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes entry-connecting-dot {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-loading-screen__dots > span {
    animation: none;
  }
}
