/* Proclick Invitation Card — styles (original work, © Proclick) */
html.pi-lock, html.pi-lock body { overflow: hidden; height: 100%; }
.pi { --bg: #f4efe6; --paper: #fffdf8; --ink: #2b2420; --muted: #7a6e63; --acc: #b08d57; --acc2: #e9dcc4; --line: rgba(176,141,87,.35);
  --script: 'Great Vibes', 'Aref Ruqaa', cursive; --serif: 'Cormorant Garamond', 'Amiri', Georgia, serif; --sans: 'Jost', 'Tajawal', system-ui, sans-serif;
  position: relative; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; text-align: center; }
.pi *, .pi *::before, .pi *::after { box-sizing: border-box; }
.pi.pi-l-ar { --script: 'Aref Ruqaa', 'Amiri', serif; --serif: 'Amiri', 'Cormorant Garamond', serif; --sans: 'Tajawal', 'Jost', sans-serif; font-size: 17px; line-height: 1.9; }
:where(.pi) button { font: inherit; color: inherit; cursor: pointer; }
.pi i, .pi b { font-style: normal; }
/* ---------- card ---------- */
.pi-card { position: relative; z-index: 1; opacity: 0; transition: opacity 1s ease .2s; }
.pi.is-opened .pi-card, .pi-card:only-child { opacity: 1; }
.pi-sec { position: relative; padding: 28px 18px; }
.pi-paper { position: relative; max-width: 520px; margin: 0 auto; background: var(--paper); padding: 46px 28px; border-radius: 4px; box-shadow: 0 18px 50px -24px rgba(0,0,0,.25); }
.pi-paper::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--line); border-radius: 2px; pointer-events: none; }
.pi-paper::after { content: ''; position: absolute; inset: 14px; border: 1px solid var(--line); opacity: .5; border-radius: 2px; pointer-events: none; }
.pi-cover { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 34px; padding-bottom: 54px; }
.pi-paper--cover { padding: 54px 26px 50px; width: 100%; }
.pi-orn { color: var(--acc); width: min(240px, 70%); margin: 0 auto 18px; }
.pi-orn svg { display: block; width: 100%; height: auto; }
.pi-orn-b { margin: 26px auto 0; transform: scaleY(-1); }
.pi-bism { font-family: 'Aref Ruqaa', 'Amiri', serif; font-size: 22px; color: var(--acc); margin: 0 0 8px; direction: rtl; }
.pi-photo { width: 170px; height: 220px; margin: 6px auto 22px; border-radius: 85px 85px 6px 6px; overflow: hidden; box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--line), 0 20px 40px -18px rgba(0,0,0,.4); }
.pi-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pi-pre { font-family: var(--sans); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.pi-l-ar .pi-pre { letter-spacing: 0; font-size: 16px; text-transform: none; }
.pi-names { font-family: var(--script); font-weight: 400; font-size: clamp(46px, 13vw, 66px); line-height: 1.1; margin: 8px 0 10px; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 0; }
.pi-l-ar .pi-names { font-size: clamp(42px, 12vw, 60px); line-height: 1.35; font-weight: 700; }
.pi-names .pi-amp, .pi-amp { font-family: var(--serif); font-style: italic; font-size: .5em; color: var(--acc); line-height: 1; margin: 2px 0; }
.pi-inv { font-size: 19px; font-style: italic; color: var(--muted); margin: 6px auto 22px; max-width: 30ch; }
.pi-l-ar .pi-inv { font-style: normal; font-size: 19px; }
.pi-date { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--sans); }
.pi-dow, .pi-my { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.pi-l-ar .pi-dow, .pi-l-ar .pi-my { letter-spacing: 0; font-size: 16px; }
.pi-dnum { display: flex; align-items: center; gap: 16px; }
.pi-dnum b { font-family: var(--serif); font-weight: 300; font-size: 64px; line-height: 1; color: var(--acc); }
.pi-dnum i { width: 54px; height: 1px; background: var(--line); }
.pi-tm { margin-top: 10px; font-size: 14px; letter-spacing: .12em; color: var(--ink); }
.pi-cue { position: absolute; left: 50%; bottom: 18px; width: 22px; height: 34px; margin-left: -11px; border: 1px solid var(--acc); border-radius: 12px; opacity: .7; }
.pi-cue::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--acc); animation: piCue 1.8s infinite; }
@keyframes piCue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 100% { opacity: 0; } }
.pi-msg p { font-size: 20px; font-style: italic; margin: 0; white-space: normal; }
.pi-l-ar .pi-msg p { font-style: normal; }
.pi-h { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 18px; color: var(--ink); line-height: 1.2; }
.pi-l-ar .pi-h { font-weight: 700; font-size: 26px; }
.pi-h::after { content: ''; display: block; width: 46px; height: 1px; background: var(--acc); margin: 12px auto 0; }
.pi-sub { color: var(--muted); font-style: italic; margin: -6px 0 18px; }
.pi-grid { display: grid; gap: 30px; }
.pi-item h3 { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--acc); margin: 6px 0 6px; }
.pi-l-ar .pi-item h3 { letter-spacing: 0; font-size: 16px; }
.pi-item p { margin: 0; }
.pi-strong { font-weight: 600; font-size: 20px; }
.pi-ico { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); align-items: center; justify-content: center; color: var(--acc); }
.pi-ico svg { width: 20px; height: 20px; }
.pi-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; min-height: 44px; padding: 10px 22px; border-radius: 40px; background: var(--acc); color: var(--paper); font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--acc); transition: transform .2s, box-shadow .2s; }
.pi-l-ar .pi-btn { letter-spacing: 0; font-size: 15px; }
.pi-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px var(--acc); }
.pi-btn-ghost { background: transparent; color: var(--acc); }
.pi-btn-solid { width: 100%; margin-top: 18px; }
.pi-btn:focus-visible, .pi input:focus-visible, .pi select:focus-visible, .pi textarea:focus-visible, .pi button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.pi-map { margin-top: 26px; border-radius: 6px; overflow: hidden; height: 220px; background: var(--acc2); }
.pi-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.pi-cd { display: flex; justify-content: center; gap: 10px; }
.pi-cd div { min-width: 66px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 6px; }
.pi-cd b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.1; color: var(--acc); font-variant-numeric: tabular-nums; }
.pi-cd span { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pi-l-ar .pi-cd span { letter-spacing: 0; font-size: 13px; }
.pi-past { font-style: italic; font-size: 20px; }
.pi-tl { list-style: none; margin: 0 auto; padding: 0; max-width: 340px; position: relative; text-align: start; }
.pi-tl::before { content: ''; position: absolute; inset-inline-start: 62px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.pi-tl li { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 10px 0; position: relative; align-items: baseline; }
.pi-tl li::before { content: ''; position: absolute; inset-inline-start: 58px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--acc); }
.pi-tl time { font-family: var(--sans); font-size: 14px; color: var(--acc); font-variant-numeric: tabular-nums; direction: ltr; }
.pi-tl span { font-size: 19px; }
.pi-gal-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pi-gal-g figure { margin: 0; aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.pi-gal-g.g1 figure, .pi-gal-g.g3 figure:first-child, .pi-gal-g.g5 figure:first-child { grid-column: 1 / -1; aspect-ratio: 4/3; }
.pi-gal-g img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pi-form { display: grid; gap: 14px; text-align: start; }
.pi-form label > span, .pi-form legend { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pi-l-ar .pi-form label > span, .pi-l-ar .pi-form legend { letter-spacing: 0; font-size: 14px; }
.pi-form fieldset { border: 0; padding: 0; margin: 0; }
.pi-form input, .pi-form select, .pi-form textarea { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 2px; border-radius: 0; -webkit-appearance: none; appearance: none; }
.pi-form select { background-image: linear-gradient(45deg, transparent 50%, var(--acc) 50%), linear-gradient(135deg, var(--acc) 50%, transparent 50%); background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.pi-l-ar .pi-form select { background-position: 14px 52%, 9px 52%; }
.pi-form textarea { border: 1px solid var(--line); border-radius: 4px; padding: 10px; resize: vertical; }
.pi-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pi-seg label { position: relative; }
.pi-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pi-seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; text-align: center; line-height: 1.25; transition: all .2s; }
.pi-seg input:checked + span { border-color: var(--acc); background: var(--acc); color: var(--paper); }
.pi-seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.pi-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pi-form-msg { color: #b3261e; margin: 0; min-height: 1em; font-size: 15px; text-align: center; }
.pi-thanks-t { font-size: 22px; font-style: italic; }
.pi-link { background: none; border: 0; color: var(--acc); text-decoration: underline; font-size: 15px; }
.pi-closing { font-size: 22px; font-style: italic; margin: 0 0 6px; }
.pi-names-s { font-family: var(--script); font-size: 42px; margin: 0; color: var(--acc); line-height: 1.3; }
.pi-foot { padding: 26px 0 40px; font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.pi-foot a { color: var(--muted); text-decoration: none; }
.pi-foot b { color: var(--ink); font-weight: 500; }
/* reveal */
.pi-rv { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.pi-rv.in { opacity: 1; transform: none; }
.pi-names.pi-write .pi-n { display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path 1.6s cubic-bezier(.6,.1,.3,1) .5s; padding: 0 .12em; }
.pi-l-ar .pi-names.pi-write .pi-n { clip-path: inset(0 0 0 100%); }
.pi-names.pi-write.in .pi-n { clip-path: inset(0 0 0 0); }
.pi-names.pi-write.in .pi-n + .pi-amp + .pi-n { transition-delay: 1.4s; }
/* sound button + badge */
.pi-sound { position: fixed; z-index: 80; top: 14px; inset-inline-end: 14px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(20,16,12,.45); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pi-sound svg { width: 22px; height: 22px; }
.pi-sound .s-x { display: none; }
.pi-sound.is-off .s-x { display: block; } .pi-sound.is-off .s-wave { display: none; }
.pi-eq { position: absolute; bottom: 7px; display: none; gap: 2px; }
.pi-eq i { width: 2px; height: 5px; background: #fff; animation: piEq .9s infinite ease-in-out alternate; }
.pi-eq i:nth-child(2) { animation-delay: .3s; } .pi-eq i:nth-child(3) { animation-delay: .6s; }
.pi-sound.is-playing svg .s-wave { animation: piPulse 1.6s infinite; }
@keyframes piEq { to { height: 1px; } }
@keyframes piPulse { 50% { opacity: .35; } }
.pi-badge { position: fixed; z-index: 81; top: 20px; left: 50%; transform: translateX(-50%); pointer-events: none; font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; padding: 6px 12px; border-radius: 20px; }
/* ambient fx */
.pi-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fx { position: absolute; top: -20px; animation: fxFall var(--d) linear infinite; opacity: .7; }
.fx-dust { width: 4px; height: 4px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 6px var(--acc); transform: scale(var(--s)); }
.fx-petals, .fx-jasmine { width: 12px; height: 9px; border-radius: 12px 0 12px 0; background: var(--fxc, #e8a0ad); }
.fx-jasmine { --fxc: #fff; box-shadow: 0 0 2px rgba(0,0,0,.15); }
.fx-embers { width: 3px; height: 3px; border-radius: 50%; background: #ffcf7a; box-shadow: 0 0 8px #ff9d2e; animation-name: fxRise; top: auto; bottom: -10px; }
.fx-stars { width: 2px; height: 2px; border-radius: 50%; background: #fff6d8; top: var(--top); animation: piTw var(--d) ease-in-out infinite; box-shadow: 0 0 6px #fff6d8; }
@keyframes fxFall { from { transform: translate(0, -20px) rotate(0); } to { transform: translate(var(--x), 110vh) rotate(540deg); } }
@keyframes fxRise { from { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } to { transform: translate(var(--x), -110vh); opacity: 0; } }
@keyframes piTw { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
/* ---------- intro shell ---------- */
.pi-intro { position: fixed; inset: 0; z-index: 60; overflow: hidden; container-type: size; transition: opacity 1.1s ease, visibility 1.1s; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.pi-intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.pi-poster { position: absolute; inset: 0; min-height: 0; height: 100%; pointer-events: none; }
.pi-poster .pi-intro { position: absolute; }
.pi-poster .pi-hint, .pi-poster .pi-skip { display: none; }
.pi-hint { position: absolute; left: 50%; bottom: max(26px, 4cqh); transform: translateX(-50%); z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; width: 90%;
  font-family: var(--sans); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--hint, #fff); opacity: 0; transition: opacity 1s .6s; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.pi-l-ar .pi-hint { letter-spacing: 0; font-size: 17px; }
.pi-intro.is-ready .pi-hint { opacity: 1; }
.pi-hint-t { animation: piBreath 2.4s ease-in-out infinite; }
@keyframes piBreath { 50% { opacity: .55; } }
.pi-dots { display: flex; gap: 10px; }
.pi-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid currentColor; transition: background .2s, transform .2s; }
.pi-dots i.on { background: currentColor; transform: scale(1.15); }
.pi-swipe { position: relative; width: 70px; height: 4px; }
.pi-swipe::before { content: ''; position: absolute; inset: 1px 0; background: currentColor; opacity: .25; border-radius: 2px; }
.pi-swipe i { position: absolute; top: -5px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: currentColor; animation: piSwipe 1.6s ease-in-out infinite alternate; }
@keyframes piSwipe { to { left: 56px; } }
.pi-skip { position: absolute; z-index: 21; top: 16px; inset-inline-start: 14px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.35); color: #fff; font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border-radius: 20px; opacity: 0; transition: opacity 1s 3s; }
.pi-l-ar .pi-skip { letter-spacing: 0; font-size: 13px; }
.pi-intro.is-ready .pi-skip { opacity: .75; }
.pi-ripple { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid rgba(255,240,200,.9); animation: piRip .8s ease-out forwards; pointer-events: none; z-index: 5; }
@keyframes piRip { to { transform: scale(7); opacity: 0; } }
.pi-spark { position: absolute; width: 8px; height: 8px; margin: -4px; pointer-events: none; z-index: 30; background: radial-gradient(circle, #fff 0 20%, #ffe8a0 35%, transparent 70%); animation: piSpark 1s ease-out forwards; }
.pi-spark::before, .pi-spark::after { content: ''; position: absolute; left: 50%; top: -6px; width: 1px; height: 20px; background: linear-gradient(transparent, #fff3c4, transparent); }
.pi-spark::after { transform: rotate(90deg); }
@keyframes piSpark { from { transform: translate(0,0) scale(var(--s)); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
.pi-conf { position: absolute; width: 7px; height: 11px; z-index: 30; pointer-events: none; animation: piConf 1.5s cubic-bezier(.1,.6,.3,1) forwards; }
@keyframes piConf { to { transform: translate(var(--dx), calc(var(--dy) + 120px)) rotate(var(--r)); opacity: 0; } }
.pi-star { position: absolute; width: var(--z); height: var(--z); border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; opacity: var(--o); animation: piTw var(--d) ease-in-out infinite; }
.pi-fall { position: absolute; top: -6%; width: 14px; height: 10px; z-index: 12; border-radius: 14px 0 14px 0; animation: piFall var(--d) linear infinite; transform: scale(var(--s)); pointer-events: none; }
.pi-fall.rosep { background: linear-gradient(135deg, #e7556e, #a3172f); }
.pi-fall.jas { background: #fff; box-shadow: 0 0 3px rgba(0,0,0,.12); width: 11px; height: 11px; border-radius: 50% 0 50% 50%; }
@keyframes piFall { from { transform: translate(0,0) rotate(0) scale(var(--s)); } to { transform: translate(var(--x), 112cqh) rotate(var(--r)) scale(var(--s)); } }

/* ===== DOOR ===== */
.pi-t-door { --bg: #efe7da; --paper: #fffcf6; --ink: #2d241d; --muted: #85766a; --acc: #a8834a; --line: rgba(168,131,74,.38); }
.pi-in-door { background: radial-gradient(120% 70% at 50% 38%, #f6efe3 0%, #e6dac6 55%, #cbb89b 100%); --hint: #5a4630; }
.pi-in-door .pi-hint { text-shadow: none; }
.pd-wall { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(120,95,60,.05) 0 1px, transparent 1px 46px), repeating-linear-gradient(90deg, rgba(120,95,60,.035) 0 1px, transparent 1px 92px); }
.pd-glow { position: absolute; left: 50%; top: 44%; width: 120cqw; height: 90cqh; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,236,190,.55), transparent); }
.pd-arch { position: absolute; left: 50%; top: 47%; width: min(72cqw, 330px); height: min(62cqh, 520px); transform: translate(-50%, -50%); padding: 14px 14px 0; border-radius: 200px 200px 0 0;
  background: linear-gradient(90deg, #d9c7a8, #f3e8d4 30%, #f8efe0 50%, #f3e8d4 70%, #d4c09f); box-shadow: 0 30px 50px -30px rgba(60,40,15,.6), inset 0 0 0 1px rgba(168,131,74,.5); }
.pd-arch::before { content: ''; position: absolute; inset: 5px 5px 0; border-radius: 200px 200px 0 0; border: 1px solid rgba(168,131,74,.6); border-bottom: 0; pointer-events: none; }
.pd-frame { position: relative; width: 100%; height: 100%; border-radius: 190px 190px 0 0; overflow: hidden; perspective: 900px; cursor: pointer; background: #1b130c; box-shadow: inset 0 0 0 2px #8a6a3a; outline: none; }
.pd-inside { position: absolute; inset: 0; background: radial-gradient(closest-side at 50% 55%, #fffaf0, #fbe9c2 45%, #e8c27d 100%); display: flex; align-items: center; justify-content: center; }
.pd-rays { position: absolute; inset: -30%; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.55) 0 6deg, transparent 6deg 18deg); opacity: 0; animation: pdRot 18s linear infinite; }
.pd-in-names { font-family: var(--script); color: #8a6326; font-size: min(11cqw, 48px); line-height: 1.2; position: relative; opacity: 0; transform: scale(.85); transition: all 1.4s ease .9s; }
.pi-l-ar .pd-in-names { font-weight: 700; }
@keyframes pdRot { to { transform: rotate(360deg); } }
.pd-leaf { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(90deg, #4a2f1b, #6b4528 20%, #5a3a22 50%, #74502f 80%, #4a2f1b); transition: transform 2.1s cubic-bezier(.55,.05,.25,1); box-shadow: inset 0 0 30px rgba(0,0,0,.45); }
.pd-leaf::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 2px, transparent 2px 7px); mix-blend-mode: multiply; }
.pd-leaf-l { left: 0; transform-origin: 0 50%; }
.pd-leaf-r { right: 0; transform-origin: 100% 50%; }
.dp { position: absolute; left: 16%; right: 16%; border: 2px solid #c9a35c; box-shadow: inset 0 0 0 4px rgba(0,0,0,.25), inset 0 0 0 5px rgba(222,186,110,.6), 0 0 0 4px rgba(0,0,0,.18); z-index: 1; }
.dp-top { top: 13%; height: 26%; border-radius: 120px 120px 2px 2px; }
.pd-leaf-l .dp-top { border-radius: 110px 0 2px 2px; left: 20%; right: 8%; } .pd-leaf-r .dp-top { border-radius: 0 110px 2px 2px; left: 8%; right: 20%; }
.dp-mid { top: 44%; height: 22%; } .dp-low { top: 71%; height: 21%; }
.pd-leaf-l .dp-mid, .pd-leaf-l .dp-low { left: 20%; right: 8%; } .pd-leaf-r .dp-mid, .pd-leaf-r .dp-low { left: 8%; right: 20%; }
.pd-knocker { position: absolute; top: 49%; width: 30px; height: 30px; border-radius: 50%; border: 4px solid #d8b05c; box-shadow: 0 3px 6px rgba(0,0,0,.5), inset 0 0 0 1px #8d6a2a; z-index: 2; }
.pd-knocker::before { content: ''; position: absolute; left: 50%; top: -14px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff1c2, #c99a3c 60%, #7b5a1a); }
.pd-leaf-l .pd-knocker { right: 12%; } .pd-leaf-r .pd-knocker { left: 12%; }
.pd-seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #1a0f07; box-shadow: 0 0 0 rgba(255,220,150,0); transition: box-shadow .6s, background .6s; z-index: 3; }
.pd-frame.is-knock { animation: pdKnock .32s ease; }
@keyframes pdKnock { 20% { transform: translateX(-3px) rotate(-.4deg); } 45% { transform: translateX(3px) rotate(.4deg); } 70% { transform: translateX(-1.5px); } }
.pd-plaque { position: absolute; left: 50%; top: calc(47% - min(31cqh, 260px) - 46px); transform: translateX(-50%); padding: 6px 22px; background: linear-gradient(180deg, #f1d58e, #b8862c); border-radius: 3px; color: #4d3410; font-family: var(--script); font-size: 24px; line-height: 1.2; box-shadow: 0 6px 14px -6px rgba(60,40,10,.6); white-space: nowrap; }
.pi-l-ar .pd-plaque { font-weight: 700; font-size: 22px; }
.pd-sconce { position: absolute; top: calc(47% - min(14cqh, 120px)); width: 22px; height: 44px; border-radius: 11px 11px 4px 4px; background: linear-gradient(90deg, #a7803e, #f2d58f, #a7803e); }
.pd-sconce-l { left: calc(50% - min(36cqw, 165px) - 40px); } .pd-sconce-r { right: calc(50% - min(36cqw, 165px) - 40px); }
.pd-sconce i { position: absolute; left: 50%; top: -30px; width: 90px; height: 90px; margin-left: -45px; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,130,.85), rgba(255,200,110,.25) 40%, transparent 70%); animation: piFlick 3s ease-in-out infinite; }
@keyframes piFlick { 0%, 100% { opacity: .95; } 40% { opacity: .75; } 60% { opacity: 1; } }
.pd-step { position: absolute; left: 50%; top: calc(47% + min(31cqh, 260px)); width: min(86cqw, 400px); height: 18px; transform: translateX(-50%); background: linear-gradient(#e9dcc4, #c7b391); border-radius: 2px; box-shadow: 0 14px 24px -10px rgba(60,40,15,.5); }
.pd-pots i { position: absolute; top: calc(47% + min(31cqh, 260px) - 74px); width: 46px; height: 74px; }
.pd-pot::before { content: ''; position: absolute; bottom: 0; left: 6px; right: 6px; height: 30px; background: linear-gradient(90deg, #b9a583, #e9dcc4, #b9a583); border-radius: 2px 2px 8px 8px; }
.pd-pot::after { content: ''; position: absolute; bottom: 26px; left: -4px; right: -4px; height: 54px; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 30% 30%, #8fae7a, #4f7343 60%, #33522d); }
.pd-pot-l { left: calc(50% - min(43cqw, 200px)); } .pd-pot-r { right: calc(50% - min(43cqw, 200px)); }
.pi-in-door.is-open .pd-seam { box-shadow: 0 0 30px 10px rgba(255,226,160,.9); background: #fff3cf; }
.pi-in-door.is-open .pd-leaf-l { transform: rotateY(-108deg); }
.pi-in-door.is-open .pd-leaf-r { transform: rotateY(108deg); }
.pi-in-door.is-open .pd-rays { opacity: .55; transition: opacity 2s 1s; }
.pi-in-door.is-open .pd-in-names { opacity: 1; transform: none; }
.pi-in-door .pd-wall { transition: transform 1.6s cubic-bezier(.6,0,.3,1), filter 1.6s; transform-origin: 50% 47%; }
.pi-in-door.is-enter .pd-wall { transform: scale(3.2); filter: brightness(1.6); }

/* ===== MAGIC LAMP ===== */
.pi-t-lamp { --bg: #0e1230; --paper: #151a3f; --ink: #f4e9cf; --muted: #b7aecf; --acc: #e0b95c; --acc2: #232a58; --line: rgba(224,185,92,.35); }
.pi-t-lamp .pi-paper { box-shadow: 0 20px 60px -20px rgba(0,0,0,.7); }
.pi-t-lamp .pi-btn { color: #151a3f; } .pi-t-lamp .pi-btn-ghost { color: var(--acc); }
.pi-t-lamp .pi-seg input:checked + span { color: #151a3f; }
.pi-t-lamp .pi-form select option { color: #111; }
.pi-in-lamp { --p: 0; background: linear-gradient(180deg, #070a22 0%, #1a1446 55%, #3a1e52 100%); }
.pl-sky { position: absolute; inset: 0; }
.pl-moon { position: absolute; top: 9cqh; inset-inline-end: 14cqw; width: 54px; height: 54px; border-radius: 50%; box-shadow: 12px -6px 0 0 #f6e7b9; filter: drop-shadow(0 0 12px rgba(246,231,185,.6)); transform: rotate(-20deg); }
.pl-city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30cqh; opacity: .95; }
.pl-stage { position: absolute; left: 50%; bottom: 17cqh; width: min(86cqw, 380px); transform: translateX(-50%); }
.pl-aura { position: absolute; left: 50%; top: 40%; width: 140%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(calc(.6 + var(--p) * .7)); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,214,120,calc(.15 + var(--p) * .7)), rgba(255,170,60,calc(var(--p) * .3)) 45%, transparent 72%); transition: transform .3s; pointer-events: none; }
.pl-lamp { position: relative; z-index: 2; cursor: grab; outline: none; filter: drop-shadow(0 0 calc(var(--p) * 26px) rgba(255,220,130,.95)) brightness(calc(1 + var(--p) * .35)); }
.pl-lamp-svg { width: 100%; height: auto; display: block; }
.pl-lamp.is-rub { animation: plRub .35s ease; }
@keyframes plRub { 30% { transform: rotate(-2deg) translateX(-3px); } 70% { transform: rotate(2deg) translateX(3px); } }
.pl-cushion { position: absolute; left: 6%; right: 6%; bottom: -14px; height: 34px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #8d1f3d, #4a0b20 70%); box-shadow: 0 10px 20px rgba(0,0,0,.5); z-index: 1; }
.pl-cushion::before, .pl-cushion::after { content: ''; position: absolute; bottom: 4px; width: 8px; height: 22px; background: linear-gradient(#e7c46c, #a7792a); border-radius: 0 0 4px 4px; }
.pl-cushion::before { left: 2%; } .pl-cushion::after { right: 2%; }
.pl-meter { position: absolute; left: 50%; bottom: calc(max(26px, 4cqh) + 64px); width: 140px; height: 3px; margin-left: -70px; background: rgba(255,255,255,.18); border-radius: 2px; overflow: hidden; }
.pl-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e7c46c, #fff1c4); box-shadow: 0 0 8px #ffd77a; }
.pi-in-lamp.is-rubbed .pl-meter, .pi-in-lamp.is-rubbed .pi-hint { opacity: 0; transition: opacity .5s; }
.pl-smoke { position: absolute; left: calc(50% - min(43cqw, 190px) * .84); bottom: calc(17cqh + min(86cqw, 380px) * .34); width: 0; height: 0; z-index: 3; }
.pl-smoke i { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, rgba(170,150,255,.75), rgba(110,130,230,.35) 50%, transparent 70%); filter: blur(4px); opacity: 0; animation: plSmoke 2.4s ease-out forwards; }
@keyframes plSmoke { 0% { opacity: 0; transform: translate(0,0) scale(.3); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(calc(var(--x) + 34cqw), var(--y)) scale(var(--s)); } }
.pl-genie { position: absolute; left: 50%; top: 6cqh; width: min(78cqw, 330px); transform: translateX(-50%) translateY(16cqh) scale(.15); transform-origin: 30% 100%; opacity: 0; filter: blur(10px); z-index: 4; transition: transform 1.6s cubic-bezier(.2,.8,.2,1), opacity 1.2s, filter 1.4s; pointer-events: none; }
.pl-genie-svg { width: 100%; height: auto; display: block; opacity: .96; filter: drop-shadow(0 0 18px rgba(170,170,255,.7)) drop-shadow(0 0 40px rgba(120,100,255,.35)); }
.pi-in-lamp.is-genie .pl-genie { opacity: 1; filter: none; transform: translateX(-50%) translateY(0) scale(1); }
.pi-in-lamp.is-genie .pl-genie-svg { animation: plFloat 4s ease-in-out 1.6s infinite; }
.pi-in-lamp.is-genie .pl-lamp { filter: drop-shadow(0 0 20px rgba(255,220,130,.9)) brightness(1.2); }
@keyframes plFloat { 50% { transform: translateY(-8px); } }
.g-tail { animation: plTail 3s ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes plTail { to { transform: skewX(6deg); } }
.pl-scroll { position: absolute; left: 50%; top: 55%; width: 76%; transform: translateX(-50%); pointer-events: auto; }
.pl-rod { display: block; height: 14px; border-radius: 7px; background: linear-gradient(#e9c470, #8a5f1c); box-shadow: 0 3px 6px rgba(0,0,0,.4); position: relative; z-index: 2; margin: 0 -6%; }
.pl-paper { max-height: 0; overflow: hidden; background: linear-gradient(90deg, #e9d9b0, #fbf1d6 15%, #fff8e6 50%, #fbf1d6 85%, #e9d9b0); padding: 0 16px; transition: max-height 1.6s cubic-bezier(.4,0,.2,1), padding 1.6s; color: #4a3414; box-shadow: inset 0 8px 10px -8px rgba(0,0,0,.4), inset 0 -8px 10px -8px rgba(0,0,0,.4); }
.pi-in-lamp.is-scroll .pl-paper { max-height: 300px; padding: 16px; }
.pl-s-names { font-family: var(--script); font-size: min(9cqw, 40px); line-height: 1.25; margin: 0; }
.pi-l-ar .pl-s-names { font-weight: 700; }
.pl-s-line { font-style: italic; margin: 4px 0 10px; font-size: 16px; }
.pl-open { background: #7a1432; color: #fff3d6; border: 1px solid #e0b95c; border-radius: 30px; padding: 9px 18px; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; animation: piBreath 2s infinite; }
.pi-l-ar .pl-open { letter-spacing: 0; font-size: 15px; }
.pl-tip { opacity: calc(var(--p)); }
.pi-spark.gold { background: radial-gradient(circle, #fff 0 20%, #ffd96a 40%, transparent 70%); }

/* ===== ENVELOPE / WAX SEAL ===== */
.pi-t-envelope { --bg: #f3e6e1; --paper: #fffaf8; --ink: #4a3532; --muted: #8c736d; --acc: #9c3348; --acc2: #f1dcd8; --line: rgba(156,51,72,.28); }
.pi-in-envelope { background: radial-gradient(120% 80% at 50% 40%, #fbf3ef, #efd9d2 60%, #dcbcb2); --hint: #6e3a3f; }
.pi-in-envelope .pi-hint { text-shadow: none; }
.pe-desk { position: absolute; inset: 0; background-image: radial-gradient(rgba(140,80,70,.06) 1px, transparent 1px); background-size: 6px 6px; }
.pe-sprig { position: absolute; width: 46cqw; height: 46cqw; max-width: 260px; max-height: 260px; opacity: .55;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23a86b6b' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M10 190 C 60 140, 100 110, 190 20'/%3E%3C/g%3E%3Cg fill='%23c99a95'%3E%3Cellipse cx='50' cy='150' rx='14' ry='6' transform='rotate(-60 50 150)'/%3E%3Cellipse cx='70' cy='140' rx='14' ry='6' transform='rotate(20 70 140)'/%3E%3Cellipse cx='86' cy='112' rx='14' ry='6' transform='rotate(-60 86 112)'/%3E%3Cellipse cx='108' cy='104' rx='14' ry='6' transform='rotate(20 108 104)'/%3E%3Cellipse cx='124' cy='76' rx='14' ry='6' transform='rotate(-60 124 76)'/%3E%3Cellipse cx='146' cy='68' rx='14' ry='6' transform='rotate(20 146 68)'/%3E%3Cellipse cx='160' cy='42' rx='12' ry='5' transform='rotate(-60 160 42)'/%3E%3C/g%3E%3C/svg%3E"); }
.pe-sprig-a { left: -6cqw; bottom: -4cqh; } .pe-sprig-b { right: -6cqw; top: -2cqh; transform: rotate(180deg); }
.pe-env { position: absolute; left: 50%; top: 48%; width: min(88cqw, 420px); aspect-ratio: 1.42; transform: translate(-50%, -50%); perspective: 1200px; transition: transform 1s cubic-bezier(.6,0,.3,1), opacity .8s; }
.pe-back { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(160deg, #7d2a3b, #5e1a2a); box-shadow: 0 30px 50px -24px rgba(80,30,30,.55); }
.pe-back::after { content: ''; position: absolute; inset: 8px; border-radius: 3px; opacity: .25; background: repeating-linear-gradient(45deg, #e7b7b7 0 2px, transparent 2px 12px); }
.pe-letter { position: absolute; left: 6%; right: 6%; top: 6%; height: 88%; background: #fffaf3; border-radius: 3px; z-index: 2; transition: transform 1.3s cubic-bezier(.3,.7,.2,1), z-index 0s; box-shadow: 0 6px 16px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; padding: 8%; }
.pe-letter::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(156,51,72,.3); }
.pe-letter-in { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pe-l-pre { font-family: var(--sans); font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: #9c7a72; }
.pi-l-ar .pe-l-pre { letter-spacing: 0; font-size: 12px; }
.pe-l-names { font-family: var(--script); font-size: min(8.4cqw, 40px); color: #4a3532; line-height: 1.2; }
.pi-l-ar .pe-l-names { font-weight: 700; }
.pe-l-orn { width: 70px; height: 1px; background: #c9a07a; margin-top: 6px; }
.pe-pocket { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pe-pocket i { position: absolute; inset: 0; }
.pe-side-l { background: linear-gradient(100deg, #f2d9d3, #e9c6be); clip-path: polygon(0 0, 52% 55%, 0 100%); }
.pe-side-r { background: linear-gradient(260deg, #f2d9d3, #e9c6be); clip-path: polygon(100% 0, 48% 55%, 100% 100%); }
.pe-bottom { background: linear-gradient(0deg, #f6e2dd, #efd0c9); clip-path: polygon(0 100%, 50% 46%, 100% 100%); filter: drop-shadow(0 -2px 3px rgba(0,0,0,.08)); }
.pe-to { position: absolute; left: 0; right: 0; bottom: 5%; font-family: var(--script); font-size: min(4.6cqw, 22px); color: #8c4a50; opacity: .9; }
.pi-l-ar .pe-to { font-weight: 700; }
.pe-flap { position: absolute; left: 0; right: 0; top: 0; height: 60%; z-index: 4; transform-origin: 50% 0; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.5,0,.3,1), z-index 0s .5s; }
.pe-flap i { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pe-flap-out { background: linear-gradient(180deg, #f4dcd6, #e6c1b9); filter: drop-shadow(0 3px 4px rgba(0,0,0,.15)); }
.pe-flap-in { background: linear-gradient(0deg, #7d2a3b, #a24456); transform: rotateX(180deg); }
.pe-seal { position: absolute; left: 50%; top: 60%; width: min(25cqw, 112px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 6; border: 0; background: none; padding: 0; outline: none; --seal: #8c1d2e; }
.pe-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 5px 6px rgba(60,10,20,.45)); transition: transform 1.1s cubic-bezier(.4,0,.6,1), opacity 1s; }
.pe-seal-a { clip-path: polygon(0 0, 54% 0, 46% 40%, 56% 62%, 44% 100%, 0 100%); }
.pe-seal-b { clip-path: polygon(54% 0, 100% 0, 100% 100%, 44% 100%, 56% 62%, 46% 40%); }
.wx-txt { font-family: 'Great Vibes', 'Aref Ruqaa', serif; font-size: 30px; fill: rgba(255,225,205,.75); stroke: rgba(60,0,10,.35); stroke-width: .6; }
.pe-ring { position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(156,51,72,.5); animation: peRing 1.8s ease-out infinite; }
@keyframes peRing { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.pi-in-envelope.is-broken .pe-ring { display: none; }
.pi-in-envelope.is-broken .pe-seal-a { transform: translate(-60%, 150%) rotate(-60deg); opacity: 0; }
.pi-in-envelope.is-broken .pe-seal-b { transform: translate(60%, 160%) rotate(70deg); opacity: 0; }
.pi-in-envelope.is-flap .pe-flap { transform: rotateX(180deg); z-index: 1; }
.pi-in-envelope.is-letter .pe-letter { transform: translateY(-58%); z-index: 2; }
.pi-in-envelope.is-zoom .pe-env { transform: translate(-50%, -50%) translateY(16cqh) scale(2.4); opacity: 0; }

/* ===== RING BOX ===== */
.pi-t-ringbox { --bg: #172443; --paper: #fbf8f1; --ink: #1f2a44; --muted: #6c7389; --acc: #b18a4a; --acc2: #e8e2d4; --line: rgba(177,138,74,.38); }
.pi-in-ringbox { background: radial-gradient(110% 80% at 50% 45%, #f7ece0, #e8d2c0 50%, #c9a99a 100%); --hint: #4a3a3a; }
.pi-in-ringbox .pi-hint { text-shadow: none; }
.pr-room { position: absolute; inset: 0; }
.pr-bokeh { position: absolute; inset: 0; background: radial-gradient(circle at 15% 25%, rgba(255,255,255,.7) 0 18px, transparent 40px), radial-gradient(circle at 80% 18%, rgba(255,240,215,.8) 0 26px, transparent 54px), radial-gradient(circle at 85% 70%, rgba(255,255,255,.55) 0 14px, transparent 34px), radial-gradient(circle at 12% 78%, rgba(255,232,210,.7) 0 22px, transparent 48px), radial-gradient(circle at 60% 88%, rgba(255,255,255,.5) 0 10px, transparent 26px); filter: blur(3px); animation: prBok 12s ease-in-out infinite alternate; }
@keyframes prBok { to { transform: translate(10px, -14px) scale(1.04); } }
.pr-rays { position: absolute; left: 50%; top: 50%; width: 170cqw; height: 170cqw; margin: -85cqw 0 0 -85cqw; background: repeating-conic-gradient(rgba(255,255,255,.5) 0 5deg, transparent 5deg 15deg); border-radius: 50%; -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent); opacity: 0; transition: opacity 1.2s; animation: pdRot 30s linear infinite; }
.pi-in-ringbox.is-shine .pr-rays { opacity: .8; }
.pr-box { position: absolute; left: 50%; top: 56%; width: min(56cqw, 250px); height: min(40cqw, 180px); transform: translate(-50%, -50%); cursor: pointer; outline: none; transition: transform 1.4s cubic-bezier(.6,0,.3,1), opacity 1s; }
.pr-base { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; }
.pr-base-front { position: absolute; inset: 22% 0 0; border-radius: 4px 4px 14px 14px; background: linear-gradient(180deg, #24365e, #13203d 60%, #0b142a); box-shadow: 0 26px 30px -16px rgba(30,20,40,.65), inset 0 2px 0 rgba(255,255,255,.12); }
.pr-base-front::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #8d6a2a, #f2d58f, #8d6a2a); }
.pr-cushion { position: absolute; left: 4%; right: 4%; top: 0; height: 34%; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #fffdf8, #e6dfd2 70%); opacity: 0; transition: opacity .6s .3s; }
.pr-cushion::after { content: ''; position: absolute; left: 30%; right: 30%; top: 45%; height: 3px; border-radius: 3px; background: rgba(0,0,0,.25); }
.pr-ringwrap { position: absolute; left: 50%; bottom: 70%; width: 52%; transform: translateX(-50%) scale(.6); transform-origin: 50% 100%; opacity: 0; transition: transform 1s cubic-bezier(.3,1.4,.4,1) .4s, opacity .6s .4s; z-index: 2; }
.pr-ring { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.pr-tw { position: absolute; width: 22px; height: 22px; opacity: 0; background: radial-gradient(circle, #fff 0 15%, transparent 60%); }
.pr-tw::before, .pr-tw::after { content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; background: linear-gradient(transparent, #fff, transparent); }
.pr-tw::after { transform: rotate(90deg); }
.pr-tw1 { left: 6%; top: 2%; } .pr-tw2 { right: 4%; top: 18%; } .pr-tw3 { left: 46%; top: -12%; }
.pi-in-ringbox.is-shine .pr-tw { animation: prTw 1.4s ease-in-out infinite; }
.pi-in-ringbox.is-shine .pr-tw2 { animation-delay: .45s; } .pi-in-ringbox.is-shine .pr-tw3 { animation-delay: .9s; }
@keyframes prTw { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(45deg); } }
.pr-lid { position: absolute; left: -2%; right: -2%; bottom: 52%; height: 44%; transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.6,0,.4,1); z-index: 3; }
.pr-lid-front { position: absolute; inset: 30% 0 0; border-radius: 14px 14px 4px 4px; background: linear-gradient(180deg, #2c4272, #182a50 70%, #101e3c); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.pr-lid-front::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #8d6a2a, #f2d58f, #8d6a2a); }
.pr-lid-top { position: absolute; left: 3%; right: 3%; top: 0; height: 40%; border-radius: 50%; background: radial-gradient(ellipse at 50% 60%, #3a568e, #1b2e57); }
.pr-lining { position: absolute; left: 1%; right: 1%; bottom: 52%; height: 70%; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .7s cubic-bezier(.3,.7,.3,1) .6s; border-radius: 16px 16px 2px 2px; background: linear-gradient(180deg, #213563, #182a50); padding: 9% 6% 0; z-index: 1; }
.pr-lining i { display: block; height: 100%; border-radius: 10px 10px 0 0; background: radial-gradient(ellipse at 50% 30%, #ffffff, #ece4d6 70%); box-shadow: inset 0 0 0 2px #f2d58f; }
.pi-in-ringbox.is-open .pr-lid { transform: scaleY(0); }
.pi-in-ringbox.is-open .pr-lining { transform: scaleY(1); }
.pi-in-ringbox.is-open .pr-cushion { opacity: 1; }
.pi-in-ringbox.is-open .pr-ringwrap { opacity: 1; transform: translateX(-50%) scale(1); }
.pi-in-ringbox.is-float .pr-ringwrap { transform: translateX(-50%) translateY(-18cqh) scale(1.9); transition: transform 1.6s cubic-bezier(.4,0,.2,1); }
.pi-in-ringbox.is-float .pr-box { transform: translate(-50%, -50%) translateY(30cqh); opacity: 0; transition-delay: .3s; }
.pr-names { position: absolute; left: 0; right: 0; top: 13cqh; font-family: var(--script); font-size: min(11cqw, 50px); color: #5a3d32; margin: 0; line-height: 1.2; }
.pi-l-ar .pr-names { font-weight: 700; }

/* ===== CURTAIN ===== */
.pi-t-curtain { --bg: #0f0b0b; --paper: #19120f; --ink: #f3e6cf; --muted: #b9a68f; --acc: #d2aa55; --acc2: #2a1f1a; --line: rgba(210,170,85,.32); }
.pi-t-curtain .pi-btn { color: #19120f; } .pi-t-curtain .pi-btn-ghost { color: var(--acc); }
.pi-t-curtain .pi-seg input:checked + span { color: #19120f; }
.pi-t-curtain .pi-form select option { color: #111; }
.pi-in-curtain { --o: 0; background: #120807; }
.pc-theatre { position: absolute; inset: 0; cursor: ew-resize; }
.pc-stage { position: absolute; inset: 0; background: radial-gradient(70% 50% at 50% 45%, #3a2418, #160d09 70%); overflow: hidden; }
.pc-spot { position: absolute; left: 50%; top: -10%; width: 90cqw; height: 110cqh; transform: translateX(-50%); background: radial-gradient(50% 60% at 50% 55%, rgba(255,236,190,.35), transparent 70%); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); opacity: calc(.4 + var(--o) * .6); }
.pc-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 22cqh; background: linear-gradient(#3a2414, #1d110a); }
.pc-floor::before { content: ''; position: absolute; left: 50%; top: 10%; width: 60cqw; height: 40%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,226,170,.35), transparent); }
.pc-stage-in { position: absolute; left: 0; right: 0; top: 34%; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: calc(var(--o) * 1.2 - .2); transform: scale(calc(.9 + var(--o) * .1)); }
.pc-st-pre { font-family: var(--sans); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #d9c29a; }
.pi-l-ar .pc-st-pre { letter-spacing: 0; font-size: 16px; }
.pc-st-names { font-family: var(--script); font-size: min(13cqw, 60px); line-height: 1.2; color: #f1d58e; text-shadow: 0 0 20px rgba(241,213,142,.45); padding: 0 6%; }
.pi-l-ar .pc-st-names { font-weight: 700; }
.pc-cur { position: absolute; top: 0; bottom: 0; width: 52%; z-index: 3; will-change: transform; background:
  linear-gradient(180deg, rgba(255,190,170,.18), transparent 30%, rgba(0,0,0,.35)),
  repeating-linear-gradient(90deg, #5c0b14 0, #8e1724 3.5%, #b3283a 6%, #8e1724 8.5%, #5c0b14 12%); box-shadow: 0 0 40px rgba(0,0,0,.7); }
.pc-cur::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: linear-gradient(90deg, #a77d2e, #f1d58e, #a77d2e); background-size: 18px 100%; opacity: .9; }
.pc-cur-l { left: 0; transform-origin: 0 50%; transform: translateX(calc(var(--o) * -62%)) scaleX(calc(1 - var(--o) * .55)); }
.pc-cur-r { right: 0; transform-origin: 100% 50%; transform: translateX(calc(var(--o) * 62%)) scaleX(calc(1 - var(--o) * .55)); }
.pi-in-curtain.is-anim .pc-cur { transition: transform 1.5s cubic-bezier(.6,0,.2,1); }
.pi-in-curtain.is-anim .pc-stage-in, .pi-in-curtain.is-anim .pc-spot { transition: all 1.5s; }
.pc-tie { position: absolute; top: 48%; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff1c2, #c99a3c 55%, #6e4f14); opacity: var(--o); }
.pc-cur-l .pc-tie { right: 6%; } .pc-cur-r .pc-tie { left: 6%; }
.pc-valance { position: absolute; left: -2%; right: -2%; top: 0; height: 13cqh; z-index: 4; background:
  radial-gradient(circle at 50% 0, transparent 58%, #7b111d 60%) 0 100%/14% 46% repeat-x, linear-gradient(#8e1724, #5c0b14); box-shadow: 0 10px 20px rgba(0,0,0,.5); }
.pc-valance::after { content: ''; position: absolute; left: 0; right: 0; bottom: 5cqh; height: 4px; background: linear-gradient(90deg, #a77d2e, #f1d58e, #a77d2e); }
.pi-in-curtain.is-open .pc-st-names { animation: pcGlow 2s ease-in-out infinite alternate; }
@keyframes pcGlow { to { text-shadow: 0 0 34px rgba(241,213,142,.8); } }
.pi-in-curtain .pc-stage { transition: transform 1.4s cubic-bezier(.6,0,.3,1); transform-origin: 50% 45%; }
.pi-in-curtain.is-enter .pc-stage { transform: scale(1.8); }
.pi-in-curtain.is-open .pi-hint { opacity: 0; transition-delay: 0s; }

/* ===== SCRATCH ===== */
.pi-t-scratch { --bg: #f6f1e7; --paper: #fffefa; --ink: #26221c; --muted: #7d7466; --acc: #b38a3a; --acc2: #efe6d2; --line: rgba(179,138,58,.38); }
.pi-in-scratch { background: radial-gradient(120% 90% at 50% 40%, #fffdf7, #efe5d1); --hint: #6b5328; }
.pi-in-scratch .pi-hint { text-shadow: none; }
.ps-bg { position: absolute; inset: 0; }
.ps-conf { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(201,154,60,.35) 1.4px, transparent 1.6px), radial-gradient(circle, rgba(201,154,60,.22) 1px, transparent 1.2px); background-size: 44px 52px, 29px 31px; background-position: 0 0, 13px 17px; }
.ps-card { position: absolute; left: 50%; top: 47%; width: min(86cqw, 380px); transform: translate(-50%, -50%); background: #fffefa; padding: 34px 20px 28px; box-shadow: 0 30px 60px -30px rgba(80,60,20,.45); border-radius: 3px; display: flex; flex-direction: column; align-items: center; }
.ps-card::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(179,138,58,.5); pointer-events: none; }
.ps-orn { width: 120px; height: 14px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cg fill='none' stroke='%23b38a3a' stroke-width='1'%3E%3Cpath d='M0 7h46M74 7h46'/%3E%3Cpath d='M60 1l6 6-6 6-6-6z' fill='%23b38a3a'/%3E%3Ccircle cx='50' cy='7' r='2'/%3E%3Ccircle cx='70' cy='7' r='2'/%3E%3C/g%3E%3C/svg%3E"); }
.ps-orn-b { margin-top: 14px; }
.ps-save { font-family: var(--sans); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: #8a6a2e; margin: 14px 0 0; }
.pi-l-ar .ps-save { letter-spacing: 0; font-size: 16px; }
.ps-names { font-family: var(--script); font-size: min(10.5cqw, 46px); line-height: 1.2; margin: 4px 0 16px; color: #2f2a22; }
.pi-l-ar .ps-names { font-weight: 700; }
.ps-row { display: flex; gap: 12px; justify-content: center; direction: ltr; }
.ps-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ps-cell small { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #8b8170; }
.pi-l-ar .ps-cell small { letter-spacing: 0; font-size: 13px; }
.ps-coin { position: relative; width: min(23cqw, 96px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fbf6ea; box-shadow: inset 0 0 0 1px rgba(179,138,58,.45), 0 6px 14px -8px rgba(80,60,20,.5); outline: none; }
.ps-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: min(7.5cqw, 32px); color: #8a6a2e; font-weight: 500; text-transform: uppercase; }
.ps-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; transition: opacity .7s; }
.ps-coin.is-clear .ps-cv { opacity: 0; pointer-events: none; }
.ps-coin.is-clear { animation: psPop .6s ease; }
@keyframes psPop { 40% { transform: scale(1.1); } }
.ps-time { font-family: var(--sans); letter-spacing: .14em; font-size: 14px; margin: 14px 0 0; opacity: 0; transition: opacity .8s; color: #5c4a28; }
.ps-open { margin-top: 12px; padding: 11px 22px; border-radius: 30px; border: 1px solid #b38a3a; background: linear-gradient(135deg, #d9b25c, #b38a3a); color: #fff; font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transform: translateY(8px); pointer-events: none; transition: all .7s .2s; }
.pi-l-ar .ps-open { letter-spacing: 0; font-size: 15px; }
.pi-in-scratch.is-all .ps-time { opacity: 1; }
.pi-in-scratch.is-all .ps-open { opacity: 1; transform: none; pointer-events: auto; animation: piBreath 2s 1s infinite; }
.pi-in-scratch.is-all .pi-hint { opacity: 0; transition-delay: 0s; }
.ps-burst { position: absolute; inset: 0; pointer-events: none; }
.pi-poster .ps-cv { background: radial-gradient(circle at 35% 30%, #fff1c4, #d6a944 45%, #b8862c 80%); }

/* ===== ROSE ===== */
.pi-t-rose { --bg: #f9e9ec; --paper: #fff8f9; --ink: #5a2a34; --muted: #9a6b74; --acc: #b9475e; --acc2: #f6dde2; --line: rgba(185,71,94,.28); --fxc: #e48a9c; }
.pi-in-rose { background: radial-gradient(100% 70% at 50% 35%, #fff6f7, #f6d4da 55%, #e9b3be); --hint: #7a3042; }
.pi-in-rose .pi-hint { text-shadow: none; }
.prs-bg { position: absolute; inset: 0; }
.prs-light { position: absolute; left: 50%; top: -20%; width: 120cqw; height: 90cqh; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,255,255,.75), transparent); }
.prs-bokeh { position: absolute; inset: 0; background: radial-gradient(circle at 18% 22%, rgba(255,255,255,.8) 0 10px, transparent 26px), radial-gradient(circle at 82% 30%, rgba(255,220,228,.9) 0 16px, transparent 36px), radial-gradient(circle at 74% 78%, rgba(255,255,255,.6) 0 8px, transparent 22px), radial-gradient(circle at 20% 70%, rgba(255,230,236,.9) 0 14px, transparent 30px); filter: blur(2px); animation: prBok 10s ease-in-out infinite alternate; }
.prs-wrap { position: absolute; left: 50%; top: 54%; width: min(84cqw, 360px); transform: translate(-50%, -50%); cursor: pointer; outline: none; transition: transform 1.6s cubic-bezier(.3,.7,.2,1), opacity 1s; }
.prs-svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 18px 20px rgba(120,30,50,.25)); }
.prs-p { transform-box: fill-box; transform-origin: 50% 100%; transform: rotate(var(--c)) scale(calc(var(--sc) * .62), calc(var(--sc) * .9)); transition: transform 1.5s cubic-bezier(.3,.8,.25,1) var(--dl); }
.pi-in-rose.is-bloom .prs-p { transform: rotate(var(--o)) scale(calc(var(--sc) * 1.15), calc(var(--sc) * .95)); }
.prs-head { transition: transform 1.5s; }
.prs-sepal { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1.2s; }
.pi-in-rose.is-bloom .prs-sepal { transform: scaleY(.7) scaleX(1.2); }
.prs-wrap:not(.x) { animation: prsSway 4s ease-in-out infinite; }
@keyframes prsSway { 50% { transform: translate(-50%, -50%) rotate(1.5deg); } }
.prs-halo { position: absolute; left: 50%; top: 22%; width: 160%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.4); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(255,210,220,.25) 50%, transparent); opacity: 0; transition: all 1.6s; pointer-events: none; z-index: -1; }
.pi-in-rose.is-bloom .prs-halo { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.prs-names { position: absolute; left: 0; right: 0; top: 11cqh; margin: 0; font-family: var(--script); font-size: min(12cqw, 54px); color: #7a2a3c; line-height: 1.2; opacity: 0; transform: translateY(10px); transition: all 1.2s; }
.pi-l-ar .prs-names { font-weight: 700; }
.pi-in-rose.is-names .prs-names { opacity: 1; transform: none; }
.pi-in-rose.is-fall .prs-wrap { transform: translate(-50%, -50%) scale(1.4); opacity: 0; transition-delay: .6s; animation: none; }
.prs-petals { position: absolute; inset: 0; pointer-events: none; }
.pi-in-rose.is-bloom .pi-hint { opacity: 0; transition-delay: 0s; }

/* ===== MARBLE GATES / JASMINE ===== */
.pi-t-gates { --bg: #f1eee8; --paper: #fdfcfa; --ink: #34322e; --muted: #7c776e; --acc: #b0904f; --acc2: #ebe5da; --line: rgba(176,144,79,.36); }
.pi-in-gates { background: #e9e5de; --hint: #5b4a2c; }
.pi-in-gates .pi-hint { text-shadow: 0 0 10px rgba(255,255,255,.9); }
.pg-hall { position: absolute; inset: 0; perspective: 1000px; }
.pg-corridor { position: absolute; inset: 0; background: linear-gradient(#f7f3ec, #e4dccd); overflow: hidden; transition: transform 2.8s cubic-bezier(.5,0,.3,1); transform-origin: 50% 46%; }
.pg-arch { position: absolute; left: 50%; top: 46%; width: 70cqw; height: 72cqh; border: 18px solid #f6f2ea; border-bottom: 0; border-radius: 50cqw 50cqw 0 0; transform: translate(-50%, -50%) scale(var(--k)); box-shadow: 0 0 0 1px rgba(176,144,79,.5), inset 0 0 0 1px rgba(176,144,79,.5), 0 20px 40px rgba(0,0,0,.08); }
.pg-a0 { --k: .82; z-index: 4; } .pg-a1 { --k: .62; z-index: 3; opacity: .95; } .pg-a2 { --k: .45; z-index: 2; opacity: .9; } .pg-a3 { --k: .32; z-index: 1; opacity: .85; }
.pg-end { position: absolute; left: 50%; top: 52%; width: 18cqw; height: 26cqh; transform: translate(-50%, -50%); border-radius: 10cqw 10cqw 0 0; background: radial-gradient(closest-side, #fffef8, #fff3d6 60%, #f2dcae); box-shadow: 0 0 60px 30px rgba(255,246,220,.9); }
.pg-names { position: absolute; left: 0; right: 0; top: 38%; font-family: var(--script); font-size: min(12cqw, 52px); line-height: 1.2; color: #7a5c22; opacity: 0; transition: opacity 1.4s 1.2s; z-index: 6; padding: 0 8%; text-shadow: 0 0 18px #fff; }
.pi-l-ar .pg-names { font-weight: 700; }
.pg-garland { position: absolute; left: -4%; right: -4%; top: 4%; height: 26%; pointer-events: none; }
.pj { position: absolute; left: calc(var(--a) * 100%); top: calc(sin(var(--a) * 3.1416) * 70% + 5%); width: 12px; height: 12px; transform: rotate(var(--r)) scale(var(--s)); background:
  radial-gradient(circle at 50% 50%, #f3d27a 0 2px, transparent 2.5px),
  radial-gradient(circle at 50% 12%, #fff 0 3px, transparent 3.4px), radial-gradient(circle at 88% 40%, #fff 0 3px, transparent 3.4px), radial-gradient(circle at 74% 86%, #fff 0 3px, transparent 3.4px), radial-gradient(circle at 26% 86%, #fff 0 3px, transparent 3.4px), radial-gradient(circle at 12% 40%, #fff 0 3px, transparent 3.4px);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.pg-garland::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 80%; border-bottom: 2px solid #7f9b6a; border-radius: 0 0 50% 50%; opacity: .7; }
.pg-front { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.pg-col { position: absolute; top: 12cqh; bottom: 0; width: 15cqw; max-width: 80px; background: repeating-linear-gradient(90deg, #f7f4ee 0 6px, #e6e0d5 6px 8px, #fbf9f5 8px 14px), linear-gradient(#fff, #e9e3d8); box-shadow: inset -6px 0 12px rgba(0,0,0,.08), 0 0 20px rgba(0,0,0,.1); }
.pg-col::before { content: ''; position: absolute; left: -8px; right: -8px; top: -16px; height: 18px; background: linear-gradient(#fff, #e6dfd2); border-bottom: 2px solid #c9ad74; }
.pg-col-l { left: 0; } .pg-col-r { right: 0; }
.pg-top { position: absolute; left: 0; right: 0; top: 0; height: 13cqh; background: linear-gradient(#fdfbf8, #ebe5da); border-bottom: 3px solid #c9ad74; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.pg-top b { position: absolute; left: 50%; bottom: -12px; width: 28px; height: 28px; margin-left: -14px; transform: rotate(45deg); background: linear-gradient(135deg, #f2d58f, #a77d2e); }
.pg-garland-front { top: 11cqh; left: 4%; right: 4%; height: 12cqh; z-index: 2; }
.pg-doorway { position: absolute; left: min(15cqw, 80px); right: min(15cqw, 80px); top: 13cqh; bottom: 0; pointer-events: auto; cursor: pointer; perspective: 900px; outline: none; }
.pg-gate { position: absolute; top: 0; bottom: 0; width: 50%; transition: transform 2s cubic-bezier(.55,.05,.25,1); filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.pg-gate-svg { width: 100%; height: 100%; display: block; }
.pg-gate-l { left: 0; transform-origin: 0 50%; } .pg-gate-r { right: 0; transform-origin: 100% 50%; }
.pi-in-gates.is-open .pg-gate-l { transform: rotateY(-100deg); }
.pi-in-gates.is-open .pg-gate-r { transform: rotateY(100deg); }
.pi-in-gates.is-open .pg-names { opacity: 1; }
.pi-in-gates.is-walk .pg-corridor { transform: scale(2.6); }
.pi-in-gates.is-walk .pg-front { transform: scale(3); opacity: 0; transition: transform 2.2s cubic-bezier(.5,0,.3,1), opacity 1.6s .4s; }
.pi-in-gates.is-open .pi-hint { opacity: 0; transition-delay: 0s; }
.pg-petals { position: absolute; inset: 0; z-index: 7; pointer-events: none; }

/* ===== CANDLES ===== */
.pi-t-candles { --bg: #1b130d; --paper: #fbf4e7; --ink: #3b2a1c; --muted: #85705a; --acc: #b9853b; --acc2: #efe2c9; --line: rgba(185,133,59,.36); }
.pi-in-candles { --lit: 0; background: radial-gradient(90% 60% at 50% 62%, #5a3a1c, #1a0f08 70%, #0b0603); }
.pk-room { position: absolute; inset: 0; cursor: pointer; }
.pk-dark { position: absolute; inset: 0; background: rgba(5,2,0,.62); opacity: calc(1 - var(--lit) * .9); transition: opacity .8s; pointer-events: none; z-index: 2; }
.pk-names { position: absolute; left: 0; right: 0; top: 16cqh; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--script); font-size: min(12cqw, 54px); line-height: 1.2; color: #f4d595; opacity: calc(var(--lit) * .9 + .05); text-shadow: 0 0 calc(var(--lit) * 24px) rgba(255,190,90,.7); transition: all .8s; z-index: 3; padding: 0 6%; }
.pi-l-ar .pk-names { font-weight: 700; }
.pk-pre { font-family: var(--sans); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #e2c48f; }
.pi-l-ar .pk-pre { letter-spacing: 0; font-size: 16px; }
.pk-tray { position: absolute; left: 50%; bottom: 20cqh; width: min(84cqw, 360px); height: 150px; transform: translateX(-50%); display: flex; align-items: flex-end; justify-content: center; gap: 4%; z-index: 3; }
.pk-plate { position: absolute; left: -6%; right: -6%; bottom: -14px; height: 22px; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, #f6d98e, #a8792c 60%, #5b3d10); box-shadow: 0 10px 24px rgba(0,0,0,.6); z-index: -1; }
.pk-c { position: relative; width: 15%; height: var(--h); border: 0; background: none; padding: 0; outline: none; }
.pk-body { position: absolute; inset: 0; border-radius: 5px 5px 3px 3px; background: linear-gradient(90deg, #d9cbb2, #fffaf0 40%, #f3e9d6 70%, #cbbb9e); box-shadow: inset 0 -10px 16px rgba(120,80,30,.15); }
.pk-body::before { content: ''; position: absolute; left: 0; right: 0; top: -5px; height: 10px; border-radius: 50%; background: radial-gradient(ellipse, #fff8ea, #e5d6bb); }
.pk-wick { position: absolute; left: 50%; top: -14px; width: 2px; height: 11px; margin-left: -1px; background: #2a1c10; border-radius: 1px; z-index: 1; }
.pk-flame { position: absolute; left: 50%; bottom: calc(100% + 6px); width: 16px; height: 34px; margin-left: -8px; transform-origin: 50% 100%; transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1); z-index: 2; }
.pk-flame::before { content: ''; position: absolute; inset: 0; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(ellipse at 50% 78%, #fff 0 15%, #ffe28a 30%, #ffad33 60%, rgba(255,120,20,0) 75%); filter: blur(.4px); }
.pk-flame b { position: absolute; left: 50%; bottom: 2px; width: 6px; height: 10px; margin-left: -3px; border-radius: 50%; background: rgba(90,140,255,.55); filter: blur(1px); }
.pk-glow { position: absolute; left: 50%; bottom: calc(100% - 10px); width: 180px; height: 180px; margin-left: -90px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,200,110,.55), rgba(255,160,60,.15) 50%, transparent); opacity: 0; transition: opacity .8s; pointer-events: none; }
.pk-c.on .pk-flame { transform: scale(1); animation: pkFlick 1.6s ease-in-out .5s infinite; }
.pk-c.on .pk-glow { opacity: 1; animation: piFlick 2.6s ease-in-out infinite; }
.pk-c:not(.on)::after { content: ''; position: absolute; left: 50%; top: -34px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; border: 1px dashed rgba(255,220,160,.5); animation: peRing 2s ease-out infinite; animation-delay: calc(var(--i) * .25s); }
@keyframes pkFlick { 0%, 100% { transform: scale(1) skewX(0); } 25% { transform: scale(1.04, .96) skewX(2deg); } 50% { transform: scale(.97, 1.05) skewX(-2deg); } 75% { transform: scale(1.02, .98) skewX(1deg); } }
.pk-petal { position: absolute; z-index: 3; width: 16px; height: 11px; border-radius: 14px 0 14px 0; background: linear-gradient(135deg, #c8344e, #7d1427); }
.pk-p1 { left: 22%; bottom: 15cqh; transform: rotate(20deg); } .pk-p2 { right: 24%; bottom: 14cqh; transform: rotate(-30deg); } .pk-p3 { left: 60%; bottom: 12cqh; transform: rotate(80deg); }
.pi-in-candles.is-all .pk-room { animation: pkWarm 2.4s forwards; }
@keyframes pkWarm { to { filter: brightness(1.35) saturate(1.1); } }

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .pi-rv { transition: none; opacity: 1; transform: none; }
  .pi-names.pi-write .pi-n { clip-path: none; transition: none; }
}
@media (min-width: 700px) { .pi-sec { padding: 40px 24px; } .pi-paper { padding: 56px 46px; } }

.pi-in-envelope.is-broken .pi-hint, .pi-in-ringbox.is-open .pi-hint, .pi-in-door.is-open .pi-dots { opacity: 0; transition: opacity .4s; }
.pi-in-envelope.is-letter .pe-to { opacity: 0; transition: opacity .4s; }

.pi-ap { position: fixed; z-index: 80; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; border: 1px solid rgba(255,255,255,.5); background: rgba(20,16,12,.6); color: #fff; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 18px; border-radius: 30px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: all .4s; }
.pi-l-ar .pi-ap { letter-spacing: 0; font-size: 14px; }
.pi-ap.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.pi-replay { margin-top: 14px; }

/* calligraphic monogram with a hanging pendant light */
.pi-mono { position: relative; width: 230px; height: 230px; margin: -10px auto 18px; }
.pi-pendant { position: absolute; left: 50%; top: -70px; width: 1px; height: 44px; background: var(--acc); }
.pi-pendant::after { content: ''; position: absolute; left: -15px; top: 42px; width: 31px; height: 18px; border-radius: 16px 16px 4px 4px; background: linear-gradient(90deg, #8d6a2a, #f2d58f, #8d6a2a); box-shadow: 0 10px 18px rgba(255,214,140,.7); }
.pi-cone { position: absolute; left: 50%; top: -12px; width: 300px; height: 250px; transform: translateX(-50%); background: radial-gradient(60% 75% at 50% 0, rgba(255,236,190,.55), transparent 70%); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); pointer-events: none; animation: piFlick 5s ease-in-out infinite; }
.pi-mono-in { position: absolute; inset: 20px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.pi-mono-in::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid var(--line); }
.pi-mono span { font-family: var(--script); font-size: 96px; line-height: 1; color: var(--acc); position: relative; }
.pi-l-ar .pi-mono span, .pi-mono span:lang(ar) { font-family: 'Aref Ruqaa', serif; font-weight: 700; }
.pi-m1 { transform: translate(14px, -14px); } .pi-m2 { transform: translate(-14px, 16px); }
.pi-mono b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px; color: var(--ink); opacity: .7; position: relative; z-index: 1; }

/* bilingual lines: the second language sits under the first, in its own typeface */
.pi-l2 { display: block; margin-top: .3em; font-size: .78em; line-height: 1.45; opacity: .86; letter-spacing: .02em; font-family: 'Jost', 'Tajawal', sans-serif; font-weight: 300; text-transform: none; }
.pi-l2[lang=ar] { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
h2 > .pi-l2, h3 > .pi-l2, .pi-pre > .pi-l2, .pi-inv > .pi-l2, .pi-msg p > .pi-l2, .pi-guest > .pi-l2 { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: .82em; letter-spacing: .01em; }
.pi-msg p > .pi-l2 { margin-top: 1em; padding-top: .9em; border-top: 1px solid var(--line); }
.pi-btn > .pi-l2, button > .pi-l2, label > span > .pi-l2, .pi-cd span > .pi-l2 { font-size: .74em; margin-top: .15em; }
.pi-hint-t > .pi-l2 { font-size: .85em; }
.pi-skip > .pi-l2 { display: inline; margin: 0 0 0 .4em; }
.pi-dow > .pi-l2, .pi-my > .pi-l2, .pi-tm > .pi-l2 { display: inline; margin: 0 .4em; opacity: .7; }
.pi-langt { position: fixed; z-index: 81; top: 14px; inset-inline-start: 14px; display: flex; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.45); background: rgba(20,16,12,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .6s; }
.pi.is-opened .pi-langt { opacity: 1; pointer-events: auto; }
.pi-langt button { border: 0; background: none; color: #fff; font: 500 12px/1 'Jost', 'Tajawal', sans-serif; padding: 9px 11px; cursor: pointer; }
.pi-langt button.on { background: rgba(255,255,255,.9); color: #1b130d; }
.pi-guest { font-family: var(--serif); font-size: 1.15em; font-style: italic; margin: 0 0 .6em; color: var(--acc); }
.pi-l-ar .pi-guest { font-style: normal; }
.pi-env-ivory .pe-flap-out { background: linear-gradient(180deg, #fbf6ec, #efe5d2); }
.pi-env-ivory .pe-side-l { background: linear-gradient(100deg, #fbf6ec, #efe5d2); } .pi-env-ivory .pe-side-r { background: linear-gradient(260deg, #fbf6ec, #efe5d2); } .pi-env-ivory .pe-bottom { background: linear-gradient(0deg, #fbf6ec, #efe5d2); }
.pi-env-ivory .pe-back, .pi-env-ivory .pe-flap-in { background: linear-gradient(160deg, #c9b48a, #c9b48a); } .pi-env-ivory .pe-seal { --seal: #a8823e; }
.pi-env-blush .pe-flap-out { background: linear-gradient(180deg, #f4dcd6, #e6c1b9); }
.pi-env-blush .pe-side-l { background: linear-gradient(100deg, #f4dcd6, #e6c1b9); } .pi-env-blush .pe-side-r { background: linear-gradient(260deg, #f4dcd6, #e6c1b9); } .pi-env-blush .pe-bottom { background: linear-gradient(0deg, #f4dcd6, #e6c1b9); }
.pi-env-blush .pe-back, .pi-env-blush .pe-flap-in { background: linear-gradient(160deg, #7d2a3b, #7d2a3b); } .pi-env-blush .pe-seal { --seal: #8c1d2e; }
.pi-env-burgundy .pe-flap-out { background: linear-gradient(180deg, #7a1f30, #5e1626); }
.pi-env-burgundy .pe-side-l { background: linear-gradient(100deg, #7a1f30, #5e1626); } .pi-env-burgundy .pe-side-r { background: linear-gradient(260deg, #7a1f30, #5e1626); } .pi-env-burgundy .pe-bottom { background: linear-gradient(0deg, #7a1f30, #5e1626); }
.pi-env-burgundy .pe-back, .pi-env-burgundy .pe-flap-in { background: linear-gradient(160deg, #e9cdb1, #e9cdb1); } .pi-env-burgundy .pe-seal { --seal: #c79a4a; }
.pi-env-sage .pe-flap-out { background: linear-gradient(180deg, #dfe6d6, #c5d1b8); }
.pi-env-sage .pe-side-l { background: linear-gradient(100deg, #dfe6d6, #c5d1b8); } .pi-env-sage .pe-side-r { background: linear-gradient(260deg, #dfe6d6, #c5d1b8); } .pi-env-sage .pe-bottom { background: linear-gradient(0deg, #dfe6d6, #c5d1b8); }
.pi-env-sage .pe-back, .pi-env-sage .pe-flap-in { background: linear-gradient(160deg, #5d6e4f, #5d6e4f); } .pi-env-sage .pe-seal { --seal: #b08d57; }
.pi-env-navy .pe-flap-out { background: linear-gradient(180deg, #22304d, #16213a); }
.pi-env-navy .pe-side-l { background: linear-gradient(100deg, #22304d, #16213a); } .pi-env-navy .pe-side-r { background: linear-gradient(260deg, #22304d, #16213a); } .pi-env-navy .pe-bottom { background: linear-gradient(0deg, #22304d, #16213a); }
.pi-env-navy .pe-back, .pi-env-navy .pe-flap-in { background: linear-gradient(160deg, #d9c08a, #d9c08a); } .pi-env-navy .pe-seal { --seal: #b8923f; }
.pi-env-black .pe-flap-out { background: linear-gradient(180deg, #232020, #141212); }
.pi-env-black .pe-side-l { background: linear-gradient(100deg, #232020, #141212); } .pi-env-black .pe-side-r { background: linear-gradient(260deg, #232020, #141212); } .pi-env-black .pe-bottom { background: linear-gradient(0deg, #232020, #141212); }
.pi-env-black .pe-back, .pi-env-black .pe-flap-in { background: linear-gradient(160deg, #c9a25c, #c9a25c); } .pi-env-black .pe-seal { --seal: #b08d57; }
.pi-env-burgundy .pe-to { color: #f3e3c3; }
.pi-env-navy .pe-to { color: #f3e3c3; }
.pi-env-black .pe-to { color: #f3e3c3; }

/* =====================================================================
   LUXURY DESIGNS (v1.2) — Royal Palace · Velvet Rose · Garden Château
   ===================================================================== */
.pi-lux { --gold-grad: linear-gradient(100deg, #7d5a1e 0%, #c9a24f 16%, #fff1c4 29%, #dcb35a 41%, #9b6f25 57%, #e4c271 74%, #fff0c2 85%, #b08236 100%); background: #140b08; }
.lx-foil, .pi-lux .pi-names .pi-n, .pi-lux .pi-h, .pi-lux .pi-names-s, .pi-lux .pi-dnum b, .lxv-medal .lx-ini b, .lxc-medal .lx-ini b, .pi-lux .pi-mono span {
  background-image: var(--gold-grad, linear-gradient(100deg, #7d5a1e 0%, #c9a24f 16%, #fff1c4 29%, #dcb35a 41%, #9b6f25 57%, #e4c271 74%, #fff0c2 85%, #b08236 100%)); background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: lxFoil 6s ease-in-out .6s 1 both; }
@keyframes lxFoil { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.pi-lux .pi-names .pi-amp, .pi-lux .pi-names-s .pi-amp { -webkit-text-fill-color: currentColor; color: var(--acc); }

/* fixed photographic plate behind the card */
.lx-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #120a07; }
.lx-cam { position: absolute; inset: 0; transform: scale(1.14); transition: transform 8s cubic-bezier(.2,.6,.15,1); will-change: transform; backface-visibility: hidden; }
.lx-reveal .lx-cam, .pi-lux.is-opened .lx-cam { transform: scale(1.02); }
.lx-plate, .lx-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lx-vid { opacity: 0; transition: opacity 1.2s; }
.lx-vid.on { opacity: 1; }
.lx-vign { position: absolute; inset: 0; background: radial-gradient(140% 95% at 50% 42%, transparent 52%, rgba(25,12,6,.5)); }
.lx-grain { position: absolute; inset: 0; background: url(lux/fx-grain.webp) 0 0 / 160px 160px repeat; opacity: .05; }
@keyframes lxGrain { 20% { transform: translate(-22px, 14px); } 40% { transform: translate(18px, -26px); } 60% { transform: translate(-10px, 30px); } 80% { transform: translate(28px, 8px); } }
.lx-rays { position: absolute; inset: -10% -40% 10%; background: repeating-conic-gradient(from 168deg at 50% 2%, rgba(255,240,205,0) 0deg, rgba(255,238,200,.16) 2.4deg, rgba(255,240,205,0) 6deg); mix-blend-mode: screen; opacity: .45; -webkit-mask-image: linear-gradient(#000 10%, transparent 72%); mask-image: linear-gradient(#000 10%, transparent 72%); animation: lxRays 10s ease-in-out infinite alternate; }
@keyframes lxRays { to { opacity: .8; transform: rotate(1.6deg); } }
.lx-bg-chateau .lx-rays { inset: -20% -50% 0; background: repeating-conic-gradient(from 196deg at 68% -4%, rgba(255,236,190,0) 0deg, rgba(255,232,180,.2) 2.8deg, rgba(255,236,190,0) 7deg); }
.lx-tw i { position: absolute; width: 12px; height: 12px; margin: -6px; opacity: 0; background: radial-gradient(circle, #fff 0 16%, rgba(255,244,210,.7) 28%, transparent 62%); animation: lxTw var(--d) ease-in-out infinite; }
.lx-tw i::before, .lx-tw i::after { content: ''; position: absolute; left: 50%; top: -9px; width: 1px; height: 30px; margin-left: -.5px; background: linear-gradient(transparent, #fffbe9, transparent); }
.lx-tw i::after { transform: rotate(90deg); }
@keyframes lxTw { 0%, 100% { opacity: 0; transform: scale(calc(var(--s) * .2)) rotate(0); } 50% { opacity: 1; transform: scale(var(--s)) rotate(40deg); } }
.lx-bg-velvet .lx-tw i { width: 3px; height: 3px; margin: 0; border-radius: 50%; background: #ffe2a8; box-shadow: 0 0 6px 1px rgba(255,214,140,.8); animation: lxDust var(--d) ease-in-out infinite; }
.lx-bg-velvet .lx-tw i::before, .lx-bg-velvet .lx-tw i::after { display: none; }
@keyframes lxDust { 0% { opacity: 0; transform: translate(0, 0) scale(var(--s)); } 30% { opacity: .9; } 70% { opacity: .6; } 100% { opacity: 0; transform: translate(14px, 60px) scale(var(--s)); } }
.lx-smoke { position: absolute; left: -40%; width: 180%; height: 46%; background: url(lux/fx-smoke.webp) center/cover; mix-blend-mode: screen; opacity: .22; animation: lxDrift 22s ease-in-out infinite alternate; }
.lx-smoke-a { top: 22%; } .lx-smoke-b { bottom: -6%; opacity: .3; animation-duration: 30s; animation-direction: alternate-reverse; }
@keyframes lxDrift { from { transform: translateX(-9%); } to { transform: translateX(9%); } }
.lx-cloudband { position: absolute; left: -30%; width: 160%; top: 30%; height: 34%; background: url(lux/fx-clouds.webp) center/cover; opacity: .32; animation: lxDrift 40s ease-in-out infinite alternate; }

/* the lamp: dark until the curtains part, then it flickers on */



@keyframes lxLampOn { 0% { filter: brightness(.16) saturate(.7); } 100% { filter: none; } }

/* intro shell for the three designs */
.pi-in-palace, .pi-in-velvet, .pi-in-chateau { background: transparent; }
.lx { position: absolute; inset: 0; overflow: hidden; transition: background-color .8s; }
.is-zoom .lx, .is-go .lx, .is-open .lx { background-color: transparent !important; }
.lx > * { transition: opacity 1s ease; }
.pi-intro:not(.lx-ready) .lx > * { opacity: 0; }
.pi-intro:not(.lx-ready) .lx::after { content: ''; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; border: 1px solid rgba(214,180,110,.25); border-top-color: #d6b46e; animation: lxSpin 1s linear infinite; }
@keyframes lxSpin { to { transform: rotate(360deg); } }
.pi-intro:not(.lx-ready) .pi-hint { opacity: 0 !important; }
.pi-poster .lx > *:not(.lx-flash):not(.lxp-stage) { opacity: 1 !important; }
.pi-poster .lx::after { display: none; }
.pi-intro.is-crack .pi-hint, .pi-intro.is-go .pi-hint, .pi-intro.is-open .pi-hint { opacity: 0 !important; transition: opacity .4s; }
.pi-in-palace { --hint: #6e4d2c; }
.pi-in-palace .pi-hint { text-shadow: 0 0 10px rgba(255,248,236,.95), 0 0 2px rgba(255,248,236,.9); }
.pi-in-velvet { --hint: #f3dca8; }
.pi-in-chateau { --hint: #6f5733; }
.pi-in-chateau .pi-hint { text-shadow: 0 0 12px #fff, 0 0 3px #fff; }
.pi-in-palace .pi-skip, .pi-in-chateau .pi-skip { background: rgba(255,250,242,.55); color: #6e4d2c; border-color: rgba(150,110,60,.4); }
.lx-tap { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; opacity: .85; }
.lx-tap::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: currentColor; }
.lx-tap::before { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid currentColor; animation: lxTap 1.8s ease-out infinite; }
@keyframes lxTap { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.lx-motes { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.lx-mote { position: absolute; width: 6px; height: 6px; border-radius: 50%; opacity: 0; background: radial-gradient(circle, rgba(255,250,232,1), rgba(255,222,150,.55) 40%, transparent 70%); animation: lxMote var(--d) ease-in-out infinite; }
.lx-mote:nth-child(4n) { width: 16px; height: 16px; filter: blur(1.5px); }
.lx-mote:nth-child(7n) { width: 24px; height: 24px; filter: blur(3px); }
.lx-mote-warm { background: radial-gradient(circle, rgba(255,226,170,1), rgba(255,170,90,.45) 40%, transparent 70%); }
.lx-mote-white { background: radial-gradient(circle, #fff, rgba(255,255,255,.55) 40%, transparent 70%); }
@keyframes lxMote { 0% { opacity: 0; transform: translate(0, 24px) scale(var(--s)); } 30% { opacity: .95; } 70% { opacity: .7; } 100% { opacity: 0; transform: translate(var(--x), -70px) scale(var(--s)); } }
.lx-flash { position: absolute; inset: 0; z-index: 30; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 45%, #fffbf3, #f8ead6 60%, #ecd4b4); }
@keyframes lxFlash { 0% { opacity: 0; } 42% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lxHalo { 50% { transform: scale(1.12); opacity: .55; } }

/* shared curtains */
.lx-cur { position: absolute; top: 0; bottom: 0; width: 51%; z-index: 2; background-repeat: no-repeat; background-size: cover; transition: transform 3s cubic-bezier(.62,0,.2,1); will-change: transform; }
.lx-cur-l { left: 0; transform-origin: 0 50%; background-position: right center; }
.lx-cur-r { right: 0; transform-origin: 100% 50%; background-position: left center; }
.lx-cur i { position: absolute; inset: 0; opacity: 0; transition: opacity 3s; }
.lx-cur-l i { background: linear-gradient(90deg, rgba(30,6,8,.1), rgba(30,6,8,.55)); }
.lx-cur-r i { background: linear-gradient(270deg, rgba(30,6,8,.1), rgba(30,6,8,.55)); }
.is-open .lx-cur-l { transform: translateX(-26%) scaleX(.4); }
.is-open .lx-cur-r { transform: translateX(26%) scaleX(.4); }
.is-open .lx-cur i { opacity: 1; }

/* ===== ROYAL PALACE ===== */
.lx-pal { background: #efe0d3; }
.lxp-silk { position: absolute; inset: 0; z-index: 0; transition: opacity 1.1s ease .3s; }
.lx-kb { position: absolute; inset: -5%; background: url(lux/pal-silk.webp) center/cover; animation: lxKb 24s ease-in-out infinite alternate; }
@keyframes lxKb { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.09) translate(-1.6%, -1.2%); } }
.lxp-glow { position: absolute; inset: 0; background: radial-gradient(62% 36% at 50% 46%, rgba(255,247,232,.55), transparent 72%), radial-gradient(130% 95% at 50% 50%, transparent 55%, rgba(90,45,30,.32)); }
.lxe-wrap { position: absolute; left: 50%; top: 46%; width: min(86cqw, 400px); aspect-ratio: 1.45; z-index: 5; transform: translate(-50%, -38%); opacity: 0; transition: transform 1.6s cubic-bezier(.2,.7,.2,1), opacity 1.2s, filter 1s; }
.pi-intro.lx-ready .lxe-wrap, .pi-poster .lxe-wrap { transform: translate(-50%, -50%); opacity: 1; }
.lxe-shadow { position: absolute; left: 4%; right: 4%; bottom: -9%; height: 20%; background: radial-gradient(50% 50% at 50% 50%, rgba(80,40,25,.42), transparent 72%); filter: blur(5px); animation: lxShadow 7s ease-in-out infinite; }
@keyframes lxShadow { 50% { transform: scaleX(.94); opacity: .8; } }
.lxe { position: absolute; inset: 0; perspective: 1400px; animation: lxFloat 7s ease-in-out infinite; }
@keyframes lxFloat { 50% { transform: translateY(-7px) rotate(-.35deg); } }
.lxe-back { position: absolute; inset: 0; z-index: 0; border-radius: 2px; background: linear-gradient(rgba(70,35,20,.32), rgba(70,35,20,.06) 45%), url(lux/pal-liner.webp) center/58% repeat; box-shadow: inset 0 0 0 1px rgba(160,120,70,.45); }
.lxe-card { position: absolute; left: 5.5%; right: 5.5%; top: 5%; bottom: 5%; z-index: 2; background: url(lux/pal-paper.webp) center/cover, #fbf4ec; box-shadow: 0 2px 10px rgba(70,35,20,.25); transition: transform 1.6s cubic-bezier(.45,0,.18,1); display: flex; justify-content: center; text-align: center; padding-top: 7%; }
.lxe-card::before, .lxe-card::after { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(176,134,62,.6); pointer-events: none; }
.lxe-card::after { inset: 9px; opacity: .5; }
.lxe-card-in { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.lxe-pre { font: 500 8px/1.3 'Jost', 'Tajawal', sans-serif; letter-spacing: .28em; text-transform: uppercase; color: #8d735a; }
.pi-l-ar .lxe-pre { letter-spacing: 0; font-size: 11px; }
.lxe-names { font-family: 'Great Vibes', 'Aref Ruqaa', cursive; font-size: clamp(22px, 8cqw, 34px); line-height: 1.2; padding: 0 .1em; }
.pi-l-ar .lxe-names { font-family: 'Aref Ruqaa', serif; font-weight: 700; font-size: clamp(20px, 7cqw, 30px); }
.lxe-names .pi-amp { font-size: .55em; }
.lxe-date { font: 500 9px/1.4 'Cinzel', 'Jost', serif; letter-spacing: .2em; color: #8d735a; }
.is-card .lxe-card { transform: translateY(-66%); }
.lxe-pocket { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.lxe-pw { position: absolute; inset: 0; }
.lxe-pw-s { filter: drop-shadow(0 0 1.4px rgba(90,50,30,.32)); }
.lxe-pw-b { filter: drop-shadow(0 -2px 2.5px rgba(90,50,30,.26)); }
.lxe-fl, .lxe-fr, .lxe-fb { position: absolute; inset: 0; background-color: #f5e6da; background-size: cover; background-position: center; }
.lxe-fl { clip-path: polygon(0 0, 54% 55%, 0 100%); background-image: linear-gradient(95deg, rgba(255,255,255,.22), rgba(130,75,50,.05)), url(lux/pal-paper.webp); }
.lxe-fr { clip-path: polygon(100% 0, 46% 55%, 100% 100%); background-image: linear-gradient(265deg, rgba(255,255,255,.06), rgba(130,75,50,.12)), url(lux/pal-paper.webp); }
.lxe-fb { clip-path: polygon(0 100%, 50% 47%, 100% 100%); background-image: linear-gradient(0deg, rgba(130,75,50,.1), rgba(255,255,255,.26)), url(lux/pal-paper.webp); }
.lxe-foil { position: absolute; inset: 0; width: 100%; height: 100%; }
.lxe-flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 4; transform-origin: 50% 0; transform-style: preserve-3d; transition: transform 1.15s cubic-bezier(.55,0,.25,1); }
.lxe-flap-o, .lxe-flap-i, .lxe-flap-sh { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.lxe-flap-sh { clip-path: polygon(-1% 0, 101% 0, 50% 105%); background: linear-gradient(rgba(80,40,25,0) 40%, rgba(80,40,25,.3)); transform: translateZ(-1px); transition: opacity .3s; }
.lxe-flap-o { background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(120,65,40,.12)), url(lux/pal-paper.webp) center/cover, #f7e9de; }
.lxe-flap-o svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lxe-flap-i { transform: rotateX(180deg); background: linear-gradient(rgba(70,35,20,.12), rgba(70,35,20,.35)), url(lux/pal-liner.webp) center/58% repeat; }
.is-flap .lxe-flap { transform: rotateX(178deg); }
.is-flap .lxe-flap-sh { opacity: 0; }
.is-flap2 .lxe-flap { z-index: 1; }
.lxe-seal { position: absolute; left: 50%; top: 58%; width: 31%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 6; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lxe-halo { position: absolute; inset: -34%; border-radius: 50%; background: radial-gradient(circle, rgba(255,232,170,.6), transparent 62%); animation: lxHalo 2.6s ease-in-out infinite; transition: opacity .4s; }
.lxe-half { position: absolute; inset: 0; background: url(lux/pal-seal.webp) center/contain no-repeat; filter: drop-shadow(0 3px 3px rgba(70,40,10,.42)); transition: transform 1.1s cubic-bezier(.3,.6,.35,1), opacity .9s .3s; }
.lxe-half-a { clip-path: polygon(0 0, 53% 0, 47% 20%, 55% 38%, 46% 57%, 54% 76%, 49% 100%, 0 100%); }
.lxe-half-b { clip-path: polygon(53% 0, 100% 0, 100% 100%, 49% 100%, 54% 76%, 46% 57%, 55% 38%, 47% 20%); }
.is-crack .lxe-half-a { transform: translate(-40%, 75%) rotate(-40deg); opacity: 0; }
.is-crack .lxe-half-b { transform: translate(40%, 85%) rotate(36deg); opacity: 0; }
.is-crack .lxe-halo, .is-crack .lxe-glint { opacity: 0; }
.lx-ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .06em; font-family: 'Great Vibes', cursive; font-size: clamp(20px, 6.2cqw, 28px); line-height: 1; color: #8a6424; text-shadow: 0 1px 0 rgba(255,240,200,.75), 0 -1px 0 rgba(80,50,10,.5); }
.lx-ini.is-ar { font-family: 'Aref Ruqaa', 'Amiri', serif; font-weight: 700; }
.lx-ini em { font-family: 'Cormorant Garamond', serif; font-size: .5em; font-style: italic; opacity: .85; margin: 0 .06em; }
.lxe-glint { position: absolute; inset: 14%; border-radius: 50%; background: linear-gradient(115deg, transparent 38%, rgba(255,253,240,.7) 49%, transparent 60%); background-size: 260% 100%; mix-blend-mode: screen; animation: lxGlint 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes lxGlint { 0%, 45% { background-position: 150% 0; } 85%, 100% { background-position: -50% 0; } }
.pi-intro.is-zoom .lxe-wrap, .is-zoom .lxe-wrap { transform: translate(-50%, -64%) scale(2.5); opacity: 0; transition: transform 1.3s cubic-bezier(.6,0,.4,1), opacity 1s ease .2s; }
.is-zoom .lxp-silk { opacity: 0; }
.is-zoom .lx-motes { opacity: 0; }
.is-zoom .lx-flash { animation: lxFlashPal 1.8s ease forwards; }
@keyframes lxFlashPal { 0% { opacity: 0; } 45% { opacity: .28; } 100% { opacity: 0; } }
.lxp-stage { position: absolute; inset: 0; z-index: 8; opacity: 0; visibility: hidden; transition: opacity 1s ease .35s, visibility 0s .35s; }
.is-zoom .lxp-stage { opacity: 1; visibility: visible; transition: opacity 1s ease .35s, visibility 0s 0s; }
.lx-pal .lx-cur-l { background-image: url(lux/pal-cur-l.webp); }
.lx-pal .lx-cur-r { background-image: url(lux/pal-cur-r.webp); }
.lx-pelmet { position: absolute; left: 0; right: 0; top: 0; height: 15cqh; z-index: 3; background: url(lux/pal-cur-l.webp) right 50% top 0 / auto max(180cqw, 100cqh) no-repeat, url(lux/pal-cur-r.webp) left 50% top 0 / auto max(180cqw, 100cqh) no-repeat; -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); transition: transform 2.6s cubic-bezier(.6,0,.2,1) .5s, opacity 1.5s 1s; }
.is-open .lx-pelmet { transform: translateY(-105%); opacity: 0; }

/* ===== VELVET ROSE ===== */
.lx-vel { background: #1b0609; }
.lxv-curs { position: absolute; inset: 0; z-index: 2; }
.lxv-curs::after { content: ''; position: absolute; top: 0; bottom: 0; left: -100%; width: 100%; z-index: 3; pointer-events: none; background: linear-gradient(100deg, transparent 20%, rgba(255,205,170,.13) 50%, transparent 80%); will-change: transform; animation: lxSweepT 8s ease-in-out infinite; transition: opacity .6s; }
@keyframes lxSweepT { 0% { transform: translate3d(0,0,0); } 60%, 100% { transform: translate3d(200%,0,0); } }
.is-open .lxv-curs::after { opacity: 0; }
@keyframes lxSweep { 0% { background-position: 120% 0; } 60%, 100% { background-position: -20% 0; } }
.lx-vel .lx-cur { transition-duration: 3.4s; }
.lx-vel .lx-cur-l { background-image: url(lux/vel-cur-l.webp); }
.lx-vel .lx-cur-r { background-image: url(lux/vel-cur-r.webp); }
.lxv-smoke { position: absolute; left: -40%; width: 180%; bottom: -4%; height: 42%; z-index: 4; background: url(lux/fx-smoke.webp) center/cover; mix-blend-mode: screen; opacity: .28; animation: lxDrift 18s ease-in-out infinite alternate; pointer-events: none; transition: opacity 2s; }
.is-open .lxv-smoke { opacity: .12; }
.lxv-bf { position: absolute; z-index: 6; width: calc(19cqw * var(--z)); aspect-ratio: 360 / 275; transform: translate(-50%, -50%) rotate(var(--r)); perspective: 260px; transition: transform 2.6s cubic-bezier(.35,0,.2,1), opacity 1.6s .9s; pointer-events: none; }
.lxv-bf .w { position: absolute; top: 0; bottom: 0; width: 50%; background: url(lux/vel-butterfly.webp) no-repeat; background-size: 200% 100%; filter: drop-shadow(0 5px 5px rgba(0,0,0,.5)); animation: lxWingL 2.4s ease-in-out infinite; }
.lxv-bf .l { left: 0; background-position: 0 50%; transform-origin: 100% 50%; }
.lxv-bf .r { right: 0; background-position: 100% 50%; transform-origin: 0 50%; animation-name: lxWingR; }
.lxv-bf2 .w { animation-delay: -.8s; } .lxv-bf3 .w { animation-delay: -1.5s; } .lxv-bf4 .w { animation-delay: -2s; }
@keyframes lxWingL { 0%, 62%, 100% { transform: rotateY(0); } 72% { transform: rotateY(64deg); } 82% { transform: rotateY(8deg); } 90% { transform: rotateY(54deg); } }
@keyframes lxWingR { 0%, 62%, 100% { transform: rotateY(0); } 72% { transform: rotateY(-64deg); } 82% { transform: rotateY(-8deg); } 90% { transform: rotateY(-54deg); } }
.is-go .lxv-bf .w { animation-duration: .26s; animation-name: lxFlapL; }
.is-go .lxv-bf .r { animation-name: lxFlapR; }
@keyframes lxFlapL { 50% { transform: rotateY(72deg); } }
@keyframes lxFlapR { 50% { transform: rotateY(-72deg); } }
.is-go .lxv-bf { opacity: 0; }
.is-go .lxv-bf1 { transform: translate(-300%, -520%) rotate(-28deg) scale(.45); }
.is-go .lxv-bf2 { transform: translate(240%, -560%) rotate(26deg) scale(.4); }
.is-go .lxv-bf3 { transform: translate(180%, -700%) rotate(14deg) scale(.4); }
.is-go .lxv-bf4 { transform: translate(-200%, -480%) rotate(-12deg) scale(.4); }
.lxv-medal { position: absolute; left: 50%; top: 45%; width: min(48cqw, 240px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 7; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; transition: opacity .9s, transform 1.3s cubic-bezier(.3,.6,.3,1), filter .9s; -webkit-tap-highlight-color: transparent; }
.lxv-medal::before { content: ''; position: absolute; inset: -16%; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,150,.32), rgba(120,20,30,0) 66%); animation: lxHalo 3.2s ease-in-out infinite; }
.lxv-ring { position: absolute; inset: 7%; border-radius: 50%; border: 1px solid rgba(232,196,120,.8); background: radial-gradient(circle, rgba(40,4,10,.62), rgba(40,4,10,.35) 68%, rgba(40,4,10,0) 71%); box-shadow: 0 0 0 6px rgba(232,196,120,.12), 0 10px 40px rgba(0,0,0,.45); }
.lxv-ring::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(232,196,120,.45); }
.lxv-medal .lx-ini, .lxc-medal .lx-ini { position: relative; inset: auto; font-size: clamp(46px, 15cqw, 78px); text-shadow: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.lxv-medal .lx-ini em { color: #e9cf91; font-size: .4em; }
.lxv-medal .lx-ini b, .lxc-medal .lx-ini b { font-weight: 400; padding: 0 .06em; }
.lxv-medal .lx-ini.is-ar b, .lxc-medal .lx-ini.is-ar b { font-weight: 700; }
.is-go .lxv-medal, .is-go .lxc-medal { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }

/* ===== GARDEN CHÂTEAU ===== */
.lx-cha { background: #f3efe8; }
.lxc-cam { position: absolute; inset: 0; z-index: 2; perspective: 1000px; transition: transform 3.6s cubic-bezier(.5,0,.2,1); }
.lxc-gate { position: absolute; top: 0; bottom: 0; width: 50.5%; background-repeat: no-repeat; background-size: cover; backface-visibility: hidden; will-change: transform; transition: transform 3.1s cubic-bezier(.55,0,.25,1), opacity 1s ease 2.2s; }
.lxc-gate-l { left: 0; background-image: url(lux/cha-gate-l.webp); background-position: right center; transform-origin: 0 50%; }
.lxc-gate-r { right: 0; background-image: url(lux/cha-gate-r.webp); background-position: left center; transform-origin: 100% 50%; }
.lxc-cam { animation: none; scale: 1; will-change: transform; }
.pi-intro.lx-ready .lxc-cam { scale: 1.04; transition: transform 3.6s cubic-bezier(.5,0,.2,1), scale 16s cubic-bezier(.25,.1,.25,1); }
@keyframes lxBreath { to { transform: scale(1.04); } }
.is-open .lxc-cam { transform: scale(1.45); }
.is-open .lxc-gate-l { transform: rotateY(80deg); opacity: 0; }
.is-open .lxc-gate-r { transform: rotateY(-80deg); opacity: 0; }
.lxc-cloud { position: absolute; z-index: 4; width: 150%; height: 40%; background: url(lux/fx-clouds.webp) center/cover; pointer-events: none; animation: lxCloud 24s ease-in-out infinite alternate; transition: transform 3s cubic-bezier(.5,0,.2,1), opacity 2.4s; }
.lxc-cloud-a { left: -25%; bottom: -8%; opacity: .95; }
.lxc-cloud-b { left: -30%; top: -10%; opacity: .7; animation-direction: alternate-reverse; animation-duration: 30s; }
.lxc-cloud-c { left: -20%; top: 34%; height: 30%; opacity: .35; animation-duration: 36s; }
@keyframes lxCloud { from { margin-left: -6%; } to { margin-left: 6%; } }
.is-open .lxc-cloud-a { transform: translate(-30%, 30%) scale(1.8); opacity: 0; }
.is-open .lxc-cloud-b { transform: translate(30%, -30%) scale(1.8); opacity: 0; }
.is-open .lxc-cloud-c { transform: scale(2.6); opacity: 0; }
.lxc-rays { position: absolute; inset: -20% -50% 0; z-index: 5; pointer-events: none; background: repeating-conic-gradient(from 196deg at 66% -6%, rgba(255,240,200,0) 0deg, rgba(255,236,190,.22) 2.6deg, rgba(255,240,200,0) 7deg); mix-blend-mode: soft-light; -webkit-mask-image: linear-gradient(#000 20%, transparent 85%); mask-image: linear-gradient(#000 20%, transparent 85%); animation: lxRays 9s ease-in-out infinite alternate; }
.lxc-medal { position: absolute; left: 50%; top: 47%; width: min(40cqw, 200px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 7; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; transition: opacity .9s, transform 1.3s cubic-bezier(.3,.6,.3,1), filter .9s; -webkit-tap-highlight-color: transparent; }
.lxc-wreath { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,253,248,.92), rgba(255,251,242,.78) 58%, rgba(255,251,242,0) 71%); }
.lxc-wreath::before, .lxc-wreath::after { content: ''; position: absolute; inset: 12%; border-radius: 50%; border: 1px solid rgba(185,148,78,.75); }
.lxc-wreath::after { inset: 15%; opacity: .55; }
.lxc-medal::before { content: ''; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.7), transparent 66%); animation: lxHalo 3.2s ease-in-out infinite; }
.lxc-medal .lx-ini { font-size: clamp(38px, 12cqw, 62px); filter: drop-shadow(0 1px 1px rgba(120,90,30,.35)); }
.lxc-medal .lx-ini em { color: #a5843f; }
.is-open .lx-flash-w { background: radial-gradient(circle at 50% 50%, #fff, rgba(255,255,255,.6) 50%, rgba(255,255,255,0)); animation: lxFlashSoft 2.6s ease forwards; }
@keyframes lxFlashSoft { 0% { opacity: 0; } 45% { opacity: .55; } 100% { opacity: 0; } }

/* ===== the card on the three designs ===== */
.pi-names2 { font-family: 'Great Vibes', cursive; font-size: 30px; line-height: 1.2; margin: -4px 0 12px; color: var(--acc); }
.pi-names2.is-ar { font-family: 'Aref Ruqaa', serif; font-weight: 700; }
.pi-lux .pi-foot { position: relative; z-index: 1; }
.pi-lux .pi-foot a, .pi-lux .pi-foot b { color: var(--foot, rgba(255,255,255,.8)); }

.pi-l-ar .pi-tl span > .pi-l2 { text-align: right; }
.pi-l-ar .pi-tl span { text-align: right; }
/* ambient particles on the card */
.fx-lxgold { width: 5px; height: 5px; border-radius: 50%; top: auto; bottom: -10px; background: radial-gradient(circle, #fff6d6, #e9c47a 45%, transparent 70%); box-shadow: 0 0 8px rgba(255,214,140,.8); animation-name: fxRise; transform: scale(var(--s)); }
.fx-lxpetal, .fx-lxwhite { width: 18px; height: 18px; background: url(lux/vel-petal-1.webp) center/contain no-repeat; opacity: .9; filter: drop-shadow(0 3px 3px rgba(0,0,0,.3)); animation-name: lxPetal; }
.fx-lxwhite { background-image: url(lux/cha-petal-1.webp); filter: drop-shadow(0 2px 3px rgba(120,100,60,.25)); }
.fx-lxpetal:nth-child(3n) { background-image: url(lux/vel-petal-2.webp); width: 22px; height: 22px; }
.fx-lxpetal:nth-child(3n+1) { background-image: url(lux/vel-petal-3.webp); width: 15px; height: 15px; }
.fx-lxpetal:nth-child(4n) { background-image: url(lux/vel-petal-4.webp); }
.fx-lxpetal:nth-child(5n) { background-image: url(lux/vel-petal-5.webp); }
.fx-lxwhite:nth-child(3n) { background-image: url(lux/cha-petal-2.webp); width: 22px; height: 22px; }
.fx-lxwhite:nth-child(3n+1) { background-image: url(lux/cha-petal-3.webp); width: 14px; height: 14px; }
.fx-lxwhite:nth-child(4n) { background-image: url(lux/cha-petal-4.webp); }
.fx-lxwhite:nth-child(5n) { background-image: url(lux/cha-petal-5.webp); }
@keyframes lxPetal { 0% { transform: translate(0, -30px) rotate3d(1, .4, .2, 0deg) scale(var(--s)); } 50% { transform: translate(calc(var(--x) * -1), 55vh) rotate3d(1, .4, .2, 300deg) scale(var(--s)); } 100% { transform: translate(var(--x), 112vh) rotate3d(1, .4, .2, 620deg) scale(var(--s)); } }

@media (prefers-reduced-motion: reduce) {
  .lx-kb, .lxe, .lxe-shadow, .lx-mote, .lx-tw i, .lx-grain, .lx-rays, .lx-smoke, .lxc-cloud, .lxc-cam, .lx-foil, .lxv-bf .w, .lxe-glint, .lxe-halo, .lx-cloudband { animation: none !important; }
}

/* ===== 
.pi-parents { margin: -2px auto 16px; }
.pi-parents p { margin: 0; font-size: 17px; font-style: italic; color: var(--muted); line-height: 1.5; }
.pi-l-ar .pi-parents p { font-style: normal; font-family: 'Amiri', serif; font-size: 18px; }
.pi-gifts p { font-size: 19px; font-style: italic; margin: 0; }
.pi-l-ar .pi-gifts p { font-style: normal; }

.lx-ini { font-family: 'Cinzel', 'Cormorant Garamond', serif; font-weight: 500; letter-spacing: .02em; }
.lx-ini em { font-family: 'Great Vibes', cursive; font-style: normal; font-size: .62em; margin: 0 .12em; }
.lx-ini.is-ar em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: .5em; }
.pi-lux .pi-mono span { font-family: 'Cinzel', serif; font-weight: 500; }
.pi-lux.pi-l-ar .pi-mono span, .pi-lux .pi-mono span:lang(ar) { font-family: 'Aref Ruqaa', serif; font-weight: 700; }
.pi-t-velvet .pi-mono-in { display: flex; align-items: center; justify-content: center; gap: 10px; }
.pi-t-velvet .pi-m1, .pi-t-velvet .pi-m2 { transform: none; }
.pi-t-velvet .pi-mono span { font-size: 92px; }
.pi-t-velvet.pi-l-ar .pi-mono span { font-size: 104px; }
.pi-t-velvet .pi-mono b { font-family: 'Great Vibes', cursive; font-style: normal; font-size: 44px; color: #e8cf94; opacity: .95; }






/* ===== DOORS v1.3 (Grand Door + Garden Door) — compositor-only motion: transform + opacity, no src swaps ===== */
.lx-door { background-color: #120a07; }
.pi-intro.lx-ready .lx-door { background-color: transparent; transition: background-color 0s linear 1.3s; }
.lxd-v-garden { background-color: #1e1912; }
.lxd-cam { position: absolute; inset: 0; scale: 1; transition: scale 18s cubic-bezier(.25,.1,.25,1), opacity 1s ease; will-change: transform, opacity; }
.pi-intro.lx-ready .lxd-cam { scale: 1.035; }
.lxd-stage { position: absolute; left: 50%; top: 50%; width: max(100cqw, calc(100cqh * 1088 / 1920)); aspect-ratio: 1088 / 1920; transform-origin: 50% 53.07%; transform: translate3d(-50%, -50%, 0) scale(1.55); transition: transform 3.3s cubic-bezier(.62,0,.24,1); will-change: transform; backface-visibility: hidden; }
.is-push .lxd-stage { transform: translate3d(-50%, -50%, 0) scale(3.6); }
.lxd-wall { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; display: block; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.lxd-open { position: absolute; left: 33.824%; top: 30%; width: 32.353%; height: 46.146%; z-index: 2; perspective: 520px; perspective-origin: 50% 46%; }
.lxd-light { position: absolute; inset: -2%; background: radial-gradient(70% 58% at 50% 46%, #fffaf0 0%, #ffe9bd 42%, #e3ae5e 100%); opacity: 1; transition: opacity 3.1s cubic-bezier(.5,0,.4,1) .45s; }
.is-open .lxd-light { opacity: 0; }
.lxd-leaf { position: absolute; top: 0; bottom: 0; width: 50.2%; transform: rotateY(0deg); transition: transform 3.2s cubic-bezier(.45,.02,.2,1), opacity .9s ease 1.4s; backface-visibility: hidden; will-change: transform; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lxd-leaf img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; -webkit-user-drag: none; }
.lxd-leaf-l { left: 0; transform-origin: 0 50%; }
.lxd-leaf-r { right: 0; transform-origin: 100% 50%; }
.lxd-shade { position: absolute; inset: 0; opacity: 0; transition: opacity 3.2s cubic-bezier(.45,.02,.2,1); }
.lxd-leaf-l .lxd-shade { background: linear-gradient(90deg, rgba(14,7,3,.35), rgba(14,7,3,.8)); }
.lxd-leaf-r .lxd-shade { background: linear-gradient(270deg, rgba(14,7,3,.35), rgba(14,7,3,.8)); }
.lxd-rim { position: absolute; top: 0; bottom: 0; width: 6%; opacity: 0; transition: opacity 1.6s ease .6s; }
.lxd-leaf-l .lxd-rim { right: 0; background: linear-gradient(90deg, transparent, rgba(255,226,170,.75)); }
.lxd-leaf-r .lxd-rim { left: 0; background: linear-gradient(270deg, transparent, rgba(255,226,170,.75)); }
.is-open .lxd-leaf-l { transform: rotateY(-78deg); }
.is-open .lxd-leaf-r { transform: rotateY(78deg); }
.is-open .lxd-shade { opacity: .85; }
.is-open .lxd-rim { opacity: 1; }
.is-push .lxd-leaf { opacity: 0; }
.lxd-open.is-knock { animation: lxdKnock .36s cubic-bezier(.3,.6,.4,1); }
@keyframes lxdKnock { 0% { translate: 0 0; } 22% { translate: 1.6px .4px; } 48% { translate: -1.1px 0; } 74% { translate: .5px 0; } 100% { translate: 0 0; } }
.lxd-seam, .lxd-seam2 { position: absolute; left: 50%; top: 2%; bottom: 2%; width: 3px; margin-left: -1.5px; z-index: 3; pointer-events: none; background: linear-gradient(transparent, #ffe9b0 12%, #fff6dc 50%, #ffe9b0 88%, transparent); transition: opacity .5s ease; }
.lxd-seam { opacity: .4; box-shadow: 0 0 10px 2px rgba(255,214,140,.6); animation: lxdBreathe 4.2s ease-in-out infinite alternate; }
.lxd-seam2 { opacity: 0; width: 14px; margin-left: -7px; background: radial-gradient(50% 50% at 50% 50%, rgba(255,232,180,.9), rgba(255,200,120,0)); background-size: 100% 100%; }
@keyframes lxdBreathe { from { opacity: .32; } to { opacity: .55; } }
.lxd-open[data-k="1"] .lxd-seam2 { opacity: .35; }
.lxd-open[data-k="2"] .lxd-seam2 { opacity: .65; }
.lxd-open[data-k="3"] .lxd-seam2 { opacity: 1; }
.is-open .lxd-open .lxd-seam, .is-open .lxd-open[data-k] .lxd-seam2 { opacity: 0; animation: none; transition: opacity .7s ease; }
.lxd-sill { position: absolute; left: 5%; right: 5%; bottom: -1.5%; height: 3%; z-index: 4; background: radial-gradient(50% 50% at 50% 0, rgba(255,220,150,.75), transparent 70%); opacity: .5; pointer-events: none; transition: opacity .6s ease; }
.lxd-open[data-k] .lxd-sill { opacity: .85; }
.is-open .lxd-sill { opacity: 0; transition-duration: 2s; }
.lxd-dust { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.lxd-mote { position: absolute; left: 0; top: 0; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: radial-gradient(circle, rgba(255,240,210,.95), rgba(255,220,160,0) 70%); opacity: 0; will-change: transform, opacity; animation: lxdMote 1.8s cubic-bezier(.2,.6,.3,1) forwards; }
@keyframes lxdMote { 0% { opacity: 0; transform: translate3d(0,0,0) scale(var(--s)); } 15% { opacity: .95; } 100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) scale(var(--s)); } }
.lxd-names { position: absolute; left: 0; right: 0; bottom: 21%; z-index: 8; text-align: center; pointer-events: none; transition: opacity .9s ease; }
.lxd-n { display: inline-block; font-family: 'Great Vibes', cursive; font-size: 44px; line-height: 1.2; padding: 4px 18px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.85)); }
.pi-l-ar .lxd-n, .lxd-n:lang(ar) { font-family: 'Aref Ruqaa', serif; font-size: 40px; }
.lxd-n i.pi-amp { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: .55em; margin: 0 .25em; vertical-align: .2em; }
.lx-door::after { content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(transparent 55%, rgba(20,12,6,.55) 82%, rgba(20,12,6,.8)); transition: opacity 1s ease; }
.is-open .lxd-names, .is-open .lx-door::after { opacity: 0; }
.lxd-glow { position: absolute; left: 50%; top: 53%; width: 150vmax; height: 150vmax; margin: -75vmax; z-index: 8; pointer-events: none; opacity: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,250,236,.95) 0%, rgba(255,232,186,.6) 14%, rgba(255,222,170,.18) 34%, rgba(255,222,170,0) 56%); transform: scale(.55); will-change: transform, opacity; }
.is-open .lxd-glow { animation: lxdGlow 3.4s cubic-bezier(.3,.1,.3,1) .35s forwards; }
@keyframes lxdGlow { 0% { opacity: 0; transform: scale(.55); } 38% { opacity: .78; } 100% { opacity: 0; transform: scale(1.25); } }
.lxd-rays { position: absolute; left: 50%; top: 53%; width: 170vmax; height: 170vmax; margin: -85vmax; z-index: 8; pointer-events: none; opacity: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,230,180,0) 0deg, rgba(255,230,180,.2) 3deg, rgba(255,230,180,0) 7deg, rgba(255,230,180,0) 12deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.55) 18%, transparent 50%); mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.55) 18%, transparent 50%); transform: rotate(0deg) scale(.7); will-change: transform, opacity; }
.is-open .lxd-rays { animation: lxdRays 4.2s cubic-bezier(.3,.1,.3,1) .5s forwards; }
@keyframes lxdRays { 0% { opacity: 0; transform: rotate(0deg) scale(.7); } 30% { opacity: .9; } 100% { opacity: 0; transform: rotate(10deg) scale(1.1); } }
/* doves: one 4-frame sprite strip translated in steps (compositor), flight = transform/opacity only, no filters */
.lxd-doves { position: absolute; left: 50%; top: 53%; width: 0; height: 0; z-index: 10; pointer-events: none; }
.lxd-dove { position: absolute; left: 0; top: 0; width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2); opacity: 0; will-change: transform, opacity; transform: translate3d(0,0,0) scale(.08);
  visibility: hidden; }
.is-open .lxd-dove { visibility: visible; animation: lxdFly var(--du) cubic-bezier(.45,.05,.75,.6) var(--dl) forwards; }
@keyframes lxdFly {
  0% { opacity: 0; transform: translate3d(0,0,0) scale(.08); }
  9% { opacity: 1; }
  45% { transform: translate3d(var(--mx), var(--my), 0) scale(calc(var(--sc) * .42)); }
  86% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--ex), var(--ey), 0) scale(var(--sc)); } }
.lxd-dw { position: absolute; inset: 0; overflow: hidden; transform: rotate(var(--rot)); }
.lxd-dove.is-r .lxd-dw { transform: rotate(var(--rot)) scaleX(-1); }
.lxd-ds { position: absolute; left: 0; top: 0; width: 400%; height: 100%; background: url(lux/dove-strip.webp) 0 0 / 100% 100% no-repeat; will-change: transform; }
.is-open .lxd-ds { animation: lxdFlap var(--fl) steps(4) infinite; }
@keyframes lxdFlap { from { transform: translate3d(0,0,0); } to { transform: translate3d(-100%,0,0); } }
.pi-in-grand { --hint: #f6e3b8; }
.pi-in-grand .pi-hint, .pi-in-archdoor .pi-hint { text-shadow: 0 1px 10px rgba(0,0,0,.7); transition: opacity .8s ease; }
.pi-in-grand.is-push-h .pi-hint, .pi-in-archdoor.is-push-h .pi-hint { opacity: 0; }
.pi-hint-t { transition: opacity .35s ease; }
.pi-hint-t.is-swap { opacity: 0; }
/* the hall behind the doors: pushes in with the camera (parallax), never zooms the other way */
.pi-t-grand .lx-cam, .pi-t-archdoor .lx-cam { transform: scale(1); transition: transform 3.6s cubic-bezier(.55,0,.25,1); }
.pi-t-grand.lx-reveal .lx-cam, .pi-t-grand.is-opened .lx-cam, .pi-t-archdoor.lx-reveal .lx-cam, .pi-t-archdoor.is-opened .lx-cam { transform: scale(1.08); }
/* Garden Door variant (arched oak door, limestone, wisteria) */
.lxd-v-garden .lxd-stage { transform-origin: 50% 48.9%; transform: translate3d(-50%, -50%, 0) scale(1.3); }
.is-push .lxd-v-garden .lxd-stage { transform: translate3d(-50%, -50%, 0) scale(2.95); }
.lxd-v-garden .lxd-open { left: 24.081%; top: 19.010%; width: 51.562%; height: 59.792%; perspective: 760px; }
.lxd-v-garden .lxd-seam, .lxd-v-garden .lxd-seam2 { top: 9%; }
.lxd-v-garden .lxd-light { border-radius: 50% 50% 0 0 / 19% 19% 0 0; background: radial-gradient(70% 55% at 50% 50%, #fffdf4, #fff1cf 45%, #f0d08c 100%); }
.lxd-v-garden .lxd-doves, .lxd-v-garden .lxd-rays, .lxd-v-garden .lxd-glow { top: 49%; }
.lxd-v-garden::after { background: linear-gradient(transparent 58%, rgba(30,24,16,.5) 84%, rgba(30,24,16,.78)); }
.pi-in-archdoor { --hint: #fbf1dc; }
@media (prefers-reduced-motion: reduce) { .lxd-cam, .lxd-seam { animation: none !important; transition: none !important; } .lxd-doves, .lxd-rays { display: none; } }

/* velvet: the lamp now fades the room up smoothly (was a deliberate on/off flicker on a filtered video layer) */
.pi-t-velvet .lx-bg::after { content: ''; position: absolute; inset: 0; z-index: 3; background: #0a0204; opacity: .84; transition: opacity 2.4s cubic-bezier(.4,0,.2,1); pointer-events: none; }
.pi-t-velvet.lx-lamp .lx-bg::after, .pi-t-velvet.is-opened .lx-bg::after { opacity: 0; }

/* =====================================================================
   v1.3 — FIVE DISTINCT INNER CARDS (one skin per luxury design)
   motion: transform + opacity only
   ===================================================================== */
.pi-skip .pi-l2 { display: none; }
.lx-night { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 20%, rgba(20,10,4,.25), rgba(14,7,3,.72) 75%); }
.lx-geo { position: absolute; inset: 0; background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23e0bd6e' stroke-width='1'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 36 H16 M56 36 H72 M36 0 V16 M36 56 V72'/%3E%3Cpath d='M0 0 L10 10 M72 0 L62 10 M0 72 L10 62 M72 72 L62 62'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 72px 72px repeat; opacity: .07; }
.lx-lilac { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(150,118,190,.22), rgba(120,90,160,.12) 50%, rgba(70,45,90,.35)); }
.lx-wis { position: absolute; top: -2%; width: 46vw; max-width: 260px; aspect-ratio: 240 / 1000; background: url(lux/wis-side.webp) 0 0 / 100% 100% no-repeat; transform-origin: 50% 0;  }
.lx-wis-l { left: 0; }
.lx-wis-r { right: 0; scale: -1 1; animation-delay: -4s; }
@keyframes lxWis { from { transform: rotate(-.8deg); } to { transform: rotate(.9deg); } }
.lx-wis-top { position: absolute; left: 0; right: 0; top: 0; height: 21vw; max-height: 140px; background: url(lux/wis-top.webp) 50% 0 / cover no-repeat; }

/* ===== v1.3.1 VIDEO DOORS (Grand Door, Garden Door) =====
   The opening is a pre-rendered film; only small 2D effects run live. No 3D, no large animated layers. */
.lxv { background-color: #120a07; }
.lxv::after { display: none !important; }
.lxv-box { position: absolute; left: 50%; top: 50%; width: max(100cqw, calc(100cqh * 9 / 16)); aspect-ratio: 9 / 16; transform: translate(-50%, -50%); cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; }
.lxv-box.is-knock { animation: lxvKnock .36s cubic-bezier(.3,.6,.4,1); }
@keyframes lxvKnock { 0% { translate: 0 0; } 22% { translate: 1.6px .4px; } 48% { translate: -1.1px 0; } 74% { translate: .5px 0; } 100% { translate: 0 0; } }
.lxv-poster, .lxv-vid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; -webkit-user-drag: none; user-select: none; border: 0; background: transparent; }
.lxv-vid { opacity: 0; }
.is-play .lxv-vid { opacity: 1; }
.lxv-gap { position: absolute; pointer-events: none; transition: opacity .6s ease; }
.lxv-gap[data-k="1"] .lxd-seam2 { opacity: .35; }
.lxv-gap[data-k="2"] .lxd-seam2 { opacity: .65; }
.lxv-gap[data-k="3"] .lxd-seam2 { opacity: 1; }
.is-open .lxv-gap, .is-open .lxv .lx-motes, .is-open .lxv .lxd-dust { opacity: 0 !important; transition: opacity .6s ease; }
.lxv .lx-mote { filter: none !important; }
.lxv .lxd-names { z-index: 8; }
.lxv-load { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; pointer-events: none;
  background: radial-gradient(60% 42% at 50% 47%, #2b1b0e 0%, #160d07 62%, #0f0805 100%); transition: opacity .8s ease, visibility .8s; }
.pi-intro:not(.lx-ready) .lxv > .lxv-load { opacity: 1; }
.pi-intro.lx-ready .lxv-load { opacity: 0; visibility: hidden; }
.lxv-orb { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(214,180,110,.28); box-shadow: 0 0 22px rgba(214,170,90,.18), inset 0 0 14px rgba(214,170,90,.12); }
.lxv-orb::before { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid transparent; border-top-color: #e9cf8c; border-right-color: rgba(233,207,140,.35); animation: lxSpin 1.4s cubic-bezier(.5,.15,.5,.85) infinite; }
.lxv-orb::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; transform: rotate(45deg); background: linear-gradient(135deg, #f7e3a6, #b88a3c); box-shadow: 0 0 10px rgba(247,227,166,.7); animation: lxvPulse 1.6s ease-in-out infinite alternate; }
@keyframes lxvPulse { from { opacity: .45; } to { opacity: 1; } }
.lxv-bar { position: relative; width: 132px; height: 1px; overflow: hidden; background: rgba(214,180,110,.16); }
.lxv-bar b { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(.04); transition: transform .35s ease; background: linear-gradient(90deg, #8f6a26, #f7e3a6 55%, #c9a052); }
.lx-vdoor:not(.is-opened):not(.lx-vbg) .lx-bg { visibility: hidden; }
.pi-poster .lxv-load { display: none !important; }
.pi-poster .lxv-vid { display: none; }

/* ===== v1.3.1 Android-safe pass for the card backgrounds and the Palace / Velvet / Château openings =====
   Phones drop or re-tile big layers when they are blended, blurred, or scaled up a lot while moving.
   So: no blend modes, no blur or drop-shadow filters on moving layers, no preserve-3d, no layout animation, and no large scale-ups. */
.lx-rays, .lx-smoke, .lxv-smoke, .lxc-rays, .lxe-glint { mix-blend-mode: normal !important; }
.lx-rays { opacity: .3; animation: none !important; }
.lx-smoke { opacity: .13; } .lx-smoke-b { opacity: .17; }
.lxv-smoke { opacity: .16; }
.lxc-rays { opacity: .5; animation: none !important; }
.lx-mote, .lxe-shadow, .lxe-pw-s, .lxe-pw-b, .lxv-bf .w, .fx-lxpetal, .fx-lxwhite { filter: none !important; }
.lxe-flap { transform-style: flat; }
.lxe-flap-sh { transform: none; }
@keyframes lxCloud { from { translate: -4% 0; } to { translate: 4% 0; } }
.lxc-cloud { margin-left: 0 !important; }
.is-open .lxc-cloud-a { transform: translate(-18%, 12%) scale(1.15); }
.is-open .lxc-cloud-b { transform: translate(18%, -12%) scale(1.15); }
.is-open .lxc-cloud-c { transform: scale(1.2); }
.is-open .lxc-cam { transform: scale(1.3); }
.pi-intro.is-zoom .lxe-wrap, .is-zoom .lxe-wrap { transform: translate(-50%, -60%) scale(1.7); }

/* white lace butterflies (rendered into the door films; used live only in render mode) */
.lxd-dove.lxb { height: calc(var(--sz) * .764); margin: calc(var(--sz) * -.382) calc(var(--sz) / -2); filter: drop-shadow(0 0 5px rgba(255,246,226,.55)); }
.lxb .lxd-dw { perspective: 260px; overflow: visible; }
.lxb-w { position: absolute; top: 0; bottom: 0; width: 50%; background: url(lux/bf-white.webp) no-repeat; background-size: 200% 100%; animation: lxbL var(--fl) ease-in-out infinite alternate; }
.lxb-l { left: 0; background-position: 0 50%; transform-origin: 100% 50%; }
.lxb-r { right: 0; background-position: 100% 50%; transform-origin: 0 50%; animation-name: lxbR; }
@keyframes lxbL { from { transform: rotateY(8deg); } to { transform: rotateY(66deg); } }
@keyframes lxbR { from { transform: rotateY(-8deg); } to { transform: rotateY(-66deg); } }
/* light loaders for the light designs */
.pi-in-palace .lxv-load, .pi-in-chateau .lxv-load { background: radial-gradient(60% 42% at 50% 47%, #fffaf2 0%, #f3e8da 62%, #eadccb 100%); }
.pi-in-velvet .lxv-load { background: radial-gradient(60% 42% at 50% 47%, #3a0d16 0%, #1e060b 62%, #140306 100%); }
.lxv-palace, .lxv-chateau { background-color: #f3ece2; }
.lxv-velvet { background-color: #1b0609; }
/* falling white rose petals on the card: few, small, transform/opacity only; paused when the page is hidden */
.pi-fx-paused .fx { animation-play-state: paused !important; }


/* =====================================================================
   v1.4 — FIVE LUXURY INNER CARDS (each its own composition)
   Phone-safe: static textures, no blend modes, no filters, no 3D;
   motion = transform + opacity on one block at a time.
   ===================================================================== */
.pi.zc .pi-sec { padding: 0; }
.zc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.zc h1, .zc h2, .zc h3, .zc p, .zc dl, .zc dd, .zc blockquote, .zc figure { margin: 0; }
.zc .pi-rv { transition: opacity 1.1s ease, transform 1.2s cubic-bezier(.2,.75,.2,1); }
.zc .zc-blk .pi-rv { opacity: 1; transform: none; transition: none; }
.zc .zc-names .zc-n, .zc .zc-names .zc-amp { display: block; }
.zc .zc-names2 i { font-style: normal; opacity: .8; }
.zc-couple { display: block; width: 100%; height: auto; }
/* v1.9.8: the couple silhouette takes the card's own colours (gradient zcCpl, or a flat --cpl) */
.zc-cpl { fill: var(--cpl, url(#zcCpl)); }
.zc-pic { overflow: hidden; }
.zc-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zc-illu { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 11% 12% 8%; box-sizing: border-box; background: var(--illu-bg, transparent); }
.zc-illu .zc-couple { max-height: 100%; width: auto; max-width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.12)); }
.zc-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; margin-top: 14px; padding: 10px 24px; box-sizing: border-box;
  font: 500 12px/1.25 'Jost', 'Tajawal', sans-serif; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  color: var(--acc); background: transparent; border: 1px solid var(--acc); border-radius: var(--btn-r, 0); -webkit-tap-highlight-color: transparent; }
.pi-l-ar .zc-btn { letter-spacing: 0; font-size: 15px; font-family: 'Tajawal', 'Jost', sans-serif; }
.zc-btn > .pi-l2 { display: block; font-size: .8em; margin-top: .2em; letter-spacing: .08em; }
.zc-btn-solid { width: 100%; margin-top: 20px; color: var(--btn-ink, #fff); background: var(--btn-bg, var(--acc)); border-color: transparent; }
.zc-btn-solid:disabled { opacity: .6; }
.pi.zc .zc-map { margin-top: 22px; height: 210px; border-radius: var(--map-r, 0); overflow: hidden; background: rgba(0,0,0,.12); }
.zc .zc-tl { list-style: none; margin: 0; padding: 0; }
.zc .zc-tl time { font-variant-numeric: tabular-nums; }
.zc-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.zc-gal figure { aspect-ratio: 1; overflow: hidden; }
.zc-gal figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zc-gal.g1 { grid-template-columns: 1fr; } .zc-gal.g3 figure:first-child { grid-column: span 2; aspect-ratio: 2; }
.pi.zc .pi-cd { display: flex; justify-content: center; gap: 8px; }
.pi.zc .pi-cd > div { position: relative; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.pi.zc .pi-cd > div::after { display: none; }
.pi.zc .pi-cd span { display: block; }
.zc .pi-form { margin-top: 22px; }
.zc .pi-thanks { padding-top: 10px; }
.zc .pi-thanks svg { display: block; width: 200px; height: auto; margin: 0 auto 10px; }
.zc .zc-foot { position: relative; z-index: 1; text-align: center; }
.zc .zc-foot a, .zc .zc-foot b { color: var(--foot, rgba(255,255,255,.85)); }
.zc .zc-sub { font-style: italic; opacity: .85; margin-top: 6px; }
.zc .zc-guest b { font-weight: 600; }
.zc h2 > .zc-ht > .pi-l2, .zc h3 > .pi-l2 { font-style: italic; }

/* ---------- 1) GRAND DOOR ---------- */
.pi.zc-grand { --ink: #f2e2bf; --muted: #c8ad7d; --acc: #d8b062; --line: rgba(216,176,98,.42); --paper: #1b0e06; --foot: #f2e2bf;
  --g1: #fff1c4; --g2: #d9ad57; --g3: #8f6420; --g4: #f4d88e; --btn-bg: linear-gradient(135deg, #9a6f28, #e9c97c 45%, #b8893a 70%, #8a6122); --btn-ink: #24150a; --btn-r: 2px; --illu-bg: radial-gradient(70% 60% at 50% 40%, #3a2312, #1d0f07); --illu-ln: rgba(30,15,6,.55);
  --gold-grad: linear-gradient(100deg, #8a6222 0%, #cfa652 18%, #fff0c2 32%, #ddb35c 46%, #9c7027 62%, #e8c87a 80%, #fff2c8 90%, #b98c3c 100%);
  --wal: url(lux/zg-walnut.webp); color: var(--ink); font-family: 'Marcellus', 'Amiri', serif; font-size: 18px; }
.pi-l-ar.zc-grand { font-family: 'Amiri', 'Marcellus', serif; }
.zc-grand .zc-names .zc-n, .zc-grand .zg-h .zc-ht, .zc-grand .zg-dd b, .zc-grand .zg-sign, .zc-grand .zc-bism { background-image: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.zg-cover { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; padding: 58px 14px 84px !important; }
.zg-win { position: relative; max-width: 470px; margin: 0 auto; box-sizing: border-box; width: 100%; padding: 96px 26px 30px; text-align: center;
  clip-path: polygon(0.00% 190.0px, 0.44% 128.0px, 0.85% 113.9px, 2.07% 100.6px, 4.05% 88.1px, 6.75% 76.2px, 10.15% 65.0px, 14.19% 54.5px, 18.85% 44.5px, 24.08% 35.1px, 29.85% 26.2px, 36.12% 17.7px, 42.85% 9.7px, 50.00% 2.0px, 50.00% 2.0px, 57.15% 9.7px, 63.88% 17.7px, 70.15% 26.2px, 75.92% 35.1px, 81.15% 44.5px, 85.81% 54.5px, 89.85% 65.0px, 93.25% 76.2px, 95.95% 88.1px, 97.93% 100.6px, 99.15% 113.9px, 99.56% 128.0px, 100.00% 190.0px, 100% 100%, 0 100%);
  background: linear-gradient(var(--acc), var(--acc)) 1px 128px / 1px calc(100% - 128px) no-repeat, linear-gradient(var(--acc), var(--acc)) right 1px top 128px / 1px calc(100% - 128px) no-repeat,
    linear-gradient(rgba(216,176,98,.55), rgba(216,176,98,.55)) 10px 131px / 1px calc(100% - 141px) no-repeat, linear-gradient(rgba(216,176,98,.55), rgba(216,176,98,.55)) right 10px top 131px / 1px calc(100% - 141px) no-repeat,
    linear-gradient(rgba(216,176,98,.55), rgba(216,176,98,.55)) 10px calc(100% - 10px) / calc(100% - 20px) 1px no-repeat, linear-gradient(var(--acc), var(--acc)) 0 calc(100% - 1px) / 100% 1px no-repeat,
    var(--wal) 0 0 / 256px 256px, #241309; }
.zg-win > .zo-arch { position: absolute; left: 0; top: 0; width: 100%; height: 190px; pointer-events: none; }
.zg-medal { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; }
.zg-medal img { position: absolute; left: 13%; top: 13%; width: 74%; height: 74%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(216,176,98,.6), 0 8px 22px -6px rgba(0,0,0,.7); }
.zg-medal .zo-medal { position: absolute; inset: 0; width: 100%; height: 100%; }
.zg-medal-s { width: 96px; height: 96px; margin-bottom: 14px; }
.zc-grand .zc-bism { font-family: 'Aref Ruqaa', 'Amiri', serif; font-weight: 700; font-size: 30px; line-height: 1.5; margin-bottom: 6px; direction: rtl; }
.zc-grand .zc-guest { font-size: 17px; color: var(--muted); margin-bottom: 8px; }
.zc-grand .zc-pre, .zc-grand .zc-inv { font-family: 'Marcellus', serif; font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); line-height: 1.7; }
.pi-l-ar.zc-grand .zc-pre, .pi-l-ar.zc-grand .zc-inv { font-family: 'Amiri', serif; font-size: 19px; letter-spacing: 0; text-transform: none; }
.zc-grand .zc-pre > .pi-l2, .zc-grand .zc-inv > .pi-l2 { font-family: 'Marcellus', serif; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-style: normal; }
.zg-names { margin: 18px 0 6px; line-height: 1.15; }
.zg-names .zc-n { font-family: 'Cinzel Decorative', 'Cinzel', serif; font-weight: 700; font-size: clamp(38px, 11vw, 52px); letter-spacing: .04em; }
.zg-names .zc-n.is-ar { font-family: 'Reem Kufi', 'Amiri', serif; font-weight: 600; font-size: clamp(48px, 14vw, 66px); letter-spacing: 0; line-height: 1.35; }
.zg-names .zc-amp svg { width: 22px; height: 22px; margin: 4px auto; display: block; }
.zc-grand .zc-names2 { font-family: 'Cinzel Decorative', serif; font-size: 17px; letter-spacing: .2em; color: var(--acc); margin: 4px 0 12px; }
.zc-grand .zc-names2.is-ar { font-family: 'Reem Kufi', serif; letter-spacing: 0; font-size: 24px; }
.zc-grand .zc-parents { font-size: 15px; color: var(--muted); margin: 6px 0 12px; }
.zg-date { display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; margin: 22px 0 8px; }
.zg-dw, .zg-dm { font-family: 'Marcellus', serif; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.zg-dm span { display: block; } .zg-y { color: var(--muted); }
.pi-l-ar.zc-grand .zg-dw, .pi-l-ar.zc-grand .zg-dm { font-family: 'Amiri', serif; font-size: 17px; letter-spacing: 0; text-transform: none; }
.zg-dw > .pi-l2, .zg-m > .pi-l2 { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .75; margin-top: 2px; font-family: 'Marcellus', serif; }
.zg-dd { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.zg-dd .zo-star { position: absolute; inset: 0; width: 100%; height: 100%; }
.zg-dd b { position: relative; font-family: 'Cinzel', serif; font-weight: 500; font-size: 40px; line-height: 1; }
.zg-time { font-size: 15px; letter-spacing: .14em; color: var(--muted); margin-bottom: 4px; }
.zg-time > .pi-l2 { display: inline; margin: 0 .4em; }
.zg-win > .zo-band { display: block; width: 100%; height: 22px; margin-top: 16px; color: var(--acc); }
.zc-grand .pi-cue { border-color: var(--acc); }
.zg-sec { padding: 12px 14px !important; }
.zg-panel { position: relative; max-width: 470px; margin: 0 auto; box-sizing: border-box; padding: 44px 24px 40px; text-align: center;
  background: var(--wal) 0 0 / 256px 256px, #241309;
  border: 1px solid rgba(216,176,98,.78); outline: 1px solid rgba(216,176,98,.36); outline-offset: -9px; box-shadow: 0 24px 40px -24px rgba(0,0,0,.85); }
.zg-corners { position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20.00 2.00L25.28 7.25L32.73 7.27L32.75 14.72L38.00 20.00L32.75 25.28L32.73 32.73L25.28 32.75L20.00 38.00L14.72 32.75L7.27 32.73L7.25 25.28L2.00 20.00L7.25 14.72L7.27 7.27L14.72 7.25Z' fill='none' stroke='%23d8b062' stroke-width='1.6'/%3E%3Ccircle cx='20' cy='20' r='4' fill='%23d8b062'/%3E%3C/svg%3E") left 2px top 2px / 15px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20.00 2.00L25.28 7.25L32.73 7.27L32.75 14.72L38.00 20.00L32.75 25.28L32.73 32.73L25.28 32.75L20.00 38.00L14.72 32.75L7.27 32.73L7.25 25.28L2.00 20.00L7.25 14.72L7.27 7.27L14.72 7.25Z' fill='none' stroke='%23d8b062' stroke-width='1.6'/%3E%3Ccircle cx='20' cy='20' r='4' fill='%23d8b062'/%3E%3C/svg%3E") right 2px top 2px / 15px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20.00 2.00L25.28 7.25L32.73 7.27L32.75 14.72L38.00 20.00L32.75 25.28L32.73 32.73L25.28 32.75L20.00 38.00L14.72 32.75L7.27 32.73L7.25 25.28L2.00 20.00L7.25 14.72L7.27 7.27L14.72 7.25Z' fill='none' stroke='%23d8b062' stroke-width='1.6'/%3E%3Ccircle cx='20' cy='20' r='4' fill='%23d8b062'/%3E%3C/svg%3E") left 2px bottom 2px / 15px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20.00 2.00L25.28 7.25L32.73 7.27L32.75 14.72L38.00 20.00L32.75 25.28L32.73 32.73L25.28 32.75L20.00 38.00L14.72 32.75L7.27 32.73L7.25 25.28L2.00 20.00L7.25 14.72L7.27 7.27L14.72 7.25Z' fill='none' stroke='%23d8b062' stroke-width='1.6'/%3E%3Ccircle cx='20' cy='20' r='4' fill='%23d8b062'/%3E%3C/svg%3E") right 2px bottom 2px / 15px no-repeat; }
.zg-panel > .zo-band { display: block; width: 100%; height: 22px; color: var(--acc); }
.zg-h { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; }
.zg-h::before, .zg-h::after { content: ''; flex: 0 0 46px; height: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14'%3E%3Cpath d='M0 7H40' stroke='%23d8b062' stroke-width='1'/%3E%3Cpath d='M50.00 0.50L51.91 2.38L54.60 2.40L54.62 5.09L56.50 7.00L54.62 8.91L54.60 11.60L51.91 11.62L50.00 13.50L48.09 11.62L45.40 11.60L45.38 8.91L43.50 7.00L45.38 5.09L45.40 2.40L48.09 2.38Z' fill='%23d8b062'/%3E%3C/svg%3E") center / contain no-repeat; }
.zg-h::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14'%3E%3Cpath d='M20 7H60' stroke='%23d8b062' stroke-width='1'/%3E%3Cpath d='M10.00 0.50L11.91 2.38L14.60 2.40L14.62 5.09L16.50 7.00L14.62 8.91L14.60 11.60L11.91 11.62L10.00 13.50L8.09 11.62L5.40 11.60L5.38 8.91L3.50 7.00L5.38 5.09L5.40 2.40L8.09 2.38Z' fill='%23d8b062'/%3E%3C/svg%3E"); }
.zg-h .zc-ht { font-family: 'Cinzel Decorative', 'Cinzel', serif; font-weight: 700; font-size: 21px; letter-spacing: .1em; line-height: 1.3; }
.pi-l-ar.zc-grand .zg-h .zc-ht { font-family: 'Reem Kufi', 'Amiri', serif; font-weight: 600; font-size: 30px; letter-spacing: 0; line-height: 1.45; }
.zg-h .zc-ht > .pi-l2 { display: block; font-family: 'Marcellus', serif; font-style: normal; font-weight: 400; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; -webkit-text-fill-color: var(--muted); color: var(--muted); margin-top: 4px; }
.pi-l-ar.zc-grand .zg-h .zc-ht > .pi-l2 { font-size: 11px; }
.zg-msgt { font-size: 20px; line-height: 1.75; padding: 20px 4px; }
.pi-l-ar.zc-grand .zg-msgt { font-size: 22px; }
.zg-msgt > .pi-l2, .zg-item p > .pi-l2 { font-family: 'Marcellus', serif; font-size: .78em; color: var(--muted); margin-top: .7em; }
.zg-starpic { position: relative; width: 230px; height: 230px; margin: 0 auto; }
.zg-pic .zc-pic { position: absolute; inset: 9px; clip-path: polygon(50.00% 0.00%,64.66% 14.62%,85.36% 14.64%,85.38% 35.34%,100.00% 50.00%,85.38% 64.66%,85.36% 85.36%,64.66% 85.38%,50.00% 100.00%,35.34% 85.38%,14.64% 85.36%,14.62% 64.66%,0.00% 50.00%,14.62% 35.34%,14.64% 14.64%,35.34% 14.62%); }
.zg-picline { position: absolute; inset: 0; width: 100%; height: 100%; }
.zg-pic .zc-illu { padding: 16% 20% 21%; } /* v1.9.8: the couple stays inside the star */
.zg-cap { margin-top: 14px; font-family: 'Cinzel Decorative', serif; font-size: 14px; letter-spacing: .24em; color: var(--acc); }
.pi-l-ar.zc-grand .zg-cap { font-family: 'Reem Kufi', serif; font-size: 20px; letter-spacing: 0; }
.zg-cap > .pi-l2 { font-size: 10px; letter-spacing: .24em; }
.zg-item { position: relative; padding: 18px 0; }
.zg-item + .zg-item { border-top: 1px solid var(--line); }
.zg-ic { display: block; width: 30px; height: 30px; margin: 0 auto 8px; }
.zg-ic svg { width: 100%; height: 100%; display: block; }
.zg-item h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--acc); margin-bottom: 8px; }
.pi-l-ar.zc-grand .zg-item h3 { font-family: 'Reem Kufi', serif; font-size: 19px; letter-spacing: 0; }
.zg-item h3 > .pi-l2 { font-style: normal; font-size: 10px; }
.zg-strong { font-size: 20px; color: #fff3d6; }
.zg-venue { padding: 64px 26px 22px; margin: 6px 0; }
.zg-venue > .zo-arch { position: absolute; left: 0; top: 18px; width: 100%; height: 70px; }
.zg-venue::after { content: ''; position: absolute; left: 0; right: 0; top: 88px; bottom: 0; border: 1px solid rgba(216,176,98,.55); border-top: 0; pointer-events: none; }
.zg-venue .zc-btn { margin-bottom: 4px; }
.zc-grand .zg-map { border: 1px solid rgba(216,176,98,.7); }
.zg-count .pi-cd { gap: 4px; }
.zg-count .zc-cell { width: 74px; height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.zg-count .zo-star { position: absolute; inset: 0; width: 100%; height: 100%; }
.zg-count .pi-cd b { position: relative; font-family: 'Cinzel', serif; font-size: 24px; line-height: 1; color: #f3d58c; }
.zg-count .pi-cd span { position: relative; font-family: 'Marcellus', serif; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.pi-l-ar.zc-grand .zg-count .pi-cd span { font-family: 'Amiri', serif; font-size: 12px; letter-spacing: 0; }
.zg-count .pi-cd span > .pi-l2 { display: none; }
.zg-tl { position: relative; margin-top: 6px !important; }
.zg-tl::before { content: ''; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; margin-left: -.5px; background: linear-gradient(transparent, var(--acc) 12%, var(--acc) 88%, transparent); }
.zg-tl li { display: grid; grid-template-columns: 1fr 26px 1fr; align-items: center; gap: 12px; padding: 13px 0; }
.zg-tl time { text-align: end; font-family: 'Cinzel', serif; font-size: 21px; color: #f3d58c; }
.zg-tl span { text-align: start; font-size: 17px; line-height: 1.4; }
.zg-tl span > .pi-l2 { color: var(--muted); font-family: 'Marcellus', serif; }
.zg-node { position: relative; display: block; width: 18px; height: 18px; justify-self: center; }
.zg-node svg { display: block; width: 100%; height: 100%; }
.zc-grand .pi-form input, .zc-grand .pi-form select, .zc-grand .pi-form textarea { color: var(--ink); }
.zc-grand .pi-form select option { color: #222; }
.zc-grand .pi-seg span { border-radius: 2px; border-color: var(--line); }
.zc-grand .pi-seg input:checked + span { background: linear-gradient(135deg, #9a6f28, #e9c97c 45%, #b8893a 70%, #8a6122); color: #24150a; border-color: transparent; }
.zc-grand .zc-sub { color: var(--muted); }
.zc-grand .pi-thanks-t { font-size: 22px; color: #f3d58c; }
.zg-close { padding: 30px 14px 6px !important; text-align: center; }
.zg-closein { max-width: 380px; margin: 0 auto; padding: 26px 20px; }
.zg-closing { font-size: 19px; color: var(--ink); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.zg-closing > .pi-l2 { color: var(--muted); }
.zg-sign { font-family: 'Reem Kufi', 'Cinzel Decorative', serif; font-size: 30px; margin-top: 10px; }
.zc-grand .zc-foot { padding-top: 10px; }
.zc-grand .pi-rv { transform: scale(.95); transform-origin: 50% 30%; }
.zc-grand .pi-rv.in { transform: none; }
.zc-grand .zg-win { text-shadow: none; }

/* ---------- 2) GARDEN DOOR ---------- */
.pi.zc-archdoor { --ink: #3d2d4b; --muted: #75657f; --acc: #7c5aa3; --line: rgba(124,90,163,.34); --paper: #f6f0e6; --foot: #fff;
  --g1: #d3bdea; --g2: #9473bd; --g3: #5c3e85; --g4: #bba0d9; --btn-r: 40px; --btn-bg: linear-gradient(135deg, #6c4d96, #9d7fc6); --map-r: 120px 120px 10px 10px;
  --illu-bg: radial-gradient(70% 60% at 50% 45%, #fbf7f0, #ece2f2); --illu-ln: rgba(255,255,255,.55);
  --lime: url(lux/limestone.webp); color: var(--ink); font-family: 'Cormorant Garamond', 'Mirza', serif; font-size: 19px; }
.pi-l-ar.zc-archdoor { font-family: 'Mirza', 'Cormorant Garamond', serif; }
.zc-archdoor .zc-names .zc-n, .zc-archdoor .za-wash b, .zc-archdoor .za-sign { background-image: linear-gradient(100deg, #4a2f6e 0%, #7d5aa8 30%, #a88bcc 48%, #6b4b93 66%, #8e6bb8 84%, #4f3374 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.za-cover { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; box-sizing: border-box; padding: 70px 14px 84px !important; }
.za-arch { position: relative; max-width: 460px; margin: 0 auto; box-sizing: border-box; padding: 104px 26px 38px; text-align: center;
  border-radius: 50% 50% 16px 16px / 170px 170px 16px 16px;
  background: var(--lime) 0 0 / 256px 256px, #efe6d7;
  outline: 1px solid rgba(124,90,163,.42); outline-offset: -9px; box-shadow: 0 26px 46px -26px rgba(48,26,64,.6); }
.za-arch::before { content: ''; position: absolute; inset: 15px; border: 1px solid rgba(178,148,92,.5); border-radius: 50% 50% 8px 8px / 158px 158px 8px 8px; pointer-events: none; }
.za-wis { position: absolute; top: -28px; left: -8%; width: 116%; height: auto; pointer-events: none; }
.za-in { position: relative; }
.za-main { padding-top: 132px; }
.zc-archdoor .zc-bism { font-family: 'Mirza', serif; font-weight: 600; font-size: 25px; color: var(--acc); margin-bottom: 8px; direction: rtl; }
.zc-archdoor .zc-guest { font-style: italic; color: var(--muted); }
.zc-archdoor .zc-pre, .zc-archdoor .zc-inv { font-family: 'Italiana', 'Cormorant Garamond', serif; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.pi-l-ar.zc-archdoor .zc-pre, .pi-l-ar.zc-archdoor .zc-inv { font-family: 'Mirza', serif; font-size: 20px; letter-spacing: 0; text-transform: none; }
.zc-archdoor .zc-pre > .pi-l2, .zc-archdoor .zc-inv > .pi-l2 { font-family: 'Cormorant Garamond', serif; font-style: italic; text-transform: none; letter-spacing: .02em; font-size: 15px; }
.za-names { margin: 16px 0 4px; line-height: 1.02; }
.za-names .zc-n { font-family: 'Allura', cursive; font-size: clamp(58px, 17vw, 76px); padding: 0 .1em; }
.za-names .zc-n.is-ar { font-family: 'Mirza', serif; font-weight: 600; font-size: clamp(46px, 13vw, 60px); line-height: 1.5; }
.za-names .zc-amp { font-family: 'Italiana', serif; font-size: 26px; color: #b49a62; margin: 2px 0; }
.zc-archdoor .zc-names2 { font-family: 'Allura', cursive; font-size: 34px; color: #8e6bb8; margin-bottom: 8px; }
.zc-archdoor .zc-names2.is-ar { font-family: 'Mirza', serif; font-size: 26px; }
.zc-archdoor .zc-parents { font-style: italic; color: var(--muted); font-size: 17px; }
.za-sprig svg, .za-in > svg.zo-wis, .za-closein svg.zo-wis, .zc-archdoor .pi-thanks svg { display: block; width: 210px; height: auto; margin: 10px auto 6px; }
.za-date { display: flex; flex-direction: column; align-items: center; margin-top: 18px; }
.za-dw, .za-my { font-family: 'Italiana', serif; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); }
.pi-l-ar.zc-archdoor .za-dw, .pi-l-ar.zc-archdoor .za-my { font-family: 'Mirza', serif; font-size: 19px; letter-spacing: 0; text-transform: none; }
.za-dw > .pi-l2, .za-my > .pi-l2 { display: inline; margin: 0 .35em; font-size: .72em; opacity: .7; }
.za-wash { position: relative; display: flex; align-items: center; justify-content: center; width: 116px; height: 104px; margin: 4px 0; background: radial-gradient(50% 50% at 46% 52%, rgba(171,140,208,.42), rgba(171,140,208,.18) 60%, rgba(171,140,208,0) 72%), radial-gradient(40% 36% at 62% 40%, rgba(196,175,226,.4), rgba(196,175,226,0) 70%); }
.za-wash b { font-family: 'Italiana', serif; font-weight: 400; font-size: 62px; line-height: 1; }
.za-time { font-style: italic; color: var(--muted); margin-top: 4px; }
.za-time > .pi-l2 { display: inline; margin: 0 .4em; }
.zc-archdoor .pi-cue { border-color: #fff; }
.zc-archdoor .pi-cue::after { background: #fff; }
.za-sec { padding: 40px 14px 0 !important; }
.za-plain { position: relative; max-width: 460px; margin: 0 auto; box-sizing: border-box; padding: 34px 22px 30px; text-align: center; border-radius: 16px;
  background: url(lux/za-lime-l.webp) 0 0 / 256px 256px, #f8f3ec; box-shadow: 0 20px 40px -26px rgba(48,26,64,.55); outline: 1px solid rgba(124,90,163,.3); outline-offset: -8px; }
.za-h { margin-bottom: 18px; }
.za-h .zc-ht { display: block; font-family: 'Allura', cursive; font-size: 46px; line-height: 1.1; color: var(--acc); }
.pi-l-ar.zc-archdoor .za-h .zc-ht { font-family: 'Mirza', serif; font-weight: 600; font-size: 30px; line-height: 1.5; }
.za-h .zc-ht > .pi-l2 { font-family: 'Italiana', serif; font-style: normal; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.za-msgt { font-size: 21px; line-height: 1.7; font-style: italic; padding: 4px 6px 0; }
.pi-l-ar.zc-archdoor .za-msgt { font-style: normal; font-size: 22px; }
.za-msgt > .pi-l2, .za-item p > .pi-l2 { font-family: 'Cormorant Garamond', serif; color: var(--muted); }
.za-photo { position: relative; max-width: 300px; margin: 0 auto; text-align: center; }
.za-photo .za-wis { top: -34px; left: -12%; width: 124%; z-index: 2; }
.za-pic .zc-pic { aspect-ratio: 4 / 5; border-radius: 50% 50% 10px 10px / 130px 130px 10px 10px; border: 6px solid #f4ede2; outline: 1px solid rgba(124,90,163,.5); outline-offset: -14px; box-shadow: 0 22px 40px -22px rgba(48,26,64,.65); }
.za-cap { font-family: 'Allura', cursive; font-size: 34px; color: #fff; margin-top: 8px; text-shadow: 0 1px 10px rgba(40,20,50,.7); }
.pi-l-ar.zc-archdoor .za-cap { font-family: 'Mirza', serif; font-size: 24px; }
.za-cap > .pi-l2 { font-family: 'Italiana', serif; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.za-count .pi-cd { gap: 8px; }
.za-count .zc-cell { width: 70px; padding: 22px 0 12px !important; border-radius: 40px 40px 6px 6px !important; background: radial-gradient(80% 60% at 50% 30%, rgba(196,175,226,.55), rgba(196,175,226,.18)) !important; box-shadow: inset 0 0 0 1px rgba(124,90,163,.35); }
.za-count .pi-cd b { font-family: 'Italiana', serif; font-size: 30px; line-height: 1; color: var(--ink); }
.za-count .pi-cd span { font-family: 'Italiana', serif; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.pi-l-ar.zc-archdoor .za-count .pi-cd span { font-family: 'Mirza', serif; font-size: 14px; letter-spacing: 0; }
.za-count .pi-cd span > .pi-l2 { display: none; }
.za-item { padding: 16px 0; }
.za-item + .za-item { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='3' fill='%238e6bb8'/%3E%3C/svg%3E") 50% 0 / 10px 10px no-repeat; }
.za-item h3 { font-family: 'Italiana', serif; font-weight: 400; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--acc); margin-bottom: 6px; }
.pi-l-ar.zc-archdoor .za-item h3 { font-family: 'Mirza', serif; font-weight: 600; font-size: 19px; letter-spacing: 0; }
.za-item h3 > .pi-l2 { font-style: normal; font-size: 10px; }
.za-strong { font-size: 21px; font-weight: 600; }
.za-tl { position: relative; text-align: start; padding-inline-start: 44px !important; margin-top: 4px !important; }
.za-tl::before { content: ''; position: absolute; inset-inline-start: 15px; top: 10px; bottom: 10px; width: 1.5px; background: linear-gradient(transparent, #9db08a 10%, #9db08a 90%, transparent); }
.za-tl li { position: relative; padding: 10px 0 12px; }
.za-tl time { display: block; font-family: 'Italiana', serif; font-size: 24px; color: var(--acc); line-height: 1.2; }
.za-tl span { display: block; font-size: 19px; }
.za-tl span > .pi-l2 { color: var(--muted); font-family: 'Cormorant Garamond', serif; font-style: italic; }
.za-node { position: absolute; inset-inline-start: -41px; top: 12px; width: 26px; height: 26px; }
.za-node svg { display: block; width: 100%; height: 100%; }
.zc-archdoor .pi-seg span { border-radius: 40px; }
.zc-archdoor .pi-thanks-t { color: var(--acc); }
.za-close { padding: 40px 14px 0 !important; text-align: center; }
.za-closein { max-width: 380px; margin: 0 auto; padding: 22px 20px 26px; border-radius: 50% 50% 16px 16px / 110px 110px 16px 16px; background: rgba(250,246,240,.9); box-shadow: 0 18px 36px -24px rgba(48,26,64,.6); }
.za-closing { font-style: italic; font-size: 20px; }
.za-sign { font-family: 'Allura', 'Mirza', cursive; font-size: 40px; margin-top: 6px; line-height: 1.3; }
.zc-archdoor .zc-foot { padding-top: 22px; }
.zc-archdoor .zc-foot a, .zc-archdoor .zc-foot b { text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.zc-archdoor .pi-rv { transform: translate3d(0, 30px, 0) scale(.97); transform-origin: 50% 100%; }
.zc-archdoor .pi-rv.in { transform: none; }

/* ---------- 3) ROYAL PALACE ---------- */
.pi.zc-palace { --ink: #4a3226; --muted: #8a6a55; --acc: #a77a2c; --line: rgba(167,122,44,.4); --paper: #fbf4ea; --foot: #fff;
  --g1: #f6dd9a; --g2: #c49440; --g3: #8a6020; --g4: #e9c77c; --btn-r: 0; --btn-bg: linear-gradient(135deg, #9a6f28, #e4c173 45%, #b8893a 70%, #8a6122); --btn-ink: #2a1a0c;
  --illu-bg: radial-gradient(60% 55% at 50% 45%, #fffaf3, #f1e2d6); --illu-ln: rgba(255,255,255,.5);
  --gold-grad: linear-gradient(100deg, #7a5418 0%, #c09040 18%, #f1d58e 30%, #c9993e 44%, #8a6020 60%, #d6ad5a 76%, #f3dc9c 86%, #a77826 100%);
  color: var(--ink); font-family: 'Cormorant Garamond', 'Amiri', serif; font-size: 19px; }
.pi-l-ar.zc-palace { font-family: 'Amiri', 'Cormorant Garamond', serif; }
.zc-palace .zc-names .zc-n, .zc-palace .zp-date b, .zc-palace .zp-h .zc-ht, .zc-palace .zp-sign { background-image: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.zc-palace .pi-card { padding: 22px 10px 0; }
.zp-sheet { position: relative; max-width: 470px; margin: 0 auto; container-type: inline-size; padding-bottom: 1px; box-shadow: 0 34px 60px -30px rgba(70,35,25,.55); }
.zp-sheet::before, .zp-sheet::after { content: ''; position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none; }
.zp-sheet::before { top: 0; aspect-ratio: 900 / 423; background: url(lux/zp-top.webp) 0 0 / 100% 100% no-repeat; }
.zp-sheet::after { bottom: 0; aspect-ratio: 900 / 317; background: url(lux/zp-bot.webp) 0 0 / 100% 100% no-repeat; }
.zp-mid { position: absolute; left: 0; right: 0; z-index: 0; top: calc(100cqw * 423 / 900 - 1px); bottom: calc(100cqw * 317 / 900 - 1px); background: url(lux/zp-mid.webp) 0 0 / 100% auto repeat-y; }
.zp-sheet > .pi-sec { position: relative; z-index: 1; padding: 22px 13% !important; text-align: center; }
.zp-sheet > .zp-cover { padding-top: 21cqw !important; padding-bottom: 54px !important; }
.zp-crown svg { display: block; width: 66px; height: auto; margin: 0 auto 12px; }
.zc-palace .zc-bism { font-family: 'Amiri', serif; font-weight: 700; font-size: 24px; color: var(--acc); margin-bottom: 8px; direction: rtl; }
.zc-palace .zc-guest { font-style: italic; color: var(--muted); margin-bottom: 6px; }
.zc-palace .zc-pre, .zc-palace .zc-inv { font-family: 'Cinzel', serif; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); line-height: 1.8; }
.pi-l-ar.zc-palace .zc-pre, .pi-l-ar.zc-palace .zc-inv { font-family: 'Amiri', serif; font-size: 19px; letter-spacing: 0; text-transform: none; }
.zc-palace .zc-pre > .pi-l2, .zc-palace .zc-inv > .pi-l2 { font-family: 'Cormorant Garamond', serif; font-style: italic; text-transform: none; letter-spacing: .02em; font-size: 15px; }
.zp-names { margin: 14px 0 2px; line-height: 1.05; }
.zp-names .zc-n { font-family: 'Great Vibes', cursive; font-size: clamp(54px, 15.5vw, 70px); padding: 0 .12em; }
.zp-names .zc-n.is-ar { font-family: 'Aref Ruqaa', 'Amiri', serif; font-weight: 700; font-size: clamp(48px, 13.5vw, 62px); line-height: 1.45; }
.zp-names .zc-amp { font-family: 'Cinzel', serif; font-size: 20px; color: var(--acc); margin: 2px 0; }
.zc-palace .zc-names2 { font-family: 'Great Vibes', cursive; font-size: 32px; color: var(--acc); margin-bottom: 8px; }
.zc-palace .zc-names2.is-ar { font-family: 'Aref Ruqaa', serif; font-size: 26px; }
.zc-palace .zc-parents { font-style: italic; color: var(--muted); font-size: 17px; margin-bottom: 6px; }
.zp-ros svg { display: block; width: 190px; height: auto; margin: 14px auto; }
.zp-date { display: flex; align-items: center; justify-content: center; gap: 12px; }
.zp-dw, .zp-mo { flex: 1; max-width: 96px; padding: 7px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.pi-l-ar.zc-palace .zp-dw, .pi-l-ar.zc-palace .zp-mo { font-family: 'Amiri', serif; font-size: 17px; letter-spacing: 0; text-transform: none; }
.zp-dw > .pi-l2, .zp-mo > .pi-l2 { display: block; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; font-family: 'Cinzel', serif; opacity: .7; margin-top: 2px; }
.zp-date b { font-family: 'Cinzel', serif; font-weight: 400; font-size: 54px; line-height: 1; }
.zp-yr { font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: .5em; margin-top: 8px; color: var(--muted); }
.zp-time { font-style: italic; color: var(--muted); margin-top: 2px; }
.zp-time > .pi-l2 { display: inline; margin: 0 .4em; }
.zc-palace .pi-cue { bottom: 18px; }
.zp-cameo .zc-pic { width: 190px; height: 238px; margin: 6px auto 0; border-radius: 50%; border: 3px solid #c9a050; outline: 1px solid rgba(167,122,44,.7); outline-offset: 5px; box-shadow: 0 16px 30px -18px rgba(90,50,30,.6); }
.zp-cap { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.pi-l-ar.zc-palace .zp-cap { font-family: 'Amiri', serif; font-size: 18px; letter-spacing: 0; }
.zp-cap > .pi-l2 { font-size: 10px; }
.zp-msgt { font-size: 21px; line-height: 1.65; font-style: italic; }
.pi-l-ar.zc-palace .zp-msgt { font-style: normal; font-size: 21px; }
.zp-msgt > .pi-l2, .zp-item p > .pi-l2 { font-family: 'Cormorant Garamond', serif; color: var(--muted); }
.zp-h { margin-bottom: 14px; }
.zp-h .zc-ht { display: block; font-family: 'Cinzel', serif; font-weight: 500; font-size: 17px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.5; }
.pi-l-ar.zc-palace .zp-h .zc-ht { font-family: 'Aref Ruqaa', serif; font-weight: 700; font-size: 28px; letter-spacing: 0; text-transform: none; }
.zp-h .zc-ht > .pi-l2 { font-family: 'Cormorant Garamond', serif; font-size: 15px; letter-spacing: .04em; text-transform: none; -webkit-text-fill-color: var(--muted); color: var(--muted); font-weight: 400; }
.zp-h::after { content: ''; display: block; width: 64px; height: 7px; margin: 10px auto 0; background: linear-gradient(var(--acc), var(--acc)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; }
.zp-item { padding: 14px 0; }
.zp-item + .zp-item { position: relative; border-top: 1px solid var(--line); }
.zp-item + .zp-item::before { content: ''; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; margin-left: -3.5px; background: #fbf4ea; border: 1px solid var(--acc); transform: rotate(45deg); }
.zp-item h3 { font-family: 'Cinzel', serif; font-weight: 400; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--acc); margin-bottom: 6px; }
.pi-l-ar.zc-palace .zp-item h3 { font-family: 'Amiri', serif; font-weight: 700; font-size: 18px; letter-spacing: 0; }
.zp-item h3 > .pi-l2 { font-size: 10px; font-style: normal; }
.zp-strong { font-size: 21px; font-weight: 600; }
.zc-palace .zp-map { border: 1px solid rgba(167,122,44,.5); }
.zp-count .pi-cd { gap: 0; }
.zp-count .zc-cell { flex: 1; max-width: 72px; }
.zp-count .zc-cell + .zc-cell::before { content: ''; position: absolute; left: 0; top: 16px; width: 5px; height: 5px; margin-left: -2.5px; background: var(--acc); transform: rotate(45deg); }
[dir=rtl] .zp-count .zc-cell + .zc-cell::before { left: auto; right: 0; margin: 0 -2.5px 0 0; }
.zp-count .pi-cd b { font-family: 'Cinzel', serif; font-size: 30px; color: var(--acc); line-height: 1.2; }
.zp-count .pi-cd span { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pi-l-ar.zc-palace .zp-count .pi-cd span { font-family: 'Amiri', serif; font-size: 13px; letter-spacing: 0; }
.zp-count .pi-cd span > .pi-l2 { display: none; }
.zp-tl { text-align: start; }
.zp-tl li { display: grid; grid-template-columns: minmax(0, auto) 1fr auto; align-items: start; gap: 8px; padding: 9px 0; }
.zp-tl span { order: 1; font-size: 19px; max-width: 12em; line-height: 1.35; }
.zp-tl .zp-lead { order: 2; min-width: 14px; height: 1em; border-bottom: 1px dotted rgba(167,122,44,.7); }
.zp-tl time { order: 3; font-family: 'Cinzel', serif; font-size: 15px; color: var(--acc); letter-spacing: .06em; line-height: 1.7; }
.zp-tl span > .pi-l2 { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--muted); }
.zp-reply { position: relative; margin: 10px -4% 0; padding: 34px 22px 28px; background: url(lux/pal-paper.webp) center / cover, #f5e3dc; border: 1px solid rgba(167,122,44,.35); box-shadow: 0 16px 30px -18px rgba(90,50,30,.55); }
.zp-c { position: absolute; width: 34px; height: 34px; pointer-events: none; }
.zp-c svg { display: block; width: 100%; height: 100%; }
.zp-c1 { left: 6px; top: 6px; } .zp-c2 { right: 6px; top: 6px; transform: scaleX(-1); } .zp-c3 { left: 6px; bottom: 6px; transform: scaleY(-1); } .zp-c4 { right: 6px; bottom: 6px; transform: scale(-1, -1); }
.zc-palace .pi-seg span { border-radius: 0; }
.zc-palace .pi-seg input:checked + span { background: linear-gradient(135deg, #9a6f28, #e4c173 45%, #b8893a 70%, #8a6122); color: #2a1a0c; border-color: transparent; }
.zc-palace .zc-sub { color: var(--muted); }
.zp-sheet > .zp-close { padding-bottom: 27cqw !important; }
.zp-closing { font-style: italic; font-size: 21px; }
.zp-sign { font-family: 'Great Vibes', 'Aref Ruqaa', cursive; font-size: 40px; line-height: 1.4; margin-top: 4px; }
.zc-palace .zc-foot a, .zc-palace .zc-foot b { text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.zc-palace .pi-rv { transform: translate3d(0, 12px, 0); transition-duration: 1.4s; }
.zc-palace .pi-rv.in { transform: none; }

/* ---------- 4) VELVET ROSE ---------- */
.pi.zc-velvet { --ink: #f6e7ca; --muted: #d2b28a; --acc: #e2bd6c; --line: rgba(226,189,108,.38); --paper: #2b0a11; --foot: #f6e7ca;
  --g1: #fff0c4; --g2: #d9a94f; --g3: #8e5f1c; --g4: #f2d283; --btn-bg: transparent; --btn-ink: var(--acc); --illu-bg: radial-gradient(60% 50% at 50% 35%, #5a1522, #2a070d); --illu-ln: rgba(40,6,12,.6);
  --gold-grad: linear-gradient(100deg, #8a5f1c 0%, #d5a64e 18%, #fff0c4 30%, #e2b964 44%, #9c6b22 60%, #eccb7c 76%, #fff3cf 86%, #b9873a 100%);
  --vel: url(lux/zv-velvet.webp); color: var(--ink); font-family: 'Playfair Display', 'Amiri', serif; font-size: 18px; }
.pi-l-ar.zc-velvet { font-family: 'Amiri', 'Playfair Display', serif; }
.zc-velvet .zv-mono span, .zc-velvet .zc-names .zc-n, .zc-velvet .zv-date b, .zc-velvet .zv-no, .zc-velvet .zv-sign { background-image: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.zv-cover { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; padding: 64px 28px 92px !important; text-align: start; overflow: hidden; }
.zv-spot { position: absolute; left: 50%; top: -8%; width: 150%; height: 76%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,222,160,.26), rgba(255,222,160,.08) 55%, transparent); pointer-events: none; }
.zv-cover > * { position: relative; }
.zv-mono { width: 220px; height: 220px; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; direction: ltr; border-radius: 50%; background: radial-gradient(closest-side, rgba(34,4,9,.82), rgba(34,4,9,.62) 70%, rgba(34,4,9,0)); }
.zv-mono::before, .zv-mono::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.zv-mono::before { inset: 0; border: 1px solid rgba(226,189,108,.62); }
.zv-mono::after { inset: 9px; border: 1px solid rgba(226,189,108,.22); }
.zv-mono span { font-family: 'Playfair Display', 'Amiri', serif; font-style: italic; font-size: 112px; line-height: 1; }
.zv-mono span:first-child { transform: translate(8px, -16px); }
.zv-mono span:last-child { transform: translate(-8px, 18px); }
.zv-mono i { font-family: 'Pinyon Script', cursive; font-style: normal; font-size: 40px; color: var(--acc); margin: 0 -6px; transform: translateY(4px); }
.zc-velvet .zc-bism { font-family: 'Amiri', serif; font-weight: 700; font-size: 24px; color: var(--acc); text-align: center; margin-bottom: 18px; direction: rtl; }
.zc-velvet .zc-guest { font-style: italic; color: var(--muted); margin-bottom: 6px; }
.zc-velvet .zc-pre { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--acc); }
.zc-velvet .zc-pre::after { content: ''; flex: 1; max-width: 70px; height: 1px; background: var(--acc); }
.pi-l-ar.zc-velvet .zc-pre { font-size: 18px; letter-spacing: 0; text-transform: none; }
.zc-velvet .zc-pre > .pi-l2 { display: none; }
.zc-velvet .zc-inv { font-style: italic; font-size: 17px; color: var(--muted); margin-top: 6px; }
.pi-l-ar.zc-velvet .zc-inv { font-style: normal; font-size: 19px; }
.zc-velvet .zc-inv > .pi-l2 { font-family: 'Playfair Display', serif; font-style: italic; font-size: 14px; }
.zv-names { display: flex; flex-direction: column; margin: 14px 0 6px; line-height: 1; }
.zv-names .zc-n { font-family: 'Pinyon Script', cursive; font-size: clamp(60px, 18vw, 80px); padding: 0 .12em; }
.zv-names .zc-n:first-child { align-self: flex-start; }
.zv-names .zc-n:last-child { align-self: flex-end; }
.zv-names .zc-n.is-ar { font-family: 'Amiri', serif; font-weight: 700; font-size: clamp(50px, 15vw, 66px); line-height: 1.45; }
.zv-names .zc-amp { align-self: center; font-family: 'Playfair Display', serif; font-style: italic; font-size: 30px; color: var(--acc); }
.zc-velvet .zc-names2 { font-family: 'Playfair Display', serif; font-style: italic; font-size: 20px; letter-spacing: .06em; color: var(--acc); text-align: end; }
.zc-velvet .zc-names2.is-ar { font-family: 'Amiri', serif; font-style: normal; }
.zc-velvet .zc-parents { font-style: italic; color: var(--muted); font-size: 16px; margin-top: 8px; }
.zv-date { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.zv-date b { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 104px; line-height: .9; }
.zv-dm { display: flex; flex-direction: column; gap: 2px; padding-inline-start: 16px; border-inline-start: 1px solid var(--acc); }
.zv-m { font-style: italic; font-size: 28px; line-height: 1.1; }
.zv-m > .pi-l2 { font-size: 14px; display: block; opacity: .75; }
.zv-y { font-size: 14px; letter-spacing: .4em; color: var(--acc); }
.zv-dw { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.pi-l-ar.zc-velvet .zv-dw { font-size: 16px; letter-spacing: 0; }
.zv-dw > .pi-l2 { display: inline; margin: 0 .4em; }
.zc-velvet .pi-cue { border-color: var(--acc); }
.pi.zc-velvet .zv-sec { padding: 0; background: radial-gradient(80% 36% at 24% 0%, rgba(255,214,150,.17), transparent 72%), linear-gradient(rgba(36,4,10,.22), rgba(20,2,6,.5)), var(--vel) center / cover, #3a0b14; border-top: 1px solid rgba(226,189,108,.55); }
[dir=rtl] .pi.zc-velvet .zv-sec { background: radial-gradient(80% 36% at 76% 0%, rgba(255,214,150,.17), transparent 72%), linear-gradient(rgba(36,4,10,.22), rgba(20,2,6,.5)), var(--vel) center / cover, #3a0b14; }
.zv-page { position: relative; box-sizing: border-box; padding: 50px 28px 52px; text-align: start; }
.zv-head { display: flex; align-items: flex-end; gap: 14px; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.zv-no { font-family: 'Playfair Display', serif; font-style: italic; font-size: 46px; line-height: .9; }
.zv-h .zc-ht { display: block; font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink); padding-bottom: 4px; }
.pi-l-ar.zc-velvet .zv-h .zc-ht { font-family: 'Amiri', serif; font-weight: 700; font-size: 24px; letter-spacing: 0; text-transform: none; padding-bottom: 0; }
.zv-h .zc-ht > .pi-l2 { font-family: 'Playfair Display', serif; font-style: italic; font-size: 13px; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.zv-quote { position: relative; padding-top: 34px; }
.zv-quote::before { content: '\201C'; position: absolute; top: -18px; inset-inline-start: -4px; font-family: 'Playfair Display', serif; font-size: 110px; line-height: 1; color: var(--acc); opacity: .55; }
.zv-quote p { font-style: italic; font-size: 24px; line-height: 1.5; }
.pi-l-ar.zc-velvet .zv-quote p { font-style: normal; font-size: 24px; }
.zv-quote p > .pi-l2, .zv-dl p > .pi-l2, .zv-text > .pi-l2 { font-family: 'Playfair Display', serif; font-style: italic; color: var(--muted); font-size: .72em; margin-top: .8em; }
.zv-photo { position: relative; width: 74%; margin: 6px auto 0; }
.zv-photo::before { content: ''; position: absolute; inset: 16px -14px -14px 16px; border: 1px solid var(--acc); pointer-events: none; }
.zv-pic .zc-pic { position: relative; aspect-ratio: 4 / 5; }
.zv-cap { margin-top: 30px; text-align: center; font-size: 11px; letter-spacing: .36em; text-transform: uppercase; color: var(--acc); }
.pi-l-ar.zc-velvet .zv-cap { font-size: 18px; letter-spacing: 0; }
.zv-cap span > .pi-l2 { font-size: 10px; letter-spacing: .3em; }
.zv-dl { display: grid; }
.zv-row { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.zv-row dt { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--acc); padding-top: 5px; }
.pi-l-ar.zc-velvet .zv-row dt { font-size: 16px; letter-spacing: 0; padding-top: 2px; }
.zv-row dt > .pi-l2 { font-size: 9.5px; display: block; }
.zv-row dd { font-size: 18px; line-height: 1.5; }
.zv-strong { font-size: 20px; color: #fff4dc; }
.zv-row .zc-btn { margin-top: 12px; padding: 8px 18px; }
.zc-velvet .zv-map { border: 1px solid var(--line); }
.zv-count .pi-cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.zv-count .zc-cell { text-align: center; padding: 4px 0 !important; }
.zv-count .zc-cell + .zc-cell { border-inline-start: 1px solid var(--line) !important; }
.zv-count .pi-cd b { font-family: 'Playfair Display', serif; font-size: 44px; line-height: 1.05; color: #f2d189; }
.zv-count .pi-cd span { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.pi-l-ar.zc-velvet .zv-count .pi-cd span { font-size: 14px; letter-spacing: 0; }
.zv-count .pi-cd span > .pi-l2 { display: none; }
.zv-tl li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.zv-tl time { font-style: italic; font-size: 26px; color: var(--acc); }
.zv-tl span { font-size: 18px; }
.zv-tl span > .pi-l2 { font-family: 'Playfair Display', serif; font-style: italic; color: var(--muted); }
.zv-text { font-size: 19px; line-height: 1.6; }
.zv-big { font-family: 'Playfair Display', serif; font-style: italic; font-size: 76px; line-height: 1; margin-bottom: 18px; color: transparent; -webkit-text-stroke: 1px rgba(226,189,108,.75); letter-spacing: .02em; }
.zc-velvet .pi-form input, .zc-velvet .pi-form select, .zc-velvet .pi-form textarea { color: var(--ink); }
.zc-velvet .pi-form select option { color: #222; }
.zc-velvet .pi-seg span { border-radius: 0; }
.zc-velvet .pi-seg input:checked + span { background: var(--acc); color: #2b0a11; }
.zc-velvet .zc-btn-solid { border: 1px solid var(--acc); letter-spacing: .3em; }
.zc-velvet .zc-sub { color: var(--muted); }
.zc-velvet .pi-thanks-t { color: var(--acc); }
.zc-velvet .pi-thanks .zo-deco, .zv-closein .zo-deco { color: var(--acc); }
.zv-close { padding: 0 !important; text-align: center; background: linear-gradient(rgba(20,2,6,.55), rgba(20,2,6,.85)); border-top: 1px solid rgba(226,189,108,.55); }
.zv-closein { padding: 44px 26px 16px; }
.zv-closein .zo-deco { display: block; width: 220px; height: auto; margin: 0 auto 14px; }
.zv-closing { font-style: italic; font-size: 20px; }
.zv-sign { font-family: 'Pinyon Script', 'Amiri', cursive; font-size: 44px; line-height: 1.4; margin-top: 6px; }
.zc-velvet .zc-foot { background: rgba(20,2,6,.85); margin: 0; }
.zc-velvet .pi-rv { transform: translate3d(-26px, 0, 0); }
[dir=rtl] .zc-velvet .pi-rv { transform: translate3d(26px, 0, 0); }
.zc-velvet .pi-rv.in, [dir=rtl] .zc-velvet .pi-rv.in { transform: none; }

/* ---------- 5) GARDEN CHÂTEAU ---------- */
.pi.zc-chateau { --ink: #3e4838; --muted: #79836f; --acc: #6f845b; --line: rgba(111,132,91,.36); --paper: #fbf9f3; --foot: #fff;
  --g1: #eadbad; --g2: #bc9e5a; --g3: #8a7038; --g4: #dcc48e; --btn-r: 3px; --btn-bg: linear-gradient(135deg, #6f845b, #93a77d); --map-r: 4px;
  --illu-bg: radial-gradient(60% 55% at 50% 42%, #fbfaf5, #e9eee0); --illu-ln: rgba(255,255,255,.55);
  color: var(--ink); font-family: 'Cormorant Garamond', 'El Messiri', serif; font-size: 19px; }
.pi-l-ar.zc-chateau { font-family: 'El Messiri', 'Cormorant Garamond', serif; }
.zc-chateau .zc-names .zc-amp, .zc-chateau .zh-tag b { background-image: linear-gradient(100deg, #8a7038, #d8c08a 40%, #a88a48 70%, #e4d09c); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.zh-table { padding-bottom: 6px; }
.zh-card { position: relative; width: 88%; max-width: 440px; margin: 0 auto; box-sizing: border-box; padding: 38px 26px 34px; text-align: center;
  background: url(lux/zc-paper.webp) center / cover, #f7f4ec; border-radius: 2px; transform: rotate(var(--r, 0deg));
  box-shadow: 0 1px 2px rgba(80,70,50,.12), 0 20px 34px -18px rgba(50,48,30,.5); }
.zh-cover { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; box-sizing: border-box; padding: 64px 0 90px !important; }
.zh-main { width: 86%; padding: 108px 24px 46px; }
.zh-wreath { position: absolute; left: 50%; top: -18px; width: 280px; margin-left: -140px; pointer-events: none; }
.zh-wreath svg, .zh-fl svg, .zh-thx svg, .zh-stamp svg { display: block; width: 100%; height: auto; }
.zc-chateau .zc-bism { font-family: 'El Messiri', serif; font-weight: 600; font-size: 22px; color: var(--acc); margin-bottom: 6px; direction: rtl; }
.zc-chateau .zc-guest { font-style: italic; color: var(--muted); margin-bottom: 4px; }
.zc-chateau .zc-pre, .zc-chateau .zc-inv { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.pi-l-ar.zc-chateau .zc-pre, .pi-l-ar.zc-chateau .zc-inv { font-family: 'El Messiri', serif; font-size: 18px; letter-spacing: 0; text-transform: none; }
.zc-chateau .zc-pre > .pi-l2, .zc-chateau .zc-inv > .pi-l2 { font-family: 'Cormorant Garamond', serif; font-style: italic; text-transform: none; letter-spacing: .02em; font-size: 15px; }
.zh-names { margin: 12px 0 4px; line-height: 1.08; color: #556a45; }
.zh-names .zc-n { font-family: 'Parisienne', cursive; font-size: clamp(50px, 14.5vw, 64px); }
.zh-names .zc-n.is-ar { font-family: 'El Messiri', serif; font-weight: 600; font-size: clamp(42px, 12vw, 54px); line-height: 1.5; }
.zh-names .zc-amp { font-family: 'Parisienne', cursive; font-size: 34px; margin: -2px 0; }
.zc-chateau .zc-names2 { font-family: 'Parisienne', cursive; font-size: 28px; color: #8a7a4c; margin-bottom: 8px; }
.zc-chateau .zc-names2.is-ar { font-family: 'El Messiri', serif; font-size: 22px; }
.zc-chateau .zc-parents { font-style: italic; color: var(--muted); font-size: 17px; margin-bottom: 4px; }
.zh-tag { position: relative; z-index: 2; width: 170px; box-sizing: border-box; margin: -40px 7% 0 auto; padding: 30px 12px 18px; text-align: center; transform: rotate(var(--r, 0deg));
  background: linear-gradient(#f4f1e6, #ece8da); border-radius: 4px 4px 10px 10px; box-shadow: 0 1px 2px rgba(80,70,50,.15), 0 16px 26px -14px rgba(50,48,30,.55); }
[dir=rtl] .zh-tag { margin: -40px auto 0 7%; }
.zh-hole { position: absolute; left: 50%; top: 10px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: rgba(120,110,80,.35); box-shadow: 0 0 0 3px #f8f6ee, 0 0 0 4px rgba(150,130,90,.35); }
.zh-hole::after { content: ''; position: absolute; left: 4px; bottom: 6px; width: 1.4px; height: 54px; background: #b9a678; transform: rotate(22deg); transform-origin: 50% 100%; }
.zh-dw, .zh-my { display: block; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.pi-l-ar.zc-chateau .zh-dw, .pi-l-ar.zc-chateau .zh-my { font-family: 'El Messiri', serif; font-size: 15px; letter-spacing: 0; }
.zh-dw > .pi-l2, .zh-my > .pi-l2 { display: block; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.zh-tag b { display: block; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 58px; line-height: 1.05; }
.zh-tm { display: block; margin-top: 4px; font-style: italic; font-size: 15px; color: var(--ink); }
.zh-tm > .pi-l2 { display: block; font-size: 12px; margin-top: 1px; }
.zc-chateau .pi-cue { border-color: #fff; }
.zc-chateau .pi-cue::after { background: #fff; }
.zh-sec { padding: 34px 0 0 !important; }
.zh-polaroid { position: relative; width: 66%; max-width: 300px; margin: 0 auto; box-sizing: border-box; padding: 12px 12px 10px; background: #fdfdfb; transform: rotate(var(--r, 0deg)); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 18px 30px -16px rgba(40,40,30,.55); text-align: center; }
.zh-tape { position: absolute; z-index: 2; left: 50%; top: -13px; width: 98px; height: 26px; margin-left: -49px; background: rgba(208,218,192,.82); transform: rotate(-5deg);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 16% 8%, 84% 6%, 88% 0, 92% 10%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 84% 92%, 16% 94%, 12% 100%, 8% 90%, 4% 100%, 0 92%); }
.zh-pic .zc-pic { aspect-ratio: 1; background: #eef0e6; }
.zh-cap { font-family: 'Parisienne', cursive; font-size: 28px; color: #5d6f4d; margin-top: 8px; line-height: 1.3; }
.pi-l-ar.zc-chateau .zh-cap { font-family: 'El Messiri', serif; font-size: 20px; }
.zh-cap > .pi-l2 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-family: 'Cormorant Garamond', serif; }
.zh-fl { position: absolute; width: 112px; pointer-events: none; }
.zh-fl-a { left: -18px; top: -26px; }
.zh-fl-b { right: -20px; bottom: -22px; }
.zh-fl-c { right: -10px; top: -30px; width: 96px; }
.zh-note { padding-top: 48px; }
.zh-msgt { font-size: 21px; line-height: 1.7; font-style: italic; }
.pi-l-ar.zc-chateau .zh-msgt { font-style: normal; font-size: 20px; }
.zh-msgt > .pi-l2, .zh-item p > .pi-l2 { font-family: 'Cormorant Garamond', serif; color: var(--muted); }
.zh-h { margin-bottom: 16px; }
.zh-h .zc-ht { display: block; font-family: 'Parisienne', cursive; font-size: 40px; line-height: 1.15; color: #5d6f4d; }
.pi-l-ar.zc-chateau .zh-h .zc-ht { font-family: 'El Messiri', serif; font-weight: 600; font-size: 28px; line-height: 1.5; }
.zh-h .zc-ht > .pi-l2 { font-family: 'Cormorant Garamond', serif; font-style: normal; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.zh-post { width: 92%; text-align: start; padding: 34px 24px 30px; }
.zh-post .zh-h { padding-inline-end: 84px; min-height: 64px; }
.zh-stamp { position: absolute; top: 16px; inset-inline-end: 16px; width: 62px; height: 74px; box-sizing: border-box; padding: 5px; background: #fdfcf8; transform: rotate(3deg);
  box-shadow: 0 1px 3px rgba(60,60,40,.25); -webkit-mask: radial-gradient(circle 2.6px at 50% 50%, transparent 96%, #000) -3px -3px / 7px 7px; mask: radial-gradient(circle 2.6px at 50% 50%, transparent 96%, #000) -3px -3px / 7px 7px; }
.zh-stamp svg { background: #eef1e7; }
.zh-pm { position: absolute; top: 34px; inset-inline-end: 60px; width: 64px; height: 64px; border-radius: 50%; border: 1.2px solid rgba(111,132,91,.45); pointer-events: none;
  background: linear-gradient(rgba(111,132,91,.4), rgba(111,132,91,.4)) 50% 40% / 120% 1px no-repeat, linear-gradient(rgba(111,132,91,.4), rgba(111,132,91,.4)) 50% 60% / 120% 1px no-repeat; }
.zh-pm::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(111,132,91,.3); }
.zh-item { padding: 12px 0; }
.zh-item + .zh-item { border-top: 1px dashed rgba(111,132,91,.4); }
.zh-item h3 { font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--acc); margin-bottom: 4px; }
.pi-l-ar.zc-chateau .zh-item h3 { font-family: 'El Messiri', serif; font-size: 17px; letter-spacing: 0; }
.zh-item h3 > .pi-l2 { font-size: 10px; font-style: normal; }
.zh-strong { font-size: 21px; font-weight: 600; }
.zh-tickets { width: 92%; max-width: 440px; margin: 0 auto; text-align: center; transform: rotate(var(--r, 0deg)); }
.zh-tickets .zh-h .zc-ht { color: #fff; text-shadow: 0 1px 12px rgba(40,40,20,.75), 0 0 2px rgba(40,40,20,.5); }
.zh-tickets .zh-h .zc-ht > .pi-l2 { color: rgba(255,255,255,.85); }
.zh-count .pi-cd { gap: 8px; }
.zh-count .zc-cell { width: 72px; padding: 14px 0 12px !important; background: radial-gradient(circle at 0 50%, transparent 6px, #fbf9f2 6.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 6px, #fbf9f2 6.5px) right / 51% 100% no-repeat !important; border-radius: 4px !important; }
.zh-count .zc-cell::before { content: ''; position: absolute; inset: 5px 10px; border: 1px dashed rgba(111,132,91,.4); border-radius: 2px; pointer-events: none; }
.zh-count .pi-cd b { position: relative; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 32px; line-height: 1; color: #556a45; }
.zh-count .pi-cd span { position: relative; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.pi-l-ar.zc-chateau .zh-count .pi-cd span { font-family: 'El Messiri', serif; font-size: 13px; letter-spacing: 0; }
.zh-count .pi-cd span > .pi-l2 { display: none; }
.zh-count .pi-past { color: #fff; }
.zh-menu { width: 84%; }
.zh-tl li { padding: 10px 0; }
.zh-tl li + li { background: none; }
.zh-tl time { display: block; font-size: 13px; font-weight: 600; letter-spacing: .26em; color: var(--acc); }
.zh-tl span { display: block; font-size: 20px; font-style: italic; }
.pi-l-ar.zc-chateau .zh-tl span { font-style: normal; }
.zh-tl span > .pi-l2 { font-family: 'Cormorant Garamond', serif; color: var(--muted); }
.zh-node { display: block; width: 18px; height: 18px; margin: 4px auto; }
.zh-node svg { display: block; width: 100%; height: 100%; }
.zh-reply { border-top: 6px solid #cfd9c2; padding-top: 34px; }
.zc-chateau .pi-seg span { border-radius: 3px; }
.zc-chateau .zc-sub { color: var(--muted); }
.zh-thx { width: 120px; margin: 0 auto 6px; }
.zh-small { width: 76%; padding: 36px 22px 30px; }
.zh-closing { font-style: italic; font-size: 20px; }
.zh-sign { font-family: 'Parisienne', 'El Messiri', cursive; font-size: 36px; color: #556a45; margin-top: 4px; line-height: 1.4; }
.zh-close { padding: 44px 0 4px !important; }
.zc-chateau .zc-foot a, .zc-chateau .zc-foot b { text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.zc-chateau .pi-rv { opacity: 0; transform: translate3d(0, 44px, 0) rotate(calc(var(--r, 0deg) + 3deg)); transition: opacity 1s ease, transform 1.3s cubic-bezier(.2,.8,.25,1); }
.zc-chateau .pi-rv.in { opacity: 1; transform: rotate(var(--r, 0deg)); }
.zc-chateau .zc-blk .pi-rv { transform: none; }

/* falling white petals: 2D only (no rotate3d) so phones keep them on the compositor */
@keyframes lxPetal { 0% { transform: translate(0, -30px) rotate(0deg) scale(var(--s)); } 25% { transform: translate(calc(var(--x) * -.6), 28vh) rotate(80deg) scale(calc(var(--s) * .9), var(--s)); } 50% { transform: translate(calc(var(--x) * -1), 55vh) rotate(160deg) scale(calc(var(--s) * .55), var(--s)); } 75% { transform: translate(calc(var(--x) * .2), 84vh) rotate(250deg) scale(calc(var(--s) * .9), var(--s)); } 100% { transform: translate(var(--x), 112vh) rotate(330deg) scale(var(--s)); } }
@media (prefers-reduced-motion: reduce) { .zc .pi-rv { transform: none !important; transition: opacity .4s !important; } }

.zv-mono.is-ar { direction: rtl; }
.zv-mono.is-ar span { font-family: 'Amiri', serif; font-style: normal; font-weight: 700; font-size: 96px; }
.zv-mono.is-ar span:first-child { transform: translate(-6px, -14px); } .zv-mono.is-ar span:last-child { transform: translate(6px, 16px); }

.zh-static .pi-rv { --r: 0deg; }
.zc-chateau .zh-static .pi-rv { transform: translate3d(0, 22px, 0); }
.zc-chateau .zh-static .pi-rv.in { transform: none; }

.zc-mapph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; color: var(--acc); font: 500 12px/1.3 'Jost', 'Tajawal', sans-serif; letter-spacing: .16em; text-transform: uppercase; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(90deg, transparent 49.6%, var(--line) 50%, transparent 50.4%) 0 0 / 46px 46px, linear-gradient(0deg, transparent 49.6%, var(--line) 50%, transparent 50.4%) 0 0 / 46px 46px, var(--mapbg, rgba(255,255,255,.06)); }
.pi-l-ar .zc-mapph { letter-spacing: 0; font-size: 15px; font-family: 'Tajawal', sans-serif; }
.zc-mapph svg { width: 34px; height: 34px; }
.zc-mapph .pi-l2 { font-size: .8em; }
.zc-palace, .zc-chateau, .zc-archdoor { --mapbg: rgba(255,255,255,.55); }
.zc-grand, .zc-velvet { --mapbg: rgba(0,0,0,.25); }

/* RTL cards: the Latin second-language line follows the side its block starts on */
.pi-l-ar .za-tl .pi-l2, .pi-l-ar .zg-tl span > .pi-l2, .pi-l-ar .zv-page .pi-l2, .pi-l-ar .zh-post .pi-l2, .pi-l-ar .zp-tl span > .pi-l2, .pi-l-ar .zc-form .pi-l2 { text-align: right; }
.pi-l-ar .zv-cover .zc-pre > .pi-l2, .pi-l-ar .zv-cover .zc-inv > .pi-l2, .pi-l-ar .zv-cover .zc-guest > .pi-l2 { text-align: right; }
.pi-l-ar .zv-tl time, .pi-l-ar .zv-count .pi-cd .pi-l2 { text-align: inherit; }

/* v1.5 wax seal overlay (Royal Palace film): one small element; the crack only moves and fades its two halves */
.lxs { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
.lxs-halo { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(255,232,170,.55), rgba(255,232,170,0) 62%); animation: lxHalo 2.6s ease-in-out infinite; transition: opacity .35s; }
.lxs-h { position: absolute; inset: 0; transition: transform 1.05s cubic-bezier(.3,.6,.35,1), opacity .8s ease .25s; }
.lxs-h img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-user-drag: none; user-select: none; }
.lxs-a { clip-path: polygon(0 0, 53% 0, 47% 20%, 55% 38%, 46% 57%, 54% 76%, 49% 100%, 0 100%); }
.lxs-b { clip-path: polygon(53% 0, 100% 0, 100% 100%, 49% 100%, 54% 76%, 46% 57%, 55% 38%, 47% 20%); }
.lxs.is-crack .lxs-a { transform: translate(-38%, 72%) rotate(-38deg); opacity: 0; }
.lxs.is-crack .lxs-b { transform: translate(40%, 82%) rotate(34deg); opacity: 0; }
.lxs.is-crack .lxs-halo { opacity: 0; }
.lxs-cr { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.lxs-cr b { position: absolute; left: -3px; top: -3px; width: 6px; height: 5px; border-radius: 40% 60% 50% 45%; opacity: 0; transform: scale(var(--s)); }
.lxs.is-crack .lxs-cr b { animation: lxsCrumb .8s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes lxsCrumb { 0% { opacity: 1; transform: translate(0,0) scale(var(--s)); } 70% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(var(--s)); } }
.is-open .lxs { opacity: 0; transition: opacity .4s ease .6s; }
.lxs-f { transition: none; }
.lxs.is-crack .lxs-f { opacity: 0; }

/* v1.6 initials monogram on a film's tap emblem (small text layer, opacity only) */
.lxm { position: absolute; transform: translate(-50%, -50%); z-index: 6; pointer-events: none; text-align: center; line-height: 1; white-space: nowrap; transition: opacity .35s ease; }
.lxm span { font-family: 'Great Vibes', 'Cormorant Garamond', serif; background: linear-gradient(170deg, #fff6d8 0%, #e9c77a 38%, #b0802f 62%, #f3dc9c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: 0 1px 0 rgba(60,35,5,.18); }
.lxm.is-ar span { font-family: 'Aref Ruqaa', 'Amiri', serif; font-weight: 700; }
.is-open .lxm { opacity: 0; }

/* =====================================================================
   v1.7 core options for every design
   ===================================================================== */
/* scratch-to-reveal date (card option scratch_on): three small coins; the foil is one small canvas each */
.zc-scr .zc-scr-in { text-align: center; }
.zc-scr-hint { font-size: .84em; letter-spacing: .1em; opacity: .78; margin: .35em 0 1.1em; }
.zc-scr-hint i { font-style: normal; color: #b8914c; }
.zc-scr-row { display: flex; justify-content: center; align-items: flex-start; gap: 12px; direction: ltr; }
.zc-scr-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.zc-scr-coin { position: relative; width: 82px; height: 82px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgba(255, 252, 246, .94); box-shadow: inset 0 0 0 1px rgba(176, 138, 78, .6), inset 0 0 0 4px rgba(255, 255, 255, .7), inset 0 0 0 5px rgba(176, 138, 78, .35), 0 6px 16px rgba(70, 45, 15, .16); }
.zc-scr-m .zc-scr-coin { width: 122px; border-radius: 41px; }
.zc-scr-v { font-size: 30px; line-height: 1; font-weight: 600; color: #6b4f2a; transform: scale(.9); transition: transform .55s cubic-bezier(.3, 1.6, .5, 1); white-space: nowrap; }
.zc-scr-m .zc-scr-v { font-size: 19px; }
.zc-scr-cv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .6s ease; }
.zc-scr-coin.is-clear .zc-scr-cv { opacity: 0; pointer-events: none; }
.zc-scr-coin.is-plain .zc-scr-cv { display: none; }
.zc-scr-coin.is-clear .zc-scr-v, .zc-scr-coin.is-plain .zc-scr-v { transform: scale(1.04); }
.zc-scr-cell small { font-size: .7em; letter-spacing: .16em; text-transform: uppercase; opacity: .72; }
.pi-l-ar .zc-scr-cell small { letter-spacing: 0; font-size: .82em; }
.zc-scr-sp { z-index: 4; }
/* rolling odometer countdown (card option count_style = roll): each digit is a small strip moved with transform only */
.pi-cd.is-roll b { direction: ltr; white-space: nowrap; }
pci-od { display: inline-block; height: 1.15em; line-height: 1.15em; overflow: hidden; vertical-align: top; }
pci-ods { display: block; transition: transform .62s cubic-bezier(.22, 1.28, .5, 1); }
pci-dg { display: block; height: 1.15em; line-height: 1.15em; text-align: center; }
@media (prefers-reduced-motion: reduce) { pci-ods { transition: none; } }

/* ===================== v1.9: month calendar · meeting points · venues · colours to avoid · account numbers (every design; colours follow each design) ===================== */
.zc-mcal { max-width: 320px; margin: 10px auto 2px; text-align: center; }
.zc-mgrid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; font-variant-numeric: tabular-nums; line-height: 1; }
.zc-mdow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .62; padding: 0 0 9px; margin-bottom: 6px; border-bottom: 1px solid rgba(128,128,128,.32); }
.zc-mgrid > i { display: block; }
.zc-mday { position: relative; display: flex; align-items: center; justify-content: center; height: 36px; font-size: 15px; opacity: .88; }
.zc-mday.is-day { opacity: 1; font-weight: 700; font-size: 18px; }
.zc-mday em { font-style: normal; position: relative; z-index: 1; }
.zc-ring { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -24px 0 0 -23px; overflow: visible; pointer-events: none;
  opacity: 0; transform: scale(.6) rotate(-25deg); transition: opacity .8s ease .5s, transform 1s cubic-bezier(.2,.8,.2,1.2) .5s; }
.zc-mcal.in .zc-ring, .pi-rv.in .zc-ring { opacity: .95; transform: none; }
.zc-mfull { margin: 12px 0 0; font-size: 14px; opacity: .85; }
.pi-l-ar .zc-mdow { letter-spacing: 0; font-size: 13px; }

.zc-meet { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px auto 0; max-width: 420px; }
.zc-meet.n1 { grid-template-columns: 1fr; max-width: 260px; }
.zc-meet.n3 { grid-template-columns: 1fr 1fr; }
.zc-mp { text-align: center; padding: 14px 8px 12px; border: 1px solid rgba(128,128,128,.28); border-radius: 14px; min-width: 0; }
.zc-mpi { display: block; width: 34px; height: 34px; margin: 0 auto 6px; opacity: .8; }
.zc-mpi svg { width: 100%; height: 100%; display: block; }
.zc-mp h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.pi-l-ar .zc-mp h3 { letter-spacing: 0; text-transform: none; font-size: 16px; }
.zc-mpn { margin: 0; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.zc-mpt { margin: 4px 0 0; font-size: 14px; opacity: .8; }
.zc-mp .zc-btn, .zc-pl .zc-btn { margin-top: 10px; }
.zc-btn.zc-btn-sm { min-height: 38px; padding: 7px 16px; font-size: 12px; }

.zc-places { list-style: none; margin: 12px auto 0; padding: 0; max-width: 420px; text-align: start; }
.zc-pl { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(128,128,128,.26); }
.zc-pl:first-child { border-top: 0; }
.zc-plt { flex: 0 0 auto; min-width: 54px; font-size: 18px; font-weight: 600; line-height: 1.2; padding-top: 2px; font-variant-numeric: tabular-nums; }
.zc-plb { flex: 1 1 auto; min-width: 0; }
.zc-plw { margin: 0 0 2px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.pi-l-ar .zc-plw { letter-spacing: 0; text-transform: none; font-size: 14px; }
.zc-pln { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.zc-pla { margin: 2px 0 0; font-size: 14px; opacity: .8; }

.zc-avoid { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; font-size: 14px; opacity: .9; }
.zc-dots { display: inline-flex; gap: 5px; }
.zc-dots i { display: block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(128,128,128,.55); position: relative; overflow: hidden; }
.zc-dots i::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 1.5px; margin-top: -.75px; background: #8a1f1f; transform: rotate(-45deg); }

.zc-accts { display: grid; gap: 10px; margin: 14px auto 0; max-width: 380px; }
.zc-acct { padding: 10px 14px; border: 1px solid rgba(128,128,128,.3); border-radius: 12px; text-align: start; }
.zc-acl { margin: 0 0 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.pi-l-ar .zc-acl { letter-spacing: 0; text-transform: none; font-size: 14px; }
.zc-acv { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zc-acn { font-size: 17px; font-weight: 600; letter-spacing: .03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.zc-copy { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor;
  background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s ease, opacity .2s ease; }
.zc-copy svg { width: 16px; height: 16px; }
.zc-copy:active { transform: scale(.94); }
.zc-copy.is-done { opacity: .6; }
.zc-toast { position: fixed; left: 50%; bottom: 28px; z-index: 2147483000; max-width: 86vw; padding: 11px 18px; border-radius: 999px; background: rgba(20,20,20,.88); color: #fff;
  font: 500 14px/1.3 'Jost', 'Tajawal', system-ui, sans-serif; text-align: center; pointer-events: none; opacity: 0; transform: translate(-50%, 16px); transition: opacity .25s ease, transform .3s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 340px) { .zc-meet { grid-template-columns: 1fr; } }

.zc-mp .zc-btn { padding: 7px 10px; letter-spacing: .05em; white-space: nowrap; font-size: 11px; min-height: 36px; }
.pi-l-ar .zc-mp .zc-btn { font-size: 13px; letter-spacing: 0; }
.zc-acv { flex-wrap: wrap; }
.zc-acn { white-space: nowrap; overflow-wrap: normal; font-size: 16px; letter-spacing: .01em; }

/* v1.9.9 share: floating button on public demo pages + the WhatsApp / Facebook / copy popover (gallery and demos) */
.pi-share { position: fixed; z-index: 80; top: calc(14px + 46px + 10px); inset-inline-end: 14px; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 12px; border-radius: 22px; border: 1px solid rgba(232,207,150,.6); background: rgba(20,16,12,.5); color: #f3e3bd; font: 500 11px/1 'Jost', 'Tajawal', system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 6px 18px -8px rgba(0,0,0,.55); -webkit-tap-highlight-color: transparent; transition: background .25s, transform .2s; }
.pi-share.pi-share-solo { top: calc(14px + env(safe-area-inset-top, 0px)); }
.pi-share:hover { background: rgba(20,16,12,.7); }
.pi-share:active { transform: scale(.96); }
.pi-share:focus-visible { outline: 2px solid #e8cf96; outline-offset: 2px; }
.pi-share .pci-sh-ic { width: 17px; height: 17px; flex: none; }
[dir=rtl] .pi-share, .pi-share:lang(ar) { letter-spacing: 0; font-size: 13px; font-family: 'Tajawal', 'Jost', system-ui, sans-serif; }
.pci-shp { position: fixed; z-index: 2147482000; min-width: 210px; max-width: calc(100vw - 20px); padding: 6px; border-radius: 14px; background: #fffdf8; border: 1px solid rgba(176,141,87,.45); box-shadow: 0 18px 44px -14px rgba(30,20,8,.45), 0 2px 6px rgba(30,20,8,.08); opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top center; transition: opacity .18s ease, transform .2s ease; font: 400 14px/1.2 'Jost', 'Tajawal', system-ui, sans-serif; box-sizing: border-box; }
.pci-shp.is-up { transform-origin: bottom center; transform: translateY(4px) scale(.98); }
.pci-shp.in { opacity: 1; transform: none; }
.pci-shp-ar { font-family: 'Tajawal', 'Jost', system-ui, sans-serif; font-size: 15px; }
.pci-shp-i { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: #2a2118; text-decoration: none; font: inherit; text-align: start; cursor: pointer; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.pci-shp-i + .pci-shp-i { border-top: 1px solid rgba(176,141,87,.16); border-radius: 0 0 9px 9px; }
.pci-shp-i:first-child { border-radius: 9px 9px 0 0; }
.pci-shp-i:hover, .pci-shp-i:focus-visible { background: #f6efe2; outline: none; }
.pci-shp-i svg { width: 21px; height: 21px; flex: none; }
.pci-shp-wa svg { color: #1f9d55; }
.pci-shp-fb svg { color: #1877f2; }
.pci-shp-cp svg { color: #a07a3c; }
.pci-shp .pci-shp-i, .pci-shp .pci-shp-i:hover, .pci-shp .pci-shp-i:focus, .pci-shp .pci-shp-i:active, .pci-shp .pci-shp-i:visited { color: #2a2118; background: transparent; box-shadow: none; text-decoration: none; border-left: 0; border-right: 0; border-bottom: 0; }
.pci-shp .pci-shp-i:hover, .pci-shp .pci-shp-i:focus-visible, .pci-shp .pci-shp-i:active { background: #f6efe2; outline: none; }
.pci-shp .pci-shp-i span { color: inherit; }
