/* r40 festival welcome themes (Tihar, Christmas, New Year, Holi …). Layout, buttons and timing come from dashain-welcome.css. */
.fest .dashain-scene{background:#111}
.fest-bg,.fest-art,.fest-particles{position:absolute;inset:0;pointer-events:none}
.fest-bg{z-index:0}.fest-art{z-index:1}.fest-particles{z-index:4;overflow:hidden}
.fest .fest-copy{z-index:3}
.fest .dashain-copy h1{color:var(--t1,#fff);text-shadow:0 2px 26px var(--glow,#0006)}.fest .dashain-copy h1 span{color:var(--t2,#ffd166)}
.fest .dashain-eyebrow{color:var(--sub,#ffffffcc)}.fest .dashain-eyebrow span{color:var(--t2,#ffd166)}
.fest .dashain-small-greeting,.fest .dashain-copy #dashain-message{color:var(--ink,#ffffffe6)}
.fest .dashain-ornament{color:var(--t2,#ffd166)}.fest .dashain-ornament span{background:linear-gradient(90deg,transparent,var(--t2,#ffd166),transparent)}
.fest .dashain-progress span{background:var(--t2,#ffd166)}
.fest-skyline{position:absolute;z-index:2;left:0;right:0;bottom:0;width:100%;height:min(26vh,230px);pointer-events:none}
.fest-hills{fill:var(--hill,#0c1630)}.fest-snow{fill:var(--snow,#e8eefc)}.fest-city{fill:var(--city,#081022)}
.fest-particles i{position:absolute;top:-24px;display:block;animation:fest-fall 8s linear infinite}
.fest-particles i:nth-child(1){left:43%;animation-delay:-8.5s;animation-duration:8.0s}.fest-particles i:nth-child(2){left:8%;animation-delay:-0.7s;animation-duration:8.7s}.fest-particles i:nth-child(3){left:48%;animation-delay:-5.2s;animation-duration:10.5s}.fest-particles i:nth-child(4){left:29%;animation-delay:-0.3s;animation-duration:8.2s}.fest-particles i:nth-child(5){left:10%;animation-delay:-2.2s;animation-duration:8.8s}.fest-particles i:nth-child(6){left:9%;animation-delay:-7.4s;animation-duration:6.6s}.fest-particles i:nth-child(7){left:30%;animation-delay:-5.7s;animation-duration:8.9s}.fest-particles i:nth-child(8){left:9%;animation-delay:-5.2s;animation-duration:8.0s}.fest-particles i:nth-child(9){left:30%;animation-delay:-0.4s;animation-duration:10.3s}.fest-particles i:nth-child(10){left:39%;animation-delay:-3.8s;animation-duration:8.7s}.fest-particles i:nth-child(11){left:75%;animation-delay:-2.8s;animation-duration:10.1s}.fest-particles i:nth-child(12){left:25%;animation-delay:-0.9s;animation-duration:8.9s}.fest-particles i:nth-child(13){left:26%;animation-delay:-3.4s;animation-duration:8.7s}.fest-particles i:nth-child(14){left:10%;animation-delay:-5.1s;animation-duration:9.1s}.fest-particles i:nth-child(15){left:65%;animation-delay:-6.1s;animation-duration:8.1s}.fest-particles i:nth-child(16){left:42%;animation-delay:-4.2s;animation-duration:10.6s}.fest-particles i:nth-child(17){left:48%;animation-delay:-2.7s;animation-duration:10.0s}.fest-particles i:nth-child(18){left:91%;animation-delay:-7.0s;animation-duration:6.4s}.fest-particles i:nth-child(19){left:40%;animation-delay:-4.7s;animation-duration:10.4s}.fest-particles i:nth-child(20){left:95%;animation-delay:-4.0s;animation-duration:9.0s}.fest-particles i:nth-child(21){left:11%;animation-delay:-1.1s;animation-duration:8.1s}.fest-particles i:nth-child(22){left:45%;animation-delay:-1.4s;animation-duration:8.4s}.fest-particles i:nth-child(23){left:7%;animation-delay:-8.7s;animation-duration:6.4s}.fest-particles i:nth-child(24){left:73%;animation-delay:-5.2s;animation-duration:10.4s}
@keyframes fest-fall{0%{transform:translate3d(0,-30px,0) rotate(0);opacity:0}10%{opacity:1}90%{opacity:.9}100%{transform:translate3d(60px,110vh,0) rotate(360deg);opacity:0}}
@keyframes fest-twinkle{0%,100%{opacity:.25}50%{opacity:1}}
@keyframes fest-rise{0%{transform:translate3d(0,0,0) scale(.6);opacity:0}15%{opacity:1}100%{transform:translate3d(0,-105vh,0) scale(1);opacity:0}}

/* Tihar / Deepawali: night sky, marigold garlands, rangoli and a row of flickering diyos */
.fest-tihar{--t1:#ffe08a;--t2:#ff9f1c;--ink:#fde8c8;--sub:#f6c97a;--glow:#ff9f1c55;--hill:#22104a;--city:#170a33;--snow:#3b2370}
.fest-tihar .fest-bg{background:radial-gradient(ellipse at 50% 85%,#5a1f63 0%,#2a1250 45%,#120a2e 100%)}
.fest-garland{position:absolute;top:0;left:0;width:100%;height:90px}
.fest-rangoli{position:absolute;left:50%;top:62%;width:min(70vw,500px);height:min(70vw,500px);transform:translate(-50%,-50%);opacity:.2;animation:fest-spin 60s linear infinite}
@keyframes fest-spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.fest-diyos{position:absolute;left:0;right:0;bottom:min(24vh,210px);display:flex;justify-content:center;gap:clamp(14px,4vw,54px);z-index:3}
.fest-diyos svg{width:clamp(38px,5vw,62px);height:auto;filter:drop-shadow(0 0 18px #ffb347)}
.fest-diyos .flame{fill:#ffd23f;transform-origin:30px 34px;animation:fest-flicker 1.4s ease-in-out infinite alternate}
.fest-diyos svg:nth-child(2n) .flame{animation-delay:-.6s}.fest-diyos svg:nth-child(3n) .flame{animation-delay:-1s}
@keyframes fest-flicker{0%{transform:scale(1,1);fill:#ffd23f}50%{transform:scale(.9,1.12);fill:#ffb703}100%{transform:scale(1.05,.94);fill:#ffe066}}
.fest-tihar .fest-particles i{width:4px;height:4px;border-radius:50%;background:#ffd166;box-shadow:0 0 10px 3px #ffb34799;top:auto;bottom:-10px;animation-name:fest-rise}

/* Chhath: sunset over the river */
.fest-chhath{--t1:#fff4d6;--t2:#ffd166;--ink:#fff1dc;--sub:#ffe3b3;--glow:#a83a1066;--hill:#5a2a3a;--city:#40202c;--snow:#7a3e4a}
.fest-chhath .fest-bg{background:linear-gradient(#3b1f5c 0%,#c2410c 46%,#f59e0b 62%,#0e4d6b 63%,#082f45 100%)}
.fest-sun{position:absolute;left:50%;top:63%;width:min(34vw,240px);height:min(34vw,240px);transform:translate(-50%,-55%);border-radius:50%;background:radial-gradient(#fff3b0,#ffb703 60%,#f97316);box-shadow:0 0 90px 30px #ffb70388}
.fest-water{position:absolute;left:0;right:0;top:63%;bottom:0;background:repeating-linear-gradient(180deg,transparent 0 14px,#ffd16633 14px 16px),linear-gradient(#0e4d6bd9,#082f45);animation:fest-ripple 3s ease-in-out infinite alternate}
@keyframes fest-ripple{to{background-position:0 8px}}
.fest-chhath .fest-particles i{width:3px;height:3px;border-radius:50%;background:#ffe9a8;top:auto;bottom:-10px;animation-name:fest-rise}

/* Christmas: snowy night, a tree with twinkling lights */
.fest-christmas{--t1:#ffffff;--t2:#ff5a5f;--ink:#e6f0ff;--sub:#bcd3f5;--glow:#7fb2ff55;--hill:#20365c;--city:#142742;--snow:#ffffff}
.fest-christmas .fest-bg{background:radial-gradient(ellipse at 50% 0%,#28507f 0%,#13294b 55%,#0a1630 100%)}
.fest-tree{position:absolute;right:7%;bottom:min(20vh,180px);width:clamp(150px,18vw,260px);height:auto;z-index:2}
.fest-tree .star{fill:#ffd23f;filter:drop-shadow(0 0 10px #ffd23f)}
.fest-tree .bulb{animation:fest-twinkle 1.6s ease-in-out infinite}.fest-tree .b0{fill:#ff5a5f}.fest-tree .b1{fill:#ffd23f;animation-delay:-.4s}.fest-tree .b2{fill:#60a5fa;animation-delay:-.8s}.fest-tree .b3{fill:#f9a8d4;animation-delay:-1.2s}
.fest-christmas .fest-particles i{width:7px;height:7px;border-radius:50%;background:#fff;opacity:.85}
.fest-christmas .fest-particles i:nth-child(3n){width:4px;height:4px}

/* New Year: fireworks over the skyline */
.fest-newyear{--t1:#fff7d6;--t2:#ffd166;--ink:#e9e3ff;--sub:#c9b8ff;--glow:#ffd16655;--hill:#1b1640;--city:#0f0c2b;--snow:#2e2766}
.fest-newyear .fest-bg{background:radial-gradient(ellipse at 50% 100%,#3b1d6e 0%,#170f3d 50%,#07081c 100%)}
.fest-newyear .dashain-copy h1 span{font-size:1.35em;background:linear-gradient(90deg,#ffd166,#ff8fab,#9bf6ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.fest-fireworks span{position:absolute;width:0;height:0;animation:fest-burst 3.2s ease-out infinite}
.fest-fireworks i{position:absolute;left:0;top:0;width:3px;height:70px;transform-origin:0 0;background:linear-gradient(#fff0,#ffd166)}
.fest-fireworks span:nth-child(2n) i{background:linear-gradient(#fff0,#ff8fab)}.fest-fireworks span:nth-child(3n) i{background:linear-gradient(#fff0,#9bf6ff)}
.fest-fireworks i:nth-child(1){transform:rotate(0deg)}.fest-fireworks i:nth-child(2){transform:rotate(30deg)}.fest-fireworks i:nth-child(3){transform:rotate(60deg)}.fest-fireworks i:nth-child(4){transform:rotate(90deg)}.fest-fireworks i:nth-child(5){transform:rotate(120deg)}.fest-fireworks i:nth-child(6){transform:rotate(150deg)}.fest-fireworks i:nth-child(7){transform:rotate(180deg)}.fest-fireworks i:nth-child(8){transform:rotate(210deg)}.fest-fireworks i:nth-child(9){transform:rotate(240deg)}.fest-fireworks i:nth-child(10){transform:rotate(270deg)}.fest-fireworks i:nth-child(11){transform:rotate(300deg)}.fest-fireworks i:nth-child(12){transform:rotate(330deg)}.fest-fireworks span:nth-child(1){left:18%;top:22%;animation-delay:0s}.fest-fireworks span:nth-child(2){left:78%;top:18%;animation-delay:0.7s}.fest-fireworks span:nth-child(3){left:30%;top:48%;animation-delay:1.4s}.fest-fireworks span:nth-child(4){left:70%;top:44%;animation-delay:2.1s}.fest-fireworks span:nth-child(5){left:52%;top:14%;animation-delay:2.8s}
@keyframes fest-burst{0%{transform:scale(.05);opacity:0}15%{opacity:1}70%{opacity:.9}100%{transform:scale(1.25);opacity:0}}
.fest-newyear .fest-particles i{width:3px;height:3px;border-radius:50%;background:#fff;animation-name:fest-twinkle;top:auto}
.fest-newyear .fest-particles i:nth-child(1){top:18%}.fest-newyear .fest-particles i:nth-child(2){top:40%}.fest-newyear .fest-particles i:nth-child(3){top:37%}.fest-newyear .fest-particles i:nth-child(4){top:11%}.fest-newyear .fest-particles i:nth-child(5){top:26%}.fest-newyear .fest-particles i:nth-child(6){top:41%}.fest-newyear .fest-particles i:nth-child(7){top:33%}.fest-newyear .fest-particles i:nth-child(8){top:43%}.fest-newyear .fest-particles i:nth-child(9){top:40%}.fest-newyear .fest-particles i:nth-child(10){top:7%}.fest-newyear .fest-particles i:nth-child(11){top:41%}.fest-newyear .fest-particles i:nth-child(12){top:3%}.fest-newyear .fest-particles i:nth-child(13){top:56%}.fest-newyear .fest-particles i:nth-child(14){top:33%}.fest-newyear .fest-particles i:nth-child(15){top:19%}.fest-newyear .fest-particles i:nth-child(16){top:38%}.fest-newyear .fest-particles i:nth-child(17){top:17%}.fest-newyear .fest-particles i:nth-child(18){top:15%}.fest-newyear .fest-particles i:nth-child(19){top:48%}.fest-newyear .fest-particles i:nth-child(20){top:33%}.fest-newyear .fest-particles i:nth-child(21){top:37%}.fest-newyear .fest-particles i:nth-child(22){top:56%}.fest-newyear .fest-particles i:nth-child(23){top:38%}.fest-newyear .fest-particles i:nth-child(24){top:33%}

/* Nepali New Year: sunrise and lali gurans (rhododendron) */
.fest-nepalinewyear{--t1:#8f1d2c;--t2:#1f6b3a;--ink:#5b2a2a;--sub:#8a4b2f;--glow:#fff6;--hill:#7a3f55;--city:#5c2d40;--snow:#fff}
.fest-nepalinewyear .fest-bg{background:linear-gradient(#ffe8c2 0%,#ffc4a3 55%,#ff9f9f 100%)}
.fest-gurans{position:absolute;top:0;width:min(34vw,260px);height:auto}.fest-gurans.left{left:0}.fest-gurans.right{right:0;transform:scaleX(-1)}
.fest-nepalinewyear .fest-particles i{width:10px;height:14px;border-radius:70% 20% 70% 20%;background:#d61f3c;opacity:.8}

/* Holi: clouds of colour */
.fest-holi{--t1:#c026d3;--t2:#0ea5e9;--ink:#4a2142;--sub:#9d174d;--glow:#fff;--hill:#7c3aed55;--city:#6d28d955;--snow:#fff}
.fest-holi .fest-bg{background:#fff8f1}
.fest-holi .dashain-copy h1 span{background:linear-gradient(90deg,#f43f5e,#f59e0b,#22c55e,#0ea5e9,#a855f7);-webkit-background-clip:text;background-clip:text;color:transparent}
.fest-blobs i{position:absolute;width:42vmax;height:42vmax;border-radius:50%;filter:blur(60px);opacity:.55;animation:fest-drift 9s ease-in-out infinite alternate}
.fest-blobs i:nth-child(1){background:#f43f5e;left:-12%;top:-14%}.fest-blobs i:nth-child(2){background:#facc15;right:-14%;top:-10%;animation-delay:-2s}.fest-blobs i:nth-child(3){background:#22c55e;left:-10%;bottom:-18%;animation-delay:-4s}.fest-blobs i:nth-child(4){background:#0ea5e9;right:-12%;bottom:-16%;animation-delay:-6s}.fest-blobs i:nth-child(5){background:#a855f7;left:35%;top:55%;width:28vmax;height:28vmax;animation-delay:-3s}.fest-blobs i:nth-child(6){background:#fb923c;left:40%;top:-20%;width:24vmax;height:24vmax;animation-delay:-5s}
@keyframes fest-drift{to{transform:translate3d(4vw,3vh,0) scale(1.08)}}
.fest-holi .fest-particles i{width:9px;height:9px;border-radius:50%}.fest-holi .fest-particles i:nth-child(5n){background:#f43f5e}.fest-holi .fest-particles i:nth-child(5n+1){background:#facc15}.fest-holi .fest-particles i:nth-child(5n+2){background:#22c55e}.fest-holi .fest-particles i:nth-child(5n+3){background:#0ea5e9}.fest-holi .fest-particles i:nth-child(5n+4){background:#a855f7}

/* Lhosar: prayer flags */
.fest-lhosar{--t1:#ffe08a;--t2:#ff6b6b;--ink:#e8eefc;--sub:#c7d2fe;--glow:#0008;--hill:#22305e;--city:#162246;--snow:#f1f5ff}
.fest-lhosar .fest-bg{background:linear-gradient(#0f1b44,#24387a 70%,#3a4f9a)}
.fest-flags{position:absolute;top:0;left:0;width:100%;height:150px}.fest-flags .flag{transform-box:fill-box;transform-origin:top;animation:fest-flutter 2.4s ease-in-out infinite alternate}
.fest-flags .flag:nth-of-type(2n){animation-delay:-1.2s}
@keyframes fest-flutter{to{transform:skewX(8deg) scaleY(.92)}}
.fest-lhosar .fest-particles i{width:5px;height:5px;background:#ffe08a;border-radius:50%}

/* St Patrick's Day: green and gold with falling shamrocks */
.fest-stpatrick{--t1:#ffffff;--t2:#ffd166;--ink:#ecfdf3;--sub:#bbf7d0;--glow:#0005;--hill:#0f5132;--city:#0a3d26;--snow:#d1fae5}
.fest-stpatrick .fest-bg{background:radial-gradient(ellipse at 50% 0%,#22a35a,#0b6b3a 60%,#064e2b)}
.fest-shamrock{position:absolute;right:8%;bottom:min(22vh,200px);width:clamp(110px,14vw,200px);height:auto;filter:drop-shadow(0 8px 14px #0005);animation:fest-sway 4s ease-in-out infinite alternate}
@keyframes fest-sway{from{transform:rotate(-8deg)}to{transform:rotate(8deg)}}
.fest-stpatrick .fest-particles i{width:14px;height:14px;background:radial-gradient(circle at 50% 30%,#4ade80 0 30%,transparent 31%),radial-gradient(circle at 25% 65%,#4ade80 0 30%,transparent 31%),radial-gradient(circle at 75% 65%,#4ade80 0 30%,transparent 31%)}

/* Teej: red with green and gold bangles */
.fest-teej{--t1:#fff1d6;--t2:#86efac;--ink:#ffe4e6;--sub:#fecdd3;--glow:#0006;--hill:#5f0f1d;--city:#470b16;--snow:#9f1d33}
.fest-teej .fest-bg{background:radial-gradient(ellipse at 50% 30%,#d4153a,#8b0f22 60%,#5a0816)}
.fest-bangles{position:absolute;left:6%;bottom:min(22vh,200px);width:clamp(180px,24vw,320px);height:auto;opacity:.9;animation:fest-sway 5s ease-in-out infinite alternate}
.fest-teej .fest-particles i{width:6px;height:6px;border-radius:50%;background:#facc15}.fest-teej .fest-particles i:nth-child(2n){background:#22c55e}

/* Buddha Jayanti, Shivaratri and Maghe Sankranti */
.fest-buddha{--t1:#7c2d12;--t2:#b45309;--ink:#5c3b1e;--sub:#92400e;--glow:#fff8;--hill:#c2a27a;--city:#a98a63;--snow:#fff}
.fest-buddha .fest-bg{background:radial-gradient(ellipse at 50% 40%,#fff7d6,#fde2a7 60%,#f6c77a)}
.fest-lotus{position:absolute;left:50%;bottom:min(23vh,210px);width:min(60vw,360px);height:auto;transform:translateX(-50%)}
.fest-buddha .fest-particles i{width:5px;height:5px;border-radius:50%;background:#f59e0b;opacity:.7}
.fest-shivaratri{--t1:#e0e7ff;--t2:#fbbf24;--ink:#dbe4ff;--sub:#a5b4fc;--glow:#0008;--hill:#1e1b4b;--city:#13113a;--snow:#c7d2fe}
.fest-shivaratri .fest-bg{background:radial-gradient(ellipse at 70% 15%,#3730a3,#1e1b4b 55%,#0b0a24)}
.fest-moon{position:absolute;right:12%;top:12%;width:90px;height:90px;border-radius:50%;box-shadow:-18px 8px 0 4px #fde68a}
.fest-shivaratri .fest-lotus{opacity:.75}.fest-shivaratri .fest-particles i{width:3px;height:3px;border-radius:50%;background:#fff;animation-name:fest-twinkle}
.fest-maghi{--t1:#7c2d12;--t2:#15803d;--ink:#5c3b1e;--sub:#9a3412;--glow:#fff8;--hill:#a16207;--city:#854d0e;--snow:#fff}
.fest-maghi .fest-bg{background:linear-gradient(#e0f2fe,#fef3c7 60%,#fde68a)}.fest-maghi .fest-sun{left:auto;right:9%;top:9%;width:120px;height:120px;transform:none;opacity:.8}
.fest-maghi .fest-particles i{width:6px;height:6px;border-radius:50%;background:#facc15;opacity:.6}

@media(max-width:760px){.fest-tree{right:-4%;width:140px;opacity:.85}.fest-shamrock,.fest-bangles{opacity:.6}.fest-gurans{width:38vw}.fest-diyos{gap:10px}.fest-diyos svg:nth-child(n+6){display:none}}
@media(prefers-reduced-motion:reduce){.fest-particles,.fest-fireworks{display:none}.fest-rangoli,.fest-diyos .flame,.fest-tree .bulb,.fest-blobs i,.fest-flags .flag,.fest-shamrock,.fest-bangles,.fest-water{animation:none}}
