/* ============================================
   CHRISTMAS THEME OVERRIDES
   All changes are scoped under .christmas-theme
   Remove the class from body to restore original

   Setup pass: color tokens and the decor fade.
   Component art (headers, corners, hero, chat) lands in a later pass,
   the same way server/assets/halloween-theme.css grew.
   ============================================ */

body.christmas-theme {
    /* --- Backgrounds: night evergreen instead of dark red --- */
    --color-bg-darkest: #071410;
    --color-bg-dark: #0e241c;
    --color-bg-mid: #143028;
    --color-bg-card: #1a3c30;
    --color-bg-accent: #245042;

    /* --- Primary accent: holly red (replaces gold) --- */
    --color-gold: #e23b3b;
    --color-gold-light: #ff8a8a;
    --color-gold-hover: #c42828;
    --color-gold-secondary: #f06a6a;
    --color-text-on-gold: #1a0505;

    /* --- Borders & focus --- */
    --color-border-subtle: #6d9080;
    --color-border-gold: rgba(226, 59, 59, 0.22);
    --color-brand-focus: #1e4d32;

    /* --- Warm accent: pine --- */
    --color-accent-warm: #3ddc84;

    /* --- Card gradients: pine to deep evergreen --- */
    --color-card-gradient-start: #1f6b45;
    --color-card-gradient-mid: #164e34;
    --color-card-gradient-end: #0c2e22;

    /* --- Shadow channel (deep green) ---
       Landing elevation is recomposed on .landing-promo-body. Changing this
       channel alone does not alter shadows :root already composed. */
    --shadow-warm: 7 20 16;

    /* --- Elevation glow: red instead of gold --- */
    --elev-glow-gold: 0 0 0 2px rgb(226 59 59 / 0.42), 0 0 28px rgb(226 59 59 / 0.25);
}

/* base.css composes these on :root from --shadow-warm, so the channel
   change above does not reach them. */
body.christmas-theme.landing-promo-body {
    --elev-1: 0 1px 2px rgb(var(--shadow-warm) / 0.28),
        0 2px 6px rgb(var(--shadow-warm) / 0.18);
    --elev-2: 0 4px 14px rgb(var(--shadow-warm) / 0.4),
        0 2px 4px rgb(var(--shadow-warm) / 0.22);
    --elev-3: 0 16px 44px rgb(var(--shadow-warm) / 0.52),
        0 8px 20px rgb(var(--shadow-warm) / 0.3);
}

/* --- Hero background: keep the bokeh photo, shift amber onto evergreen --- */
body.christmas-theme .bg-image {
    background-color: #145c38;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgb(31 107 69 / 28%), transparent 62%),
        radial-gradient(ellipse 55% 40% at 18% 82%, rgb(226 59 59 / 28%), transparent 58%),
        radial-gradient(ellipse 45% 36% at 84% 72%, rgb(61 220 132 / 10%), transparent 56%),
        linear-gradient(180deg, rgb(7 20 16 / 48%) 0%, rgb(7 20 16 / 12%) 42%, rgb(7 20 16 / 68%) 100%),
        url("/landing-promo/assets/img/bg-2560.webp");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: screen, screen, screen, multiply, luminosity;
}

/* --- Text gradient gold -> holly red / pine --- */
body.christmas-theme .text-gradient-gold {
    background: linear-gradient(135deg, #ff8a8a, #3ddc84);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Notification count badge: burnt orange. The base style isn't in this
   repo, so !important matches the Halloween override. --- */
body.christmas-theme .modern-notif-badge::after {
    background: linear-gradient(135deg, #bb5706, #bb5706) !important;
}

@keyframes christmas-decor-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Light string beside the header CTA, desktop only: Get Coins after login,
   Log In for guests (left of that button, not overlapping it). The file is
   1599×533 with the bulbs in the middle band (y 117–417). The red ball
   starts at y 165, 16% down that band. Shift up from the button center so
   the top of the ball meets the top of the 64px header. Glows sit on the
   red ball and the bulb to its right. */
@media (min-width: 1024px) {
    body.christmas-theme .header-bg.flex-1 a.btn-modern[href="/gold-coin-shop"],
    body.christmas-theme .header-bg.flex-1 a[href="/signin"] {
        position: relative;
        overflow: visible;
    }

    body.christmas-theme .header-bg.flex-1 a.btn-modern[href="/gold-coin-shop"]::before,
    body.christmas-theme .header-bg.flex-1 a[href="/signin"]::before {
        content: "";
        position: absolute;
        right: calc(100% + 0.35rem);
        top: 50%;
        z-index: 1;
        width: clamp(9.5rem, 21vw, 20rem);
        aspect-ratio: 1599 / 300;
        transform: translateY(calc(-1 * var(--nav-header-height, 64px) / 2 - 16%));
        background-image:
            radial-gradient(circle, rgb(255 96 48 / 0.78) 0%, rgb(255 36 24 / 0.32) 42%, transparent 72%),
            radial-gradient(circle, rgb(255 236 190 / 0.8) 0%, rgb(255 176 64 / 0.3) 46%, transparent 74%),
            url("https://assets.moozi.com/chrismas-theme/chrismas-light.png");
        background-repeat: no-repeat;
        background-position:
            44.3% 46%,
            69.2% 99%,
            center;
        background-size:
            3.4rem 3.4rem,
            2.6rem 2.6rem,
            100% 177.667%;
        pointer-events: none;
    }
}

/* Winter scene along the bottom of the screen and the drawer, desktop
   only. The picture itself is added by christmas-decor.js after the splash
   logo is on screen, same as the Halloween corner art. */
@media (min-width: 1024px) {
    body.christmas-theme::after,
    body.christmas-theme #drawer-navigation::after {
        content: "";
        left: 0;
        bottom: -2rem;
        width: 100vw;
        aspect-ratio: 1599 / 367;
        background-repeat: no-repeat;
        background-position: left bottom;
        background-size: 100vw calc(100vw * 533 / 1599);
        pointer-events: none;
    }

    body.christmas-theme::after {
        position: fixed;
        /* Under the header (z-60) and drawer (z-70). */
        z-index: 40;
    }

    body.christmas-theme #drawer-navigation {
        /* Keep the scene pinned while the menu list scrolls. */
        overflow: hidden;
    }

    body.christmas-theme #drawer-navigation::after {
        /* The drawer's transform is the containing block, so this slice
           lines up with the screen copy and slides with the drawer. */
        position: fixed;
        z-index: 0;
    }

    body.christmas-theme #drawer-navigation .drawer-navigation-wrapper {
        position: relative;
        z-index: 1;
    }

    body.christmas-theme:has(.w-full.transform-gpu.will-change-transform .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden)::after,
    body.christmas-theme:has(.w-full.transform-gpu.will-change-transform .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden) #drawer-navigation::after,
    body.christmas-theme:has(.w-full.h-full.flex.flex-col.justify-center.items-center.pb-20.pt-5)::after,
    body.christmas-theme:has(.w-full.h-full.flex.flex-col.justify-center.items-center.pb-20.pt-5) #drawer-navigation::after {
        content: none;
    }
}

/* Bauble hanging from a branch on the right edge, just under the nav bar.
   Desktop only. The file is 1024×1536 with empty space under the ball,
   so the box stops at y 1422. christmas-decor.js adds the picture. */
@media (min-width: 1024px) {
    body.christmas-theme::before {
        content: "";
        position: fixed;
        z-index: 55; /* under the header (z-60) and drawer (z-70) */
        top: var(--nav-header-height, 64px);
        right: 0;
        width: clamp(5rem, 4vw, 14rem);
        aspect-ratio: 1024 / 1422;
        background-repeat: no-repeat;
        background-position: right top;
        background-size: 100% auto;
        pointer-events: none;
    }

    body.christmas-theme:has(.w-full.transform-gpu.will-change-transform .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden)::before,
    body.christmas-theme:has(.w-full.h-full.flex.flex-col.justify-center.items-center.pb-20.pt-5)::before {
        content: none;
    }
}

