/* Seasonal homepage scene. */
.rs-christmas-active .rs-now-playing {
  padding-top: 84px;
}

/* Reserve blue sky below live ad banners for the hill decorations. */
.rs-christmas-active .rs-winter-ridge {
  margin-top: 120px;
}

.rs-christmas-sky {
  position: absolute;
  inset: 0 0 auto;
  height: 210px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.rs-christmas-sleigh {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(150px, 16vw, 210px);
  offset-anchor: 50% 50%;
  offset-rotate: auto;
  visibility: hidden;
  animation: rsChristmasFlight 38s linear infinite;
  animation-delay: -12s;
}

.rs-christmas-sleigh.rs-flight-ready { visibility: visible; }

.rs-christmas-sleigh__art {
  display: block;
  width: 100%;
  height: auto;
  opacity: .92;
}

.rs-christmas-sky__star {
  position: absolute;
  width: 12px;
  height: 12px;
  fill: #ffe7ad;
  opacity: .7;
}

.rs-christmas-sky__star--one { left: 8%; top: 112px; width: 9px; }
.rs-christmas-sky__star--two { left: 89%; top: 92px; }
.rs-christmas-sky__star--three { left: 69%; top: 156px; width: 8px; opacity: .45; }

/* The ridge travels with the existing blue-to-white wave as the page scrolls. */
.rs-winter-ridge > .rs-christmas-hills {
  position: absolute;
  top: -116px;
  left: 0;
  width: 100%;
  max-width: none;
  height: 136px;
  margin: 0;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

.rs-christmas-hills__snow {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rs-christmas-hills__squirrel {
  position: absolute;
  left: clamp(20px, 9vw, 170px);
  display: block;
  width: clamp(70px, 7vw, 104px);
  height: auto;
}

.rs-christmas-hills__fir {
  position: absolute;
  display: block;
  width: 95px;
  height: 133px;
  right: 4.2%;
}

.rs-christmas-hills__fir--small {
  width: 58px;
  height: 82px;
  right: calc(4.2% + 75px);
}

.rs-christmas-hills__footprints {
  position: absolute;
  width: 64px;
  height: 17px;
  left: clamp(100px, 11vw, 194px);
  opacity: .6;
}

/* Align actual paws and trunk bases with the very same SVG curve as the snow. */
.rs-christmas-hills .rs-grounded {
  top: var(--rs-ground-top, 0px);
  bottom: auto;
  visibility: hidden;
}

.rs-christmas-hills.rs-grounded-ready .rs-grounded { visibility: visible; }

@keyframes rsChristmasFlight {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

@media (max-width: 640px) {
  .rs-christmas-active .rs-now-playing { padding-top: 78px; }
  .rs-christmas-active .rs-winter-ridge { margin-top: 104px; }
  .rs-christmas-sleigh {
    width: 142px;
    animation-duration: 30s;
    animation-delay: -12s;
  }
  .rs-christmas-sky__star--one { top: 93px; }
  .rs-christmas-sky__star--three { display: none; }
  .rs-christmas-hills__squirrel { width: 66px; left: 7%; }
  .rs-christmas-hills__fir { width: 64px; height: 90px; right: 8%; }
  .rs-christmas-hills__fir--small { width: 40px; height: 57px; right: calc(8% + 48px); }
  .rs-christmas-hills__footprints { left: 27%; width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .rs-christmas-sleigh {
    animation: none;
    offset-distance: 50%;
  }
}

@media print {
  .rs-christmas-sky,
  .rs-christmas-hills { display: none; }
  .rs-christmas-active .rs-now-playing { padding-top: 0; }
}

body.admin-bar .rs-christmas-sky { margin-top: 32px; }
@media (max-width: 782px) { body.admin-bar .rs-christmas-sky { margin-top: 46px; } }
