/* One continuous display object. Anchors retain layout and no-JS fallbacks. */
html[data-shared-phone="ready"] .phone-anchor {
  visibility: hidden;
}
.shared-phone {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 8;
  width: 300px;
  aspect-ratio: 411 / 869;
  margin: 0;
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform;
  isolation: isolate;
  opacity: 0;
}
.shared-phone[hidden] {
  display: none;
}
.shared-phone-flight {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 52%;
}
.shared-phone-shell {
  position: absolute;
  inset: 0;
  border-radius: 11% / 5.2%;
  border: 1px solid #9cb1a7;
  background: linear-gradient(104deg, #6c7f75, #16241c 5%, #06110a 91%, #87998f);
  box-shadow:
    0 25px 58px #0009,
    inset 1px 0 0 #e8fff37a,
    inset -2px 0 0 #001008;
  transform-style: preserve-3d;
  transform-origin: 50% 52%;
}
.shared-phone-shell::before {
  position: absolute;
  content: "";
  inset: 0;
  border: 1px solid #768d80;
  border-radius: inherit;
  background: linear-gradient(100deg, #18291e, #556c5c 9%, #102317 90%, #718a7b);
  transform: translateZ(-14px);
  box-shadow: 0 0 0 1px #001408;
  backface-visibility: hidden;
}
.shared-phone-side {
  position: absolute;
  top: 5.2%;
  height: 89.6%;
  width: 14px;
  background: linear-gradient(90deg, #22392c, #a1b2a8 20%, #334c3e 65%, #08180e);
  border: 1px solid #749281;
  border-radius: 2px;
  transform-origin: left center;
  transform: rotateY(90deg);
}
.shared-phone-side-left {
  left: 0;
}
.shared-phone-side-right {
  left: 100%;
}
.shared-phone-display {
  position: absolute;
  top: 1.05%;
  right: 2.2%;
  bottom: 1.05%;
  left: 2.2%;
  overflow: hidden;
  background: #06100b;
  border-radius: 9.5% / 4.5%;
  transform: translateZ(2px);
  backface-visibility: hidden;
}
.shared-phone-display img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shared-phone-display img:not(:first-child) {
  transform: translate3d(0, 100%, 0);
}
.shared-phone-glass {
  position: absolute;
  top: 1%;
  right: 2.1%;
  bottom: 1%;
  left: 2.1%;
  border: 1px solid #d3f7e332;
  border-radius: 9.5% / 4.5%;
  background: radial-gradient(ellipse at 50% 0%, #f0fff810, transparent 62%);
  transform: translateZ(3px);
  backface-visibility: hidden;
}
@media (max-width: 640px) {
  .shared-phone-shell {
    box-shadow:
      0 19px 35px #0009,
      inset 1px 0 0 #e8fff34d,
      inset -1px 0 0 #001008;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shared-phone {
    will-change: auto;
  }
}
