/* Seasonal decoration stays inside the hero, above the image and below dialogs. */
.christmas-decorations {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
.christmas-decorations[hidden] { display: none; }
.christmas-lights {
    position: absolute;
    inset: 8px 0 auto;
    display: flex;
    justify-content: space-around;
    height: 20px;
    border-top: 1px solid #637373;
}
.christmas-lights span {
    position: relative;
    top: 4px;
    width: 6px;
    height: 10px;
    border-radius: 40% 40% 50% 50%;
    background: #ffe5ad;
    box-shadow: 0 0 8px 2px #ffd58870;
}
.christmas-lights span::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 2px;
    width: 2px;
    height: 5px;
    background: #637373;
}
.christmas-lights span:nth-child(3n) { top: 10px; }
.christmas-lights span:nth-child(3n)::before { height: 11px; }
.christmas-snow { position: absolute; inset: 0; overflow: hidden; }
.christmas-snow span {
    position: absolute;
    top: -8px;
    left: var(--snow-left);
    width: var(--snow-size);
    height: var(--snow-size);
    border-radius: 50%;
    background: #fff;
    opacity: 0.65;
    animation: christmas-snowfall var(--snow-duration) var(--snow-delay) linear infinite;
}
.snow-paused .christmas-snow span { animation-play-state: paused; }
.christmas-lookout {
    position: absolute;
    top: 44px;
    right: max(24px, env(safe-area-inset-right));
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 12px;
    max-width: calc(100% - 48px);
}
.christmas-penguin {
    pointer-events: auto;
    flex: 0 0 auto;
    width: 76px;
    height: 92px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.christmas-penguin svg { display: block; width: 100%; height: 100%; }
.christmas-penguin:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 4px;
}
.christmas-penguin-joke {
    position: relative;
    margin: 8px 0 0;
    width: 220px;
    max-width: calc(100vw - 130px);
    padding: 12px 14px;
    border-radius: 8px;
    background: #f5f6ef;
    color: #000f29;
    font-size: 14px;
    line-height: 1.45;
}
.christmas-penguin-joke[hidden] { display: none; }
.christmas-penguin-joke::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 100%;
    border: 7px solid transparent;
    border-left-color: #f5f6ef;
}
.penguin-flipper { transform-origin: 75px 66px; }
.is-waving .penguin-flipper { animation: christmas-wave 0.4s ease-in-out 4; }
@keyframes christmas-snowfall {
    to { transform: translate(24px, 460px); }
}
@keyframes christmas-wave {
    50% { transform: rotate(-28deg); }
}
@media (max-width: 600px) {
    .christmas-lights span:nth-child(even),
    .christmas-snow span:nth-child(n + 15) { display: none; }
    .christmas-lookout { top: 38px; right: 20px; }
    .christmas-penguin { width: 58px; height: 70px; }

}
@media (prefers-reduced-motion: reduce) {
    .christmas-snow { display: none; }
    .is-waving .penguin-flipper { animation: none; }
}
