/* New Year decorations (see newyear.js, config.php) */

.ny-snow {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
}

/* snow on/off button */
.ny-toggle {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 60;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #dadada;
    background: #fff;
    color: #6fa6cf;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    opacity: .75;
    transition: opacity .2s, color .2s;
}
.ny-toggle:hover { opacity: 1; }
.ny-toggle.is-off { color: #b5b5b5; }
.ny-toggle.is-off::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 1.6px;
    background: currentColor;
    transform: rotate(-45deg);
}

/* --- garland: hangs from the header bottom line --- */
/* attached to the whole header (full page width); the script makes it position:relative */
.ny-garland {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 1px;
    height: 34px;
    pointer-events: none;
    z-index: 5;
}
.ny-garland svg { display: block; overflow: visible; }
.ny-bulb {
    animation: ny-twinkle 4s ease-in-out infinite;
}
@keyframes ny-twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

/* --- train: rides on the header bottom line --- */
.ny-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}
.ny-train {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 159px;
    height: 30px;
    transform: translateX(-200px);
}
.ny-train.is-parked { transform: none; left: auto; right: 10px; }
.ny-train svg { display: block; }
.ny-wheel {
    transform-box: fill-box;
    transform-origin: center;
}
.ny-train.is-moving .ny-wheel { animation: ny-spin .6s linear infinite; }
@keyframes ny-spin { to { transform: rotate(360deg); } }

.ny-smoke {
    position: absolute;
    /* chimney of the locomotive: x = 193/212 of the width, top of the svg */
    left: 90%;
    top: -2px;
    width: 0;
    height: 0;
    display: none;
}
.ny-train.is-moving .ny-smoke { display: block; }
.ny-smoke span {
    position: absolute;
    left: -4px;
    top: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cfd5dc;
    opacity: 0;
    animation: ny-puff 1.8s ease-out infinite;
}
@keyframes ny-puff {
    0% { transform: translate(0, 0) scale(.5); opacity: .8; }
    100% { transform: translate(-34px, -22px) scale(1.8); opacity: 0; }
}

/* --- baubles: hang from the header bottom line --- */
.ny-baubles {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 1px;
    height: 0;
    pointer-events: none;
    z-index: 5;
}
.ny-bauble {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: 50% 0;
    animation: ny-swing 4s ease-in-out infinite alternate;
}
.ny-bauble i {
    display: block;
    width: 1px;
    background: #a9adb5;
}
.ny-bauble b {
    position: relative;
    display: block;
    border-radius: 50%;
    margin-top: 3px;
    background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.75) 0 12%, transparent 40%), var(--c);
    box-shadow: inset -2px -3px 4px rgba(0,0,0,.15);
}
.ny-bauble b::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -4px;
    width: 5px;
    height: 4px;
    margin-left: -2.5px;
    border-radius: 1px;
    background: #c9a24a;
}
@keyframes ny-swing {
    from { transform: rotate(-5deg); }
    to { transform: rotate(5deg); }
}


/* --- garland over the menu --- */
.ny-mgarland {
    position: absolute;
    top: 0;
    pointer-events: none;
    z-index: 5;
}
.ny-mgarland svg { display: block; overflow: visible; }
.ny-mbulb circle {
    fill: #ffc766;
    opacity: .75;
    transform-box: fill-box;
    transform-origin: center;
    filter: drop-shadow(0 0 1.5px rgba(255, 176, 60, .6));
    transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease;
}
.ny-mbulb.is-bright circle {
    opacity: 1;
    transform: scale(1.3);
    filter: drop-shadow(0 0 4px rgba(255, 170, 40, .95));
}

/* --- bauble in the top corner (brand colour) --- */
.ny-cbauble {
    position: absolute;
    top: 0;
    right: 8px; /* the script moves it into the page margin when there is one */
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: 50% 0;
    pointer-events: none;
}
.ny-cbauble i { display: block; width: 1px; height: 46px; background: #a9adb5; }
.ny-cbauble b {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    margin-top: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.8) 0 10%, transparent 38%), radial-gradient(circle at 60% 65%, #CD332B 0 55%, #a3241e 100%);
    box-shadow: 0 3px 6px rgba(205, 51, 43, .25);
}
.ny-cbauble b::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    width: 7px;
    height: 5px;
    margin-left: -3.5px;
    border-radius: 1px;
    background: #c9a24a;
}

