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

   Setup pass: Harvest Hearth colors, the decor fade and the falling leaves.
   Component art (headers, corners, hero, shop, logos) lands in a later pass,
   the same way server/assets/halloween-theme.css and christmas-theme.css grew.
   Image urls must use https://assets.moozi.com so the route can swap the host.
   ============================================ */

/* Palette: Harvest Hearth (the chosen Thanksgiving mockup, option A).
   Hearth browns, pumpkin orange primary, harvest gold-cream accent. */
body.thanksgiving-theme {
    /* --- Backgrounds: hearth browns instead of dark red --- */
    --color-bg-darkest: #170b05;
    --color-bg-dark: #24120a;
    --color-bg-mid: #331a0e;
    --color-bg-card: #432313;
    --color-bg-accent: #552d18;

    /* --- Primary accent: pumpkin orange (replaces gold) --- */
    --color-gold: #f2862a;
    --color-gold-light: #ffb764;
    --color-gold-hover: #cf6614;
    --color-gold-secondary: #ffb764;
    --color-text-on-gold: #2a1205;

    /* --- Borders & focus --- */
    --color-border-subtle: #9a6a44;
    --color-border-gold: rgb(242 134 42 / 30%);
    --color-brand-focus: #6b2f12;

    /* --- Warm accent: harvest cream --- */
    --color-accent-warm: #f2d08a;

    /* --- Card gradients: rust to deep hearth brown --- */
    --color-card-gradient-start: #a8501c;
    --color-card-gradient-mid: #7a3812;
    --color-card-gradient-end: #3e1c09;

    /* --- Shadow channel (darkest hearth brown) ---
       Landing elevation is recomposed on .landing-promo-body. Changing this
       channel alone does not alter shadows :root already composed. */
    --shadow-warm: 23 11 5;

    /* --- Elevation glow: pumpkin instead of gold --- */
    --elev-glow-gold: 0 0 0 2px rgb(242 134 42 / 30%), 0 0 28px rgb(242 134 42 / 30%);

    /* --- App design tokens (lobby, shop): space-separated RGB channels --- */
    --surface-app: 28 13 6;          /* #1c0d06 */
    --surface-elevated: 46 23 11;    /* #2e170b */
    --surface-sunken: 12 6 3;        /* #0c0603 */
    --text-secondary: 201 169 138;   /* #c9a98a */
    --text-on-accent: 42 18 5;       /* #2a1205 */
    --accent-primary: 242 134 42;    /* #f2862a */
    --accent-hover: 255 183 100;     /* #ffb764 */
    --accent-press: 207 102 20;      /* #cf6614 */
    --border-subtle: 74 42 22;       /* #4a2a16 */
    --border-strong: 106 58 28;      /* #6a3a1c */
    background-color: #1c0d06;
}

/* base.css composes these on :root from --shadow-warm, so the channel
   change above does not reach them. */
body.thanksgiving-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);
}

html:has(body.thanksgiving-theme) {
    scrollbar-color: #cf6614 #170b05;
}

/* --- Hero background: keep the bokeh photo, glow it like a hearth fire --- */
body.thanksgiving-theme .bg-image {
    background-color: #6a2e10;
    background-image:
        radial-gradient(ellipse 60% 45% at 74% 40%, rgb(255 170 70 / 38%), transparent 62%),
        radial-gradient(ellipse 55% 40% at 12% 90%, rgb(217 72 31 / 40%), transparent 60%),
        linear-gradient(180deg, rgb(23 11 5 / 40%) 0%, rgb(23 11 5 / 8%) 40%, rgb(23 11 5 / 70%) 100%),
        url("/landing-promo/assets/img/bg.webp");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: screen, screen, multiply, luminosity;
}