/* Snowflake in the middle of the nav bar, between the logo and the
   buttons. Desktop only. It hangs off the inner <nav>, not .nav-container:
   on landing pages components.css makes nav sticky at z-index 1000, so
   anything on the container paints under the nav's opaque background.
   nav::after is the bottom rule. z-index lifts it over .header-bg.
   christmas-decor.js adds the picture. */
@media (min-width: 1024px) {
    body.christmas-theme .nav-container > nav::before {
        content: "";
        position: absolute;
        z-index: 1;
        top: 50%;
        left: 50%;
        width: clamp(2.25rem, 3vw, 2.75rem);
        aspect-ratio: 1;
        transform: translate(-50%, -50%);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        pointer-events: none;
    }

    /* A smaller flake just right of the logo, a little below its middle.
       The logo span is a flex item, so its box is the logo's width and
       the flake follows the logo (with the Santa hat on it). */
    body.christmas-theme .header-bg.flex-1 > span:first-child {
        position: relative;
    }

    body.christmas-theme .header-bg.flex-1 > span:first-child::after {
        content: "";
        position: absolute;
        z-index: 1;
        top: calc(50% + 0.5rem);
        left: calc(100% + 0.25rem);
        width: 1.5rem;
        aspect-ratio: 1;
        transform: translateY(-50%);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        pointer-events: none;
    }
}

/* Glowing lights across the header row, tablet and mobile. Scoped to
   .nav-container so the floating header on the mobile play page is left
   alone. The burger, logo and buttons are not positioned, so isolate the
   row and sit the lights at z-index -1: above the row's own background,
   under its content. The file scales with the screen: row width (the row
   is 100vw) plus --christmas-lights-spread past each side, centered, with
   height from its own proportions. --christmas-lights-lift pulls it up past
   the top edge. Both are shares of the screen width, so they scale with the
   picture; the box clips the overflow, so the page never scrolls sideways.
   The box is tall enough for the rest of it, so anything taller than the
   row hangs below the header instead of being cut off. Clicks pass through
   to the buttons and the page. */
@media (max-width: 1023px) {
    body.christmas-theme .nav-container > nav > .relative.header-bg {
        isolation: isolate;
        --christmas-lights-lift: 8vw;
        --christmas-lights-spread: 5vw;
    }

    body.christmas-theme .nav-container > nav > .relative.header-bg::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: 0;
        left: 0;
        right: 0;
        height: 100vw;
        background: url("https://assets.moozi.com/chrismas-theme/header-Glowing-Lights.png") center top calc(-1 * var(--christmas-lights-lift)) / calc(100% + 2 * var(--christmas-lights-spread)) auto no-repeat;
        pointer-events: none;
    }
}

/* Snowy divider resting on the top edge of the tab bar, tablet and mobile
   (the bar is lg:hidden). Bar width plus --christmas-divider-spread past
   each side, centered, at the file's own proportions, so it scales with the
   screen; the box clips the sides, so the page never scrolls sideways. Its
   bottom sits --christmas-divider-overlap below the bar's top edge and the
   rest of the picture rises above the bar. ::before paints before the bar's
   content wrapper, so the tabs stay on top, and clicks pass through to the
   tabs and page. */
@media (max-width: 1023px) {
    body.christmas-theme .bottom-tab-bar.fixed.bottom-0.left-0.right-0.z-50.lg\:hidden.bg-surface-app.backdrop-blur-xl.border-t {
        overflow: visible;
        --christmas-divider-overlap: 17vw;
        --christmas-divider-spread: 1vw;
        --christmas-snow-drop: 4vw;
    }

    body.christmas-theme .bottom-tab-bar.fixed.bottom-0.left-0.right-0.z-50.lg\:hidden.bg-surface-app.backdrop-blur-xl.border-t::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(100% - var(--christmas-divider-overlap));
        height: 100vw;
        background: url("https://assets.moozi.com/chrismas-theme/Isolated-Snowy%20Divider-Border.png") center bottom / calc(100% + 2 * var(--christmas-divider-spread)) auto no-repeat;
        pointer-events: none;
    }

    /* Snow along the very bottom of the bar, sized like the divider: bar
       width plus --christmas-divider-spread past each side, centered, at
       the file's own proportions. --christmas-snow-drop pushes it below the
       bar's bottom edge (the screen edge clips that part) and the rest
       rises above the bar. z-index 1 paints it in front of the divider;
       the tab buttons are lifted to z-index 2 below so they stay on top,
       and pointer-events: none keeps everything tappable through it. */
    body.christmas-theme .bottom-tab-bar.fixed.bottom-0.left-0.right-0.z-50.lg\:hidden.bg-surface-app.backdrop-blur-xl.border-t::after {
        content: "";
        position: absolute;
        z-index: 1;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vw;
        background: url("https://assets.moozi.com/chrismas-theme/bottom-snowy.png") center bottom calc(-1 * var(--christmas-snow-drop)) / calc(100% + 2 * var(--christmas-divider-spread)) auto no-repeat;
        pointer-events: none;
    }

    /* Tab buttons above the snow. The wrappers around them are not
       stacking contexts, so this z-index competes with the snow's in the
       bar's own stacking context. The center button is already z-20. */
    body.christmas-theme .bottom-tab-bar .bottom-tab-item {
        position: relative;
        z-index: 2;
    }

    body.christmas-theme:has(.w-full.transform-gpu.will-change-transform .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden) .bottom-tab-bar.fixed.bottom-0.left-0.right-0.z-50.lg\:hidden.bg-surface-app.backdrop-blur-xl.border-t::before,
    body.christmas-theme:has(.w-full.h-full.flex.flex-col.justify-center.items-center.pb-20.pt-5) .bottom-tab-bar.fixed.bottom-0.left-0.right-0.z-50.lg\:hidden.bg-surface-app.backdrop-blur-xl.border-t::before,
    body.christmas-theme:has(.w-full.transform-gpu.will-change-transform .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden) .bottom-tab-bar.fixed.bottom-0.left-0.right-0.z-50.lg\:hidden.bg-surface-app.backdrop-blur-xl.border-t::after,
    body.christmas-theme:has(.w-full.h-full.flex.flex-col.justify-center.items-center.pb-20.pt-5) .bottom-tab-bar.fixed.bottom-0.left-0.right-0.z-50.lg\:hidden.bg-surface-app.backdrop-blur-xl.border-t::after {
        content: none;
    }
}

/* Snowy evergreen along the top edge of each gold coin shop package card,
   on every screen (desktop too, as on phones and tablets). It hangs off
   the card's p-1 wrapper, not the card, so the card's overflow-hidden
   does not clip it. The 0.1rem inset (the
   wrapper's padding is 0.25rem) makes it a hair wider than the card on
   each side, centered, at the file's own proportions, so it scales with
   the card.
   --christmas-evergreen-lift is extra top padding on the wrapper: the card
   moves down by it while the picture stays put, so the picture rises that
   far above the card's top edge and still sits inside the slide, where the
   shop slider's overflow-hidden does not clip it. It is a share of the
   width (padding percentages resolve against the width), so the lift
   scales with the picture. isolation
   keeps z-index 1 local: it paints over this card only. Clicks pass
   through. */
body.christmas-theme .flex-shrink-0.w-full.p-1.h-full:has(> .relative.overflow-hidden.rounded-ds-md.border.border-white\/10.bg-gradient-to-b.backdrop-blur-sm.shadow-elev-3.h-full) {
    --christmas-evergreen-lift: 5%;
    --christmas-evergreen-drop: 5%;
    position: relative;
    isolation: isolate;
    padding-top: calc(0.25rem + var(--christmas-evergreen-lift));
    padding-bottom: calc(0.25rem + var(--christmas-evergreen-drop));
}

