/* Chủ đề theo mùa chỉ thay màu, banner và trang trí; không thay đổi bố cục/nghiệp vụ. */
html[data-site-theme="lunar-new-year"]{--theme-primary:#d32027;--theme-primary-dark:#7d0b11;--theme-accent:#ffd34e;--theme-soft:#fff0df;--theme-hero:url('/img/themes/lunar-new-year.webp')}
html[data-site-theme="reunification"]{--theme-primary:#cf1f26;--theme-primary-dark:#730b10;--theme-accent:#ffd34e;--theme-soft:#fff0df;--theme-hero:url('/img/themes/reunification.webp')}
html[data-site-theme="national-day"]{--theme-primary:#d71920;--theme-primary-dark:#77080d;--theme-accent:#ffdc57;--theme-soft:#fff0df;--theme-hero:url('/img/themes/national-day.webp')}
html[data-site-theme="christmas"]{--theme-primary:#176346;--theme-primary-dark:#092f2a;--theme-accent:#f1c75b;--theme-soft:#eaf6ef;--theme-hero:url('/img/themes/christmas.webp')}
html[data-site-theme="new-year"]{--theme-primary:#5d3bb3;--theme-primary-dark:#111a48;--theme-accent:#f3c86a;--theme-soft:#f2edff;--theme-hero:url('/img/themes/new-year.webp')}

html[data-site-theme]:not([data-site-theme="default"]){--yellow:var(--theme-accent);--yellow-strong:var(--theme-primary);--yellow-soft:var(--theme-soft);--black:var(--theme-primary-dark)}
html[data-site-theme]:not([data-site-theme="default"]) .topbar,
html[data-site-theme]:not([data-site-theme="default"]) footer.site{background:var(--theme-primary-dark)}
html[data-site-theme]:not([data-site-theme="default"]) header.site{box-shadow:0 2px 0 color-mix(in srgb,var(--theme-primary) 25%,transparent)}
html[data-site-theme]:not([data-site-theme="default"]) .announce{background:linear-gradient(90deg,var(--theme-primary),color-mix(in srgb,var(--theme-primary) 72%,var(--theme-accent)));color:#fff}
html[data-site-theme]:not([data-site-theme="default"]) .hero{min-height:270px;background-image:linear-gradient(90deg,rgba(8,8,15,.52) 0%,rgba(8,8,15,.30) 48%,rgba(8,8,15,.02) 75%),var(--theme-hero);background-size:cover;background-position:center}
html[data-site-theme]:not([data-site-theme="default"]) .hero::before,
html[data-site-theme]:not([data-site-theme="default"]) .hero::after{display:none}
html[data-site-theme]:not([data-site-theme="default"]) .hero .tag{position:relative;z-index:1;background:color-mix(in srgb,var(--theme-primary-dark) 64%,transparent);border-color:color-mix(in srgb,var(--theme-accent) 62%,transparent);color:#fff}
html[data-site-theme]:not([data-site-theme="default"]) .hero h1,
html[data-site-theme]:not([data-site-theme="default"]) .hero p,
html[data-site-theme]:not([data-site-theme="default"]) .hero .cta{position:relative;z-index:1}
html[data-site-theme]:not([data-site-theme="default"]) .hero p{color:#f3f3f5;text-shadow:0 1px 8px rgba(0,0,0,.35)}
html[data-site-theme]:not([data-site-theme="default"]) .head{background:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-dark))!important}
html[data-site-theme]:not([data-site-theme="default"]) .site-head{border-bottom-color:var(--theme-primary)!important}
html[data-site-theme]:not([data-site-theme="default"]) .policy-kicker,
html[data-site-theme]:not([data-site-theme="default"]) .secure-badge{color:var(--theme-primary)!important}

.site-theme-effects{position:fixed;inset:0;z-index:190;overflow:hidden;pointer-events:none;contain:strict}
.site-theme-effects i{position:absolute;display:block;will-change:transform,opacity}
.effect-blossom i,.effect-leaf i,.effect-snow i{left:var(--x);top:-8vh;animation:theme-fall 9s linear infinite;animation-delay:var(--delay);opacity:.72}
.effect-blossom i::before{content:'✿';color:#ffd94d;font-size:clamp(12px,1.4vw,20px);filter:drop-shadow(0 2px 2px rgba(111,20,17,.22))}
.effect-leaf i::before{content:'◆';display:block;color:#e6aa35;font-size:clamp(7px,1vw,13px);transform:rotate(35deg);border-radius:90% 0}
.effect-snow i::before{content:'•';color:#fff;font-size:clamp(18px,2.2vw,31px);text-shadow:0 0 7px #fff}
.effect-snow i{animation-duration:12s;opacity:.65}
.effect-firework i{left:var(--x);top:var(--y);width:4px;height:4px;border-radius:50%;background:transparent;box-shadow:0 -18px 0 #ffd872,13px -13px 0 #fff2b9,18px 0 0 #f4bd48,13px 13px 0 #fff2b9,0 18px 0 #ffd872,-13px 13px 0 #fff2b9,-18px 0 0 #f4bd48,-13px -13px 0 #fff2b9;animation:theme-burst 4.8s ease-out infinite;animation-delay:var(--delay);opacity:0}
@keyframes theme-fall{0%{transform:translate3d(0,-10vh,0) rotate(0);opacity:0}10%{opacity:.75}100%{transform:translate3d(55px,112vh,0) rotate(310deg);opacity:0}}
@keyframes theme-burst{0%,66%{transform:scale(.2);opacity:0}70%{opacity:.75}88%{transform:scale(1.15);opacity:.08}100%{opacity:0}}
@media(max-width:680px){html[data-site-theme]:not([data-site-theme="default"]) .hero{min-height:300px;background-position:64% center}.site-theme-effects{z-index:160}.effect-firework i:nth-child(n+4),.effect-blossom i:nth-child(n+9),.effect-leaf i:nth-child(n+9),.effect-snow i:nth-child(n+13){display:none}}
@media(prefers-reduced-motion:reduce){.site-theme-effects{display:none!important}}
@media print{.site-theme-effects{display:none!important}}
