/* ==========================================================================
   Trang chủ mùa Noel (1/12–26/12, utils/season.js) — chỉ nạp trong mùa, nạp SAU index.css.
   Tranh + sticker cắt từ ảnh Gemini bằng scripts/genNoelArt.js (public/images/home/noel/).
   Noel bằng tranh pastel, không khối đỏ–xanh: coral thay đỏ, sage thay xanh thông (style.md §1.2).
   Mọi chuyển động chỉ chạy transform bằng CSS, không JS (giữ INP).
   ========================================================================== */

/* Sprite sticker .nst / .nst--* nằm ở public/css/noel-header.css (header nạp trên mọi trang trong mùa). */

/* ------------------------------- Tuyết rơi ---------------------------------- */
.noel-snow {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.noel-snow i {
    position: absolute;
    top: -12px;
    left: var(--x);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(227, 212, 240, 0.55);
    opacity: 0.9;
    animation: noel-fall var(--d) linear var(--w) infinite;
}

@keyframes noel-fall {
    to { transform: translate3d(var(--dx), 1500px, 0); }
}

/* --------------------------------- HERO ------------------------------------- */
/* Nền trời nối liền màu mép tranh (lấy mẫu từ hero-sky-m / hero-d). */
.hero--noel {
    background: linear-gradient(180deg, #efe4e1 0%, #f9eada 22%, #faedde 60%, #fff7f5 100%);
}

.hero--noel .hero-bg {
    filter: none;
    height: auto;
    object-fit: fill;
}

.hero--noel .hero-veil {
    background: radial-gradient(80% 34% at 50% 26%, rgba(255, 250, 246, 0.72) 0%, rgba(255, 250, 246, 0) 72%);
}

.hero--noel .hero-inner {
    z-index: 3;
}

.hero--noel .hero-badge {
    background: rgba(255, 255, 255, 0.9);
}

.noel-garland {
    position: absolute;
    z-index: 4;
    left: 50%;
    transform: translateX(-50%);
    max-width: none;
    height: auto;
    pointer-events: none;
    user-select: none;
}

/* Ngôi sao + chuông treo ở hai đầu dây thông, đung đưa nhẹ. */
.noel-hang {
    position: absolute;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: 50% 0;
    animation: noel-swing 3.6s ease-in-out infinite alternate;
    pointer-events: none;
}

.noel-hang::before {
    content: "";
    width: 2px;
    height: var(--len, 22px);
    background: #b38b7f;
    border-radius: 2px;
}

.noel-hang .nst {
    margin-top: -3px;
}

.noel-hang--r {
    animation-delay: -1.8s;
}

@keyframes noel-swing {
    from { transform: rotate(-7deg); }
    to { transform: rotate(7deg); }
}

/* Cảnh làng Noel chỉ hiện trên mobile (desktop đã có tranh ngang làm nền). */
.noel-scene {
    display: none;
}

@media (max-width: 1000px) {
    /* Hero mobile: chữ + 2 nút trên nền trời → cảnh làng Noel → đoạn mô tả + 4 chip. */
    .hero--noel {
        display: block;
        min-height: 0;
        padding: 184px 16px 30px;
    }

    .hero--noel .hero-bg {
        bottom: auto;
        -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    }

    .noel-garland {
        top: 88px;
        width: calc(100% + 12px);
    }

    .noel-hang { top: 100px; }
    .noel-hang--l { left: 3%; --len: 20px; }
    .noel-hang--r { right: 2.5%; --len: 30px; }
    .noel-hang .nst { --sz: 30px; }

    .hero--noel .hero-badge { order: 1; }
    .hero--noel .hero-h1 { order: 2; }
    .hero--noel .hero-cta { order: 3; }
    .hero--noel .noel-scene { order: 4; }
    .hero--noel .hero-lede { order: 5; }
    .hero--noel .hero-chips { order: 6; }

    /* Hai nút xếp ngang để cảnh làng lọt màn đầu. */
    .hero--noel .hero-cta {
        flex-direction: row;
        max-width: 420px;
        gap: 10px;
        margin-top: 22px;
    }

    .hero--noel .hero-cta .btn {
        flex: 1 1 0;
        justify-content: center;
        padding: 13px 8px;
        font-size: 0.93rem;
    }

    .hero--noel .hero-cta .btn-ar {
        display: none;
    }

    .hero--noel .noel-scene {
        display: block;
        align-self: stretch;
        margin: 8px -16px 0;
    }

    .hero--noel .noel-scene img {
        display: block;
        width: 100%;
        height: auto;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 12%);
    }

    .hero--noel .hero-lede {
        margin-top: 6px;
    }
}

@media (min-width: 1001px) {
    /* Hero desktop: tranh ngang neo đáy; chừa đáy 27vw (≈ phần nhân vật của tranh cao 57vw)
       để chữ và chip không đè lên Mèo Béo và cây thông ở hai góc. */
    /* Cao theo nội dung (không 100svh): màn hình cao thì khỏi hở một khoảng trời trống giữa chip và tranh. */
    .hero--noel {
        align-items: flex-start;
        min-height: 0;
        padding: 270px 20px 27vw;
    }

    .hero--noel .hero-bg {
        top: auto;
        bottom: 0;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
    }

    .noel-garland {
        top: 86px;
        width: min(820px, 60vw);
    }

    .noel-hang { top: 96px; }
    .noel-hang--l { left: calc(50% - min(410px, 30vw) - 6px); --len: 30px; }
    .noel-hang--r { right: calc(50% - min(410px, 30vw) - 6px); --len: 44px; }
    .noel-hang .nst { --sz: 42px; }
}

/* Mùa Noel: header có thêm dải dây thông treo quả châu (~23px) → đích cuộn của nút "Xem bói" chừa thêm chỗ. */
#kham-pha {
    scroll-margin-top: 86px;
}

