/* The scene is fetched on demand for the two December treatments. */
[data-home-theme="christmas"] .explore-welcome:has(.holiday-scene) {
  padding-top: clamp(74px, 7.5vw, 108px);
  background: radial-gradient(ellipse at 69% 20%, #315043 0, transparent 61%),
              linear-gradient(112deg, #0d2420 13%, #142e28 62%, #122326);
  border-color: #526955;
}

[data-home-theme="christmas"] .explore-welcome:has(.holiday-scene) .search-invitation {
  padding: clamp(12px, 1.7vw, 24px);
  background: #0b1b2099;
  border: 1px solid #d1eed82b;
  border-radius: 18px;
}
.holiday-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.holiday-scene span { position: absolute; }
.holiday-strand, .holiday-glow { inset: 0 0 auto; }
.holiday-christmas .holiday-strand {
  top: -4px; height: clamp(62px, 8.3vw, 124px);
  background: url("https://m.universalclass.com/core/img/seasonal/lights-vintage-festoon.6ae9d8d8c4d2.webp") top center / 48% auto repeat-x;
}
.holiday-christmas .holiday-glow {
  left: 7%; right: 2%; height: 64%;
  background: radial-gradient(ellipse at 13% 9%, #f7a53c3f, transparent 21%),
              radial-gradient(ellipse at 52% 7%, #f1a1453d, transparent 25%),
              radial-gradient(ellipse at 83% 5%, #baf7d02f, transparent 21%);
  animation: holiday-lights-in 3.2s ease-out both;
}
.holiday-figure, .holiday-keepsake, .holiday-ornament {
  background: center bottom / contain no-repeat;
  transform-origin: 50% 95%;
}
.holiday-christmas .holiday-figure {
  left: 49%; bottom: 10px; width: clamp(72px, 11vw, 168px); height: 58%;
  background-image: url("https://m.universalclass.com/core/img/seasonal/holiday-tree.b6fe291b0c6f.webp");
  animation: holiday-arrive 1.35s 180ms cubic-bezier(.2,.75,.3,1) both;
}
.holiday-christmas .holiday-keepsake {
  left: 59%; bottom: 10px; width: clamp(24px, 4.6vw, 65px); height: 24%;
  background-image: url("https://m.universalclass.com/core/img/seasonal/holiday-gift.b912d0cf9146.webp");
  animation: holiday-arrive 1.35s 390ms cubic-bezier(.2,.75,.3,1) both;
}
.holiday-christmas .holiday-ornament {
  left: 58%; top: 24%; height: 12%; width: 5%;
  background-image: url("https://m.universalclass.com/core/img/seasonal/bauble-gold.91f15835e9f8.webp");
  opacity: .84;
  animation: holiday-ornament-in 2.1s 170ms ease-out both;
}
.holiday-winter .holiday-strand {
  height: 100%; inset: 0 -5% auto 25%;
  background: url("https://m.universalclass.com/core/img/seasonal/snow-flurry.e066fbb15ef8.webp") center top / cover no-repeat;
  mask-image: linear-gradient(#000 68%, transparent);
  opacity: .5;
}
.holiday-winter .holiday-glow {
  height: 100%;
  background: linear-gradient(100deg, #102136 12%, #102136b0 33%, transparent 68%);
}
.holiday-winter .holiday-figure {
  left: 51%; bottom: 12px; width: clamp(74px, 12vw, 164px); height: 53%;
  background-image: url("https://m.universalclass.com/core/img/seasonal/holiday-snowman.24b259721578.webp");
  animation: holiday-arrive 1.35s 180ms cubic-bezier(.2,.75,.3,1) both;
}
.holiday-winter .holiday-keepsake {
  width: 8%; height: 28%; left: 48%; top: 7%; opacity: .72;
  background-image: url("https://m.universalclass.com/core/img/seasonal/snowflake-star.df87ff6d8816.webp");
}
.holiday-winter .holiday-ornament {
  width: 5%; height: 20%; left: 62%; top: 7%; opacity: .55;
  background-image: url("https://m.universalclass.com/core/img/seasonal/snowflake-fern.ede44882adee.webp");
}
.holiday-snow { inset: 0 0 0 36%; }
.holiday-snow i {
  position: absolute; inset: 0 auto auto var(--snow-x, 20%);
  width: var(--snow-size, 15px); aspect-ratio: 1; opacity: 0;
  background: url("https://m.universalclass.com/core/img/seasonal/snowflake-star.df87ff6d8816.webp") center / contain no-repeat;
  animation: holiday-snowfall 4.35s var(--snow-delay, .3s) linear both;
}
.holiday-snow i:nth-child(even) { background-image: url("https://m.universalclass.com/core/img/seasonal/snowflake-fern.ede44882adee.webp"); }
.holiday-snow i:nth-child(1) { --snow-x: 2%; --snow-size: 17px; --snow-delay: .1s; }
.holiday-snow i:nth-child(2) { --snow-x: 12%; --snow-size: 10px; --snow-delay: .4s; }
.holiday-snow i:nth-child(3) { --snow-x: 25%; --snow-size: 22px; --snow-delay: .6s; }
.holiday-snow i:nth-child(4) { --snow-x: 38%; --snow-size: 12px; --snow-delay: .2s; }
.holiday-snow i:nth-child(5) { --snow-x: 49%; --snow-size: 16px; --snow-delay: .6s; }
.holiday-snow i:nth-child(6) { --snow-x: 60%; --snow-size: 25px; --snow-delay: .1s; }
.holiday-snow i:nth-child(7) { --snow-x: 72%; --snow-size: 10px; --snow-delay: .2s; }
.holiday-snow i:nth-child(8) { --snow-x: 85%; --snow-size: 18px; --snow-delay: .5s; }
.holiday-snow i:nth-child(9) { --snow-x: 94%; --snow-size: 13px; --snow-delay: .25s; }
@keyframes holiday-lights-in { from { opacity: .2 } to { opacity: 1 } }
@keyframes holiday-arrive {
  from { opacity: 0; transform: translateY(12px) scale(.92) }
  to { opacity: 1; transform: none }
}
@keyframes holiday-ornament-in {
  from { opacity: 0; transform: translateY(-6px) rotate(-9deg) }
  to { opacity: .84; transform: none }
}
@keyframes holiday-snowfall {
  0% { opacity: 0; transform: translate3d(0, -12px, 0) rotate(-8deg) }
  20%, 65% { opacity: .65 }
  100% { opacity: 0; transform: translate3d(38px, 240px, 0) rotate(32deg) }
}

@media (max-width: 760px) {
  [data-home-theme="christmas"] .explore-welcome:has(.holiday-scene) { padding-top: 68px; }
  .holiday-christmas .holiday-strand {
    height: 70px; background-size: clamp(310px, 95%, 432px) auto; background-repeat: no-repeat;
  }
  .holiday-christmas .holiday-figure, .holiday-winter .holiday-figure {
    left: auto; right: 3%; bottom: auto; top: 64px;
    width: clamp(52px, 18vw, 90px); height: 91px;
  }
  .holiday-christmas .holiday-keepsake { left: auto; right: 2%; bottom: auto; top: 139px; height: 24px; }
  .holiday-christmas .holiday-ornament { display: none; }
  .holiday-winter .holiday-keepsake { top: 2%; left: 76%; }
  .holiday-winter .holiday-ornament { top: 4%; left: 87%; }
  .holiday-snow i:nth-child(n+6) { display: none; }
  [data-home-theme="christmas"] .explore-welcome:has(.holiday-scene) :is(h1, p) { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  .holiday-scene *, .holiday-snow i { animation: none !important; }
  .holiday-snow { display: none; }
}
:is(.reduced-motion, .client-reduced-motion, .a11y-pause-motion) .holiday-scene * { animation: none !important; }
