/* Shared microinteractions; entrances use the native Web Animations API. */
.sales-image-label b,
.sales-image-label small {
  display: block;
}
.sales-image-label b {
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 5px;
}
.sales-image-label small {
  font-size: 8px;
}
.bonus-preview {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}
.bonus-preview-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--gold);
  padding: 5px 8px;
  font-size: 9px;
}
.bonus-preview-hint .icon {
  width: 12px;
  height: 12px;
}
.bonus-preview:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}
.bonus-card:focus-within {
  border-color: var(--gold);
}
.reading-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .icon-button,
  .nav-cta,
  .filter-tabs button {
    transition:
      transform 180ms ease,
      background 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease,
      color 180ms ease;
  }
  .button > .icon,
  .nav-cta > .icon,
  .text-link > .icon,
  .library-explore .icon,
  .preview-caption > .icon {
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .button:active:not(:disabled),
  .icon-button:active:not(:disabled),
  .nav-cta:active,
  .filter-tabs button:active {
    transform: translateY(1px) scale(0.98);
  }
  .button:focus-visible > .icon,
  .nav-cta:focus-visible > .icon,
  .text-link:focus-visible > .icon {
    transform: translateX(3px);
  }
  .bonus-card,
  .preview-card,
  .library-card {
    transition:
      transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 280ms ease,
      border-color 220ms ease;
  }
  .bonus-art img {
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .faq-list summary > span {
    transition: transform 220ms ease;
  }
  .mobile-toggle .icon {
    transition: transform 220ms ease;
  }
  .mobile-toggle[aria-expanded="true"] .icon {
    transform: rotate(90deg);
  }
  .mobile-nav:not([hidden]) {
    animation: panel-enter 230ms ease-out;
  }
  .sticky-offer:not([hidden]) {
    animation: panel-enter 250ms ease-out;
  }
  .message-dialog[open],
  .image-dialog[open] {
    animation: panel-enter 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  dialog[open]::backdrop {
    animation: backdrop-enter 220ms ease-out;
  }
  .filter-tabs button.active {
    animation: selection-enter 200ms ease-out;
  }
  @media (hover: hover) and (pointer: fine) {
    .button:hover:not(:disabled) > .icon,
    .nav-cta:hover > .icon,
    .text-link:hover > .icon,
    .library-card:hover .library-explore .icon,
    .preview-card:hover .preview-caption > .icon {
      transform: translateX(4px);
    }
    .bonus-card:hover {
      transform: translateY(-5px);
      border-color: var(--gold);
      box-shadow: 0 12px 28px #0002;
    }
    .bonus-card:hover .bonus-art img {
      transform: scale(1.035);
    }
    .preview-card:hover {
      transform: translateY(-3px);
      border-color: var(--gold);
    }
    .sales-hero-art .hero-image-wrap {
      transform: perspective(1100px) rotateX(var(--tilt-x, 0deg))
        rotateY(var(--tilt-y, 0deg));
      transition: transform 250ms ease-out;
    }
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes backdrop-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes selection-enter {
  from {
    scale: 0.97;
  }
  to {
    scale: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress {
    display: none;
  }
}
