/* Enchanted Evening Signature V2. Clean replacement for the experimental theme.
   Artwork contains no names, dates, venue labels or interactive controls. */
body[data-theme="enchanted"]{--ee-gold:#efd38f;--ee-ivory:#fff2d9;--ee-forest:#10412d;background:#10251c;color:var(--ee-ivory)}
body[data-theme="enchanted"] #invitation{width:100%;max-width:520px;min-height:100dvh;margin:0 auto;background:#10412d;color:var(--ee-ivory);box-shadow:0 0 36px #0006;overflow:hidden}
body[data-theme="enchanted"] #invitation .topbar{background:#173c2a;color:var(--ee-gold);border-color:#d6b57873}
body[data-theme="enchanted"] #invitation .ee-v2-cover{position:absolute!important;inset:0!important;width:100%!important;min-height:100dvh!important;height:100dvh!important;padding:0!important;margin:0!important;background:#12462d!important;overflow:hidden!important;color:var(--ee-ivory)!important;isolation:isolate;z-index:20}
body[data-theme="enchanted"] #invitation .ee-v2-cover-art{position:absolute;inset:0;background:url('/themes/enchanted-evening/opening-v3.webp') center/cover no-repeat;z-index:0;transition:opacity .7s}
body[data-theme="enchanted"] #invitation .ee-v2-cover::after{content:"";pointer-events:none;position:absolute;z-index:1;inset:3% 6%;border:1px solid #dfc17f99;border-radius:48% 48% 2% 2%/14% 14% 2% 2%;transition:opacity .6s}
body[data-theme="enchanted"] #invitation .ee-v2-cover-copy{position:relative;z-index:4;width:min(88%,420px);height:100%;margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:66px 8px 50px;background:transparent;text-shadow:0 2px 11px #0b2d20;transition:opacity .5s,transform .5s}
body[data-theme="enchanted"] #invitation .ee-v2-medallion{display:grid;place-items:center;width:96px;height:96px;border-radius:50%;border:1px solid #f3d38b;box-shadow:0 0 0 5px #e2bd6c36,inset 0 0 14px #f9cf7040;color:#ffe5a7;font:normal 30px/1.1 'Cormorant Garamond',Georgia,serif;text-shadow:0 0 12px #d3a84c;background:#164b319c}
body[data-theme="enchanted"] #invitation .ee-v2-kicker{margin:30px 0 10px;color:#f7dba3;text-transform:uppercase;letter-spacing:.18em;font:12px/1.5 Arial,sans-serif}
body[data-theme="enchanted"] #invitation .ee-v2-cover-names{font:normal clamp(37px,10vw,58px)/1.08 'Cormorant Garamond',Georgia,serif;color:#ffe0a0;max-width:100%;margin:8px 0 14px;overflow-wrap:anywhere}
body[data-theme="enchanted"] #invitation .ee-v2-cover-names span{display:block}
body[data-theme="enchanted"] #invitation .ee-v2-cover-names em{display:block;font-size:.57em;margin:3px 0;font-style:italic}
body[data-theme="enchanted"] #invitation .ee-v2-ornament{display:block;position:relative;color:#ffe1a4;font:22px Georgia,serif;text-align:center;margin:6px auto 14px;text-shadow:0 0 12px #efc67b}
body[data-theme="enchanted"] #invitation .ee-v2-ornament::before,body[data-theme="enchanted"] #invitation .ee-v2-ornament::after{content:"";display:inline-block;width:50px;height:1px;background:#d3b36f;vertical-align:middle;margin:0 10px}
body[data-theme="enchanted"] #invitation .ee-v2-date{font:17px/1.4 'Cormorant Garamond',Georgia,serif;letter-spacing:.1em;color:#fff1ca;margin:7px 0 14px}
body[data-theme="enchanted"] #invitation .ee-v2-guest{font:italic 16px/1.45 Georgia,serif;color:#fbe4bc;margin:7px 0}
body[data-theme="enchanted"] #invitation .ee-v2-button{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:47px;max-width:100%;padding:8px 21px;margin-top:16px;border-radius:35px;border:1px solid #e9c57e;background:linear-gradient(#1b6746,#073e29);box-shadow:inset 0 0 0 3px #e5b45e30,0 0 17px #efc66d52;color:#fff2d6;text-decoration:none;font:20px/1.2 'Cormorant Garamond',Georgia,serif;cursor:pointer}
body[data-theme="enchanted"] #invitation .ee-v2-button:hover{background:linear-gradient(#277e55,#124830)}
body[data-theme="enchanted"] #invitation .ee-v2-button:focus-visible{outline:3px solid #ffda87;outline-offset:3px}
body[data-theme="enchanted"] #invitation .ee-v2-brand{font:9px Arial,sans-serif;letter-spacing:1.5px;color:#eed19b;margin:30px 0 0}
body[data-theme="enchanted"] #invitation .ee-v2-skip{position:absolute;z-index:10;top:max(14px,env(safe-area-inset-top));right:15px;border:1px solid #edcb8b9a;background:#103c2dd9;color:#fff2d6;font:12px Arial,sans-serif;border-radius:25px;padding:9px 13px}
body[data-theme="enchanted"] #invitation .ee-v2-doors{position:absolute;inset:0;display:flex;z-index:3;pointer-events:none;opacity:0}
body[data-theme="enchanted"] #invitation .ee-v2-doors i{display:block;width:50%;height:100%;background:linear-gradient(90deg,#0b3523,#185339 65%,#103b2b);box-shadow:inset 0 0 0 8px #e4c37825;border-right:2px solid #dfbe77}
body[data-theme="enchanted"] #invitation .ee-v2-doors i:last-child{background:linear-gradient(90deg,#103b2b,#185339 35%,#0b3523);border-right:0;border-left:2px solid #dfbe77}
body[data-theme="enchanted"] #invitation .ee-v2-cover.is-opening .ee-v2-doors{opacity:1}
body[data-theme="enchanted"] #invitation .ee-v2-cover.is-opening .ee-v2-cover-copy{opacity:0;transform:scale(.97)}
body[data-theme="enchanted"] #invitation .ee-v2-cover.op-exit{background:transparent!important;opacity:1!important;visibility:visible!important;pointer-events:none}
body[data-theme="enchanted"] #invitation .ee-v2-cover.op-exit .ee-v2-cover-art,body[data-theme="enchanted"] #invitation .ee-v2-cover.op-exit::after{opacity:0}
body[data-theme="enchanted"] #invitation .ee-v2-cover.op-exit .ee-v2-doors i:first-child{animation:ee-v2-left 1.2s ease-in-out both}
body[data-theme="enchanted"] #invitation .ee-v2-cover.op-exit .ee-v2-doors i:last-child{animation:ee-v2-right 1.2s ease-in-out both}
@keyframes ee-v2-left{to{transform:translateX(-104%)}}
@keyframes ee-v2-right{to{transform:translateX(104%)}}
body[data-theme="enchanted"] #invitation .ee-v2-hero{position:relative;display:grid;place-items:center;isolation:isolate;overflow:hidden;min-height:710px;padding:0!important;background:#11402d!important}
body[data-theme="enchanted"] #invitation .ee-v2-hero::before,body[data-theme="enchanted"] #invitation .ee-v2-hero::after{display:none!important}
body[data-theme="enchanted"] #invitation .ee-v2-hero-art,body[data-theme="enchanted"] #invitation .ee-v2-hero-shade{position:absolute;inset:0;pointer-events:none}
body[data-theme="enchanted"] #invitation .ee-v2-hero-art img,body[data-theme="enchanted"] #invitation .ee-v2-motion{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body[data-theme="enchanted"] #invitation .ee-v2-motion{opacity:0;transition:opacity .55s}
body[data-theme="enchanted"] #invitation .ee-v2-motion.ee-v2-playing{opacity:.54}
body[data-theme="enchanted"] #invitation .ee-v2-hero-shade{z-index:1;background:linear-gradient(180deg,#041a1017,#0633202b 50%,#041a1026)}
body[data-theme="enchanted"] #invitation .ee-v2-hero-copy{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:9px;padding:82px 25px 85px;text-align:center;max-width:100%;color:#fff1d6;text-shadow:0 2px 8px #08271b}
body[data-theme="enchanted"] #invitation .ee-v2-medallion-small{width:78px;height:78px;font-size:25px;margin-bottom:18px}
body[data-theme="enchanted"] #invitation .ee-v2-family{font:italic 19px/1.45 Georgia,serif;color:#fff1d9;margin:0}
body[data-theme="enchanted"] #invitation .ee-v2-names{font:normal clamp(39px,9vw,60px)/1.14 'Cormorant Garamond',Georgia,serif;color:#ffdfa1;overflow-wrap:anywhere;margin:12px auto 4px;max-width:100%}
body[data-theme="enchanted"] #invitation .ee-v2-names span{display:block}
body[data-theme="enchanted"] #invitation .ee-v2-names em{display:block;font-size:.58em;font-style:italic;margin:3px 0}
body[data-theme="enchanted"] #invitation .ee-v2-message{font:italic 19px/1.55 Georgia,serif;color:#fff1d9;max-width:350px;margin:6px auto}
body[data-theme="enchanted"] #invitation .ee-v2-portrait{width:80%;max-width:250px;max-height:250px;object-fit:contain}
body[data-theme="enchanted"] #invitation .ee-v2-explore{font-size:17px;margin-top:13px}

/* Single-scene opening v4. The legacy CSS door rules above are intentionally inert:
   the opening markup contains no door panels. The cover is a fixed, atomic scene. */
body[data-theme="enchanted"] #invitation > .ee-v2-cover{
 position:fixed!important;
 inset:0!important;
 left:50%!important;right:auto!important;
 transform:translateX(-50%)!important;
 width:100%!important;max-width:520px!important;
 height:100dvh!important;min-height:100dvh!important;
 margin:0!important;padding:0!important;
 display:block!important;overflow:hidden!important;
 background:#103d2a!important;
 isolation:isolate;z-index:1000!important;
 opacity:1;visibility:visible;
 transition:opacity 1.2s cubic-bezier(.22,.61,.36,1),visibility 1.2s!important;
}
body[data-theme="enchanted"] #invitation > .ee-v2-cover .ee-v2-cover-art{
 position:absolute!important;inset:0!important;
 width:100%!important;height:100%!important;
 background-image:url('/themes/enchanted-evening/opening-v3.webp')!important;
 background-size:cover!important;
 background-position:center center!important;
 background-repeat:no-repeat!important;
 transform:scale(1)!important;
 opacity:1!important;
 transition:filter 1.2s ease,transform 1.2s ease!important;
 filter:brightness(.95);
}
body[data-theme="enchanted"] #invitation > .ee-v2-cover .ee-v2-cover-copy{
 position:relative!important;z-index:3!important;
 width:100%!important;max-width:410px!important;
 height:100%!important;margin:0 auto!important;
 opacity:1;transform:none!important;
 transition:opacity .35s ease!important;
}
body[data-theme="enchanted"] #invitation > .ee-v2-cover .ee-v2-skip{
 z-index:5!important;
}
body[data-theme="enchanted"] #invitation > .ee-v2-cover.is-opening .ee-v2-cover-art{
 filter:brightness(1.05);
 transform:scale(1.025)!important;
}
body[data-theme="enchanted"] #invitation > .ee-v2-cover.is-opening .ee-v2-cover-copy{
 opacity:0!important;pointer-events:none;
}
body[data-theme="enchanted"] #invitation > .ee-v2-cover.op-exit{
 opacity:0!important;visibility:hidden!important;
 transform:translateX(-50%)!important;
 pointer-events:none!important;
}
body[data-theme="enchanted"] #invitation > .ee-v2-cover.op-exit .ee-v2-cover-art{
 opacity:1!important;
 transform:scale(1.025)!important;
}
/* Prevent two sets of dynamic names from being visible during the dissolve. */
body.sealed[data-theme="enchanted"] #invitation .ee-v2-hero-copy{
 visibility:hidden!important;
}
@media(prefers-reduced-motion:reduce){
 body[data-theme="enchanted"] #invitation > .ee-v2-cover,
 body[data-theme="enchanted"] #invitation > .ee-v2-cover *{
  transition:none!important;animation:none!important;
 }
}


