/* Gaslight Festival giveaway promotion */
.bggd-giveaway-popup {
  --popup-navy: #1d1f57;
  --popup-navy-deep: #11143f;
  --popup-red: #ed1c24;
  --popup-paper: #f5f4f0;
  --popup-white: #fff;
  background: transparent;
  border: 0;
  color: var(--popup-navy);
  margin: auto;
  max-height: min(760px, calc(100dvh - 32px));
  max-width: 920px;
  overflow: visible;
  padding: 0;
  width: min(920px, calc(100% - 32px));
}

.bggd-giveaway-popup,
.bggd-giveaway-popup * {
  box-sizing: border-box;
}

.bggd-giveaway-popup::backdrop {
  animation: bggd-popup-backdrop-in 280ms ease both;
  background: rgba(9, 11, 44, 0.78);
  backdrop-filter: blur(6px);
}

.bggd-giveaway-popup__panel {
  background: var(--popup-paper);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 14px 14px 0 var(--popup-red), 0 28px 80px rgba(4, 6, 35, 0.38);
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  max-height: min(720px, calc(100dvh - 54px));
  opacity: 0;
  overflow: hidden;
  position: relative;
  transform: translateY(26px) scale(0.965);
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bggd-giveaway-popup.is-open .bggd-giveaway-popup__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bggd-giveaway-popup.is-closing .bggd-giveaway-popup__panel {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition-duration: 180ms;
}

.bggd-giveaway-popup__visual {
  background: var(--popup-navy-deep);
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.bggd-giveaway-popup__visual::before {
  background: linear-gradient(118deg, transparent 28%, rgba(255, 255, 255, 0.18) 47%, transparent 64%);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-115%);
  z-index: 2;
}

.bggd-giveaway-popup.is-open .bggd-giveaway-popup__visual::before {
  animation: bggd-popup-glint 3.8s 900ms ease-in-out infinite;
}

.bggd-giveaway-popup__visual::after {
  background: linear-gradient(180deg, rgba(17, 20, 63, 0.04) 18%, rgba(17, 20, 63, 0.9) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.bggd-giveaway-popup__visual img {
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 52% center;
  transform: scale(1.06);
  transition: transform 7s ease-out;
  width: 100%;
}

.bggd-giveaway-popup.is-open .bggd-giveaway-popup__visual img {
  transform: scale(1.01);
}

.bggd-giveaway-popup__ticket {
  bottom: 30px;
  color: var(--popup-white);
  left: 28px;
  position: absolute;
  right: 28px;
  z-index: 3;
}

.bggd-giveaway-popup__ticket-label,
.bggd-giveaway-popup__eyebrow,
.bggd-giveaway-popup__fineprint {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.bggd-giveaway-popup__ticket-label {
  display: block;
  font-size: 0.68rem;
  margin-bottom: 12px;
}

.bggd-giveaway-popup__date {
  align-items: center;
  display: flex;
  gap: 14px;
}

.bggd-giveaway-popup__date strong {
  color: var(--popup-white);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(3.35rem, 7vw, 5.25rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.78;
}

.bggd-giveaway-popup__date span {
  border-left: 2px solid var(--popup-red);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.45;
  padding-left: 14px;
  text-transform: uppercase;
}

.bggd-giveaway-popup__content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(42px, 5vw, 54px) clamp(34px, 5vw, 64px);
  position: relative;
}

.bggd-giveaway-popup__content::before {
  background: var(--popup-red);
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  width: 100%;
}

.bggd-giveaway-popup.is-open .bggd-giveaway-popup__content::before {
  animation: bggd-popup-rule-in 560ms 220ms ease forwards;
}

.bggd-giveaway-popup__eyebrow {
  color: var(--popup-red);
  font-size: 0.72rem;
  margin: 0 0 20px;
}

.bggd-giveaway-popup__title {
  color: var(--popup-navy);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(2.35rem, 4.5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0;
  max-width: 560px;
  text-transform: uppercase;
  text-wrap: balance;
}

.bggd-giveaway-popup__title span {
  color: var(--popup-red);
  display: block;
}

.bggd-giveaway-popup__lede {
  color: #3f4268;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 24px 0 0;
  max-width: 510px;
}

.bggd-giveaway-popup__cta {
  align-items: center;
  background: var(--popup-navy);
  border: 2px solid var(--popup-red);
  color: var(--popup-white);
  display: inline-flex;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 14px;
  justify-content: center;
  letter-spacing: 0.035em;
  margin-top: 28px;
  min-height: 52px;
  padding: 13px 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.bggd-giveaway-popup__cta::after {
  content: "→";
  font-size: 1.15rem;
  transition: transform 180ms ease;
}

.bggd-giveaway-popup__cta:hover {
  background: #30366d;
  border-color: #30366d;
  transform: translateY(-2px);
}

.bggd-giveaway-popup__cta:hover::after {
  transform: translateX(4px);
}

.bggd-giveaway-popup__fineprint {
  color: #5b5e79;
  font-size: 0.62rem;
  line-height: 1.55;
  margin: 17px 0 0;
}

.bggd-giveaway-popup__close {
  align-items: center;
  background: var(--popup-white);
  border: 1px solid var(--popup-navy);
  color: var(--popup-navy);
  cursor: pointer;
  display: inline-flex;
  font: 600 1.35rem/1 Arial, sans-serif;
  height: 44px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
  width: 44px;
  z-index: 5;
}

.bggd-giveaway-popup__close:hover {
  background: var(--popup-navy);
  color: var(--popup-white);
  transform: rotate(4deg);
}

.bggd-giveaway-popup :where(a, button):focus-visible {
  outline: 3px solid var(--popup-red);
  outline-offset: 4px;
}

@keyframes bggd-popup-backdrop-in {
  from { background: rgba(9, 11, 44, 0); backdrop-filter: blur(0); }
  to { background: rgba(9, 11, 44, 0.78); backdrop-filter: blur(6px); }
}

@keyframes bggd-popup-rule-in {
  to { transform: scaleX(1); }
}

@keyframes bggd-popup-glint {
  0%, 62% { transform: translateX(-115%); }
  84%, 100% { transform: translateX(115%); }
}

@media (min-width: 721px) and (max-height: 720px) {
  .bggd-giveaway-popup__visual {
    min-height: 0;
  }

  .bggd-giveaway-popup__content {
    padding: 28px 40px;
  }

  .bggd-giveaway-popup__eyebrow {
    margin-bottom: 12px;
  }

  .bggd-giveaway-popup__title {
    font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  }

  .bggd-giveaway-popup__lede {
    font-size: 0.86rem;
    margin-top: 14px;
  }

  .bggd-giveaway-popup__cta {
    margin-top: 18px;
    min-height: 48px;
  }

  .bggd-giveaway-popup__fineprint {
    margin-top: 12px;
  }
}

@media (max-width: 720px) {
  .bggd-giveaway-popup {
    max-height: calc(100dvh - 20px);
    width: calc(100% - 20px);
  }

  .bggd-giveaway-popup__panel {
    box-shadow: 7px 7px 0 var(--popup-red), 0 20px 54px rgba(4, 6, 35, 0.4);
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }

  .bggd-giveaway-popup__visual {
    min-height: 184px;
  }

  .bggd-giveaway-popup__ticket {
    bottom: 18px;
    left: 20px;
    right: 72px;
  }

  .bggd-giveaway-popup__ticket-label {
    margin-bottom: 8px;
  }

  .bggd-giveaway-popup__date strong {
    font-size: clamp(2.75rem, 15vw, 4.1rem);
  }

  .bggd-giveaway-popup__date span {
    font-size: 0.66rem;
  }

  .bggd-giveaway-popup__content {
    overflow: visible;
    padding: 30px 24px 28px;
  }

  .bggd-giveaway-popup__eyebrow {
    margin-bottom: 13px;
  }

  .bggd-giveaway-popup__title {
    font-size: clamp(2.05rem, 10.6vw, 3rem);
  }

  .bggd-giveaway-popup__lede {
    font-size: 0.88rem;
    margin-top: 16px;
  }

  .bggd-giveaway-popup__cta {
    margin-top: 20px;
    width: 100%;
  }

  .bggd-giveaway-popup__fineprint {
    font-size: 0.58rem;
  }
}

@media (max-width: 420px), (max-height: 670px) {
  .bggd-giveaway-popup__visual {
    min-height: 146px;
  }

  .bggd-giveaway-popup__ticket-label {
    display: none;
  }

  .bggd-giveaway-popup__content {
    padding-block: 24px;
  }

  .bggd-giveaway-popup__lede {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bggd-giveaway-popup::backdrop,
  .bggd-giveaway-popup__content::before,
  .bggd-giveaway-popup__visual::before {
    animation: none !important;
  }

  .bggd-giveaway-popup__panel,
  .bggd-giveaway-popup__visual img,
  .bggd-giveaway-popup__cta,
  .bggd-giveaway-popup__cta::after,
  .bggd-giveaway-popup__close {
    transition: none !important;
  }

  .bggd-giveaway-popup__content::before {
    transform: scaleX(1);
  }

  .bggd-giveaway-popup__panel {
    opacity: 1;
    transform: none;
  }
}
