/* Screen pixels come from the app. Only the physical phone and browser chrome are staged here. */
.real-app-phone {
  --real-screen-height: 847.363636px; /* 390 × 956 / 440: never stretch the captured screen. */
  height: calc(871.363636px * var(--phone-scale, 0.8));
}
.real-app-phone .iphone {
  height: 871.363636px;
}
.real-app-phone .iphone-screen {
  height: var(--real-screen-height);
  background: #fff8ee;
}
.real-app-screen > .real-app-poster,
.real-app-screen > .real-app-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border: 0;
  border-radius: inherit;
}
.real-app-video {
  opacity: 0;
}
.real-app-screen.is-playing .real-app-video {
  opacity: 1;
}
.real-app-screen.is-poster .real-app-video {
  opacity: 0;
}
.intro-scene .real-public-profile {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 99px;
  padding: 0;
  background: #fff8ee;
  overflow: hidden;
  transition: none;
}
.real-public-frame {
  display: block;
  width: 440px;
  height: 776.615384px;
  border: 0;
  transform: scale(0.8863636364);
  transform-origin: top left;
  pointer-events: none;
  background: #fff8ee;
}
.ui-study .real-app-phone {
  height: calc(871.363636px * var(--study-scale));
}
.ui-study .study-scene {
  min-height: calc(871.363636px * var(--study-scale) + 80px);
}
.ui-study.app-design-preview .study-scene {
  min-height: calc(871.363636px * var(--study-scale) + 20px);
}
/* Keep the complete tilted device inside its column at tablet widths. */
@media (min-width: 701px) and (max-width: 1000px) {
  body:not(.ui-study) .intro-phone.real-app-phone {
    left: 50%;
    margin-left: calc(-207px * var(--phone-scale));
  }
}
@media (prefers-reduced-motion: reduce) {
  .real-app-screen .real-app-video {
    opacity: 0 !important;
  }
}
/* Simulator still exports omit the hardware cutout; the recordings include it. */
.real-app-screen::after {
  content: '';
  position: absolute;
  z-index: 2;
  width: 111.681818px;
  height: 31.909091px;
  left: 50%;
  top: 12.409091px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.real-app-screen.is-playing:not(.is-poster)::after {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .real-app-screen::after {
    opacity: 1 !important;
  }
}
/* Setup illustrations contain the production profile, never a miniature redraw. */
.start-profile-sheet.real-setup-profile {
  width: min(76%, 220px);
  height: 246px;
  top: 56px;
  padding: 0;
  overflow: hidden;
  background: #fff8ee;
  border: 1px solid #fff8ee;
}
.real-public-mini-frame {
  position: absolute;
  inset: 0 auto auto 0;
  width: 440px;
  height: 650px;
  border: 0;
  transform: scale(0.5);
  transform-origin: top left;
  background: #fff8ee;
  pointer-events: none;
}
.start-mini-phone.real-setup-phone {
  width: 158px;
  height: 334px;
  top: 42px;
  background: #fff8ee;
}
.real-setup-browser {
  position: absolute;
  inset: 27px 0 12px;
  overflow: hidden;
}
