:root{color-scheme:dark;background:#151c1c;font-family:Arial,sans-serif}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{display:grid;place-items:center;background:radial-gradient(ellipse at 50% 46%,#4a3d2c 0%,#25302d 40%,#101a1c 78%);overscroll-behavior:none}
.scene{position:relative;width:min(100vw,56.25vh);height:min(100vh,177.77778vw);width:min(100vw,56.25dvh);height:min(100dvh,177.77778vw);overflow:hidden;isolation:isolate;background:#133136;box-shadow:0 0 100px #c88b3522,0 16px 80px #0009;--warm:0;--shadow-w:66%;--shadow-y:82.7%;--shadow-o:.25;--petals:0;-webkit-tap-highlight-color:transparent;user-select:none;touch-action:manipulation;cursor:pointer}
.scene img{display:block;pointer-events:none}
.full{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.temple{z-index:0;object-fit:fill}
.floor{z-index:1;mask-image:linear-gradient(transparent 69%,#000 79%);-webkit-mask-image:linear-gradient(transparent 69%,#000 79%)}
.dusk{z-index:2;background:linear-gradient(#101d2438,#0b232725 65%,#3e260d1a);opacity:calc(1 - var(--warm)*.75)}
.temple-light{z-index:3;background:radial-gradient(ellipse 80% 55% at 50% 48%,#ffbe6330,transparent 75%),linear-gradient(transparent 60%,#ffc65c20);mix-blend-mode:screen;opacity:var(--warm)}
#back-effects{z-index:4}
.mist{position:absolute;z-index:4;top:75.5%;width:90%;opacity:.105;pointer-events:none}
.mist img{width:100%;height:auto}
.mist-left{left:-42%;animation:mist-drift 20s ease-in-out infinite alternate}
.mist-right{right:-43%;top:76.9%;animation:mist-drift 23s -8s ease-in-out infinite alternate-reverse}
#ground-shadow{position:absolute;z-index:5;width:var(--shadow-w);height:3.2%;left:50%;top:var(--shadow-y);transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#33230ee0 0%,#54351980 40%,transparent 71%);filter:blur(5px);opacity:var(--shadow-o);pointer-events:none}
.halo-breath{position:absolute;z-index:5;left:27%;top:13.6%;width:46%;height:26%;background:radial-gradient(ellipse,#ffdb6a35,transparent 70%);mix-blend-mode:screen;opacity:0;pointer-events:none}
.hanging{position:absolute;z-index:6;transform-origin:50% 1.5%;pointer-events:none}
.hanging img{width:100%;height:100%;object-fit:contain}
.bell{top:1.1%;width:15%;height:15%;filter:drop-shadow(2px 4px 4px #41230140);pointer-events:auto}
.bell-left{left:18.5%;animation:bell-sway 4.7s -2s ease-in-out infinite}
.bell-right{right:18.5%;animation:bell-sway 5.4s -3.4s ease-in-out infinite reverse}
.bell img{transform-origin:50% 1.5%}
.bell.ringing img{animation:bell-strike 2.8s ease-out both}
.garland{top:.4%;width:8.9%;height:22%;filter:drop-shadow(1px 3px 3px #46230040)}
.garland-left{left:5%;animation:garland-sway 5.8s -1.5s ease-in-out infinite}
.garland-right{right:5%;animation:garland-sway 6.3s -4s ease-in-out infinite reverse}
.garland img{transform-origin:50% 0;animation:garland-bend 5.2s -1s ease-in-out infinite alternate}
.garland-right img{animation-delay:-3s}
.character{position:absolute;left:7.5%;top:11.25%;width:85%;height:85%;object-fit:fill;pointer-events:none;z-index:8}
#girl-open{transition:opacity .22s ease;z-index:9}
#girl-closed{opacity:0;z-index:8}
#transformation{opacity:0;z-index:10;background:transparent}
#devi{opacity:0;z-index:11}
#front-effects{z-index:12}
.lamp{position:absolute;z-index:14;bottom:2%;width:19.6%;aspect-ratio:420/251;pointer-events:auto;filter:drop-shadow(0 6px 4px #492b1240)}
.visual-control{appearance:none;-webkit-appearance:none;border:0;padding:0;margin:0;background:transparent;color:inherit;font:inherit;cursor:pointer;touch-action:manipulation;overflow:visible;outline:none}
.visual-control:focus-visible{outline:2px solid #ffe7a3;outline-offset:5px;border-radius:10px}
.visual-control>span{pointer-events:none}
.lamp-left{left:3%}
.lamp-right{right:3%;transform:scaleX(-1)}
.lamp img{position:relative;width:100%;height:100%;z-index:2}
.lamp-light{position:absolute;width:240%;height:325%;left:-25%;top:-164%;background:radial-gradient(ellipse,#ffd17165,transparent 65%);mix-blend-mode:screen;animation:lamp-glow 1.9s ease-in-out infinite;z-index:0;transition:opacity .15s}
.flame{position:absolute;left:94.8%;top:44%;width:14%;height:68%;transform-origin:50% 100%;transform:translate(-50%,-100%);border-radius:55% 42% 49% 49% / 72% 75% 28% 28%;background:radial-gradient(ellipse at 50% 80%,#ffffef 0 12%,#fff2ad 30%,#ffd36a 57%,#ff9703a8 78%,#f7800000 96%);box-shadow:0 0 11px #ffcf61bc,0 0 30px #ffb52b85;animation:flame-flicker .82s ease-in-out infinite alternate;z-index:3;transition:opacity .15s}
.flame i{position:absolute;bottom:5%;left:35%;width:31%;height:38%;border-radius:50% 50% 30% 30%;background:#fffde4;filter:blur(.6px)}
.lamp-right .flame{animation-delay:-.39s;animation-duration:1.06s}
.lamp.is-off .flame,.lamp.is-off .lamp-light{opacity:0;animation:none}
.lamp::after{content:"";position:absolute;inset:-38% -10% -10%;z-index:4}
.vignette{z-index:15;box-shadow:inset 0 0 50px #31230b28,inset 0 -20px 35px #542f1121}
#tilak-target{position:absolute;z-index:20;left:41%;top:27.4%;width:18%;height:10%;min-width:44px;min-height:44px;border:0;padding:0;background:transparent;cursor:pointer;touch-action:manipulation;border-radius:50%;outline:none}
#tilak-target:focus-visible{outline:2px solid #ffe6a3;outline-offset:3px}
#tilak-target:disabled{cursor:default;pointer-events:none}
.touch-hint{position:absolute;left:50%;top:50%;width:25%;aspect-ratio:1;transform:translate(-50%,-50%);border:1px solid #ffe39caa;border-radius:50%;box-shadow:0 0 12px #ffda694a;animation:touch-pulse 3.4s ease-out infinite;opacity:0}
#tilak-light{position:absolute;z-index:16;width:25%;aspect-ratio:1;left:37.5%;top:25.4%;background:radial-gradient(#fff7dcd9 0%,#ffe2a06b 16%,#ffb53a25 35%,transparent 65%);opacity:0;pointer-events:none}
.scene[data-phase="transforming"] #tilak-light{animation:tilak-flash 1.35s ease-out both}
.scene[data-phase="settled"] .halo-breath{animation:halo-breathe 4.6s ease-in-out infinite}
.scene:not([data-phase="idle"]) #tilak-target{display:none}
.scene:not([data-phase="idle"]) .touch-hint{animation:none;opacity:0}
#loading-light{position:absolute;z-index:22;left:48%;top:49%;width:4%;aspect-ratio:1;border:1px solid #e5c58a66;border-top-color:#ffe7a3;border-radius:50%;animation:loading-spin 1s linear infinite;opacity:0;pointer-events:none}
.scene[data-phase="loading"] #loading-light{opacity:1}
.scene[data-phase="loading"] .character,.scene[data-phase="loading"] .hanging,.scene[data-phase="loading"] .lamp{opacity:0}
#notice{display:none;position:absolute;z-index:25;left:12%;right:12%;top:44%;margin:0;padding:18px 20px;border:1px solid #b38b4d60;border-radius:12px;background:#142528eb;color:#f9e8c7;font-size:14px;line-height:1.6;text-align:center}
.scene[data-phase="error"] #notice{display:block}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes bell-sway{0%,100%{transform:rotate(-4.5deg)}50%{transform:rotate(4.5deg)}}
@keyframes bell-strike{0%{transform:rotate(0)}10%{transform:rotate(20deg)}24%{transform:rotate(-17deg)}39%{transform:rotate(12deg)}55%{transform:rotate(-8deg)}72%{transform:rotate(4.5deg)}86%{transform:rotate(-2deg)}100%{transform:rotate(0)}}
@keyframes garland-sway{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4.8deg)}}
@keyframes garland-bend{from{transform:skewX(-1.2deg)}to{transform:skewX(1.4deg)}}
@keyframes mist-drift{from{transform:translateX(-2%)}to{transform:translateX(9%)}}
@keyframes lamp-glow{0%,100%{opacity:.65;transform:scale(.94)}50%{opacity:1;transform:scale(1.09)}}
@keyframes flame-flicker{0%{transform:translate(-50%,-100%) rotate(-7deg) scale(.90,1.08)}32%{transform:translate(-50%,-100%) rotate(5deg) scale(1.12,.86)}65%{transform:translate(-50%,-100%) rotate(-4deg) scale(.88,1.17)}100%{transform:translate(-50%,-100%) rotate(7deg) scale(1.05,.99)}}
@keyframes touch-pulse{0%,24%{opacity:0;transform:translate(-50%,-50%) scale(.65)}40%{opacity:.7}80%,100%{opacity:0;transform:translate(-50%,-50%) scale(1.35)}}
@keyframes tilak-flash{0%{opacity:0;transform:scale(.3)}18%{opacity:1;transform:scale(.8)}100%{opacity:0;transform:scale(1.6)}}
@keyframes halo-breathe{0%,100%{opacity:.4;transform:scale(.93)}50%{opacity:.95;transform:scale(1.08)}}
@keyframes loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.touch-hint{opacity:.4}.scene[data-phase="settled"] .halo-breath{opacity:.4}}

/* Complete offline greeting design; ad scripts are intentionally absent. */
:root{color-scheme:light;--paper:#fff8eb;--ink:#5b2925;--muted:#93735d;--gold:#c28b37;--line:#e7d5b7;--green:#187746;--view-height:100dvh;font-family:"Nirmala UI","Noto Sans Devanagari",Mangal,Arial,sans-serif;background:#271b1b}
body{display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 30%,#685341 0,#342725 52%,#201b1c 100%);color:var(--ink);overscroll-behavior:none}
button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #bd8335;outline-offset:4px}button{touch-action:manipulation}svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}
.app-shell{width:min(100%,1040px);height:min(900px,calc(100dvh - 32px));display:flex;flex-direction:column;overflow:hidden;background:var(--paper);border:1px solid #f0dcc33b;border-radius:24px;box-shadow:0 28px 100px #0006;position:relative}
.topbar{height:58px;min-height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;gap:12px;border-bottom:1px solid var(--line);background:var(--paper);z-index:30}.brand{display:flex;gap:9px;align-items:center}.brand-mark{width:30px;height:30px;color:#a75334}.brand strong{font-size:16px;font-weight:650;display:block;line-height:1.35}.brand small{display:block;font-size:9px;letter-spacing:1.8px;color:var(--muted);margin-top:1px}.stage-label{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);white-space:nowrap}.stage-label b{font-family:Arial,sans-serif;font-size:10px;font-weight:400;color:#a77b49}.sound-button{width:38px;height:38px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;color:#805334;background:#fffaf1}.sound-button svg{width:17px;height:17px}.sound-button[aria-pressed="true"] .sound-waves{display:none}.sound-button:not([aria-pressed="true"]) .sound-cross{display:none}
.journey{flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) minmax(0,0fr);transition:grid-template-rows .85s cubic-bezier(.22,.8,.25,1);position:relative}.darshan-area{min-height:0;display:flex;flex-direction:column;background:#233333;position:relative;overflow:hidden}.banner-wrap{height:76px;min-height:0;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:#fcf5e8;overflow:hidden;transition:height .7s ease,opacity .35s ease}.ad-label{font-size:8px;line-height:12px;letter-spacing:.5px;color:#9a826d;text-align:center;margin:0}.ad-slot{background:repeating-linear-gradient(135deg,#a57b3003 0 5px,#a57b3008 5px 6px);border:1px dashed #d8c6a7;color:#a18a70;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px}.ad-slot strong{font:11px Arial,sans-serif;letter-spacing:1px;font-weight:400}.ad-slot span{font-size:10px}.banner-slot{width:320px;max-width:100%;height:50px;flex-shrink:0;gap:2px}.banner-slot span{font-size:9px}.scene-holder{min-height:0;flex:1;position:relative;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 50%,#65523b 0,#263b39 66%,#172b2e 100%)}.scene{flex-shrink:0;box-shadow:0 0 50px #d7b36316;max-width:none;max-height:none}.scene-holder::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 10px 30px #0c20252b,inset 0 -10px 20px #0c20251a;z-index:21}.intro-guide{height:85px;flex-shrink:0;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:linear-gradient(#263632,#1a2d2b);color:#f9ebd4;padding:0 16px;transition:height .7s ease,opacity .35s ease;text-align:center}.intro-guide p{margin:0;font-size:12px;line-height:1.5}.intro-guide strong{color:#ffdc9a;font-weight:600}.tap-guide{border:0;background:none;color:#c9b79b;display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;padding:4px 10px;min-height:30px}.tap-guide svg{width:17px;height:17px}.tap-guide:not(:disabled){color:#f2d29c}.tap-guide:disabled{opacity:.65}.full-darshan{position:absolute;z-index:25;top:12px;left:14px;border:1px solid #e4c68d44;color:#f5dfb8;border-radius:30px;background:#1e3432b8;padding:8px 11px;font-size:10px;align-items:center;gap:5px;display:none;min-height:36px}.full-darshan svg{width:13px;height:13px}.hero-note{position:absolute;right:20px;top:50%;transform:translateY(-50%);color:#e7c68d;letter-spacing:1px;line-height:1.65;font-size:17px;text-align:center;opacity:0;pointer-events:none;transition:opacity .6s .2s}.hero-note span{display:block;font-size:10px;color:#b7a17c;letter-spacing:0;margin-top:8px}
.wish-pane{min-height:0;overflow:hidden;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 0,#ffe7b13b,transparent 65%),var(--paper);opacity:0;visibility:hidden;transition:opacity .4s .3s;position:relative}.wish-scroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:21px 24px 12px;scrollbar-width:thin;scrollbar-color:#d5bd93 transparent}.wish-copy{text-align:center;margin:0 auto;max-width:400px}.eyebrow{font-size:11px;letter-spacing:1px;color:#a1663d;margin:0 0 8px}.wish-heading{font-size:30px;line-height:1.3;letter-spacing:-.7px;font-weight:650;margin:0;color:#6f2b2b}.wish-heading span{font-size:17px;display:block;color:#9b593c;font-weight:400;letter-spacing:.5px;margin-bottom:3px}.ornament{display:flex;align-items:center;justify-content:center;gap:10px;color:#ba8a46;margin:11px auto 10px}.ornament::before,.ornament::after{content:"";height:1px;width:45px;background:linear-gradient(90deg,transparent,#d7b87e)}.ornament::after{transform:rotate(180deg)}.ornament svg{width:13px;height:13px}.blessing{font-size:15px;line-height:1.75;color:#7c5943;margin:0}.sender-sign{font-size:12px;color:#956d44;margin:9px 0 0}.sender-sign strong{font-weight:600;color:#7d442f;overflow-wrap:anywhere}.native-wrap{width:min(100%,360px);margin:18px auto 0}.native-slot{min-height:94px;width:100%;gap:6px}.native-slot strong{font-size:10px}.native-wrap .ad-label{margin-bottom:4px}.wish-actions{flex-shrink:0;padding:12px 24px max(16px,env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid #e7d5b794;box-shadow:0 -6px 18px #fff8ebbb;text-align:center}.action-hint{font-size:11px;line-height:1.5;color:#947152;margin:0 0 8px}.primary-button{border:1px solid #135c38;background:linear-gradient(#21804e,#156b41);color:#fffef5;display:flex;align-items:center;justify-content:center;gap:9px;min-height:51px;padding:12px 17px;border-radius:12px;font-size:15px;font-weight:600;box-shadow:0 4px 9px #135b3022;width:100%;text-decoration:none;line-height:1.45;transition:background .2s,transform .2s}.primary-button svg{width:23px;height:23px;stroke-width:1.5}.primary-button:hover{background:#105d37}.primary-button:active{transform:translateY(1px)}.primary-button .arrow{margin-left:auto;width:17px;height:17px}
body[data-ui="wishes"] .journey{grid-template-rows:minmax(0,.42fr) minmax(0,.58fr)}body[data-ui="wishes"] .intro-guide{height:0;opacity:0;pointer-events:none}body[data-ui="wishes"] .wish-pane{visibility:visible;opacity:1}body[data-ui="wishes"] .full-darshan{display:flex}body[data-ui="wishes"] .hero-note{opacity:1}body[data-ui="wishes"] .scene{box-shadow:0 0 50px #e0bf6719}
.composer{position:fixed;inset:0;bottom:var(--keyboard-gap,0px);border:1px solid #dfcba4;border-radius:24px;width:min(480px,calc(100vw - 24px));height:min(790px,calc(var(--view-height) - 32px));max-width:none;max-height:none;padding:0;overflow:hidden;color:var(--ink);background:var(--paper);box-shadow:0 22px 90px #0005;margin:auto}.composer::backdrop{background:#17221ed1;backdrop-filter:blur(5px)}.composer[open]{display:flex;flex-direction:column}.composer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 20px 14px;border-bottom:1px solid var(--line);flex-shrink:0}.composer-header h2{font-size:18px;font-weight:600;margin:2px 0 0;line-height:1.5}.composer-header p{font-size:10px;color:var(--muted);margin:0}.close-button{height:36px;width:36px;flex-shrink:0;border:1px solid var(--line);border-radius:50%;background:#fffaf1;color:#8f694b;display:grid;place-items:center}.close-button svg{height:16px;width:16px}.composer-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 22px;scrollbar-width:thin;scrollbar-color:#d5bd93 transparent}.name-label{font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.name-count{font:10px Arial,sans-serif;font-weight:400;color:#b0916d}#sender-name{width:100%;height:49px;border:1px solid #d6bc94;border-radius:10px;background:#fffdf7;color:#5b2925;outline:none;padding:10px 13px;font-size:16px;transition:box-shadow .15s}#sender-name::placeholder{color:#b3a089;font-size:14px}#sender-name:focus{border-color:#ad7735;box-shadow:0 0 0 3px #d8b77733}#sender-name[aria-invalid="true"]{border-color:#b94a3a}.field-error{font-size:11px;line-height:1.5;color:#ab3e2b;margin:5px 0 0;min-height:0}.field-error:empty{display:none}.preview-label{font-size:9px;color:#ad8c64;letter-spacing:.6px;margin:16px 0 7px}.personal-card{display:flex;align-items:center;gap:12px;border:1px solid #dfbc7d;border-radius:12px;background:radial-gradient(ellipse at 0 50%,#ffe4a64d,transparent 75%),#fff5dc;position:relative;padding:12px 15px;min-height:130px;overflow:hidden}.personal-card::after{content:"";position:absolute;inset:5px;border:1px solid #dfbc7d55;border-radius:8px;pointer-events:none}.card-devi{width:60px;height:107px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 0 10px #c48a3033)}.card-copy{flex:1;min-width:0}.card-copy p{margin:0;font-size:11px;line-height:1.65;color:#9c7044}.card-copy h3{margin:3px 0 6px;font-size:19px;color:#862f2c;font-weight:600;line-height:1.4}.card-copy .card-from{font-size:11px;line-height:1.5;color:#a07545;margin-top:7px;overflow-wrap:anywhere}.card-from strong{font-weight:600;color:#773926}.rectangle-wrap{margin:22px auto 0;width:300px;max-width:100%}.rectangle-wrap .ad-label{margin-bottom:4px}.rectangle-slot{width:300px;height:250px;max-width:100%;gap:8px;position:relative}.rectangle-slot svg{width:25px;height:25px;opacity:.55;margin-bottom:2px}.rectangle-slot strong{font-size:13px}.rectangle-slot span{font-size:10px}.composer-footer{padding:14px 22px max(16px,env(safe-area-inset-bottom));flex-shrink:0;border-top:1px solid var(--line);background:var(--paper);box-shadow:0 -8px 18px #fff8ebaa}.send-actions{display:flex;gap:9px}.send-actions .primary-button{flex:1;font-size:14px;min-height:49px}.copy-button{width:48px;flex-shrink:0;display:grid;place-items:center;color:#977144;border:1px solid #d8c5a3;border-radius:12px;background:#fffbf1}.copy-button svg{width:19px;height:19px}.share-note{font-size:10px;color:#9d8367;text-align:center;margin:9px 0 0;line-height:1.6}.toast{position:fixed;z-index:100;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%,15px);max-width:min(90vw,460px);padding:11px 18px;border:1px solid #e0c79255;border-radius:12px;background:#243a2ef2;color:#fff1d3;box-shadow:0 6px 20px #0003;font-size:12px;line-height:1.6;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.sr-message{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:760px){.journey{grid-template-columns:minmax(0,1fr) minmax(0,0fr);grid-template-rows:minmax(0,1fr);transition:grid-template-columns .85s cubic-bezier(.22,.8,.25,1)}body[data-ui="wishes"] .journey{grid-template-columns:minmax(0,1.14fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.wish-pane{border-left:1px solid var(--line)}.wish-scroll{display:flex;flex-direction:column;justify-content:center;padding:30px 28px 22px}.wish-heading{font-size:35px}.wish-heading span{font-size:20px}.blessing{font-size:16px}.native-wrap{margin-top:36px}.native-slot{min-height:130px}.wish-actions{padding:20px 28px 25px}.hero-note{display:none}.full-darshan{top:16px;left:16px}.topbar{padding:0 24px}.stage-label{margin-right:10px}}
@media(max-width:759px){.app-shell{height:100dvh;border:0;border-radius:0;width:100%}.topbar{padding:0 16px;height:54px;min-height:54px}.composer{margin:auto auto 0;width:100%;height:min(820px,calc(var(--view-height) - 14px));border-radius:24px 24px 0 0;border-bottom:0}.composer-header{padding:18px 20px 12px}.wish-heading{font-size:27px}.wish-heading span{font-size:16px}.wish-scroll{padding-top:16px}.ornament{margin:8px auto}.native-wrap{margin-top:13px}.native-slot{min-height:82px}.hero-note{right:calc(12px + (100vw - 320px)*.08);font-size:15px}.hero-note span{font-size:9px}.sender-sign{margin-top:7px}.blessing{font-size:14px}.wish-actions{padding-top:10px}.primary-button{min-height:49px;font-size:14px}.action-hint{font-size:10px;margin-bottom:6px}.intro-guide{height:78px}}
@media(max-width:360px){.topbar{padding:0 11px;gap:8px}.brand{gap:6px}.brand strong{font-size:14px}.brand small{font-size:8px}.stage-label{gap:5px;font-size:10px}.sound-button{width:34px;height:34px}.wish-scroll{padding-left:17px;padding-right:17px}.wish-heading{font-size:24px}.wish-actions{padding-left:17px;padding-right:17px}.hero-note{font-size:12px;right:9px}.hero-note span{display:none}.full-darshan{left:8px;top:8px;font-size:9px;padding:5px 7px;min-height:31px}.composer-scroll{padding:15px 8px}.composer-footer{padding-left:14px;padding-right:14px}.personal-card{gap:8px;padding:10px}.card-copy h3{font-size:17px}.card-devi{width:52px;height:93px}.composer-header h2{font-size:16px}}
@media(max-height:700px) and (max-width:759px){body[data-ui="wishes"] .journey{grid-template-rows:minmax(0,.36fr) minmax(0,.64fr)}.wish-scroll{padding-top:12px;padding-bottom:8px}.eyebrow{font-size:10px;margin-bottom:5px}.wish-heading{font-size:24px}.wish-heading span{font-size:14px}.blessing{font-size:12px}.ornament{margin:6px auto}.sender-sign{font-size:11px;margin-top:5px}.native-wrap{margin-top:10px}.native-slot{min-height:68px}.wish-actions{padding-top:8px;padding-bottom:max(10px,env(safe-area-inset-bottom))}.action-hint{margin-bottom:5px}.primary-button{min-height:45px;font-size:13px}.intro-guide{height:65px}.intro-guide p{font-size:11px}.banner-wrap{height:70px}.hero-note{display:none}}
@media(orientation:landscape) and (max-height:550px){.app-shell{width:100%;height:100dvh;border-radius:0;border:0}.topbar{height:44px;min-height:44px}.journey{grid-template-columns:minmax(0,1fr) minmax(0,0fr);grid-template-rows:minmax(0,1fr)}body[data-ui="wishes"] .journey{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.wish-scroll{padding:10px 16px}.wish-heading{font-size:22px}.blessing{font-size:12px}.wish-actions{padding:7px 14px}.action-hint{display:none}.native-wrap{margin-top:12px}.intro-guide{height:54px}.intro-guide p{font-size:10px}.tap-guide{font-size:10px;min-height:24px}.banner-wrap{height:67px}.composer{height:calc(var(--view-height) - 12px);margin:auto;border-radius:20px;width:min(520px,calc(100vw - 24px))}.hero-note{display:none}}
@media(prefers-reduced-motion:reduce){.journey,.banner-wrap,.intro-guide,.wish-pane,.hero-note,.toast,.primary-button{transition:none!important}.scene-holder::after{box-shadow:none}}

/* Show the top ad only after tilak, then keep it above the wishes. */
body[data-started="false"] .banner-wrap{height:0;opacity:0;visibility:hidden;pointer-events:none}
body[data-started="true"] .banner-wrap{opacity:1;visibility:visible}
body[data-ui="wishes"] .banner-wrap{height:76px;opacity:1;pointer-events:auto}
/* A broad face-sized button and a separate, non-blocking forehead cue. */
#tilak-target{left:27%;top:21%;width:46%;height:30%;min-width:72px;min-height:72px;border-radius:38%;z-index:24}
#tilak-target .touch-hint{display:none}
#tilak-prompt{display:none;position:absolute;z-index:25;left:50%;top:31.5%;width:0;height:0;pointer-events:none;user-select:none}
.scene[data-phase="idle"] #tilak-prompt{display:block}
.tilak-ring{position:absolute;left:0;top:0;width:32px;height:32px;border:2px solid #fff2bd;border-radius:50%;background:#ffd17c16;box-shadow:0 0 0 3px #ba742c44,0 0 18px #ffdb7e66;transform:translate(-50%,-50%);animation:tilak-cue-ring 2.8s ease-out infinite}
.tilak-ring-second{animation-delay:.25s;background:none;border-width:1px}
.tilak-hand{position:absolute;left:-14px;top:3px;width:42px;height:57px;overflow:visible;filter:drop-shadow(0 2px 3px #59321188);transform-origin:35% 0;animation:tilak-cue-hand 2.8s ease-in-out infinite;stroke:none}
.tilak-instruction{position:absolute;top:65px;left:0;transform:translateX(-50%);padding:7px 12px;border-radius:20px;background:#fff7e9f5;border:1px solid #c18a42;color:#793b25;font-size:12px;font-weight:600;line-height:1.45;white-space:nowrap;box-shadow:0 3px 10px #39230f33}
@keyframes tilak-cue-hand{0%,18%{transform:translate(13px,16px) rotate(-12deg);opacity:.95}42%,57%{transform:translate(0,0) rotate(-3deg);opacity:1}75%,100%{transform:translate(13px,16px) rotate(-12deg);opacity:.95}}
@keyframes tilak-cue-ring{0%,28%{opacity:.9;transform:translate(-50%,-50%) scale(.72)}58%{opacity:.7}85%,100%{opacity:0;transform:translate(-50%,-50%) scale(1.65)}}
@media(max-width:360px){.tilak-hand{width:36px;height:49px;left:-12px}.tilak-instruction{top:57px;font-size:11px;padding:6px 10px}.tilak-ring{width:27px;height:27px}}
@media(max-height:700px) and (max-width:759px){body[data-ui="wishes"] .banner-wrap{height:70px}}
@media(orientation:landscape) and (max-height:550px){body[data-ui="wishes"] .banner-wrap{height:67px}.tilak-hand{width:27px;height:37px;left:-9px}.tilak-instruction{top:43px;font-size:10px;padding:4px 8px}.tilak-ring{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){.tilak-ring{animation:none;opacity:.8;transform:translate(-50%,-50%)}.tilak-ring-second{display:none}.tilak-hand{animation:none;transform:translate(0,0)}}

/* Personal welcome, visible with the kanya and touch instruction on one screen. */
.brand small{font-size:10px;letter-spacing:.4px;margin-top:2px}
.arrival-intro{flex-shrink:0;padding:12px 18px 11px;text-align:center;background:linear-gradient(#283b36,#233333);color:#fae5bc}
.arrival-sender{font-size:12px;line-height:1.5;margin:0 auto 3px;max-width:540px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#dfc7a3}
.arrival-sender strong{font-weight:600;color:#ffe1a0}
.arrival-heading{font-size:25px;font-weight:600;line-height:1.4;margin:0;letter-spacing:.2px}
.arrival-heading span{font-size:20px;vertical-align:1px}
body[data-started="true"] .arrival-intro{display:none}
body[data-ui="darshan"] .intro-guide{height:58px;padding-bottom:env(safe-area-inset-bottom);gap:0}
.tap-guide{font-size:13px;min-height:44px;padding:8px 10px;line-height:1.5}
.tap-guide svg{width:19px;height:19px}
.action-hint{font-size:11px;line-height:1.65}
.primary-button .arrow{margin-left:0}
.card-kanya{width:60px;height:107px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 0 10px #c48a3033)}
.card-copy .card-from{margin-top:0}
.card-copy .card-occasion{margin-top:8px;font-size:10px;color:#a17648}
.card-copy h3{font-size:20px;margin:4px 0}
@media(max-width:759px) and (orientation:portrait){body[data-ui="wishes"] .journey{grid-template-rows:minmax(0,.36fr) minmax(0,.64fr)}}
@media(max-width:360px){.brand strong{font-size:15px}.brand small{font-size:9px}.stage-label #stage-name{display:none}.arrival-intro{padding:10px 14px}.arrival-heading{font-size:23px}.arrival-sender{font-size:11px}.tap-guide{font-size:12px}.card-kanya{width:52px;height:93px}.card-copy h3{font-size:18px}.action-hint{font-size:10px}}
@media(max-height:700px) and (max-width:759px) and (orientation:portrait){body[data-ui="wishes"] .journey{grid-template-rows:minmax(0,.30fr) minmax(0,.70fr)}.arrival-intro{padding-top:8px;padding-bottom:8px}.arrival-heading{font-size:22px}body[data-ui="darshan"] .intro-guide{height:52px}.tap-guide{font-size:12px}.action-hint{font-size:10px}}
@media(orientation:landscape) and (max-height:550px){.arrival-intro{padding:4px 16px}.arrival-sender{font-size:10px;margin-bottom:0;-webkit-line-clamp:1}.arrival-heading{font-size:18px}.arrival-heading span{font-size:15px}body[data-ui="darshan"] .intro-guide{height:42px}.tap-guide{font-size:11px;min-height:36px;padding:5px 10px}.action-hint{display:none}}

/* This offering belongs to the seated kanya only. */
.prasad-thali{position:absolute;z-index:17;left:34%;top:84%;width:32%;height:12%;overflow:hidden;border-radius:48%;isolation:isolate;transform-origin:50% 70%;touch-action:manipulation}
.prasad-thali img{position:absolute;left:0;top:-30%;width:100%;height:auto;pointer-events:none;filter:drop-shadow(0 3px 2px #3c240d33)}
.prasad-thali:focus-visible{outline:2px solid #ffe1a0;outline-offset:3px}
.prasad-thali:active{transform:scale(.985)}
.prasad-caption{display:block;margin:0;padding:0 8px;color:#f0d6a2;font-size:11px;line-height:1.5;pointer-events:none}
.prasad-caption[hidden],body[data-started="true"] .prasad-caption{display:none!important}
body[data-ui="darshan"][data-started="false"] .intro-guide{height:78px;gap:2px}
/* The old puja plate is part of the still image. This vector mask removes
   only that plate, leaving the dress, hands, face, and original file intact. */
.scene[data-phase="idle"] #girl-open{clip-path:url(#girl-without-old-plate)}
#feeding-face{z-index:18;pointer-events:none;opacity:1}
#feeding-bite{z-index:20;pointer-events:none}
.scene [hidden]{display:none!important}
.scene:not([data-phase="idle"]) .prasad-thali,
.scene:not([data-phase="idle"]) .prasad-caption,
.scene:not([data-phase="idle"]) #feeding-face,
.scene:not([data-phase="idle"]) #feeding-bite{display:none!important;pointer-events:none!important}
.scene[data-feeding="true"] #tilak-prompt{display:none}
.scene[data-feeding="true"] .prasad-thali{cursor:default;transform:none}
@media(orientation:landscape) and (max-height:550px){.prasad-caption{font-size:9px}body[data-ui="darshan"][data-started="false"] .intro-guide{height:61px;gap:0}}

/* A transparent video must never be layered over either seated-girl still. */
.scene[data-video-visible="true"] #girl-open,
.scene[data-video-visible="true"] #girl-closed,
.scene[data-phase="settled"] #girl-open,
.scene[data-phase="settled"] #girl-closed{
  display:none!important;visibility:hidden!important;opacity:0!important;transition:none!important;
}

/* ===== v7 badlav ===== */
/* 1) Devi ke aas-paas: side photos, label, "जय माता दी" */
body[data-ui="wishes"] .scene-holder{--label-h:18px}
.scene-holder .scene{z-index:1}
.side-photo{--ar-max:.667;--ph:min(calc(var(--scene-h,200px)*.6),calc((var(--slot-w,100px) - 12px)/var(--ar-max)));--ov:-6px;position:absolute;z-index:0;bottom:var(--label-h,0px);margin:0;opacity:0;pointer-events:none;transition:opacity .6s .35s}
.side-photo[hidden]{display:none}
.side-left{right:calc(50% + var(--scene-w,100px)/2 - var(--ov))}
.side-right{left:calc(50% + var(--scene-w,100px)/2 - var(--ov))}
body[data-ui="wishes"] .side-photo{opacity:1}
.side-left figcaption{right:calc(var(--ov) + 4px);text-align:right}
.side-right figcaption{left:calc(var(--ov) + 4px);text-align:left}
.side-photo img{display:block;height:var(--ph);width:auto;max-width:none;opacity:.75;-webkit-user-drag:none;user-select:none}
.side-photo figcaption{position:absolute;top:calc(100% + 3px);white-space:nowrap;font-size:10.5px;line-height:1.4;letter-spacing:.2px;color:#ecd4a0}
.darshan-caption{display:none;flex-shrink:0;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 12px 4px;background:linear-gradient(#3a0e15,#42121b)}
body[data-ui="wishes"] .darshan-caption{display:flex;animation:v7-fade .6s .35s both}
.darshan-caption .jmd{margin:0;font-size:20px;font-weight:700;line-height:1.2;letter-spacing:.6px;color:#f3d28e;text-shadow:0 0 18px #ffc94a40;white-space:nowrap}
.darshan-caption .shakti{margin:0;font-size:10px;line-height:1.3;color:#c9b48d}
@media(max-height:700px) and (max-width:759px){.darshan-caption .jmd{font-size:18px}.darshan-caption .shakti{font-size:9.5px}.side-photo figcaption{font-size:9.5px}body[data-ui="wishes"] .scene-holder{--label-h:17px}}
/* beech wali Mata ka size pehle jitna: darshan ki row me caption ki jagah jodi gayi hai */
@media(max-width:759px) and (orientation:portrait){body[data-ui="wishes"] .journey{grid-template-rows:minmax(0,.445fr) minmax(0,.555fr)}}
@media(max-height:700px) and (max-width:759px) and (orientation:portrait){body[data-ui="wishes"] .journey{grid-template-rows:minmax(0,.385fr) minmax(0,.615fr)}}
@keyframes v7-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.side-photo{transition:none}.darshan-caption{animation:none!important}}
/* Mata wale hisse ka background: mahroom (maroon) */
body[data-ui="wishes"] .scene-holder{background:radial-gradient(ellipse at 50% 50%,#80303a 0,#5c1a24 62%,#3a0e15 100%)}
body[data-ui="wishes"] .scene-holder::after{box-shadow:inset 0 10px 30px #1f06092b,inset 0 -10px 20px #1f06091a}
body[data-ui="wishes"] .full-darshan{background:#3f1119c4;border-color:#e4c68d66}
/* "पूरे दर्शन": upar ke 320x50 ad se 40px se zyada door */
.scene-holder .full-darshan{top:40px}
/* 2) Shubhkamna text */
body .wish-heading span{font-weight:500;color:#7d3a28}
body .wish-copy .blessing{font-size:19px;line-height:1.6;font-weight:600;color:#6f2b2b}
@media(min-width:760px){body .wish-copy .blessing{font-size:20px}}
@media(max-width:759px){body .wish-copy .blessing{font-size:18px}}
@media(max-height:700px) and (max-width:759px){body .wish-copy .blessing{font-size:15px}}
@media(orientation:landscape) and (max-height:550px){body .wish-copy .blessing{font-size:15px}}
body .sender-sign{font-size:14px;color:#6b4a30}
@media(max-height:700px) and (max-width:759px){body .sender-sign{font-size:13px}}
/* 3) Neeche ki share line */
body .wish-actions .action-hint{font-size:17px;line-height:1.45;font-weight:600;color:#6f2b2b;margin:0 0 10px}
@media(max-width:759px){body .wish-actions .action-hint{font-size:16px;margin-bottom:8px}}
@media(max-height:700px) and (max-width:759px){body .wish-actions .action-hint{font-size:15px;margin-bottom:6px}}
@media(orientation:landscape) and (max-height:550px){body .wish-actions .action-hint{display:none}}
/* 4) Naam wali sheet */
.name-intro{margin:0 0 14px;font-size:14px;line-height:1.65;font-weight:600;color:#6f2b2b}
.preview-message{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#eef6e2;border:1px solid #d3e3b8;color:#3d3a2e;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.preview-message .msg-link{display:inline;font-size:11.5px;color:#1a6fb0;text-decoration:underline;word-break:break-all}
.card-copy .card-from.is-anon{color:#8d6a45}
.rectangle-wrap{margin:22px auto 30px}
.rectangle-wrap.is-filled .rectangle-slot{border:0;background:none}
.composer-scroll{padding-bottom:26px}

/* Devotional heading fonts: Tillana Bold (SIL OFL 1.1, Google Fonts), subset to the heading letters only. */
@font-face{font-family:'NvArrival';src:url(../media/font-65d88f55a2e9.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap;size-adjust:84.2%}@font-face{font-family:'NvWish';src:url(../media/font-3b061df0a3a5.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap;size-adjust:86.1%}@font-face{font-family:'NvJmd';src:url(../media/font-99bcab9ae48b.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap;size-adjust:87.4%}
body .arrival-heading,body .card-copy h3{font-family:'NvArrival',"Nirmala UI","Noto Sans Devanagari",Mangal,Arial,sans-serif}
body .wish-heading{font-family:'NvWish',"Nirmala UI","Noto Sans Devanagari",Mangal,Arial,sans-serif;letter-spacing:0}
body .wish-heading span{font-family:"Nirmala UI","Noto Sans Devanagari",Mangal,Arial,sans-serif}
body .darshan-caption .jmd{font-family:'NvJmd',"Nirmala UI","Noto Sans Devanagari",Mangal,Arial,sans-serif}


/* v8: ad slot me ad aate hi dashed dibba hat jaye; native poori chaudai le; heading par browser ka focus frame na dikhe */
.ad-slot.has-ad{border:0;background:none}
.native-slot{align-items:stretch;justify-content:flex-start}
.native-slot.has-ad{color:#5b3a29}
.native-slot [id^="container-"]{width:100%}
.wish-heading:focus,.wish-heading:focus-visible{outline:none}
