.winter-snow {
    position: fixed;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.winter-snow span {
    position: absolute;
    left: var(--snow-x);
    top: -8px;
    width: var(--snow-size);
    height: var(--snow-size);
    border-radius: 50%;
    background: #eefaff;
    box-shadow: 0 0 2px 1px #8ab8ea70;
    opacity: .58;
    animation: winter-fall var(--snow-duration) var(--snow-delay) linear infinite;
}

.winter-snow span:nth-child(3n) { opacity: .32; }
.winter-snow span:nth-child(8n + 1) {
    width: 12px;
    height: 12px;
    background: none;
    box-shadow: none;
    color: #e3f5ff;
    font: 12px/1 system-ui, sans-serif;
    text-shadow: 0 0 2px #6e97ce;
}
.winter-snow span:nth-child(8n + 1)::before { content: '\2744'; }

@keyframes winter-fall {
    50% { transform: translate(var(--snow-drift), 52vh); }
    100% { transform: translate(0, calc(100vh + 20px)); }
}

@media (max-width: 600px) {
    .winter-snow span:nth-child(n + 19) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .winter-snow span { top: var(--snow-y); animation: none; opacity: .25; }
}

.winter-trigger {
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid currentColor;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.winter-trigger::before { content: '\2744'; margin-inline-end: .4em; }
.live-footer .winter-trigger, .mobile-footer .winter-trigger { display: block; margin: 12px auto 0; }
.winter-trigger[hidden] { display: none; }

.winter-dialog {
    box-sizing: border-box;
    width: min(380px, calc(100% - 32px));
    padding: 24px;
    border: 1px solid #a87cce80;
    border-radius: 20px;
    color: #fff6e9;
    background: #281440;
    box-shadow: 0 24px 64px #14091f80;
}

.winter-dialog::backdrop { background: #14091fbf; }
.winter-dialog h2 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: normal; }
.winter-dialog p { margin: 0 0 20px; color: #d7c7e6; font-size: .875rem; line-height: 1.5; }
.winter-options { display: grid; gap: 8px; }
.winter-dialog button {
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #b995ee80;
    border-radius: 10px;
    background: #3b2455;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.winter-dialog button[aria-pressed='true'] { border-color: #bce8ff; background: #bce8ff; color: #281440; }
.winter-dialog form { margin-top: 16px; text-align: end; }
.winter-dialog button:focus-visible, .winter-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.winter-dialog button:focus-visible { outline-color: #fff6e9; }

@media (max-width: 760px) {
    .tv-footer:has(.winter-trigger) { flex-wrap: wrap; }
}
