/* Each pendant shares its character's 1024 × 1536 source coordinate system. */
.hero-content { pointer-events: none; }
.hero-content > .copy, .hero-content > .hero-preview { pointer-events: auto; }
.pendant-rig {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 2 / 3;
  visibility: hidden;
  pointer-events: none;
}
.pendant-rig.active { visibility: visible; }
.pendant-handle {
  position: absolute;
  left: var(--pendant-x);
  top: var(--pendant-y);
  width: var(--pendant-width);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  line-height: 0;
  transform: translateX(-50%) rotate(var(--pendant-rest));
  transform-origin: 50% 0;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
/* A comfortable touch target without enlarging the actual illustration. */
.pendant-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(44px, calc(100% + 16px));
  height: max(44px, calc(100% + 12px));
  transform: translate(-50%, -50%);
}
.pendant-handle img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(1px 2px 1px #0006);
  -webkit-user-drag: none;
}
.pendant-handle:focus-visible { outline: 1px solid var(--accent); outline-offset: 7px; }
.pendant-handle.is-held, .is-pendant-dragging, .is-pendant-dragging * { cursor: grabbing !important; }
.pendant-hint {
  position: absolute;
  left: 50%;
  top: calc(100% + 15px);
  transform: translateX(-50%);
  padding: 8px 11px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  font: 10px/1.2 var(--ui);
  letter-spacing: .05em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.pendant-handle:focus-visible .pendant-hint { opacity: 1; }
@media (hover: hover) {
  .pendant-handle:hover:not(.is-held) .pendant-hint { opacity: 1; }
}
.is-changing .pendant-handle { pointer-events: none; }
.is-changing .pendant-hint, .is-held .pendant-hint { opacity: 0 !important; }
@media (prefers-reduced-motion: reduce) { .pendant-hint { transition: none; } }
