.story-pin > .dp-field-runner {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  user-select: none;
  height: clamp(48px, 5.1vw, 76px);
  aspect-ratio: 56 / 78;
  transform-origin: 50% 100%;
}
.dp-field-runner::before {
  content: "";
  position: absolute;
  left: 26%;
  right: 18%;
  bottom: -1px;
  height: 3px;
  border-radius: 50%;
  background: #234c4a38;
  filter: blur(1px);
}
.dp-field-runner > span {
  position: absolute;
  inset: 0;
  background: url("stride.webp") left center / 2500% 100% no-repeat;
}
.story-pin > .dp-field-companion { aspect-ratio: 56 / 81; }
.dp-field-companion > span { background-image: url("companion-stride.webp"); }
.story-pin > .dp-field-runner[hidden] { display: none; }

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .story-pin > .dp-field-runner { height: clamp(34px, 8vw, 48px); }
  .story-pin.dp-field-course::before {
    top: calc(100dvh - clamp(60px, 10.5dvh, 96px));
    bottom: auto;
    border-top-left-radius: 50% 34px;
    border-top-right-radius: 50% 34px;
  }
  .story-pin.dp-field-course > .scene-pathway { height: 100dvh; }
  .story-pin.dp-field-course .scene-pathway .pathway-card { bottom: clamp(92px, 18dvh, 160px); }
}
@media (max-width: 760px) and (max-height: 760px) and (prefers-reduced-motion: no-preference) {
  .story-pin.dp-field-course::before { top: calc(100dvh - 30px); }
  .scroll-story .story-pin.dp-field-course > .dp-story-panel { padding-bottom: 64px; }
  .story-pin.dp-field-course .scene-pathway .pathway-card { padding: 12px 16px; bottom: 78px; }
  .story-pin.dp-field-course .pathway-label { padding-bottom: 8px; }
  .story-pin.dp-field-course .pathway-progress { margin: 8px 0 4px; }
  .story-pin.dp-field-course .pathway-row { min-height: 40px; gap: 8px; grid-template-columns: 24px 1fr auto; }
}
@media (max-width: 760px) and (max-height: 635px) and (prefers-reduced-motion: no-preference) {
  .story-pin.dp-field-course::before {
    top: calc(100dvh - 21px);
    border-top-left-radius: 50% 23px;
    border-top-right-radius: 50% 23px;
  }
  .story-pin.dp-field-course > .dp-field-runner { height: 32px; }
  /* Keep the text above the path as each panel scales out of view. */
  .story-pin.dp-field-course > .dp-story-panel { transform-origin: 50% 86%; }
}
@media (prefers-reduced-motion: reduce), print {
  .story-pin > .dp-field-runner { display: none; }
}
