/* RevEmpire seasonal overlays + contest banner — pointer-safe, member area only */

#re-season-root {
  position: fixed;
  inset: 0;
  z-index: 9400;
  pointer-events: none;
  overflow: hidden;
}

#re-season-root .re-season-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#re-season-hide {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 9410;
  pointer-events: auto;
  border: 1px solid rgba(231, 161, 51, 0.45);
  background: rgba(20, 14, 8, 0.88);
  color: #f3e6c8;
  font: 600 12px/1.2 Georgia, "Times New Roman", serif;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
}

#re-season-hide:hover {
  background: rgba(40, 28, 14, 0.95);
}

/* —— Contest / rewards promo banner —— */
#re-contest-banner {
  position: relative;
  z-index: 5;
  margin: 0 0 18px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid rgba(255, 200, 80, 0.55);
  background:
    linear-gradient(105deg, #ff8a1a 0%, #E7A133 38%, #ff6a00 72%, #c45c00 100%);
  color: #1a1208;
  box-shadow:
    0 14px 36px rgba(180, 80, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-family: Georgia, "Times New Roman", serif;
}

#re-contest-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.28), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(0, 0, 0, 0.18), transparent 45%);
  pointer-events: none;
}

/* Promo looks (picked in Season & Contests — not the same as holiday decorations) */
#re-contest-banner[data-promo="blitz"] {
  background:
    linear-gradient(110deg, #ff7a18 0%, #ff9f1a 35%, #ff5a00 70%, #7a2e00 100%);
  border-color: rgba(255, 220, 120, 0.65);
}

#re-contest-banner[data-promo="harvest"] {
  background:
    linear-gradient(110deg, #c45c1a 0%, #E7A133 42%, #a65c2a 78%, #5c2e10 100%);
  border-color: rgba(255, 210, 140, 0.55);
}

#re-contest-banner[data-promo="valentine"] {
  background:
    linear-gradient(110deg, #f7b6c8 0%, #e85a7a 40%, #c2185b 78%, #6b0f2a 100%);
  border-color: rgba(255, 230, 240, 0.65);
  color: #2a0a14;
}

#re-contest-banner[data-promo="frost"] {
  background:
    linear-gradient(110deg, #1f6b3a 0%, #2f8f4e 35%, #b32626 78%, #6b1212 100%);
  border-color: rgba(255, 220, 220, 0.45);
  color: #fff8f0;
}

#re-contest-banner[data-promo="midnight"] {
  background:
    linear-gradient(120deg, #1a1208 0%, #3a2810 45%, #120c08 100%);
  border-color: rgba(231, 161, 51, 0.55);
  color: #f8efd8;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(231, 161, 51, 0.2);
}

#re-contest-banner .re-contest-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: stretch;
  justify-content: space-between;
  padding: 18px 20px 16px;
}

#re-contest-banner .re-contest-copy {
  flex: 1 1 280px;
  min-width: 0;
}

#re-contest-banner .re-contest-eye {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1208;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

#re-contest-banner[data-promo="frost"] .re-contest-eye {
  color: #6b1212;
}

#re-contest-banner[data-promo="midnight"] .re-contest-eye {
  background: rgba(231, 161, 51, 0.95);
  color: #1a1208;
}

#re-contest-banner[data-promo="midnight"] .re-contest-title {
  color: #fff6e4;
  text-shadow: none;
}

#re-contest-banner[data-promo="midnight"] .re-contest-body {
  color: #e8dcc4;
}

#re-contest-banner[data-promo="midnight"] .re-contest-cta {
  background: linear-gradient(180deg, #E7A133, #c47d12);
  color: #1a1208;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
}

#re-contest-banner[data-promo="midnight"] .re-contest-deadline {
  background: rgba(231, 161, 51, 0.18);
  color: #E7A133;
}

#re-contest-banner[data-promo="valentine"] .re-contest-cta {
  background: #4a1024;
  color: #ffe4ec;
}

#re-contest-banner .re-contest-title {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.08;
  color: #1a0f05;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  font-weight: 700;
  max-width: 18ch;
}

#re-contest-banner[data-promo="frost"] .re-contest-title {
  color: #fff8f0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

#re-contest-banner .re-contest-body {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.4;
  color: rgba(26, 18, 8, 0.88);
  max-width: 38rem;
  font-family: Arial, Helvetica, sans-serif;
}