/* --- snow cap on the logo --- */
.ny-cap {
    position: absolute;
    width: 20px;
    height: 8px;
    pointer-events: none;
    z-index: 5;
}
.ny-cap svg { display: block; filter: drop-shadow(0 1px 1px rgba(90, 130, 170, .25)); }
.ny-cap-flake {
    position: absolute;
    top: 5px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #b9d4e8;
    opacity: 0;
    animation: ny-capfall 1.6s ease-in 1 both;
}
@keyframes ny-capfall {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(var(--dx), 38px); opacity: 0; }
}

/* --- bell in the menu --- */
.ny-bell {
    position: absolute;
    left: 100%;
    top: 50%;
    margin: -12px 0 0 8px;
    line-height: 0;
    transform-origin: 50% 1px;
    pointer-events: none;
}
.ny-bell.is-ringing { animation: ny-ring 1.8s ease-in-out 1; }
.ny-bell.is-before { left: auto; right: 100%; margin: -12px 8px 0 0; }
@keyframes ny-ring {
    0%, 100% { transform: rotate(0); }
    12% { transform: rotate(16deg); }
    30% { transform: rotate(-13deg); }
    48% { transform: rotate(11deg); }
    66% { transform: rotate(-7deg); }
    84% { transform: rotate(3deg); }
}

/* --- spark along the header line --- */
.ny-sparkline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    pointer-events: none;
    z-index: 6;
}
.ny-spark {
    position: absolute;
    left: 0;
    top: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffd86b;
    box-shadow: 0 0 6px 2px rgba(240, 181, 66, .7);
    opacity: 0;
}
.ny-spark::after {
    content: "";
    position: absolute;
    right: 3px;
    top: 1.5px;
    width: 46px;
    height: 2px;
    background: linear-gradient(to left, rgba(240, 181, 66, .8), rgba(240, 181, 66, 0));
}
.ny-star {
    position: absolute;
    right: 0;
    top: -8px;
    line-height: 0;
    opacity: 0;
}

/* --- frost corner --- */
.ny-frost {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    pointer-events: none;
    line-height: 0;
}
.ny-frost path {
    fill: none;
    stroke: #9cc8e6;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: ny-grow .3s ease-out forwards;
}
.ny-frost circle {
    fill: #bfe0f4;
    opacity: 0;
    animation: ny-fadein .3s ease-out forwards;
}
.ny-frost.is-static path { stroke-dashoffset: 0; animation: none; }
.ny-frost.is-static circle { opacity: 1; animation: none; }
@keyframes ny-grow { to { stroke-dashoffset: 0; } }
@keyframes ny-fadein { to { opacity: 1; } }

/* --- bird tracks --- */
.ny-tracks {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30px;
    z-index: 40;
    pointer-events: none;
    transition: opacity 3s ease;
}
.ny-tracks.is-fading { opacity: 0; }
.ny-foot {
    position: absolute;
    line-height: 0;
    opacity: .7;
    transform: rotate(var(--r));
    animation: ny-fadein .25s ease-out;
}
.ny-tracks.is-rtl .ny-foot { transform: scaleX(-1) rotate(var(--r)); }

/* --- deer --- */
.ny-deer {
    position: fixed;
    bottom: 0;
    left: -100px;
    z-index: 45;
    line-height: 0;
    pointer-events: none;
    transform: translateY(100%);
}
.ny-deer.is-peeking { animation: ny-peek 5.2s ease-in-out 1; }
.ny-deer.is-peeking .ny-deer-eyes {
    transform-box: fill-box;
    transform-origin: center;
    animation: ny-blink 5.2s linear 1;
}
@keyframes ny-peek {
    0% { transform: translateY(100%); }
    14%, 32% { transform: translateY(62%); }
    44%, 84% { transform: translateY(36%); }
    100% { transform: translateY(100%); }
}
@keyframes ny-blink {
    0%, 62%, 66%, 100% { transform: scaleY(1); }
    64% { transform: scaleY(.1); }
}

/* --- gift by the copyright --- */
.ny-gift {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: -2px;
    margin-left: 8px;
    line-height: 0;
}
.ny-gift-lid {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: -1px;
    transform-origin: 10% 100%;
    transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.ny-gift.is-open .ny-gift-lid { transform: translateY(-6px) rotate(-16deg); }
.ny-pstar {
    position: absolute;
    left: 50%;
    top: 4px;
    margin-left: -5px;
    line-height: 0;
    opacity: 0;
    animation: ny-pstar 1.5s cubic-bezier(.2, .7, .4, 1) 1 both;
}
@keyframes ny-pstar {
    0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); opacity: 0; }
}

