/* ── CHRISTMAS SEASON (loaded only when tsj_holiday_on()) ── */

/* String lights */
.xmas-lights {
  position: absolute; left: 0; right: 0; height: 34px; z-index: 5;
  display: flex; overflow: hidden; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='20'%3E%3Cpath d='M0 2 Q23 17 46 2' fill='none' stroke='%23142018' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 0 / 46px 20px;
}
.xmas-lights--nav    { top: 100%; }
.xmas-lights--footer { top: 0; }
footer { position: relative; }

.xmas-lights i {
  --c: #ff3b30; --g: rgba(255,59,48,.85);
  flex: none; position: relative; width: 46px; height: 34px;
}
.xmas-lights i:nth-child(5n+2) { --c: #ffc93c; --g: rgba(255,201,60,.85); }
.xmas-lights i:nth-child(5n+3) { --c: #2ee86f; --g: rgba(46,232,111,.8); }
.xmas-lights i:nth-child(5n+4) { --c: #4aa8ff; --g: rgba(74,168,255,.85); }
.xmas-lights i:nth-child(5n+5) { --c: #fff4dc; --g: rgba(255,244,220,.9); }

/* socket */
.xmas-lights i::before {
  content: ""; position: absolute; left: 50%; top: 8px; width: 6px; height: 6px;
  margin-left: -3px; border-radius: 1px; background: #2b3a2f;
}
/* bulb */
.xmas-lights i::after {
  content: ""; position: absolute; left: 50%; top: 13px; width: 9px; height: 14px; margin-left: -4.5px;
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  background: radial-gradient(circle at 40% 30%, #fff 0 12%, var(--c) 45%);
  box-shadow: 0 0 6px 2px var(--g), 0 4px 16px 3px var(--g);
  animation: xmas-twinkle 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.37s);
}
.xmas-lights i:nth-child(odd)::after  { transform: rotate(-9deg); }
.xmas-lights i:nth-child(even)::after { transform: rotate(8deg); }
@keyframes xmas-twinkle {
  0%, 100% { opacity: 1;  filter: brightness(1.1); }
  45%      { opacity: .55; filter: brightness(.7); box-shadow: 0 0 3px 1px var(--g); }
  55%      { opacity: .55; filter: brightness(.7); box-shadow: 0 0 3px 1px var(--g); }
}

/* Wreaths */
.xmas-wreath { position: absolute; top: 0; z-index: 3; pointer-events: none; transform-origin: 50% 0; animation: xmas-sway 6s ease-in-out infinite; }
.xmas-wreath img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.55)); }
/* ribbon hanger */
.xmas-wreath::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 7px; margin-left: -3.5px;
  height: calc(var(--drop) + 12%); background: linear-gradient(90deg, #7d0509, #d4151b 45%, #9c0b10);
  border-radius: 0 0 2px 2px; box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.xmas-wreath.hero-l, .xmas-wreath.hero-r { --drop: 96px; width: clamp(120px, 13vw, 200px); padding-top: var(--drop); }
.xmas-wreath.hero-l { left: 5vw; }
.xmas-wreath.hero-r { right: 5vw; animation-delay: -3s; }
@keyframes xmas-sway { 0%,100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }

.xmas-wreath.footer-w { position: relative; display: inline-block; width: 74px; margin-right: .4rem; animation: none; vertical-align: middle; }
.xmas-wreath.footer-w::before { display: none; }

@media (max-width: 900px) {
  .xmas-wreath.hero-l, .xmas-wreath.hero-r { --drop: 112px; width: 86px; }
  .xmas-wreath.hero-l { left: 3vw; }
  .xmas-wreath.hero-r { right: 3vw; }
}
@media (max-width: 520px) {
  .xmas-wreath.hero-l, .xmas-wreath.hero-r { --drop: 104px; width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-lights i::after, .xmas-wreath { animation: none; }
}
