/* Праздничный эффект — холст и кнопка «выключить снег» (js/snow-effect.js). */
.au-snow-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9990;
    transition: opacity .4s ease;
    contain: strict;
}

.au-snow-canvas--bounded {
    position: absolute;
    z-index: 2;
}

.au-snow-toggle {
    position: fixed;
    left: 22px;
    bottom: 80px;
    z-index: 989;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(13, 52, 96, .78);
    color: #fff;
    font-size: 19px;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(4, 22, 44, .28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    opacity: .82;
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.au-snow-toggle:hover,
.au-snow-toggle:focus-visible {
    opacity: 1;
    transform: scale(1.06);
}

.au-snow-toggle:focus-visible {
    outline: 3px solid #fec50c;
    outline-offset: 2px;
}

.au-snow-toggle span {
    display: block;
    transition: transform .5s ease;
}

.au-snow-toggle:hover span {
    transform: rotate(60deg);
}

/* Выключено посетителем — снежинка перечёркнута */
.au-snow-toggle.is-off {
    background: rgba(71, 85, 105, .78);
    opacity: .6;
}

.au-snow-toggle.is-off::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .au-snow-toggle {
        left: 16px;
        width: 36px;
        height: 36px;
        font-size: 17px;
        bottom: calc(var(--m-nav-offset, calc(72px + env(safe-area-inset-bottom, 0px))) + 66px);
    }
}

@media print {
    .au-snow-canvas,
    .au-snow-toggle {
        display: none !important;
    }
}

html.mourning .au-snow-toggle,
html.a11y-pause-media .au-snow-toggle {
    display: none !important;
}
