/* Halloween Special 2026 · popup on vamithreat.com (prefix vthp-). Removed together with
   /halloween-special-2026/popup.js after the request deadline (30 Nov 2026). */
.vthp {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 7, 16, .72);
  backdrop-filter: blur(4px);
  animation: vthp-fade .28s ease-out both;
}

.vthp__dialog {
  position: relative;
  overflow: hidden auto;
  width: min(100%, 600px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 34px 34px 24px;
  border: 1px solid rgba(249, 115, 22, .38);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% -8%, rgba(249, 115, 22, .24), transparent 42%),
    radial-gradient(circle at -10% 110%, rgba(110, 86, 207, .28), transparent 46%),
    linear-gradient(160deg, #111a2e 0%, #0a1222 55%, #140c24 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  text-align: left;
  animation: vthp-rise .34s cubic-bezier(.2, .8, .2, 1) both;
}

/* Decoration in its own clipped layer so it never sticks out of the dialog */
.vthp__decor { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.vthp__moon {
  position: absolute; top: -70px; right: -60px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffe7c2 0%, #fdba74 38%, rgba(249, 115, 22, .25) 62%, transparent 70%);
  opacity: .28;
}
.vthp__bats {
  position: absolute; top: 18px; right: 64px; width: 120px; height: 40px;
  fill: rgba(255, 255, 255, .5); animation: vthp-flutter 6s ease-in-out infinite;
}

.vthp__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%;
  background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.vthp__close:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .32); }
.vthp__close svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.vthp__head { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding-right: 36px; }
.vthp__pumpkin { display: block; flex-shrink: 0; filter: drop-shadow(0 0 18px rgba(249, 115, 22, .55)); }
.vthp__badge {
  display: inline-block; margin-bottom: 8px; padding: 5px 11px;
  border: 1px solid rgba(253, 186, 116, .45); border-radius: 999px; background: rgba(249, 115, 22, .12);
  color: #fdba74; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.vthp__title {
  margin: 0; color: #fff; font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(23px, 4.2vw, 30px); line-height: 1.12; letter-spacing: -.02em;
}

.vthp__sub { position: relative; z-index: 1; margin: 16px 0 18px; color: rgba(255, 255, 255, .84); font-size: 15.5px; line-height: 1.55; }

.vthp__items { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.vthp__items li { display: flex; align-items: flex-start; gap: 11px; min-width: 0; padding: 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .045); }
.vthp__icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; background: #0a1222; border: 1px solid rgba(255, 255, 255, .14); }
.vthp__icon img { display: block; width: 32px; height: 32px; object-fit: contain; }
.vthp__item-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vthp__item-copy strong { color: #fff; font-size: 14.5px; line-height: 1.3; }
.vthp__item-copy small { color: rgba(255, 255, 255, .7); font-size: 12.5px; line-height: 1.42; overflow-wrap: anywhere; }

.vthp__note { position: relative; z-index: 1; margin: 16px 0 18px; color: #fdba74; font-size: 13px; font-weight: 600; }

.vthp__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* "Don't show again" – own footer row, bottom left (visual order = keyboard order) */
.vthp__foot { position: relative; z-index: 1; display: flex; margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.vthp__hide {
  min-height: 32px; padding: 4px 2px; border: 0; background: none;
  color: rgba(255, 255, 255, .66); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.vthp__hide:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.vthp__details { color: rgba(255, 255, 255, .88); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.vthp__details:hover { color: #fff; }
.vthp__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 24px;
  border-radius: 12px; background: linear-gradient(135deg, #fb923c 0%, #f97316 45%, #ea580c 100%);
  box-shadow: 0 12px 30px rgba(249, 115, 22, .32); color: #1b0a00; font-size: 15px; font-weight: 800; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.vthp__cta:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(249, 115, 22, .42); }

.vthp a:focus-visible, .vthp button:focus-visible { outline: 3px solid #fdba74; outline-offset: 3px; }

@keyframes vthp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vthp-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes vthp-flutter { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Phones: bottom sheet – covers the page only partly and stays scrollable */
@media (max-width: 560px) {
  .vthp { align-items: flex-end; padding: 0; }
  .vthp__dialog { width: 100%; max-height: 88vh; max-height: 88dvh; padding: 26px 20px 18px; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .vthp__head { gap: 12px; }
  .vthp__pumpkin { width: 46px; height: 46px; }
  .vthp__items { grid-template-columns: 1fr; gap: 8px; }
  .vthp__items li { padding: 10px; }
  .vthp__sub { margin: 12px 0 14px; font-size: 14.5px; }
  .vthp__note { margin: 12px 0 14px; }
  .vthp__actions { justify-content: center; }
  .vthp__cta { width: 100%; }
  .vthp__foot { margin-top: 14px; }
  .vthp__bats { right: 54px; width: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .vthp, .vthp__dialog, .vthp__bats { animation: none; }
  .vthp__cta { transition: none; }
}