/* ------------------------- Vạch dưới tiêu đề khối --------------------------- */
.hs-rule {
    width: min(250px, 66%);
    height: 52px;
    margin: 10px auto 0;
    border: 0;
    background: url(/images/home/noel/garland.webp) center / contain no-repeat;
}

/* --------------------------- Dải "Mùa Noel" -------------------------------- */
.noel-season {
    padding-top: 40px;
    padding-bottom: 34px;
}

.ns-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ns-head .nst {
    --sz: 40px;
}

.ns-title {
    font-family: var(--font-display);
    font-size: clamp(1.32rem, 1.08rem + 1vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--accent);
    margin: 0;
    text-align: center;
}

.ns-sub {
    margin: 4px 0 0;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.ns-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 24px auto 0;
}

.ns-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
}

.ns-ic {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    background: var(--c, #ffd6e6);
    transition: transform 0.25s ease;
}

.ns-ic .nst {
    --sz: 64px;
}

.ns-item:hover .ns-ic {
    transform: translateY(-3px) rotate(-5deg);
}

.ns-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.ns-item:hover .ns-name {
    color: var(--accent);
}

.ns-desc {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-muted);
}

@media (max-width: 1000px) {
    .noel-season {
        padding-top: 30px;
        padding-bottom: 24px;
    }

    /* Cuộn ngang, lộ 1 phần mục thứ ba để người dùng biết còn nữa. */
    .ns-row {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        scrollbar-width: none;
        margin: 18px -16px 0;
        padding: 0 16px 4px;
    }

    .ns-row::-webkit-scrollbar {
        display: none;
    }

    .ns-item {
        flex: 0 0 40%;
        align-items: flex-start;
        text-align: left;
        scroll-snap-align: start;
    }

    .ns-ic {
        width: 64px;
        height: 64px;
    }

    .ns-ic .nst {
        --sz: 52px;
    }
}

/* ------------------------- Sticker nhô góc ảnh ------------------------------ */
.noel-peek {
    position: absolute;
    z-index: 4; /* trên lớp tuyết phủ mép thẻ (z-index 3) */
    pointer-events: none;
}

.booth-hero-art,
.spot-art {
    position: relative;
}

