/* Shared LP-B motion layer. It only targets the new motion-b classes and non-sticky article CTAs. */
body a[data-cta-position="middle"],
body a[data-cta-position="final"] {
  position: relative;
  transform-origin: center;
  transition: transform .16s ease, filter .2s ease;
  overflow: hidden;
}

body a[data-cta-position="middle"].is-cta-visible,
body a[data-cta-position="final"].is-cta-visible {
  animation: motion-b-cta-heartbeat 3.2s cubic-bezier(.2,.8,.2,1) infinite !important;
}

body .article-body a.deaeru-cta-link[data-cta-position="middle"].is-cta-visible,
body .article-body a.deaeru-cta-link[data-cta-position="final"].is-cta-visible {
  animation: motion-b-cta-heartbeat 3.2s cubic-bezier(.2,.8,.2,1) infinite !important;
}

body a[data-cta-position="middle"].is-cta-visible::after,
body a[data-cta-position="final"].is-cta-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, transparent 42%, rgba(255,255,255,.72) 50%, transparent 58%, transparent 100%);
  transform: translateX(-125%);
  animation: motion-b-cta-shine 3.2s ease-in-out infinite;
}

body a[data-cta-position="middle"]:active,
body a[data-cta-position="final"]:active {
  transform: scale(.97) !important;
  filter: brightness(.96);
}

body .article-body .motion-b-shake,
body .article-body .motion-b-explode,
body .article-body .motion-b-drop,
body .article-body .motion-b-bounce-marker,
body .article-body .motion-b-float-marker {
  will-change: transform;
}

body .article-body .motion-b-shake.is-motion-visible {
  animation: motion-b-shake 1.4s steps(1,end) infinite;
}

body .article-body .motion-b-explode.is-motion-visible {
  animation: motion-b-explode 1.6s ease-in-out infinite;
}

body .article-body .motion-b-drop.is-motion-visible {
  animation: motion-b-drop .9s cubic-bezier(.2,.9,.35,1.2) .25s 1 both;
}

body .article-body .motion-b-bounce-marker.is-motion-visible {
  animation: motion-b-bounce-marker 1.15s cubic-bezier(.2,.8,.2,1) .25s 1 both;
}

body .article-body .motion-b-float-marker.is-motion-visible {
  animation: motion-b-float 2.2s ease-in-out infinite;
}

body .article-body .motion-b-bounce-marker,
body .article-body .motion-b-float-marker {
  background: linear-gradient(to right, #ffe94d 50%, transparent 50%) 100% 0 / 200% 100% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

body .article-body .motion-b-bounce-marker.is-motion-visible,
body .article-body .motion-b-float-marker.is-motion-visible {
  background-position: 0 0;
}

@keyframes motion-b-cta-heartbeat {
  0%,100% { transform: scale(1); }
  18% { transform: scale(1.03); }
  34% { transform: scale(1); }
  52% { transform: scale(1.06); }
  68% { transform: scale(1); }
}

@keyframes motion-b-cta-shine {
  0%,48% { transform: translateX(-125%); }
  72%,100% { transform: translateX(125%); }
}

@keyframes motion-b-shake {
  0%,66%,100% { transform: translate3d(0,0,0); }
  68% { transform: translate3d(-1px,0,0) rotate(-.3deg); }
  70% { transform: translate3d(1px,0,0) rotate(.3deg); }
  72% { transform: translate3d(-1px,0,0) rotate(-.25deg); }
  74% { transform: translate3d(1px,0,0) rotate(.25deg); }
  76% { transform: translate3d(0,0,0); }
}

@keyframes motion-b-explode {
  0%,48%,100% { transform: rotate(0) scale(1); filter: brightness(1); }
  52% { transform: rotate(-.35deg) scale(1.006); filter: brightness(1.08); }
  56% { transform: rotate(.35deg) scale(1.01); filter: brightness(1); }
  60% { transform: rotate(-.25deg) scale(1.004); filter: brightness(1.06); }
  64% { transform: rotate(0) scale(1); filter: brightness(1); }
}

@keyframes motion-b-drop {
  0% { opacity: 0; transform: translateY(-34px); }
  65% { opacity: 1; transform: translateY(4px); }
  82% { transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes motion-b-bounce-marker {
  0% { transform: scale(1); background-position: 100% 0; }
  36% { transform: scale(1.08); }
  68% { transform: scale(.98); background-position: 0 0; }
  100% { transform: scale(1); background-position: 0 0; }
}

@keyframes motion-b-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  body a[data-cta-position="middle"],
  body a[data-cta-position="final"],
  body .motion-b-shake,
  body .motion-b-explode,
  body .motion-b-drop,
  body .motion-b-bounce-marker,
  body .motion-b-float-marker {
    animation: none !important;
    transition: none !important;
  }
  body .motion-b-bounce-marker,
  body .motion-b-float-marker {
    background-position: 0 0;
  }
}