#re-contest-banner[data-promo="frost"] .re-contest-body {
  color: rgba(255, 248, 240, 0.92);
}

#re-contest-banner .re-contest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

#re-contest-banner .re-contest-cta {
  display: inline-block;
  pointer-events: auto;
  text-decoration: none;
  background: #120c08;
  color: #ffe6a8;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
  font-family: Arial, Helvetica, sans-serif;
}

#re-contest-banner .re-contest-cta:hover {
  background: #000;
  color: #fff;
}

#re-contest-banner .re-contest-deadline {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(18, 12, 8, 0.78);
  color: #ffe6a8;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
}

#re-contest-banner .re-contest-ends {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(18, 12, 8, 0.9);
  font-family: Arial, Helvetica, sans-serif;
}

#re-contest-banner .re-contest-prizes {
  flex: 0 1 280px;
  display: flex;
  gap: 7px;
  align-items: stretch;
  justify-content: flex-end;
}

#re-contest-banner .re-prize {
  flex: 1 1 78px;
  min-width: 72px;
  max-width: 96px;
  text-align: center;
  padding: 8px 6px 9px;
  border-radius: 10px;
  background: rgba(18, 12, 8, 0.88);
  color: #ffe6a8;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
  font-family: Arial, Helvetica, sans-serif;
}

#re-contest-banner .re-prize.is-first {
  background: #120c08;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 230, 140, 0.55);
}

#re-contest-banner .re-prize.is-open {
  opacity: 0.92;
}

#re-contest-banner .re-prize-place {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E7A133;
  font-weight: 800;
  margin-bottom: 2px;
}

#re-contest-banner .re-prize-amt {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.05;
  color: #fff6e4;
}

#re-contest-banner .re-prize-who {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  word-break: break-word;
}

#re-contest-banner .re-prize.is-open .re-prize-who {
  color: rgba(255, 230, 168, 0.85);
  font-style: italic;
  font-weight: 600;
}

#re-contest-banner .re-prize-note {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  color: rgba(255, 230, 168, 0.7);
}

#re-contest-banner .re-contest-x {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  pointer-events: auto;
  border: 0;
  background: rgba(18, 12, 8, 0.55);
  color: #ffe6a8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

@media (max-width: 700px) {
  #re-contest-banner .re-contest-title { max-width: none; font-size: 1.45rem; }
  #re-contest-banner .re-contest-prizes { flex: 1 1 100%; justify-content: stretch; }
  #re-contest-banner .re-prize.is-first { transform: none; }
}

/* —— Halloween: night sky, bats, lanterns, rising embers (not hanging spiders) —— */
.re-halloween-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 88% 8%, rgba(231, 161, 51, 0.16), transparent 60%),
    radial-gradient(ellipse 40% 30% at 12% 90%, rgba(180, 60, 20, 0.1), transparent 55%),
    linear-gradient(to bottom, rgba(8, 6, 14, 0.14), transparent 32%);
  pointer-events: none;
}

.re-moon {
  position: absolute;
  top: 18px;
  right: 28px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #f6e2a8 0%, #E7A133 55%, #b87918 100%);
  box-shadow:
    0 0 28px rgba(231, 161, 51, 0.45),
    0 0 60px rgba(231, 161, 51, 0.18);
  opacity: 0.88;
}

.re-moon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(12, 10, 18, 0.92);
  box-shadow: inset -2px 0 0 rgba(231, 161, 51, 0.15);
}

.re-bat {
  position: absolute;
  width: 36px;
  height: 18px;
  animation-name: re-bat-fly;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
  opacity: 0.82;
}

.re-bat svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

@keyframes re-bat-fly {
  0% { transform: translate3d(-12vw, 0, 0) scaleX(1); }
  45% { transform: translate3d(55vw, -18px, 0) scaleX(1); }
  50% { transform: translate3d(58vw, -14px, 0) scaleX(-1); }
  100% { transform: translate3d(112vw, 8px, 0) scaleX(-1); }
}

.re-lantern {
  position: absolute;
  bottom: 10px;
  width: 34px;
  height: 34px;
  animation-name: re-lantern-bob;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform;
  opacity: 0.92;
}

.re-lantern svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(255, 140, 40, 0.55));
}

@keyframes re-lantern-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

