.holiday-global-decor,
.holiday-global-snow {
  position: fixed;
  inset: 0 0 auto;
  z-index: 29;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}

.holiday-global-decor {
  height: 130px;
  overflow: hidden;
  filter: drop-shadow(0 3px 5px rgba(11, 42, 30, .22));
}

.holiday-garland {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.garland-shadow,
.garland-line,
.garland-highlight {
  fill: none;
  stroke-linecap: round;
}

.garland-shadow { stroke: #073a2a; stroke-width: 14; }
.garland-line { stroke: #18764b; stroke-width: 9; }
.garland-highlight { stroke: rgba(136, 194, 117, .68); stroke-width: 2; }

.holiday-light-string {
  position: absolute;
  top: 45px;
  left: 3%;
  display: flex;
  width: 94%;
  justify-content: space-around;
}

.holiday-light-string span {
  width: 9px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 45% 45% 50% 50%;
  background: #ffe59a;
  box-shadow: 0 0 8px 3px rgba(255, 222, 130, .72);
  animation: holiday-light-glow 1.8s ease-in-out infinite alternate;
}

.holiday-light-string span:nth-child(3n) { background: #ff6b5d; box-shadow: 0 0 8px 3px rgba(255, 82, 71, .58); animation-delay: .6s; }
.holiday-light-string span:nth-child(3n + 1) { background: #a7e7c2; box-shadow: 0 0 8px 3px rgba(111, 226, 165, .58); animation-delay: 1.1s; }

.holiday-ornament {
  position: absolute;
  top: 55px;
  width: 27px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 48% 48% 50% 50%;
  box-shadow: inset -5px -4px 8px rgba(0, 0, 0, .2), 0 5px 12px rgba(0, 0, 0, .2);
  transform-origin: 50% -23px;
  animation: holiday-ornament-sway 3s ease-in-out infinite alternate;
}

.holiday-ornament::before {
  position: absolute;
  top: -25px;
  left: 12px;
  width: 1px;
  height: 25px;
  background: rgba(245, 220, 159, .9);
  content: '';
}

.holiday-ornament::after {
  position: absolute;
  top: -2px;
  left: 8px;
  width: 9px;
  height: 5px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 3px 3px 0 0;
  content: '';
}

.ornament-red { left: 19%; background: radial-gradient(circle at 32% 26%, #ffb1a2, #d33b3d 45%, #8e1726); }
.ornament-gold { left: 54%; top: 68px; width: 22px; height: 28px; background: radial-gradient(circle at 32% 26%, #fff1bd, #e8ad43 48%, #a9651c); animation-delay: -.8s; }
.ornament-blue { right: 17%; background: radial-gradient(circle at 32% 26%, #b4e8d2, #287d65 48%, #164a42); animation-delay: -1.4s; }

.holiday-global-snow {
  inset: 0;
  z-index: 28;
  overflow: hidden;
}

.holiday-global-snow::before,
.holiday-global-snow::after {
  position: absolute;
  inset: -100vh 0 0;
  background-repeat: repeat;
  content: '';
  will-change: transform;
}

.holiday-global-snow::before {
  background-image:
    radial-gradient(2px 2px at 24px 35px, rgba(255, 255, 255, .9) 98%, transparent),
    radial-gradient(3px 3px at 100px 115px, rgba(255, 255, 255, .72) 98%, transparent),
    radial-gradient(1.5px 1.5px at 65px 175px, rgba(255, 255, 255, .82) 98%, transparent);
  background-size: 140px 210px, 210px 280px, 180px 250px;
  animation: holiday-snow-drift 16s linear infinite;
}

.holiday-global-snow::after {
  background-image:
    radial-gradient(3px 3px at 45px 80px, rgba(255, 255, 255, .78) 98%, transparent),
    radial-gradient(2px 2px at 150px 160px, rgba(255, 255, 255, .68) 98%, transparent);
  background-size: 240px 260px, 300px 340px;
  animation: holiday-snow-drift 23s linear -8s infinite;
}

.holiday-effects-hidden .holiday-global-decor,
.holiday-effects-hidden .holiday-global-snow {
  visibility: hidden;
  opacity: 0;
}

.holiday-widget {
  position: fixed;
  z-index: 35;
  left: 22px;
  bottom: 22px;
  width: 270px;
  height: 245px;
  font-family: 'DM Sans', sans-serif;
}

.holiday-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 82% 100%, rgba(245, 196, 101, .19), transparent 38%),
    linear-gradient(145deg, #146344 0%, #0c4737 58%, #083b31 100%);
  box-shadow: 0 16px 40px rgba(8, 39, 29, .3);
  color: #fff;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.holiday-copy {
  position: absolute;
  z-index: 2;
  top: 43px;
  left: 19px;
  display: grid;
  gap: 7px;
  max-width: 133px;
}

.holiday-eyebrow {
  color: #f3d28b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.holiday-copy strong {
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  letter-spacing: -.06em;
  line-height: .98;
}

.holiday-copy > span:last-child {
  max-width: 120px;
  color: rgba(255, 255, 255, .8);
  font-size: 10px;
  line-height: 1.4;
}

.holiday-santa {
  position: absolute;
  right: -4px;
  bottom: -7px;
  z-index: 1;
  width: 157px;
  height: 170px;
  overflow: visible;
}

.santa-float { animation: santa-float 3s ease-in-out infinite; }
.santa-coat, .santa-arm { fill: #c62835; }
.santa-coat-trim, .santa-sleeve, .santa-beard, .santa-hat-trim, .santa-hat-pom { fill: #fffaf0; }
.santa-belt { fill: #25372f; }
.santa-buckle { fill: #efc566; }
.santa-face, .santa-nose { fill: #f3bd91; }
.santa-hat { fill: #bd2430; }
.santa-eye { fill: #34231d; }
.santa-moustache { fill: #fffdf6; }
.santa-beard-line { fill: none; stroke: #e7ded0; stroke-linecap: round; stroke-width: 2; }
.santa-gift { transform-origin: 140px 130px; animation: gift-bob 2.4s ease-in-out infinite; }
.gift-box { fill: #e8ad43; }
.gift-ribbon, .gift-bow { fill: #bd2430; }
.santa-hand { fill: #f3bd91; }

.holiday-close {
  position: absolute;
  z-index: 5;
  top: 9px;
  right: 9px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  background: rgba(4, 38, 29, .36);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.holiday-close:hover { background: #bd2430; transform: rotate(90deg); }
.holiday-close svg { width: 16px; height: 16px; }

.holiday-snow {
  position: absolute;
  inset: -10px 0;
  overflow: hidden;
  pointer-events: none;
}

.holiday-snow span {
  position: absolute;
  top: -12px;
  left: var(--snow-left);
  width: var(--snow-size);
  height: var(--snow-size);
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  animation: holiday-snowfall var(--snow-duration) linear var(--snow-delay) infinite;
}

.holiday-snow span:nth-child(1) { --snow-left: 9%; --snow-size: 3px; --snow-duration: 5s; --snow-delay: -1s; }
.holiday-snow span:nth-child(2) { --snow-left: 33%; --snow-size: 2px; --snow-duration: 6s; --snow-delay: -3s; }
.holiday-snow span:nth-child(3) { --snow-left: 57%; --snow-size: 4px; --snow-duration: 5.5s; --snow-delay: -2s; }
.holiday-snow span:nth-child(4) { --snow-left: 77%; --snow-size: 3px; --snow-duration: 6.5s; --snow-delay: -4s; }
.holiday-snow span:nth-child(5) { --snow-left: 91%; --snow-size: 2px; --snow-duration: 5.8s; --snow-delay: -1.5s; }
.holiday-snow span:nth-child(6) { --snow-left: 46%; --snow-size: 2px; --snow-duration: 7s; --snow-delay: -5s; }

.holiday-sparkle {
  position: absolute;
  color: #f3d28b;
  animation: holiday-twinkle 1.8s ease-in-out infinite alternate;
}

.holiday-sparkle-one { top: 18px; left: 22px; font-size: 15px; }
.holiday-sparkle-two { top: 83px; right: 21px; font-size: 19px; animation-delay: .6s; }

.holiday-reopen {
  position: absolute;
  inset: auto auto 0 0;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 20px;
  background: linear-gradient(145deg, #146344, #083b31);
  box-shadow: 0 10px 26px rgba(8, 39, 29, .28);
  cursor: pointer;
  animation: gift-appear .3s ease-out both;
}

.holiday-reopen[hidden] { display: none; }
.holiday-reopen svg { width: 38px; height: 38px; fill: #c62835; stroke: #fffaf0; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.3; }
.holiday-reopen:hover { transform: translateY(-4px) rotate(-5deg); }
.holiday-gift-sparkle { position: absolute; top: 7px; right: 8px; color: #f3d28b; font-size: 13px; }

.holiday-widget.is-closed .holiday-scene {
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px) scale(.96);
  pointer-events: none;
}

.holiday-widget:not(.is-closed) .holiday-reopen { display: none; }

.holiday-widget button:focus-visible {
  outline: 3px solid #f3d28b;
  outline-offset: 3px;
}

@keyframes santa-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes gift-bob {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-4deg) translateY(-2px); }
}

@keyframes holiday-snowfall {
  to { transform: translate3d(12px, 260px, 0); }
}

@keyframes holiday-twinkle {
  from { opacity: .5; transform: scale(.8); }
  to { opacity: 1; transform: scale(1.15); }
}

@keyframes gift-appear {
  from { opacity: 0; transform: scale(.75); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes holiday-light-glow {
  from { opacity: .58; filter: brightness(.8); }
  to { opacity: 1; filter: brightness(1.3); }
}

@keyframes holiday-ornament-sway {
  from { transform: rotate(-5deg); }
  to { transform: rotate(5deg); }
}

@keyframes holiday-snow-drift {
  to { transform: translate3d(24px, 200vh, 0); }
}

@media (max-width: 650px) {
  .holiday-widget { left: 14px; bottom: 14px; width: min(250px, calc(100vw - 28px)); height: 220px; }
  .holiday-copy { top: 38px; left: 16px; max-width: 122px; }
  .holiday-copy strong { font-size: 25px; }
  .holiday-santa { width: 143px; height: 157px; }
  .holiday-global-decor { height: 100px; }
  .holiday-light-string { top: 36px; }
  .holiday-light-string span { width: 7px; height: 9px; }
  .holiday-ornament { top: 45px; width: 21px; height: 27px; }
  .holiday-ornament::before { left: 9px; height: 20px; top: -20px; }
  .holiday-ornament::after { left: 6px; }
  .ornament-gold { top: 55px; width: 18px; height: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .holiday-santa, .santa-gift, .holiday-snow span, .holiday-sparkle, .holiday-reopen,
  .holiday-light-string span, .holiday-ornament, .holiday-global-snow::before, .holiday-global-snow::after { animation: none; }
  .holiday-global-decor, .holiday-global-snow, .holiday-scene, .holiday-close, .holiday-reopen { transition: none; }
}
