/* The layer starts below the measured header and never captures input. */
.pch-weather {
    position: fixed;
    inset: var(--pch-header-bottom, 0px) 0 0;
    z-index: 90;
    overflow: hidden;
    pointer-events: none;
}
.pch-weather[hidden], .pch-garland[hidden] { display: none !important; }
.pch-garland {
    position: absolute;
    inset: 0 0 auto;
    height: 22px;
    color: #f6d899;
    background:
        radial-gradient(circle at 18px 7px, #fff3c4 0 1px, #eabe74 2px, transparent 5px) 0 0 / 104px 22px repeat-x,
        radial-gradient(circle at 70px 10px, #fff3c4 0 1px, #eabe74 2px, transparent 5px) 0 0 / 104px 22px repeat-x,
        radial-gradient(ellipse 52px 8px at 52px 0, transparent 84%, #345a42 89% 100%, transparent 105%) 0 0 / 104px 22px repeat-x;
}
.pch-garland::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .9;
    background:
        repeating-linear-gradient(52deg, transparent 0 5px, #4c7455 5px 6px, transparent 6px 10px) 0 0 / 100% 5px no-repeat,
        repeating-linear-gradient(127deg, transparent 0 5px, #274f3a 5px 7px, transparent 7px 11px) 0 2px / 100% 4px no-repeat;
}
.pch-garland::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 46px 9px, #fff3c9 0 1px, transparent 1.8px),
                radial-gradient(circle at 47px 11px, #a6753d 0 3px, #75542f 3.4px, transparent 4px);
    background-size: 104px 22px;
}
.pch-snow { position: absolute; inset: 0; overflow: hidden; }
.pch-garland:not([hidden]) + .pch-snow { top: 20px; }
.pch-snowflake {
    position: absolute;
    top: -24px;
    left: var(--pch-x);
    color: #fffaf0;
    font: 400 var(--pch-size)/1 "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", sans-serif;
    text-shadow: 0 0 2px #315346cc;
    animation: pch-snowfall var(--pch-duration) linear var(--pch-delay) infinite;
}
.pch-weather-paused .pch-snowflake { animation-play-state: paused; }
@keyframes pch-snowfall {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10%, 90% { opacity: .82; }
    100% { transform: translate(var(--pch-drift), calc(100vh + 32px)) rotate(100deg); opacity: 0; }
}
@media (max-width: 767px) {
    .pch-garland { transform: scaleY(.72); transform-origin: top; }
    .pch-garland:not([hidden]) + .pch-snow { top: 14px; }
}
@media print { .pch-weather { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .pch-snow { display: none; }
    .pch-snowflake { animation: none; }
}
