@keyframes emergency-bounce {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* ========== Pills ========== */
.pill-wrap--marquee {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 14px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8f6f1, #ffffff, #e8f6f1);
  box-shadow: inset 0 0 0 1px rgba(15, 123, 93, 0.08);
}

.pill-wrap--marquee::before,
.pill-wrap--marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}

.pill-wrap--marquee::before {
  left: 0;
  background: linear-gradient(90deg, #f7fbf9 0%, rgba(247, 251, 249, 0) 100%);
}

.pill-wrap--marquee::after {
  right: 0;
  background: linear-gradient(270deg, #f7fbf9 0%, rgba(247, 251, 249, 0) 100%);
}

.pill-wrap--marquee .pill-track {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  animation: pill-marquee 40s linear infinite;
}

.pill-wrap--marquee .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 123, 93, 0.12);
  background: #ffffff;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(15, 123, 93, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  white-space: nowrap;
}

.pill-wrap--marquee .pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
}

.pill-wrap--marquee .pill:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 30px rgba(15, 123, 93, 0.18);
}

@keyframes pill-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill-wrap--marquee .pill-track {
    animation: none;
  }
}