/* The matching evergreen along the card's bottom edge, built the same
   way: --christmas-evergreen-drop is extra bottom padding, so the
   picture hangs that far below the card and the slider does not clip
   it. Painted with the top one, over the card. */
body.christmas-theme .flex-shrink-0.w-full.p-1.h-full:has(> .relative.overflow-hidden.rounded-ds-md.border.border-white\/10.bg-gradient-to-b.backdrop-blur-sm.shadow-elev-3.h-full)::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0.10rem;
    background: url("https://assets.moozi.com/chrismas-theme/bottom-Snowy-Evergreen-Christmas.png") center bottom / 105% auto no-repeat;
    pointer-events: none;
}

body.christmas-theme .flex-shrink-0.w-full.p-1.h-full:has(> .relative.overflow-hidden.rounded-ds-md.border.border-white\/10.bg-gradient-to-b.backdrop-blur-sm.shadow-elev-3.h-full)::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0.10rem;
    background: url("https://assets.moozi.com/chrismas-theme/top-Snowy-Evergreen-Christmas.png") center top / 100% auto no-repeat;
    pointer-events: none;
}

/* Falling flakes. christmas-decor.js adds the layer after the splash logo.
   Each span is one copy of Snowflake.png, sized and timed with custom
   properties so the fall is uneven. Clicks pass through. */
@keyframes christmas-snow-fall {
    0% {
        transform: translate3d(0, -15vh, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(var(--snow-drift, 1rem), 50vh, 0) rotate(180deg);
    }
    100% {
        transform: translate3d(calc(var(--snow-drift, 1rem) * -0.35), 115vh, 0) rotate(360deg);
    }
}

body.christmas-theme #christmas-snow {
    position: fixed;
    inset: 0;
    z-index: 45; /* above the winter strip, under the tab bar, header, and drawer */
    overflow: hidden;
    pointer-events: none;
    animation: christmas-decor-in 0.8s ease both;
}

body.christmas-theme #christmas-snow span {
    position: absolute;
    top: 0;
    left: var(--snow-left, 10%);
    width: var(--snow-size, 1rem);
    height: var(--snow-size, 1rem);
    opacity: var(--snow-opacity, 0.75);
    background: url("https://assets.moozi.com/chrismas-theme/Snowflake.png") center / contain no-repeat;
    animation: christmas-snow-fall var(--snow-duration, 14s) linear var(--snow-delay, 0s) infinite;
}

body.christmas-theme:has(.w-full.transform-gpu.will-change-transform .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden) #christmas-snow,
body.christmas-theme:has(.w-full.h-full.flex.flex-col.justify-center.items-center.pb-20.pt-5) #christmas-snow {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    body.christmas-theme #christmas-snow {
        display: none;
    }
}

/* Garland across the top of the gold coin shop card. The file is 1599×533.
   The title row sits on the light string. The headline stays just under it,
   and the corner pine frames that title instead of covering it. */
body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden {
    position: relative;
    container-type: inline-size;
}

body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -2.5rem;
    left: 0;
    width: 100%;
    aspect-ratio: 1599 / 533;
    background: url("https://assets.moozi.com/chrismas-theme/top-Christmas-Garland.png") left top / 100% 100% no-repeat;
    pointer-events: none;
}

/* Shop-card corners and the snow drift along the bottom-left.
   top-left-snow1.png is a tight strip (1599×215), so it sits on the
   card edge with only a small hang. Clicks pass through. */
body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    --christmas-corner: clamp(8.5rem, 36%, 16rem);
    --christmas-right: clamp(12rem, 22cqw, 40rem);
    --snow-left-w: 15cqw;
    --snow-shift: 72cqw;
    background-image:
        url("https://assets.moozi.com/chrismas-theme/top-left-snow1.png"),
        url("https://assets.moozi.com/chrismas-theme/corner-bottom-left-Ornament.png"),
        url("https://assets.moozi.com/chrismas-theme/corner-bottom-right-warm%20lights.png");
    background-repeat: no-repeat;
    background-position:
        left var(--snow-shift) bottom 0,
        left calc(var(--christmas-corner) * -0.1) bottom calc(var(--christmas-corner) * -0.07),
        right calc(var(--christmas-right) * -0.01) bottom calc(var(--christmas-right) * 1031 / 1526 * -0.04);
    background-size:
        var(--snow-left-w) auto,
        var(--christmas-corner) var(--christmas-corner),
        var(--christmas-right) auto;
    pointer-events: none;
}

body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shrink-0.flex.items-center.h-14 {
    position: relative;
    z-index: 4;
    anchor-name: --shop-header;
    background-color: transparent;
    border-bottom-color: #684041;
}

/* Snow caps on the shop header rim. Live on the frame around the card so
   the card's overflow:hidden does not clip them. The new files are tight
   strips (almost no empty sky), so only a small hang onto the header. */
body.christmas-theme .h-full.w-full.flex.items-stretch.justify-center:has(> .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden) {
    position: relative;
}

body.christmas-theme .h-full.w-full.flex.items-stretch.justify-center:has(> .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden)::before {
    content: "";
    position: absolute;
    z-index: 6;
    position-anchor: --shop-header;
    top: auto;
    right: auto;
    bottom: anchor(top);
    /* top-left-snow1.png 1599×215 */
    --header-snow: min(9rem, max(5rem, calc(anchor-size(width) * 0.14)));
    left: calc(anchor(left) - var(--header-snow) * 53 / 1599);
    width: var(--header-snow);
    height: calc(var(--header-snow) * 215 / 1599);
    transform: translateY(35%);
    background: url("https://assets.moozi.com/chrismas-theme/top-left-snow1.png") left bottom / 100% 100% no-repeat;
    pointer-events: none;
}

body.christmas-theme .h-full.w-full.flex.items-stretch.justify-center:has(> .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden)::after {
    content: "";
    position: absolute;
    z-index: 6;
    position-anchor: --shop-header;
    top: auto;
    left: auto;
    bottom: anchor(top);
    /* top-right-snow2.png 1598×307 */
    --header-snow: min(9rem, max(5rem, calc(anchor-size(width) * 0.14)));
    right: calc(anchor(right) - var(--header-snow) * 22 / 1598);
    width: var(--header-snow);
    height: calc(var(--header-snow) * 307 / 1598);
    transform: translateY(35%);
    background: url("https://assets.moozi.com/chrismas-theme/top-right-snow2.png") right bottom / 100% 100% no-repeat;
    pointer-events: none;
}

/* Below 1024px: hide the desktop garland/corners on the card, and hang a
   string of lights from the card top instead. Header snow caps stay on
   (tablet and mobile). --christmas-shop-lights-lift pulls the lights up
   past the empty band so the wire meets the header. They paint over the
   scroll area (z-index 2) but under the header row (z-index 4). */
@media (max-width: 1023px) {
    body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden {
        --christmas-shop-lights-lift: 4%;
    }

    body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden::before {
        z-index: 3;
        inset: 0;
        width: auto;
        aspect-ratio: auto;
        margin-top: calc(-1 * var(--christmas-shop-lights-lift));
        background: url("https://assets.moozi.com/chrismas-theme/header-Lights-Christmas.png") center top / 100% auto no-repeat;
    }

    body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden::after {
        content: none;
    }

    /* Slightly smaller caps on tablet. */
    body.christmas-theme .h-full.w-full.flex.items-stretch.justify-center:has(> .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden)::before,
    body.christmas-theme .h-full.w-full.flex.items-stretch.justify-center:has(> .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden)::after {
        --header-snow: min(7rem, max(4rem, calc(anchor-size(width) * 0.18)));
    }
}