/* Royal Haveli technique, Enchanted Evening artwork and timing. */
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-gate-leaves{
  position:absolute;inset:0;z-index:2;pointer-events:none;
  opacity:0;overflow:hidden;perspective:1400px;transform-style:preserve-3d;
  filter:drop-shadow(0 0 14px #050f0b9c);
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-gate-leaf{
  position:absolute;top:0;bottom:0;width:50%;height:100%;
  box-sizing:border-box;display:block;
  overflow:hidden;
  background:#103b2a;
  transform-style:preserve-3d;backface-visibility:hidden;
  will-change:transform;
  border:0;box-shadow:inset 0 0 24px #031e15a0;
  transform:rotateY(0deg);
  transition:transform 3s cubic-bezier(.2,.6,.25,1);
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-gate-left{
  left:0;right:auto;transform-origin:left center;
  border-right:2px solid #e4bb6d;
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-gate-right{
  right:0;left:auto;transform-origin:right center;
  border-left:2px solid #e4bb6d;
}
/* Image is rendered at full-cover dimensions in BOTH halves, then cropped by the
   hinged 50%-width leaf. Unlike background-size:200% 100%, this does not distort artwork. */
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-gate-leaf img{
  position:absolute;top:0;height:100%;width:200%;max-width:none!important;
  object-fit:cover;object-position:center center;
  pointer-events:none;user-select:none;
  display:block;
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-gate-left img{left:0}
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-gate-right img{right:0}
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-gate-leaf::after{
  content:"";position:absolute;inset:7%;border:1px solid #ffdb9299;
  box-shadow:0 0 13px #ffe1a35c,inset 0 0 15px #f7d49332;
  opacity:0;pointer-events:none;
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover.is-opening .ee-gate-leaves{opacity:1}
body[data-theme="enchanted"] #invitation>.ee-v2-cover.is-opening .ee-v2-cover-art{
  opacity:1!important;transform:none!important;filter:brightness(.96)!important;
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover.is-opening .ee-v2-cover-copy{
  opacity:0!important;transition:opacity .4s ease!important;pointer-events:none;
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover.op-exit{
  opacity:1!important;visibility:visible!important;pointer-events:none!important;
  background:transparent!important;transition:none!important;
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover.op-exit .ee-v2-cover-art{
  opacity:0!important;visibility:hidden!important;transition:none!important;
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover.op-exit .ee-gate-left{transform:rotateY(-105deg)}
body[data-theme="enchanted"] #invitation>.ee-v2-cover.op-exit .ee-gate-right{transform:rotateY(105deg)}
body[data-theme="enchanted"] #invitation>.ee-v2-cover.op-exit .ee-gate-leaf::after{
  animation:ee-gate-gold-trace 1.6s ease-out both;
}
@keyframes ee-gate-gold-trace{
  0%{opacity:0}32%{opacity:1}100%{opacity:0}
}
@media(prefers-reduced-motion:reduce){
  body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-gate-leaves{display:none!important}
  body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-gate-leaf{transition:none!important}
}

/* ONE CONTINUOUS SIGNATURE CANVAS
   Decorative layers retain their proportions regardless of user content height.
   Artwork never includes editable text and no card is stretched to fit content. */
body[data-theme="enchanted"] #invitation {
  --ee-accent:#efd294;--ee-cream:#fff1d6;--ee-shadow:#062719;
  --ee-panel:#174935;--ee-edge:#caab6b;
  background:#153f2e;
}
body[data-theme="enchanted"] #invitation main{
  background:linear-gradient(180deg,#103a2b 0%,#194833 42%,#143d2e 75%,#103729 100%);
}
body[data-theme="enchanted"] #invitation main>.section{
  position:relative;isolation:isolate;overflow:hidden;
  /* Continuous illustrated canvas: no repeated top/bottom nine-slice caps. */
  padding:76px clamp(24px,7vw,38px) 76px!important;
  min-height:0!important;margin:0!important;
  border:0!important;border-image:none!important;
  box-shadow:none!important;outline:0!important;
  background:transparent!important;
  color:var(--ee-cream);text-align:center;
}
/* Illustrated frame provides the physical stationery; background art stays atmospheric. */
body[data-theme="enchanted"] #invitation main>.section::before{
  content:"";position:absolute;left:0;top:0;right:0;
  height:clamp(170px,56vw,270px);z-index:0;
  pointer-events:none;
  background:var(--ee-scene,none) center top / 100% auto no-repeat;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 14%,#000 37%,transparent 95%);
  mask-image:linear-gradient(to bottom,transparent 0%,#000 14%,#000 37%,transparent 95%);
  opacity:var(--ee-scene-opacity,.7);
  border:0!important;filter:none;transform:none!important;
}
body[data-theme="enchanted"] #invitation main>.section::after{
  content:"";position:absolute;bottom:-43px;right:-34px;left:auto;top:auto;
  width:clamp(105px,29%,155px);height:175px;z-index:0;pointer-events:none;
  background:url('/themes/enchanted-evening/botanical-corner.svg') center/contain no-repeat;
  opacity:.24;filter:none;transform:scaleX(-1) rotate(-9deg);border:0!important;
}
body[data-theme="enchanted"] #invitation main>.section:nth-of-type(2n)::after{
  left:-38px;right:auto;transform:none;
}
body[data-theme="enchanted"] #invitation main>.section>*{
  position:relative;z-index:1;max-width:100%;
}
body[data-theme="enchanted"] #invitation #story{
  --ee-scene:url('/themes/enchanted-evening/story-v3.webp');
  --ee-scene-opacity:.85;
  padding-top:98px;
}
body[data-theme="enchanted"] #invitation #venue{
  --ee-scene:url('/themes/enchanted-evening/venue-v3.webp');
  --ee-scene-opacity:.83;
  padding-top:98px;
}
/* Only Venue uses the lantern-and-arch scene; do not duplicate it elsewhere. */
body[data-theme="enchanted"] #invitation #venue::after{
  background-image:url('/themes/enchanted-evening/botanical-corner.svg');
  opacity:.17;
}