.booth-hero-art .noel-peek {
    --sz: 60px;
    top: 8px;
    right: 8px;
    transform: rotate(16deg);
}

.spot-art .noel-peek {
    --sz: 50px;
    top: 10px;
    right: 10px;
    transform: rotate(14deg);
}

#kham-pha .hs-in {
    position: relative;
}

.noel-peek--tools {
    --sz: 56px;
    top: -6px;
    right: 0;
    transform: rotate(12deg);
}

.tgroup-noel {
    --sz: 30px;
    margin: -6px 0 0 -4px;
}

/* ------------------------------- CTA cuối ----------------------------------- */
.hs--end {
    overflow: hidden;
    padding-bottom: 0;
}

.hs--end .hs-in {
    position: relative;
    z-index: 2;
}

/* Bãi tuyết với người tuyết, mèo trong hộp quà, Mèo Béo mũ Noel, ca cacao, xe trượt. */
.noel-stand {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 126px;
    margin: 26px auto 0;
}

.noel-stand::before {
    content: "";
    position: absolute;
    left: -40%;
    right: -40%;
    bottom: -70px;
    height: 120px;
    border-radius: 50% 50% 0 0;
    background: #fffdfb;
    box-shadow: 0 -6px 18px rgba(227, 212, 240, 0.45);
}

.noel-stand .nst {
    position: relative;
    --sz: 76px;
    margin: 0 -2px 14px;
}

.noel-stand .nst--cat-santa {
    --sz: 98px;
    margin-bottom: 20px;
}

@media (max-width: 1000px) {
    .noel-stand {
        height: 104px;
    }

    .noel-stand .nst {
        --sz: 60px;
    }

    .noel-stand .nst--cat-santa {
        --sz: 78px;
    }
}

/* ------------------------ Tuyết phủ mép trên các khối ------------------------ */
/* Tile vẽ tay public/images/home/noel/snowcap-card.svg (gờ tuyết phồng + giọt tuyết, viền lavender nhạt
   để đọc được cả trên thẻ trắng), lặp ngang, cao cố định nên không méo nét.
   - Thẻ không cắt tràn: tuyết nhô lên trên mép thẻ (top âm).
   - Thẻ có ảnh bị cắt theo bo góc (overflow: hidden): tuyết nằm trong mép trên, phủ lên ảnh. */
.booth-hero,
.booth-card,
.gp-banner,
.tool,
.spot,
.love,
.bfeat,
.bcard,
.faq,
.prow,
.hs .dc-section {
    position: relative;
}

/* Thẻ Photobooth / Cutebooth không có ảnh cần cắt → cho tuyết tràn lên trên. */
.booth-card {
    overflow: visible;
}

.booth-hero::before,
.booth-card::before,
.gp-banner::before,
.tool::before,
.spot::before,
.love::before,
.bfeat::before,
.bcard::before,
.faq::before,
.prow::before,
.hs .dc-section::before {
    content: "";
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    top: -10px;
    height: 27px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: url(/images/home/noel/snowcap-card.svg) 0 0 / auto 100% repeat-x;
    pointer-events: none;
}

.booth-hero::before,
.gp-banner::before,
.spot::before,
.bfeat::before,
.bcard::before {
    top: 0;
}

