/* Decorations are attached only when the home module enables this stylesheet. */
#sp-header .ak-new-year-hat {
    position: absolute;
    z-index: 1;
    inset: 9px auto auto 4px;
    width: clamp(25px, 3vw, 39px);
    height: clamp(19px, 2.1vw, 29px);
    transform: rotate(-17deg);
    background: linear-gradient(120deg, #e84439, #b91920);
    border-radius: 85% 50% 20% 18%;
    pointer-events: none;
}

#sp-header .ak-new-year-hat::before,
#sp-header .ak-new-year-hat::after {
    position: absolute;
    content: "";
    background: #fff7ed;
    box-shadow: 0 1px 3px #3c24194d;
}

#sp-header .ak-new-year-hat::before {
    inset: auto -4% -1px -7%;
    height: 32%;
    border-radius: 999px;
}

#sp-header .ak-new-year-hat::after {
    inset: 0 -2% auto auto;
    width: 29%;
    aspect-ratio: 1;
    border-radius: 50%;
}

#sp-header #sp-logo:has(> .ak-new-year-hat) {
    position: relative;
}

#sp-header .ak-new-year-garland {
    position: absolute;
    inset: 0 0 auto;
    height: 21px;
    pointer-events: none;
    background:
        radial-gradient(ellipse 7px 9px at 17px 8px, #ffe7ac 30%, #efad50 48%, #ffe7ac00 100%),
        radial-gradient(ellipse 7px 9px at 43px 13px, #ffe7d2 28%, #d77b68 48%, #ffe7d200 100%),
        radial-gradient(ellipse 7px 9px at 72px 13px, #ffedb9 30%, #efad50 48%, #ffedb900 100%),
        radial-gradient(ellipse 7px 9px at 98px 8px, #e4ebd4 30%, #86a986 48%, #e4ebd400 100%),
        radial-gradient(ellipse 70px 25px at 58px -16px, transparent 96%, #5d604e 97% 99%, transparent 100%);
    background-size: 116px 21px;
    background-repeat: repeat-x;
}

.akh-hero .ak-new-year-tree {
    position: absolute;
    z-index: -1;
    inset: auto -1% 9% auto;
    width: clamp(150px, 24vw, 380px);
    height: min(64%, 540px);
    background: url(new-year-tree.webp) bottom right / contain no-repeat;
    opacity: .78;
    pointer-events: none;
}

.ak-new-year-snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.akh-hero .ak-new-year-snow-control {
    position: absolute;
    z-index: 3;
    inset: 16px 16px auto auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #ffffff6b;
    border-radius: 50%;
    background: #171a22bd;
    color: #fff;
    cursor: pointer;
}

.akh-hero .ak-new-year-snow-control::before {
    content: "";
    display: block;
    width: 10px;
    height: 11px;
    margin: auto;
    border-inline: 3px solid currentColor;
}

.akh-hero .ak-new-year-snow-control[data-paused]::before {
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-left: 9px solid currentColor;
    border-right: 0;
}

@media (max-width: 991px) {
    .akh-hero .ak-new-year-tree {
        inset: 3% -6% auto auto;
        width: clamp(120px, 35vw, 265px);
        height: 57%;
        background-position: top right;
        opacity: .54;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ak-new-year-snow,
    .akh-hero .ak-new-year-snow-control {
        display: none;
    }
}
