/* Сезонное оформление Ten-Shop. */
.ts-new-year-logo {
    overflow: visible;
}

.ts-new-year-hat {
    pointer-events: none;
}

.ts-new-year-snow, .ts-new-year-stop {
    display: none;
}

@media (min-width: 992px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .ts-new-year-snow {
        display: block;
        position: fixed;
        inset: 0 0 auto;
        height: min(260px, 36vh);
        z-index: 1100;
        overflow: hidden;
        pointer-events: none;
    }

    .ts-new-year-snow > span {
        position: absolute;
        inset: var(--ts-ny-top) auto auto var(--ts-ny-left);
        width: var(--ts-ny-size);
        height: var(--ts-ny-size);
        border-radius: 50%;
        background: #f9fdff;
        box-shadow: 0 0 0 1px rgb(81 131 173 / 26%), 0 1px 3px rgb(28 57 88 / 12%);
        animation: ts-new-year-fall var(--ts-ny-duration) linear var(--ts-ny-delay) both;
    }

    .ts-new-year-stop {
        display: block;
        position: fixed;
        inset: auto auto 16px 16px;
        z-index: 1101;
        padding: 6px 10px;
        border: 1px solid #b7c9da;
        border-radius: 5px;
        background: #fff;
        color: #142c4b;
        font: 500 13px/1.3 Roboto, Arial, sans-serif;
        cursor: pointer;
    }

    .ts-new-year-stop:focus-visible {
        outline: 2px solid #184f83;
        outline-offset: 2px;
    }
}

@keyframes ts-new-year-fall {
    0% { opacity: 0; transform: translate3d(0, 0, 0); }
    10% { opacity: .85; }
    78% { opacity: .72; }
    100% { opacity: 0; transform: translate3d(var(--ts-ny-drift), 205px, 0); }
}
