/* RLSS Boost — Halloween season (html.halloween, set in index.html's <head> until 3 Nov): low fog in
   the hero, bats flitting past the light, the "buy 1, get 1 free" deal. The purple light itself is done
   in the scene (climb.js, ball3d.js, space.js, comeback.js read window.RLSS_HALLOWEEN). */
.hw-only { display: none !important; }
html.halloween .hw-only { display: revert !important; }

/* the deal pill above the headline */
html.halloween .hw-deal { display: inline-flex !important; align-items: center; gap: 10px; margin: 0 0 22px; padding: 9px 16px 9px 12px; border-radius: 99px;
  font: 700 13.5px/1 var(--rb-d); letter-spacing: .14em; text-transform: uppercase; color: #ffe2c4; text-decoration: none;
  border: 1px solid rgba(255, 140, 50, .45); background: linear-gradient(90deg, rgba(120, 50, 200, .32), rgba(255, 110, 30, .26));
  box-shadow: 0 0 26px -6px rgba(255, 120, 40, .7), inset 0 1px 0 rgba(255, 255, 255, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html.halloween .hw-deal b { color: #fff; text-shadow: 0 0 12px rgba(255, 160, 60, .9); }
html.halloween .hw-deal .pk { font-size: 17px; filter: drop-shadow(0 0 8px rgba(255, 130, 30, .9)); animation: hwBob 2.6s ease-in-out infinite; }
@keyframes hwBob { 50% { transform: translateY(-2px) rotate(-6deg); } }

/* the deal card in the order section */
html.halloween .hw-card { display: flex !important; align-items: center; gap: 18px; max-width: 1040px; margin: 0 auto 22px; padding: 18px 24px; border-radius: 20px;
  border: 1px solid rgba(255, 140, 50, .35); background: radial-gradient(60% 120% at 0% 50%, rgba(140, 60, 255, .22), transparent 70%),
  radial-gradient(60% 120% at 100% 50%, rgba(255, 110, 30, .2), transparent 70%), rgba(8, 6, 16, .8); box-shadow: 0 0 40px -14px rgba(255, 120, 40, .6); }
html.halloween .hw-card .pk { font-size: 40px; flex: none; filter: drop-shadow(0 0 14px rgba(255, 130, 30, .8)); animation: hwBob 2.6s ease-in-out infinite; }
html.halloween .hw-card h3 { margin: 0; font: 700 22px/1.15 var(--rb-d); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
html.halloween .hw-card h3 em { font-style: normal; background: linear-gradient(100deg, #ffd27a, #ff8a2a); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.halloween .hw-card p { margin: 4px 0 0; color: #c9bfd8; font-size: 14.5px; }

/* fog rolling along the bottom of the hero */
html.halloween .hw-fog { display: block !important; position: absolute; left: -10%; right: -10%; bottom: 6%; height: 46%; z-index: 4; pointer-events: none; overflow: hidden;
  -webkit-mask: linear-gradient(to top, transparent 0%, #000 45%, #000 55%, transparent 100%); mask: linear-gradient(to top, transparent 0%, #000 45%, #000 55%, transparent 100%); }
html.halloween .hw-fog i { position: absolute; bottom: -10%; width: 70%; height: 90%; border-radius: 50%; opacity: .3;
  background: radial-gradient(50% 50% at 50% 50%, rgba(150, 120, 200, .32), rgba(90, 60, 140, .12) 60%, transparent 75%); animation: hwFog 38s linear infinite; }
html.halloween .hw-fog i:nth-child(2) { left: 30%; width: 80%; animation-duration: 52s; animation-delay: -20s; opacity: .4; }
html.halloween .hw-fog i:nth-child(3) { left: -20%; width: 60%; animation-duration: 44s; animation-delay: -8s; opacity: .45;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 140, 80, .14), transparent 70%); }
@keyframes hwFog { 0% { transform: translateX(-12%); } 50% { transform: translateX(12%); } 100% { transform: translateX(-12%); } }

/* bats flitting past, lit from behind by the orange glow */
html.halloween .hw-bats { display: block !important; position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
html.halloween .hw-bat { position: absolute; left: -60px; top: var(--y); width: var(--s); height: auto; opacity: 0; color: #0b0614;
  filter: drop-shadow(0 0 6px rgba(255, 120, 40, .55)) drop-shadow(0 0 1px rgba(255, 170, 90, .8));
  animation: hwFly var(--t) linear var(--d) infinite; }
html.halloween .hw-bat svg { display: block; width: 100%; height: auto; animation: hwFlap .22s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes hwFlap { to { transform: scaleY(.45) scaleX(1.05); } }
@keyframes hwFly {
  0% { opacity: 0; transform: translate(0, 0); }
  4% { opacity: .95; }
  25% { transform: translate(28vw, -40px); }
  50% { transform: translate(56vw, 30px); }
  75% { transform: translate(84vw, -30px); }
  92% { opacity: .95; }
  100% { opacity: 0; transform: translate(112vw, 10px); }
}
@media (prefers-reduced-motion: reduce) { html.halloween .hw-bats, html.halloween .hw-fog i { animation: none; display: none !important; } }
@media (max-width: 700px) {
  html.halloween .hw-deal { font-size: 11.5px; letter-spacing: .1em; padding: 8px 13px 8px 10px; margin-bottom: 16px; }
  html.halloween .hw-card { padding: 16px; gap: 12px; }
  html.halloween .hw-card .pk { font-size: 32px; }
  html.halloween .hw-card h3 { font-size: 18px; }
}

/* the wordmark in the season's colours: its glow purple into orange too, the small one in the top bar swapped */
html.halloween .climb-word.lit { filter: drop-shadow(-6px 0 12px rgba(170, 90, 255, .4)) drop-shadow(6px 0 12px rgba(255, 130, 40, .35)) drop-shadow(0 14px 18px rgba(0, 2, 8, .8)); }
html.halloween .climb-sheen { background: radial-gradient(55% 120% at var(--lx, 80%) var(--ly, 10%), rgba(255, 230, 210, .7), rgba(255, 160, 120, .18) 40%, transparent 70%); }
html.halloween .rb-brand .rb-brand-word { content: url("/images/brand-word-hw.webp"); filter: drop-shadow(0 0 6px rgba(255, 140, 60, .3)); }
