.stage {
  width: 100%;
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.65;
  --crop-y: .85;
  min-height: 350px;
  border: 1px solid #a49776;
  border-radius: .9rem;
  overflow: hidden;
  background: #5b6350;
  touch-action: pan-y;
  cursor: crosshair;
}
.stage:focus-visible { outline-offset: 2px; }
.stage picture, .stage picture img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.stage picture img { object-fit: cover; object-position: 50% calc(var(--crop-y) * 100%); }
.visitor {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 83%;
  width: clamp(80px, 12vw, 156px);
  aspect-ratio: .73;
  pointer-events: none;
  transform: translate(-50%, -100%) scale(var(--depth, .88));
  transform-origin: 50% 100%;
}
.visitor::after {
  content: '';
  position: absolute;
  inset: auto 29% -1.7% 29%;
  height: 3.4%;
  z-index: -1;
  border-radius: 50%;
  background: #06121a82;
  filter: blur(2px);
}
#visitor-sprite {
  height: 100%;
  width: 100%;
  background: url('/assets/visitor.webp') 50% 0 / 300% 200% no-repeat;
  transform: translateY(1.4%) scaleX(var(--face, 1));
}
.destination {
  position: absolute;
  z-index: 1;
  width: 35px;
  height: 11px;
  border: 2px solid #ffdb9d;
  border-radius: 50%;
  box-shadow: 0 0 8px #f2c88190;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
@media (max-width: 640px) {
  .stage { aspect-ratio: 1.02; min-height: 340px; }
}
.scene-points { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.scene-point {
  pointer-events: auto;
  position: absolute;
  transform: translate(-50%, calc(-100% - 4px));
  width: 44px;
  height: 44px;
  padding: 0;
  border-color: #d5ab79;
  border-radius: 50%;
  background: #0c2836e8;
  color: #f8e2c3;
  font-weight: 740;
}
.scene-point[aria-pressed="true"] { background: #fbd198; color: #112733; }
@media (max-width: 400px) {
  .scene-point { border: 0; background: transparent; }
  .scene-point::before {
    content: '';
    z-index: -1;
    position: absolute;
    inset: 7px;
    border: 1px solid #d5ab79;
    border-radius: 50%;
    background: #0c2836e8;
  }
  .scene-point[aria-pressed="true"] { background: transparent; }
  .scene-point[aria-pressed="true"]::before { background: #fbd198; }
}
@media (min-width: 641px) {
  .stage[data-place="market"] { --crop-y: .5; }
}

.stage[aria-busy="true"] :is(.visitor, .scene-points, .destination) {
  visibility: hidden;
}