body[data-theme="enchanted"] #invitation #rsvp{
  --ee-scene:url('/themes/enchanted-evening/rsvp-v3.webp');
  --ee-scene-opacity:.85;
  padding-top:98px;
}
body[data-theme="enchanted"] #invitation #events{
  --ee-scene:url('/themes/enchanted-evening/botanical-corner.svg');
  --ee-scene-opacity:.35;
}
body[data-theme="enchanted"] #invitation #events::before{
  background-size:clamp(115px,38%,170px) auto!important;
  background-position:left top!important;
}
body[data-theme="enchanted"] #invitation main>.section :is(h2,h3,p,li,blockquote,label){
  color:var(--ee-cream);overflow-wrap:break-word;
}
body[data-theme="enchanted"] #invitation main>.section h2{
  font:400 clamp(33px,8.5vw,44px)/1.16 'Cormorant Garamond',Georgia,serif!important;
  color:#ffe0a4!important;margin:0 auto 15px!important;
  max-width:100%;padding:0 3px;text-align:center;text-wrap:balance;
  text-shadow:0 2px 7px #062919b5;
}
body[data-theme="enchanted"] #invitation main>.section h2::after{
  content:"✦";display:block;margin:14px auto 8px;
  color:#efd193;font:18px Georgia,serif;
}
body[data-theme="enchanted"] #invitation main>.section :is(.small,.eyebrow){
  display:block;font:600 10px/1.5 Arial,sans-serif;
  color:#f5d797!important;letter-spacing:1.6px;
  margin:0 auto 10px;text-transform:uppercase;
}
body[data-theme="enchanted"] #invitation main>.section p{
  font-size:clamp(17px,4.8vw,20px);
  line-height:1.52;color:#fff1d9!important;margin:13px auto;
  max-width:39ch;text-shadow:0 1px 3px #08271b;
}
/* Section headings already carry one gold ornament. Remove the generic duplicate. */
body[data-theme="enchanted"] #invitation main>.section .ornament{
  display:none!important;
}
body[data-theme="enchanted"] #invitation main>.section .timeline{
  display:grid;gap:18px;position:relative;margin:28px auto 0;
  padding:0;max-width:100%;
}
body[data-theme="enchanted"] #invitation main>.section .timeline::before{display:none}
body[data-theme="enchanted"] #invitation main>.section .moment{
  position:relative;isolation:isolate;padding:32px 22px!important;
  margin:0;min-height:0!important;border-radius:22px;
  background:linear-gradient(145deg,#21533eec,#0c3728f5)!important;
  border:1px solid #dfbc77!important;
  box-shadow:inset 0 0 0 5px #dbb87432,0 12px 23px #05271952!important;
}
body[data-theme="enchanted"] #invitation main>.section .moment::before{
  content:"❦";display:block;position:static;background:transparent;
  color:#e9c884;font:26px Georgia,serif;margin:0 auto 10px;
  width:auto;height:auto;box-shadow:none;border:none;
}
body[data-theme="enchanted"] #invitation main>.section .moment h3{
  font:italic 400 clamp(27px,7vw,36px)/1.18 'Cormorant Garamond',Georgia,serif!important;
  margin:6px 0 12px!important;color:#ffe2a8!important;
}
body[data-theme="enchanted"] #invitation main>.section .moment p{
  font:normal 18px/1.5 'Cormorant Garamond',Georgia,serif!important;
  color:#fff1db!important;margin:8px auto;
}
body[data-theme="enchanted"] #invitation main>.section .moment img{
  display:block;width:100%;height:auto;max-height:250px;object-fit:contain;
  border-radius:11px;margin:18px auto 2px;
}
body[data-theme="enchanted"] #invitation #events .events.ee-v2-events{
  display:grid;grid-template-columns:minmax(0,1fr);gap:18px;
  margin:25px auto 0;max-width:100%;
}
body[data-theme="enchanted"] #invitation #events .ee-v2-event{
  display:grid;grid-template-columns:minmax(72px,26%) minmax(0,1fr);
  gap:14px;align-items:center;position:relative;isolation:isolate;
  min-height:180px!important;width:100%;margin:0!important;
  padding:21px 17px!important;box-sizing:border-box;text-align:start!important;
  border-radius:20px;border:1px solid #e0bb79!important;
  box-shadow:inset 0 0 0 5px #d7b47230,0 9px 22px #0425194b!important;
  background:linear-gradient(148deg,#20573c,#113d2c)!important;
}
body[data-theme="enchanted"] #invitation #events .ee-v2-event::before{
  content:"";position:absolute;inset:8px;z-index:0;display:block;
  border:1px solid #edd1954b;border-radius:14px;background:transparent!important;
  pointer-events:none;
}
body[data-theme="enchanted"] #invitation #events .ee-v2-event::after{
  content:"";position:absolute;right:-26px;top:-26px;z-index:0;
  width:90px;height:112px;pointer-events:none;opacity:.35;
  background:url('/themes/enchanted-evening/botanical-corner.svg') center/contain no-repeat;
}
body[data-theme="enchanted"] #invitation #events .ee-v2-event-picture{
  width:100%;height:107px;position:relative;z-index:1;
  display:grid;place-items:center;border-radius:45px 45px 12px 12px;
  background:radial-gradient(ellipse,#346b4bc2,#0b3729ef);
  border:1px solid #e3bf7b;box-shadow:inset 0 0 0 4px #dcb47430;
  color:#f4d394;
}
/* Matching four-panel illustration art, like Mehfil-e-Gul's events sprite. */
body[data-theme="enchanted"] #invitation #events .ee-v2-event-picture{
  background-image:url('/themes/enchanted-evening/signature-events.svg')!important;
  background-size:400% 100%!important;background-repeat:no-repeat!important;
  background-color:#194b36!important;
}
body[data-theme="enchanted"] #invitation #events .ee-v2-event-nikah .ee-v2-event-picture{background-position:0% center!important}
body[data-theme="enchanted"] #invitation #events .ee-v2-event-mehndi .ee-v2-event-picture{background-position:33.333% center!important}
body[data-theme="enchanted"] #invitation #events .ee-v2-event-barat .ee-v2-event-picture{background-position:66.667% center!important}
body[data-theme="enchanted"] #invitation #events .ee-v2-event-walima .ee-v2-event-picture{background-position:100% center!important}
body[data-theme="enchanted"] #invitation #events .ee-v2-event:not(.ee-v2-event-other) .ee-v2-event-picture svg{display:none!important}
body[data-theme="enchanted"] #invitation #events .ee-v2-event-other .ee-v2-event-picture{background-image:none!important}
body[data-theme="enchanted"] #invitation #events .ee-v2-event-picture svg{
  width:min(72px,95%);height:72px;max-width:100%;
}
body[data-theme="enchanted"] #invitation #events .ee-v2-event-copy{
  position:relative;z-index:1;min-width:0;
  display:flex;flex-direction:column;gap:5px;align-items:flex-start;
  padding:0!important;background:transparent!important;
  text-align:start!important;box-shadow:none!important;border:0!important;
}
body[data-theme="enchanted"] #invitation #events .ee-v2-event h3{
  font:400 clamp(29px,7.4vw,38px)/1.12 'Cormorant Garamond',Georgia,serif!important;
  color:#ffe3a9!important;text-align:start!important;margin:0 0 3px!important;
}
body[data-theme="enchanted"] #invitation #events .ee-v2-event p{
  font:normal clamp(15px,4vw,17px)/1.38 'Cormorant Garamond',Georgia,serif!important;
  text-align:start!important;color:#fff1d9!important;margin:0!important;max-width:100%;
}
body[data-theme="enchanted"] #invitation #events .ee-v2-event .ee-v2-event-time{
  font-weight:700!important;color:#ffe2aa!important;
}
body[data-theme="enchanted"] #invitation #events .ee-v2-event .ee-v2-event-venue{
  color:#f5d08c!important;font-weight:600!important;
}
body[data-theme="enchanted"] #invitation #events .ee-v2-event-actions{
  display:flex;gap:9px 13px;flex-wrap:wrap;margin-top:9px;
}
body[data-theme="enchanted"] #invitation #events .ee-v2-event-actions a{
  color:#ffe3a7!important;text-decoration:underline;text-underline-offset:3px;
  font:600 12px/1.4 Arial,sans-serif!important;
}
body[data-theme="enchanted"] #invitation main>.section .counter{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;
  max-width:100%;margin:24px auto;
}
body[data-theme="enchanted"] #invitation main>.section .counter>div{
  border:1px solid #d6b779;border-radius:17px;
  background:linear-gradient(135deg,#246244c5,#133e30ec);
  padding:24px 9px;box-shadow:inset 0 0 0 4px #c8a96524;
}
body[data-theme="enchanted"] #invitation main>.section .counter strong{
  color:#ffe2a3!important;text-shadow:0 0 14px #f9cb8440;
  font:400 clamp(40px,10vw,53px)/1.1 'Cormorant Garamond',Georgia,serif!important;
}
body[data-theme="enchanted"] #invitation main>.section .counter span{
  font:600 11px Arial,sans-serif;letter-spacing:1.5px;color:#fff1d9;
}
body[data-theme="enchanted"] #invitation main>.section :is(.form-box,.message,.upload-panel){
  padding:28px clamp(18px,5vw,28px)!important;
  background:linear-gradient(145deg,#20533cef,#103b2bed)!important;
  border:1px solid #dfbe7c;border-radius:22px;
  box-shadow:inset 0 0 0 5px #d3ad6429,0 12px 27px #06261a52;
  margin:25px auto 0;max-width:100%;
  text-align:start;
}
body[data-theme="enchanted"] #invitation main>.section :is(.form-box,.message)::before{display:none!important}
body[data-theme="enchanted"] #invitation main>.section :is(.form-box,.message) label{
  display:block;margin:16px 0 7px;color:#ffedc8!important;
  font:600 16px/1.35 'Cormorant Garamond',Georgia,serif;
}
body[data-theme="enchanted"] #invitation main>.section :is(input,select,textarea){
  width:100%;max-width:100%;box-sizing:border-box;
  background:#fff9ec!important;color:#183928!important;
  border:1px solid #c5a66c;border-radius:8px;
  padding:12px 13px;font:16px/1.4 Arial,sans-serif;
}
body[data-theme="enchanted"] #invitation main>.section textarea{min-height:110px;resize:vertical}
body[data-theme="enchanted"] #invitation main>.section :is(button.button,button[type=submit],a.button){
  min-height:46px;border:1px solid #e9c887;border-radius:30px;
  padding:10px 23px;color:#fff3dc!important;
  background:linear-gradient(#22684a,#104230);
  font:600 14px/1.3 Arial,sans-serif;
  box-shadow:0 6px 17px #04271933;
}
body[data-theme="enchanted"] #invitation main>.section :is(.form-box,.message) :is(button.button,button[type=submit]){margin-top:20px}
body[data-theme="enchanted"] #invitation main>.section :is(input,button,select,textarea,a):focus-visible{
  outline:3px solid #ffe2a4;outline-offset:3px;
}
body[data-theme="enchanted"] #invitation main>.section .date-under{
  background:#f5e5b9!important;color:#29412f!important;border:1px solid #b4914d;
}
body[data-theme="enchanted"] #invitation main>.section .date-under :is(strong,span,.small){
  color:#29412f!important;text-shadow:none!important;
}
body[data-theme="enchanted"] #invitation main>.section .scratch-wrap{
  overflow:hidden;border-radius:14px;border:1px solid #edcc88;
}
body[data-theme="enchanted"] #invitation main>.section .gallery-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
}
body[data-theme="enchanted"] #invitation main>.section .gallery-grid img{
  width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;
  border:2px solid #e0bd79;border-radius:12px;
}
body[data-theme="enchanted"] #invitation main>.section :is(.venue-frame,.wish-item){
  position:relative;margin:22px auto;padding:28px 21px;
  background:#174936db;border:1px solid #dbb77b;border-radius:19px;
  box-shadow:inset 0 0 0 5px #e3bb6928;
}
body[data-theme="enchanted"] #invitation main>.section .venue-frame img{
  display:block;max-width:250px;width:80%;height:auto;max-height:250px;object-fit:contain;margin:auto;
}
body[data-theme="enchanted"] #invitation main>.section .wish-item :is(p,blockquote){
  color:#fff1d9!important;font-size:18px;line-height:1.5;
}
body[data-theme="enchanted"] #invitation main>.section .ee-sparks{display:none!important}
@media(max-width:360px){
  body[data-theme="enchanted"] #invitation main>.section{padding-inline:20px}
  body[data-theme="enchanted"] #invitation #events .ee-v2-event{
    grid-template-columns:70px minmax(0,1fr);gap:10px;padding:17px 12px!important;
  }
  body[data-theme="enchanted"] #invitation #events .ee-v2-event-picture{height:90px}
  body[data-theme="enchanted"] #invitation #events .ee-v2-event-picture svg{height:57px}
}
@media(prefers-reduced-motion:reduce){
  body[data-theme="enchanted"] #invitation main>.section *{animation:none!important}
}