/* --- Text gradient gold -> light pumpkin / pumpkin --- */
body.thanksgiving-theme .text-gradient-gold,
body.thanksgiving-theme .hero-heading .highlight {
    background: linear-gradient(135deg, #ffb764, #f2862a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #ffb764;
}

body.thanksgiving-theme .hero-eyebrow {
    color: #f2d08a;
}

body.thanksgiving-theme .hero-image-wrap::before,
body.thanksgiving-theme .hero-image-wrap::after {
    background: #ffb764;
    box-shadow: 0 0 8px #f2862a;
}

/* --- Primary buttons: pumpkin gradient --- */
body.thanksgiving-theme .btn-primary {
    background-image: linear-gradient(180deg, #ffae58, #ee7a1e);
    background-color: #ee7a1e;
    border-color: #b9560e;
    color: #2a1205;
    box-shadow: 0 6px 22px rgb(242 134 42 / 30%);
}

body.thanksgiving-theme .register-btn,
body.thanksgiving-theme .nav-container button.btn-modern.from-yellow-10 {
    background-image: linear-gradient(180deg, #ffae58, #ee7a1e);
    background-color: #ee7a1e;
    border-color: #b9560e;
    color: #2a1205;
}

body.thanksgiving-theme .login-btn,
body.thanksgiving-theme .nav-container button.btn-modern.bg-transparent {
    border-color: #9a6a44;
    background-color: #1c0d06;
}

body.thanksgiving-theme .from-yellow-10 {
    --tw-gradient-from: #ffae58 var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

body.thanksgiving-theme .to-yellow-20 {
    --tw-gradient-to: #ee7a1e var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

body.thanksgiving-theme .bg-accent {
    background-color: #ee7a1e;
    background-image: linear-gradient(to bottom, #ffae58, #ee7a1e);
}

/* --- Bars: header, mobile tab bar, drawer --- */
body.thanksgiving-theme .nav-container {
    background-color: #1c0d06;
}

body.thanksgiving-theme .nav-container nav,
body.thanksgiving-theme .nav-container .header-bg {
    background-color: transparent;
}

body.thanksgiving-theme nav::after {
    background: linear-gradient(90deg, transparent, rgb(242 134 42 / 30%), transparent);
}

body.thanksgiving-theme .fixed.bottom-0.z-80,
body.thanksgiving-theme .lg\:hidden.fixed.bottom-0 {
    background-color: #1c0d06;
}

body.thanksgiving-theme #drawer-navigation {
    --surface-elevated: 46 23 11;
    background-color: #170a05;
    box-shadow: inset -1px 0 0 rgb(242 134 42 / 14%);
}

/* One colour for the whole side menu: the top block that holds the
   "Moozi Loyalty Program" card (bg-surface-elevated + drop-shadow-xl) and
   the guest card itself (.tier.not-tier) take the menu's own #170a05, so
   the menu reads as a single surface. The card keeps its outline (its
   ::before), and earned tiers (bronze, silver…) keep their tier colours.
   That outline sits at z-index -1, inside the stacking context the block's
   drop-shadow filter used to make; with the filter gone, isolation keeps
   the context, so the outline still paints above the block's background. */
body.thanksgiving-theme #drawer-navigation .drawer-navigation-wrapper > .bg-surface-elevated:first-child {
    background-color: #170a05;
    filter: none;
    isolation: isolate;
}

body.thanksgiving-theme #drawer-navigation .tier.not-tier {
    background: #170a05;
}

/* Log Out, at the bottom of the logged-in side menu. Its own style is muted
   tan text with no fill, which on desktop sits over the pumpkin pile at the
   bottom of the menu and can't be read. It becomes a pill like the Gold Coin
   Shop title: near-opaque dark brown, a pumpkin outline and warm glow, cream
   uppercase lettering; brighter on hover. The fill keeps the art behind it
   from showing through the text. */
body.thanksgiving-theme #drawer-navigation .mt-10.mb-10.w-full.text-white.cursor-pointer > div > div.rounded-full {
    border: 1px solid #e09048;
    border-radius: 999px;
    background: rgb(26 9 4 / 88%);
    box-shadow: 0 0 14px rgb(255 150 60 / 30%), inset 0 1px 0 rgb(255 210 150 / 22%);
    color: #ffe2b8;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body.thanksgiving-theme #drawer-navigation .mt-10.mb-10.w-full.text-white.cursor-pointer > div > div.rounded-full > span {
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgb(255 150 60 / 45%);
}

body.thanksgiving-theme #drawer-navigation .mt-10.mb-10.w-full.text-white.cursor-pointer > div > div.rounded-full:hover {
    border-color: #ffb764;
    background: rgb(67 35 19 / 92%);
    box-shadow: 0 0 18px rgb(255 150 60 / 45%), inset 0 1px 0 rgb(255 210 150 / 30%);
    color: #fff1dc;
}

/* --- Landing cards and sections --- */
body.thanksgiving-theme .glass {
    background: rgb(36 18 10 / 70%);
    border: 1px solid rgb(255 255 255 / 8%);
}

body.thanksgiving-theme .feature-card {
    background: rgb(36 18 10 / 70%);
    border-color: rgb(242 134 42 / 22%);
}

body.thanksgiving-theme .feature-card-title,
body.thanksgiving-theme .section-title {
    color: #ffb764;
}

body.thanksgiving-theme .landing-promo-section--strip-a {
    background-color: #170b05;
}

body.thanksgiving-theme .landing-promo-section--strip-b {
    background-color: #24120a;
}

body.thanksgiving-theme .demo-game-card,
body.thanksgiving-theme .promo-card {
    background: rgb(36 18 10 / 70%);
}

/* --- Lobby: tabs, side nav, tiers, borders, accents --- */
body.thanksgiving-theme .gameTabHover:hover,
body.thanksgiving-theme .gameTabHover.active {
    background-color: #f2862a;
    box-shadow: 0 2px 12px rgb(242 134 42 / 30%);
}

body.thanksgiving-theme .gameTabHover:hover .game-category-icon,
body.thanksgiving-theme .gameTabHover.active .game-category-icon {
    filter: brightness(0);
}

body.thanksgiving-theme .gameTabHover.active p,
body.thanksgiving-theme .gameTabHover.active span {
    color: #2a1205;
}

body.thanksgiving-theme .active-left-navigation:before {
    background: #f2862a;
}

body.thanksgiving-theme .active-left-navigation svg,
body.thanksgiving-theme .active-left-navigation span {
    color: #ffb764;
}

body.thanksgiving-theme .tier.not-tier {
    background: #331a0e;
}

body.thanksgiving-theme .border-border-strong {
    border-color: rgb(106 58 28);
}

body.thanksgiving-theme .border-white\/10 {
    border-color: rgb(242 134 42 / 22%);
}

body.thanksgiving-theme .text-accent {
    color: #ffb764;
}

body.thanksgiving-theme .text-accent-press {
    color: #f2862a;
}

body.thanksgiving-theme .swiper-pagination-bullet-active {
    background: #f2862a;
}

/* --- Red badges: crimson. The notification badge base style isn't in this
   repo, so !important matches the Halloween override. --- */
body.thanksgiving-theme .bg-secondary-5 {
    background-color: #b8321f;
}

body.thanksgiving-theme .modern-notif-badge::after {
    background: linear-gradient(135deg, #b8321f, #b8321f) !important;
}

/* --- Gold Coin Shop panel --- */
body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden {
    background: #1c0d06;
}

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

/* Harvest canopy across the header and the Gold Coin Shop header on wide
   screens: 1024px or wider and landscape. Portrait screens and anything
   narrower use the full tablet/phone pictures below; the two queries are exact complements,
   so every screen gets one canopy. The tile is an opaque 1590×53 strip: brown gradient, leaves and
   acorns along the top edge, an amber rule along the bottom. Scaled to the
   row height and repeated across, so at 64px each tile is 1920px wide.
   The tile carries its own bottom rule, so the base rule is dropped. */
@media (min-width: 1024px) and (orientation: landscape) {
    /* Main header (guest + afterlogin `.nav-container`). The inner <nav> and
       `.header-bg` layers carry `bg-surface-app` too and would paint over it. */
    body.thanksgiving-theme .nav-container {
        background-color: #1c0d06;
        background-image: url("https://assets.moozi.com/thanks-giving-theme/header-canopy-tile.png");
        background-repeat: repeat-x;
        background-size: auto 100%;
        background-position: left bottom;
    }

    body.thanksgiving-theme .nav-container nav,
    body.thanksgiving-theme .nav-container .header-bg {
        background-color: transparent;
    }

    body.thanksgiving-theme .nav-container::after {
        display: none;
    }

    /* Gold Coin Shop modal header row. */
    body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shrink-0.flex.items-center.h-14 {
        background-color: #1c0d06;
        background-image: url("https://assets.moozi.com/thanks-giving-theme/header-canopy-tile.png");
        background-repeat: repeat-x;
        background-size: auto 100%;
        background-position: left bottom;
        border-bottom-color: transparent;
    }
}

/* Main header and Gold Coin Shop header on portrait screens and smaller
   devices (any portrait screen, or narrower than 1024px): one full-width
   picture instead of a tile. tablet-1023-header-full is drawn for a 1023×64
   header and phone-430-header-full for a 430×64 one (screens 430px or
   narrower); both are opaque garland strips with their own amber rule along
   the bottom, so the base rules are dropped.
   `cover` keeps the art unstretched: at the row height (64px header, 56px
   shop header) the picture is usually wider than the row and is cropped
   evenly at both sides; a row wider than that scales it up and crops the top
   instead, keeping the rule. */
@media (max-width: 1023px), (orientation: portrait) {
    body.thanksgiving-theme .nav-container,
    body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shrink-0.flex.items-center.h-14 {
        background-color: #1c0d06;
        background-image: url("https://assets.moozi.com/thanks-giving-theme/tablet-1023-header-full%404092x256.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center bottom;
    }

    body.thanksgiving-theme .nav-container nav,
    body.thanksgiving-theme .nav-container .header-bg {
        background-color: transparent;
    }

    body.thanksgiving-theme .nav-container::after {
        display: none;
    }

    body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shrink-0.flex.items-center.h-14 {
        border-bottom-color: transparent;
    }
}

@media (max-width: 430px) {
    body.thanksgiving-theme .nav-container,
    body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shrink-0.flex.items-center.h-14 {
        background-image: url("https://assets.moozi.com/thanks-giving-theme/phone-430-header-full%401720x256.png");
    }
}

/* Bottom tab bar, tablet and mobile (the bar is lg:hidden), as in the
   Harvest Hearth template: a brown bar with a copper rim and a garland of
   leaves, acorns and wheat standing on its top edge, a wheat-and-leaf crest
   over the Coins tab. One full-width picture per size:
   bar-full/tablet-1023 is drawn for a 1023×112 box and bar-full/phone-430
   for a 430×112 one (screens 430px or narrower). The top --tg-bar-rise of
   the picture is the garland, transparent around the art, and rises above
   the bar; the rest is the opaque bar itself.
   ::before spans the bar plus the rise; the picture keeps its 112px height
   and is centred, so it is cropped evenly at both sides and never stretched
   (at 112px it is always as wide as the screens that use it). Below it the
   bar's own colour, the picture's bottom shade, fills any extra height.
   ::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.thanksgiving-theme .bottom-tab-bar.fixed.bottom-0.left-0.right-0.z-50.lg\:hidden.bg-surface-app.backdrop-blur-xl.border-t {
        --tg-bar-rise: 44px;
        overflow: visible;
        border-top-color: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background-color: #321107;
    }

    /* The picture's copper rim replaces the thin gold line. */
    body.thanksgiving-theme .bottom-tab-bar > .relative > .absolute.top-0.h-px {
        display: none;
    }

    body.thanksgiving-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;
        top: calc(-1 * var(--tg-bar-rise));
        left: 0;
        right: 0;
        bottom: 0;
        background: url("https://assets.moozi.com/thanks-giving-theme/bar-full/tablet-1023%404092x448.png") center top / auto 112px no-repeat;
        filter: drop-shadow(0 -4px 10px rgb(0 0 0 / 45%));
        pointer-events: none;
    }

    /* Tab colours from Harvest Hearth: warm tan labels and icon tiles with a
       faint copper outline; the active tab glows amber. */
    body.thanksgiving-theme .bottom-tab-bar .bottom-tab-item > div {
        position: relative;
        color: #d9a47a;
        background: rgb(255 226 184 / 6%);
        box-shadow: inset 0 0 0 1px rgb(224 144 72 / 22%);
        border-radius: 9px;
    }

    body.thanksgiving-theme .bottom-tab-bar .bottom-tab-item > span,
    body.thanksgiving-theme .bottom-tab-bar .bottom-tab-fab > span {
        color: #d9a47a;
    }

    body.thanksgiving-theme .bottom-tab-bar .bottom-tab-item > div.text-accent {
        color: #ffc46b;
        background: linear-gradient(180deg, rgb(255 183 100 / 30%), rgb(207 102 20 / 18%));
        box-shadow: inset 0 0 0 1px #e09048, 0 0 12px rgb(255 150 60 / 40%);
    }

    body.thanksgiving-theme .bottom-tab-bar .bottom-tab-item > span.text-accent,
    body.thanksgiving-theme .bottom-tab-bar .bottom-tab-fab > span.text-accent {
        color: #ffc46b;
        text-shadow: 0 0 8px rgb(255 150 60 / 55%);
    }

    /* A small maple leaf pinned to the top-right corner of the active tab's
       icon tile, as in Harvest Hearth. Only the active tile carries
       .text-accent, so the leaf moves with the active tab and inactive tabs
       never show it. The leaf fills about 80% of its square picture, so the
       16px box draws a ~13px leaf. The Coins tab has its coin ring instead. */
    body.thanksgiving-theme .bottom-tab-bar .bottom-tab-item > div.text-accent::after {
        content: "";
        position: absolute;
        top: -7px;
        right: -8px;
        width: 16px;
        height: 16px;
        transform: rotate(18deg);
        background: url("https://assets.moozi.com/thanks-giving-theme/bar-full/active-leaf-active.png") center / contain no-repeat;
        filter: drop-shadow(0 1px 1px rgb(0 0 0 / 50%));
        pointer-events: none;
    }

    /* Coins: a gold coin with a copper rim. */
    body.thanksgiving-theme .bottom-tab-bar .bottom-tab-fab > div.rounded-full {
        background: radial-gradient(circle at 35% 30%, #ffe08a, #f6b23a 45%, #c8701a 100%);
        box-shadow: 0 6px 16px rgb(0 0 0 / 50%), 0 0 0 2px #8a3d0a, 0 0 0 3px #e09048;
    }

    body.thanksgiving-theme .bottom-tab-bar .bottom-tab-fab > div.rounded-full > svg {
        color: #5a2408;
    }

    /* A ring of leaves and acorns with a soft amber glow around the coin, as
       in Harvest Hearth. bar-full/coin-ring.png is square with the ring
       centred and a hollow middle about half its width, so 12px past each
       side of the 28px coin frames it with the leaves just clear of its rim;
       the open bottom of the ring leaves room for the label. The Coins button
       is its own stacking context (z-20), so z-index -1 paints the ring
       behind the coin but above the bar. */
    body.thanksgiving-theme .bottom-tab-bar .bottom-tab-fab > div.rounded-full::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: -12px;
        background: url("https://assets.moozi.com/thanks-giving-theme/bar-full/coin-ring.png") center / contain no-repeat;
        pointer-events: none;
    }

    /* While the Gold Coin Shop is open, and on the shop page, only the bar
       part shows; the garland above it would sit over the packages. */
    body.thanksgiving-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.thanksgiving-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 {
        clip-path: inset(var(--tg-bar-rise) 0 0 0);
        filter: none;
    }
}

@media (max-width: 430px) {
    body.thanksgiving-theme .bottom-tab-bar.fixed.bottom-0.left-0.right-0.z-50.lg\:hidden.bg-surface-app.backdrop-blur-xl.border-t::before {
        background-image: url("https://assets.moozi.com/thanks-giving-theme/bar-full/phone-430%401720x448.png");
    }
}

/* Package cards inside a swiper-slide (Gold Coin Shop rows and related
   packages): swiper-slide-pumpkin.png, a 1116×1304 transparent overlay drawn
   for the card at 4× (279×326 css px). It holds an acorn cluster in the
   top-right corner (y 8–173), a leaf garland whose bottom edge sits on the
   banner's bottom edge (y 652), a pumpkin straddling that edge on the right
   (y 553–759), and a faint maple leaf behind the value text (y 760–1100).

   The banner keeps its art's own height and the card's height changes with
   its text, so one stretched layer would drift. The file is cut into two
   pieces instead, both sized from the card width (background-size 100% auto,
   aspect-ratio for the height) so they scale with the card at every width:
   - the corner piece (y 0–200) is pinned to the card's top edge;
   - the garland piece (y 520–1120) is pinned to the top of the text block,
     which is the banner's bottom edge, and lifted 132/600 = 22% so y 652
     lands on that edge. Its background offset is 520 / (1304 − 600) = 73.864%.
   The card is overflow-hidden, so anything past its edges is clipped. */
body.thanksgiving-theme swiper-slide .relative.overflow-hidden.rounded-ds-md.shadow-elev-3::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    aspect-ratio: 1116 / 200;
    background: url("https://assets.moozi.com/thanks-giving-theme/swiper-slide-pumpkin.png") center top / 100% auto no-repeat;
    pointer-events: none;
}

