.holiday-header,
.holiday-snowfall,
.holiday-plow-scene {
  display: none;
}

.holiday-mode .holiday-header,
.holiday-mode .holiday-snowfall,
.holiday-mode .holiday-plow-scene:not([hidden]) {
  display: block;
}

.header-surface { position: relative; isolation: isolate; }
.header-inner { position: relative; }

.holiday-header {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.holiday-header::before,
.holiday-header::after {
  position: absolute;
  top: -2.6rem;
  width: clamp(5rem, 23vw, 19rem);
  height: 3.7rem;
  border-bottom: 2px solid #ffe1d9bb;
  background:
    repeating-linear-gradient(65deg, #ffffff0f 0 1px, transparent 1px 4px),
    linear-gradient(115deg, #f0c3bc, #8d2c3e 16%, #bd4050 72%, #6d234036);
  opacity: .85;
  animation: holiday-ribbon 8s ease-in-out infinite alternate;
  content: '';
}

.holiday-header::before {
  left: -.9rem;
  border-radius: 0 5% 65% 32%;
  transform: rotate(-5deg);
}

.holiday-header::after {
  right: -.9rem;
  border-radius: 5% 0 32% 65%;
  transform: rotate(5deg);
  animation-delay: -4s;
}

.holiday-climber {
  position: absolute;
  left: max(.95rem, calc((100% - var(--frame)) / 2 - 3.15rem));
  bottom: 0;
  width: .53rem;
  height: 100%;
  border-inline: 1px solid #ffead587;
  background: repeating-linear-gradient(to bottom, transparent 0 6px, #ffead58b 6px 7px);
  transform: skewX(-7deg);
}

.holiday-climber img {
  position: absolute;
  bottom: 0;
  right: -.37rem;
  width: 1.7rem;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 2px 2px #270a1b80);
  animation: holiday-climb 9s ease-in-out infinite;
}

.site-header.is-compact .holiday-climber img { width: 1.25rem; }

.holiday-reindeer {
  position: absolute;
  right: max(0px, calc((100% - var(--frame)) / 2 - 4.55rem));
  bottom: .12rem;
  width: clamp(2rem, 4vw, 3.45rem);
  height: auto;
  filter: drop-shadow(0 2px 2px #270a1b60);
  animation: holiday-reindeer 7s ease-in-out infinite alternate;
}

@keyframes holiday-ribbon {
  to { translate: 0 4px; }
}

@keyframes holiday-climb {
  0%, 100% { transform: translateY(3px) skewX(7deg); }
  20% { transform: translateY(-6px) skewX(7deg) rotate(3deg); }
  38% { transform: translateY(-15px) skewX(7deg); }
  55%, 68% { transform: translateY(-22px) skewX(7deg) rotate(3deg); }
}

@keyframes holiday-reindeer {
  0%, 100% { transform: translate(1px, 0); }
  40% { transform: translate(-4px, -2px); }
  65% { transform: translate(-7px, 0); }
}

.holiday-switch {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: .65rem;
  background: transparent;
}

.holiday-switch[hidden] { display: none; }

.holiday-switch-track {
  position: relative;
  width: 2rem;
  height: 1.15rem;
  border: 1px solid #afc8eb7a;
  border-radius: 1rem;
  background: #86a4d93b;
  transition: background-color .22s ease, border-color .22s ease;
}

.holiday-switch-track::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: .78rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c2d4ee;
  transition: transform .22s ease, background-color .22s ease;
  content: '';
}

.holiday-switch-track::after {
  position: absolute;
  inset: 0 .28rem 0 auto;
  display: grid;
  place-items: center;
  color: #f0e4e3;
  font: .62rem/1 system-ui, sans-serif;
  content: '❄';
}

.holiday-switch[aria-checked="true"] .holiday-switch-track::after { inset: 0 auto 0 .26rem; }

.holiday-switch[aria-checked="true"] .holiday-switch-track {
  border-color: #ffd19aaa;
  background: #a62343;
}

.holiday-switch[aria-checked="true"] .holiday-switch-track::before {
  transform: translateX(.8rem);
  background: #fff0ce;
  box-shadow: 0 0 .46rem #ffd29d85;
}

.holiday-mode .site-loader {
  background:
    radial-gradient(ellipse at 79% 24%, #73304b52, transparent 45%),
    radial-gradient(ellipse at 50% 37%, #2b4a88, transparent 55%),
    radial-gradient(ellipse at 30% 72%, #263871, #0a1226 74%);
}

.holiday-mode .loader-orbit-alt { border-color: #f1c7a161; }
.holiday-mode .loader-orbit-alt::before { box-shadow: 0 0 .7rem .16rem #ffd898; }

.holiday-snowfall {
  position: fixed;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.holiday-snowfall span {
  position: absolute;
  top: -1rem;
  left: var(--snow-x);
  width: var(--snow-size);
  height: var(--snow-size);
  border-radius: 50%;
  background: #f9fdff;
  box-shadow: 0 0 2px #6c8bb48f;
  opacity: var(--snow-alpha);
  animation: holiday-fall var(--snow-time) var(--snow-delay) linear infinite;
}

@keyframes holiday-fall {
  0% { transform: translate3d(0, 0, 0); }
  35% { transform: translate3d(var(--snow-drift), 35vh, 0); }
  67% { transform: translate3d(calc(var(--snow-drift) * -.45), 67vh, 0); }
  100% { transform: translate3d(var(--snow-drift), calc(100vh + 2rem), 0); }
}

.holiday-mode .cursor-trail-point {
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: #ffe6a7;
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
  filter: drop-shadow(0 0 3px #ffbd76);
}

.holiday-mode .cursor-trail > .cursor-trail-point:nth-child(3n) { background: #ffbd91; }
.holiday-mode .cursor-trail-ring {
  border-color: #ffdab0;
  box-shadow: 0 0 .65rem #ffbc71a6, inset 0 0 .36rem #ffd8a38a;
}

.site-footer { position: relative; }

.holiday-mode .footer-inner {
  padding-block: .62rem 2.8rem;
}

.holiday-mode .footer-legal { margin-top: .26rem; padding-top: .22rem; }

.holiday-plow-scene {
  --plow-width: clamp(3.75rem, 6vw, 4.55rem);
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 4rem;
  isolation: isolate;
  overflow: clip;
  pointer-events: none;
}

.holiday-snowbank,
.holiday-snow-effects {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.holiday-snow-effects { z-index: 1; }

.holiday-plow {
  position: absolute;
  right: max(4.65rem, calc(env(safe-area-inset-right) + 4.15rem));
  bottom: .08rem;
  display: grid;
  place-items: center;
  width: var(--plow-width);
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: .55rem;
  background: transparent;
  touch-action: none;
  user-select: none;
  pointer-events: auto;
}

.holiday-plow:not(:disabled) { cursor: grab; }
.holiday-plow.is-dragging:not(:disabled) { cursor: grabbing; }

.holiday-plow img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 .23rem .23rem #182543ad);
  transition: filter .22s ease, transform .2s ease;
  pointer-events: none;
}

.holiday-plow:is(:hover, :focus-visible) img { filter: drop-shadow(0 .3rem .24rem #152036e0); }
.holiday-plow.is-pushing img { transform: rotate(-2deg) translateY(1px); }
.holiday-plow.is-reversing img { transform: rotate(1deg); }
.holiday-plow:focus-visible { outline-offset: -2px; }

@media (max-width: 635px) {
  .holiday-mode .footer-inner { padding-block: .82rem 2.95rem; }
}

@media (max-width: 700px) {
  .holiday-climber { left: .66rem; height: 40%; }
  .holiday-climber img { width: 1.32rem; animation-duration: 8s; }
  .holiday-reindeer { right: .1rem; width: 2.1rem; }
}

@media (max-width: 370px) {
  .brand { gap: .3rem; font-size: .88rem; }
  .brand img { width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .holiday-mode .holiday-snowfall { display: none; }
  .holiday-header::before,
  .holiday-header::after,
  .holiday-climber img,
  .holiday-reindeer { animation: none; }
}
