/* Halloween theme (owner 10/29, 2 days): only active while halloween.js has put .halloween on <body>. Purple stays,
   orange joins it; corner cobwebs, low fog and a warm glow; black widows (halloween.js) crawl or drop now and then. */
body.halloween { --amber: #ff8a1e; --hw-orange: #ff7a18; }

.hw-deco { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.hw-web { position: absolute; color: rgba(235, 228, 245, .34); filter: drop-shadow(0 0 2px rgba(255,255,255,.15)); }
.hw-web.tr { top: 0; right: 0; transform: scaleX(-1); }
.hw-web.tl { top: 0; left: 0; }
@media (min-width: 900px) { .hw-web.tl { left: 244px; } }
.hw-fog { position: absolute; left: -20%; right: -20%; bottom: -12vh; height: 34vh; border-radius: 50%; opacity: .55;
    background: radial-gradient(60% 55% at 30% 60%, rgba(150, 120, 190, .18), transparent 70%), radial-gradient(50% 50% at 75% 55%, rgba(255, 140, 60, .1), transparent 70%);
    filter: blur(18px); animation: hwFog 26s ease-in-out infinite alternate; }
.hw-fog.f2 { bottom: -16vh; opacity: .4; animation-duration: 38s; animation-direction: alternate-reverse; }
@keyframes hwFog { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.hw-glow { position: absolute; left: 0; right: 0; bottom: 0; height: 40vh; background: radial-gradient(70% 100% at 50% 100%, rgba(255, 110, 20, .1), transparent 70%); }

/* the logo and a few accents go pumpkin-orange */
body.halloween .brand-logo, body.halloween .mobile-topbar-logo { filter: drop-shadow(0 0 14px rgba(255, 122, 24, .55)); }
body.halloween .site-nav a.active { box-shadow: inset 3px 0 0 var(--hw-orange), 0 0 18px rgba(255, 122, 24, .18); }

/* ── Halloween banner at the top of every page, a string of swinging jack-o'-lanterns under it ── */
.hw-banner { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 54px; padding: 12px 18px; border-radius: 14px; text-decoration: none;
    background: linear-gradient(90deg, #2a0f3a 0%, #5a2208 30%, #ff7a18 50%, #5a2208 70%, #2a0f3a 100%); border: 1px solid rgba(255, 150, 60, .65);
    box-shadow: 0 0 34px rgba(255, 122, 24, .35), inset 0 1px 0 rgba(255,255,255,.18); }
.hw-banner:hover { box-shadow: 0 0 46px rgba(255, 122, 24, .55), inset 0 1px 0 rgba(255,255,255,.18); }
.hw-b-text { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; justify-content: center; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.hw-b-text b { font: 400 26px/1 Impact, "Arial Black", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff4e6; }
.hw-b-text em { font: 700 14px/1.2 system-ui, sans-serif; font-style: normal; color: #ffe2c2; }
.hw-rope { position: absolute; left: 3%; right: 3%; top: 100%; width: 94%; height: 22px; pointer-events: none; }
.hw-garland { position: absolute; left: 3%; right: 3%; top: calc(100% + 2px); display: flex; justify-content: space-between; pointer-events: none; }
.hw-g { width: 44px; height: 44px; object-fit: contain; transform-origin: 50% -6px; animation: hwSwing 2.8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.37s);
    filter: drop-shadow(0 0 10px rgba(255, 122, 24, .65)) drop-shadow(0 4px 5px rgba(0,0,0,.6)); }
.hw-g:nth-child(odd) { margin-top: 10px; }
@keyframes hwSwing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@media (max-width: 700px) { .hw-b-text b { font-size: 20px; } .hw-b-text em { font-size: 12px; } .hw-g { width: 30px; height: 30px; } .hw-g:nth-child(n+7) { display: none; } .hw-banner { margin-bottom: 40px; } }

/* bats */
.hw-bat { position: fixed; left: 0; top: var(--y); z-index: 8999; pointer-events: none; animation: hwBatL var(--d) linear forwards; }
.hw-bat.rtl { animation-name: hwBatR; }
.hw-bat svg { display: block; transform: scale(var(--s)); filter: drop-shadow(0 0 4px rgba(255, 122, 24, .35)); }
@keyframes hwBatL { 0% { transform: translate(-80px, 0); } 25% { transform: translate(25vw, -30px); } 50% { transform: translate(50vw, 10px); } 75% { transform: translate(75vw, -25px); } 100% { transform: translate(calc(100vw + 80px), 5px); } }
@keyframes hwBatR { 0% { transform: translate(calc(100vw + 80px), 0) scaleX(-1); } 25% { transform: translate(75vw, -30px) scaleX(-1); } 50% { transform: translate(50vw, 10px) scaleX(-1); } 75% { transform: translate(25vw, -25px) scaleX(-1); } 100% { transform: translate(-80px, 5px) scaleX(-1); } }

/* home hero: "AFTERLIFE." in pumpkin orange fading to purple, a Halloween eyebrow, and a real DayZ jack-o'-lantern */
body.halloween .home-h-purple { background: linear-gradient(95deg, #ffb347 0%, #ff7a18 38%, #c43cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(255, 122, 24, .35)); }
body.halloween .home-eyebrow { border-color: rgba(255, 122, 24, .7); color: #ffb366; }
body.halloween .home-eyebrow::after { content: " · HAPPY HALLOWEEN 🎃"; }
.hw-jack { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 0 14px rgba(255, 122, 24, .7)) drop-shadow(0 6px 8px rgba(0,0,0,.6)); animation: hwFlicker 3.2s ease-in-out infinite; }
.hw-jack.hero { left: 56%; bottom: 8%; width: 120px; z-index: 6; }
.hw-jack.brand { right: 18px; top: 58px; width: 46px; }
@keyframes hwFlicker { 0%, 100% { filter: drop-shadow(0 0 14px rgba(255, 122, 24, .7)) drop-shadow(0 6px 8px rgba(0,0,0,.6)); } 45% { filter: drop-shadow(0 0 22px rgba(255, 150, 40, .95)) drop-shadow(0 6px 8px rgba(0,0,0,.6)); } 55% { filter: drop-shadow(0 0 10px rgba(255, 110, 20, .55)) drop-shadow(0 6px 8px rgba(0,0,0,.6)); } }
@media (max-width: 900px) { .hw-jack.hero { width: 76px; left: auto; right: 6%; } }

/* ── spiders ── */
/* black on a black site: a thin pale rim + warm glow so the silhouette reads, a shadow so it sits on the page */
.hw-spider { position: fixed; left: 0; top: 0; z-index: 9000; width: 86px; height: 86px; margin: -43px 0 0 -43px; padding: 0; border: 0; background: none; cursor: pointer;
    filter: drop-shadow(0 0 1px rgba(255, 236, 214, .9)) drop-shadow(0 0 5px rgba(255, 140, 50, .55)) drop-shadow(0 6px 5px rgba(0, 0, 0, .7)); will-change: transform; }
.hw-spider svg { display: block; overflow: visible; width: 86px; height: 86px; }
.hw-spider:hover { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 9px rgba(255, 140, 50, .95)) drop-shadow(0 6px 5px rgba(0, 0, 0, .7)); }

/* hanging: a silk thread from the top of the screen */
.hw-spider.hanging { transform: translate(var(--x), -60px); animation: hwDrop 9s ease-in-out forwards; }
/* the spider is turned upside down (180deg), so a thread hanging "down" from it points up on screen */
.hw-spider.hanging::before { content: ""; position: absolute; left: 50%; top: 60%; width: 1px; height: 120vh; background: linear-gradient(to bottom, rgba(235, 230, 245, .7), rgba(235, 230, 245, .2)); }
@keyframes hwDrop {
    0% { transform: translate(var(--x), -60px) rotate(180deg); }
    28% { transform: translate(var(--x), var(--depth)) rotate(180deg); }
    34% { transform: translate(var(--x), calc(var(--depth) - 14px)) rotate(176deg); }
    40%, 66% { transform: translate(var(--x), var(--depth)) rotate(184deg); }
    100% { transform: translate(var(--x), -80px) rotate(180deg); }
}

.hw-splat { position: fixed; z-index: 9000; margin: -30px 0 0 -30px; pointer-events: none; animation: hwSplat 2.6s ease-out forwards; }
@keyframes hwSplat { 0% { transform: scale(.4); opacity: 1; } 12% { transform: scale(1.1); } 70% { opacity: .9; } 100% { transform: scale(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { .hw-fog { animation: none; } }
@media (max-width: 700px) { .hw-web { width: 110px; height: 110px; } .hw-web.tl { display: none; } }

/* spider bounty pop-up */
.hw-bubble { position: fixed; z-index: 9001; transform: translate(-50%, -100%); padding: 6px 12px; border-radius: 10px; pointer-events: none; white-space: nowrap;
    background: linear-gradient(180deg, #2a1407, #12080a); border: 1px solid rgba(255, 150, 60, .7); color: #ffe2c2; font: 700 14px/1.2 system-ui, sans-serif;
    box-shadow: 0 0 18px rgba(255, 122, 24, .45), 0 6px 14px rgba(0,0,0,.6); animation: hwBubble 2.6s ease-out forwards; }
.hw-bubble.paid { border-color: rgba(74, 222, 128, .8); color: #b9ffcf; box-shadow: 0 0 18px rgba(74, 222, 128, .45), 0 6px 14px rgba(0,0,0,.6); }
.hw-bubble.paid { font-size: 18px; } .hw-bubble small { font-size: 11px; opacity: .75; margin-left: 6px; } .hw-bubble.miss { opacity: .9; }
@keyframes hwBubble { 0% { opacity: 0; transform: translate(-50%, -60%) scale(.7); } 12% { opacity: 1; transform: translate(-50%, -110%) scale(1.06); } 75% { opacity: 1; transform: translate(-50%, -150%); } 100% { opacity: 0; transform: translate(-50%, -175%); } }
/* ── home: Halloween Weekend panel (v1; the cinematic v2 was rolled back 10/29) ── */
.hw-panel { position: relative; margin: 18px 0; padding: 18px 20px; border-radius: 18px; overflow: hidden;
    background: radial-gradient(120% 140% at 0% 0%, rgba(255, 122, 24, .22), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(150, 50, 220, .25), transparent 55%), #0d0712;
    border: 1px solid rgba(255, 140, 50, .45); box-shadow: 0 0 40px rgba(255, 122, 24, .15); }
.hw-p-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hw-p-head img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(255,122,24,.7)); animation: hwFlicker 3.2s ease-in-out infinite; }
.hw-p-head b { display: block; font: 400 30px/1 Impact, "Arial Black", sans-serif; letter-spacing: .05em; text-transform: uppercase; background: linear-gradient(95deg, #ffd08a, #ff7a18 45%, #c43cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hw-p-head small { color: rgba(255,255,255,.65); font-size: 13px; letter-spacing: .05em; }
.hw-p-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hw-p-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 74px; min-height: 86px; border-radius: 14px; text-decoration: none; color: #fff;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: transform .2s, border-color .2s, box-shadow .2s; }
.hw-p-card:hover { transform: translateY(-2px); border-color: rgba(255,140,50,.7); box-shadow: 0 0 22px rgba(255,122,24,.3); }
.hw-p-card img, .hw-p-card > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; object-fit: contain; font-style: normal; font-size: 38px; line-height: 50px; text-align: center; filter: drop-shadow(0 0 10px rgba(255,122,24,.55)); }
.hw-p-card b { font: 400 19px/1 Impact, "Arial Black", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.hw-p-card span { font-size: 13.5px; color: #ffd9b3; } .hw-p-card span b { font: 800 13.5px/1 system-ui, sans-serif; color: #fff; text-transform: none; letter-spacing: 0; }
.hw-p-card small { font-size: 12px; color: rgba(255,255,255,.5); }
@media (max-width: 900px) { .hw-p-cards { grid-template-columns: 1fr; } .hw-p-head b { font-size: 24px; } }
/* ── jumpscare ── */
.hw-scare { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle, rgba(120,0,0,.55), #000 70%); animation: hwScareBg 1.65s ease-out forwards; }
.hw-scare-face { position: relative; animation: hwLunge .45s cubic-bezier(.2,1.6,.4,1) forwards, hwShake .09s linear .45s 9; }
.hw-scare-face img { display: block; width: min(80vw, 640px); filter: brightness(.85) contrast(1.4) sepia(.35) drop-shadow(0 0 60px rgba(255,0,0,.55)); }
.hw-scare-face .e { position: absolute; top: 48%; width: 9%; height: 7%; border-radius: 50%; background: radial-gradient(circle, #fff 0 15%, #ff1a1a 35%, rgba(255,0,0,0) 70%); filter: blur(1px) drop-shadow(0 0 18px #ff0000); }
.hw-scare-face .e.l { left: 31%; } .hw-scare-face .e.r { right: 31%; }
.hw-scare.out { opacity: 0; transition: opacity .35s; }
.hw-scare.calm .hw-scare-face { animation: none; }
@keyframes hwScareBg { 0% { background-color: #fff; } 6% { background-color: #600; } 100% { background-color: rgba(0,0,0,.9); } }
@keyframes hwLunge { from { transform: scale(.15); opacity: 0; } to { transform: scale(1.15); opacity: 1; } }
@keyframes hwShake { 0% { transform: scale(1.15) translate(0, 0) rotate(0); } 25% { transform: scale(1.17) translate(-12px, 6px) rotate(-2deg); } 50% { transform: scale(1.15) translate(10px, -8px) rotate(2deg); } 75% { transform: scale(1.18) translate(-6px, -4px) rotate(-1deg); } 100% { transform: scale(1.15) translate(0, 0) rotate(0); } }
.hw-bubble.big { font-size: 22px; padding: 10px 18px; }
/* hover glow on cards and buttons while it's Halloween */
body.halloween .home-stat:hover, body.halloween .ac-tile:hover, body.halloween .shop-category-tile:hover { box-shadow: 0 0 26px rgba(255, 122, 24, .35); border-color: rgba(255, 140, 50, .6); }

/* a small spider hanging from the sidebar logo */
.hw-hang { position: absolute; left: 24px; top: 6px; width: 34px; pointer-events: none; transform-origin: 50% -40px; animation: hwHang 4.5s ease-in-out infinite alternate; }
.hw-hang i { position: absolute; left: 50%; bottom: 60%; width: 1px; height: 46px; background: linear-gradient(to top, rgba(235,230,245,.6), rgba(235,230,245,.1)); }
.hw-hang svg { position: relative; top: 30px; transform: rotate(180deg); filter: drop-shadow(0 0 1px rgba(255,236,214,.8)) drop-shadow(0 0 4px rgba(255,140,50,.5)); }
@keyframes hwHang { from { transform: rotate(-6deg) translateY(0); } to { transform: rotate(6deg) translateY(6px); } }

/* falling leaves */
.hw-leaf { position: fixed; top: -40px; z-index: 8998; pointer-events: none; opacity: .85; animation: hwLeaf var(--d) linear forwards; }
.hw-leaf svg { display: block; transform: scale(var(--s)); filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); animation: hwLeafSpin 3.4s ease-in-out infinite alternate; }
@keyframes hwLeaf { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: .85; } 50% { transform: translate(var(--sway), 55vh); } 92% { opacity: .8; } 100% { transform: translate(calc(var(--sway) * -.4), 110vh); opacity: 0; } }
@keyframes hwLeafSpin { from { transform: scale(var(--s)) rotate(-35deg); } to { transform: scale(var(--s)) rotate(40deg) scaleX(.6); } }