.panorama-pocket-phone {
  position: fixed;
  z-index: 40;
  left: max(8px, env(safe-area-inset-left));
  bottom: clamp(-22px, -1.8vw, -8px);
  width: clamp(126px, 14.5vw, 210px);
  aspect-ratio: 738 / 1044;
  overflow: visible;
  filter: drop-shadow(4px 8px 8px rgba(0, 0, 0, .34));
  transform: rotate(-1.2deg);
  transform-origin: 35% 100%;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.panorama-pocket-phone__frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.panorama-pocket-phone__screen {
  position: absolute;
  z-index: 2;
  left: 13.45%;
  top: 11.88%;
  width: 75.40%;
  height: 69.37%;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #1d2b34;
  background: #e7edf0;
  box-shadow: none;
  clip-path: polygon(-0.8% 0.9%, 69% 0, 100% 92%, 27% 100%);
  opacity: 0;
  filter: brightness(.68);
  transform: scale(.985);
  transform-origin: 50% 50%;
  transition: opacity 1s ease, filter 1s ease, transform 1s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.panorama-pocket-phone__screen[hidden] { display: none; }
.panorama-pocket-phone__screen { overflow: visible; }
.panorama-pocket-phone__screen.is-on {
  opacity: 1;
  filter: brightness(1);
  transform: scale(1);
}

.panorama-pocket-phone__surface {
  position: absolute;
  inset: 0;
  display: block;
  overflow: visible;
  transform-origin: 0 0;
  will-change: transform;
}

.panorama-pocket-phone__header {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: 22%;
  padding: 7% 5% 2% 14%;
  background: linear-gradient(#fff, #dce8ee);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
  text-align: left;
}

.panorama-pocket-phone__logo {
  display: block;
  color: #526d86;
  font: 400 clamp(5px, .5vw, 8px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.08em;
  white-space: nowrap;
}
.panorama-pocket-phone__logo span:nth-child(1) { color: #1b54b3; }
.panorama-pocket-phone__logo span:nth-child(2) { color: #c7352a; }
.panorama-pocket-phone__logo span:nth-child(3) { color: #d9a400; }
.panorama-pocket-phone__logo span:nth-child(4) { color: #1b54b3; }
.panorama-pocket-phone__logo span:nth-child(5) { color: #269044; }
.panorama-pocket-phone__logo span:nth-child(6) { color: #c7352a; }
.panorama-pocket-phone__logo small {
  margin-left: .32em;
  color: #59636b;
  font: 400 .72em/1 Arial, sans-serif;
  letter-spacing: 0;
}
.panorama-pocket-phone__search {
  display: block;
  margin-top: 4%;
  padding: 2% 4%;
  color: #8a949b;
  border: 1px solid #a9b4ba;
  background: #fff;
  font: normal clamp(4px, .4vw, 6px)/1 Arial, sans-serif;
}

.panorama-pocket-phone__map {
  container-type: size;
  position: absolute;
  inset: 22% 0 0;
  overflow: hidden;
  background: #e9e4d7;
}
.panorama-pocket-phone__map .sancheng-mini-world {
  width: max(100%, 125cqh);
  height: max(100%, 80cqw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.panorama-pocket-phone__map > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.03);
  pointer-events: none;
}
.panorama-pocket-phone__label {
  position: absolute;
  z-index: 2;
  padding: 1px 2px;
  color: #65635e;
  background: rgba(255, 255, 255, .76);
  font: normal clamp(3px, .3vw, 5px)/1 Arial, sans-serif;
}
.panorama-pocket-phone__label--dongan { left: 26%; top: 24%; }
.panorama-pocket-phone__label--nanrong { left: 54%; top: 56%; }
.panorama-pocket-phone__pin {
  position: absolute;
  z-index: 3;
  width: 8%;
  aspect-ratio: 1;
  border: 1px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #cf4031;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  transform: translate(-50%, -100%) rotate(-45deg);
}
.panorama-pocket-phone__pin--dongan { left: 13%; top: 30%; }
.panorama-pocket-phone__pin--riverside { left: 58%; top: 79%; }
.panorama-pocket-phone__zoom {
  position: absolute;
  z-index: 3;
  left: 9%;
  top: 15%;
  padding: 2% 4%;
  color: #555;
  border: 1px solid #888;
  background: rgba(255, 255, 255, .92);
  font: normal clamp(5px, .5vw, 8px)/1.25 Arial, sans-serif;
}

.panorama-pocket-phone__power {
  position: absolute;
  z-index: 4;
  left: 57.6%;
  top: 80.2%;
  width: 13.2%;
  height: 10.4%;
  padding: 0;
  border: 0;
  border-radius: 28%;
  outline: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.panorama-pocket-phone__power:hover,
.panorama-pocket-phone__power:focus,
.panorama-pocket-phone__power:focus-visible {
  outline: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 640px) {
  .panorama-pocket-phone {
    left: max(4px, env(safe-area-inset-left));
    bottom: -10px;
    width: clamp(116px, 31vw, 145px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .panorama-pocket-phone__screen { transition: none; }
}