/* z-index 0 makes the text block its own stacking context, so the garland
   piece (z-index -1) paints over the banner but under the text and button. */
body.thanksgiving-theme swiper-slide .relative.overflow-hidden.rounded-ds-md.shadow-elev-3 > .flex.flex-col.h-full > .p-3.flex.flex-col.flex-1 {
    position: relative;
    z-index: 0;
}

body.thanksgiving-theme swiper-slide .relative.overflow-hidden.rounded-ds-md.shadow-elev-3 > .flex.flex-col.h-full > .p-3.flex.flex-col.flex-1::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    aspect-ratio: 1116 / 600;
    transform: translateY(-22%);
    background: url("https://assets.moozi.com/thanks-giving-theme/swiper-slide-pumpkin.png") center 73.864% / 100% auto no-repeat;
    pointer-events: none;
}

/* Copper frame on the same package cards, from the Harvest Hearth mockup:
   a 2px transparent border shows a copper gradient painted on the
   border-box layer, while the padding-box layers (warm brown with an ember
   glow at the bottom) cover the rest, so the copper only shows in the
   border. These layers replace the card's own white-tint gradient and
   1px white/10 border.

   Clean edges: everything stays inside the card's own box. The brown is
   fully opaque, so none of the copper underneath shows through the card;
   the card's shadow-elev-3 and the mockup's outer shadows and glow are
   dropped, because the slider row clips them into hard-edged rectangles
   around and between the cards; and backdrop-blur is turned off, since the
   opaque card has nothing to blur and the blur bleeds past rounded corners.
   Hover lights the frame from the inside instead.

   Every card that can be bought gets the moving light: the copper becomes a
   conic gradient with one bright highlight whose start angle turns through
   360° every 4s, so the light runs round the frame. --tg-ring-angle is
   registered as an <angle> so it can animate; browsers without @property
   keep the frame still. Locked cards keep the still copper frame:
   - a package waiting on a prerequisite purchase (its banner art is
     greyed out: .grayscale.opacity-60, with the lock icon);
   - a package outside the player's tier (its wrapper is .opacity-50).
   Reduced motion keeps the bright frame without the spin. */