/* No header snow caps on phones. */
@media (max-width: 767px) {
    body.christmas-theme .h-full.w-full.flex.items-stretch.justify-center:has(> .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden)::before,
    body.christmas-theme .h-full.w-full.flex.items-stretch.justify-center:has(> .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden)::after {
        content: none;
    }
}

/* Surface fill behind the shop title only, from the left edge through the label. */
body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shrink-0.flex.items-center.h-14 > .flex.items-center.gap-2,
body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shrink-0.flex.items-center.h-14 > button {
    position: relative;
    z-index: 1;
}

body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shrink-0.flex.items-center.h-14 > .flex.items-center.gap-2 {
    align-self: stretch;
    margin-left: -1rem;
    padding-left: 1rem;
    padding-right: 5.75rem;
    background-color: transparent;
    background-image: linear-gradient(
        to right,
        rgb(var(--surface-app)) 0%,
        rgb(var(--surface-app)) 58%,
        rgb(var(--surface-app) / 0) 100%
    );
}

@media (min-width: 640px) {
    body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shrink-0.flex.items-center.h-14 > .flex.items-center.gap-2 {
        margin-left: -1.5rem;
        padding-left: 1.5rem;
    }
}

/* The fill behind the title only exists to lift it off the desktop garland.
   Below 1024px it would hide the left half of the lights, so it goes. */
@media (max-width: 1023px) {
    body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shrink-0.flex.items-center.h-14 > .flex.items-center.gap-2 {
        background-image: none;
    }
}

/* Garland on the right end of the shop's mobile sort/filter pill (the pill
   is lg:hidden). Anchored to the right edge at the file's own proportions,
   --christmas-filter-garland-scale times the pill height. It is pushed
   --christmas-filter-garland-right past the right edge, and its middle sits
   --christmas-filter-garland-down below a point 70% of the way down the
   pill; the pill does not clip, so
   the part outside it stays visible. isolation and z-index -1 keep it over
   the pill's fill but under its icon, label and count badge. Clicks pass
   through to the pill. */
@media (max-width: 1023px) {
    body.christmas-theme .flex-1.min-w-0.h-10.bg-surface-elevated.border.border-border-strong.rounded-full.flex.items-center.px-3.gap-2.cursor-pointer {
        position: relative;
        isolation: isolate;
        --christmas-filter-garland-scale: 1.3;
        --christmas-filter-garland-right: 0.5rem;
        --christmas-filter-garland-down: 0.25rem;
    }

    body.christmas-theme .flex-1.min-w-0.h-10.bg-surface-elevated.border.border-border-strong.rounded-full.flex.items-center.px-3.gap-2.cursor-pointer::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: calc(70% + var(--christmas-filter-garland-down));
        right: calc(-1 * var(--christmas-filter-garland-right));
        width: 100%;
        height: calc(100% * var(--christmas-filter-garland-scale));
        transform: translateY(-50%);
        background: url("https://assets.moozi.com/chrismas-theme/sort-filter-garlan.png") right center / auto 100% no-repeat;
        pointer-events: none;
    }
}

/* Garland on the left, just below the shop's Sort & Filter bar, tablet and
   mobile (the category row in between is lg:flex, so on these screens the
   first package group's title comes next). Its top sits 70% of the way
   down the filter bar, plus --christmas-group-garland-down, so it tucks
   up behind the bar: --christmas-group-garland-h tall at the file's own
   proportions, anchored to the left, pushed --christmas-group-garland-left
   into the scroll area's side padding. The padding is 8px from 320px up
   (12px below that), and the scroll area clips anything pushed further, so
   at 0.95rem the outer ~7px runs off the screen's left edge.
   The shop content column is isolated, so z-index -1 paints it over the
   panel but under the content it overlaps, such as the filter pill and
   the group title. Clicks pass through. */
@media (max-width: 1023px) {
    body.christmas-theme .w-full.h-full.flex.flex-col.justify-center.items-center.pb-20.pt-5 {
        isolation: isolate;
    }

    body.christmas-theme .w-full.h-full.flex.flex-col.justify-center.items-center.pb-20.pt-5 > .w-full.mb-3:has(.flex-1.min-w-0.h-10.bg-surface-elevated.rounded-full) {
        position: relative;
        --christmas-group-garland-h: 5rem;
        --christmas-group-garland-left: 0.95rem;
        --christmas-group-garland-down: 0px;
    }

    body.christmas-theme .w-full.h-full.flex.flex-col.justify-center.items-center.pb-20.pt-5 > .w-full.mb-3:has(.flex-1.min-w-0.h-10.bg-surface-elevated.rounded-full)::after {
        content: "";
        position: absolute;
        z-index: -1;
        top: calc(70% + var(--christmas-group-garland-down));
        left: calc(-1 * var(--christmas-group-garland-left));
        width: 100%;
        height: var(--christmas-group-garland-h);
        background: url("https://assets.moozi.com/chrismas-theme/left-garlan.png") left top / auto 100% no-repeat;
        pointer-events: none;
    }
}

/* Pine leaves on the right end of the Packages / Custom Buy / Redeem Code
   tab bar, tablet and mobile. --christmas-tabs-leaves-h tall at the file's
   own proportions, anchored to the bar's right edge, centered on it, pushed
   --christmas-tabs-leaves-right past that edge and
   --christmas-tabs-leaves-down below center (negative raises it). On
   phones the bar is full width and the scroll area's 8px side padding is
   all the room there is, so at 2.5rem the outer 32px runs off the screen;
   tablets have more, since the bar stops at max-w-2xl. The wrapper inside
   the shop modal's scroll area clips sideways overflow at the screen edge
   (clip, not hidden, so nothing can scroll it sideways); on the shop page,
   #app and body already hide it.
   isolation and z-index -1 keep the leaves over the bar's fill but under
   the tab buttons, so the labels and the active tab stay on top, and
   clicks pass through. */
@media (max-width: 1023px) {
    body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shop-modal-scroll > .w-full {
        overflow-x: clip;
    }

    body.christmas-theme .w-full.max-w-2xl.mx-auto > .flex.bg-surface-elevated.rounded-full.p-1.border.border-border-strong.gap-1 {
        position: relative;
        isolation: isolate;
        --christmas-tabs-leaves-h: 4.5rem;
        --christmas-tabs-leaves-right: 2.5rem;
        --christmas-tabs-leaves-left: 2.5rem;
        --christmas-tabs-leaves-down: -2.50rem;
    }

    body.christmas-theme .w-full.max-w-2xl.mx-auto > .flex.bg-surface-elevated.rounded-full.p-1.border.border-border-strong.gap-1::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: calc(50% + var(--christmas-tabs-leaves-down));
        right: calc(-1 * var(--christmas-tabs-leaves-right));
        width: 100%;
        height: var(--christmas-tabs-leaves-h);
        transform: translateY(-50%);
        background: url("https://assets.moozi.com/chrismas-theme/right-pine-tree-leaves.png") right center / auto 100% no-repeat;
        pointer-events: none;
    }

    /* The matching leaves on the left end: same height and lift, anchored
       to the left edge and pushed --christmas-tabs-leaves-left past it. */
    body.christmas-theme .w-full.max-w-2xl.mx-auto > .flex.bg-surface-elevated.rounded-full.p-1.border.border-border-strong.gap-1::after {
        content: "";
        position: absolute;
        z-index: -1;
        top: calc(50% + var(--christmas-tabs-leaves-down));
        left: calc(-1 * var(--christmas-tabs-leaves-left));
        width: 100%;
        height: var(--christmas-tabs-leaves-h);
        transform: translateY(-50%);
        background: url("https://assets.moozi.com/chrismas-theme/left-pine-tree-leaves.png") left center / auto 100% no-repeat;
        pointer-events: none;
    }
}

/* Snowflake in the bottom-right corner of each package card's value box
   (the coin amounts), on every screen. The box's content is left-aligned,
   so the corner is empty. --christmas-value-flake square, inset
   --christmas-value-flake-inset from the bottom and right edges. Clicks
   pass through. */
