.product-figure.story {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.story-stage {
  position: relative;
  height: 476px;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.story-route {
  position: absolute;
  z-index: -1;
  top: 94px;
  bottom: 83px;
  left: 50%;
  border-left: 2px dashed #a7b9d2;
}

.story-profile {
  position: absolute;
  left: 50%;
  width: min(76%, 300px);
  min-height: 100px;
  padding: 14px 16px;
  transform: translateX(-50%);
  border: 1px solid #cfdaeb;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 16px 28px -23px #28477580;
}

.story-business { top: 24px; }
.story-vendor { top: 313px; }
.story-label {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.1px;
}
.story-identity { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.story-avatar {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.story-avatar.vendor { background: #53657d; }
.story-identity strong { font-size: 12px; font-weight: 600; line-height: 1.3; }
.story-profile small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }

.story-qr-wrap {
  position: absolute;
  top: 164px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
}
.story-qr-wrap > span {
  color: var(--navy);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}
.story-qr {
  width: 82px;
  height: 82px;
  padding: 7px;
  border: 1px solid #cfdaeb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px #28477520;
  animation: story-qr-pulse 12s ease-in-out infinite;
}
.story-qr img { display: block; width: 100%; height: 100%; }

.story-packet {
  position: absolute;
  top: 255px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 8px 16px #28477535;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  animation: story-packet-travel 12s ease-in-out infinite;
}
.story-packet > span { font-size: 15px; }
.story-packet strong { font-size: 10px; font-weight: 600; }
.story-packet small { color: #dce6f3; font-size: 8px; }
.story-decision {
  position: absolute;
  top: 423px;
  left: 50%;
  z-index: 3;
  padding: 7px 13px;
  transform: translateX(-50%);
  border-radius: 100px;
  background: #e9f4ee;
  color: #226342;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  animation: story-decision-return 12s ease-in-out infinite;
}
@keyframes story-qr-pulse {
  0%, 18%, 80%, 100% { transform: scale(1); box-shadow: 0 10px 26px #28477520; }
  25%, 38% { transform: scale(1.12); box-shadow: 0 0 0 12px #d7e4f5; }
}
@keyframes story-packet-travel {
  0%, 31% { top: 255px; opacity: 0; transform: translateX(-50%) scale(.8); }
  38% { opacity: 1; transform: translateX(-50%) scale(1); }
  65% { top: 284px; opacity: 1; transform: translateX(-50%) scale(1); }
  73%, 100% { top: 284px; opacity: 0; transform: translateX(-50%) scale(.8); }
}
@keyframes story-decision-return {
  0%, 68% { top: 423px; opacity: 0; }
  74% { top: 423px; opacity: 1; }
  89% { top: 131px; opacity: 1; }
  96%, 100% { top: 131px; opacity: 0; }
}

@media (max-width: 540px) {
  .story-stage { height: 438px; }
  .story-route { top: 85px; bottom: 72px; }
  .story-profile { width: 84%; min-height: 91px; padding: 11px 13px; }
  .story-business { top: 18px; }
  .story-vendor { top: 288px; }
  .story-qr-wrap { top: 144px; }
  .story-qr { width: 73px; height: 73px; animation-name: story-qr-pulse-small; }
  .story-packet { top: 231px; animation-name: story-packet-travel-small; }
  .story-decision { top: 389px; animation-name: story-decision-return-small; }
}
@keyframes story-qr-pulse-small {
  0%, 18%, 80%, 100% { transform: scale(1); box-shadow: 0 10px 26px #28477520; }
  25%, 38% { transform: scale(1.05); box-shadow: 0 0 0 6px #d7e4f5; }
}
@keyframes story-packet-travel-small {
  0%, 31% { top: 231px; opacity: 0; transform: translateX(-50%) scale(.8); }
  38% { opacity: 1; transform: translateX(-50%) scale(1); }
  65% { top: 266px; opacity: 1; transform: translateX(-50%) scale(1); }
  73%, 100% { top: 266px; opacity: 0; transform: translateX(-50%) scale(.8); }
}
@keyframes story-decision-return-small {
  0%, 68% { top: 389px; opacity: 0; }
  74% { top: 389px; opacity: 1; }
  89% { top: 112px; opacity: 1; }
  96%, 100% { top: 112px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .story-stage * { animation: none !important; }
  .story-packet { opacity: 0; }
  .story-decision { opacity: 1; top: 423px; }
}
@media (max-width: 540px) and (prefers-reduced-motion: reduce) {
  .story-decision { top: 389px; }
}