@property --tg-ring-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

body.thanksgiving-theme swiper-slide .relative.overflow-hidden.rounded-ds-md.shadow-elev-3 {
    border: 2px solid transparent;
    background:
        radial-gradient(ellipse 80% 40% at 50% 100%, rgb(242 134 42 / 18%), transparent 70%) padding-box,
        linear-gradient(180deg, #432313, #1c0d06) padding-box,
        linear-gradient(160deg, #ffb764, #b9560e 40%, #ffd08a 60%, #8a3d0a) border-box;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: box-shadow 0.25s ease;
}

body.thanksgiving-theme swiper-slide:hover .relative.overflow-hidden.rounded-ds-md.shadow-elev-3 {
    box-shadow: inset 0 0 14px rgb(242 134 42 / 35%);
}

body.thanksgiving-theme swiper-slide .flex-shrink-0:not(.opacity-50) > .relative.overflow-hidden.rounded-ds-md.shadow-elev-3:not(:has(.grayscale.opacity-60)) {
    background:
        radial-gradient(ellipse 80% 40% at 50% 100%, rgb(242 134 42 / 18%), transparent 70%) padding-box,
        linear-gradient(180deg, #432313, #1c0d06) padding-box,
        conic-gradient(from var(--tg-ring-angle), #6a2a08, #8a3d0a 20%, #f2862a 32%, #fff6e0 40%, #f2862a 48%, #8a3d0a 60%, #6a2a08) border-box;
    animation: thanksgiving-ring-spin 4s linear infinite;
}

@keyframes thanksgiving-ring-spin {
    to {
        --tg-ring-angle: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.thanksgiving-theme swiper-slide .flex-shrink-0:not(.opacity-50) > .relative.overflow-hidden.rounded-ds-md.shadow-elev-3:not(:has(.grayscale.opacity-60)) {
        animation: none;
    }
}

/* Maple leaf towards the bottom-right of each game card (PaginateGameCard,
   the only card with `.game-card.group`; lobby rows and game grids). Loading
   skeletons and winner cards share `.game-card` but not `.group`, so they
   stay plain. game-card-maple-leaf.png is a 512×512 transparent leaf.
   It sits on the square thumbnail box, whose ::after is the 1:1 padding
   spacer, so ::before carries the leaf. Sized and inset in % of the card
   so it scales with every card width. z-index 5: over the thumbnail, under
   the hover title gradient (z-10) and the badge and favourite button (z-20). */
body.thanksgiving-theme .game-card.group > .games-aspect-ratio-1-1::before {
    content: "";
    position: absolute;
    z-index: 5;
    right: 5%;
    bottom: 5%;
    width: 22%;
    aspect-ratio: 1;
    background: url("https://assets.moozi.com/thanks-giving-theme/game-card-maple-leaf.png") center / contain no-repeat;
    transform: rotate(-18deg);
    filter: drop-shadow(0 2px 3px rgb(0 0 0 / 45%));
    pointer-events: none;
}

/* Corner swags hanging under the header and under the Gold Coin Shop header,
   every screen size. corner-swag-left.png and corner-swag-right.png are a
   mirrored pair of 784×513 transparent images: a vine along the top edge with
   a pumpkin, leaves and hanging acorns, curling down the outer edge. The top
   and outer edges of each image are the vine, so each sits flush in its
   corner. Widths use clamp() so they scale with the screen (main header) or
   the shop panel (shop header) and stop at sensible sizes; the height follows
   from aspect-ratio. Clicks pass through.

   The boxes here carry no picture. thanksgiving-decor.js adds both images,
   with a fade-in, once the loading splash logo has finished loading, so the
   swags never show before the logo does.

   Main header: body::before (left) and body::after (right), fixed just under
   the header like the Christmas bauble. z-index 75 keeps them over the side
   menu (z-70) and under every modal (z-80 and up) and the loading splash
   (z-100). They step aside while the shop modal is open (the panel carries
   its own pair) and on the game page, where the header is hidden. */
body.thanksgiving-theme::before,
body.thanksgiving-theme::after {
    content: "";
    position: fixed;
    z-index: 75;
    top: var(--nav-header-height, 64px);
    width: clamp(5.5rem, 8vw + 3rem, 11rem);
    aspect-ratio: 784 / 513;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

body.thanksgiving-theme::before {
    left: 0;
}

body.thanksgiving-theme::after {
    right: 0;
}

body.thanksgiving-theme:has(.w-full.transform-gpu.will-change-transform .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden)::before,
body.thanksgiving-theme:has(.w-full.transform-gpu.will-change-transform .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden)::after,
body.thanksgiving-theme:has(#slot-iframe)::before,
body.thanksgiving-theme:has(#slot-iframe)::after {
    content: none;
}

/* Room for the left swag in the side menu, as in the Harvest Hearth mockup:
   the menu starts right under the header, so the swag's hanging acorns would
   cover the "Moozi Loyalty Program" heading. Its top block is lowered by
   clamp(30px, 3.2vw, 46px), which clears the acorns at every width from
   640px up (phones already clear them). The padding goes on the block,
   not the wrapper, so its background runs up to the header. */
@media (min-width: 640px) {
    body.thanksgiving-theme #drawer-navigation .drawer-navigation-wrapper > .bg-surface-elevated:first-child {
        padding-top: clamp(30px, 3.2vw, 46px);
    }
}

/* Gold Coin Shop: the same pair inside the panel, just under its 56px header
   row (h-14 = 3.5rem), over the scrolling content. The panel clips them to
   its rounded edges. Sized from the panel width. */
body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden {
    position: relative;
}

body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden::before,
body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden::after {
    content: "";
    position: absolute;
    z-index: 30;
    top: 3.5rem;
    width: clamp(5rem, 12% + 2rem, 10rem);
    aspect-ratio: 784 / 513;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden::before {
    left: 0;
}

body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden::after {
    right: 0;
}

/* Pilgrim hat on the header logo (guest and logged-in navs, which the landing
   page shares), as in the Harvest Hearth mockup. logo-pilgrim-hat.png is a
   512×434 transparent hat, already tilted. An <img> can't hold a pseudo-
   element, so, like the Christmas logo swap, the img's own picture is parked
   outside its box and the logo is repainted as the bottom background layer
   (the same logo.webp the navs load), with the hat layered on top: 34% of
   the logo's width, tucked over its top-right corner (102% 6%). Both layers
   are sized from the img box, so the hat follows the logo at every width.
   The loading splash shows the same logo.webp and gets the same hat. */
body.thanksgiving-theme nav img[alt="Logo"],
body.thanksgiving-theme .landing-promo-root img[alt="Logo"],
body.thanksgiving-theme [data-preloading-overlay] img[alt="Logo"] {
    object-fit: none !important;
    object-position: -9999px center !important;
    background-image:
        url("https://assets.moozi.com/thanks-giving-theme/logo-pilgrim-hat.png"),
        url("https://assets.moozi.com/assets/img/logo/logo.webp");
    background-repeat: no-repeat;
    background-size: 34% auto, 100% 100%;
    background-position: 102% 6%, center;
}

/* The same hat on the other wordmarks: footer-logo.svg (app footer, mobile
   and desktop, and the landing page footer) and logo.svg (checkout modal,
   KYC header). Same repaint as above, but these files are cropped tight to
   the letters, with the dot of the i touching the top edge, so there is no
   room in the box for the hat. Each img box is grown up and to the right to
   make that room: the wordmark keeps its exact size in the bottom-left of
   the box, the hat sits in the top-right corner, and negative top and right
   margins take the extra back out, so the letters stay exactly where they
   were and nothing around them moves.
   The hat matches the header one: 0.75× the file's height wide, its ink
   centred just left of the i's dot and its brim 0.18× the height below the
   dot's centre, hiding the dot. Worked out per file (dot centre at 160, 8.5
   in footer-logo.svg's 168×82, at 743, 43 in logo.svg's 844.5×380.5):
     footer-logo.svg box 188.9×104.3: letters 88.94% × 78.65%, hat 32.56%
     logo.svg        box 877.1×480.3: letters 96.29% × 79.23%, hat 32.54%
   --tg-logo-w / --tg-logo-h is the size the slot gives the original file;
   the margins are the box growth (20.9/168 and 22.3/168 for the footer
   file, 32.6/380.5 and 99.8/380.5 for logo.svg). */
body.thanksgiving-theme img[src$="/assets/img/footer/footer-logo.svg"],
body.thanksgiving-theme img[src$="/assets/img/logo.svg"] {
    object-fit: none !important;
    object-position: -9999px center !important;
    background-repeat: no-repeat;
    background-position: 100% 0, 0 100%;
}

body.thanksgiving-theme img[src$="/assets/img/footer/footer-logo.svg"] {
    --tg-logo-w: 5rem;
    width: calc(var(--tg-logo-w) * 188.9 / 168) !important;
    height: auto !important;
    max-width: none;
    aspect-ratio: 188.9 / 104.3;
    margin-top: calc(var(--tg-logo-w) * -22.3 / 168);
    margin-right: calc(var(--tg-logo-w) * -20.9 / 168);
    background-image:
        url("https://assets.moozi.com/thanks-giving-theme/logo-pilgrim-hat.png"),
        url("https://assets.moozi.com/assets/img/footer/footer-logo.svg");
    background-size: 32.56% auto, 88.94% 78.65%;
}

body.thanksgiving-theme img[src$="/assets/img/logo.svg"] {
    --tg-logo-h: 1.25rem;
    width: auto !important;
    height: calc(var(--tg-logo-h) * 480.3 / 380.5) !important;
    aspect-ratio: 877.1 / 480.3;
    margin-top: calc(var(--tg-logo-h) * -99.8 / 380.5);
    margin-right: calc(var(--tg-logo-h) * -32.6 / 380.5);
    background-image:
        url("https://assets.moozi.com/thanks-giving-theme/logo-pilgrim-hat.png"),
        url("https://assets.moozi.com/assets/img/logo.svg");
    background-size: 32.54% auto, 96.29% 79.23%;
}

/* Slot sizes of the original files. App footer, mobile: w-20, xs:w-22,
   md:w-2/12. App footer, desktop: w-6/12. Landing footer: min(100%, 7.5rem)
   and, below 1024px, min(5rem, 72vw). Checkout modal: h-5 (the default
   above). KYC header: h-11, sm:h-12 (2.25rem in this project). */
@media (min-width: 420px) {
    body.thanksgiving-theme .flex.lg\:hidden.w-full.items-center.justify-center.mt-4.mb-10.md\:mb-14 > img {
        --tg-logo-w: 5.5rem;
    }
}

@media (min-width: 768px) {
    body.thanksgiving-theme .flex.lg\:hidden.w-full.items-center.justify-center.mt-4.mb-10.md\:mb-14 > img {
        --tg-logo-w: 16.666667%;
    }
}

body.thanksgiving-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 {
    --tg-logo-w: 50%;
}

body.thanksgiving-theme .landing-promo-footer .footer-logo-main-img {
    --tg-logo-w: min(100%, 7.5rem);
}

body.thanksgiving-theme .landing-promo-footer .footer-logo-mobile-wordmark {
    --tg-logo-w: min(5rem, 72vw);
}

body.thanksgiving-theme .kyc-hero img[src$="/assets/img/logo.svg"] {
    --tg-logo-h: 2.75rem;
}

/* This project's spacing scale makes h-12 2.25rem, not Tailwind's 3rem. */
@media (min-width: 640px) {
    body.thanksgiving-theme .kyc-hero img[src$="/assets/img/logo.svg"] {
        --tg-logo-h: 2.25rem;
    }
}

/* Gold Coin Shop text and close button, from the Harvest Hearth mockup.
   Header title: the coin icon and "Gold Coin Shop" sit in a dark pill with an
   amber outline and a warm glow, the label in cream uppercase. The pill grows
   to fit the wider lettering instead of truncating it.
   Close button: pumpkin outline, see-through dark fill, peach ×; brighter on
   hover. Headline ("BUY YOUR GOLD COINS!"): white into light pumpkin into
   pumpkin, scoped to the shop content block so the shop modal and the
   /gold-coin-shop page match. */
body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shrink-0.flex.items-center.h-14 > div:first-child {
    position: relative;
    z-index: 1;
    width: max-content;
    overflow: visible;
    padding: 4px 16px 4px 6px;
    border: 1px solid #e09048;
    border-radius: 999px;
    background: rgb(26 9 4 / 72%);
    box-shadow: 0 0 14px rgb(255 150 60 / 35%), inset 0 1px 0 rgb(255 210 150 / 25%);
}

body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shrink-0.flex.items-center.h-14 .type-button-sm {
    width: max-content;
    overflow: visible;
    text-overflow: clip;
    color: #ffe2b8;
    text-shadow: 0 0 10px rgb(255 150 60 / 55%);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 900;
}

@media (max-width: 639px) {
    body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shrink-0.flex.items-center.h-14 .type-button-sm {
        letter-spacing: .05em;
    }
}

body.thanksgiving-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;
    border-color: #f2862a;
    background: rgb(0 0 0 / 28%);
    color: #ffd7a8;
}

body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shrink-0.flex.items-center.h-14 > button:hover {
    border-color: #ffb764;
    color: #fff1dc;
}

body.thanksgiving-theme .w-full.h-full.flex.flex-col.justify-center.items-center.pb-20.pt-5 .type-h1 {
    background: linear-gradient(135deg, #fff 30%, #ffb764 60%, #f2862a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bottom corner art, as in the Harvest Hearth mockup: a pumpkin pile on the
   left (bottom-left-pumpkin.png, 1600×600) and a wheat sheaf on the right
   (bottom-right-wheat-sheaf.png, 1600×1067), both transparent. Like the
   corner swags, only the boxes live here; thanksgiving-decor.js adds the
   pictures once the splash logo has loaded.

   Screen corners, desktop only: #thanksgiving-corner-left/-right are added by
   thanksgiving-decor.js (body's own pseudo-elements carry the top swags).
   Pumpkins under the header (z-60) and side menu (z-70) at z-55; the sheaf at
   z-65. Both glow warmly and sway a little; the side menu draws its own copy
   of the pumpkins so they read as one piece across it. They step aside while
   the shop modal is open and on the game page. */
#thanksgiving-corner-left,
#thanksgiving-corner-right {
    display: none;
}

@media (min-width: 1024px) {
    body.thanksgiving-theme #thanksgiving-corner-left,
    body.thanksgiving-theme #thanksgiving-corner-right,
    body.thanksgiving-theme #drawer-navigation::after {
        display: block;
        position: fixed;
        bottom: 0;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        filter: drop-shadow(0 0 18px rgb(255 150 60 / 42%)) drop-shadow(0 10px 12px rgb(0 0 0 / 60%));
        pointer-events: none;
    }

    body.thanksgiving-theme #thanksgiving-corner-left,
    body.thanksgiving-theme #drawer-navigation::after {
        left: 0;
        width: clamp(30rem, 34vw, 48rem);
        aspect-ratio: 1600 / 600;
        transform: translate(-1rem, 0.9rem);
        transform-origin: left bottom;
        animation: thanksgiving-sway-l 8s ease-in-out infinite;
    }

    body.thanksgiving-theme #thanksgiving-corner-left {
        z-index: 55;
    }

    body.thanksgiving-theme #thanksgiving-corner-right {
        z-index: 65;
        right: 0;
        width: clamp(22rem, 27vw, 36rem);
        aspect-ratio: 1600 / 1067;
        transform: translate(0.75rem, 0.75rem);
        transform-origin: right bottom;
        animation: thanksgiving-sway-r 7s ease-in-out infinite;
    }

    /* The side menu's transform makes it the containing block, so this copy
       lines up with the screen one. The menu itself is clipped so the copy
       stays put; its links still scroll inside .drawer-navigation-wrapper. */
    body.thanksgiving-theme #drawer-navigation {
        overflow: hidden;
    }

    body.thanksgiving-theme #drawer-navigation::after {
        content: "";
        z-index: 0;
    }

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

    /* Warm pools of light under each corner piece. */
    body.thanksgiving-theme #thanksgiving-leaves::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 34vh;
        background:
            radial-gradient(ellipse 26% 70% at 6% 100%, rgb(242 134 42 / 15%), transparent 70%),
            radial-gradient(ellipse 22% 70% at 96% 100%, rgb(242 134 42 / 15%), transparent 70%);
    }

    body.thanksgiving-theme:has(.w-full.transform-gpu.will-change-transform .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden) #thanksgiving-corner-left,
    body.thanksgiving-theme:has(.w-full.transform-gpu.will-change-transform .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden) #thanksgiving-corner-right,
    body.thanksgiving-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.thanksgiving-theme:has(#slot-iframe) #thanksgiving-corner-left,
    body.thanksgiving-theme:has(#slot-iframe) #thanksgiving-corner-right {
        display: none;
        content: none;
    }
}

@keyframes thanksgiving-sway-l {
    0%, 100% { transform: translate(-1rem, 0.9rem) rotate(0deg); }
    50% { transform: translate(-1rem, 0.9rem) rotate(-1deg); }
}

@keyframes thanksgiving-sway-r {
    0%, 100% { transform: translate(0.75rem, 0.75rem) rotate(0deg); }
    50% { transform: translate(0.75rem, 0.75rem) rotate(1.2deg); }
}

@media (prefers-reduced-motion: reduce) {
    body.thanksgiving-theme #thanksgiving-corner-left,
    body.thanksgiving-theme #thanksgiving-corner-right,
    body.thanksgiving-theme #drawer-navigation::after {
        animation: none;
    }
}

/* Gold Coin Shop, every screen size: the same pair along the bottom of the
   panel, under the packages, which fade out just before they reach the art.
   The scroll area is not positioned, so its ::before/::after take the panel
   (position: relative) as their containing block: they sit on the panel's
   bottom corners and don't scroll with the list. z-index -1 inside the
   isolated panel puts them over the panel background but under the content. */
body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden {
    isolation: isolate;
}

body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shop-modal-scroll {
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 3.5rem), rgb(0 0 0 / 30%) 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 3.5rem), rgb(0 0 0 / 30%) 100%);
}