.booth-hero::before,
.booth-card::before,
.gp-banner::before,
.spot::before,
.bfeat::before {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.faq::before,
.prow::before {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.prow::before {
    top: -7px;
    height: 19px;
}

.hs .dc-section::before {
    top: -12px;
    height: 32px;
    border-radius: 26px 26px 0 0;
}

/* Nền màu pastel cho các khối phủ tuyết (chủ dự án 1/12/2026: "các khối được phủ tuyết có màu nền khác
   màu trắng") — tuyết trắng mới nổi. Lấy màu sẵn có của từng khối (--tint nhóm công cụ, --bc thẻ booth,
   --sp thẻ nổi bật), trộn với trắng bằng color-mix; trình duyệt cũ không hiểu color-mix thì dùng dòng trên.
   Chữ phụ trong khối đậm hơn một chút (--text-muted) để vẫn đủ tương phản trên nền màu. */
.tool,
.booth-hero,
.booth-card,
.spot,
.love,
.faq,
.prow,
.bfeat,
.bcard,
.hs .dc-section {
    --text-muted: #725f5a;
}

.tool {
    background: var(--tint, #fff5f2);
    background: color-mix(in srgb, var(--tint, #fff5f2) 82%, #fff);
    border-color: color-mix(in srgb, var(--tint, #fff5f2), #6b4f47 9%);
}

.tool-ic {
    background: #fff;
}

.booth-hero {
    background: #fff1ea;
    border-color: #fbd9cc;
}

.booth-card {
    background: var(--bc, #ffd6e6);
    background: color-mix(in srgb, var(--bc, #ffd6e6) 48%, #fff);
    border-color: color-mix(in srgb, var(--bc, #ffd6e6), #6b4f47 9%);
}

.booth-ic {
    background: #fff;
}

.spot {
    background: var(--sp, #fff2ec);
    border-color: color-mix(in srgb, var(--sp, #fff2ec), #6b4f47 8%);
}

.gp-banner {
    background: linear-gradient(135deg, #ffefd2 0%, #ffe8dc 60%, #ffdfd8 100%);
}

/* Bốn màu xoay vòng: hồng · vàng bơ · mint · lavender. */
.love:nth-child(4n+1), .bcard:nth-child(4n+1), .faq:nth-of-type(4n+1) { --noel-bg: #ffe9f0; --noel-bd: #f6d3de; }
.love:nth-child(4n+2), .bcard:nth-child(4n+2), .faq:nth-of-type(4n+2) { --noel-bg: #fff3d9; --noel-bd: #f3e0b6; }
.love:nth-child(4n+3), .bcard:nth-child(4n+3), .faq:nth-of-type(4n+3) { --noel-bg: #e8f6ee; --noel-bd: #cde7d8; }
.love:nth-child(4n),   .bcard:nth-child(4n),   .faq:nth-of-type(4n)   { --noel-bg: #f1eafa; --noel-bd: #ddd0ee; }

.love,
.bcard,
.faq {
    background: var(--noel-bg, #ffe9f0);
    border-color: var(--noel-bd, #f6d3de);
}

.bfeat {
    background: #ffe9f0;
    border-color: #f6d3de;
}

.prow {
    background: #fff0e8;
    border-color: #f8d9cc;
}

.prow.is-sale {
    background: linear-gradient(135deg, #ffeee6, #ffe3d8);
}

.prow.is-free {
    background: linear-gradient(135deg, #ecf8f1, #dff2e7);
    border-color: #c9e6d5;
}

.hs .dc-section {
    background: linear-gradient(180deg, #ffeef2 0%, #fde6df 100%);
    border-color: #f4d3cd;
}

/* Nhãn nằm sát mép trên ảnh blog phải nổi trên lớp tuyết. */
.bfeat-badge,
.bcard-thumb .btag {
    z-index: 4;
}

/* Lệch vân tuyết giữa các thẻ cạnh nhau cho đỡ giống nhau. */
.tool:nth-child(3n+2)::before,
.love:nth-child(3n+2)::before,
.faq:nth-of-type(3n+2)::before,
.prow:nth-child(3n+2)::before,
.booth-card:nth-child(3)::before,
.spot:nth-child(2)::before,
.bcard:nth-child(2)::before {
    background-position-x: -23px;
}

.tool:nth-child(3n)::before,
.love:nth-child(3n)::before,
.faq:nth-of-type(3n)::before,
.prow:nth-child(3n)::before,
.spot:nth-child(3)::before,
.bcard:nth-child(3)::before {
    background-position-x: -41px;
}

/* ------------------- Dây phơi ảnh Selfbooth (partials/boothShowcase) ------------------- */
/* Chỉ trang chủ trong mùa (include với bsNoel → .bs-noel). Cuộn phim do public/js/booth-showcase.js kéo trôi
   và nối thêm liên tục, nên mọi trang trí bám vào chính .bs-item / .bs-clip bằng CSS, không thêm phần tử. */

/* Dây phơi thành dây đèn (dây + bóng ở ::before, lớp sáng nhấp nháy ở ::after). */
.bs-noel .bs-wall::before,
.bs-noel .bs-wall::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 27px;
    height: 26px;
    border: 0;
    opacity: 1;
    background: url(/images/home/noel/lights.svg) 0 0 repeat-x;
    pointer-events: none;
}

.bs-noel .bs-wall::after {
    background-image: url(/images/home/noel/lights-glow.svg);
    animation: bs-twinkle 1.8s ease-in-out infinite alternate;
}

@keyframes bs-twinkle {
    from { opacity: 0.15; }
    to { opacity: 1; }
}

/* Kẹp phơi sọc kẹo gậy, quả bông trắng trên đầu. */
.bs-noel .bs-clip {
    background: repeating-linear-gradient(135deg, #fff 0 4px, #f19a86 4px 8px);
    border: 1.5px solid #e08a74;
    box-shadow: 0 2px 5px rgba(214, 125, 99, 0.3);
}

.bs-noel .bs-clip::after {
    top: -6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1.5px #e3d4f0, 0 2px 3px rgba(107, 79, 71, 0.15);
}

/* Tuyết phủ mép trên từng cuộn phim (dưới kẹp). */
.bs-noel .bs-item::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    top: 6px;
    height: 20px;
    border-radius: 12px 12px 0 0;
    background: url(/images/home/noel/snowcap-card.svg) 0 0 / auto 100% repeat-x;
    pointer-events: none;
}

/* Vật treo đung đưa ở khe bên phải mỗi cuộn: dây + sticker trong sprite 4x4.
   Chọn vật theo độ nghiêng --r của cuộn (server và JS đều gán theo vòng 5) → vật treo không đổi khi dây
   gỡ / treo lại cuộn đầu (nth-child thì sẽ nhảy). */
.bs-noel .bs-item::before {
    --o: 30px;
    content: "";
    position: absolute;
    z-index: 0;
    top: 6px;
    right: calc(-22px - var(--o) / 2);
    width: var(--o);
    height: calc(var(--len, 26px) + var(--o));
    transform-origin: 50% 0;
    animation: bs-swing 3.2s ease-in-out infinite alternate;
    background:
        url(/images/home/noel/stickers.webp) calc(var(--c, 0) * var(--o) * -1) calc(var(--len, 26px) - var(--rw, 0) * var(--o)) / calc(var(--o) * 4) calc(var(--o) * 4) no-repeat,
        linear-gradient(#b38b7f, #b38b7f) 50% 0 / 2px calc(var(--len, 26px) + 3px) no-repeat;
    pointer-events: none;
}

.bs-noel .bs-item[style*="--r: -2deg"]::before { --c: 0; --rw: 0; --len: 22px; }                          /* quả châu hồng */
.bs-noel .bs-item[style*="--r: -1deg"]::before { --c: 3; --rw: 0; --len: 44px; animation-delay: -1.1s; }  /* ngôi sao */
.bs-noel .bs-item[style*="--r: 0deg"]::before  { --c: 2; --rw: 0; --len: 30px; animation-delay: -2.2s; }  /* quả châu tím */
.bs-noel .bs-item[style*="--r: 1deg"]::before  { --c: 2; --rw: 1; --len: 52px; animation-delay: -0.6s; }  /* kẹo gậy */
.bs-noel .bs-item[style*="--r: 2deg"]::before  { --c: 1; --rw: 0; --len: 18px; animation-delay: -1.7s; }  /* quả châu peach */

.bs-noel .bs-item[style*="--r: -1deg"]::after { background-position-x: -23px; }
.bs-noel .bs-item[style*="--r: 1deg"]::after  { background-position-x: -41px; }

@keyframes bs-swing {
    from { transform: rotate(-8deg); }
    to { transform: rotate(8deg); }
}

/* Khung viền Noel (Gemini, cắt bằng scripts/genNoelArt.js): dây thông 4 cạnh ở ::before, 4 góc ở ::after —
   thay cho 2 đốm pastel của bản thường. Khung nhô ra ngoài mép khối 8px nên khối bỏ overflow: hidden
   (dây phơi .bs-wall và lớp tuyết rơi tự cắt tràn của chúng). */
.bs-section.bs-noel {
    overflow: visible;
}

.bs-section.bs-noel::before,
.bs-section.bs-noel::after {
    top: -8px;
    right: -8px;
    bottom: -8px;
    left: -8px;
    width: auto;
    height: auto;
    border-radius: 0;
    filter: none;
    opacity: 1;
    z-index: 2;
}

.bs-section.bs-noel::before {
    background:
        url(/images/home/noel/frame-rope-h.webp) 0 0 / auto 32px repeat-x,
        url(/images/home/noel/frame-rope-h.webp) 0 100% / auto 32px repeat-x,
        url(/images/home/noel/frame-rope-v.webp) 0 0 / 32px auto repeat-y,
        url(/images/home/noel/frame-rope-v.webp) 100% 0 / 32px auto repeat-y;
}

.bs-section.bs-noel::after {
    z-index: 3;
    background:
        url(/images/home/noel/frame-corner-tl.webp) 0 0 / 142px auto no-repeat,
        url(/images/home/noel/frame-corner-tr.webp) 100% 0 / 142px auto no-repeat,
        url(/images/home/noel/frame-corner-bl.webp) 0 100% / 127px auto no-repeat,
        url(/images/home/noel/frame-corner-br.webp) 100% 100% / 127px auto no-repeat;
}

/* Chữ thụt vào khỏi dây thông hai bên. */
.bs-noel .bs-head,
.bs-noel .bs-cta {
    padding-left: 34px;
    padding-right: 34px;
}

/* Mũ Noel trên nhãn "Khoảnh khắc có thật". */
.bs-noel .bs-eyebrow {
    position: relative;
}

.bs-noel .bs-eyebrow::after {
    content: "";
    position: absolute;
    left: -12px;
    top: -15px;
    width: 30px;
    height: 30px;
    transform: rotate(-20deg);
    background: url(/images/home/noel/hdr-kit.webp) 0 0 / 200% 200% no-repeat;
    pointer-events: none;
}

/* Tuyết trên nút CTA như các pill ở header. */
.bs-noel .bs-btn {
    position: relative;
}

.bs-noel .bs-btn::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: -4px;
    height: 11px;
    border-radius: 8px 8px 3px 3px;
    background: url(/images/home/noel/snowcap.svg) 0 0 / auto 100% repeat-x;
    filter: drop-shadow(0 1px 0 rgba(170, 150, 200, 0.55));
    pointer-events: none;
}

@media (max-width: 1000px) {
    .bs-noel .bs-wall::before,
    .bs-noel .bs-wall::after {
        top: 25px;
    }

    .bs-noel .bs-item::before {
        --o: 22px;
        right: calc(-15px - var(--o) / 2);
    }

    /* Mobile: khối rộng hết màn hình → khung không nhô sang hai bên (kẻo tràn ngang), góc + dây nhỏ lại. */
    .bs-section.bs-noel::before,
    .bs-section.bs-noel::after {
        left: 0;
        right: 0;
    }

    .bs-section.bs-noel::before {
        background-size: auto 22px, auto 22px, 22px auto, 22px auto;
    }

    .bs-section.bs-noel::after {
        background-size: 92px auto, 92px auto, 82px auto, 82px auto;
    }

    .bs-section.bs-noel {
        padding-bottom: 40px;
    }

    /* Nút CTA giữ một dòng: thụt ít hơn phần chữ ở trên. */
    .bs-noel .bs-cta {
        padding-left: 22px;
        padding-right: 22px;
    }

    .bs-noel .bs-btn {
        padding-left: 22px;
        padding-right: 22px;
    }
}

/* ----------------------------- Giảm chuyển động ------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .noel-snow i {
        animation: none;
        top: var(--y);
    }

    .noel-hang,
    .bs-noel .bs-wall::after,
    .bs-noel .bs-item::before {
        animation: none;
    }
}