.re-ember {
  position: absolute;
  bottom: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #E7A133;
  box-shadow: 0 0 6px rgba(255, 160, 40, 0.8);
  animation-name: re-ember-rise;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

@keyframes re-ember-rise {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translate3d(12px, -70vh, 0) scale(0.4); opacity: 0; }
}

/* —— Thanksgiving leaves —— */
.re-leaf {
  position: absolute;
  top: -40px;
  width: 18px;
  height: 18px;
  border-radius: 2px 14px 2px 14px;
  opacity: 0.85;
  animation-name: re-leaf-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

@keyframes re-leaf-fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  100% { transform: translate3d(40px, 110vh, 0) rotate(360deg); }
}

/* —— Christmas snow —— */
.re-flake {
  position: absolute;
  top: -20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
  animation-name: re-snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

@keyframes re-snow-fall {
  0% { transform: translate3d(0, -5vh, 0); opacity: 0.9; }
  100% { transform: translate3d(20px, 110vh, 0); opacity: 0.35; }
}

/* —— Homepage sale popup (Old Navy-style pop-in) —— */
#re-home-promo {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  pointer-events: none;
}

#re-home-promo .re-home-promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.55);
  pointer-events: auto;
  animation: re-home-fade 0.35s ease-out;
}

#re-home-promo .re-home-promo-card {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: min(420px, 100%);
  padding: 22px 22px 18px;
  border-radius: 16px;
  border: 2px solid rgba(255, 220, 120, 0.65);
  background: linear-gradient(145deg, #ff8a1a 0%, #E7A133 45%, #ff5a00 100%);
  color: #1a1208;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
  font-family: Georgia, "Times New Roman", serif;
  animation: re-home-swipe 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

#re-home-promo[data-promo="harvest"] .re-home-promo-card {
  background: linear-gradient(145deg, #c45c1a 0%, #E7A133 50%, #5c2e10 100%);
}
#re-home-promo[data-promo="valentine"] .re-home-promo-card {
  background: linear-gradient(145deg, #f7b6c8 0%, #e85a7a 55%, #6b0f2a 100%);
}
#re-home-promo[data-promo="frost"] .re-home-promo-card {
  background: linear-gradient(145deg, #1f6b3a 0%, #2f8f4e 40%, #b32626 100%);
  color: #fff8f0;
  border-color: rgba(255, 220, 220, 0.5);
}
#re-home-promo[data-promo="midnight"] .re-home-promo-card {
  background: linear-gradient(145deg, #1a1208 0%, #3a2810 100%);
  color: #f8efd8;
  border-color: rgba(231, 161, 51, 0.55);
}

@keyframes re-home-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes re-home-swipe {
  from { transform: translateX(110%) rotate(2deg); opacity: 0.2; }
  70% { transform: translateX(-8px) rotate(-0.5deg); opacity: 1; }
  to { transform: translateX(0) rotate(0deg); opacity: 1; }
}

#re-home-promo .re-home-promo-eye {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1208;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
}

#re-home-promo .re-home-promo-title {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.15;
  font-weight: 700;
}

#re-home-promo .re-home-promo-body {
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.4;
  font-family: Arial, Helvetica, sans-serif;
  opacity: 0.92;
}

#re-home-promo .re-home-promo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

#re-home-promo .re-home-promo-cta {
  display: inline-block;
  text-decoration: none;
  background: #120c08;
  color: #ffe6a8;
  font-weight: 800;
  padding: 11px 16px;
  border-radius: 10px;
  font-family: Arial, Helvetica, sans-serif;
}

#re-home-promo[data-promo="midnight"] .re-home-promo-cta {
  background: linear-gradient(180deg, #E7A133, #c47d12);
  color: #1a1208;
}

#re-home-promo .re-home-promo-later {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-family: Arial, Helvetica, sans-serif;
  opacity: 0.85;
}

#re-home-promo .re-home-promo-x {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: rgba(18, 12, 8, 0.45);
  color: #ffe6a8;
  font-size: 20px;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px 8px;
}

@media (max-width: 700px) {
  .re-moon { width: 48px; height: 48px; right: 14px; top: 12px; }
  .re-moon::after { width: 36px; height: 36px; left: 12px; top: 6px; }
  .re-lantern { width: 26px; height: 26px; }
  #re-season-hide { bottom: 70px; }
  #re-home-promo .re-home-promo-title { font-size: 1.3rem; }
}