body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shop-modal-scroll::before,
body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shop-modal-scroll::after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 0;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    filter: drop-shadow(0 0 14px rgb(255 150 60 / 42%)) drop-shadow(0 8px 10px rgb(0 0 0 / 60%));
    pointer-events: none;
}

body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shop-modal-scroll::before {
    left: 0;
    width: min(36%, 26rem);
    aspect-ratio: 1600 / 600;
    transform: translate(-0.75rem, 0.6rem);
}

body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shop-modal-scroll::after {
    right: 0;
    width: min(24%, 18rem);
    aspect-ratio: 1600 / 1067;
    transform: translate(0.5rem, 0.5rem);
}

@media (max-width: 639px) {
    body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shop-modal-scroll::before {
        width: 92%;
    }

    body.thanksgiving-theme .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden > .shop-modal-scroll::after {
        width: 56%;
    }
}

/* Falling leaves. thanksgiving-decor.js adds the layer after the splash logo.
   Each span is a CSS-drawn leaf (no image yet), sized, tinted and timed with
   custom properties so the fall is uneven. Swap the background for leaf art
   once it is on the asset host. Clicks pass through. */
@keyframes thanksgiving-leaf-fall {
    0% {
        transform: translate3d(0, -15vh, 0) rotate(0deg);
    }
    25% {
        transform: translate3d(var(--leaf-drift, 1rem), 22vh, 0) rotate(calc(var(--leaf-spin, 1) * 90deg));
    }
    50% {
        transform: translate3d(calc(var(--leaf-drift, 1rem) * -0.6), 50vh, 0) rotate(calc(var(--leaf-spin, 1) * 200deg));
    }
    75% {
        transform: translate3d(var(--leaf-drift, 1rem), 80vh, 0) rotate(calc(var(--leaf-spin, 1) * 290deg));
    }
    100% {
        transform: translate3d(calc(var(--leaf-drift, 1rem) * -0.35), 115vh, 0) rotate(calc(var(--leaf-spin, 1) * 380deg));
    }
}

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