body.christmas-theme .relative.overflow-hidden.rounded-ds-md.border.border-white\/10.bg-gradient-to-b.backdrop-blur-sm.shadow-elev-3.h-full .flex.flex-col.items-start.justify-center.gap-2.relative {
    --christmas-value-flake: 1.5rem;
    --christmas-value-flake-inset: 0.5rem;
}

body.christmas-theme .relative.overflow-hidden.rounded-ds-md.border.border-white\/10.bg-gradient-to-b.backdrop-blur-sm.shadow-elev-3.h-full .flex.flex-col.items-start.justify-center.gap-2.relative::after {
    content: "";
    position: absolute;
    right: var(--christmas-value-flake-inset);
    bottom: var(--christmas-value-flake-inset);
    width: var(--christmas-value-flake);
    aspect-ratio: 1;
    background: url("https://assets.moozi.com/chrismas-theme/Snowflake.png") center / contain no-repeat;
    pointer-events: none;
}

/* Another one near the top-right of the card's Buy button. The button
   clips its own overflow and uses its ::after for the shine, so the
   flake hangs off the row around it, which is the button's size. It
   sits almost entirely above the button (only its bottom tenth overlaps
   the top edge), centered --christmas-buy-flake-right in from the right
   end, so half of it reaches past that end; the card's overflow-hidden
   trims whatever passes the card padding. The size follows the screen
   width (4vw, kept between 1.75rem and 3rem: the 1.75rem floor up to
   700px, then growing to the 3rem cap from 1200px) and the offset is a
   tenth of it, so the placement holds at every size. It paints over the button; clicks pass through. */
body.christmas-theme .relative.overflow-hidden.rounded-ds-md.border.border-white\/10.bg-gradient-to-b.backdrop-blur-sm.shadow-elev-3.h-full .mt-auto.pt-3 > .flex.flex-row:has(> button.btn-modern) {
    position: relative;
    --christmas-buy-flake: clamp(1.75rem, 4vw, 3rem);
    --christmas-buy-flake-right: calc(var(--christmas-buy-flake) * 0.1);
}

body.christmas-theme .relative.overflow-hidden.rounded-ds-md.border.border-white\/10.bg-gradient-to-b.backdrop-blur-sm.shadow-elev-3.h-full .mt-auto.pt-3 > .flex.flex-row:has(> button.btn-modern)::after {
    content: "";
    position: absolute;
    top: 0;
    right: var(--christmas-buy-flake-right);
    width: var(--christmas-buy-flake);
    aspect-ratio: 1;
    transform: translate(50%, -90%);
    background: url("https://assets.moozi.com/chrismas-theme/Snowflake.png") center / contain no-repeat;
    pointer-events: none;
}

/* Sprig on top of the lobby's round filter button in the mobile search bar
   (the bar is lg:hidden). A --christmas-sprig-w by --christmas-sprig-h
   box, the art contained in it at its own proportions (so a wide sprig
   grows with the width until the height stops it), centered on the
   button's top edge and lifted --christmas-sprig-lift of its own height.
   The box may be wider than the button; it is centered, so it spreads
   evenly to both sides. The count badge comes later in the button, so it
   paints over the sprig; clicks pass through to the button. */
@media (max-width: 1023px) {
    /* The button itself is widened to 3.5rem (from w-10) to make room for
       the sprig. It keeps h-10, so aspect-square gives way and it reads as
       a short pill; the search field beside it is flex-1 and takes up the
       difference. */
    body.christmas-theme button.flex-shrink-0.w-10.h-10.bg-surface-elevated.rounded-full.relative.aspect-square {
        width: 3.5rem;
        --christmas-sprig-w: 4.5rem;
        --christmas-sprig-h: 3.5rem;
        --christmas-sprig-lift: 55%;
    }

    body.christmas-theme button.flex-shrink-0.w-10.h-10.bg-surface-elevated.rounded-full.relative.aspect-square::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: var(--christmas-sprig-w);
        height: var(--christmas-sprig-h);
        transform: translate(-50%, calc(-1 * var(--christmas-sprig-lift)));
        background: url("https://assets.moozi.com/chrismas-theme/Sprig-Decoration.png") center / contain no-repeat;
        pointer-events: none;
    }
}

body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shop-modal-scroll {
    position: relative;
    z-index: 2;
}

body.christmas-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden .w-full.h-full.flex.flex-col.justify-center.items-center.pt-5 {
    padding-top: 1.75rem;
}

/* ============================================
   CHRISTMAS LOGO + SANTA HAT
   Keep the original wordmark. Overlay logo-santa-hat.png on the Z
   (brim on the letter, pompom hanging to its right), matching the
   Santa-hat composite. img is a replaced element, so the hat is
   painted on a parent ::before and anchored to the logo box.
   ============================================ */

body.christmas-theme {
    --santa-hat-img: url("https://assets.moozi.com/chrismas-theme/logo-santa-hat.png");
    /* Sit on the Z: brim on the letter, pompom hanging to its right. */
    --santa-hat-w: 0.34;
    --santa-hat-left: 0.68;
    --santa-hat-top: 0.02;
}

body.christmas-theme [data-preloading-overlay] {
    background-color: #071410 !important;
    background-image: none !important;
}

/* Let the hat stick above the 64px bar. */
body.christmas-theme .nav-container,
body.christmas-theme .nav-container > nav,
body.christmas-theme .header-bg.flex-1,
body.christmas-theme .header-bg.flex-1 > span:first-child,
body.christmas-theme .header-bg.flex-1 > span:first-child > a {
    overflow: visible;
}

body.christmas-theme nav img[alt="Logo"] {
    anchor-name: --nav-logo;
    position: relative;
    z-index: 0;
}

body.christmas-theme .header-bg.flex-1 > span:first-child > a {
    position: relative;
}

body.christmas-theme .header-bg.flex-1 > span:first-child > a::before {
    content: "";
    position: absolute;
    z-index: 2;
    position-anchor: --nav-logo;
    left: calc(anchor(left) + anchor-size(width) * var(--santa-hat-left));
    top: calc(anchor(top) + anchor-size(height) * var(--santa-hat-top));
    width: calc(anchor-size(width) * var(--santa-hat-w));
    aspect-ratio: 910 / 718;
    background: var(--santa-hat-img) center / contain no-repeat;
    pointer-events: none;
}

/* Splash logo */
body.christmas-theme [data-preloading-overlay] img[alt="Logo"] {
    anchor-name: --splash-logo;
    position: relative;
    z-index: 0;
}

body.christmas-theme .preloading-overlay-bg {
    position: absolute;
}

body.christmas-theme .preloading-overlay-bg::before {
    content: "";
    position: absolute;
    z-index: 2;
    position-anchor: --splash-logo;
    left: calc(anchor(left) + anchor-size(width) * var(--santa-hat-left));
    top: calc(anchor(top) + anchor-size(height) * var(--santa-hat-top));
    width: calc(anchor-size(width) * var(--santa-hat-w));
    aspect-ratio: 910 / 718;
    background: var(--santa-hat-img) center / contain no-repeat;
    pointer-events: none;
}

/* Landing promo header */
body.christmas-theme .landing-promo-nav .logo-img {
    anchor-name: --landing-logo;
    position: relative;
    z-index: 0;
}

body.christmas-theme .landing-promo-nav .logo-link {
    position: relative;
    overflow: visible;
}

body.christmas-theme .landing-promo-nav .logo-link::before {
    content: "";
    position: absolute;
    z-index: 2;
    position-anchor: --landing-logo;
    left: calc(anchor(left) + anchor-size(width) * var(--santa-hat-left));
    top: calc(anchor(top) + anchor-size(height) * var(--santa-hat-top));
    width: calc(anchor-size(width) * var(--santa-hat-w));
    aspect-ratio: 910 / 718;
    background: var(--santa-hat-img) center / contain no-repeat;
    pointer-events: none;
}

