/* Transparent, click-through corner guest. No changes to Santa or global SVGs. */
.lfi-christmas-corner-tree {
    position: fixed;
    right: max(8px, env(safe-area-inset-right, 0px));
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    width: min(330px, calc(100vw - 20px), calc((100vh - 60px) * .6875));
    aspect-ratio: 330 / 480;
    /* Above the snow/snowplow (70/1000), below the dock (1010) and dialogs. */
    z-index: 1005;
    pointer-events: none;
    user-select: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    animation: lfiTreeEnter .65s cubic-bezier(.2,.8,.2,1) both;
}
.lfi-christmas-corner-tree > .lfi-tree-artwork,
.lfi-christmas-corner-tree > .lfi-tree-lights {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
}
.lfi-christmas-corner-tree > .lfi-tree-artwork { filter: drop-shadow(0 5px 5px #14334b33); }
.lfi-tree-lights { overflow: visible; }
.lfi-tree-bulb { animation: lfiTreeTwinkle 2.8s var(--tree-delay, 0s) ease-in-out infinite; }
.lfi-tree-bulb-halo { fill: #ffce63; opacity: .22; }
.lfi-tree-bulb-core { fill: #fff3c6; filter: drop-shadow(0 0 2px #ffc44d); }
.lfi-tree-bulb-ice .lfi-tree-bulb-halo { fill: #91e8ff; }
.lfi-tree-bulb-ice .lfi-tree-bulb-core { fill: #effcff; filter: drop-shadow(0 0 2px #83dfff); }
.lfi-tree-star { transform-origin: 165px 33px; animation: lfiTreeStar 3.8s ease-in-out infinite; filter: drop-shadow(0 0 5px #ffd26b); }
.lfi-christmas-corner-tree.lfi-tree-leaving { animation: lfiTreeExit .55s ease-in both; }
@keyframes lfiTreeEnter { from { transform: translateX(calc(100% + 24px)); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes lfiTreeExit { from { transform: translateX(0); opacity: 1; } to { transform: translateX(calc(100% + 24px)); opacity: 0; } }
@keyframes lfiTreeTwinkle { 0%, 100% { opacity: .55; } 45%, 65% { opacity: 1; } }
@keyframes lfiTreeStar { 0%, 100% { opacity: .6; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.035); } }
@media (max-width: 600px) {
    .lfi-christmas-corner-tree {
        --tree-bottom: max(16px, env(safe-area-inset-bottom, 0px), calc(var(--lfix-dock-height, 130px) + 24px));
        bottom: var(--tree-bottom);
        right: max(6px, env(safe-area-inset-right, 0px));
        width: min(260px, calc(100vw - 20px), calc((100vh - var(--tree-bottom) - 24px) * .6875));
    }
}
@supports (height: 100dvh) {
    .lfi-christmas-corner-tree { width: min(330px, calc(100vw - 20px), calc((100dvh - 60px) * .6875)); }
    @media (max-width: 600px) {
        .lfi-christmas-corner-tree { width: min(260px, calc(100vw - 20px), calc((100dvh - var(--tree-bottom) - 24px) * .6875)); }
    }
}
@media (prefers-reduced-motion: reduce), print { .lfi-christmas-corner-tree { display: none !important; } }
