.detail-page > .rapture-hands {
  width: min(calc(100% - 2 * var(--detail-gutter)), 52rem);
  margin-block: clamp(1.25rem, 2.4vw, 2rem) 0;
}

.rapture-hands .project-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  scroll-margin-block-start: 5rem;
}

.rapture-hands figcaption {
  width: min(100%, var(--detail-reading));
  margin-inline: auto;
  text-wrap: pretty;
}

.rapture-hands figcaption span:not([hidden]) {
  display: inline-block;
  color: var(--detail-accent);
  font-weight: 600;
}

.rapture-hand {
  position: absolute;
  inset-inline-start: var(--hand-x);
  inset-block-start: var(--hand-y);
  width: 26%;
  height: 38%;
  min-width: 44px;
  min-height: 44px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff8e8;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.rapture-hand[data-hand="yellow"] { --hand-x: 23%; --hand-y: 55%; }
.rapture-hand[data-hand="red"] { --hand-x: 70%; --hand-y: 75%; }

.rapture-hand::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: #1b10178c;
  box-shadow: 0 0 0 2px #180c15a8;
}

.rapture-hand:active::after,
.rapture-hand:focus-visible::after {
  background: currentColor;
}

@media (hover: hover) {
  .rapture-hand:hover::after { background: currentColor; }
}

.rapture-hand:focus-visible {
  outline: none;
}

.rapture-hand:focus-visible::after {
  width: 17px;
  height: 17px;
  outline: 2px solid currentColor;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px #171116d9;
}

.rapture-hand-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  filter: blur(1.25px);
}

.rapture-hand-glow::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* The silhouettes follow the two painted hands in the original artwork. */
.rapture-hand-glow[data-hand="yellow"]::before {
  background: #fff6c3;
  clip-path: polygon(
    12% 49%, 13.2% 48.3%, 18.7% 52%, 19.6% 51%, 16.2% 41%,
    16% 38.6%, 17% 37.3%, 18.1% 38.6%, 20.8% 47.5%, 21.6% 47%,
    19.6% 36%, 19.9% 33.9%, 21.2% 33%, 22.4% 34.4%, 24.2% 43.2%,
    25.8% 43%, 26% 35.7%, 26.9% 33.7%, 28.3% 34.5%, 28.7% 36.2%,
    29.4% 47.8%, 31.6% 56%, 33.8% 59.7%, 35% 62.5%, 34.5% 64.6%,
    33.5% 65.1%, 31.7% 62.6%, 29.1% 62.1%, 26.3% 63.4%, 23.4% 64.5%,
    20.8% 63.4%, 18.7% 60.8%, 17.6% 56.1%, 15% 53.2%, 12.2% 51.1%
  );
}

.rapture-hand-glow[data-hand="red"]::before {
  background: #ffd5cd;
  clip-path: polygon(
    61% 75%, 62% 74.8%, 63.5% 75.1%, 65% 71.3%, 67.9% 64.1%,
    70% 58%, 71.3% 54.5%, 72.5% 54.1%, 73.6% 55.6%, 73.5% 57.9%,
    72.1% 62.7%, 71.4% 66.3%, 72.1% 66.7%, 74.6% 60.5%, 76.1% 58%,
    77.3% 58.3%, 78.2% 60%, 77.5% 62.7%, 74.3% 69.6%, 75% 70.1%,
    78.2% 64.5%, 79.3% 62.8%, 80.5% 63.3%, 80.7% 65.4%, 78.1% 71.4%,
    76.6% 74.3%, 77.2% 75.2%, 81% 73.3%, 81.9% 73.8%, 82% 75.5%,
    80.7% 77.3%, 75.2% 79.3%, 73.4% 83.3%, 71.7% 85%, 69.2% 85.4%,
    66.9% 84.7%, 65% 82.5%, 63.9% 79.6%, 61.9% 78%
  );
}

.rapture-hand-glow.still-reply[data-hand] { opacity: .52; }
@media (prefers-reduced-motion: reduce) {
  .rapture-hand-glow[data-hand] { opacity: .52; }
}

.rapture-hands-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (forced-colors: active) {
  .rapture-hand { color: ButtonText; }
  .rapture-hand:focus-visible::after { outline-color: Highlight; }
  .rapture-hand-glow { forced-color-adjust: none; }
}
