/* All seasonal styling belongs to this removable plugin. */
html.zvcb-halloween #site-navigation::after { background: #dd8627 !important; }
html.zvcb-halloween .sp-table-caption,
html.zvcb-halloween .sp-template caption,
html.zvcb-halloween table.sp-data-table caption,
html.zvcb-halloween #secondary #block-14 .cff-likebox { border-top-color: #dd8627 !important; }
#zvcb-halloween-decor {
  position: absolute; inset: 0 auto auto 0; width: 100%; height: 0;
  pointer-events: none; user-select: none; z-index: 40;
}
#zvcb-halloween-decor * { box-sizing: border-box; pointer-events: none !important; }
#zvcb-halloween-decor > div { position: absolute; }
#zvcb-halloween-decor [hidden] { display: none !important; }
.zhw-web { width: 150px; height: 140px; background: url(web.svg) top right / contain no-repeat; }
.zhw-spider { --thread-extension: 0px; width: 24px; height: calc(100px + var(--thread-extension)); transform-origin: top center; animation: zhw-sway 7s ease-in-out infinite alternate, zhw-descent 18s ease-in-out infinite; }
.zhw-spider::before { content: ''; position: absolute; top: 0; left: 12px; width: 1px; height: calc(77px + var(--thread-extension)); background: #55555c66; }
.zhw-spider svg { position: absolute; bottom: 0; left: 0; width: 24px; height: 29px; }
.zhw-bats { width: 75px; height: 55px; opacity: .8; }
.zhw-pumpkins { transition: filter .3s ease; width: 112px; height: 79px; background: url(pumpkins.svg) center / contain no-repeat; }
.zhw-pumpkins-small { width: 56px; height: 39px; }
.zhw-creature { width: 190px; height: 142px; overflow: hidden; }
.zhw-head-window { position: absolute; bottom: 13px; left: 15px; width: 160px; height: 126px; overflow: hidden; }
.zhw-head {
  position: relative; width: 160px; height: 126px; background: url(creature.webp) left top / 160px 160px no-repeat;
  transform: translateY(105%); transform-origin: 50% 90%; animation: zhw-peek 26s ease-in-out var(--peek-offset, .15s) infinite;
}
.zhw-hands-window { position: absolute; bottom: -7px; left: 0; width: 190px; height: 42px; overflow: hidden; }
.zhw-hands {
  width: 190px; height: 42px; background: url(creature.webp) left bottom / 190px 190px no-repeat;
  transform: translateY(110%); animation: zhw-grip 26s ease-in-out var(--peek-offset, .15s) infinite;
}
/* Interactive elements stay within the creature, above the menu links. */
#zvcb-halloween-decor .zhw-touch {
  position: absolute; inset: 15px 24px 8px; display: block; width: auto; height: auto;
  padding: 0; margin: 0; border: 0; border-radius: 40%; background: transparent;
  box-shadow: none; cursor: pointer; pointer-events: auto !important;
}
.zhw-touch:focus-visible { outline: 2px solid #dd8627; outline-offset: 2px; }
.zhw-creature:has(.zhw-touch:focus-visible):not(.zhw-startled) .zhw-head,
.zhw-creature:has(.zhw-touch:focus-visible):not(.zhw-startled) .zhw-hands { animation: none; transform: translateY(0); }
.zhw-eye {
  position: absolute; top: 61px; left: 53px; width: 12px; height: 7px;
  border-radius: 50%; overflow: hidden; transform: rotate(-8deg);
  background: radial-gradient(ellipse, #ffcc51 15%, #ed9c18 60%, #6b300b 100%);
  box-shadow: 0 0 2px #e99818;
}
.zhw-eye-right { top: 57.5px; left: 90px; transform: rotate(-14deg); }
.zhw-eye i {
  position: absolute; width: 3.5px; height: 5px; left: 4.5px; top: 1px;
  border-radius: 50%; background: #17130d; transform: translate(var(--eye-x, 0px), var(--eye-y, 0px));
}
.zhw-eye::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  background: linear-gradient(#4c4532, #8f8262 60%, #332a22); transform: scaleY(0);
  transform-origin: top; animation: zhw-blink 7.3s linear 2s infinite;
}
.zhw-bubble {
  width: 160px; padding: 8px 9px; border: 1px solid #b88b42; border-radius: 10px;
  background: #fff8e8; color: #493324; box-shadow: 0 3px 12px #0002;
  font: 12px/1.4 Arial, sans-serif; text-align: center; opacity: 0;
  animation: zhw-message 26s ease-in-out .15s infinite;
}
.zhw-bubble::after {
  content: ''; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px;
  background: #fff8e8; border-left: 1px solid #b88b42; border-bottom: 1px solid #b88b42; transform: rotate(45deg);
}
.zhw-bubble.zhw-muted { visibility: hidden; }
.zhw-pumpkins.zhw-glowing { filter: brightness(1.25) drop-shadow(0 0 7px #ed8d23aa); }
.zhw-flight { height: 120px; overflow: hidden; }
.zhw-bat { position: absolute; width: 52px; height: 36px; offset-rotate: auto; offset-distance: 0%; }
.zhw-bat-bank { width: 100%; height: 100%; }
.zhw-bat svg { display: block; width: 100%; height: 100%; fill: #25232a; filter: drop-shadow(0 1px 1px #0002); }
.zhw-flying .zhw-bat { animation: zhw-fly 4.8s linear 1.5s both; }
.zhw-flying .zhw-bat-bank { animation: zhw-bank 4.8s ease-in-out 1.5s both; }
.zhw-wing { transform-box: view-box; transform-origin: 32px 24px; }
.zhw-flying .zhw-wing-left { animation: zhw-wing-left .36s cubic-bezier(.4, 0, .6, 1) infinite; }
.zhw-flying .zhw-wing-right { animation: zhw-wing-right .36s cubic-bezier(.4, 0, .6, 1) infinite; }
/* The small mobile visitor is a fixed, click-through layer, independent of header scrolling. */
#zvcb-halloween-decor > .zhw-mobile-crawl {
  position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh;
  overflow: hidden; contain: layout paint; display: none;
}
.zhw-crawl-position { position: absolute; left: 0; top: 0; width: 34px; height: 34px; transform: translate(78vw, -45px) rotate(22deg); }
.zhw-crawl-spider { position: relative; width: 100%; height: 100%; filter: drop-shadow(1px 1.5px 1px #0005); }
.zhw-crawl-spider i { position: absolute; inset: 0; display: block; background-size: 100% 100%; background-repeat: no-repeat; }
.zhw-crawl-body { clip-path: polygon(43% 0, 57% 0, 57% 58%, 56% 71%, 44% 71%, 43% 58%); }
.zhw-crawl-leg { transform-origin: 43% 53%; }
.zhw-crawl-leg-1 { clip-path: polygon(0 0, 43% 0, 43% 49%, 0 30%); }
.zhw-crawl-leg-2 { clip-path: polygon(0 30%, 43% 49%, 43% 53%, 0 55%); }
.zhw-crawl-leg-3 { clip-path: polygon(0 55%, 43% 53%, 43% 58%, 0 80%); }
.zhw-crawl-leg-4 { clip-path: polygon(0 80%, 43% 58%, 44% 71%, 44% 100%, 0 100%); }
.zhw-crawl-leg-5 { clip-path: polygon(57% 0, 100% 0, 100% 30%, 57% 49%); transform-origin: 57% 53%; }
.zhw-crawl-leg-6 { clip-path: polygon(100% 30%, 100% 55%, 57% 53%, 57% 49%); transform-origin: 57% 53%; }
.zhw-crawl-leg-7 { clip-path: polygon(100% 55%, 100% 80%, 57% 58%, 57% 53%); transform-origin: 57% 53%; }
.zhw-crawl-leg-8 { clip-path: polygon(100% 80%, 100% 100%, 56% 100%, 56% 71%, 57% 58%); transform-origin: 57% 53%; }
.zhw-crawling .zhw-crawl-position { animation: zhw-crawl-route 18s linear both; }
.zhw-crawling .zhw-crawl-leg { animation: zhw-step .38s ease-in-out infinite alternate; }
.zhw-crawling .zhw-crawl-leg:nth-child(even) { animation-delay: -.38s; }
.zhw-crawling .zhw-crawl-leg:nth-child(n+5) { animation-direction: alternate-reverse; }
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  #zvcb-halloween-decor > .zhw-mobile-crawl { display: block; }
  .zhw-crawl-spider i { background-image: url(spider-real.webp); }
}
.zhw-startled .zhw-head { animation: zhw-startle-head 3.4s ease-in-out both; }
.zhw-startled .zhw-hands { animation: zhw-startle-hands 3.4s ease-in-out both; }
@property --thread-extension { syntax: '<length>'; inherits: true; initial-value: 0px; }
@keyframes zhw-descent { 0%, 18%, 85%, 100% { --thread-extension: 0px; } 40%, 62% { --thread-extension: 28px; } }
@keyframes zhw-blink { 0%, 45%, 49%, 100% { transform: scaleY(0); } 47% { transform: scaleY(1); } }
@keyframes zhw-message { 0%, 17%, 42%, 100% { opacity: 0; } 21%, 37% { opacity: 1; } }
@keyframes zhw-fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes zhw-bank { 0%, 100% { transform: rotate(-4deg) scale(.8); } 25% { transform: rotate(7deg) scale(.94); } 55% { transform: rotate(-9deg) scale(1); } 80% { transform: rotate(5deg) scale(.9); } }
@keyframes zhw-wing-left { 0%, 100% { transform: scaleY(1) rotate(-3deg); } 45% { transform: scaleY(.22) rotate(18deg); } }
@keyframes zhw-wing-right { 0%, 100% { transform: scaleY(1) rotate(3deg); } 45% { transform: scaleY(.22) rotate(-18deg); } }
@keyframes zhw-step { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes zhw-crawl-route {
  0% { transform: translate(78vw, -45px) rotate(22deg); }
  22% { transform: translate(65vw, 14vh) rotate(30deg); }
  43% { transform: translate(48vw, 30vh) rotate(36deg); }
  65% { transform: translate(29vw, 46vh) rotate(40deg); }
  83% { transform: translate(12vw, 59vh) rotate(44deg); }
  100% { transform: translate(-45px, 70vh) rotate(46deg); }
}
@keyframes zhw-startle-head { 0%, 100% { transform: translateY(0); } 9%, 33% { transform: translateY(105%); } }
@keyframes zhw-startle-hands { 0%, 100% { transform: translateY(0); } 13%, 25% { transform: translateY(110%); } }
#zvcb-halloween-decor[data-paused] > :not(.zhw-mobile-crawl),
#zvcb-halloween-decor[data-paused] > :not(.zhw-mobile-crawl) *,
#zvcb-halloween-decor[data-paused] > :not(.zhw-mobile-crawl) *::after,
#zvcb-halloween-decor[data-document-hidden] *,
#zvcb-halloween-decor[data-document-hidden] *::after { animation-play-state: paused !important; }
@keyframes zhw-peek {
  0%, 2%, 66%, 100% { transform: translateY(105%) rotate(0deg); }
  10%, 38% { transform: translateY(0) rotate(0deg); }
  43%, 49% { transform: translateY(0) rotate(-4deg); }
  54% { transform: translateY(0) rotate(0deg); }
}
@keyframes zhw-grip {
  0%, 73%, 100% { transform: translateY(110%); }
  3%, 63% { transform: translateY(0); }
}
@keyframes zhw-sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) {
  #zvcb-halloween-decor * { animation: none !important; }
  .zhw-head, .zhw-hands { transform: translateY(0); }
  .zhw-eye::after { animation: none; }
  .zhw-flight, .zhw-bubble { display: none; }
  .zhw-pumpkins { transition: none; }
  #zvcb-halloween-decor .zhw-startled .zhw-head { animation: zhw-startle-head .8s steps(1, end) both !important; }
  #zvcb-halloween-decor .zhw-startled .zhw-hands { animation: zhw-startle-hands .8s steps(1, end) both !important; }
}
@media print { #zvcb-halloween-decor { display: none !important; } }

