/* AN3-L — event popup (shared/campaign-popup.js).
 * Its own file rather than theme.css: production serves css/js with a 30-day
 * immutable cache and unversioned URLs, so a returning visitor would keep the
 * old theme.css and see an unstyled popup. A new URL is fetched fresh. */
.campaign-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 4, 26, 0.78);
  backdrop-filter: blur(6px);
  animation: campaign-popup-fade 0.28s ease-out;
}
.campaign-popup-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid var(--yl-border-2);
  background: var(--yl-shadow);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 209, 128, 0.08);
  animation: campaign-popup-rise 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.campaign-popup-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
  background: rgba(7, 4, 26, 0.7);
}
.campaign-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--yl-border-2);
  background: rgba(7, 4, 26, 0.72);
  color: var(--yl-frost);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.campaign-popup-close:hover,
.campaign-popup-close:focus-visible {
  background: var(--yl-surface-2);
}
.campaign-popup-content {
  display: grid;
  gap: 12px;
  padding: 24px 28px 26px;
}
.campaign-popup-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--yl-spark);
}
.campaign-popup-body {
  margin: 0;
  color: var(--yl-frost-2);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 300;
  white-space: pre-line;
}
.campaign-popup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}
.campaign-popup-dismiss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yl-mist);
  font-size: 13px;
  cursor: pointer;
}
@keyframes campaign-popup-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes campaign-popup-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .campaign-popup {
    padding: 12px;
  }
  .campaign-popup-title {
    font-size: 23px;
  }
  .campaign-popup-content {
    padding: 18px 18px 20px;
  }
  .campaign-popup-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .campaign-popup-cta {
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .campaign-popup,
  .campaign-popup-dialog {
    animation: none;
  }
}