body.thanksgiving-theme #thanksgiving-leaves span {
    position: absolute;
    top: 0;
    left: var(--leaf-left, 10%);
    width: var(--leaf-size, 1rem);
    height: var(--leaf-size, 1rem);
    opacity: var(--leaf-opacity, 0.75);
    background: var(--leaf-color, #f08a24);
    border-radius: 0 100% 0 100%;
    box-shadow: inset 0 0 0 1px rgb(20 11 6 / 18%);
    animation: thanksgiving-leaf-fall var(--leaf-duration, 14s) linear var(--leaf-delay, 0s) infinite;
}

/* Leaf vein */
body.thanksgiving-theme #thanksgiving-leaves span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 12%;
    width: 1px;
    height: 76%;
    background: rgb(20 11 6 / 35%);
    transform: rotate(-45deg);
    transform-origin: center;
}

/* Hide the leaves while the gold coin shop is open, the same as the Christmas snow. */
body.thanksgiving-theme:has(.w-full.transform-gpu.will-change-transform .w-full.h-full.flex.flex-col.bg-surface-app.overflow-hidden) #thanksgiving-leaves,
body.thanksgiving-theme:has(.w-full.h-full.flex.flex-col.justify-center.items-center.pb-20.pt-5) #thanksgiving-leaves {
    display: none;
}

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