/* The same ivory, vermilion and botanical gold as the invitation. */
.welcome-splash{position:fixed;inset:0;z-index:4000;display:grid;place-items:center;overflow:auto;padding:32px 24px;background:#70251e;color:#fff4df;font-family:var(--sans);text-align:center;transition:opacity .8s ease}
.welcome-splash:before,.welcome-splash:after{content:'';position:absolute;top:0;bottom:0;width:clamp(24px,12vw,160px);background:#ead9b5 url('../images/botanical.svg') center/110px 152px;border:double #b58a4970;border-width:0 4px;opacity:.55;pointer-events:none}
.welcome-splash:before{left:0;display:none}.welcome-splash:after{right:0;transform:scaleX(-1);display:none}
.welcome-content{position:relative;z-index:1;max-width:640px;width:100%;padding:64px 42px 36px;border:1px solid #d9b96d77;border-radius:48% 48% 2px 2px / 100px 100px 2px 2px;background:#fff9f0}
.welcome-content:before{content:'';position:absolute;inset:9px;border:1px solid #b58a4938;border-radius:inherit;pointer-events:none}
.welcome-ornament{color:#eacb87;font:16px 'Noto Serif Devanagari',serif;letter-spacing:.16em}
.welcome-couple{font:500 36px var(--serif);color:#74162f;margin:22px 0}
.welcome-couple:after{content:'━ ❋ ━';display:block;color:var(--gold);font:14px var(--serif);margin-top:18px;letter-spacing:.12em}
.welcome-content h2{font:500 clamp(36px,7vw,60px)/1.15 var(--serif);color:#74162f;margin:24px 0 18px;overflow-wrap:anywhere}
.welcome-message{font:italic 23px/1.6 var(--serif);color:#75535a;margin:18px auto 28px;max-width:500px;overflow-wrap:anywhere;white-space:pre-line}
.welcome-button{background:#74162f;color:#fff4df;border:1px solid #d9ae64;border-radius:2px;padding:18px 26px;width:min(100%,360px);font:600 12px var(--sans);text-transform:uppercase;letter-spacing:.14em;cursor:pointer;min-height:56px;transition:background .2s}
.welcome-button:hover{background:#9f2947}
.welcome-button:focus-visible{outline:2px solid var(--gold);outline-offset:5px}
.welcome-petals{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.welcome-petals i{position:absolute;top:-30px;width:9px;height:15px;background:#b58a4938;border-radius:80% 0 80% 0;animation:welcomePetal 6s linear infinite}
.welcome-leaving{opacity:0;pointer-events:none}
@keyframes welcomePetal{to{transform:translate(40px,110vh) rotate(240deg)}}
@media(max-width:480px){.welcome-splash{padding:24px 18px}.welcome-content{padding:52px 24px 28px}.welcome-message{font-size:20px}.welcome-couple{font-size:30px}.welcome-splash:before,.welcome-splash:after{width:28px}}
@media(max-height:600px){.welcome-splash{display:block}.welcome-content{margin:auto}}
@media(prefers-reduced-motion:reduce){.welcome-splash,.welcome-button{transition:none}.welcome-petals i{animation:none}.welcome-petals{display:none}}

.welcome-action-hint{font:12px/1.6 var(--sans);color:#75535a;margin:14px 0 0}
.welcome-button span{display:inline-block;margin-left:12px;font-size:18px;vertical-align:middle}

/* Greeting and envelope share one opening screen and one action. */
.welcome-splash{gap:0;align-content:normal}
.welcome-splash .welcome-content{padding-top:44px}
.welcome-splash .welcome-couple{margin:16px 0}
.welcome-splash .welcome-content h2{margin:18px 0 12px;font-size:clamp(32px,6vw,48px)}
.welcome-splash .welcome-message{font-size:20px;margin:12px auto 6px}
.welcome-envelope{display:grid;place-items:center;margin:0 auto 10px}
.welcome-splash .envelope-stage{width:min(100%,380px);height:245px;z-index:2;transform:none;pointer-events:auto}
.welcome-splash .envelope{bottom:14px}
.welcome-splash .wax-seal{animation:none}
.welcome-splash .wax-seal{z-index:20;pointer-events:auto;cursor:pointer}.welcome-splash .wax-seal:focus-visible{outline:2px solid #f1d092;outline-offset:8px}
.welcome-splash.is-opening .welcome-couple,.welcome-splash.is-opening h2,.welcome-splash.is-opening .welcome-message,.welcome-splash.is-opening .welcome-action-hint,.welcome-splash.is-opening .welcome-ornament{opacity:0;pointer-events:none;transition:opacity .3s}
.welcome-splash.is-opening .portal{display:block}
@media(max-width:480px){.welcome-splash .welcome-content{padding:36px 20px 24px}.welcome-splash .envelope-stage{width:100%;height:205px}.welcome-splash .envelope{width:260px;height:180px}.welcome-splash .wax-seal{top:62px}.welcome-splash .welcome-message{font-size:18px}}

/* Festive hanging kandils and latkans decorate the first welcome screen. */
.festival-decorations{position:fixed;inset:0;z-index:1;overflow:hidden;pointer-events:none;color:#e9cd91}
.festival-kandil{position:absolute;top:18px;width:76px;height:150px;transform-origin:50% 0;filter:drop-shadow(0 0 12px #e9cd9130);animation:kandilSway 5.5s ease-in-out infinite alternate;z-index:2}
.kandil-left{left:clamp(8px,7vw,92px)}.kandil-right{right:clamp(8px,7vw,92px);animation-delay:-2.3s}
.festival-kandil svg{width:100%;height:100%;overflow:visible}
.kandil-wire,.kandil-tassel{fill:none;stroke:#e9cd91;stroke-width:1.5;stroke-linecap:round}
.kandil-gold{fill:#b58a49;stroke:#e9cd91;stroke-width:1.5;stroke-linejoin:round}
.kandil-glass{fill:#74162f;stroke:#f0d49b;stroke-width:1.5;stroke-linejoin:round}
.kandil-flame{fill:#f3d79a;transform-origin:45px 64px;animation:kandilGlow 1.8s ease-in-out infinite alternate}
.kandil-bead{fill:#e9cd91}.kandil-tassel{animation:latkanSwing 2.8s ease-in-out infinite alternate;transform-origin:45px 124px}
.festival-latkan{position:absolute;width:34px;height:116px;fill:none;stroke:#e9cd91;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;animation:latkanSwing 3.8s ease-in-out infinite alternate;transform-origin:18px 0;z-index:2}
.festival-latkan .latkan-diamond{fill:#a3432c;stroke:#e9cd91}
.latkan-left{left:clamp(14px,13vw,180px);top:43%;animation-delay:-1.2s}.latkan-right{right:clamp(14px,13vw,180px);top:49%;animation-delay:-2.1s}
@keyframes kandilSway{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
@keyframes latkanSwing{from{transform:rotate(-5deg)}to{transform:rotate(5deg)}}
@keyframes kandilGlow{from{opacity:.68;filter:drop-shadow(0 0 2px #f3d79a)}to{opacity:1;filter:drop-shadow(0 0 9px #f3d79a)}}
@media(max-width:560px){.festival-kandil{width:49px;height:100px}.latkan-left{left:8px;top:25%}.latkan-right{right:8px;top:72%}.festival-latkan{width:25px;height:84px}}
@media(max-height:600px){.festival-kandil{height:100px}.latkan-left{top:24%}.latkan-right{top:76%}}
@media(prefers-reduced-motion:reduce){.festival-kandil,.festival-latkan,.kandil-tassel,.kandil-flame{animation:none}}

/* Replace the plain trim with the shared ornate Indian wedding-card border. */
.festival-decorations:before{content:'';position:fixed;inset:0;border:0;box-shadow:none;background:url('../images/wedding-card-frame.svg') center/100% 100% no-repeat;pointer-events:none;z-index:1}
.festival-decorations:after{display:none}
/* Keep the shared gate styles from adding large oval rings over the card. */
.welcome-splash:before,.welcome-splash:after{display:none!important}

/* Floral gilt edging keeps the original welcome card geometry. */
.welcome-splash .festival-decorations:before{inset:12px;background:none;border:1px solid #d9b96d99;border-radius:22px;box-shadow:inset 0 0 0 5px #70251e,inset 0 0 0 6px #d9b96d38}
.welcome-floral-corner{position:absolute;width:clamp(64px,10vw,145px);aspect-ratio:3/5;background:url('../images/gold-floral-corner.svg') center/contain no-repeat;z-index:2;filter:brightness(1.25)}
.welcome-floral-tl{top:18px;left:18px}
.welcome-floral-tr{top:18px;right:18px;transform:scaleX(-1)}
.welcome-floral-bl{bottom:18px;left:18px;transform:scaleY(-1)}
.welcome-floral-br{bottom:18px;right:18px;transform:scale(-1)}
.welcome-splash .festival-kandil{width:54px;height:110px;top:24px}
.welcome-splash .kandil-left{left:clamp(85px,13vw,190px)}
.welcome-splash .kandil-right{right:clamp(85px,13vw,190px)}
.welcome-splash .festival-latkan{display:none}
.welcome-celebration{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.welcome-flower{position:absolute;top:-40px;color:#e6bd78;font-size:var(--flower-size);line-height:1;opacity:0;animation:welcomeFlowerFall var(--fall-duration) linear var(--fall-delay) infinite}
.welcome-flower:nth-child(3n){color:#e8a39a}
.welcome-firework{position:absolute;width:1px;height:1px;color:#f4d28d}
.welcome-firework i{position:absolute;left:0;top:0;width:3px;height:12px;border-radius:50%;background:currentColor;box-shadow:0 0 7px #e9cd9180;opacity:0;animation:welcomeFirework 8s ease-out var(--burst-delay) infinite}
@keyframes welcomeFlowerFall{0%{opacity:0;transform:translate3d(0,0,0) rotate(0)}10%,80%{opacity:.6}100%{opacity:0;transform:translate3d(var(--flower-drift),110vh,0) rotate(300deg)}}
@keyframes welcomeFirework{0%,6%{opacity:0;transform:rotate(var(--ray-angle)) translateY(0) scale(.25)}12%{opacity:.8}29%{opacity:0;transform:rotate(var(--ray-angle)) translateY(-70px) scale(.5)}100%{opacity:0;transform:rotate(var(--ray-angle)) translateY(-70px) scale(.5)}}
.welcome-splash.is-opening .welcome-celebration{opacity:0;transition:opacity .3s}
@media(max-width:560px){
 .welcome-splash .festival-decorations:before{inset:7px;border-radius:14px}
 .welcome-floral-corner{width:48px}
 .welcome-floral-tl,.welcome-floral-bl{left:10px}
 .welcome-floral-tr,.welcome-floral-br{right:10px}
 .welcome-floral-tl,.welcome-floral-tr{top:10px}
 .welcome-floral-bl,.welcome-floral-br{bottom:10px}
 .welcome-splash .festival-kandil{display:none}
 .welcome-firework{scale:.55}
 .welcome-flower{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.welcome-celebration{display:none}.welcome-flower,.welcome-firework i{animation:none}}