/* App footer wordmarks (mobile strip + desktop brand) */
body.christmas-theme .flex.lg\:hidden.w-full.items-center.justify-center.mt-4.mb-10.md\:mb-14 {
    position: relative;
    overflow: visible;
}

body.christmas-theme .flex.lg\:hidden.w-full.items-center.justify-center.mt-4.mb-10.md\:mb-14 > img {
    anchor-name: --footer-logo-mobile;
    position: relative;
    z-index: 0;
}

body.christmas-theme .flex.lg\:hidden.w-full.items-center.justify-center.mt-4.mb-10.md\:mb-14::before {
    content: "";
    position: absolute;
    z-index: 2;
    position-anchor: --footer-logo-mobile;
    left: calc(anchor(left) + anchor-size(width) * var(--santa-hat-left));
    top: calc(anchor(top) + anchor-size(height) * var(--santa-hat-top));
    width: calc(anchor-size(width) * var(--santa-hat-w));
    aspect-ratio: 910 / 718;
    background: var(--santa-hat-img) center / contain no-repeat;
    pointer-events: none;
}

body.christmas-theme .flex.flex-col-reverse.lg\:flex-row.gap-2.lg\:gap-8.items-center.xl\:items-start.font-roboto.tracking-widest.font-bold.text-base.xl\:text-lg .flex.w-full.justify-center {
    position: relative;
    overflow: visible;
}

body.christmas-theme .flex.flex-col-reverse.lg\:flex-row.gap-2.lg\:gap-8.items-center.xl\:items-start.font-roboto.tracking-widest.font-bold.text-base.xl\:text-lg img.w-6\/12 {
    anchor-name: --footer-logo-desktop;
    position: relative;
    z-index: 0;
}

body.christmas-theme .flex.flex-col-reverse.lg\:flex-row.gap-2.lg\:gap-8.items-center.xl\:items-start.font-roboto.tracking-widest.font-bold.text-base.xl\:text-lg .flex.w-full.justify-center::before {
    content: "";
    position: absolute;
    z-index: 2;
    position-anchor: --footer-logo-desktop;
    left: calc(anchor(left) + anchor-size(width) * var(--santa-hat-left));
    top: calc(anchor(top) + anchor-size(height) * var(--santa-hat-top));
    width: calc(anchor-size(width) * var(--santa-hat-w));
    aspect-ratio: 910 / 718;
    background: var(--santa-hat-img) center / contain no-repeat;
    pointer-events: none;
}

/* Landing promo footer wordmarks */
body.christmas-theme .landing-promo-footer .footer-logo-main,
body.christmas-theme .landing-promo-footer .footer-logo-mobile-inner {
    position: relative;
    overflow: visible;
}

body.christmas-theme .landing-promo-footer .footer-logo-main-img {
    anchor-name: --promo-footer-logo;
    position: relative;
    z-index: 0;
}

body.christmas-theme .landing-promo-footer .footer-logo-mobile-wordmark {
    anchor-name: --promo-footer-logo-mobile;
    position: relative;
    z-index: 0;
}

body.christmas-theme .landing-promo-footer .footer-logo-main::before {
    content: "";
    position: absolute;
    z-index: 2;
    position-anchor: --promo-footer-logo;
    left: calc(anchor(left) + anchor-size(width) * var(--santa-hat-left));
    top: calc(anchor(top) + anchor-size(height) * var(--santa-hat-top));
    width: calc(anchor-size(width) * var(--santa-hat-w));
    aspect-ratio: 910 / 718;
    background: var(--santa-hat-img) center / contain no-repeat;
    pointer-events: none;
}

body.christmas-theme .landing-promo-footer .footer-logo-mobile-inner::before {
    content: "";
    position: absolute;
    z-index: 2;
    position-anchor: --promo-footer-logo-mobile;
    left: calc(anchor(left) + anchor-size(width) * var(--santa-hat-left));
    top: calc(anchor(top) + anchor-size(height) * var(--santa-hat-top));
    width: calc(anchor-size(width) * var(--santa-hat-w));
    aspect-ratio: 910 / 718;
    background: var(--santa-hat-img) center / contain no-repeat;
    pointer-events: none;
}

/* ============================================
   DAILY BONUS POP-UP (modals/bonus/daily.vue)
   The yellow day cards become evergreen cards with a thin gold edge and the
   shop cards' snowy evergreen (snow along the top, holly in the top-right
   corner); today's card (the big .stuck-out one) is holly red with a gold
   rim and a warm glow. "DAILY" is candy red and "BONUS" pine green, with the
   logo's Santa hat on the D. "DAY n": the number in gold. The Gold Coin
   amounts are gold and "FREE n" a light mint (the base green was hard to
   read on the cards). Claim is a holly-red pill with a gold rim, the close
   button a red ring. Below 1024px the red pop-up box turns evergreen.
   No animation is added here, so the pop-up costs nothing extra to draw.
   ============================================ */
