/* Landing Xmas theme (christmas-2026 pack).
   Scoped: body.le.lx = landing; .lx-scope = legal pages + onboarding wrappers.
   Winter background + snow + ornaments come from one fixed .lx-bg layer so the
   same markup works on templates that cannot change the <body> class. */

.lx-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.lx-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(4, 12, 29, .16), rgba(4, 15, 35, .22) 60%, #07162e),
        url('../img/theme/xmas/winter-background-1280.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.lx-bg::after {
    content: "";
    position: absolute;
    inset: 20px 0 auto;
    height: 720px;
    background: url('../img/theme/xmas/snow-overlay.svg') center top / cover no-repeat;
}

/* Ornaments (pine sprigs + blue baubles), decorative only */
.lx-orn {
    position: absolute;
    pointer-events: none;
}

.lx-sprig {
    top: 0;
    left: 0;
    width: 170px;
}

.lx-sprig.lx-right {
    left: auto;
    right: 0;
    transform: scaleX(-1);
}

.lx-bauble {
    top: 70px;
    left: 28px;
    width: 65px;
}

.lx-bauble.lx-right {
    left: auto;
    right: 28px;
}

/* Santa hat on the brand logo — only shown inside an xmas scope */
.lx-hat {
    display: none;
}

.lx .lx-hat,
.lx-scope .lx-hat {
    display: block;
    position: absolute;
    top: -10px;
    left: -7px;
    width: 24px;
    height: auto;
    transform: rotate(-18deg);
    z-index: 2;
    pointer-events: none;
}

.lx .le-brand,
.lx-scope .site-header-brand,
.lx .lp-modal-logo {
    position: relative;
}

/* Hat on the auth-modal logo bubble (smaller target, closer fit) */
.lx .lp-modal-logo .lx-hat {
    top: -9px;
    left: -6px;
    width: 20px;
}

/* Landing: replace the TrueBlue navy layers with the pack's winter scene */
body.le.lx::before {
    display: none;
}

body.le.lx::after {
    display: none;
}

/* Slightly deeper navy card under xmas, like the pack's .xmas .rooms */
.lx .le-livecard {
    background: linear-gradient(125deg, rgba(10, 30, 65, .90), rgba(5, 18, 41, .9));
}

/* Overlays that sit above the decor: keep the same cold navy tint */
.lx #age-gate-overlay {
    background: rgba(7, 18, 38, .9);
}

.lx .lp-modal-backdrop {
    background: rgba(7, 18, 38, .72);
}

/* Onboarding (standalone template): solid base under the fixed .lx-bg layer */
body.lx {
    background: #07162e;
}

@media (min-width: 1400px) {
    .lx-bg::before {
        background-image:
            linear-gradient(180deg, rgba(4, 12, 29, .16), rgba(4, 15, 35, .22) 60%, #07162e),
            url('../img/theme/xmas/winter-background-1920.webp');
    }
}

@media (max-width: 700px) {
    .lx-bg::before {
        background-image:
            linear-gradient(180deg, rgba(5, 14, 33, .65), rgba(4, 13, 32, .78) 56%, #07162e),
            url('../img/theme/xmas/winter-background-768.webp');
        background-size: auto 860px;
        background-position: center top;
        background-repeat: no-repeat;
    }

    .lx-bg::after {
        inset: 12px 0 auto;
        height: 480px;
    }

    .lx-sprig {
        width: 100px;
    }

    .lx-bauble {
        top: 42px;
        left: 10px;
        width: 40px;
    }

    .lx-bauble.lx-right {
        right: 10px;
    }
}

@media (max-width: 400px) {
    .lx-bg::before {
        background-image:
            linear-gradient(180deg, rgba(5, 14, 33, .65), rgba(4, 13, 32, .78) 56%, #07162e),
            url('../img/theme/xmas/winter-background-480.webp');
        background-size: 100% auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lx * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
