.sp-holiday-walk-anchor { position: relative; }

.sp-holiday-walk {
    --sp-walker-size: clamp(36px, 5vw, 60px);
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.sp-holiday-walk-track {
    position: absolute;
    inset: auto 0 4px;
    height: var(--sp-walker-size);
    animation: sp-holiday-header-cross 30s linear infinite;
}

.sp-holiday-walk-figure {
    position: absolute;
    left: calc(-1 * var(--sp-walker-size));
    bottom: 0;
    width: var(--sp-walker-size);
    height: 100%;
    background: center bottom / contain no-repeat;
}

html[data-sp-holiday="christmas"] .sp-holiday-walk-figure { background-image: url("walk-santa.svg"); }
html[data-sp-holiday="easter"] .sp-holiday-walk-figure { background-image: url("walk-bunny.svg"); }
html[data-sp-holiday="halloween"] .sp-holiday-walk-figure { background-image: url("walk-skeleton.svg"); }

@keyframes sp-holiday-header-cross {
    0% { transform: translateX(0); }
    72%, 100% { transform: translateX(calc(100% + var(--sp-walker-size))); }
}

html[data-sp-holiday-paused] .sp-holiday-walk-track { animation-play-state: paused; }
html:not([data-sp-holiday-effects="1"]) .sp-holiday-walk { display: none; }
@media (prefers-reduced-motion: reduce), print {
    .sp-holiday-walk { display: none; }
}
