/* Lớp trang trí Noel, phủ lên theme đang dùng. Mọi phần tử đều pointer-events:none và không chiếm chỗ trong luồng trang.
   Tài liệu: docs/tinhnang/16-trang-tri-theo-mua/01-tong-quan.md */
.sk-ss-snow {
    position: fixed; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 997; /* dưới nút nổi của theme (999), navbar (1034), modal (1050) */
}
.sk-ss-lights {
    position: absolute; left: 0; right: 0; top: 100%; height: 26px;
    pointer-events: none; overflow: hidden; z-index: 2;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='26'%3E%3Cpath d='M0 1 Q24 15 48 1' fill='none' stroke='%231f4a33' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x 0 0;
}
.sk-ss-lights--pale {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='26'%3E%3Cpath d='M0 1 Q24 15 48 1' fill='none' stroke='%23c9dccf' stroke-width='1.6'/%3E%3C/svg%3E");
}
.sk-ss-lights--pale .sk-ss-bulb::before { background: #c9dccf; }
.sk-ss-bulb {
    position: absolute; top: 7px; width: 9px; height: 13px; margin-left: -4.5px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .8) 0 13%, transparent 15%), var(--c);
    box-shadow: 0 0 7px 1px var(--c);
    animation: sk-ss-glow 3.2s ease-in-out infinite;
}
.sk-ss-bulb::before {
    content: ""; position: absolute; left: 2.5px; top: -3px; width: 4px; height: 4px;
    background: #1f4a33; border-radius: 1px;
}
@keyframes sk-ss-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 9px 2px var(--c); }
    50% { opacity: .55; box-shadow: 0 0 3px 0 var(--c); }
}
.sk-ss-hat {
    position: absolute; pointer-events: none; z-index: 3;
    transform: rotate(-16deg); transform-origin: 50% 90%;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
}
.sk-ss-drift {
    position: absolute; left: 0; right: 0; top: -19px; height: 20px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='20'%3E%3Cpath d='M0 20 V12 Q18 2 40 10 Q62 0 92 9 Q118 3 140 11 Q170 1 196 9 Q210 5 220 12 V20 Z' fill='%23fff'/%3E%3C/svg%3E") repeat-x 0 0;
    filter: drop-shadow(0 -1px 2px rgba(70, 110, 160, .35));
}
.sk-ss-candy {
    position: absolute; left: 0; right: 0; top: 0; height: 4px; pointer-events: none; z-index: 2;
    background: repeating-linear-gradient(135deg, #d42a2a 0 10px, #fff 10px 20px, #1f8a4c 20px 30px, #fff 30px 40px);
}
/* Tuyết đọng trên tiêu đề khối và thẻ danh mục */
.sk-ss-cap {
    /* Lớp tuyết phủ trùm qua mép trên: thân tuyết đè lên mép thẻ, các giọt chảy xuống bám vào mặt thẻ */
    position: absolute; left: -2px; right: -2px; top: -7px; height: 24px; pointer-events: none; z-index: 2;
    border-radius: 9px 9px 0 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24'%3E%3Cpath d='M0 6 Q10 2 22 5 Q36 1 50 5 Q64 2 78 5 Q92 1 106 4 Q114 3 120 6 L120 13 Q114 15 110 13 Q106 21 101 13 Q90 16 80 13 Q76 17 72 13 Q60 16 50 13 Q46 22 41 13 Q30 15 22 13 Q18 18 14 13 Q6 15 0 13 Z' fill='%23cfe3f2' transform='translate(0 1.2)'/%3E%3Cpath d='M0 6 Q10 2 22 5 Q36 1 50 5 Q64 2 78 5 Q92 1 106 4 Q114 3 120 6 L120 13 Q114 15 110 13 Q106 21 101 13 Q90 16 80 13 Q76 17 72 13 Q60 16 50 13 Q46 22 41 13 Q30 15 22 13 Q18 18 14 13 Q6 15 0 13 Z' fill='%23fff'/%3E%3C/svg%3E") 0 0;
    /* round: co giãn để vừa số mảng nguyên; mảng nối liền nhau (cùng độ dày ở mối nối) nên không hở, không bị cắt ngang */
    background-repeat: round no-repeat;
    /* Không dùng bóng đổ tối: nó thành một vạch đen mờ ngăn giữa tuyết và thẻ. Viền dưới xanh băng nhạt vẽ sẵn trong SVG. */
}
/* Thẻ danh mục không nhô ngang: thẻ sát mép màn hình (classic 375px) sẽ gây tràn ngang 2px */
.sk-ss-cap--card { left: 0; right: 0; }
/* Thẻ có overflow:hidden: phần nhô ra ngoài bị cắt phẳng theo mép thẻ, nên chỉ nhô ít */
.sk-ss-cap--in { top: -5px; left: 0; right: 0; border-radius: 0; }
/* Tiêu đề: tuyết đọng dưới chân chữ, nằm SAU chữ, vị trí và bề rộng do JS đặt theo dòng chữ */
.sk-ss-cap--title {
    right: auto; height: 11px; z-index: -1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 11' preserveAspectRatio='none'%3E%3Cpath d='M0 11 Q1 6 6 6 Q12 2 22 5 Q34 1 46 4 Q58 0 70 4 Q82 2 92 5 Q99 6 100 11 Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
    filter: drop-shadow(0 1px 1.5px rgba(60, 100, 150, .5));
}
/* Tuyết trên nút: ::before của .btn chưa theme nào dùng (đã dò trên trang chủ 3 theme) */
.sk-ss-btn .btn-primary, .sk-ss-btn .btn-danger, .sk-ss-btn .btn-warning, .sk-ss-btn .btn-info, .sk-ss-btn .btn-success { position: relative; }
.sk-ss-btn .btn-primary::before, .sk-ss-btn .btn-danger::before, .sk-ss-btn .btn-warning::before, .sk-ss-btn .btn-info::before, .sk-ss-btn .btn-success::before {
    content: ""; position: absolute; left: 4px; right: 4px; top: -5px; height: 10px; pointer-events: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='10'%3E%3Cpath d='M1 6 Q6 0 16 3 Q26 0 36 4 Q38 7 33 7 Q31 10 28 7 Q14 8 9 7 Q7 10 4 7 Q0 8 1 6 Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat left top,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='10'%3E%3Cpath d='M1 5 Q8 0 20 4 Q22 7 17 6 Q15 9 12 6 Q4 8 1 5 Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat right top;
    filter: drop-shadow(0 1px 1px rgba(40, 70, 110, .45));
}
/* Cây thông góc dưới trái: chỉ máy tính, điện thoại vướng thanh điều hướng dưới */
.sk-ss-tree {
    position: fixed; left: 8px; bottom: 6px; width: 112px; height: 140px; pointer-events: none; z-index: 998;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}
/* Theme master lề trái chỉ ~80px ở 1440px: dưới 1536px cây sẽ đè lên nội dung */
@media (max-width: 1535px) { .sk-ss-tree { display: none; } }
.sk-ss-star { animation: sk-ss-star 2.8s ease-in-out infinite; transform-origin: 80px 14px; }
@keyframes sk-ss-star { 50% { opacity: .45; } }
/* Tông Noel cho popup "Thông báo" (#noti_popup → .modal-content) */
.sk-ss-pop { position: relative; border: 0; }
.sk-ss-pop .modal-header {
    background: linear-gradient(100deg, #b3202a 0%, #c7372f 45%, #1f7a45 100%); border-bottom: 0;
}
.sk-ss-pop .modal-header, .sk-ss-pop .modal-header * { color: #fff !important; text-shadow: none; }
.sk-ss-pop .modal-header .close { opacity: .9; }
/* Xe tuần lộc: SVG nhìn sang trái, bay từ mép phải sang mép trái */
.sk-ss-sleigh {
    position: fixed; top: 92px; left: 100%; width: 220px; height: 64px;
    pointer-events: none; z-index: 998; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.sk-ss-sleigh svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sk-ss-deer { animation: sk-ss-bob 1.1s ease-in-out infinite; }
.sk-ss-deer2 { animation-delay: -.4s; }
.sk-ss-ride { animation: sk-ss-bob 1.1s ease-in-out -.75s infinite; }
.sk-ss-fly { animation: sk-ss-fly 13s linear 1 forwards; }
@keyframes sk-ss-fly { to { transform: translateX(calc(-100vw - 260px)) translateY(-40px); } }
@keyframes sk-ss-bob { 50% { transform: translateY(-3px); } }
@media (max-width: 600px) { .sk-ss-sleigh { width: 150px; height: 44px; top: 80px; } }
@media (prefers-reduced-motion: reduce) {
    .sk-ss-bulb { animation: none; }
    .sk-ss-snow, .sk-ss-sleigh { display: none; }
}