body.christmas-theme .daily-bonus {
    background:
        radial-gradient(ellipse 90% 40% at 50% 100%, rgb(226 59 59 / 16%), transparent 72%),
        radial-gradient(ellipse 80% 40% at 50% 0%, rgb(255 255 255 / 8%), transparent 70%),
        linear-gradient(180deg, #1f6b45 0%, #164e34 55%, #0c2e22 100%);
    box-shadow: inset 0 0 0 1.5px rgb(242 193 78 / 55%), 0 6px 18px rgb(0 0 0 / 45%);
}

body.christmas-theme .daily-bonus.stuck-out {
    background:
        radial-gradient(ellipse 80% 45% at 50% 0%, rgb(255 255 255 / 14%), transparent 70%),
        linear-gradient(180deg, #d83a3a 0%, #a82222 55%, #6e1010 100%);
    box-shadow: inset 0 0 0 2px #f2c14e, 0 0 22px rgb(242 193 78 / 35%), 0 0 30px rgb(226 59 59 / 35%), 0 10px 26px rgb(0 0 0 / 55%);
}

/* the shop cards' snowy evergreen along each card's top edge (1599 x 533:
   snow along the top, holly and pine hanging in the right-hand corner) */
body.christmas-theme .daily-bonus::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: -2%;
    right: -3%;
    top: -4%;
    aspect-ratio: 1599 / 533;
    background: url("https://assets.moozi.com/chrismas-theme/top-Snowy-Evergreen-Christmas.png") center top / 100% auto no-repeat;
    pointer-events: none;
}

/* Room round the cards for that snow and holly on desktop. The row
   (.daily-bonus-container-wrap) hides sideways overflow, which clips what
   sticks out above it too: today's card is the tallest, so its top sat on
   the row's top edge, and where the five cards fill the row (narrower
   desktops) the first and last cards sit on its side edges, so the
   decoration was sliced there. Padding gives it room inside the row (2rem
   above, 1rem each side); the matching negative margins keep everything
   where it was. (On phones the cards sit in the middle of a taller slider.) */
@media (min-width: 1024px) {
    body.christmas-theme .daily-bonus-container-wrap {
        padding-top: 2rem;
        padding-inline: 1rem;
        margin-top: -2rem;
        margin-inline: -1rem;
    }
}

/* "DAILY" candy red, "BONUS" pine green: each word's gradient is a background
   layer sized to that word and clipped to the letters ("DAILY " ends at 45.7%
   of the title's width in this font, measured for the New Year theme; the
   title is shrunk to its text width so the split holds at every size). The
   glow is a drop-shadow, as a text-shadow would paint over the clear letters.
   Below 360px the title wraps onto two lines, so the split runs top and bottom. */
body.christmas-theme .daily-bonus-modal-bg h1 {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    background:
        linear-gradient(180deg, #ffc2c2 10%, #ff5a5a 55%, #d62828 95%) 0 0 / 45.7% 100% no-repeat,
        linear-gradient(180deg, #c8ffdf 10%, #4be38f 55%, #1fa860 95%) 100% 0 / 54.3% 100% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 0 rgb(0 0 0 / 35%)) drop-shadow(0 0 12px rgb(255 214 140 / 25%));
}

@media (max-width: 359px) {
    body.christmas-theme .daily-bonus-modal-bg h1 {
        background:
            linear-gradient(180deg, #ffc2c2 10%, #ff5a5a 55%, #d62828 95%) 0 0 / 100% 50% no-repeat,
            linear-gradient(180deg, #c8ffdf 10%, #4be38f 55%, #1fa860 95%) 0 100% / 100% 50% no-repeat;
        -webkit-background-clip: text;
        background-clip: text;
    }
}

/* the logo's Santa hat, tipped onto the D */
body.christmas-theme .daily-bonus-modal-bg h1::before {
    content: "";
    position: absolute;
    left: -0.3em;
    top: -0.52em;
    width: 0.9em;
    aspect-ratio: 910 / 718;
    background: url("https://assets.moozi.com/chrismas-theme/logo-santa-hat.png") center / contain no-repeat;
    transform: rotate(-16deg);
    pointer-events: none;
}

/* "DAY n": "DAY" white, the number gold ("DAY " ends at 71.05% of the label) */
body.christmas-theme .daily-bonus > h3.font-medium {
    background:
        linear-gradient(#ffffff, #ffffff) 0 0 / 71.05% 100% no-repeat,
        linear-gradient(180deg, #fff1b8 10%, #ffd36b 55%, #e8a93a 95%) 100% 0 / 28.95% 100% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 0 rgb(0 0 0 / 35%));
}

body.christmas-theme .daily-bonus .absolute > h3.font-medium {
    color: #ffffff;
    text-shadow: 0 2px 0 rgb(0 0 0 / 35%), 0 0 10px rgb(226 59 59 / 60%);
}

body.christmas-theme .daily-bonus h3.w-max {
    color: #ffd76a;
    text-shadow: 0 1px 0 rgb(0 0 0 / 45%), 0 0 8px rgb(255 190 60 / 40%);
}

body.christmas-theme .daily-bonus .text-state-success {
    color: #b6f7cf;
    text-shadow: 0 1px 0 rgb(0 0 0 / 50%), 0 0 8px rgb(61 220 132 / 40%);
}

/* Claim: a holly-red pill with a gold rim (it was the yellow button) */
body.christmas-theme .daily-bonus-modal-bg .btn-modern.from-yellow-10 {
    background-image: linear-gradient(180deg, #ff5a5a 0%, #c42828 55%, #8e1717 100%) !important;
    border: 2px solid #f2c14e !important;
    color: #ffffff !important;
    text-shadow: 0 1px 0 rgb(0 0 0 / 35%);
    box-shadow: 0 0 16px rgb(226 59 59 / 45%), 0 0 22px rgb(242 193 78 / 18%), inset 0 1px 0 rgb(255 255 255 / 35%);
}

body.christmas-theme .daily-bonus-modal-bg .btn-modern.from-yellow-10.cursor-pointer:hover {
    background-image: linear-gradient(180deg, #ff7070 0%, #d83a3a 55%, #a01c1c 100%) !important;
    box-shadow: 0 0 22px rgb(226 59 59 / 60%), 0 0 28px rgb(242 193 78 / 26%), inset 0 1px 0 rgb(255 255 255 / 40%);
}

/* close button: a red ring with a white cross (it was a faint maroon circle) */
body.christmas-theme .daily-bonus-modal-bg .close-btn-c {
    background: #0e241c !important;
    border: 1.5px solid #e23b3b !important;
    box-shadow: 0 0 10px rgb(226 59 59 / 50%), inset 0 0 6px rgb(226 59 59 / 25%);
}

body.christmas-theme .daily-bonus-modal-bg .close-btn-c:hover {
    background: rgb(226 59 59 / 25%) !important;
    border-color: #ff8a8a !important;
}

body.christmas-theme .daily-bonus-modal-bg .close-btn-c:focus-visible {
    outline: 2px solid #f2c14e;
    outline-offset: 2px;
}

body.christmas-theme .daily-bonus-modal-bg .close-btn-c img {
    filter: brightness(0) invert(1) !important;
}

@media (max-width: 1023px) {
    body.christmas-theme .daily-bonus-modal-bg {
        background:
            radial-gradient(120% 45% at 50% 100%, rgb(226 59 59 / 18%) 0%, transparent 60%),
            radial-gradient(90% 35% at 50% 0%, rgb(255 255 255 / 7%) 0%, transparent 70%),
            linear-gradient(180deg, #164e34 0%, #0e241c 100%);
        border: 1px solid rgb(242 193 78 / 35%);
    }

    /* room under the close button: on phones the title ran under it */
    body.christmas-theme .daily-bonus-modal-bg > .flex.flex-col.items-center.flex-shrink-0 {
        padding-top: 2.5rem;
    }
}

/* ============================================
   WELCOME BONUS AND BIRTHDAY BONUS POP-UPS
   (modals/bonus/welcome.vue, modals/bonus/bday.vue), built like the Daily
   Bonus above. Each box gets a thin gold rim and, along its top edge, the
   Daily Bonus cards' snowy evergreen (snow curling over the left corner,
   holly and pine in the right one) at the cards' scale, so the holly
   doesn't grow with the box and cover the title. The Santa hat sits on the
   title's first letter.
   - Welcome Bonus: evergreen (was purple-to-blue). "WELCOME" candy red,
     "BONUS" pine green; the title always wraps after "WELCOME", so the
     colours split top and bottom, and it is sized to its widest word so
     the gradient letters stay inside its box. Claim is the holly-red pill.
   - Birthday Bonus: holly red (was orange-to-pink), so the two don't read
     as the same pop-up. "HAPPY" gold, "BIRTHDAY" snow white ("HAPPY " ends
     at 41.24% of the title's width in this font; it stays on one line).
     Claim is a pine-green pill with a gold rim, as red would vanish on red.
   Gold Coin amounts gold, "FREE n" light mint. No animation is added.
   ============================================ */
body.christmas-theme #authentication-modal .welcome-modal-bg,
body.christmas-theme #bday-bonus-modal .bday-modal-bg {
    isolation: isolate;
    border: 2px solid #f2c14e;
}

body.christmas-theme #authentication-modal .welcome-modal-bg {
    background:
        radial-gradient(120% 45% at 50% 100%, rgb(226 59 59 / 18%) 0%, transparent 60%),
        radial-gradient(90% 35% at 50% 0%, rgb(255 255 255 / 8%) 0%, transparent 70%),
        linear-gradient(180deg, #1f6b45 0%, #164e34 50%, #0c2e22 100%);
    box-shadow: 0 0 22px rgb(242 193 78 / 22%), 0 0 30px rgb(61 220 132 / 14%), 0 24px 48px rgb(0 0 0 / 55%);
}

body.christmas-theme #bday-bonus-modal .bday-modal-bg {
    background:
        radial-gradient(120% 45% at 50% 100%, rgb(242 193 78 / 16%) 0%, transparent 60%),
        radial-gradient(90% 35% at 50% 0%, rgb(255 255 255 / 12%) 0%, transparent 70%),
        linear-gradient(180deg, #c42828 0%, #9a1d1d 50%, #5e0e0e 100%);
    box-shadow: 0 0 22px rgb(242 193 78 / 24%), 0 0 30px rgb(226 59 59 / 22%), 0 24px 48px rgb(0 0 0 / 55%);
}

/* The cards' snowy evergreen along the top edge (1599 x 533: the snow curls
   over the left end in the first 30%, a plain thin line runs to 60%, then a
   small lump, and the holly and pine fill the last 29%). It is drawn at a
   card's scale, --xmas-strip wide (62% of the box, kept between 240px and
   320px), in two pieces:
   - ::after, on the right: the strip's last 70% (line, lump, holly), at
     that scale;
   - ::before, from the left corner: the curl at that scale and the plain
     line stretched to meet the right piece (a border-image: its left slice
     is the curl, the middle the line; the rest of the picture, lump and
     holly, isn't drawn), overlapping it a little on the plain line.
   Both overhang the rim by 8px at the sides and 12px at the top. */
body.christmas-theme #authentication-modal .welcome-modal-bg,
body.christmas-theme #bday-bonus-modal .bday-modal-bg {
    container-type: inline-size;
    --xmas-strip: clamp(240px, 62cqw, 320px);
}

body.christmas-theme #authentication-modal .welcome-modal-bg::before,
body.christmas-theme #bday-bonus-modal .bday-modal-bg::before,
body.christmas-theme #authentication-modal .welcome-modal-bg::after,
body.christmas-theme #bday-bonus-modal .bday-modal-bg::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: -15px;
    height: calc(var(--xmas-strip) * 533 / 1599);
    pointer-events: none;
}

body.christmas-theme #authentication-modal .welcome-modal-bg::after,
body.christmas-theme #bday-bonus-modal .bday-modal-bg::after {
    right: -8px;
    width: calc(var(--xmas-strip) * 0.7);
    background: url("https://assets.moozi.com/chrismas-theme/top-Snowy-Evergreen-Christmas.png") right top / var(--xmas-strip) auto no-repeat;
}

body.christmas-theme #authentication-modal .welcome-modal-bg::before,
body.christmas-theme #bday-bonus-modal .bday-modal-bg::before {
    left: -8px;
    right: calc(var(--xmas-strip) * 0.65 - 8px);
    box-sizing: border-box;
    border-style: solid;
    border-width: 0 0 0 calc(var(--xmas-strip) * 0.3);
    border-image: url("https://assets.moozi.com/chrismas-theme/top-Snowy-Evergreen-Christmas.png") 0 55% 0 30% fill / 0 0 0 calc(var(--xmas-strip) * 0.3) stretch;
}

/* room under the snow and the close button */
body.christmas-theme #authentication-modal .welcome-modal-bg > .flex.flex-col.items-center,
body.christmas-theme #bday-bonus-modal .bday-modal-bg > .flex.flex-col.items-center {
    padding-top: 1.75rem;
}

body.christmas-theme #authentication-modal .welcome-modal-bg h1 {
    position: relative;
    z-index: 4;
    width: min-content;
    background:
        linear-gradient(180deg, #ffc2c2 10%, #ff5a5a 55%, #d62828 95%) 0 0 / 100% 50% no-repeat,
        linear-gradient(180deg, #c8ffdf 10%, #4be38f 55%, #1fa860 95%) 0 100% / 100% 50% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 0 rgb(0 0 0 / 35%)) drop-shadow(0 0 12px rgb(255 214 140 / 22%));
}

body.christmas-theme #bday-bonus-modal .bday-modal-bg h1 {
    position: relative;
    z-index: 4;
    width: fit-content;
    max-width: none;
    background:
        linear-gradient(180deg, #fff1b8 10%, #ffd36b 55%, #e8a93a 95%) 0 0 / 41.24% 100% no-repeat,
        linear-gradient(180deg, #ffffff 10%, #f4f7ff 55%, #cfd8ea 95%) 100% 0 / 58.76% 100% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 0 rgb(0 0 0 / 40%)) drop-shadow(0 0 12px rgb(255 214 140 / 30%));
}

/* the logo's Santa hat, tipped onto the first letter */
body.christmas-theme #authentication-modal .welcome-modal-bg h1::before,
body.christmas-theme #bday-bonus-modal .bday-modal-bg h1::before {
    content: "";
    position: absolute;
    left: -0.3em;
    top: -0.52em;
    width: 0.9em;
    aspect-ratio: 910 / 718;
    background: url("https://assets.moozi.com/chrismas-theme/logo-santa-hat.png") center / contain no-repeat;
    transform: rotate(-16deg);
    pointer-events: none;
}

body.christmas-theme #authentication-modal .welcome-modal-bg h3.w-max,
body.christmas-theme #bday-bonus-modal .bday-modal-bg h3.w-max {
    color: #ffd76a;
    text-shadow: 0 1px 0 rgb(0 0 0 / 45%), 0 0 8px rgb(255 190 60 / 40%);
}

body.christmas-theme #authentication-modal .welcome-modal-bg .text-state-success,
body.christmas-theme #bday-bonus-modal .bday-modal-bg .text-state-success {
    color: #b6f7cf;
    text-shadow: 0 1px 0 rgb(0 0 0 / 50%), 0 0 8px rgb(61 220 132 / 40%);
}

/* Claim: holly red on the Welcome Bonus, pine green on the Birthday Bonus */
body.christmas-theme #authentication-modal .welcome-modal-bg .btn-modern.from-yellow-10 {
    background-image: linear-gradient(180deg, #ff5a5a 0%, #c42828 55%, #8e1717 100%) !important;
    border: 2px solid #f2c14e !important;
    color: #ffffff !important;
    text-shadow: 0 1px 0 rgb(0 0 0 / 35%);
    box-shadow: 0 0 16px rgb(226 59 59 / 45%), 0 0 22px rgb(242 193 78 / 18%), inset 0 1px 0 rgb(255 255 255 / 35%);
}

body.christmas-theme #bday-bonus-modal .bday-modal-bg .btn-modern.from-yellow-10 {
    background-image: linear-gradient(180deg, #3fcf7f 0%, #1f8f4f 55%, #125c33 100%) !important;
    border: 2px solid #f2c14e !important;
    color: #ffffff !important;
    text-shadow: 0 1px 0 rgb(0 0 0 / 35%);
    box-shadow: 0 0 16px rgb(61 220 132 / 35%), 0 0 22px rgb(242 193 78 / 18%), inset 0 1px 0 rgb(255 255 255 / 35%);
}

body.christmas-theme #authentication-modal .welcome-modal-bg .btn-modern.from-yellow-10.cursor-pointer:hover {
    background-image: linear-gradient(180deg, #ff7070 0%, #d83a3a 55%, #a01c1c 100%) !important;
}

body.christmas-theme #bday-bonus-modal .bday-modal-bg .btn-modern.from-yellow-10.cursor-pointer:hover {
    background-image: linear-gradient(180deg, #55e08f 0%, #26a35c 55%, #166b3c 100%) !important;
}

/* close button: a red ring on the evergreen box, a gold ring on the red one */
body.christmas-theme #authentication-modal .welcome-modal-bg .close-btn-c,
body.christmas-theme #bday-bonus-modal .bday-modal-bg .close-btn-c {
    z-index: 3;
    border-radius: 9999px;
}

body.christmas-theme #authentication-modal .welcome-modal-bg .close-btn-c {
    background: #0e241c !important;
    border: 1.5px solid #e23b3b !important;
    box-shadow: 0 0 10px rgb(226 59 59 / 50%), inset 0 0 6px rgb(226 59 59 / 25%);
}

body.christmas-theme #bday-bonus-modal .bday-modal-bg .close-btn-c {
    background: #5e0e0e !important;
    border: 1.5px solid #f2c14e !important;
    box-shadow: 0 0 10px rgb(242 193 78 / 45%), inset 0 0 6px rgb(242 193 78 / 20%);
}

body.christmas-theme #authentication-modal .welcome-modal-bg .close-btn-c img,
body.christmas-theme #bday-bonus-modal .bday-modal-bg .close-btn-c img {
    filter: brightness(0) invert(1) !important;
}