/* --- sled wandering in the background (behind content blocks), trail on a canvas --- */
.ny-sledbg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.ny-sledbg canvas { position: absolute; left: 0; top: 0; display: block; }
.ny-sled {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    transform-origin: 0 0;
}
.ny-sled svg { display: block; }

/* --- clock --- */
.ny-clock {
    position: absolute;
    width: 32px;
    height: 32px;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .6s ease, transform .6s cubic-bezier(.3, 1.5, .5, 1);
}
.ny-clock svg { display: block; }
.ny-clock.is-shown { opacity: 1; transform: scale(1); }
.ny-clock.is-gone { opacity: 0; transform: scale(.6); }
.ny-clock.is-midnight svg { filter: drop-shadow(0 0 5px rgba(240, 181, 66, .9)); }
.ny-dust {
    position: absolute;
    left: 15px;
    top: 15px;
    width: 2.5px;
    height: 2.5px;
    border-radius: 50%;
    background: #f0b542;
    box-shadow: 0 0 3px #ffd86b;
    opacity: 0;
    animation: ny-dust 1.3s ease-out 1 both;
}
@keyframes ny-dust {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

/* --- preview switcher (?ny=...) --- */
.ny-preview {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 70;
    width: max-content;
    max-width: min(920px, calc(100% - 24px));
    border-radius: 10px;
    background: rgba(34, 34, 34, .94);
    color: #fff;
    font: 500 12px/1.2 "Roboto", sans-serif;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.ny-preview-head {
    display: block;
    width: 100%;
    padding: 7px 12px;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    opacity: .85;
}
.ny-preview-head b { display: inline-block; margin-left: 4px; transition: transform .2s; }
.ny-preview.is-min .ny-preview-head b { transform: rotate(180deg); }
.ny-preview.is-min .ny-preview-body { display: none; }
.ny-preview-body { padding: 0 8px 8px; }
.ny-preview-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.ny-preview-row span { padding: 5px 4px; opacity: .6; }
.ny-preview a {
    color: #fff;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,.08);
}
.ny-preview a:hover { background: rgba(255,255,255,.2); }
.ny-preview a.is-active { background: #fff; color: #222; }
.ny-preview-code { padding: 2px 4px 0; opacity: .65; font-size: 11px; }
.ny-preview-code code { font-family: Consolas, monospace; user-select: all; }

@media (max-width: 767px) {
    .ny-train { width: 127px; height: 24px; }
    .ny-toggle { left: 12px; bottom: 12px; width: 34px; height: 34px; }
    .ny-preview { bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .ny-bulb, .ny-bauble, .ny-wheel, .ny-smoke span, .ny-bell { animation: none !important; }
}

@media (max-width: 767px) {
    .ny-cbauble { right: 3px; }
    .ny-cbauble i { height: 60px; }
    .ny-cbauble b { width: 18px; height: 18px; }
}

/* ===== interactions ===== */

/* garlands light up near the cursor */
.ny-bulb { transition: filter .6s ease; }
.ny-bulb.is-lit {
    animation: none;
    opacity: 1;
    filter: drop-shadow(0 0 3px rgba(255, 226, 140, 1)) drop-shadow(0 0 7px rgba(255, 200, 90, .8)) brightness(1.25);
}
.ny-mbulb.is-lit circle {
    opacity: 1;
    transform: scale(1.35);
    filter: drop-shadow(0 0 5px rgba(255, 170, 40, 1));
    transition-duration: .25s;
}

/* baubles under the header get pushed */
.ny-bauble-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: 50% 0;
}
.ny-bauble-in.is-pushed { animation: ny-hit 2s ease-out 1; }
@keyframes ny-hit {
    0% { transform: rotate(0); }
    12% { transform: rotate(var(--a)); }
    34% { transform: rotate(calc(var(--a) * -.6)); }
    56% { transform: rotate(calc(var(--a) * .35)); }
    78% { transform: rotate(calc(var(--a) * -.15)); }
    100% { transform: rotate(0); }
}

/* corner bauble: clickable, pops and grows back */
.ny-cbauble b { pointer-events: auto; cursor: pointer; transition: transform .12s ease-in, opacity .12s ease-in; }
.ny-cbauble b.is-popped { transform: scale(1.4); opacity: 0; }
.ny-cbauble b.is-regrow { animation: ny-regrow .9s cubic-bezier(.3, 1.6, .5, 1) 1; }
@keyframes ny-regrow { from { transform: scale(0); opacity: 1; } to { transform: scale(1); opacity: 1; } }
.ny-shard {
    position: fixed;
    z-index: 65;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    clip-path: polygon(50% 0, 100% 100%, 0 70%);
    pointer-events: none;
    animation: ny-shard 1.2s cubic-bezier(.2, .6, .4, 1) 1 both;
}
@keyframes ny-shard {
    0% { transform: translate(0, 0) rotate(0); opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* stars / confetti burst */
.ny-burst {
    position: fixed;
    z-index: 65;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    line-height: 0;
    pointer-events: none;
    animation: ny-burst 1.3s cubic-bezier(.15, .7, .4, 1) 1 both;
}
.ny-burst.is-confetti { width: 4px; height: 8px; margin: -4px 0 0 -2px; border-radius: 1px; }
@keyframes ny-burst {
    0% { transform: translate(0, 0) rotate(0) scale(.5); opacity: 1; }
    75% { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); opacity: 0; }
}

/* footer gift is a button now */
.ny-gift {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
}
.ny-gift:hover .ny-gift-lid { transform: translateY(-2px) rotate(-5deg); }
.ny-gift.is-open .ny-gift-lid { transform: translateY(-6px) rotate(-16deg); }
.ny-gift:focus-visible { outline: 2px solid #f0b542; outline-offset: 3px; border-radius: 2px; }

/* falling gift: drops slowly, turning */
.ny-drop {
    position: fixed;
    top: 0;
    z-index: 55;
    padding: 0;
    border: 0;
    background: none;
    line-height: 0;
    cursor: pointer;
    transition: opacity .2s;
}
.ny-drop-spin {
    display: block;
    animation: ny-spin-drop var(--spin-time, 7s) linear infinite;
}
@keyframes ny-spin-drop { to { transform: rotate(var(--spin, 360deg)); } }
.ny-drop:hover .ny-drop-spin svg { transform: scale(1.12); }
.ny-drop svg { display: block; transition: transform .2s; }
.ny-drop.is-burst { opacity: 0; }


/* deer can be touched while it peeks (it hides) */
.ny-deer.is-peeking { pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
    .ny-bauble-in, .ny-drop-spin { animation: none !important; }
}

/* ===== snowmen ===== */
.ny-sm { display: block; overflow: visible; }
.ny-sm .sm-arm, .ny-sm .sm-hat, .ny-sm .sm-eyes { transform-box: view-box; }
.ny-sm .sm-arm-r { transform-origin: 32px 31px; }
.ny-sm .sm-arm-l { transform-origin: 16px 31px; }
.ny-sm .sm-hat { transform-origin: 24px 12px; transition: transform .3s; }
.ny-sm .sm-eyes { transition: transform .15s; }
.is-blink .sm-eyes circle { transform: scaleY(.15); transform-box: fill-box; transform-origin: center; }
.is-waving .sm-arm-r { animation: ny-wave 1.6s ease-in-out 1; }
.is-waving .sm-hat { animation: ny-hat 1.6s ease-in-out 1; }
@keyframes ny-wave {
    0%, 100% { transform: rotate(0); }
    15%, 45%, 75% { transform: rotate(-38deg); }
    30%, 60% { transform: rotate(-12deg); }
}
@keyframes ny-hat {
    0%, 100% { transform: translateY(0) rotate(0); }
    20% { transform: translateY(-7px) rotate(-14deg); }
    40% { transform: translateY(0) rotate(0); }
}

/* 1) footer snowman: stands on the footer's top edge (zero-height strip before the footer) */
.ny-strip { position: relative; height: 0; z-index: 4; }
.ny-snowman {
    position: absolute;
    bottom: 0;
    left: 62%;
    margin-bottom: -2px;
    padding: 0;
    border: 0;
    background: none;
    line-height: 0;
    cursor: pointer;
    z-index: 3;
}
.ny-snowman:focus-visible { outline: 2px solid #f0b542; outline-offset: 2px; border-radius: 4px; }

/* 2) snowman built by scrolling */
.ny-build {
    position: fixed;
    left: 18px;
    bottom: 68px;
    z-index: 55;
    line-height: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.ny-build.is-hidden { opacity: 0; }
.ny-build .sm-b1, .ny-build .sm-b2, .ny-build .sm-head, .ny-build .sm-face, .ny-build .sm-scarf, .ny-build .sm-hat, .ny-build .sm-arm {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    transform: scale(0);
    opacity: 0;
    transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .3s;
}
.ny-build[data-stage="1"] .sm-b1,
.ny-build[data-stage="2"] .sm-b1, .ny-build[data-stage="2"] .sm-b2,
.ny-build[data-stage="3"] .sm-b1, .ny-build[data-stage="3"] .sm-b2, .ny-build[data-stage="3"] .sm-head,
.ny-build[data-stage="4"] .sm-b1, .ny-build[data-stage="4"] .sm-b2, .ny-build[data-stage="4"] .sm-head, .ny-build[data-stage="4"] .sm-face,
.ny-build[data-stage="5"] .sm-b1, .ny-build[data-stage="5"] .sm-b2, .ny-build[data-stage="5"] .sm-head, .ny-build[data-stage="5"] .sm-face,
.ny-build[data-stage="5"] .sm-scarf, .ny-build[data-stage="5"] .sm-hat, .ny-build[data-stage="5"] .sm-arm {
    transform: none;
    opacity: 1;
}
.ny-build .sm-btn { opacity: 0; transition: opacity .3s; }
.ny-build[data-stage="4"] .sm-btn, .ny-build[data-stage="5"] .sm-btn { opacity: 1; }
/* in the builder the arms/hat animate from their own boxes; waving keeps working */
.ny-build.is-waving .sm-arm-r { transform-box: view-box; transform-origin: 32px 31px; }
.ny-build.is-waving .sm-hat { transform-box: view-box; transform-origin: 24px 12px; }

/* 3) snowman peeking from behind a card (z-index -1: hidden by the card) */
.ny-peek {
    position: absolute;
    z-index: -1;
    line-height: 0;
    pointer-events: none;
}
.ny-peek-in { animation: ny-peekup 6s ease-in-out 1 both; }
@keyframes ny-peekup {
    0% { transform: translateY(0); }
    14%, 84% { transform: translateY(-36px); }
    100% { transform: translateY(0); }
}

@media (max-width: 767px) {
    .ny-snowman { left: 70%; }
    .ny-build { left: 12px; bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
    .ny-peek-in, .is-waving .sm-arm-r, .is-waving .sm-hat { animation: none !important; }
}

/* ===== fireworks in the background (behind content blocks) ===== */
.ny-fireworks {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ===== tree with gifts on top of the footer (site-independent) ===== */
.ny-ftree-wrap { position: relative; height: 0; z-index: 4; }
/* default: the very bottom of the page, over the content (takes no space); top is set by the script */
.ny-ftree-wrap.is-page-end { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 30; }
.ny-ftree-wrap.is-page-end .ny-ftree { bottom: 2px; }
/* only the tree and the gifts catch clicks, the rest of the box lets them through */
.ny-ftree-wrap, .ny-ftree { pointer-events: none; }
.ny-ftree-tree, .ny-fgift { pointer-events: auto; }
.ny-ftree { position: absolute; bottom: -1px; width: 132px; line-height: 0; }
.ny-ftree--right { right: 6%; }
.ny-ftree--left { left: 6%; }
.ny-ftree-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ny-ftree-tree { cursor: pointer; }
.ny-ftl { animation: ny-twinkle 2.4s ease-in-out infinite; }
.ny-ftree.is-party .ny-ftl { animation-duration: .45s; }
.ny-ftstar { transform-box: fill-box; transform-origin: center; transition: transform .3s, filter .3s; filter: drop-shadow(0 0 2px rgba(240, 181, 66, .6)); }
.ny-ftree.is-party .ny-ftstar { transform: scale(1.35) rotate(36deg); filter: drop-shadow(0 0 6px rgba(240, 181, 66, 1)); }
.ny-fgift { cursor: pointer; transform-box: fill-box; transform-origin: 50% 100%; }
.ny-fgift:hover { animation: ny-wobble .6s ease-in-out 1; }
.ny-fgift-lid { transform-box: fill-box; transform-origin: 0 100%; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ny-fgift.is-open .ny-fgift-lid { transform: translateY(-7px) rotate(-16deg); }
@keyframes ny-wobble {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-5deg); }
    60% { transform: rotate(4deg); }
}
@media (max-width: 767px) {
    .ny-ftree { width: 96px; }
    .ny-ftree-wrap.is-page-end .ny-ftree { width: 76px; }
    /* corners of phones are usually taken by fixed buttons (to top, chats, cookies): stand in the middle */
    .ny-ftree-wrap.is-page-end .ny-ftree { left: 50%; right: auto; transform: translateX(-50%); }
    .ny-snowman { left: 40%; }
}
@media (prefers-reduced-motion: reduce) {
    .ny-ftl, .ny-fgift:hover { animation: none !important; }
}
