.header__logo.logo {
    position: relative;
    overflow: visible;
}

.lf-logo-garland {
    position: absolute;
    inset-inline-start: min(21%, 40px);
    top: 50%;
    width: min(75%, 143px);
    height: 49px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #506b45;
}

.dt .lf-logo-garland { color: #8daa7d; }

.lf-logo-garland::before,
.lf-logo-garland::after {
    position: absolute;
    inset-inline: 1% -2%;
    height: 10px;
    border: 1px solid currentColor;
    transform: rotate(-1deg);
    content: "";
}

.lf-logo-garland::before {
    top: 1px;
    border-color: currentColor currentColor transparent;
    border-radius: 38% 42% 0 0;
}

.lf-logo-garland::after {
    bottom: 1px;
    border-color: transparent currentColor currentColor;
    border-radius: 0 0 42% 38%;
}

.lf-logo-garland__bulb {
    position: absolute;
    z-index: 1;
    top: var(--y);
    left: var(--x);
    box-sizing: border-box;
    width: 8px;
    height: 10px;
    border: 1px solid var(--rim);
    border-radius: 65% 65% 53% 53%;
    background: radial-gradient(circle at 37% 32%, #fff 0, var(--light) 55%);
    box-shadow: 0 0 5px 2px var(--glow);
    transform: translate(-50%, -50%) rotate(var(--angle));
    animation: lf-logo-garland-chase 4.8s linear infinite;
    animation-delay: calc((var(--step) - 10) * .48s);
}

.lf-logo-garland__bulb:nth-child(4n + 1) { --light: #ffc429; --rim: #a95000; --glow: #ffb000; }
.lf-logo-garland__bulb:nth-child(4n + 2) { --light: #ff4d68; --rim: #a70d3d; --glow: #ff3157; }
.lf-logo-garland__bulb:nth-child(4n + 3) { --light: #4bddff; --rim: #0d6a98; --glow: #16c7ff; }
.lf-logo-garland__bulb:nth-child(4n) { --light: #a8f044; --rim: #38721b; --glow: #75e42a; }

.lf-logo-garland__bulb:nth-child(1) { --step: 0; --x: 5%; --y: 7%; --angle: -31deg; }
.lf-logo-garland__bulb:nth-child(2) { --step: 1; --x: 25%; --y: 2%; --angle: -16deg; }
.lf-logo-garland__bulb:nth-child(3) { --step: 2; --x: 47%; --y: 1%; --angle: 3deg; }
.lf-logo-garland__bulb:nth-child(4) { --step: 3; --x: 69%; --y: 1%; --angle: 12deg; }
.lf-logo-garland__bulb:nth-child(5) { --step: 4; --x: 91%; --y: 4%; --angle: 29deg; }
.lf-logo-garland__bulb:nth-child(6) { --step: 5; --x: 102%; --y: 72%; --angle: -39deg; }
.lf-logo-garland__bulb:nth-child(7) { --step: 6; --x: 82%; --y: 96%; --angle: -19deg; }
.lf-logo-garland__bulb:nth-child(8) { --step: 7; --x: 59%; --y: 99%; --angle: -6deg; }
.lf-logo-garland__bulb:nth-child(9) { --step: 8; --x: 37%; --y: 99%; --angle: 12deg; }
.lf-logo-garland__bulb:nth-child(10) { --step: 9; --x: 15%; --y: 95%; --angle: 25deg; }

@keyframes lf-logo-garland-chase {
    0%, 100% { opacity: 1; }
    18%, 84% { opacity: .51; }
}

#header .lf-header-snow {
    position: absolute;
    inset: 0 6px 0 min(211px, 62%);
    overflow: hidden;
    pointer-events: none;
    color: #5392a8;
}

.dt #header .lf-header-snow { color: #d0f0fe; }

.lf-header-snow__flake {
    position: absolute;
    top: -12px;
    left: var(--x);
    font: 12px/1 Arial, sans-serif;
    animation: lf-header-snow-fall var(--duration) linear infinite var(--delay);
}

.lf-header-snow__flake:nth-child(1) { --x: 3%; --duration: 8s; --delay: -3.2s; }
.lf-header-snow__flake:nth-child(2) { --x: 28%; --duration: 9s; --delay: -7s; }
.lf-header-snow__flake:nth-child(3) { --x: 51%; --duration: 7s; --delay: -1.4s; }
.lf-header-snow__flake:nth-child(4) { --x: 72%; --duration: 10s; --delay: -5s; }
.lf-header-snow__flake:nth-child(5) { --x: 92%; --duration: 8.6s; --delay: -6.2s; }

@keyframes lf-header-snow-fall {
    from { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; }
    19%, 72% { opacity: .55; }
    to { transform: translate3d(13px, 92px, 0) rotate(115deg); opacity: 0; }
}

@media (max-width: 700px) {
    .lf-header-snow__flake:nth-child(even) { display: none; }
}

.lf-tv-legacy .lf-logo-garland__bulb { animation: none; }
.lf-tv-legacy #header .lf-header-snow { display: none; }

@media (prefers-reduced-motion: reduce) {
    .lf-logo-garland__bulb { animation: none; }
    #header .lf-header-snow { display: none; }
}
