/* g1tech.in – Wedding invitation maker + public invitations (/i/{slug}). Loaded only on those pages.
   Animations use transform/opacity; decorative loops pause when hidden and stop for prefers-reduced-motion. */

/* =========================================================== invitation player */
.iv-root { position: relative; width: 100%; height: 100%; outline: none; }
.iv { position: absolute; inset: 0; overflow: hidden; container-type: size; color: var(--iv-ink); font-family: var(--iv-body), Georgia, serif; background: radial-gradient(120% 80% at 50% 0%, var(--iv-bg2) 0%, var(--iv-bg) 70%); -webkit-tap-highlight-color: transparent; user-select: none; }
.iv .iv-bgl { position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 100%, rgba(255,255,255,.12), transparent 70%); pointer-events: none; }
.iv-pages { position: absolute; inset: 0 0 54px; }
.iv.closed .iv-pages { opacity: 0; pointer-events: none; }
.iv-page { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; visibility: hidden; will-change: transform, opacity; backface-visibility: hidden; }
.iv-page.cur { visibility: visible; }
.iv-card { position: relative; width: min(100%, 460px); max-height: 100%; overflow: auto; scrollbar-width: none; padding: 34px 26px; border-radius: 20px; background: var(--iv-paper); box-shadow: 0 18px 50px rgba(0,0,0,.28); text-align: center; }
.iv-card::-webkit-scrollbar { display: none; }
.iv.dark .iv-card { backdrop-filter: blur(4px); box-shadow: none; border: 1px solid rgba(255,255,255,.12); }
.iv-in { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: center; }
.iv-kicker { margin: 0; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--iv-accent); }
.iv-h { margin: 0; font: 400 clamp(1.5rem, 7cqw, 2.3rem)/1.15 var(--iv-head), serif; color: var(--iv-ink); }
.iv-h.ev { font-size: clamp(1.8rem, 9cqw, 2.8rem); color: var(--iv-accent); }
.iv-h3 { margin: 0; font: 400 1.6rem/1.1 var(--iv-head), serif; color: var(--iv-accent); }
.iv-names { margin: 0; display: grid; gap: 2px; font: 400 clamp(1.9rem, 10cqw, 3.2rem)/1.05 var(--iv-head), serif; color: var(--iv-ink); }
.iv-names i { font: italic 400 1.05rem/1.4 var(--iv-body), serif; color: var(--iv-accent); }
.iv-names-sm { margin: 4px 0 0; font: 400 1.35rem var(--iv-head), serif; color: var(--iv-accent); }
.iv-names-sm i { font-style: italic; font-family: var(--iv-body), serif; font-size: .9em; }
.iv-p { margin: 0; font-size: 1.08rem; line-height: 1.5; max-width: 34ch; }
.iv-p.sm { font-size: .9rem; opacity: .8; }
.iv-p.it { font-style: italic; }
.iv-bless { margin: 0; display: grid; gap: 4px; font: 400 1.3rem/1.5 'Tiro Devanagari Hindi', 'Amiri', 'Noto Sans Gurmukhi', serif; color: var(--iv-accent); }
.iv-bless .small { font-size: .95rem; color: var(--iv-ink); opacity: .85; }
.iv-date { margin: 0; font: 600 1.25rem/1.3 var(--iv-body), serif; color: var(--iv-ink); }
.iv-date-sm { margin: 0; font-size: 1.05rem; color: var(--iv-accent); letter-spacing: .04em; }
.iv-time { margin: 0; font-size: 1.1rem; }
.iv-venue { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.iv-tag { margin: 0; font-weight: 700; color: var(--iv-accent); letter-spacing: .03em; }
.iv-count { margin: 0; font-size: 1.05rem; } .iv-count b { font: 400 2.4rem var(--iv-head), serif; color: var(--iv-accent); margin-right: 4px; }
.iv-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 2px solid var(--iv-accent); border-radius: 999px; background: transparent; color: var(--iv-accent); font: 600 1rem var(--iv-body), sans-serif; text-decoration: none; cursor: pointer; }
.iv-btn:hover { background: var(--iv-accent); color: var(--iv-paper); }
.iv-btn.big { padding: 12px 28px; font-size: 1.1rem; background: var(--iv-accent); color: #fff; }
.iv-motif { width: 92px; height: 92px; color: var(--iv-accent); }
.iv-motif svg { width: 100%; height: 100%; }
.iv-mono { display: inline-flex; align-items: center; gap: 6px; padding: 14px 22px; border: 2px solid var(--iv-accent); border-radius: 999px; font: 400 2.4rem/1 var(--iv-head), serif; color: var(--iv-accent); }
.iv-mono i { font-size: 1.2rem; font-style: italic; }
.iv-mono.big { font-size: 4rem; padding: 22px 36px; }
.iv-pics { display: flex; justify-content: center; gap: 10px; }
.iv-ph { display: block; object-fit: cover; object-position: var(--iv-pos); border: 4px solid var(--iv-accent); background: rgba(0,0,0,.06); }
.iv-pics.two .iv-ph { width: 118px; height: 118px; border-radius: 50%; }
.iv-pics.one .iv-ph { width: 190px; height: 230px; border-radius: 110px 110px 18px 18px; }
.iv-pics.ev .iv-ph { width: 100%; max-width: 300px; height: 150px; border-radius: 14px; }
.iv-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
@media (max-width: 380px) { .iv-sides { grid-template-columns: 1fr; } }
.iv-side { display: grid; gap: 4px; }
/* text reveal: each block rises in, one after another */
.iv-r { opacity: 0; transform: translateY(14px); }
.iv-page.on .iv-r { animation: ivRise .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
@keyframes ivRise { to { opacity: 1; transform: none; } }
.o-minimal .iv-page.on .iv-r { animation-name: ivMask; clip-path: inset(0 0 100% 0); }
@keyframes ivMask { to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.o-cinema .iv-page.on .iv-r, .o-video .iv-page.on .iv-r { animation-name: ivBlur; }
@keyframes ivBlur { from { opacity: 0; filter: blur(8px); transform: scale(1.06); } to { opacity: 1; filter: blur(0); transform: none; } }
/* frames */
.iv-corner { position: absolute; width: 64px; height: 64px; color: var(--iv-accent); pointer-events: none; }
.iv-corner svg { width: 100%; height: 100%; }
.c-tl { top: 8px; left: 8px; } .c-tr { top: 8px; right: 8px; transform: scaleX(-1); } .c-bl { bottom: 8px; left: 8px; transform: scaleY(-1); } .c-br { bottom: 8px; right: 8px; transform: scale(-1); }
.iv-corner.fl { width: 90px; height: 90px; top: -6px; left: -6px; } .iv-corner.fl.c-br { top: auto; left: auto; right: -6px; bottom: -6px; }
.fr-gold, .fr-royal, .fr-theatre { border: 3px double var(--iv-accent); outline: 1px solid var(--iv-accent); outline-offset: -12px; padding: 44px 30px; }
.fr-royal { background: linear-gradient(160deg, var(--iv-paper), color-mix(in srgb, var(--iv-paper) 75%, #000)); border-width: 4px; }
.fr-gold-luxe { border: 2px solid var(--iv-accent); outline: 1px solid var(--iv-accent); outline-offset: -10px; background-image: linear-gradient(110deg, transparent 40%, rgba(212,175,55,.18) 50%, transparent 60%); background-size: 250% 100%; animation: ivShine 5s linear infinite; }
@keyframes ivShine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.fr-line { outline: 1px solid var(--iv-accent); outline-offset: -12px; }
.fr-floral { padding-top: 54px; padding-bottom: 54px; }
.iv-mandala { position: absolute; inset: 10% 5%; color: var(--iv-accent); opacity: .14; pointer-events: none; animation: ivSpin 60s linear infinite; }
@keyframes ivSpin { to { transform: rotate(360deg); } }
.fr-arch, .fr-stained { border-radius: 230px 230px 20px 20px; padding-top: 70px; border: 3px solid var(--iv-accent); }
.fr-stained { background: radial-gradient(70% 30% at 50% 0, rgba(127,156,192,.22), transparent 70%), var(--iv-paper); box-shadow: 0 18px 50px rgba(0,0,0,.18), inset 0 6px 0 -2px #c0392b, inset 0 10px 0 -2px #f1c40f, inset 0 14px 0 -2px #2980b9; }
.fr-scroll { background: linear-gradient(90deg, #e9d49c, var(--iv-paper) 8%, var(--iv-paper) 92%, #e9d49c); border-radius: 6px; }
.fr-polaroid { border-radius: 4px; padding-bottom: 58px; transform: rotate(-1.2deg); }
.fr-ticket { border-radius: 14px; background: radial-gradient(circle at 0 50%, transparent 14px, var(--iv-paper) 15px) left/51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 14px, var(--iv-paper) 15px) right/51% 100% no-repeat; box-shadow: none; filter: drop-shadow(0 12px 24px rgba(0,0,0,.2)); }
.fr-phulkari { border: 10px solid transparent; border-image: repeating-linear-gradient(45deg, var(--iv-accent2) 0 10px, #ffd23f 10px 20px, var(--iv-accent) 20px 30px) 12; }
.fr-mehndi { border: 2px dashed var(--iv-accent2); }
.fr-kolam { outline: 2px dotted var(--iv-accent); outline-offset: -12px; }
/* controls */
.iv-ctl { position: absolute; left: 0; right: 0; bottom: 0; height: 54px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; z-index: 6; background: linear-gradient(transparent, rgba(0,0,0,.28)); }
.iv.closed .iv-ctl [data-prev], .iv.closed .iv-ctl [data-next], .iv.closed .iv-dots { visibility: hidden; }
.iv-c { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: #222; font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.iv-c:disabled { opacity: .35; cursor: default; }
.iv-c.on { background: var(--iv-accent); color: #fff; }
.iv-dots { display: flex; gap: 5px; flex-wrap: wrap; max-width: 46%; justify-content: center; }
.iv-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; }
.iv-dots button.on { width: 22px; border-radius: 5px; background: #fff; }
/* scroll mode (royal scroll): one long sheet */
.iv-pages.scrollmode { overflow-y: auto; scroll-snap-type: y proximity; background: linear-gradient(90deg, #e9d49c, var(--iv-paper) 6%, var(--iv-paper) 94%, #e9d49c); margin: 0 6%; inset: 0 6% 54px; border-left: 2px solid var(--iv-accent); border-right: 2px solid var(--iv-accent); }
.iv-pages.scrollmode .iv-page { position: relative; inset: auto; visibility: visible; min-height: 100%; scroll-snap-align: start; }
.iv-pages.scrollmode .iv-card { box-shadow: none; background: transparent; }
/* opening scene layer */
.iv-open { position: absolute; inset: 0 0 54px; z-index: 5; display: grid; place-items: center; }
.iv-open[hidden] { display: none; }
.iv-open > * { cursor: pointer; }
.iv-hint { display: inline-block; margin-top: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; font: 600 .9rem system-ui, sans-serif; animation: ivPulse 1.8s ease-in-out infinite; }
@keyframes ivPulse { 50% { transform: scale(1.06); opacity: .75; } }
.iv-play { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--iv-accent); background: rgba(0,0,0,.35); color: var(--iv-accent); font-size: 1.8rem; cursor: pointer; position: relative; z-index: 2; }
.op-center { position: relative; z-index: 2; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 20px; }
.op-center.low { margin-top: calc(8% + 230px); background: rgba(255,255,255,.75); border-radius: 18px; }
.dark .op-center .iv-names, .op-cinema .iv-names, .op-video .iv-names, .op-arch .iv-names, .op-diya .iv-names, .op-curtain .iv-names, .op-kolam .iv-names, .op-royal .iv-names, .op-frame .iv-names { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
/* book */
.op-book { width: 100%; height: 100%; display: grid; place-items: center; padding: 14px; perspective: 1400px; }
.op-cover { width: min(100%, 460px); transform-origin: left center; }
.op-cover .iv-card { padding: 50px 30px; }
/* cinema & video */
.op-cinema, .op-video { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 22px; background: radial-gradient(60% 50% at 50% 50%, rgba(255,255,255,.08), transparent), #000; }
.op-cinema .bar, .op-video .bar { position: absolute; left: 0; right: 0; height: 12%; background: #000; z-index: 3; }
.bar.t { top: 0; } .bar.b { bottom: 0; }
.op-title { text-align: center; display: grid; gap: 8px; }
.op-title .iv-kicker { color: var(--iv-accent); }
/* royal frame */
.op-royal { position: absolute; inset: 0; display: grid; place-items: center; }
.op-rframe { position: absolute; width: min(86cqw, 380px); height: 80%; fill: none; stroke: var(--iv-accent); stroke-width: 3; stroke-dasharray: 1600; stroke-dashoffset: 0; }
.op-rc { position: relative; display: grid; gap: 10px; justify-items: center; text-align: center; padding: 30px; }
/* envelopes */
.op-env { display: grid; justify-items: center; gap: 18px; width: 100%; padding: 20px; }
.env-msg { margin: 0; font: 500 1.15rem var(--iv-body), serif; color: var(--iv-ink); text-align: center; }
.dark .env-msg, .k-scroll .env-msg { color: #fff; }
.env { position: relative; width: min(84%, 340px); aspect-ratio: 1.45; perspective: 1200px; }
.env .back, .env .front { position: absolute; inset: 0; border-radius: 10px; background: var(--iv-env); }
.env .back { box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.env .front { z-index: 3; clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); background: linear-gradient(170deg, color-mix(in srgb, var(--iv-env) 92%, #fff), var(--iv-env)); }
.env .flap { position: absolute; left: 0; right: 0; top: 0; height: 62%; z-index: 4; transform-origin: top center; clip-path: polygon(0 0, 100% 0, 50% 100%); background: linear-gradient(180deg, color-mix(in srgb, var(--iv-env) 80%, #000), var(--iv-env)); backface-visibility: hidden; }
.env .ecard { position: absolute; left: 7%; right: 7%; top: 8%; height: 86%; z-index: 2; display: grid; place-items: center; padding: 14px; border-radius: 8px; background: var(--iv-paper); box-shadow: 0 6px 18px rgba(0,0,0,.18); text-align: center; }
.env .ecard { overflow: hidden; }
.env .ecard .iv-names { font-size: 1.6rem; } .env .ecard .iv-date-sm { display: none; }
.scrl .sheet { overflow: hidden; } .env .ecard .iv-motif { width: 48px; height: 48px; } .env .ecard .iv-mono { font-size: 1.4rem; padding: 6px 12px; }
.env .seal { position: absolute; z-index: 5; left: 50%; top: 52%; width: 86px; height: 86px; margin: -43px 0 0 -43px; border: 0; padding: 0; background: none; cursor: pointer; }
.seal .h { position: absolute; top: 0; bottom: 0; width: 50%; background: radial-gradient(circle at 100% 50%, var(--iv-seal) 60%, color-mix(in srgb, var(--iv-seal) 70%, #000) 100%); box-shadow: inset 0 0 0 4px rgba(0,0,0,.12); }
.seal .h.l { left: 0; border-radius: 43px 0 0 43px; clip-path: polygon(0 0, 100% 0, 88% 30%, 100% 55%, 86% 80%, 100% 100%, 0 100%); }
.seal .h.r { right: 0; border-radius: 0 43px 43px 0; background: radial-gradient(circle at 0 50%, var(--iv-seal) 60%, color-mix(in srgb, var(--iv-seal) 70%, #000) 100%); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12% 80%, 0 55%, 12% 30%); }
.seal b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 1.7rem var(--iv-head), serif; color: #f3d9a4; text-shadow: 0 1px 0 rgba(0,0,0,.4); pointer-events: none; }
.env-stay .iv-open { z-index: 0; align-items: end; opacity: .9; pointer-events: none; }
.env-stay .iv-pages { z-index: 2; }
.env-stay .op-env { transform: translateY(38%) scale(.78); }
.env-stay .ecard, .env-stay .flap { display: none; }
.env-stay .iv-open .env-msg, .env-stay .iv-open .iv-hint { display: none; }
.k-scroll .scrl { position: absolute; left: 10%; right: 10%; top: 8%; height: 84%; z-index: 2; display: grid; grid-template-rows: auto 1fr auto; }
.scrl .rod { height: 14px; border-radius: 8px; background: linear-gradient(#8b5a2b, #d4a15a, #8b5a2b); margin: 0 -8px; }
.scrl .sheet { background: linear-gradient(90deg, #e3c98b, var(--iv-paper) 10%, var(--iv-paper) 90%, #e3c98b); display: grid; place-items: center; padding: 10px; text-align: center; }
.scrl .iv-names { font-size: 1.6rem; color: var(--iv-ink); }
/* 3D rotating card */
.op-rot { display: grid; justify-items: center; gap: 16px; perspective: 1400px; }
.op-rcard { position: relative; width: min(72cqw, 300px); aspect-ratio: .7; transform-style: preserve-3d; animation: ivTurn 6s ease-in-out infinite; }
@keyframes ivTurn { 0%, 100% { transform: rotateY(-22deg) rotateX(6deg); } 50% { transform: rotateY(22deg) rotateX(-4deg); } }
.op-rcard .face { position: absolute; inset: 0; backface-visibility: hidden; display: grid; }
.op-rcard .face .iv-card { width: 100%; height: 100%; display: grid; place-items: center; padding: 20px; }
.op-rcard .face.bk { transform: rotateY(180deg); }
.op-rcard .iv-names { font-size: 2rem; }
/* garden */
.op-garden { position: absolute; inset: 0; display: grid; place-items: center; }
.op-garden .fl { position: absolute; left: 50%; top: 50%; width: 60px; height: 120px; margin: -120px 0 0 -30px; transform-origin: 50% 100%; transform: rotate(var(--a)) translateY(-120px); }
.op-garden .stem { fill: none; stroke: var(--iv-accent2); stroke-width: 4; stroke-dasharray: 140; stroke-dashoffset: 0; }
.op-garden .bloom { fill: var(--iv-accent); }
.op-garden .ctr { fill: #ffd166; }
.op-garden .op-center { background: rgba(255,255,255,.75); border-radius: 50%; width: 230px; height: 230px; place-content: center; }
.op-garden .iv-names { font-size: 2.1rem; }
/* petals burst */
.op-petals { position: absolute; inset: 0; display: grid; place-items: center; }
.op-petals > i { position: absolute; left: 50%; top: 50%; width: 22px; height: 14px; margin: -7px 0 0 -11px; border-radius: 80% 0 80% 0; background: var(--iv-accent); transform: rotate(var(--a)) translateY(calc(var(--r) * -1)); opacity: .9; }
.op-petals > i:nth-child(3n) { background: var(--iv-accent2); }
/* palace doors */
.op-palace { display: grid; justify-items: center; gap: 14px; }
.op-palace .arch { position: relative; width: min(78cqw, 320px); aspect-ratio: .68; border-radius: 160px 160px 0 0; border: 10px solid var(--iv-accent); overflow: hidden; background: #000; perspective: 900px; box-shadow: 0 0 0 4px var(--iv-accent2), 0 24px 60px rgba(0,0,0,.5); }
.op-palace .glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 60%, #fff6d0, #f3c75f 40%, transparent 75%); opacity: 0; }
.op-palace .door { position: absolute; top: 0; bottom: 0; width: 50%; background: radial-gradient(circle, var(--iv-accent) 2px, transparent 3px) 0 0/22px 22px, linear-gradient(90deg, #5a3416, #8b5a2b 50%, #5a3416); }
.op-palace .door span { position: absolute; inset: 18% 14%; border: 3px solid var(--iv-accent); border-radius: 60px 60px 6px 6px; }
.door.l { left: 0; transform-origin: left center; } .door.r { right: 0; transform-origin: right center; }
/* calendar */
.op-cal { display: grid; justify-items: center; gap: 10px; text-align: center; }
.cal { width: min(84cqw, 330px); padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.18); transform-origin: top center; color: #1f2a44; }
.cal-h { font: 700 1.25rem var(--iv-head), sans-serif; color: var(--iv-accent); margin-bottom: 8px; }
.cal-w, .cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-w b { font-size: .75rem; opacity: .6; }
.cal-g i { position: relative; font-style: normal; padding: 6px 0; font-size: .95rem; }
.cal-g i.hit { color: #fff; font-weight: 700; z-index: 1; }
.cal-g i.hit svg { position: absolute; inset: -6px; z-index: -1; fill: var(--iv-accent); stroke: var(--iv-accent); stroke-width: 2; stroke-dasharray: 120; }
/* mandap */
.op-mandap { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; color: var(--iv-accent); }
.op-mandap .mandap { width: min(80cqw, 330px); }
.toran { position: absolute; top: 0; left: 0; right: 0; height: 70px; display: flex; justify-content: space-around; z-index: 3; }
.toran i { width: 14px; height: calc(40px + (var(--i) % 3) * 14px); background: radial-gradient(circle, #ffb300 6px, transparent 7px) 0 0/14px 14px; animation: ivSway 3s ease-in-out infinite alternate; transform-origin: top; animation-delay: calc(var(--i) * -.3s); }
@keyframes ivSway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.drape { position: absolute; top: 0; bottom: 0; width: 52%; z-index: 2; background: repeating-linear-gradient(90deg, #b3121f 0 18px, #d4232f 18px 30px, #8e0d17 30px 40px); box-shadow: inset 0 -40px 60px rgba(0,0,0,.3); }
.drape.l { left: 0; transform-origin: left; } .drape.r { right: 0; transform-origin: right; }
.op-mandap .iv-hint { position: absolute; bottom: 10%; z-index: 4; }
/* golden frame */
.op-frame { position: absolute; inset: 0; display: grid; place-items: center; }
.op-frame .lux { width: min(82cqw, 340px); aspect-ratio: .72; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; border: 3px solid var(--iv-accent); outline: 1px solid var(--iv-accent); outline-offset: 8px; background: linear-gradient(110deg, transparent 35%, rgba(212,175,55,.3) 50%, transparent 65%) 0 0/250% 100%; animation: ivShine 3.5s linear infinite; }
.op-frame .iv-hint { position: absolute; bottom: 8%; }
/* gallery */
.op-gal { display: grid; justify-items: center; gap: 16px; }
.op-gal .stack { position: relative; width: min(64cqw, 250px); aspect-ratio: .82; }
.pol { position: absolute; inset: 0; padding: 10px 10px 40px; background: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.25); transform: rotate(var(--r)); }
.pol img, .pol .ph { width: 100%; height: 100%; object-fit: cover; object-position: var(--iv-pos); display: grid; place-items: center; background: var(--iv-bg2); color: var(--iv-accent); }
.pol .ph svg { width: 50%; }
/* minimal */
.op-minimal { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; background: var(--iv-bg); text-align: center; }
.op-minimal .ln { margin: 0; overflow: hidden; } .op-minimal .ln span { display: inline-block; }
.op-minimal .big { font: 300 clamp(2.2rem, 12cqw, 3.6rem)/1.05 var(--iv-head), sans-serif; letter-spacing: -.02em; }
.op-minimal .amp { font-size: 1.4rem; color: var(--iv-accent2); }
.op-minimal .rule { width: 160px; height: 2px; margin: 12px 0; background: var(--iv-ink); transform-origin: left; }
/* diyas */
.op-diya { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; background: #120604; transition: background 1.2s; }
.op-diya.warm { background: radial-gradient(circle at 50% 60%, #ff9933, #8b1a1a 60%, #120604); }
.op-diya .iv-bless { color: #ffcf70; }
.diyas { display: flex; gap: 14px; }
.dy { position: relative; width: 44px; height: 22px; border-radius: 0 0 22px 22px; background: linear-gradient(#e2711d, #9c3d10); }
.dy .flame { position: absolute; left: 50%; bottom: 18px; width: 12px; height: 22px; margin-left: -6px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff7c2, #ffb400 50%, #ff5400); opacity: 0; transform: scale(.2); transition: opacity .3s, transform .3s; }
.dy.lit .flame { opacity: 1; transform: scale(1); animation: ivFlicker .18s ease-in-out infinite alternate; box-shadow: 0 0 22px 8px rgba(255,180,0,.5); }
@keyframes ivFlicker { to { transform: scale(1.06, .95) rotate(2deg); } }
/* nikah arch */
.op-arch { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.op-arch .moon { position: absolute; top: 9%; right: 14%; width: 60px; height: 60px; border-radius: 50%; box-shadow: -14px 6px 0 0 #f6e7a1; transform: rotate(-20deg); filter: drop-shadow(0 0 14px rgba(246,231,161,.6)); }
.lantern { position: absolute; top: 0; left: calc(12% + var(--i) * 24%); width: 2px; height: calc(70px + (var(--i) % 2) * 40px); background: var(--iv-accent); transform-origin: top; animation: ivSway 2.6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.6s); }
.lantern i { position: absolute; bottom: -34px; left: -13px; width: 28px; height: 36px; border-radius: 8px 8px 12px 12px; background: radial-gradient(#ffe8a3, #e0a526); box-shadow: 0 0 18px rgba(255,200,80,.7); }
.march { position: absolute; width: min(80cqw, 330px); height: 82%; fill: rgba(255,255,255,.05); stroke: var(--iv-accent); stroke-width: 4; stroke-dasharray: 1200; }
.op-arch .iv-bless { color: #f6e7a1; font-size: 1.5rem; }
/* chapel */
.op-chapel { position: absolute; inset: 0; overflow: hidden; display: grid; justify-items: center; }
.rose { position: absolute; top: 8%; width: 200px; height: 200px; border-radius: 50%; border: 6px solid #6b7c93; overflow: hidden; }
.rose i { position: absolute; inset: 0; clip-path: polygon(50% 50%, 50% 0, 76% 6%); transform: rotate(calc(var(--i) * 30deg)); background: hsl(calc(var(--i) * 30), 70%, 55%); }
.rays { position: absolute; top: 20%; left: 50%; width: 120%; height: 80%; transform: translateX(-50%); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); background: linear-gradient(rgba(255,255,235,.85), rgba(255,255,235,0)); opacity: .15; transition: opacity 1s; pointer-events: none; }
.rays.on { opacity: 1; }
.dove { position: absolute; top: calc(8% + 150px); width: 64px; color: #fff; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.dove svg { width: 100%; }
.dove.l { left: calc(50% - 130px); } .dove.r { left: calc(50% + 66px); transform: scaleX(-1); }
/* phulkari */
.op-phul { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.cloth { position: absolute; inset: 0; display: flex; }
.cloth i { flex: 1; transform-origin: top; background: repeating-linear-gradient(45deg, #c2185b 0 12px, #ffb300 12px 24px, #f57c00 24px 36px, #ad1457 36px 48px), #8e0d3c; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.op-phul .op-center { background: rgba(255,248,236,.94); border-radius: 18px; color: var(--iv-ink); }
.op-phul .iv-motif { color: var(--iv-accent); filter: drop-shadow(0 0 10px rgba(255,180,0,.8)); animation: ivPulse 2s ease-in-out infinite; }
.op-phul .iv-bless { color: var(--iv-accent); font-family: 'Noto Sans Gurmukhi', sans-serif; }
/* boarding pass */
.op-board { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; overflow: hidden; }
.pass { display: flex; width: min(92cqw, 380px); border-radius: 16px; background: #fff; color: #023047; box-shadow: 0 18px 40px rgba(0,0,0,.25); transform: rotate(-2deg); text-align: left; font-family: Poppins, system-ui, sans-serif; }
.pass .main { flex: 1; padding: 16px 18px; border-right: 2px dashed #b9d7e3; }
.pass .stub { width: 92px; padding: 16px 10px; text-align: center; }
.pass .air { margin: 0 0 8px; font-weight: 800; color: var(--iv-accent); font-size: .85rem; letter-spacing: .08em; }
.pass .lbl { margin: 0; font-size: .7rem; text-transform: uppercase; opacity: .6; } .pass .val { margin: 0 0 8px; font-weight: 700; } .pass .val.big { font-size: 2rem; color: var(--iv-accent); }
.pass .row { display: flex; gap: 18px; }
.flight { position: absolute; width: 100%; top: 14%; fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 6 6; opacity: .8; }
.flight path { stroke-dasharray: 420; }
.plane { position: absolute; top: 18%; left: 45%; width: 46px; color: #fff; opacity: 0; }
/* tear-off */
.op-tear { display: grid; justify-items: center; gap: 14px; }
.pad { position: relative; width: 220px; height: 240px; }
.pad .sheet { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.2); border-top: 34px solid var(--iv-accent); transform-origin: top left; }
.pad .sheet b { font: 600 1.1rem Poppins, sans-serif; color: var(--iv-ink); } .pad .sheet span { font: 700 5rem/1 Poppins, sans-serif; color: var(--iv-accent); }
.pad .top { z-index: 2; }
.pad .hrt { position: absolute; right: 18px; bottom: 18px; width: 46px; color: var(--iv-accent); transform: scale(0); }
/* tri panel */
.op-tri { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.op-tri .pn { position: absolute; top: 0; bottom: 0; width: 34%; display: grid; place-items: center; font: 400 1.6rem 'Yatra One', var(--iv-head), serif; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.25); writing-mode: vertical-rl; }
.pn.p0 { left: 0; background: repeating-radial-gradient(circle at 30% 30%, #f9c80e 0 18px, #f2b705 18px 36px); }
.pn.p1 { left: 33%; background: repeating-radial-gradient(circle at 70% 40%, #2e8b57 0 18px, #3aa36b 18px 36px); }
.pn.p2 { right: 0; background: repeating-radial-gradient(circle at 40% 70%, #d63384 0 18px, #e85d9e 18px 36px); }
.op-tri .op-center { background: rgba(255,255,255,.9); border-radius: 20px; z-index: 3; }
/* theatre curtain */
.op-curtain { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; }
.op-curtain .spot { position: absolute; inset: 0; background: radial-gradient(40% 30% at 50% 50%, rgba(255,240,200,.45), transparent 70%); }
.op-curtain .cur { position: absolute; top: 0; bottom: 0; width: 52%; z-index: 3; background: repeating-linear-gradient(90deg, #7a0a0a 0 22px, #a51616 22px 40px, #5c0606 40px 52px); border-bottom: 18px solid var(--iv-accent); }
.cur.l { left: 0; transform-origin: left top; } .cur.r { right: 0; transform-origin: right top; }
.op-curtain .valance { position: absolute; top: 0; left: 0; right: 0; height: 13%; z-index: 4; background: radial-gradient(circle at 50% 0, #8b0000 70%, transparent 71%) 0 0/80px 100%, #8b0000; border-bottom: 6px solid var(--iv-accent); }
.op-curtain .iv-hint { position: absolute; bottom: 8%; z-index: 5; }
/* kolam */
.op-kolam { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; }
.op-kolam svg { width: min(70cqw, 280px); }
.op-kolam .dots { fill: #fffbea; }
.op-kolam .kl { fill: none; stroke: #fffbea; stroke-width: 2.4; stroke-dasharray: 1400; }
.op-kolam .lamp { fill: #ffb300; filter: drop-shadow(0 0 8px #ffb300); }

/* =========================================================== background effects (cheap, transform-only loops) */
.iv-amb { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.iv-amb i { position: absolute; top: -40px; left: var(--x); animation: ivFall var(--d) linear infinite; animation-delay: var(--dl); }
@keyframes ivFall { from { transform: translate3d(0, -10vh, 0) rotate(0); } to { transform: translate3d(8vw, 110vh, 0) rotate(540deg); } }
.a-petals i { width: calc(16px * var(--s)); height: calc(10px * var(--s)); border-radius: 80% 0 80% 0; background: #f06292; opacity: .8; }
.a-marigold i { width: calc(14px * var(--s)); height: calc(14px * var(--s)); border-radius: 50%; background: radial-gradient(circle, #ffd54f 30%, #ff9800 32%, #f57c00 70%); }
.a-confetti i { width: 8px; height: 14px; background: hsl(var(--h), 85%, 60%); }
.a-particles i, .a-sparkle i { width: calc(5px * var(--s)); height: calc(5px * var(--s)); border-radius: 50%; background: var(--iv-accent); box-shadow: 0 0 10px var(--iv-accent); animation-name: ivFloat; top: auto; bottom: -10px; }
@keyframes ivFloat { from { transform: translate3d(0, 0, 0); opacity: 0; } 20% { opacity: .9; } to { transform: translate3d(-4vw, -110vh, 0); opacity: 0; } }
.a-sparkle i { animation-name: ivTwinkle; top: calc(var(--x) * .9); bottom: auto; animation-duration: calc(var(--d) / 3); }
@keyframes ivTwinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.2); } }
.a-butterflies i { width: 22px; height: 16px; background: radial-gradient(ellipse at 25% 50%, #f48fb1 45%, transparent 46%), radial-gradient(ellipse at 75% 50%, #ce93d8 45%, transparent 46%); animation-name: ivFlutter; top: calc(20% + var(--x) * .5); animation-duration: calc(var(--d) * 1.6); }
@keyframes ivFlutter { from { transform: translate3d(-10vw, 0, 0) scaleX(1); } 25% { transform: translate3d(25vw, -6vh, 0) scaleX(.5); } 50% { transform: translate3d(55vw, 4vh, 0) scaleX(1); } 75% { transform: translate3d(80vw, -4vh, 0) scaleX(.5); } to { transform: translate3d(110vw, 0, 0) scaleX(1); } }
.a-lanterns i { top: 0; width: 2px; height: calc(50px + var(--s) * 40px); background: #c9a646; transform-origin: top; animation: ivSway 3s ease-in-out infinite alternate; animation-delay: var(--dl); }
.a-lanterns i::after { content: ""; position: absolute; bottom: -26px; left: -10px; width: 22px; height: 28px; border-radius: 6px 6px 10px 10px; background: radial-gradient(#ffe8a3, #e0a526); box-shadow: 0 0 14px rgba(255,200,80,.6); }
.iv.paused *, .iv.closed .iv-amb i { animation-play-state: paused !important; }
.iv.rm .iv-amb, .iv.rm .iv-hint { animation: none; }
@media (prefers-reduced-motion: reduce) { .iv-amb { display: none; } .iv * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; } .iv-r { opacity: 1; transform: none; } }

/* =========================================================== maker */
.wim { display: grid; gap: 18px; }
.wim-steps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.wim-steps button { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--color-border-strong); border-radius: 999px; background: var(--color-surface); color: var(--color-text-soft); font: 600 var(--text-sm) var(--font-sans); cursor: pointer; }
.wim-steps button b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color-surface-2); font-size: 12px; }
.wim-steps button.on { background: var(--grad-primary); border-color: transparent; color: #fff; }
.wim-steps button.on b { background: rgba(255,255,255,.25); }
.wim-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.wim-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .wim-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.wim-tcard { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface); box-shadow: var(--shadow-card); }
.wim-tcard[hidden] { display: none; }
.wim-tcard.sel { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.wim-thumb { position: relative; aspect-ratio: 9 / 13; border-radius: 12px; overflow: hidden; background: #eee; }
.wim-thumb .iv-root { position: absolute; left: 0; top: 0; width: 360px; height: 520px; transform-origin: 0 0; pointer-events: none; }
.wim-thumb .iv-hint { display: none; }
.wim-free { position: absolute; top: 8px; left: 8px; z-index: 9; padding: 2px 8px; border-radius: 999px; background: #17803d; color: #fff; font: 700 11px var(--font-sans); }
.wim-tname { margin: 2px 2px 0; font: 700 .95rem/1.2 var(--font-sans); }
.wim-tmeta { margin: 0 2px; font-size: 12px; color: var(--color-muted); }
.wim-tbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wim-tbtns .btn { justify-content: center; padding-inline: 6px; font-size: 13px; }
.wim-work { display: grid; gap: 18px; }
@media (min-width: 980px) { .wim-work { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } .wim-side { position: sticky; top: 80px; } }
.wim-form { display: grid; gap: 14px; }
.wim-form fieldset { margin: 0; padding: 14px; border: 1px solid var(--color-border); border-radius: 14px; display: grid; gap: 12px; background: var(--color-surface); }
.wim-form legend { padding: 0 6px; font-weight: 700; color: var(--color-heading-blue); }
.wim-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .wim-grid2 { grid-template-columns: 1fr; } }
.wim-photo { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; }
.wim-photo img, .wim-photo .ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--color-surface-2); border: 1px solid var(--color-border); display: grid; place-items: center; font-size: 24px; }
.wim-photo .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.wim-ev { border: 1px solid var(--color-border-strong); border-radius: 14px; padding: 12px; display: grid; gap: 10px; background: var(--color-surface-2); }
.wim-ev-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.wim-add { display: flex; flex-wrap: wrap; gap: 6px; }
.wim-prev { display: grid; gap: 8px; }
.wim-frame { position: relative; margin: 0 auto; width: 100%; max-width: 380px; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; border: 8px solid #111; box-shadow: 0 20px 50px rgba(15,26,69,.25); background: #000; }
.wim-frame.desk { max-width: 760px; aspect-ratio: 16 / 10; border-width: 6px; border-radius: 12px; }
.wim-ptools { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.wim-ptools .btn { padding: 6px 10px; }
.wim-ptools select { width: auto; min-height: 36px; }
.wim-share { display: grid; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--color-border); background: var(--color-surface); }
.wim-share[hidden] { display: none; }
.wim-link { display: flex; gap: 6px; } .wim-link input { flex: 1; min-width: 0; font-weight: 600; }
.wim-qr { width: 160px; height: 160px; image-rendering: pixelated; background: #fff; padding: 8px; border-radius: 10px; border: 1px solid var(--color-border); }
.wim-dl { display: flex; flex-wrap: wrap; gap: 8px; }
.wim-note { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.wim-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(5,10,25,.7); padding: 12px; }
.wim-modal[hidden] { display: none; }
.wim-modal-box { position: relative; width: min(420px, 100%); height: min(760px, 92vh); border-radius: 20px; overflow: hidden; background: #000; }
.wim-modal-x { position: absolute; top: 8px; right: 8px; z-index: 20; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; font-size: 20px; cursor: pointer; }
.wim-modal-use { position: absolute; top: 8px; left: 8px; z-index: 20; }
.wim-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wim-saved { font-size: var(--text-xs); color: var(--color-muted); }
.wim-progress { height: 8px; border-radius: 99px; background: var(--color-surface-2); overflow: hidden; } .wim-progress i { display: block; height: 100%; width: 0; background: var(--grad-primary); transition: width .2s; }

/* =========================================================== public invitation page */
.ip-body { margin: 0; min-height: 100vh; background: #111; font-family: var(--font-sans, system-ui), sans-serif; }
.ip-stage { position: fixed; inset: 0; }
.ip-bar { position: fixed; z-index: 30; top: 10px; right: 10px; display: flex; gap: 6px; }
.ip-bar button, .ip-bar a { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #222; font-size: 18px; text-decoration: none; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.ip-sheet { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto; padding: 18px 16px 24px; border-radius: 22px 22px 0 0; background: #fff; color: #1b1b1b; box-shadow: 0 -10px 40px rgba(0,0,0,.35); }
.ip-sheet[hidden] { display: none; }
.ip-sheet h2 { margin: 0 0 10px; font-size: 1.2rem; }
.ip-sheet .x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eee; cursor: pointer; font-size: 18px; }
.ip-events { display: grid; gap: 10px; }
.ip-ev { padding: 12px; border: 1px solid #e5e7eb; border-radius: 14px; display: grid; gap: 4px; }
.ip-ev b { font-size: 1.05rem; }
.ip-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ip-acts a, .ip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #d0d7e2; border-radius: 999px; background: #fff; color: #1d4fd8; font: 600 14px system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.ip-btn.primary { background: #1d4fd8; color: #fff; border-color: #1d4fd8; }
.ip-form { display: grid; gap: 10px; }
.ip-form input, .ip-form select, .ip-form textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; }
.ip-credit { position: fixed; z-index: 30; left: 10px; top: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font: 600 12px system-ui, sans-serif; text-decoration: none; }
.ip-lock { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, #7a1424, #2a0d3a); color: #fff; text-align: center; }
.ip-lock form { display: grid; gap: 10px; width: min(340px, 100%); padding: 22px; border-radius: 18px; background: rgba(255,255,255,.1); }
.ip-lock input { min-height: 46px; padding: 8px 12px; border-radius: 10px; border: 0; font: inherit; }
.ip-lock button { min-height: 46px; border: 0; border-radius: 10px; background: #d4a537; color: #2a0d3a; font: 700 16px system-ui, sans-serif; cursor: pointer; }

/* invitation text keeps its own colours inside the site's tool box */
.iv .iv-h, .iv .iv-names, .iv .op-minimal .big { color: var(--iv-ink); }
.iv .iv-h.ev, .iv .iv-h3 { color: var(--iv-accent); }
.iv.dark .iv-h, .iv.dark .iv-names { color: var(--iv-ink); }
.op-mandap .op-center { position: absolute; z-index: 3; top: 16%; background: rgba(255,243,214,.92); border-radius: 18px; }
.op-mandap .op-center .iv-names { font-size: 1.9rem; color: #6b1010; }
.op-center { align-content: center; align-self: center; }
.iv-hint { align-self: center; justify-self: center; }
.op-chapel .op-center.low { align-self: start; }