/* Compact narrow devices: retain frame art without squeezing editable content. */
@container invitation (max-width:359px){
 body[data-theme="enchanted"] #invitation main>.section{
  border:0!important;padding:66px 20px 70px!important;
 }
 body[data-theme="enchanted"] #invitation :is(#story,#venue,#rsvp){
  padding-top:88px!important;
 }
}


/* Different section endings, no repeated architectural header/footer cap. */
body[data-theme="enchanted"] #invitation #events::after{
  background:radial-gradient(ellipse at 55% 70%,#dfb96851,transparent 57%)!important;
  width:76%;height:95px;left:12%;right:12%;bottom:-24px;transform:none;opacity:.5;
}
body[data-theme="enchanted"] #invitation #countdown::after{
  background:radial-gradient(ellipse at 50% 50%,#e5bd6754,transparent 65%)!important;
  width:72%;height:85px;left:14%;right:14%;bottom:-26px;transform:none;opacity:.47;
}
body[data-theme="enchanted"] #invitation #venue::after{
  background:radial-gradient(ellipse at 50% 95%,#d9b16f4d,transparent 70%)!important;
  width:90%;height:130px;left:5%;right:5%;bottom:-45px;transform:none;opacity:.45;
}
body[data-theme="enchanted"] #invitation #rsvp::after{
  background:radial-gradient(ellipse at 50% 95%,#e4c78c3d,transparent 66%)!important;
  width:75%;height:105px;left:12%;right:12%;bottom:-38px;transform:none;opacity:.45;
}

