/* First paint is covered by the tiny inline fallback in each photo page. */
#calls-boot {
  color-scheme: dark;
  overflow: auto;
  overscroll-behavior: contain;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: radial-gradient(ellipse at 50% 47%, #15243a 0, #0b1018 55%);
  opacity: 1;
  transition: opacity 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
#calls-boot .calls-boot-content { width: min(100%, 440px); margin: auto; text-align: center; }
#calls-boot .calls-boot-brand { position: relative; justify-content: center; color: #f1f6fc; isolation: isolate; }
#calls-boot .calls-boot-mark { flex: 0 0 auto; }
#calls-boot .calls-boot-word > span { display: block; }
#calls-boot[data-intro=true] .calls-boot-word > span { animation: calls-boot-letter 850ms cubic-bezier(.2,.7,.2,1) both; }
#calls-boot[data-intro=true] .calls-boot-word > span:nth-child(1) { --from: -12px; }
#calls-boot[data-intro=true] .calls-boot-word > span:nth-child(2) { --from: -7px; animation-delay: 35ms; }
#calls-boot[data-intro=true] .calls-boot-word > span:nth-child(3) { --from: -3px; animation-delay: 70ms; }
#calls-boot[data-intro=true] .calls-boot-word > span:nth-child(4) { --from: 3px; animation-delay: 105ms; }
#calls-boot[data-intro=true] .calls-boot-word > span:nth-child(5) { --from: 7px; animation-delay: 140ms; }
#calls-boot[data-intro=true] .calls-boot-word > span:nth-child(6) { --from: 12px; animation-delay: 175ms; }
#calls-boot[data-intro=true] .calls-boot-title { animation: calls-boot-title 800ms 120ms cubic-bezier(.2,.7,.2,1) both; }
#calls-boot[data-intro=true] .calls-boot-mark { animation: calls-boot-mark 1100ms cubic-bezier(.2,.7,.2,1) both; }
#calls-boot .calls-boot-track > span {
  display: block;
  width: 22px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #badbff 50%, transparent);
  transform: translateX(-22px);
  animation: calls-boot-line 1500ms cubic-bezier(.4,0,.3,1) infinite;
}
#calls-boot[data-state=wait] .calls-boot-brand { animation: calls-boot-breathe 3.5s ease-in-out infinite; }
#calls-boot .calls-boot-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
#calls-boot .calls-boot-actions[hidden], #calls-boot button[hidden] { display: none !important; }
#calls-boot button {
  appearance: none;
  min-height: 44px;
  max-width: 100%;
  padding: 11px 19px;
  border: 1px solid #b9d8ff45;
  border-radius: 22px;
  background: linear-gradient(150deg, #d4e7ff15, #9abefc05);
  box-shadow: inset 0 1px 0 #e2f0ff18, 0 6px 24px #0003;
  color: #eef5ff;
  font: 500 14px/1.5 system-ui, sans-serif;
  white-space: normal;
  cursor: pointer;
}
#calls-boot button:focus-visible { outline: 2px solid #b8d9ff; outline-offset: 4px; }
#calls-boot button[data-boot-retry] { background: #e5f1ff; color: #142236; border-color: transparent; box-shadow: 0 3px 24px #92bbf01a; }
#calls-boot[data-state=problem] .calls-boot-message {
  position: static;
  width: auto;
  height: auto;
  max-width: 34ch;
  margin: 28px auto 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  color: #c4d0de;
  font-size: 14px;
  line-height: 1.65;
}
#calls-boot[data-state=problem] .calls-boot-track > span { animation: none; transform: translateX(13px); opacity: .45; }
#calls-boot[data-state=reveal] { opacity: 0; pointer-events: none; }
/* Explicit, document-only escape for a failed photograph. No saved preference. */
html.calls-boot-no-photo body.calls-scene-page { background-image: none !important; }
html.calls-boot-no-photo :is(.calls-page-backdrop, .studio-backdrop, .room-backdrop) { opacity: 0 !important; }
@keyframes calls-boot-letter {
  from { opacity: 0; transform: translate(var(--from), 4px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes calls-boot-title {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes calls-boot-mark {
  from { opacity: 0; transform: scale(.8) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}
@keyframes calls-boot-line { to { transform: translateX(48px); } }
@keyframes calls-boot-breathe { 0%,100% { opacity: 1; } 50% { opacity: .76; } }
@media (prefers-reduced-motion: reduce) {
  #calls-boot, #calls-boot * { animation: none !important; transition: none !important; }
  #calls-boot .calls-boot-track > span { transform: translateX(13px); }
}
@media (prefers-reduced-transparency: reduce) {
  #calls-boot { background: #0b1018; }
  #calls-boot button { background: #1d2a3d; }
  #calls-boot button[data-boot-retry] { background: #e5f1ff; }
}
