.fw-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45em;
    width: max-content;
    min-height: 36px;
    padding: 4px 11px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}
.fw-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.fw-toggle .fw-switch {
    display: inline-flex;
    align-items: center;
    width: 23px;
    padding: 2px;
    border: 1px solid currentColor;
    border-radius: 20px;
}
.fw-switch::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.fw-toggle[aria-pressed="true"] .fw-switch::before { transform: translateX(9px); }
.fw-snow {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 20;
    contain: strict;
    pointer-events: none;
}
.fw-flake {
    position: absolute;
    top: -32px;
    left: var(--fw-x);
    width: var(--fw-size);
    height: var(--fw-size);
    border-radius: 50%;
    background: #f4fbff;
    box-shadow: 0 0 1.5px 1px #5d849b88;
    opacity: var(--fw-opacity);
    animation: fw-fall var(--fw-duration) var(--fw-delay) linear infinite;
}
@keyframes fw-fall {
    0% { transform: translate3d(0, 0, 0); }
    52% { transform: translate3d(var(--fw-drift), 54vh, 0); }
    100% { transform: translate3d(0, calc(100vh + 36px), 0); }
}
.fw-flake:nth-child(2n) {
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
}
.fw-flake:nth-child(2n)::before {
    content: "❄︎";
    display: block;
    color: #8eb3c9;
    font: normal var(--fw-crystal)/1 "Segoe UI Symbol", Georgia, serif;
    text-shadow: 0 0 2px #fff;
}
.fw-flake:nth-child(4n)::before { content: "❅"; }
.fw-flake:nth-child(8n)::before { content: "❆"; color: #9fbcca; }
.fw-band {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 54px;
    pointer-events: none;
    background: url("lights-v2.svg") repeat-x center top / 284px 52px,
        linear-gradient(to bottom, #f8f2e7, transparent 90%);
}
.fw-band-home { margin-bottom: -54px; }
.fw-band-home::before, .fw-band-home::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(150px, 21vw, 320px);
    aspect-ratio: 2 / 1;
    background: url("fir.webp") no-repeat left top / contain;
}
.fw-band-home::after {
    left: auto;
    right: 0;
    transform: scaleX(-1);
}
.fw-art { position: relative; }
.fw-garland {
    position: absolute;
    top: 0;
    left: 3%;
    width: 94%;
    height: auto;
    overflow: visible;
    pointer-events: none;
}
.fw-snow[hidden], .fw-garland[hidden], .fw-band[hidden],
.bvi-active :is(.fw-toggle, .fw-snow, .fw-garland, .fw-band) { display: none !important; }
@media (max-width: 700px) {
    .fw-flake:nth-child(n+37) { display: none; }
    .fw-band { height: 38px; background-size: 198px 37px, 100% 100%; }
    .fw-band-home { margin-bottom: -34px; }
    .fw-band-home::before, .fw-band-home::after { width: clamp(96px, 25vw, 145px); }
    .fw-flake:nth-child(2n)::before { font-size: calc(var(--fw-crystal) * .85); }
}
@media print, (forced-colors: active) {
    .fw-toggle, .fw-snow, .fw-garland, .fw-band { display: none !important; }
}
