/* Seasonal layer. Visible copy is unchanged. Active through 1 Nov 2026 (gated in HTML). */

.hero::before,
.city-page::before {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
}

.hero::before {
  inset: 0;
  z-index: 2;
  background-image: url("../img/halloween/web.svg?v=6"), url("../img/halloween/web-right.svg?v=6");
  background-size: 168px 168px, 156px 156px;
  background-position: 0 var(--header-h), 100% var(--header-h);
}

.city-page {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.city-page::before {
  inset: 0;
  z-index: 0;
  background-image: url("../img/halloween/web.svg?v=6"), url("../img/halloween/web-right.svg?v=6");
  background-size: 188px 188px, 176px 176px;
  background-position: 0 0, 100% 0;
}

.city-panel {
  position: relative;
  z-index: 1;
}

.hw-spiders {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.city-page .hw-spiders { z-index: 0; }

.hw-drop {
  --drop: 118px;
  position: absolute;
  top: 151px;
  left: 80px;
  width: 1px;
  height: var(--drop);
  transform-origin: top center;
  animation: hw-swing 6.5s ease-in-out infinite;
}

.hw-drop::before {
  content: "";
  position: absolute;
  left: -1.5px;
  top: -1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f4f6f8;
}

.hw-drop--b {
  left: auto;
  right: 75px;
  top: 141px;
  --drop: 96px;
  animation-name: hw-swing-b;
  animation-duration: 7.4s;
}

.hw-drop__silk,
.hw-drop__bug {
  position: absolute;
  animation-duration: 10s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.hw-drop__silk {
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(244, 246, 248, 0.78);
  transform-origin: top center;
  transform: scaleY(0);
  animation-name: hw-silk;
}

.hw-drop__bug {
  left: 50%;
  top: 0;
  width: 20px;
  height: 26px;
  margin-left: -10px;
  background: url("../img/halloween/spider.svg?v=2") center / contain no-repeat;
  transform: translate3d(0, 0, 0);
  animation-name: hw-lower;
}

.hw-drop--b .hw-drop__silk,
.hw-drop--b .hw-drop__bug {
  animation-duration: 12.5s;
  animation-delay: -6s;
}

.hero .hw-drop--a { top: calc(var(--header-h) + 135px); left: 72px; --drop: 110px; }
.hero .hw-drop--b { top: calc(var(--header-h) + 125px); right: 67px; --drop: 90px; }

@keyframes hw-lower {
  0%, 10% { transform: translate3d(0, 0, 0); }
  42%, 60% { transform: translate3d(0, var(--drop), 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes hw-silk {
  0%, 10% { transform: scaleY(0); }
  42%, 60% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

@keyframes hw-swing {
  0%, 100% { transform: rotate(-1.8deg); }
  50% { transform: rotate(2.2deg); }
}

@keyframes hw-swing-b {
  0%, 100% { transform: rotate(2deg); }
  50% { transform: rotate(-1.6deg); }
}

@media (max-width: 768px) {
  .hero::before { background-size: 112px 112px, 100px 100px; }
  .city-page::before { background-size: 128px 128px, 116px 116px; }
  .hw-drop--a { --drop: 70px; left: 55px; top: 103px; }
  .hw-drop--b { --drop: 58px; right: 50px; top: 93px; }
  .hero .hw-drop--a { left: 48px; top: calc(var(--header-h) + 90px); }
  .hero .hw-drop--b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-drop,
  .hw-drop__silk,
  .hw-drop__bug { animation: none; }
}
