/* "Spooky Sale" admin popup banner, October 29 - November 9, 2026 */
.supsystic-spooky-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(10, 4, 20, 0.78);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.supsystic-spooky-overlay[hidden] {
  display: none !important;
}
.supsystic-spooky-overlay.is-visible {
  opacity: 1;
}
.supsystic-spooky-overlay *,
.supsystic-spooky-overlay *::before,
.supsystic-spooky-overlay *::after {
  box-sizing: border-box;
}
.supsystic-spooky-popup {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 40px 32px 32px;
  overflow: hidden;
  border-radius: 22px;
  color: #f5e9ff;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 118%, rgba(255, 122, 24, 0.55) 0%, rgba(255, 122, 24, 0.12) 38%, transparent 62%),
    radial-gradient(110% 80% at 50% -12%, #3b1a5c 0%, #1d1030 52%, #140c1f 100%);
  box-shadow: 0 30px 90px rgba(255, 122, 24, 0.22), inset 0 0 0 1px rgba(255, 170, 90, 0.16);
  transform: translateY(12px);
  transition: transform 0.6s ease;
}
.supsystic-spooky-overlay.is-visible .supsystic-spooky-popup {
  transform: none;
}
/* Full moon in the top right corner */
.supsystic-spooky-popup::before {
  content: "";
  position: absolute;
  top: -38px;
  right: -38px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 40%, rgba(214, 170, 90, 0.55) 0 9px, transparent 10px),
    radial-gradient(circle at 58% 66%, rgba(214, 170, 90, 0.45) 0 6px, transparent 7px),
    radial-gradient(circle at 40% 36%, #fffbea 0%, #ffe9b0 55%, #f3cd78 100%);
  box-shadow: 0 0 50px 12px rgba(255, 214, 140, 0.28);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
/* Embers drifting up */
.supsystic-spooky-popup::after {
  content: "";
  position: absolute;
  top: -100%;
  right: 0;
  left: 0;
  height: 200%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
  background-image:
    radial-gradient(circle, rgba(255, 170, 70, 0.95) 0 1.6px, transparent 2.2px),
    radial-gradient(circle, rgba(255, 110, 30, 0.75) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 210, 130, 0.8) 0 2px, transparent 2.6px);
  background-size: 130px 130px, 84px 84px, 190px 190px;
  background-position: 12px 40px, 56px 96px, 96px 14px;
  animation: supsysticSpookyEmbers 16s linear infinite;
  will-change: transform;
}
@keyframes supsysticSpookyEmbers {
  0% {
    transform: translate3d(0, 50%, 0);
  }
  100% {
    transform: translate3d(-24px, 0, 0);
  }
}
.supsystic-spooky-content {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #7c8aa5 rgba(0, 0, 0, 0.08);
}
.supsystic-spooky-overlay .supsystic-spooky-close {
  position: absolute;
  top: 35px;
  right: 27px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #ff7a18;
  border-radius: 50%;
  background: #ff7a18;
  color: #1a0b26;
  box-shadow: none;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: 0.2s all;
}
.supsystic-spooky-overlay .supsystic-spooky-close:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #1a0b26;
}
.supsystic-spooky-overlay .supsystic-spooky-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.supsystic-spooky-close svg {
  display: block;
}
.supsystic-spooky-eyebrow {
  margin: 0;
  color: #ff9a3c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.supsystic-spooky-headline {
  margin: 10px 0 0;
  color: #ff7a18;
  font-family: "Creepster", cursive;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 4px 0 #2a0f3d, 0 0 28px rgba(255, 122, 24, 0.55);
}
.supsystic-spooky-sub {
  padding: 0 12px;
  color: #e9dcf7;
  font-weight: 400;
  text-wrap: balance;
  animation: supsysticSpookyFlicker 5s ease-in-out infinite;
}
.supsystic-spooky-offer {
  margin: 12px 0 5px;
  font-size: 24px;
}
.supsystic-spooky-label {
  margin: 20px 0 10px;
  font-size: 16px;
}
@keyframes supsysticSpookyFlicker {
  0%,
  46%,
  50%,
  100% {
    opacity: 1;
  }
  48% {
    opacity: 0.82;
  }
  52% {
    opacity: 0.9;
  }
}
.supsystic-spooky-code {
  margin: 0 0 10px;
  font-family: "Creepster", cursive;
  font-size: 40px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}
.supsystic-spooky-note {
  margin: 12px 0 0;
  color: #b9a6cf;
  font-size: 12px;
}
.supsystic-spooky-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 6px;
}
.supsystic-spooky-overlay a.supsystic-spooky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  margin: 0;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  outline: none;
  transition: 0.2s all;
}
.supsystic-spooky-overlay a.supsystic-spooky-btn-primary {
  border-color: #ff7a18;
  background: linear-gradient(180deg, #ff9a3c 0%, #ff7a18 100%);
  color: #1a0b26;
  box-shadow: 0 8px 24px rgba(255, 122, 24, 0.35);
}
.supsystic-spooky-overlay a.supsystic-spooky-btn-primary:hover,
.supsystic-spooky-overlay a.supsystic-spooky-btn-primary:focus {
  border-color: #ffffff;
  background: #ffffff;
  color: #1a0b26;
}
.supsystic-spooky-overlay a.supsystic-spooky-btn-secondary {
  border-color: rgba(255, 170, 90, 0.45);
  background: rgba(20, 12, 31, 0.35);
  color: #f5e9ff;
}
.supsystic-spooky-overlay a.supsystic-spooky-btn-secondary:hover,
.supsystic-spooky-overlay a.supsystic-spooky-btn-secondary:focus {
  border-color: #ff9a3c;
  background: rgba(255, 122, 24, 0.14);
  color: #ffffff;
}
.supsystic-spooky-overlay a.supsystic-spooky-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .supsystic-spooky-popup {
    padding: 36px 20px 24px;
  }
  .supsystic-spooky-overlay .supsystic-spooky-close {
    top: 16px;
    right: 16px;
  }
  .supsystic-spooky-headline {
    font-size: 48px;
  }
  .supsystic-spooky-offer {
    font-size: 20px;
  }
  .supsystic-spooky-code {
    font-size: 32px;
  }
  .supsystic-spooky-overlay a.supsystic-spooky-btn {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .supsystic-spooky-overlay,
  .supsystic-spooky-popup {
    transition: none;
  }
  .supsystic-spooky-popup::after,
  .supsystic-spooky-sub {
    animation: none;
  }
}
