.mp-plus-ribbon-wrap {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto 10px;
  box-sizing: border-box;
}

.mp-snapshot-ribbon {
  width: 100%;
  max-width: 1480px;
  height: 54px;
  margin: 0 auto;
  padding: 5px 18px;
  box-sizing: border-box;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;

  background: #064f68;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.mp-snapshot-camera {
  position: relative;
  width: 42px;
  height: 34px;
  flex: 0 0 42px;

  animation:
    mp-camera-in 8s ease both 6,
    mp-final-visible 0.01s linear 48s forwards;
}

.mp-camera-body {
  position: absolute;
  left: 2px;
  top: 8px;
  width: 38px;
  height: 25px;
  border-radius: 6px;
  background: #ff7043;
  box-shadow: inset 0 -4px 0 rgba(139, 42, 22, 0.22);
}

.mp-camera-top {
  position: absolute;
  left: 9px;
  top: 3px;
  width: 15px;
  height: 8px;
  border-radius: 4px 4px 0 0;
  background: #ffd23f;
}

.mp-camera-lens {
  position: absolute;
  left: 13px;
  top: 11px;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: #12a9c6;
}

.mp-camera-flash {
  position: absolute;
  left: 23px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;

  animation:
    mp-camera-flash 8s linear both 6;
}

.mp-snapshot-name {
  color: #ffffff;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.4px;

  animation:
    mp-brand-in 8s ease both 6,
    mp-final-visible 0.01s linear 48s forwards;
}

.mp-snapshot-name strong {
  color: #ffd23f;
}

.mp-snapshot-divider {
  width: 2px;
  height: 29px;
  background: rgba(255, 255, 255, 0.3);

  animation:
    mp-message-in 8s ease both 6,
    mp-final-visible 0.01s linear 48s forwards;
}

.mp-snapshot-message {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;

  animation:
    mp-message-in 8s ease both 6,
    mp-final-visible 0.01s linear 48s forwards;
}

.mp-snapshot-plus {
  padding: 5px 16px;
  border-radius: 999px;
  background: #e83e67;
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(89, 18, 43, 0.25);

  animation:
    mp-cta-in 8s ease both 6,
    mp-final-visible 0.01s linear 48s forwards;
}

.mp-snapshot-plus b {
  font-weight: 800;
}

.mp-snapshot-ribbon:visited,
.mp-snapshot-ribbon:hover,
.mp-snapshot-ribbon:focus,
.mp-snapshot-ribbon:active {
  color: #ffffff;
  text-decoration: none;
}

.mp-snapshot-ribbon:hover .mp-snapshot-plus,
.mp-snapshot-ribbon:focus .mp-snapshot-plus {
  color: #ffffff;
  background: #f05278;
  text-decoration: underline;
}

/* Camera enters from the left. */

@keyframes mp-camera-in {
  0% {
    opacity: 0;
    transform: translateX(-24px) rotate(-12deg) scale(0.65);
  }

  7% {
    opacity: 1;
    transform: translateX(0) rotate(4deg) scale(1.12);
  }

  10%,
  88% {
    opacity: 1;
    transform: none;
  }

  94%,
  100% {
    opacity: 0;
  }
}

/* Camera flash. */

@keyframes mp-camera-flash {
  0%,
  8% {
    opacity: 0;
    transform: scale(0.25);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }

  10% {
    opacity: 1;
    transform: scale(2.8);
    background: #ffffff;
    box-shadow: 0 0 20px 13px rgba(255, 210, 63, 0.95);
  }

  14%,
  100% {
    opacity: 0;
    transform: scale(4);
    box-shadow: 0 0 28px 18px rgba(255, 210, 63, 0);
  }
}

/* Math Snapshot enters after the flash. */

@keyframes mp-brand-in {
  0%,
  11% {
    opacity: 0;
    transform: translateX(-18px);
  }

  19%,
  88% {
    opacity: 1;
    transform: none;
  }

  94%,
  100% {
    opacity: 0;
  }
}

/* Main message and divider rise into position. */

@keyframes mp-message-in {
  0%,
  18% {
    opacity: 0;
    transform: translateY(13px);
  }

  27%,
  88% {
    opacity: 1;
    transform: none;
  }

  94%,
  100% {
    opacity: 0;
  }
}

/* MP PLUS callout pops into view. */

@keyframes mp-cta-in {
  0%,
  26% {
    opacity: 0;
    transform: scale(0.72);
  }

  32% {
    opacity: 1;
    transform: scale(1.08);
  }

  36%,
  88% {
    opacity: 1;
    transform: scale(1);
  }

  94%,
  100% {
    opacity: 0;
  }
}

/* Final static state after all six cycles. */

@keyframes mp-final-visible {
  from,
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hide the entire ribbon below 800 pixels. */

@media (max-width: 999px) {
  #ribbon {
    display: none !important;
  }
}

/* Show a static version when reduced motion is enabled. */

@media (prefers-reduced-motion: reduce) {
  .mp-snapshot-ribbon * {
    animation: none !important;
  }

  .mp-camera-flash {
    display: none;
  }
}