/* Uninterrupted handoff: the same hero video and text are revealed under the hinged doors. */
body.sealed[data-theme="enchanted"] #invitation .ee-v2-hero-art{
  opacity:1!important;visibility:visible!important;
}
/* The real V5 video is visible behind rotating gates; titles only enter once open. */
body.sealed[data-theme="enchanted"] #invitation .ee-v2-hero-copy{
  visibility:hidden!important;opacity:0!important;
}
body.ee-hero-content-ready[data-theme="enchanted"] #invitation .ee-v2-hero-copy{
  visibility:visible!important;
  animation:ee-v9-hero-text 850ms ease-out both;
}
@keyframes ee-v9-hero-text{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:translateY(0)}
}
body[data-theme="enchanted"] #invitation .ee-v2-hero-art .ee-v2-motion.ee-v2-playing{
  opacity:.72!important;
}
body[data-theme="enchanted"] #invitation .ee-v2-hero::before,
body[data-theme="enchanted"] #invitation .ee-v2-hero::after{display:none!important}
@media(prefers-reduced-motion:reduce){
 body[data-theme="enchanted"] #invitation main>.section::before,
 body[data-theme="enchanted"] #invitation main>.section::after{animation:none!important}
}

/* V10: the sealed cover is JUST a door and an invitation button. */
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-v2-cover-copy{
  position:absolute!important;inset:0!important;
  display:flex!important;justify-content:center!important;align-items:center!important;
  width:100%!important;max-width:none!important;height:100%!important;
  padding:0 22px!important;margin:0!important;z-index:5!important;
  background:none!important;pointer-events:none;
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-v10-open{
  pointer-events:auto;min-height:52px;
  background:linear-gradient(160deg,#1a6845f5,#0b3928f5);
  border:1px solid #f5d58e;
  box-shadow:0 0 0 4px #123d2b8a,0 0 20px #f3cd7d90;
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover.is-opening .ee-v2-cover-copy{
  opacity:0!important;visibility:hidden!important;transition:opacity .35s ease!important;
}
/* Keep hero names and wording fully rendered and ready BEHIND the 3D gates.
   Reveal when rotation starts, never after the doors are removed. */
body.sealed.ee-reveal-hero[data-theme="enchanted"] #invitation .ee-v2-hero-copy{
  visibility:visible!important;opacity:1!important;
  animation:none!important;transition:none!important;
  transform:none!important;
}
body[data-theme="enchanted"] #invitation .ee-v2-hero-copy{
  animation:none!important;
}

/* V11: Handle-inspired gold monogram and lower opening CTA.
   Neither element is painted onto the door photograph. */
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-v2-cover-copy{
 position:absolute!important;inset:0!important;
 display:block!important;width:100%!important;height:100%!important;
 max-width:none!important;padding:0!important;margin:0!important;
 background:none!important;z-index:5!important;pointer-events:none;
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-door-monogram{
 position:absolute;left:50%;top:49%;transform:translate(-50%,-50%);
 width:clamp(148px,43%,215px);aspect-ratio:260/172;z-index:1;
 display:grid;place-items:center;
 filter:drop-shadow(0 4px 7px #041d146f);pointer-events:none;
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-monogram-metalwork{
 display:block;width:100%;height:100%;overflow:visible;
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-monogram-letters{
 position:absolute;top:49%;left:50%;transform:translate(-50%,-50%);
 max-width:60%;overflow-wrap:anywhere;white-space:normal;
 font:600 clamp(22px,6vw,32px)/1.08 'Cormorant Garamond',Georgia,serif;
 color:#ffe4a4;text-align:center;
 text-shadow:0 2px 4px #102b1d,0 0 6px #c49342;
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover .ee-v10-open{
 position:absolute!important;top:73%;left:50%;
 transform:translate(-50%,-50%);margin:0!important;min-width:205px;
 max-width:85%;z-index:2;pointer-events:auto;
 white-space:normal;text-align:center;
 background:linear-gradient(155deg,#175b40f8,#0c392aee);
 border:1px solid #f3d289;border-radius:30px;
 box-shadow:inset 0 0 0 2px #d0a0525c,0 5px 14px #0523196e;
}
body[data-theme="enchanted"] #invitation>.ee-v2-cover.is-opening .ee-v2-cover-copy{
 opacity:0!important;visibility:hidden!important;
 transition:opacity .35s ease!important;
}
body[data-theme="enchanted"][dir=rtl] #invitation .ee-monogram-letters{
 direction:ltr;font-family:'Cormorant Garamond',Georgia,serif;
}

/* V11: Original floral stationery frame, following Mehfil-e-Gul's nine-slice
   construction. It expands with content while keeping its corners undistorted. */
body[data-theme="enchanted"] #invitation main>.ee-section{
 padding:21px clamp(9px,3vw,17px) 23px!important;
 overflow:visible;isolation:isolate;
}
body[data-theme="enchanted"] #invitation .ee-stationery{
 --ee-panel-gold:#e2c17c;
 position:relative;isolation:isolate;
 box-sizing:border-box;display:block;
 width:100%;max-width:100%;min-width:0;margin:0 auto;
 border-style:solid;border-color:transparent;
 border-width:clamp(56px,14vw,75px) clamp(20px,5vw,31px) clamp(55px,14vw,73px);
 border-image-source:url('/themes/enchanted-evening/stationery-panel.svg');
 border-image-slice:170 125 170 125;
 border-image-width:1;
 border-image-repeat:stretch;
 background:linear-gradient(155deg,#1b4a36f2,#113d2deb);
 color:#fff0d4;
 box-shadow:0 14px 28px #061e153b;
 text-align:center;
 padding:5px clamp(2px,1vw,10px) 10px;
}
body[data-theme="enchanted"] #invitation .ee-stationery>*{
 position:relative;z-index:1;max-width:100%;
}
body[data-theme="enchanted"] #invitation .ee-stationery :is(h2,h3,p,blockquote,li){
 overflow-wrap:anywhere;
}
body[data-theme="enchanted"] #invitation #story .ee-stationery{
 background:radial-gradient(ellipse at top,#285a40e8,#113a2cec 77%);
}
body[data-theme="enchanted"] #invitation #events .ee-stationery{
 background:linear-gradient(160deg,#1a4b36ee,#103e2ded);
}
body[data-theme="enchanted"] #invitation #rsvp .ee-stationery{
 background:linear-gradient(160deg,#1c513ae8,#103b2ce9);
}
body[data-theme="enchanted"] #invitation :is(#blessings,#wishes,#contacts) .ee-stationery{
 background:radial-gradient(ellipse at 50% 15%,#2a5a42f0,#123d2def 80%);
}
body[data-theme="enchanted"] #invitation .ee-stationery :is(.form-box,.message,.upload-panel){
 width:100%;box-sizing:border-box;margin-inline:auto;
}
body[data-theme="enchanted"] #invitation .ee-stationery .ee-v2-event{
 max-width:100%;
}
body[data-theme="enchanted"] #invitation .ee-stationery .moment{
 max-width:100%;
}
body[data-theme="enchanted"] #invitation .ee-stationery h2{
 font-size:clamp(27px,7.8vw,40px)!important;
 line-height:1.16!important;text-wrap:balance;
}
@container invitation (max-width:359px){
 body[data-theme="enchanted"] #invitation main>.ee-section{
  padding-inline:7px!important;
 }
 body[data-theme="enchanted"] #invitation .ee-stationery{
  border-width:54px 18px 55px;
  padding-inline:2px;
 }
 body[data-theme="enchanted"] #invitation #events .ee-stationery .ee-v2-event{
  padding-inline:9px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 body[data-theme="enchanted"] #invitation .ee-door-monogram{transition:none!important}
}
