:root {
  color-scheme: light;
  --ink:#24332e;--muted:#59675f;--paper:#f7f5ef;--forest:#16352f;
  --invite-accent:#c8a767;--invite-bg:#18332d;--invite-ink:#f5efdf;
  --invite-serif:"Cormorant Garamond",Georgia,serif;--invite-sans:"DM Sans",system-ui,sans-serif;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { min-width:320px; min-height:100vh; margin:0; background:var(--paper); color:var(--ink); font:400 15px/1.6 var(--invite-sans); }
a { color:inherit; }
:focus-visible { outline:2px solid #98763f; outline-offset:4px; }
.guest-header { display:flex; width:min(1100px,calc(100% - 36px)); min-height:66px; align-items:center; justify-content:space-between; margin:auto; border-bottom:1px solid rgba(36,51,46,.13); }
.guest-header a { display:inline-flex; align-items:center; gap:8px; font-size:.62rem; letter-spacing:.13em; text-decoration:none; }
.guest-header a span { display:grid; width:27px; height:27px; place-items:center; border:1px solid var(--invite-accent); font:italic 1rem var(--invite-serif); }
.guest-header > span { color:var(--muted); font-size:.52rem; letter-spacing:.12em; }
.guest-main { display:grid; justify-items:center; gap:20px; padding:36px 16px 55px; }
.guest-loading { color:var(--muted); font-size:.78rem; }
.guest-error { max-width:480px; padding:40px 20px; text-align:center; }
.guest-preview-notice { position:sticky; top:0; z-index:1000; margin:0; padding:10px 16px; background:#fff3cd; color:#5c4719; font:500 .78rem/1.4 "DM Sans",sans-serif; text-align:center; box-shadow:0 1px 0 #e0c98f; }
.guest-error h1 { margin:0; font:500 2rem var(--invite-serif); }
.guest-error > p:not(.eyebrow) { color:var(--muted); font-size:.8rem; }
.guest-error > a { color:#71562f; font-size:.7rem; }
.invite-card {
  --invite-bg:#18332d;--invite-ink:#f5efdf;--invite-accent:#c8a767;--card-radius:2px;--card-texture:none;
  position:relative; width:100%; overflow:hidden; border:1px solid var(--invite-accent); border-radius:var(--card-radius);
  background:var(--invite-bg); color:var(--invite-ink); box-shadow:0 12px 38px rgba(14,28,23,.18);
  font-family:var(--invite-sans);
}
.invite-card::before { position:absolute; inset:12px; border:1px solid color-mix(in srgb,var(--invite-accent) 48%,transparent); border-radius:calc(var(--card-radius) / 2); content:""; pointer-events:none; }
.invite-card::after { position:absolute; inset:0; background-image:var(--card-texture); background-size:cover; content:""; opacity:.09; pointer-events:none; }
.invite-card__inner { position:relative; z-index:1; display:flex; min-height:590px; flex-direction:column; align-items:center; padding:52px 25px 35px; text-align:center; }
.invite-card__eyebrow { max-width:27ch; margin:0; color:var(--invite-accent); font-size:.49rem; letter-spacing:.17em; line-height:1.55; }
.invite-card__photo-wrap { width:min(72%,225px); height:174px; margin:23px auto 0; overflow:hidden; border:1px solid var(--invite-accent); border-radius:var(--photo-radius,2px); }
.invite-card__photo { width:100%; height:100%; object-fit:cover; }
.invite-card__names { display:flex; flex-direction:column; gap:0; margin:38px 0 0; font:500 clamp(2.7rem,9vw,4.2rem)/.87 var(--invite-serif); }
.invite-card__names i { margin:8px 0; color:var(--invite-accent); font:italic 1.6rem var(--invite-serif); }
.invite-card__divider { display:flex; width:100%; align-items:center; gap:11px; margin:24px 0 16px; color:var(--invite-accent); }
.invite-card__divider::before,.invite-card__divider::after { height:1px; flex:1; background:color-mix(in srgb,var(--invite-accent) 50%,transparent); content:""; }
.invite-card__divider span { font-size:.68rem; }
.invite-card__message { max-width:34ch; margin:0 0 17px; font:italic 1rem/1.35 var(--invite-serif); }
.invite-card__date { margin:0; font:500 1.65rem/1.1 var(--invite-serif); letter-spacing:.04em; }
.invite-card__time { margin:5px 0 0; color:var(--invite-accent); font-size:.68rem; letter-spacing:.14em; }
.invite-card__venue { display:flex; align-items:center; gap:10px; margin-top:22px; text-align:left; }
.invite-card__pin { display:grid; width:30px; height:30px; flex:0 0 30px; place-items:center; border:1px solid var(--invite-accent); border-radius:50%; color:var(--invite-accent); }
.invite-card__venue p { display:grid; gap:2px; margin:0; }
.invite-card__venue b { font:500 1.12rem var(--invite-serif); }
.invite-card__venue small { color:color-mix(in srgb,var(--invite-ink) 70%,transparent); font-size:.55rem; }
.invite-card__dress-code { margin:16px 0 0; padding:6px 11px; border:1px solid color-mix(in srgb,var(--invite-accent) 55%,transparent); color:var(--invite-accent); font-size:.52rem; letter-spacing:.08em; }
.invite-card__agenda { display:grid; width:min(100%,290px); gap:8px; margin:16px 0 0; padding:0; list-style:none; text-align:left; }
.invite-card__agenda li { display:grid; grid-template-columns:42px minmax(0,1fr); gap:8px; padding-bottom:7px; border-bottom:1px solid color-mix(in srgb,var(--invite-accent) 35%,transparent); font-size:.58rem; }
.invite-card__agenda time { color:var(--invite-accent); font-weight:600; }
.invite-card__agenda span { overflow-wrap:anywhere; }
.invite-card__countdown { display:grid; gap:1px; margin-top:19px; }
.invite-card__countdown b { color:var(--invite-accent); font:500 1.06rem var(--invite-serif); }
.invite-card__countdown small { color:color-mix(in srgb,var(--invite-ink) 70%,transparent); font-size:.5rem; }
.invite-card__footer { margin:auto 0 0; padding-top:25px; color:var(--invite-accent); font-size:.46rem; letter-spacing:.15em; }
.invite-card__rsvp-demo { margin-top:14px; color:color-mix(in srgb,var(--invite-ink) 65%,transparent); font-size:.46rem; }
.map-button { display:inline-flex; min-height:40px; align-items:center; justify-content:center; margin-top:20px; padding:0 14px; border:1px solid var(--invite-accent); color:var(--invite-accent); font-size:.57rem; text-decoration:none; }
.theme-kinematik { --invite-bg:#14120e;--invite-ink:#f5efdf;--card-radius:2px; }
.theme-klassik { --invite-bg:#f5eedf;--invite-ink:#34352d;--card-radius:2px; }
.theme-bahor { --invite-bg:#e8eee3;--invite-ink:#33453a;--card-radius:22px;--photo-radius:45% 45% 2px 2px; }
.theme-moviy { --invite-bg:#172b49;--invite-ink:#f2ead8;--card-radius:3px; }
.theme-bog { --invite-bg:#e7e9d8;--invite-ink:#344238;--card-radius:38px 3px; }
.theme-oqqush { --invite-bg:#f5f5f2;--invite-ink:#30363a;--card-radius:50% 50% 3px 3px; }
.theme-shom { --invite-bg:#3a1c29;--invite-ink:#f3e6dc;--card-radius:3px; }
.theme-sadaf { --invite-bg:#efe9e5;--invite-ink:#473b3a;--card-radius:24px; }
.theme-shafaq { --invite-bg:#472d1f;--invite-ink:#f8e6bf;--card-radius:3px; }
.theme-oydin { --invite-bg:#20253c;--invite-ink:#e7e6f4;--card-radius:50% 50% 3px 3px; }
.theme-navbahor { --invite-bg:#dfe9db;--invite-ink:#304539;--card-radius:28px; }
.theme-ziyo { --invite-bg:#e8e4ed;--invite-ink:#423849;--card-radius:22px 3px; }
.theme-lola { --invite-bg:#f4e5e3;--invite-ink:#533b3a;--card-radius:3px; }
.theme-samar { --invite-bg:#7b4431;--invite-ink:#fff0d6;--card-radius:3px; }
.theme-osmon { --invite-bg:#dce7e9;--invite-ink:#35464a;--card-radius:50% 50% 3px 3px; }
.theme-tilla { --invite-bg:#e9dec6;--invite-ink:#493b2c;--card-radius:3px; }
.theme-abadiyat { --invite-bg:#302d35;--invite-ink:#f0e5d7;--card-radius:22px; }
.theme-anor { --invite-bg:#7d3942;--invite-ink:#f8ebdf;--card-radius:3px; }
.theme-saf { --invite-bg:#f7f4e9;--invite-ink:#30302c;--card-radius:3px; }
.theme-gulshan { --invite-bg:#f2e4e6;--invite-ink:#553c48;--card-radius:50% 50% 3px 3px; }
.theme-ertak { --invite-bg:#e7e6f1;--invite-ink:#46415d;--card-radius:26px; }
.theme-nafis { --invite-bg:#ede1d7;--invite-ink:#49382f;--card-radius:3px; }
.theme-mehr { --invite-bg:#522d3b;--invite-ink:#f8e7dd;--card-radius:27px; }
.theme-orzum { --invite-bg:#dbe4e9;--invite-ink:#344550;--card-radius:3px; }
.palette-gold { --invite-accent:#c8a767; }
.palette-sage { --invite-accent:#91aa8d; }
.palette-rose { --invite-accent:#d49b9c; }
.palette-blue { --invite-accent:#91b2dc; }
.palette-lavender { --invite-accent:#c0a3d4; }
.palette-terracotta { --invite-accent:#e29b78; }
.palette-emerald { --invite-accent:#69b8a0; }
.palette-ivory { --invite-accent:#f0e4c9; }
.guest-credit { margin:0; color:var(--muted); font-size:.61rem; }
.guest-credit a { color:#725931; }
.guest-audio { width:min(500px,100%); padding:12px; border:1px solid var(--invite-accent); background:white; }
.guest-audio p { margin:0 0 7px; font-size:.61rem; }
.guest-audio audio { width:100%; height:38px; }
.guest-rsvp { width:min(500px,100%); padding:23px; border:1px solid #d9ded5; background:white; }
.guest-rsvp h2 { margin:0 0 17px; font:500 1.8rem/1.1 var(--invite-serif); }
.guest-rsvp form { display:grid; gap:8px; }
.guest-rsvp form > label,.guest-rsvp legend { color:#35453d; font-size:.65rem; font-weight:600; }
.guest-rsvp form > label span { color:var(--muted); font-weight:400; }
.guest-rsvp input:not([type=radio]),.guest-rsvp select,.guest-rsvp textarea { width:100%; min-height:40px; padding:8px 10px; border:1px solid #d8ded8; border-radius:2px; background:#fff; color:#24332e; font:400 .72rem var(--invite-sans); }
.guest-rsvp fieldset { display:grid; gap:8px; margin:8px 0; padding:0; border:0; }
.guest-rsvp fieldset label { display:flex; align-items:center; gap:7px; color:#47554d; font-size:.66rem; }
.guest-rsvp form > button { min-height:42px; margin-top:7px; border:0; background:var(--forest); color:white; cursor:pointer; font-size:.67rem; font-weight:600; }
.guest-rsvp form > button:disabled { opacity:.6; }
#guestRsvpStatus { margin:3px 0 0; color:#286044; font-size:.66rem; }
#guestRsvpStatus[data-kind=error] { color:#9a3030; }
.theme-klassik .invite-card__inner,.theme-bahor .invite-card__inner,.theme-bog .invite-card__inner,.theme-oqqush .invite-card__inner,.theme-sadaf .invite-card__inner,.theme-navbahor .invite-card__inner,.theme-ziyo .invite-card__inner,.theme-lola .invite-card__inner,.theme-osmon .invite-card__inner,.theme-tilla .invite-card__inner,.theme-saf .invite-card__inner,.theme-gulshan .invite-card__inner,.theme-ertak .invite-card__inner,.theme-nafis .invite-card__inner,.theme-orzum .invite-card__inner { padding-top:58px; }
.theme-oqqush .invite-card__names,.theme-oydin .invite-card__names,.theme-osmon .invite-card__names,.theme-gulshan .invite-card__names { font-style:italic; }
.theme-shafaq .invite-card__date,.theme-samar .invite-card__date,.theme-shom .invite-card__date { letter-spacing:.08em; }
.theme-ziyo::after,.theme-ertak::after { opacity:.13; background-image:radial-gradient(circle at 20% 20%,var(--invite-accent) 1px,transparent 1.5px),radial-gradient(circle at 70% 65%,var(--invite-accent) 1px,transparent 1.5px); background-size:37px 41px,53px 59px; }
.theme-kinematik::before,.theme-moviy::before,.theme-shom::before,.theme-oydin::before,.theme-abadiyat::before,.theme-mehr::before { inset:16px; border-style:double; border-width:3px; }
@media (max-width:520px) { .guest-main { padding-top:20px; }.invite-card__inner { min-height:570px; padding:47px 23px 29px; }.invite-card__names { font-size:3.3rem; } }
@media (max-width:520px) {
  .guest-main { padding-right:12px; padding-left:12px; }
  .invite-card__inner { padding:clamp(34px,9vw,47px) clamp(18px,6vw,23px) 27px;   }

  .invite-card[data-layout="cinema"]::before {
    inset:18px;
    border:3px double color-mix(in srgb,var(--invite-accent) 72%,transparent);
  }
  .invite-card[data-layout="cinema"] .invite-card__divider { max-width:76%; }
  .invite-card[data-layout="editorial"] .invite-card__inner {
    align-items:flex-start;
    padding-right:clamp(34px,9vw,54px);
    padding-left:clamp(34px,9vw,54px);
    text-align:left;
  }
  .invite-card[data-layout="editorial"] .invite-card__names { align-items:flex-start; }
  .invite-card[data-layout="editorial"] .invite-card__divider { width:68%; }
  .invite-card[data-layout="editorial"] .invite-card__message { max-width:30ch; }
  .invite-card[data-layout="editorial"] .invite-card__venue { width:100%; }
  .invite-card[data-layout="botanical"]::after {
    opacity:.22;
    background-image:
      radial-gradient(ellipse at 4% 12%,color-mix(in srgb,var(--invite-accent) 40%,transparent) 0 2%,transparent 3%),
      radial-gradient(ellipse at 96% 28%,color-mix(in srgb,var(--invite-accent) 35%,transparent) 0 2%,transparent 3%),
      radial-gradient(ellipse at 8% 84%,color-mix(in srgb,var(--invite-accent) 25%,transparent) 0 2%,transparent 3%);
    background-size:100% 100%;
  }
  .invite-card[data-layout="arch"]::before {
    inset:16px 27px 14px;
    border-radius:50% 50% 3px 3px;
  }
  .invite-card[data-layout="arch"] .invite-card__photo-wrap {
    border-radius:50% 50% 3px 3px;
  }
  .invite-card[data-layout="pearl"]::after {
    opacity:.3;
    background-image:radial-gradient(circle at 50% 36%,color-mix(in srgb,var(--invite-accent) 48%,transparent),transparent 42%);
  }
  .invite-card[data-layout="sunset"]::after {
    opacity:.2;
    background-image:linear-gradient(180deg,transparent 58%,color-mix(in srgb,var(--invite-accent) 45%,transparent));
  }
  .invite-card[data-layout="sunset"] .invite-card__date {
    padding:8px 18px;
    border-top:1px solid var(--invite-accent);
    border-bottom:1px solid var(--invite-accent);
  }
  .invite-card[data-layout="celestial"]::after {
    opacity:.2;
    background-image:
      radial-gradient(circle at 18% 22%,var(--invite-accent) 1px,transparent 2px),
      radial-gradient(circle at 74% 17%,var(--invite-accent) 1px,transparent 2px),
      radial-gradient(circle at 82% 73%,var(--invite-accent) 1px,transparent 2px),
      radial-gradient(circle at 21% 81%,var(--invite-accent) 1px,transparent 2px);
    background-size:130px 160px,170px 190px,190px 220px,160px 180px;
  }
  .invite-card[data-layout="horizon"] .invite-card__names {
    flex-direction:row;
    align-items:center;
    justify-content:center;
    gap:9px;
    font-size:clamp(2rem,7vw,3.35rem);
  }
  .invite-card[data-layout="horizon"] .invite-card__names i { margin:0; font-size:1.15rem; }
  .invite-card[data-layout="horizon"] .invite-card__divider { width:72%; }
  .invite-card[data-layout="luxe"]::before {
    inset:23px;
    border-style:double;
    border-width:4px;
    transform:rotate(0.5deg);
  }
  .invite-card[data-layout="luxe"] .invite-card__pin { transform:rotate(45deg); border-radius:3px; }
  .invite-card[data-template="oydin"]::after { opacity:.28; background-image:radial-gradient(circle at 50% 25%,#fff8 0 1px,transparent 2px); background-size:41px 43px; }
  .invite-card[data-template="sadaf"] .invite-card__divider span { font-size:1.2rem; }
  .invite-card[data-template="saf"]::before { inset:27px; border-width:1px; }
  .invite-card[data-template="abadiyat"] .invite-card__eyebrow { letter-spacing:.28em; }
  .invite-card[data-template="gulshan"] .invite-card__divider span { font-size:1.2rem; }
  .invite-card[data-template="osmon"]::after,.invite-card[data-template="orzum"]::after {
    opacity:.23;
    background-image:linear-gradient(180deg,transparent 49%,var(--invite-accent) 50%,transparent 51%);
  }

  .invite-card__eyebrow { letter-spacing:.12em; }
  .invite-card__names {
    width:100%;
    max-width:100%;
    font-size:clamp(2.25rem,11vw,3rem);
    overflow-wrap:anywhere;
  }
  .invite-card__names span { max-width:100%; overflow-wrap:anywhere; }
  .invite-card__message { max-width:100%; }
  .invite-card__date { font-size:clamp(1.35rem,6vw,1.65rem); }
  .invite-card__venue { width:100%; max-width:300px; align-items:flex-start; }
  .invite-card__venue p { min-width:0; }
  .invite-card__venue b,.invite-card__venue small { overflow-wrap:anywhere; }
  .invite-card__footer { letter-spacing:.1em; }
  .map-button { min-height:44px; font-size:.66rem; }
}

.guest-map {
  width:100%;
  max-width:560px;
  height:250px;
  margin:20px auto 0;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--invite-accent) 45%,transparent);
}
.guest-map iframe { width:100%; height:100%; border:0; }
.video-share {
  width:min(560px,100%);
  margin:22px auto 0;
  padding:16px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 44%,transparent);
  background:color-mix(in srgb,var(--invite-bg,#18332d) 88%,white);
  color:var(--invite-ink,#f5efdf);
  text-align:left;
}
.video-share .eyebrow { margin-bottom:5px; color:var(--invite-accent); font-size:.57rem; }
.video-share h3 { margin:0; color:var(--invite-ink,#f5efdf); font:500 1.35rem/1.1 var(--invite-serif); }
.video-share > p:not(.eyebrow) { margin:7px 0 12px; color:color-mix(in srgb,var(--invite-ink,#f5efdf) 75%,transparent); font-size:.64rem; }
.video-share > button { cursor:pointer; }
.video-share > button:disabled { cursor:wait; opacity:.65; }
.video-share progress { display:block; width:100%; height:5px; margin:12px 0; accent-color:var(--invite-accent); }
.video-share video { display:block; width:min(100%,260px); max-height:460px; margin:14px auto 0; background:#101915; }
.video-share .guest-actions { justify-content:flex-start; }
.video-share .form-status,.video-share .guest-status { margin-bottom:0; }
.video-share .form-status[data-kind="error"],.video-share .guest-status[data-kind="error"] { color:#ffb1a7; }
.video-share .share-actions a,.video-share .share-actions button {
  border-color:var(--invite-accent);
  background:transparent;
  color:var(--invite-ink,#f5efdf);
}
.video-share .share-actions a:hover,.video-share .share-actions button:hover { background:color-mix(in srgb,var(--invite-accent) 16%,transparent); }
.video-styles { display:grid; grid-template-columns:108px 1fr; gap:12px; align-items:start; margin:0 0 12px; }
.video-styles__preview { width:108px; aspect-ratio:9/16; height:auto; border:1px solid color-mix(in srgb,var(--invite-accent) 55%,transparent); background:#101915; }
.video-styles__list { display:grid; gap:6px; }
.video-styles__option {
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:8px;
  padding:7px 9px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 30%,transparent);
  cursor:pointer;
  text-align:left;
}
.video-styles__option:has(input:checked) { border-color:var(--invite-accent); background:color-mix(in srgb,var(--invite-accent) 14%,transparent); }
.video-styles__option input { grid-row:span 2; margin:2px 0 0; accent-color:var(--invite-accent); }
.video-styles__option b { font-size:.7rem; font-weight:600; }
.video-styles__option span { font-size:.58rem; opacity:.75; }

@media (max-width:520px) {
  .guest-map { height:210px; }
  .video-share { padding:13px; }
  .video-share video { width:min(100%,220px); }
  .video-styles { grid-template-columns:88px 1fr; }
  .video-styles__preview { width:88px; }
}

.guest-is-locked { overflow:hidden; }
.guest-opening {
  position:fixed;
  z-index:20;
  inset:0;
  display:grid;
  place-items:center;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:24px;
  background:radial-gradient(ellipse at 50% 12%,color-mix(in srgb,var(--invite-accent) 20%,transparent),transparent 52%),var(--invite-bg,#14120e);
  color:var(--invite-ink,#f5efdf);
  transition:opacity .55s ease,transform .55s ease,visibility .55s ease;
}
.guest-opening::before {
  position:absolute;
  inset:14px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 48%,transparent);
  content:"";
  pointer-events:none;
}
.guest-opening.is-closing { visibility:hidden; transform:scale(1.03); opacity:0; }
.guest-opening__panel {
  position:relative;
  display:flex;
  width:min(440px,100%);
  min-height:min(640px,calc(100dvh - 48px));
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:clamp(34px,9vw,60px) clamp(22px,7vw,48px);
  border:1px solid color-mix(in srgb,var(--invite-accent) 58%,transparent);
  background:linear-gradient(145deg,color-mix(in srgb,var(--invite-bg) 90%,white),var(--invite-bg));
  box-shadow:0 24px 70px rgba(0,0,0,.2);
  text-align:center;
}
.guest-opening__panel::before {
  position:absolute;
  inset:11px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 34%,transparent);
  content:"";
  pointer-events:none;
}
.guest-opening__panel > * { position:relative; }
.guest-opening__panel .eyebrow { margin:0; color:var(--invite-accent); font-size:.63rem; letter-spacing:.22em; text-transform:uppercase; }
.guest-opening__ornament { margin:30px 0 16px; color:var(--invite-accent); font:2rem var(--invite-serif); }
.guest-opening__panel h1 {
  display:flex;
  width:100%;
  flex-direction:column;
  gap:1px;
  margin:0;
  font:500 clamp(2.4rem,10vw,3.8rem)/.91 var(--invite-serif);
  overflow-wrap:anywhere;
}
.guest-opening__panel h1 span { max-width:100%; overflow-wrap:anywhere; }
.guest-opening__panel h1 i { margin:7px 0; color:var(--invite-accent); font:italic 1.45rem var(--invite-serif); }
.guest-opening__date { margin:22px 0 0; color:color-mix(in srgb,var(--invite-ink) 76%,transparent); font-size:.66rem; letter-spacing:.1em; }
.guest-opening__button {
  display:inline-flex;
  min-height:50px;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:35px;
  padding:0 21px;
  border:1px solid var(--invite-accent);
  background:transparent;
  color:var(--invite-ink);
  cursor:pointer;
  font:500 .75rem var(--invite-sans);
  letter-spacing:.04em;
}
.guest-opening__button:hover { background:color-mix(in srgb,var(--invite-accent) 14%,transparent); }
.guest-opening__button span { color:var(--invite-accent); }
.guest-opening__panel > small { margin-top:13px; color:color-mix(in srgb,var(--invite-ink) 66%,transparent); font-size:.57rem; }

.guest-main { width:min(820px,100%); margin-inline:auto; gap:16px; padding:24px 18px 56px; }
.guest-main > .invite-card { max-width:560px; }
.guest-scroll-cue { display:inline-flex; align-items:center; gap:10px; color:var(--invite-accent); font-size:.68rem; text-decoration:none; }
.guest-scroll-cue span { font-size:1.1rem; }
.guest-section {
  position:relative;
  width:100%;
  overflow:hidden;
  padding:clamp(28px,6vw,54px);
  border:1px solid color-mix(in srgb,var(--invite-accent) 44%,transparent);
  background:linear-gradient(145deg,color-mix(in srgb,var(--invite-bg,#18332d) 94%,white),var(--invite-bg,#18332d));
  color:var(--invite-ink,#f5efdf);
  box-shadow:0 18px 46px rgba(14,28,23,.12);
  text-align:center;
}
.guest-section::before { position:absolute; inset:10px; border:1px solid color-mix(in srgb,var(--invite-accent) 24%,transparent); content:""; pointer-events:none; }
.guest-section > * { position:relative; }
.guest-section .eyebrow { margin:0 0 10px; color:var(--invite-accent); font-size:.59rem; letter-spacing:.18em; }
.guest-section h2 { margin:0; font:500 clamp(2rem,7vw,3rem)/1.02 var(--invite-serif); }
.guest-section h2 em { color:var(--invite-accent); font-weight:400; }
.guest-section > p:not(.eyebrow) { color:color-mix(in srgb,var(--invite-ink) 78%,transparent); font-size:.78rem; line-height:1.75; }
.guest-welcome > p:not(.eyebrow) { max-width:43ch; margin:17px auto 0; }
.guest-welcome__signature { font:italic 1.25rem var(--invite-serif); }
.guest-welcome__signature i { color:var(--invite-accent); }
.guest-countdown h2 { font-size:clamp(1.8rem,6.6vw,2.7rem); }
.guest-countdown__grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:26px; }
.guest-countdown__grid > div { display:grid; min-width:0; gap:5px; padding:13px 5px; border:1px solid color-mix(in srgb,var(--invite-accent) 28%,transparent); background:color-mix(in srgb,var(--invite-ink) 5%,transparent); }
.guest-countdown__grid b { color:var(--invite-accent); font:500 clamp(1.45rem,6vw,2.3rem)/1 var(--invite-serif); font-variant-numeric:tabular-nums; }
.guest-countdown__grid small { color:color-mix(in srgb,var(--invite-ink) 72%,transparent); font-size:.53rem; letter-spacing:.08em; text-transform:uppercase; }
.guest-countdown__done { margin:22px 0 0; color:var(--invite-accent); font:italic 1.2rem var(--invite-serif); }
.guest-calendar__month { margin:20px 0 12px; color:var(--invite-accent); font:500 1.15rem var(--invite-serif); text-transform:capitalize; }
.guest-calendar__grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; max-width:420px; margin-inline:auto; }
.guest-calendar__weekday { padding:6px 0; color:color-mix(in srgb,var(--invite-ink) 67%,transparent); font-size:.58rem; font-weight:600; }
.guest-calendar__blank,.guest-calendar__day { display:grid; min-width:0; aspect-ratio:1; place-items:center; }
.guest-calendar__day { border:1px solid transparent; color:color-mix(in srgb,var(--invite-ink) 84%,transparent); font-size:.72rem; }
.guest-calendar__day.is-event { border-color:var(--invite-accent); border-radius:50%; background:var(--invite-accent); color:#201b13; font-weight:700; }
.guest-calendar__date { margin:17px 0 0; color:var(--invite-ink); font:italic 1.05rem var(--invite-serif); }
.guest-calendar__note { margin:8px 0 0; color:color-mix(in srgb,var(--invite-ink) 65%,transparent); font-size:.58rem; }
.guest-action {
  display:inline-flex;
  min-height:46px;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 16px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 62%,transparent);
  background:transparent;
  color:var(--invite-ink);
  cursor:pointer;
  font:600 .68rem var(--invite-sans);
  text-decoration:none;
}
.guest-action:hover { background:color-mix(in srgb,var(--invite-accent) 13%,transparent); }
.guest-calendar > .guest-action { margin-top:17px; }
.guest-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:19px; }
.guest-location h2 { font-size:clamp(1.8rem,6vw,2.5rem); }
.guest-location__details { margin:9px auto 0; font-size:.77rem; }
.guest-share h2 { font-size:clamp(1.8rem,6vw,2.6rem); }
.guest-share .share-url-row { max-width:520px; margin:20px auto 0; }
.guest-share .share-url-row input { min-width:0; min-height:46px; flex:1; padding:10px 12px; border:1px solid color-mix(in srgb,var(--invite-accent) 42%,transparent); background:color-mix(in srgb,var(--invite-bg,#18332d) 84%,white); color:var(--invite-ink); font:.69rem var(--invite-sans); }
.guest-share .share-url-row button { min-height:46px; }
.guest-status { margin:12px 0 0; color:#88c99d; font-size:.68rem; }
.guest-status[data-kind="error"] { color:#f1a49a; }
.guest-rsvp {
  width:100%;
  max-width:none;
  padding:clamp(24px,6vw,48px);
  border:1px solid color-mix(in srgb,var(--invite-accent) 44%,transparent);
  background:var(--invite-bg,#18332d);
  color:var(--invite-ink,#f5efdf);
  box-shadow:0 18px 46px rgba(14,28,23,.12);
}
.guest-rsvp h2 { color:var(--invite-ink); font-size:clamp(1.9rem,7vw,2.6rem); }
.guest-rsvp form > label,.guest-rsvp legend { color:var(--invite-ink); font-size:.75rem; }
.guest-rsvp fieldset label { color:color-mix(in srgb,var(--invite-ink) 82%,transparent); font-size:.72rem; }
.guest-rsvp input:not([type=radio]),.guest-rsvp select,.guest-rsvp textarea { min-height:48px; border-color:color-mix(in srgb,var(--invite-accent) 38%,transparent); border-radius:5px; background:color-mix(in srgb,var(--invite-bg) 88%,white); color:var(--invite-ink); font-size:.8rem; }
.guest-rsvp textarea { min-height:92px; }
.guest-rsvp form > button { min-height:48px; border:1px solid var(--invite-accent); background:var(--invite-accent); color:#201b13; font-size:.74rem; }
.guest-audio { width:100%; max-width:560px; padding:16px; border:1px solid color-mix(in srgb,var(--invite-accent) 42%,transparent); background:var(--invite-bg,#18332d); color:var(--invite-ink,#f5efdf); }
.guest-audio p { font-size:.68rem; }
.guest-music-toggle {
  display:inline-flex; min-height:50px; align-items:center; justify-content:center; gap:12px; padding:0 22px 0 8px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 70%,#000 0%); border-radius:999px; background:var(--invite-accent); color:#201b13;
  box-shadow:0 10px 26px -14px color-mix(in srgb,var(--invite-accent) 90%,#000); cursor:pointer; font:600 .74rem var(--invite-sans);
  letter-spacing:.04em; transition:transform .18s,box-shadow .18s;
}
.guest-music-toggle:hover { transform:translateY(-1px); box-shadow:0 14px 30px -14px color-mix(in srgb,var(--invite-accent) 90%,#000); }
.guest-music-toggle:focus-visible { outline:2px solid var(--invite-ink); outline-offset:3px; }
/* Ikkinchi span — belgi: aylana ichida nota, chalayotganda aylanadi va to'lqin tarqatadi. */
.guest-music-toggle span:last-child {
  order:-1; display:grid; width:36px; height:36px; place-items:center; border-radius:50%;
  background:rgba(255,255,255,.55); font-size:1rem; line-height:1;
}
.guest-music-toggle[data-playing="true"] span:last-child { animation:guest-music-wave 1.8s ease-out infinite; }
/* Doim ko'rinadigan musiqa tugmasi (pastki o'ng burchak). */
.guest-music-fab {
  position:fixed; right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom)); z-index:40;
  display:grid; width:52px; height:52px; place-items:center; padding:0; border:1px solid color-mix(in srgb,var(--invite-accent) 70%,#fff);
  border-radius:50%; background:color-mix(in srgb,var(--invite-accent) 88%,#fff); color:#201b13; font-size:1.25rem; cursor:pointer;
  box-shadow:0 12px 28px -12px rgba(0,0,0,.55); transition:transform .18s, opacity .18s;
}
.guest-music-fab:hover { transform:scale(1.06); }
.guest-music-fab:focus-visible { outline:2px solid var(--invite-ink,#fff); outline-offset:3px; }
.guest-music-fab[data-playing="true"] { animation:guest-music-wave 1.8s ease-out infinite; }
.guest-music-fab[data-playing="false"] { opacity:.78; }
.guest-music-fab[data-playing="false"] span { text-decoration:line-through; }
@media (prefers-reduced-motion: reduce) { .guest-music-fab[data-playing="true"] { animation:none; } }
/* Ulashish tugmasi — musiqa tugmasining ustida (u bo'lmasa, uning o'rnida). */
.guest-share-fab {
  position:fixed; right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom)); z-index:40;
  display:grid; width:52px; height:52px; place-items:center; padding:0; border:1px solid color-mix(in srgb,var(--invite-accent) 70%,#fff);
  border-radius:50%; background:var(--invite-bg,#18332d); color:var(--invite-ink,#f5efdf); cursor:pointer;
  box-shadow:0 12px 28px -12px rgba(0,0,0,.55); transition:transform .18s;
}
.guest-music-fab:not([hidden]) ~ .guest-share-fab { bottom:calc(max(16px,env(safe-area-inset-bottom)) + 64px); }
.guest-share-fab:hover { transform:scale(1.06); }
.guest-share-fab:focus-visible { outline:2px solid var(--invite-ink,#fff); outline-offset:3px; }
body.guest-is-locked .guest-share-fab { display:none; }
.guest-action--primary { border-color:var(--invite-accent); background:var(--invite-accent); color:#201b13; }
@keyframes guest-music-wave {
  0% { box-shadow:0 0 0 0 rgba(255,255,255,.7); }
  100% { box-shadow:0 0 0 12px rgba(255,255,255,0); }
}
@media (prefers-reduced-motion:reduce) { .guest-music-toggle[data-playing="true"] span:last-child { animation:none; } }
.guest-audio .guest-status { margin-bottom:0; }
.guest-credit { width:100%; text-align:center; }
.guest-credit a { color:var(--invite-accent); }
.guest-gallery__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:26px; }
.guest-gallery__grid img { display:block; width:100%; aspect-ratio:4/5; object-fit:cover; background:color-mix(in srgb,var(--invite-ink) 10%,transparent); }

body[data-layout="story"] { background:#10110f; }
body[data-layout="story"] .guest-header { display:none; }
body[data-layout="story"] .guest-main { width:100%; gap:clamp(22px,6vh,60px); padding:0 0 42px; }
body[data-layout="story"] .guest-main > .invite-card { max-width:none; min-height:100svh; border:0; border-radius:0; box-shadow:none; }
body[data-layout="story"] .invite-card::before { z-index:2; inset:18px; border-color:color-mix(in srgb,var(--invite-accent) 70%,transparent); }
body[data-layout="story"] .invite-card__photo-wrap { position:absolute; z-index:0; inset:0; width:100%; height:100%; margin:0; border:0; border-radius:0; }
body[data-layout="story"] .invite-card__photo-wrap::after { position:absolute; inset:0; background:linear-gradient(180deg,rgba(10,12,10,.08) 8%,rgba(10,12,10,.18) 35%,rgba(10,12,10,.86) 100%); content:""; }
body[data-layout="story"] .invite-card__photo { display:block; }
body[data-layout="story"] .invite-card__inner { min-height:100svh; justify-content:flex-end; padding:clamp(74px,13vh,130px) clamp(28px,9vw,100px) clamp(54px,10vh,100px); }
body[data-layout="story"] .invite-card__eyebrow { color:color-mix(in srgb,var(--invite-ink) 84%,transparent); }
body[data-layout="story"] .invite-card__names { margin-top:clamp(18px,4vh,42px); font-size:clamp(3.2rem,10vw,7.3rem); text-shadow:0 3px 28px rgba(0,0,0,.32); }
body[data-layout="story"] .invite-card__names i { margin:clamp(8px,2vh,20px) 0; }
body[data-layout="story"] .invite-card__divider { max-width:440px; }
body[data-layout="story"] .invite-card__message { margin-bottom:13px; }
body[data-layout="story"] .invite-card__venue,
body[data-layout="story"] .invite-card__dress-code,
body[data-layout="story"] .invite-card__agenda,
body[data-layout="story"] .invite-card__footer,
body[data-layout="story"] .invite-card .map-button { display:none; }
body[data-layout="story"] .guest-scroll-cue { min-height:42px; color:var(--invite-ink); }
body[data-layout="story"] .guest-section,
body[data-layout="story"] .guest-rsvp,
body[data-layout="story"] .guest-audio { width:min(920px,calc(100% - 36px)); }
body[data-layout="story"] .guest-section { min-height:38vh; display:flex; flex-direction:column; justify-content:center; border-color:color-mix(in srgb,var(--invite-accent) 40%,transparent); box-shadow:0 18px 55px rgba(0,0,0,.26); }
body[data-layout="story"] .guest-gallery__grid img { max-height:72vh; }
body[data-layout="story"] .guest-rsvp { max-width:920px; }

@media (max-width:520px) {
  .guest-header { width:calc(100% - 24px); min-height:58px; }
  .guest-header > span { font-size:.46rem; letter-spacing:.08em; }
  .guest-main { gap:14px; padding:18px 12px 40px; }
  .guest-main > .invite-card { max-width:none; }
  .invite-card__names { font-size:clamp(2.25rem,11vw,3rem); }
  .guest-section { padding:28px 20px; }
  .guest-section::before { inset:8px; }
  .guest-countdown__grid { gap:6px; margin-top:20px; }
  .guest-countdown__grid > div { padding:12px 2px; }
  .guest-countdown__grid small { font-size:.46rem; letter-spacing:.04em; }
  .guest-calendar__grid { gap:3px; }
  .guest-calendar__day { font-size:.66rem; }
  .guest-share .share-url-row { flex-direction:column; }
  .guest-share .share-url-row input,.guest-share .share-url-row button { width:100%; }
  .guest-actions { flex-direction:column; }
  .guest-actions .guest-action { width:100%; }
  .guest-opening { padding:18px; }
  .guest-opening__panel { min-height:min(590px,calc(100dvh - 36px)); }
  body[data-layout="story"] .guest-main { gap:28px; padding-bottom:28px; }
  body[data-layout="story"] .guest-main > .invite-card,
  body[data-layout="story"] .invite-card__inner { min-height:100svh; }
  body[data-layout="story"] .invite-card::before { inset:12px; }
  body[data-layout="story"] .invite-card__inner { padding:76px 29px max(56px,9vh); }
  body[data-layout="story"] .invite-card__names { font-size:clamp(3.1rem,13vw,5.2rem); }
  body[data-layout="story"] .guest-section,
  body[data-layout="story"] .guest-rsvp,
  body[data-layout="story"] .guest-audio { width:calc(100% - 24px); }
  body[data-layout="story"] .guest-section { min-height:45vh; }
  .guest-gallery__grid { gap:8px; margin-top:20px; }
}
@media (orientation:landscape) and (max-height:520px) {
  .guest-opening { padding:12px 18px; }
  .guest-opening::before { inset:8px; }
  .guest-opening__panel { min-height:0; padding:16px clamp(24px,6vw,48px); }
  .guest-opening__ornament { margin:10px 0 6px; font-size:1.55rem; }
  .guest-opening__panel h1 { font-size:clamp(1.7rem,5vw,2.4rem); line-height:.9; }
  .guest-opening__panel h1 i { margin:2px 0; font-size:1.15rem; }
  .guest-opening__date { margin-top:12px; }
  .guest-opening__button { min-height:46px; margin-top:18px; }
  .guest-opening__panel > small { margin-top:8px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; } }

/* Distinct editorial compositions for the invitation collection. */
.invite-card {
  --card-radius:4px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 52%,transparent);
  box-shadow:0 26px 62px -34px rgba(14,28,23,.46),0 3px 12px rgba(14,28,23,.08);
}
.invite-card::before {
  inset:13px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 38%,transparent);
  border-radius:2px;
}
.invite-card::after { opacity:.13; }
.invite-card__inner { min-height:610px; padding:58px clamp(27px,7vw,48px) 36px; }
.invite-card__eyebrow { font-size:.55rem; letter-spacing:.2em; }
.invite-card__names { max-width:100%; margin-top:42px; font-size:clamp(2.7rem,9vw,4.35rem); line-height:.9; overflow-wrap:anywhere; }
.invite-card__names span { max-width:100%; overflow-wrap:anywhere; }
.invite-card__divider { max-width:100%; }
.invite-card__date { font-size:1.8rem; }
.invite-card__agenda { width:min(100%,330px); }
.invite-card[data-layout="editorial"] { --card-radius:2px; }
.invite-card[data-layout="editorial"] .invite-card__inner { align-items:flex-start; padding-right:clamp(38px,9vw,64px); padding-left:clamp(38px,9vw,64px); text-align:left; }
.invite-card[data-layout="editorial"] .invite-card__eyebrow { max-width:none; }
.invite-card[data-layout="editorial"] .invite-card__names { align-items:flex-start; margin-top:55px; font-size:clamp(2.7rem,8vw,4.2rem); }
.invite-card[data-layout="editorial"] .invite-card__names i { margin:5px 0; }
.invite-card[data-layout="editorial"] .invite-card__divider { width:68%; }
.invite-card[data-layout="editorial"] .invite-card__message { margin-bottom:22px; }
.invite-card[data-layout="editorial"] .invite-card__date { padding-left:14px; border-left:2px solid var(--invite-accent); }
.invite-card[data-layout="editorial"] .invite-card__time { padding-left:16px; }
.invite-card[data-layout="editorial"] .invite-card__venue { width:100%; }
.invite-card[data-layout="editorial"] .invite-card__footer { align-self:center; }

.invite-card[data-layout="botanical"] { --card-radius:18px 4px; }
.invite-card[data-layout="botanical"]::before { inset:16px; border-radius:12px 2px; }
.invite-card[data-layout="botanical"]::after {
  opacity:.22;
  background-image:radial-gradient(ellipse at 5% 14%,color-mix(in srgb,var(--invite-accent) 38%,transparent) 0 3%,transparent 3.5%),radial-gradient(ellipse at 95% 30%,color-mix(in srgb,var(--invite-accent) 30%,transparent) 0 2%,transparent 2.5%),radial-gradient(ellipse at 8% 88%,color-mix(in srgb,var(--invite-accent) 23%,transparent) 0 2%,transparent 2.5%);
}
.invite-card[data-layout="botanical"] .invite-card__photo-wrap { border-radius:50% 50% 3px 3px; }
.invite-card[data-layout="botanical"] .invite-card__divider span { font-size:1rem; }

.invite-card[data-layout="arch"] { --card-radius:5px; }
.invite-card[data-layout="arch"]::before { inset:15px 26px 15px; border-radius:48% 48% 2px 2px; }
.invite-card[data-layout="arch"] .invite-card__inner { padding-top:66px; }
.invite-card[data-layout="arch"] .invite-card__photo-wrap { width:min(65%,220px); height:190px; border-radius:50% 50% 2px 2px; }
.invite-card[data-layout="arch"] .invite-card__names { margin-top:31px; }

.invite-card[data-layout="pearl"] { --card-radius:24px; }
.invite-card[data-layout="pearl"]::before { inset:12px; border-radius:18px; }
.invite-card[data-layout="pearl"]::after { opacity:.29; background-image:radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--invite-accent) 36%,transparent),transparent 48%),radial-gradient(circle at 100% 100%,color-mix(in srgb,var(--invite-ink) 8%,transparent),transparent 38%); }
.invite-card[data-layout="pearl"] .invite-card__divider span { font-size:1.1rem; }
.invite-card[data-layout="pearl"] .invite-card__names { font-weight:400; }

.invite-card[data-layout="sunset"] { --card-radius:3px; }
.invite-card[data-layout="sunset"]::after { opacity:.2; background-image:linear-gradient(180deg,transparent 48%,color-mix(in srgb,var(--invite-accent) 26%,transparent) 49%,transparent 50%),linear-gradient(0deg,color-mix(in srgb,var(--invite-accent) 17%,transparent),transparent 48%); }
.invite-card[data-layout="sunset"] .invite-card__date { padding:9px 18px; border-top:1px solid color-mix(in srgb,var(--invite-accent) 74%,transparent); border-bottom:1px solid color-mix(in srgb,var(--invite-accent) 74%,transparent); }
.invite-card[data-layout="sunset"] .invite-card__names { font-style:italic; }

.invite-card[data-layout="celestial"] { --card-radius:50% 50% 4px 4px / 4% 4% 2px 2px; }
.invite-card[data-layout="celestial"]::before { inset:15px 24px; border-radius:50% 50% 2px 2px / 4% 4% 2px 2px; }
.invite-card[data-layout="celestial"]::after {
  opacity:.24;
  background-image:radial-gradient(circle at 18% 18%,var(--invite-accent) 1px,transparent 2px),radial-gradient(circle at 78% 25%,var(--invite-accent) 1px,transparent 2px),radial-gradient(circle at 84% 73%,var(--invite-accent) 1px,transparent 2px),radial-gradient(circle at 22% 82%,var(--invite-accent) 1px,transparent 2px);
  background-size:137px 151px,173px 191px,193px 211px,163px 181px;
}
.invite-card[data-layout="celestial"] .invite-card__names { margin-top:48px; }

.invite-card[data-layout="horizon"] { --card-radius:4px; }
.invite-card[data-layout="horizon"]::after { opacity:.2; background-image:linear-gradient(180deg,transparent 47%,color-mix(in srgb,var(--invite-accent) 45%,transparent) 48%,transparent 49%),linear-gradient(0deg,color-mix(in srgb,var(--invite-accent) 14%,transparent),transparent 44%); }
.invite-card[data-layout="horizon"] .invite-card__names { flex-direction:row; align-items:center; justify-content:center; gap:clamp(6px,2vw,13px); font-size:clamp(2rem,7vw,3.55rem); }
.invite-card[data-layout="horizon"] .invite-card__names i { margin:0; font-size:1.2rem; }
.invite-card[data-layout="horizon"] .invite-card__divider { width:72%; }

.invite-card[data-layout="luxe"] { --card-radius:2px; }
.invite-card[data-layout="luxe"]::before { inset:20px; border-style:double; border-width:3px; }
.invite-card[data-layout="luxe"] .invite-card__pin { border-radius:3px; transform:rotate(45deg); }
.invite-card[data-layout="luxe"] .invite-card__divider span { font-size:.9rem; }

.invite-card[data-layout="cinema"] { --card-radius:2px; }
.invite-card[data-layout="cinema"]::before { inset:17px; border-style:double; border-width:3px; }
.invite-card[data-layout="cinema"]::after { opacity:.18; background-image:linear-gradient(180deg,transparent 18%,color-mix(in srgb,var(--invite-accent) 16%,transparent) 50%,transparent 82%); }
.invite-card[data-layout="cinema"] .invite-card__eyebrow { letter-spacing:.24em; }

@media (max-width:520px) {
  .invite-card__inner { min-height:570px; padding:clamp(38px,10vw,50px) clamp(22px,7vw,34px) 30px; }
  .invite-card__names { font-size:clamp(2.35rem,11vw,3.25rem); }
  .invite-card[data-layout="editorial"] .invite-card__inner { padding-right:clamp(31px,9vw,43px); padding-left:clamp(31px,9vw,43px); }
  .invite-card[data-layout="editorial"] .invite-card__names { font-size:clamp(2.35rem,10vw,3.2rem); }
  .invite-card[data-layout="horizon"] .invite-card__names { gap:5px; font-size:clamp(1.7rem,7.8vw,2.7rem); }
  .invite-card[data-layout="celestial"] { --card-radius:50% 50% 3px 3px / 3% 3% 2px 2px; }
}

/* Reference-inspired paper and emerald invitation designs. */
.theme-kinematik {
  --invite-bg:#0b4542;
  --invite-ink:#faf4e7;
  --invite-accent:#c9a24b;
  --card-radius:3px;
}

.theme-klassik {
  --invite-bg:#fbf7ee;
  --invite-ink:#46351f;
  --card-radius:2px;
}

body[data-layout="editorial"] .guest-header,
body[data-layout="story"] .guest-header { display:none; }

body[data-layout="editorial"] {
  background:
    radial-gradient(ellipse at 50% 0%,rgba(184,135,46,.12),transparent 42%),
    #eee7d9;
}

body[data-layout="story"] {
  background:
    radial-gradient(ellipse at 50% 0%,rgba(201,162,75,.11),transparent 45%),
    #082f2f;
}

.invite-card.theme-klassik {
  width:min(100%,760px);
  overflow:hidden;
  border:1px solid rgba(184,135,46,.7);
  background:
    linear-gradient(rgba(255,253,247,.96),rgba(251,247,238,.98)),
    var(--invite-bg);
  box-shadow:0 24px 70px rgba(67,49,23,.19);
}

.invite-card.theme-klassik::before {
  inset:14px;
  border:1px solid rgba(184,135,46,.65);
  outline:1px solid rgba(184,135,46,.25);
  outline-offset:5px;
  border-radius:0;
}

.invite-card.theme-klassik::after {
  opacity:.72;
  background-image:
    radial-gradient(circle at 50% 50%,rgba(184,135,46,.12) 0 1px,transparent 1.5px),
    radial-gradient(ellipse at 50% 50%,transparent 0 21px,rgba(184,135,46,.07) 21.5px 22.5px,transparent 23px),
    radial-gradient(ellipse at 0 0,rgba(184,135,46,.15),transparent 24%),
    radial-gradient(ellipse at 100% 0,rgba(184,135,46,.15),transparent 24%),
    radial-gradient(ellipse at 0 100%,rgba(184,135,46,.12),transparent 24%),
    radial-gradient(ellipse at 100% 100%,rgba(184,135,46,.12),transparent 24%);
  background-size:48px 48px,72px 72px,100% 100%,100% 100%,100% 100%,100% 100%;
}

.invite-card.theme-klassik .invite-card__inner {
  min-height:min(100svh,980px);
  padding:clamp(70px,10vh,112px) clamp(32px,8vw,82px) 58px;
}

.invite-card.theme-klassik .invite-card__eyebrow {
  max-width:none;
  color:#98702e;
  font:500 clamp(2.45rem,8vw,4.35rem)/1 "Marcellus","Cormorant Garamond",serif;
  letter-spacing:.04em;
  background:linear-gradient(110deg,#8b6725,#e3cb87 42%,#9a742e 70%,#d1b56c);
  -webkit-background-clip:text;
  background-clip:text;
  color:var(--invite-accent, #b8872e);
}

@supports (-webkit-background-clip:text) or (background-clip:text) {
  .invite-card.theme-klassik .invite-card__eyebrow { color:transparent; }
}

.invite-card.theme-klassik .invite-card__photo-wrap {
  width:min(66%,280px);
  height:clamp(150px,27vh,235px);
  border:1px solid rgba(184,135,46,.7);
  border-radius:50% 50% 2px 2px;
  box-shadow:0 0 0 6px rgba(184,135,46,.08);
}

.invite-card.theme-klassik .invite-card__names {
  align-items:center;
  margin-top:clamp(32px,6vh,60px);
  color:#593e20;
  font:400 clamp(3.2rem,10vw,5.6rem)/.95 "Great Vibes","Cormorant Garamond",serif;
  overflow-wrap:anywhere;
}

.invite-card.theme-klassik .invite-card__names i {
  margin:7px 0 3px;
  color:var(--invite-accent, #b8872e);
  font:italic 1.28rem "Cormorant Garamond",serif;
}

.invite-card.theme-klassik .invite-card__divider {
  max-width:390px;
  margin:26px 0 19px;
  color:var(--invite-accent, #b8872e);
}

.invite-card.theme-klassik .invite-card__divider span {
  font-size:1.15rem;
}

.invite-card.theme-klassik .invite-card__message {
  max-width:38ch;
  color:#554733;
  font:italic clamp(1.05rem,3vw,1.35rem)/1.55 "Cormorant Garamond",serif;
}

.invite-card.theme-klassik .invite-card__date {
  color:var(--invite-ink, #46351f);
  font:500 clamp(1.8rem,5vw,2.4rem)/1.1 "Marcellus","Cormorant Garamond",serif;
}

.invite-card.theme-klassik .invite-card__time {
  color:var(--invite-accent, #b8872e);
  font-size:.72rem;
  letter-spacing:.2em;
}

.invite-card.theme-klassik .invite-card__venue {
  justify-content:center;
  margin-top:26px;
  text-align:center;
}

.invite-card.theme-klassik .invite-card__pin {
  display:none;
}

.invite-card.theme-klassik .invite-card__venue b {
  color:#49381f;
  font:500 1.42rem "Cormorant Garamond",serif;
}

.invite-card.theme-klassik .invite-card__venue small {
  color:#6b5b43;
  font-size:.72rem;
}

.invite-card.theme-klassik .invite-card__footer {
  color:var(--invite-accent, #b8872e);
  font-size:.56rem;
  letter-spacing:.2em;
}

.invite-card.theme-klassik .map-button {
  min-height:46px;
  border-color:var(--invite-accent, #b8872e);
  color:var(--invite-accent, #b8872e);
  font-size:.68rem;
}

.invite-card.theme-kinematik[data-layout="story"] {
  width:min(100%,760px);
  min-height:min(100svh,980px);
  border:1px solid rgba(201,162,75,.78);
  background:
    radial-gradient(ellipse at 50% 5%,#14625b 0%,#0b4542 50%,#062d2d 100%);
  box-shadow:0 24px 70px rgba(1,24,24,.35);
}

.invite-card.theme-kinematik[data-layout="story"]::before {
  inset:18px;
  border:3px double rgba(201,162,75,.68);
  border-radius:2px;
}

.invite-card.theme-kinematik[data-layout="story"]::after {
  opacity:.42;
  background-image:
    linear-gradient(45deg,transparent 48%,rgba(235,214,155,.13) 49%,transparent 50%),
    linear-gradient(-45deg,transparent 48%,rgba(235,214,155,.13) 49%,transparent 50%),
    radial-gradient(circle,transparent 0 5px,rgba(235,214,155,.16) 5.5px 6px,transparent 6.5px);
  background-size:42px 42px,42px 42px,42px 42px;
}

.invite-card.theme-kinematik[data-layout="story"] .invite-card__inner {
  min-height:min(100svh,980px);
  padding:clamp(72px,11vh,116px) clamp(34px,8vw,78px) 60px;
}

.invite-card.theme-kinematik[data-layout="story"] .invite-card__eyebrow {
  color:#ebd69b;
  font-family:"Marcellus","Cormorant Garamond",serif;
  font-size:.64rem;
  letter-spacing:.24em;
}

.invite-card.theme-kinematik[data-layout="story"] .invite-card__names {
  margin-top:clamp(38px,7vh,72px);
  font-family:"Marcellus","Cormorant Garamond",serif;
  font-size:clamp(2.75rem,9vw,4.7rem);
  line-height:1;
}

.invite-card.theme-kinematik[data-layout="story"] .invite-card__divider {
  max-width:390px;
}

.invite-card.theme-kinematik[data-layout="story"] .invite-card__date {
  color:#faf4e7;
  font-family:"Marcellus","Cormorant Garamond",serif;
  font-size:clamp(1.8rem,5vw,2.35rem);
}

.invite-card.theme-kinematik[data-layout="story"] .invite-card__venue {
  justify-content:center;
  text-align:center;
}

.invite-card.theme-kinematik[data-layout="story"] .invite-card__pin {
  display:none;
}

body[data-layout="editorial"] .guest-main,
body[data-layout="story"] .guest-main {
  width:100%;
  gap:28px;
  padding:0 18px 56px;
}

body[data-layout="editorial"] .guest-section {
  border-color:rgba(184,135,46,.48);
  background:linear-gradient(145deg,#fffdf7,#f4ecdc);
  color:#46351f;
  box-shadow:0 16px 42px rgba(67,49,23,.11);
}

body[data-layout="editorial"] .guest-section::before {
  border-color:rgba(184,135,46,.25);
}

body[data-layout="editorial"] .guest-section > p:not(.eyebrow) {
  color:#64543c;
}

body[data-layout="editorial"] .guest-section h2 {
  color:#49381f;
}

body[data-layout="editorial"] .guest-rsvp {
  border-color:rgba(184,135,46,.48);
  background:#fffdf7;
  color:#46351f;
}

body[data-layout="editorial"] .guest-rsvp h2,
body[data-layout="editorial"] .guest-rsvp form > label,
body[data-layout="editorial"] .guest-rsvp legend {
  color:#49381f;
}

body[data-layout="editorial"] .guest-rsvp fieldset label {
  color:#64543c;
}

body[data-layout="editorial"] .guest-opening {
  background:
    radial-gradient(ellipse at 50% 12%,rgba(201,162,75,.24),transparent 54%),
    linear-gradient(145deg,#0d4b46,#062d2d);
  color:#faf4e7;
}

body[data-layout="editorial"] .guest-opening__panel {
  border-color:rgba(201,162,75,.8);
  background:linear-gradient(145deg,#fffdf7,#f2e8d5);
  color:#49381f;
}

body[data-layout="editorial"] .guest-opening__panel::before {
  border-color:rgba(184,135,46,.45);
}

body[data-layout="editorial"] .guest-opening__date,
body[data-layout="editorial"] .guest-opening__panel > small {
  color:#6b5b43;
}

body[data-layout="editorial"] .guest-opening__button {
  color:#49381f;
}

@media (max-width:520px) {
  body[data-layout="editorial"] .guest-main,
  body[data-layout="story"] .guest-main {
    gap:22px;
    padding:0 10px 32px;
  }

  .invite-card.theme-klassik .invite-card__inner {
    min-height:100svh;
    padding:clamp(62px,10vh,92px) 28px 42px;
  }

  .invite-card.theme-klassik .invite-card__names {
    font-size:clamp(3rem,13vw,4.45rem);
  }

  .invite-card.theme-kinematik[data-layout="story"],
  .invite-card.theme-kinematik[data-layout="story"] .invite-card__inner {
    min-height:100svh;
  }

  .invite-card.theme-kinematik[data-layout="story"] .invite-card__inner {
    padding:clamp(76px,12vh,106px) 30px 54px;
  }

  .invite-card.theme-kinematik[data-layout="story"] .invite-card__names {
    font-size:clamp(2.7rem,12vw,4rem);
  }
}

body[data-template] {
  background:
    radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--invite-accent) 15%,transparent),transparent 44%),
    var(--invite-bg);
}

body[data-template] .guest-header { display:none; }

body[data-template] .guest-main {
  width:100%;
  gap:clamp(22px,6vh,60px);
  padding:0 0 42px;
}

body[data-template] .guest-main > .invite-card {
  max-width:none;
  min-height:100svh;
  border:0;
  border-radius:0;
  background:
    radial-gradient(ellipse at 50% 12%,color-mix(in srgb,var(--invite-accent) 18%,transparent),transparent 48%),
    linear-gradient(180deg,var(--invite-bg),color-mix(in srgb,var(--invite-bg) 86%,black));
  box-shadow:none;
}

body[data-template] .invite-card::before {
  z-index:2;
  inset:18px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 68%,transparent);
  border-radius:0;
}

body[data-template] .invite-card__photo-wrap {
  position:absolute;
  z-index:0;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  border:0;
  border-radius:0;
}

body[data-template] .invite-card__photo-wrap::after {
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(10,12,10,.08) 8%,rgba(10,12,10,.2) 35%,rgba(10,12,10,.88) 100%);
  content:"";
}

body[data-template] .invite-card__photo { display:block; }

body[data-template] .invite-card[data-has-photo="true"] { --invite-ink:#fff; }
body[data-template] .invite-card[data-has-photo="true"] .invite-card__eyebrow,
body[data-template] .invite-card[data-has-photo="true"] .invite-card__names,
body[data-template] .invite-card[data-has-photo="true"] .invite-card__message,
body[data-template] .invite-card[data-has-photo="true"] .invite-card__date {
  color:var(--invite-ink);
}

body[data-template] .invite-card__inner {
  min-height:100svh;
  justify-content:flex-end;
  padding:clamp(74px,13vh,130px) clamp(28px,9vw,100px) clamp(54px,10vh,100px);
}

body[data-template] .invite-card__eyebrow {
  color:color-mix(in srgb,var(--invite-ink) 84%,transparent);
}

body[data-template] .invite-card__names {
  margin-top:clamp(18px,4vh,42px);
  font-size:clamp(3.2rem,10vw,7.3rem);
  text-shadow:0 3px 28px rgba(0,0,0,.32);
}

body[data-template] .invite-card__names i { margin:clamp(8px,2vh,20px) 0; }
body[data-template] .invite-card__divider { max-width:440px; }
body[data-template] .invite-card__message { margin-bottom:13px; }
body[data-template] .invite-card__venue,
body[data-template] .invite-card__dress-code,
body[data-template] .invite-card__agenda,
body[data-template] .invite-card__footer,
body[data-template] .invite-card .map-button { display:none; }
body[data-template] .guest-scroll-cue { min-height:42px; color:var(--invite-ink); }
body[data-template] .guest-section,
body[data-template] .guest-rsvp,
body[data-template] .guest-audio { width:min(920px,calc(100% - 36px)); }
body[data-template] .guest-section {
  min-height:38vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border-color:color-mix(in srgb,var(--invite-accent) 40%,transparent);
  box-shadow:0 18px 55px rgba(0,0,0,.18);
}
body[data-template] .guest-gallery__grid img { max-height:72vh; }
body[data-template] .guest-rsvp { max-width:920px; }

body[data-template="klassik"] .invite-card[data-has-photo="true"] {
  --invite-ink:#49381f;
  background:
    radial-gradient(ellipse at 50% 12%,rgba(184,135,46,.13),transparent 52%),
    linear-gradient(145deg,#fffdf7,#f2e8d5);
  color:#49381f;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"]::before {
  inset:18px;
  border:1px solid rgba(184,135,46,.58);
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__inner {
  min-height:100svh;
  align-items:center;
  justify-content:center;
  padding:clamp(42px,7vh,76px) clamp(24px,8vw,82px);
  text-align:center;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__eyebrow {
  align-self:center;
  color:#a47b31;
  font-size:clamp(2rem,7vw,3.8rem);
  text-align:center;
  -webkit-text-fill-color:#a47b31;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__photo-wrap {
  position:relative;
  inset:auto;
  z-index:1;
  align-self:center;
  width:min(68%,280px);
  height:clamp(148px,24vh,220px);
  flex:0 0 auto;
  margin:clamp(18px,3vh,28px) auto 0;
  border:1px solid rgba(184,135,46,.75);
  border-radius:50% 50% 2px 2px;
  box-shadow:0 0 0 6px rgba(184,135,46,.08);
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__photo-wrap::after {
  display:none;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__photo {
  object-position:center 38%;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__names {
  align-items:center;
  margin-top:clamp(24px,4vh,42px);
  color:#593e20;
  font-size:clamp(3rem,10vw,5.6rem);
  text-align:center;
  text-shadow:none;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__message,
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__date {
  color:#49381f;
  text-align:center;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__date {
  width:100%;
  padding-left:0;
  border-left:0;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__time {
  align-self:center;
}

.theme-saroy {
  --invite-bg:#100d08;
  --invite-ink:#f5efdf;
  --card-radius:0;
}

.invite-card[data-layout="palace"] {
  overflow:hidden;
  border-color:color-mix(in srgb,var(--invite-accent) 72%,transparent);
  background:
    radial-gradient(ellipse at 50% 24%,color-mix(in srgb,var(--invite-accent) 20%,transparent),transparent 52%),
    linear-gradient(180deg,#20180d,#0c0a07 72%);
}

.invite-card[data-layout="palace"]::before {
  z-index:2;
  inset:16px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 72%,transparent);
  outline:1px solid color-mix(in srgb,var(--invite-accent) 28%,transparent);
  outline-offset:5px;
}

.invite-card[data-layout="palace"]::after {
  opacity:.64;
  background-image:
    radial-gradient(circle at 12% 18%,var(--invite-accent) 0 1px,transparent 1.8px),
    radial-gradient(circle at 83% 30%,var(--invite-accent) 0 1px,transparent 1.8px),
    radial-gradient(circle at 72% 78%,var(--invite-accent) 0 1.2px,transparent 2px),
    radial-gradient(ellipse at 50% 100%,color-mix(in srgb,var(--invite-accent) 14%,transparent),transparent 48%);
  background-size:113px 151px,157px 193px,191px 127px,100% 100%;
}

.invite-card[data-layout="palace"] .invite-card__photo-wrap {
  position:absolute;
  z-index:0;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  border:0;
  border-radius:0;
}

.invite-card[data-layout="palace"] .invite-card__photo-wrap::after {
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(8,7,5,.3),rgba(8,7,5,.03) 24%,rgba(8,7,5,.2) 53%,rgba(8,7,5,.92)),
    radial-gradient(ellipse at 50% 50%,transparent 42%,rgba(7,6,4,.48));
  content:"";
}

.invite-card[data-layout="palace"] .invite-card__photo {
  display:block;
  object-position:center 42%;
}

.invite-card[data-layout="palace"] .invite-card__inner {
  min-height:680px;
  justify-content:flex-end;
  padding:clamp(72px,13vh,124px) clamp(28px,8vw,76px) clamp(48px,9vh,86px);
}

.invite-card[data-layout="palace"] .invite-card__eyebrow {
  color:color-mix(in srgb,var(--invite-ink) 88%,transparent);
  font-size:.58rem;
  letter-spacing:.24em;
}

.invite-card[data-layout="palace"] .invite-card__names {
  margin-top:clamp(20px,4vh,42px);
  font-family:"Great Vibes",var(--invite-serif);
  font-size:clamp(3.4rem,11vw,6.6rem);
  line-height:.82;
  text-shadow:0 3px 28px rgba(0,0,0,.4);
}

.invite-card[data-layout="palace"] .invite-card__names i {
  margin:clamp(7px,1.8vh,16px) 0;
  font-family:var(--invite-serif);
  font-size:.37em;
}

.invite-card[data-layout="palace"] .invite-card__divider {
  max-width:440px;
  margin-top:clamp(17px,3vh,28px);
}

.invite-card[data-layout="palace"] .invite-card__divider span {
  font-size:1rem;
}

.invite-card[data-layout="palace"] .invite-card__message {
  color:color-mix(in srgb,var(--invite-ink) 90%,transparent);
  font:italic clamp(1.05rem,3vw,1.3rem)/1.4 var(--invite-serif);
}

.invite-card[data-layout="palace"] .invite-card__date {
  color:var(--invite-ink);
  font:500 clamp(1.15rem,4vw,1.65rem)/1.2 var(--invite-serif);
  letter-spacing:.2em;
  text-shadow:0 2px 18px rgba(0,0,0,.4);
}

.invite-card[data-layout="palace"] .invite-card__time {
  color:var(--invite-accent);
  font-size:.7rem;
  letter-spacing:.19em;
}

body[data-template="saroy"] {
  --invite-bg:#100d08;
  --invite-ink:#f5efdf;
  background:
    radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--invite-accent) 13%,transparent),transparent 40%),
    #100d08;
}

body[data-template="saroy"] .guest-opening {
  background:
    linear-gradient(180deg,rgba(12,9,5,.37),rgba(12,9,5,.2) 36%,rgba(12,9,5,.8)),
    var(--invite-cover-photo,radial-gradient(ellipse at 50% 35%,#49371c,#100d08 72%));
  background-position:center;
  background-size:cover;
}

body[data-template="saroy"] .guest-opening::before {
  inset:18px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 78%,transparent);
  outline:1px solid color-mix(in srgb,var(--invite-accent) 32%,transparent);
  outline-offset:5px;
}

body[data-template="saroy"] .guest-opening__panel {
  width:min(600px,100%);
  min-height:min(700px,calc(100dvh - 60px));
  justify-content:flex-end;
  padding:clamp(58px,10vh,90px) clamp(28px,8vw,64px) clamp(44px,9vh,76px);
  border:0;
  background:transparent;
  box-shadow:none;
}

body[data-template="saroy"] .guest-opening__panel::before { display:none; }
body[data-template="saroy"] .guest-opening__panel .eyebrow { color:var(--invite-accent); }
body[data-template="saroy"] .guest-opening__ornament { margin:0 0 17px; font-size:2.4rem; }

body[data-template="saroy"] .guest-opening__panel h1 {
  font:400 clamp(3.5rem,15vw,6.7rem)/.78 "Great Vibes",var(--invite-serif);
  text-shadow:0 4px 30px rgba(0,0,0,.45);
}

body[data-template="saroy"] .guest-opening__panel h1 i { font-family:var(--invite-serif); }
body[data-template="saroy"] .guest-opening__date { color:var(--invite-ink); letter-spacing:.2em; }
body[data-template="saroy"] .guest-opening__button {
  min-width:min(290px,100%);
  min-height:54px;
  border-color:var(--invite-accent);
  background:color-mix(in srgb,var(--invite-accent) 90%,white);
  color:#21180c;
  letter-spacing:.14em;
  text-transform:uppercase;
}
body[data-template="saroy"] .guest-opening__button span { color:#21180c; }
body[data-template="saroy"] .guest-opening__panel > small { color:rgba(255,249,230,.78); }

body[data-template="saroy"] .guest-main {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:clamp(24px,6vh,58px);
  padding:0 0 36px;
}

body[data-template="saroy"] .guest-main > .invite-card { order:-1; }
body[data-template="saroy"] .guest-scroll-cue {
  order:0;
  min-height:48px;
  color:var(--invite-accent);
  font-size:.66rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}
body[data-template="saroy"] .guest-scroll-cue span { font-size:1.35rem; }
body[data-template="saroy"] .guest-welcome,
body[data-template="saroy"] .guest-countdown { display:none; }
body[data-template="saroy"] .guest-calendar { order:1; }
body[data-template="saroy"] .guest-gallery { order:2; }
body[data-template="saroy"] .guest-location { order:3; }
body[data-template="saroy"] .guest-share { order:4; }
body[data-template="saroy"] .guest-rsvp { order:5; }
body[data-template="saroy"] .guest-audio { order:6; }
body[data-template="saroy"] .guest-closing { order:7; }
body[data-template="saroy"] .guest-credit { order:8; }

body[data-template="saroy"] .guest-section {
  width:min(760px,calc(100% - 36px));
  min-height:0;
  padding:clamp(34px,7vw,68px);
  border-color:color-mix(in srgb,var(--invite-accent) 54%,transparent);
  background:
    radial-gradient(circle at 12% 20%,color-mix(in srgb,var(--invite-accent) 18%,transparent) 0 1px,transparent 2px),
    radial-gradient(circle at 86% 74%,color-mix(in srgb,var(--invite-accent) 18%,transparent) 0 1px,transparent 2px),
    linear-gradient(145deg,#fbf6e8,#eee2c8);
  background-size:91px 113px,137px 149px,auto;
  color:#362a1b;
  box-shadow:0 22px 60px rgba(0,0,0,.25);
}

body[data-template="saroy"] .guest-section::before {
  border-color:color-mix(in srgb,var(--invite-accent) 34%,transparent);
}

body[data-template="saroy"] .guest-section .eyebrow {
  color:#8d6e33;
  letter-spacing:.24em;
}

body[data-template="saroy"] .guest-section h2 { color:#392c1c; }
body[data-template="saroy"] .guest-section h2 em { color:#92723b; }
body[data-template="saroy"] .guest-section > p:not(.eyebrow) { color:#544633; }
body[data-template="saroy"] .guest-calendar__month { color:#8d6e33; letter-spacing:.18em; }
body[data-template="saroy"] .guest-calendar__weekday { color:#816b49; }
body[data-template="saroy"] .guest-calendar__day { color:#392f22; }
body[data-template="saroy"] .guest-calendar__day.is-event {
  border-color:#89692e;
  background:linear-gradient(145deg,#f3d982,#b9923f);
  color:#2b210f;
  box-shadow:0 0 0 4px rgba(185,146,63,.18);
}
body[data-template="saroy"] .guest-calendar__date { color:#493a25; }
body[data-template="saroy"] .guest-calendar__note { color:#75664d; }

body[data-template="saroy"] .guest-location {
  background:
    radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--invite-accent) 16%,transparent),transparent 60%),
    #15110b;
  color:#f5efdf;
}
body[data-template="saroy"] .guest-location::before { border-color:color-mix(in srgb,var(--invite-accent) 42%,transparent); }
body[data-template="saroy"] .guest-location .eyebrow { color:var(--invite-accent); }
body[data-template="saroy"] .guest-location h2 { color:#f5efdf; }
body[data-template="saroy"] .guest-location__details { color:rgba(245,239,223,.78); }

body[data-template="saroy"] .guest-gallery {
  background:
    radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--invite-accent) 15%,transparent),transparent 54%),
    #17120b;
  color:#f5efdf;
}
body[data-template="saroy"] .guest-gallery::before { border-color:color-mix(in srgb,var(--invite-accent) 38%,transparent); }
body[data-template="saroy"] .guest-gallery h2 { color:#f5efdf; }
body[data-template="saroy"] .guest-gallery h2 em { color:var(--invite-accent); }
body[data-template="saroy"] .guest-gallery__grid img { border:1px solid color-mix(in srgb,var(--invite-accent) 55%,transparent); }

body[data-template="saroy"] .guest-share {
  min-height:0;
  background:linear-gradient(145deg,#fbf6e8,#eee2c8);
  color:#362a1b;
}
body[data-template="saroy"] .guest-share h2 { color:#392c1c; }
body[data-template="saroy"] .guest-share .share-url-row input {
  border-color:rgba(137,105,46,.42);
  background:rgba(255,255,255,.62);
  color:#392c1c;
}

body[data-template="saroy"] .guest-rsvp {
  width:min(760px,calc(100% - 36px));
  max-width:760px;
  padding:clamp(34px,7vw,68px);
  border-color:color-mix(in srgb,var(--invite-accent) 56%,transparent);
  background:linear-gradient(145deg,#fbf6e8,#eee2c8);
  color:#362a1b;
  box-shadow:0 22px 60px rgba(0,0,0,.25);
}

body[data-template="saroy"] .guest-rsvp .eyebrow,
body[data-template="saroy"] .guest-rsvp h2,
body[data-template="saroy"] .guest-rsvp form > label,
body[data-template="saroy"] .guest-rsvp legend { color:#493a25; }
body[data-template="saroy"] .guest-rsvp fieldset label { color:#544633; }
body[data-template="saroy"] .guest-rsvp input:not([type=radio]),
body[data-template="saroy"] .guest-rsvp select,
body[data-template="saroy"] .guest-rsvp textarea {
  border-color:rgba(137,105,46,.38);
  background:rgba(255,255,255,.72);
  color:#362a1b;
}
body[data-template="saroy"] .guest-rsvp form > button {
  border-color:#b9923f;
  background:linear-gradient(110deg,#b9923f,#ead184);
  color:#281e0e;
}

body[data-template="saroy"] .guest-audio {
  width:min(760px,calc(100% - 36px));
  max-width:760px;
  border-color:color-mix(in srgb,var(--invite-accent) 48%,transparent);
  background:#17120b;
  color:#f5efdf;
}

body[data-template="saroy"] .guest-closing {
  position:relative;
  display:grid;
  width:min(760px,calc(100% - 36px));
  min-height:min(74svh,760px);
  align-content:center;
  justify-items:center;
  gap:18px;
  overflow:hidden;
  padding:48px 24px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 52%,transparent);
  background:
    radial-gradient(ellipse at 50% 45%,color-mix(in srgb,var(--invite-accent) 22%,transparent),transparent 48%),
    linear-gradient(180deg,#1b150c,#0d0b07);
  color:#f5efdf;
  text-align:center;
}

body[data-template="saroy"] .guest-closing::before {
  position:absolute;
  inset:14px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 36%,transparent);
  content:"";
  pointer-events:none;
}

body[data-template="saroy"] .guest-closing__seal {
  position:relative;
  display:grid;
  width:clamp(150px,42vw,220px);
  aspect-ratio:1;
  place-items:center;
  border:1px solid var(--invite-accent);
  border-radius:50%;
  box-shadow:0 0 0 8px color-mix(in srgb,var(--invite-accent) 12%,transparent),inset 0 0 0 7px rgba(214,182,111,.12);
  color:var(--invite-accent);
}

body[data-template="saroy"] .guest-closing__seal::before,
body[data-template="saroy"] .guest-closing__seal::after {
  position:absolute;
  inset:10px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 68%,transparent);
  border-radius:50%;
  content:"";
}
body[data-template="saroy"] .guest-closing__seal::after { inset:-14px; opacity:.5; }
body[data-template="saroy"] .guest-closing__seal span { position:absolute; top:10%; font-size:1.6rem; }
body[data-template="saroy"] .guest-closing__seal b { font:400 clamp(2.5rem,10vw,4rem) "Great Vibes",var(--invite-serif); }
body[data-template="saroy"] .guest-closing__names { margin:12px 0 0; color:var(--invite-accent); font:400 clamp(2.4rem,8vw,4rem) "Great Vibes",var(--invite-serif); }
body[data-template="saroy"] .guest-closing__date { margin:0; color:#f5efdf; font-size:.7rem; letter-spacing:.25em; text-transform:uppercase; }
body[data-template="saroy"] .guest-closing__message { margin:0; color:rgba(245,239,223,.72); font:italic 1.2rem var(--invite-serif); }
body[data-template="saroy"] .guest-credit { color:rgba(245,239,223,.7); }
body[data-template="saroy"] .guest-credit a { color:var(--invite-accent); }

@media (max-width:520px) {
  body[data-template="saroy"] .guest-main { gap:28px; padding-bottom:28px; }
  body[data-template="saroy"] .guest-opening { padding:18px; }
  body[data-template="saroy"] .guest-opening::before { inset:12px; }
  body[data-template="saroy"] .guest-opening__panel {
    min-height:calc(100dvh - 36px);
    padding:48px 24px 42px;
  }
  body[data-template="saroy"] .guest-section,
  body[data-template="saroy"] .guest-rsvp,
  body[data-template="saroy"] .guest-audio,
  body[data-template="saroy"] .guest-closing { width:calc(100% - 24px); }
  body[data-template="saroy"] .guest-section,
  body[data-template="saroy"] .guest-rsvp { padding:36px 22px; }
  body[data-template="saroy"] .guest-calendar__grid { gap:3px; }
  body[data-template="saroy"] .guest-calendar__day { font-size:.66rem; }
  body[data-template="saroy"] .guest-location .guest-actions { flex-direction:column; }
  body[data-template="saroy"] .guest-location .guest-action { width:100%; }
}

body[data-layout="editorial"] {
  --guest-section-bg:linear-gradient(145deg,#fffdf7,#f1e8d8);
  --guest-section-ink:#433622;
  --guest-feature-bg:linear-gradient(155deg,#103c37,#091f1d);
  --guest-feature-ink:#f7f0df;
}

body[data-layout="botanical"] {
  --guest-section-bg:linear-gradient(145deg,#f5f6ed,#e8eee1);
  --guest-section-ink:#314137;
  --guest-feature-bg:linear-gradient(155deg,#314a3a,#17271f);
  --guest-feature-ink:#f4f0e2;
}

body[data-layout="arch"] {
  --guest-section-bg:linear-gradient(145deg,#fbfcfa,#edf0ee);
  --guest-section-ink:#30383a;
  --guest-feature-bg:linear-gradient(155deg,#3b474b,#1b2428);
  --guest-feature-ink:#f5f4ed;
}

body[data-layout="pearl"] {
  --guest-section-bg:linear-gradient(145deg,#fffaf7,#f1e7e2);
  --guest-section-ink:#493b3a;
  --guest-feature-bg:linear-gradient(155deg,#594744,#281f20);
  --guest-feature-ink:#fff5ee;
}

body[data-layout="sunset"] {
  --guest-section-bg:linear-gradient(145deg,#fff4e8,#efdccc);
  --guest-section-ink:#503529;
  --guest-feature-bg:linear-gradient(155deg,#613b2b,#241710);
  --guest-feature-ink:#fff1df;
}

body[data-layout="celestial"] {
  --guest-section-bg:linear-gradient(145deg,#f7f4fb,#e8e4f0);
  --guest-section-ink:#3d3850;
  --guest-feature-bg:linear-gradient(155deg,#373450,#171624);
  --guest-feature-ink:#f8f2ff;
}

body[data-layout="horizon"] {
  --guest-section-bg:linear-gradient(145deg,#f6fbfc,#e2edf0);
  --guest-section-ink:#34464b;
  --guest-feature-bg:linear-gradient(155deg,#38535b,#18252b);
  --guest-feature-ink:#f2f8f7;
}

body[data-layout="luxe"],
body[data-layout="cinema"],
body[data-layout="story"],
body[data-layout="palace"] {
  --guest-section-bg:linear-gradient(150deg,#211c1a,#11100e);
  --guest-section-ink:#f4eddd;
  --guest-feature-bg:linear-gradient(155deg,#201a14,#0e0c09);
  --guest-feature-ink:#f8f0df;
}

body[data-template="klassik"],
body[data-template="tilla"],
body[data-template="saf"],
body[data-template="nafis"] {
  --guest-section-bg:linear-gradient(145deg,#fffdf7,#f1e8d8);
  --guest-section-ink:#433622;
  --guest-feature-bg:linear-gradient(155deg,#103c37,#091f1d);
  --guest-feature-ink:#f7f0df;
}

body[data-template="abadiyat"] {
  --guest-section-bg:linear-gradient(150deg,#302c34,#19171d);
  --guest-section-ink:#f0e5d7;
  --guest-feature-bg:linear-gradient(155deg,#302c34,#111015);
  --guest-feature-ink:#f0e5d7;
}

body[data-template="oydin"],
body[data-template="anor"],
body[data-template="mehr"] {
  --guest-section-bg:linear-gradient(150deg,#29232d,#121014);
  --guest-section-ink:#f7eadd;
  --guest-feature-bg:linear-gradient(155deg,#261c24,#100d10);
  --guest-feature-ink:#f8ecdf;
}

body[data-template="saroy"] {
  --guest-section-bg:linear-gradient(145deg,#fbf6e8,#eee2c8);
  --guest-section-ink:#362a1b;
  --guest-feature-bg:linear-gradient(155deg,#20180d,#0c0a07);
  --guest-feature-ink:#f5efdf;
}

body[data-template] .guest-opening {
  background:
    linear-gradient(180deg,rgba(8,9,8,.28),rgba(8,9,8,.08) 30%,rgba(8,9,8,.78)),
    var(--invite-cover-photo,radial-gradient(ellipse at 50% 30%,color-mix(in srgb,var(--invite-accent) 35%,var(--invite-bg)),var(--invite-bg) 72%));
  background-position:center;
  background-size:cover;
}

body[data-template] .guest-opening__panel {
  width:min(600px,100%);
  min-height:min(700px,calc(100dvh - 60px));
  justify-content:flex-end;
  padding:clamp(58px,10vh,90px) clamp(28px,8vw,64px) clamp(44px,9vh,76px);
  border:0;
  background:transparent;
  box-shadow:none;
  color:#fffaf0;
}

body[data-template] .guest-opening__panel::before { display:none; }
body[data-template] .guest-opening__panel .eyebrow { color:var(--invite-accent); }
body[data-template] .guest-opening__ornament { margin:0 0 17px; font-size:2.2rem; }
body[data-template] .guest-opening__panel h1 {
  font:400 clamp(3.2rem,13vw,6rem)/.82 "Great Vibes",var(--invite-serif);
  text-shadow:0 4px 30px rgba(0,0,0,.45);
}
body[data-template] .guest-opening__panel h1 i { font-family:var(--invite-serif); }
body[data-template] .guest-opening__date { color:#fffaf0; letter-spacing:.16em; }
body[data-template] .guest-opening__button {
  min-width:min(280px,100%);
  border-color:var(--invite-accent);
  background:color-mix(in srgb,var(--invite-accent) 88%,white);
  color:#21180c;
  letter-spacing:.1em;
  text-transform:uppercase;
}
body[data-template] .guest-opening__button span { color:#21180c; }
body[data-template] .guest-opening__panel > small { color:rgba(255,250,240,.78); }

body[data-template] .guest-main > .invite-card { order:-1; }
body[data-template] .guest-scroll-cue { order:0; }
body[data-template] .guest-welcome { order:1; }
body[data-template] .guest-countdown { order:2; }
body[data-template] .guest-calendar { order:3; }
body[data-template] .guest-agenda { order:4; }
body[data-template] .guest-gallery { order:5; }
body[data-template] .guest-location { order:6; }
body[data-template] .guest-share { order:7; }
body[data-template] .guest-rsvp { order:8; }
body[data-template] .guest-audio { order:9; }
body[data-template] .guest-closing { order:10; }
body[data-template] .guest-credit { order:11; }

body[data-template] .guest-section {
  border-color:color-mix(in srgb,var(--invite-accent) 42%,transparent);
  background-color:var(--guest-section-bg,#fffdf7);
  background-image:
    radial-gradient(circle at 8% 12%,color-mix(in srgb,var(--invite-accent) 16%,transparent) 0 1px,transparent 2px),
    radial-gradient(circle at 92% 84%,color-mix(in srgb,var(--invite-accent) 14%,transparent) 0 1px,transparent 2px),
    var(--guest-section-bg,linear-gradient(145deg,#fffdf7,#f1e8d8));
  color:var(--guest-section-ink,#433622);
}

body[data-template] .guest-section::before {
  border-color:color-mix(in srgb,var(--invite-accent) 30%,transparent);
}

body[data-template] .guest-section .eyebrow { color:var(--invite-accent); }
body[data-template] .guest-section h2 { color:var(--guest-section-ink,#433622); }
body[data-template] .guest-section h2 em { color:var(--invite-accent); }
body[data-template] .guest-section > p:not(.eyebrow) { color:color-mix(in srgb,var(--guest-section-ink,#433622) 82%,transparent); }

body[data-template] .guest-location,
body[data-template] .guest-gallery {
  border-color:color-mix(in srgb,var(--invite-accent) 46%,transparent);
  background:
    radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--invite-accent) 18%,transparent),transparent 58%),
    var(--guest-feature-bg,#17130e);
  color:var(--guest-feature-ink,#f7f0df);
}

body[data-template] .guest-location::before,
body[data-template] .guest-gallery::before {
  border-color:color-mix(in srgb,var(--invite-accent) 38%,transparent);
}

body[data-template] .guest-location h2,
body[data-template] .guest-gallery h2 { color:var(--guest-feature-ink,#f7f0df); }
body[data-template] .guest-location h2 em,
body[data-template] .guest-gallery h2 em { color:var(--invite-accent); }
body[data-template] .guest-location .eyebrow,
body[data-template] .guest-gallery .eyebrow { color:var(--invite-accent); }
body[data-template] .guest-location__details { color:color-mix(in srgb,var(--guest-feature-ink,#f7f0df) 78%,transparent); }
body[data-template] .guest-gallery__grid img { border:1px solid color-mix(in srgb,var(--invite-accent) 46%,transparent); }

body[data-template] .guest-calendar__month { color:var(--invite-accent); letter-spacing:.14em; }
body[data-template] .guest-calendar__weekday { color:color-mix(in srgb,var(--guest-section-ink,#433622) 70%,transparent); }
body[data-template] .guest-calendar__day { color:var(--guest-section-ink,#433622); }
body[data-template] .guest-calendar__day.is-event {
  border-color:var(--invite-accent);
  background:var(--invite-accent);
  color:#201b13;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--invite-accent) 18%,transparent);
}
body[data-template] .guest-calendar__date { color:var(--guest-section-ink,#433622); }
body[data-template] .guest-calendar__note { color:color-mix(in srgb,var(--guest-section-ink,#433622) 66%,transparent); }

body[data-template] .guest-agenda__list {
  display:grid;
  width:min(100%,560px);
  gap:0;
  margin:24px auto 0;
  padding:0;
  list-style:none;
  text-align:left;
}

body[data-template] .guest-agenda__list li {
  position:relative;
  display:grid;
  grid-template-columns:74px minmax(0,1fr);
  gap:17px;
  padding:17px 0 17px 22px;
  border-bottom:1px solid color-mix(in srgb,var(--invite-accent) 30%,transparent);
}

body[data-template] .guest-agenda__list li::before {
  position:absolute;
  top:24px;
  left:1px;
  width:7px;
  height:7px;
  border:1px solid var(--invite-accent);
  border-radius:50%;
  background:var(--guest-section-bg,#fffdf7);
  content:"";
}

body[data-template] .guest-agenda__list time {
  color:var(--invite-accent);
  font:500 .84rem var(--invite-serif);
  letter-spacing:.06em;
}

body[data-template] .guest-agenda__list span {
  color:var(--guest-section-ink,#433622);
  font:500 1.08rem/1.3 var(--invite-serif);
  overflow-wrap:anywhere;
}

body[data-template] .guest-share {
  min-height:0;
  background:var(--guest-section-bg,#fffdf7);
  color:var(--guest-section-ink,#433622);
}

body[data-template] .guest-share h2 { color:var(--guest-section-ink,#433622); }
body[data-template] .guest-share .share-url-row input {
  border-color:color-mix(in srgb,var(--invite-accent) 45%,transparent);
  background:color-mix(in srgb,var(--guest-section-bg,#fffdf7) 88%,white);
  color:var(--guest-section-ink,#433622);
}

body[data-template] .guest-rsvp {
  border-color:color-mix(in srgb,var(--invite-accent) 48%,transparent);
  background:var(--guest-section-bg,#fffdf7);
  color:var(--guest-section-ink,#433622);
  box-shadow:0 22px 60px rgba(0,0,0,.2);
}

body[data-template] .guest-rsvp h2,
body[data-template] .guest-rsvp form > label,
body[data-template] .guest-rsvp legend { color:var(--guest-section-ink,#433622); }
body[data-template] .guest-rsvp fieldset label { color:color-mix(in srgb,var(--guest-section-ink,#433622) 82%,transparent); }
body[data-template] .guest-rsvp input:not([type=radio]),
body[data-template] .guest-rsvp select,
body[data-template] .guest-rsvp textarea {
  border-color:color-mix(in srgb,var(--invite-accent) 38%,transparent);
  background:color-mix(in srgb,var(--guest-section-bg,#fffdf7) 82%,white);
  color:var(--guest-section-ink,#433622);
}
body[data-template] .guest-rsvp form > button {
  border-color:var(--invite-accent);
  background:var(--invite-accent);
  color:#201b13;
}

body[data-template] .guest-closing {
  position:relative;
  display:grid;
  width:min(760px,calc(100% - 36px));
  min-height:min(74svh,760px);
  align-content:center;
  justify-items:center;
  gap:18px;
  overflow:hidden;
  padding:48px 24px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 52%,transparent);
  background:
    radial-gradient(ellipse at 50% 45%,color-mix(in srgb,var(--invite-accent) 22%,transparent),transparent 48%),
    var(--guest-feature-bg,#17130e);
  color:var(--guest-feature-ink,#f7f0df);
  text-align:center;
}

body[data-template] .guest-closing::before {
  position:absolute;
  inset:14px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 36%,transparent);
  content:"";
  pointer-events:none;
}

body[data-template] .guest-closing__seal {
  position:relative;
  display:grid;
  width:clamp(150px,42vw,220px);
  aspect-ratio:1;
  place-items:center;
  border:1px solid var(--invite-accent);
  border-radius:50%;
  box-shadow:0 0 0 8px color-mix(in srgb,var(--invite-accent) 12%,transparent),inset 0 0 0 7px color-mix(in srgb,var(--invite-accent) 12%,transparent);
  color:var(--invite-accent);
}

body[data-template] .guest-closing__seal::before,
body[data-template] .guest-closing__seal::after {
  position:absolute;
  inset:10px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 68%,transparent);
  border-radius:50%;
  content:"";
}
body[data-template] .guest-closing__seal::after { inset:-14px; opacity:.5; }
body[data-template] .guest-closing__seal span { position:absolute; top:10%; font-size:1.6rem; }
body[data-template] .guest-closing__seal b { font:400 clamp(2.5rem,10vw,4rem) "Great Vibes",var(--invite-serif); }
body[data-template] .guest-closing__names { margin:12px 0 0; color:var(--invite-accent); font:400 clamp(2.4rem,8vw,4rem) "Great Vibes",var(--invite-serif); }
body[data-template] .guest-closing__date { margin:0; color:var(--guest-feature-ink,#f7f0df); font-size:.7rem; letter-spacing:.25em; text-transform:uppercase; }
body[data-template] .guest-closing__message { margin:0; color:color-mix(in srgb,var(--guest-feature-ink,#f7f0df) 72%,transparent); font:italic 1.2rem var(--invite-serif); }
body[data-template] .guest-credit { color:color-mix(in srgb,var(--guest-feature-ink,#f7f0df) 72%,transparent); }
body[data-template] .guest-credit a { color:var(--invite-accent); }

@media (max-width:520px) {
  body[data-template] .guest-main { gap:28px; padding-bottom:28px; }
  body[data-template] .guest-opening { padding:18px; }
  body[data-template] .guest-opening::before { inset:12px; }
  body[data-template] .guest-opening__panel {
    min-height:calc(100dvh - 36px);
    padding:48px 24px 42px;
  }
  body[data-template] .guest-section,
  body[data-template] .guest-rsvp,
  body[data-template] .guest-audio,
  body[data-template] .guest-closing { width:calc(100% - 24px); }
  body[data-template] .guest-section,
  body[data-template] .guest-rsvp { padding:36px 22px; }
  body[data-template] .guest-calendar__grid { gap:3px; }
  body[data-template] .guest-calendar__day { font-size:.66rem; }
  body[data-template] .guest-agenda__list li { grid-template-columns:62px minmax(0,1fr); gap:12px; padding-block:14px; }
  body[data-template] .guest-agenda__list li::before { top:21px; }
}

@media (max-width:520px) {
  body[data-template] .guest-main { gap:22px; padding:0 10px 32px; }
  body[data-template] .invite-card::before { inset:14px; }
  body[data-template] .invite-card__inner {
    padding:clamp(76px,12vh,106px) 30px 54px;
  }
  body[data-template] .invite-card__names { font-size:clamp(2.7rem,12vw,4rem); }
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] {
  --invite-ink:#49381f;
  background:
    radial-gradient(ellipse at 50% 12%,rgba(184,135,46,.13),transparent 52%),
    linear-gradient(145deg,#fffdf7,#f2e8d5);
  color:#49381f;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"]::before {
  inset:18px;
  border:1px solid rgba(184,135,46,.58);
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__inner {
  min-height:100svh;
  align-items:center;
  justify-content:center;
  padding:clamp(42px,7vh,76px) clamp(24px,8vw,82px);
  text-align:center;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__eyebrow {
  align-self:center;
  color:#a47b31;
  font-size:clamp(2rem,7vw,3.8rem);
  text-align:center;
  -webkit-text-fill-color:#a47b31;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__photo-wrap {
  position:relative;
  inset:auto;
  z-index:1;
  align-self:center;
  width:min(68%,280px);
  height:clamp(148px,24vh,220px);
  flex:0 0 auto;
  margin:clamp(18px,3vh,28px) auto 0;
  border:1px solid rgba(184,135,46,.75);
  border-radius:50% 50% 2px 2px;
  box-shadow:0 0 0 6px rgba(184,135,46,.08);
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__photo-wrap::after {
  display:none;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__photo {
  object-position:center 38%;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__names {
  align-items:center;
  margin-top:clamp(24px,4vh,42px);
  color:#593e20;
  font-size:clamp(3rem,10vw,5.6rem);
  text-align:center;
  text-shadow:none;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__message,
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__date {
  color:#49381f;
  text-align:center;
}
body[data-template="klassik"] .invite-card[data-has-photo="true"] .invite-card__time {
  align-self:center;
}

/* ---------- Harakat va qo'shimcha bo'limlar (barcha dizaynlar uchun) ---------- */

@keyframes guestRise { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:none; } }
@keyframes guestFall {
  from { transform:translate3d(0,-6vh,0) rotate(0deg); }
  to { transform:translate3d(var(--drift),106vh,0) rotate(540deg); }
}
@keyframes guestTwinkle { 0%,100% { opacity:.15; } 50% { opacity:.95; } }
@keyframes guestSealPulse {
  0%,100% { box-shadow:0 0 0 0 color-mix(in srgb,var(--invite-accent) 55%,transparent); }
  50% { box-shadow:0 0 0 12px color-mix(in srgb,var(--invite-accent) 0%,transparent); }
}
@keyframes guestKenBurns { from { transform:scale(1); } to { transform:scale(1.09) translateY(-1.5%); } }
@keyframes guestShine { from { transform:translateX(-130%) skewX(-18deg); } to { transform:translateX(230%) skewX(-18deg); } }

/* Yaltiroq zarralar, gul barglari yoki yulduzlar */
.guest-ambient { position:fixed; z-index:25; inset:0; overflow:hidden; pointer-events:none; }
.guest-ambient span {
  position:absolute;
  top:0;
  left:var(--x);
  width:var(--size);
  height:var(--size);
  animation:guestFall var(--duration) linear var(--delay) infinite;
  opacity:.75;
}
.guest-ambient[data-kind="spark"] span {
  border-radius:50%;
  background:radial-gradient(circle,#fffaf0 0 18%,var(--invite-accent) 32%,transparent 70%);
  box-shadow:0 0 calc(var(--size) * 1.4) color-mix(in srgb,var(--invite-accent) 70%,transparent);
}
.guest-ambient[data-kind="petal"] span {
  width:calc(var(--size) * 1.5);
  border-radius:80% 0 80% 0;
  background:linear-gradient(135deg,color-mix(in srgb,var(--invite-accent) 70%,white),var(--invite-accent));
  opacity:.55;
}
.guest-ambient[data-kind="star"] span {
  width:calc(var(--size) * .55);
  height:calc(var(--size) * .55);
  border-radius:50%;
  background:#fffaf0;
  box-shadow:0 0 8px color-mix(in srgb,var(--invite-accent) 90%,white);
  animation:guestFall calc(var(--duration) * 2) linear var(--delay) infinite,guestTwinkle 2.6s ease-in-out var(--delay) infinite;
}

/* Darvoza: ikki eshik muqova suratini bo'lib oladi va ochilganda yon tomonga buriladi */
body[data-template] .guest-opening,
body[data-template="saroy"] .guest-opening { background:transparent; transition:opacity .55s ease,visibility .55s ease; }
body[data-template] .guest-opening.is-closing { transform:none; }
.guest-gate { position:absolute; inset:0; display:none; perspective:1600px; pointer-events:none; }
body[data-template] .guest-gate { display:flex; }
.guest-gate__door {
  position:relative;
  flex:1 1 50%;
  overflow:hidden;
  background:var(--invite-bg);
  transition:transform 1.25s cubic-bezier(.65,.05,.25,1),filter 1.25s ease;
  backface-visibility:hidden;
}
.guest-gate__door--left { transform-origin:left center; box-shadow:inset -1px 0 0 color-mix(in srgb,var(--invite-accent) 75%,transparent); }
.guest-gate__door--right { transform-origin:right center; box-shadow:inset 1px 0 0 color-mix(in srgb,var(--invite-accent) 75%,transparent); }
.guest-gate__door::before {
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:200%;
  background:
    linear-gradient(180deg,rgba(8,9,8,.36),rgba(8,9,8,.12) 30%,rgba(8,9,8,.8)),
    var(--invite-cover-photo,radial-gradient(ellipse at 50% 30%,color-mix(in srgb,var(--invite-accent) 35%,var(--invite-bg)),var(--invite-bg) 72%));
  background-position:center;
  background-size:cover;
  content:"";
}
.guest-gate__door--right::before { left:-100%; }
.guest-gate__door::after {
  position:absolute;
  inset:22px 10px 22px 22px;
  border:1px solid color-mix(in srgb,var(--invite-accent) 62%,transparent);
  border-right:0;
  border-radius:120px 0 0 0;
  content:"";
}
.guest-gate__door--right::after { inset:22px 22px 22px 10px; border-right:1px solid color-mix(in srgb,var(--invite-accent) 62%,transparent); border-left:0; border-radius:0 120px 0 0; }
.guest-opening.is-opening .guest-gate__door--left { transform:rotateY(-104deg); filter:brightness(.55); }
.guest-opening.is-opening .guest-gate__door--right { transform:rotateY(104deg); filter:brightness(.55); }
body[data-template] .guest-opening::before { z-index:1; }
body[data-template] .guest-opening__panel { z-index:2; transition:opacity .45s ease,transform .45s ease; }
.guest-opening.is-opening .guest-opening__panel { opacity:0; transform:scale(.96); }
.guest-opening.is-opening::before { opacity:0; transition:opacity .3s ease; }
body[data-template] .guest-opening__panel > * { animation:guestRise .9s cubic-bezier(.2,.7,.2,1) both; }
body[data-template] .guest-opening__panel > :nth-child(2) { animation-delay:.12s; }
body[data-template] .guest-opening__panel > :nth-child(3) { animation-delay:.24s; }
body[data-template] .guest-opening__panel > :nth-child(4) { animation-delay:.36s; }
body[data-template] .guest-opening__panel > :nth-child(5) { animation-delay:.48s; }
body[data-template] .guest-opening__panel > :nth-child(6) { animation-delay:.6s; }
.guest-opening__seal {
  display:inline-grid;
  width:34px;
  height:34px;
  flex:0 0 34px;
  place-items:center;
  border:1px solid rgba(33,24,12,.4);
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--invite-accent) 55%,white),color-mix(in srgb,var(--invite-accent) 80%,black));
  color:#fffaf0;
  font:italic 500 .82rem var(--invite-serif);
  letter-spacing:0;
  text-transform:none;
}
.guest-opening__seal:empty { display:none; }
body[data-template] .guest-opening__button .guest-opening__seal { color:#fffaf0; }
body[data-template] .guest-opening__panel > .guest-opening__button { gap:12px; animation:guestRise .9s cubic-bezier(.2,.7,.2,1) .48s both,guestSealPulse 2.4s ease-in-out 1.6s infinite; }

/* Hero: suratning sekin yaqinlashishi va matnning ketma-ket chiqishi */
body[data-template] .invite-card__photo { animation:guestKenBurns 26s ease-in-out infinite alternate; }
body.guest-is-open[data-template] .invite-card__inner > * { animation:guestRise 1.1s cubic-bezier(.2,.7,.2,1) both; }
body.guest-is-open[data-template] .invite-card__inner > :nth-child(2) { animation-delay:.5s; }
body.guest-is-open[data-template] .invite-card__inner > :nth-child(3) { animation-delay:.65s; }
body.guest-is-open[data-template] .invite-card__inner > :nth-child(4) { animation-delay:.8s; }
body.guest-is-open[data-template] .invite-card__inner > :nth-child(5) { animation-delay:.95s; }
body.guest-is-open[data-template] .invite-card__inner > :nth-child(6) { animation-delay:1.1s; }
body.guest-is-open[data-template] .invite-card__inner > :nth-child(n+7) { animation-delay:1.25s; }
.guest-bismillah { position:relative; z-index:3; margin:0 0 14px; color:var(--invite-accent); font:500 clamp(1.45rem,6vw,2rem)/1.6 "Amiri","Noto Naskh Arabic","Times New Roman",serif; text-align:center; }
body[data-template] .guest-bismillah { position:absolute; top:clamp(34px,6vh,64px); right:0; left:0; }
body[data-template="klassik"] .guest-bismillah { position:relative; top:auto; }
body[data-template] .invite-card[data-has-photo="true"] .guest-bismillah { text-shadow:0 2px 18px rgba(0,0,0,.45); }

/* Bo'limlar scroll paytida paydo bo'ladi */
.guest-reveal { opacity:0; transform:translateY(34px); transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1); }
.guest-reveal.is-revealed { opacity:1; transform:none; }
body[data-template] .guest-section h2::after {
  display:block;
  width:132px;
  height:14px;
  margin:16px auto 0;
  background:
    linear-gradient(var(--invite-accent),var(--invite-accent)) left center/48px 1px no-repeat,
    linear-gradient(var(--invite-accent),var(--invite-accent)) right center/48px 1px no-repeat,
    radial-gradient(circle,var(--invite-accent) 0 3px,transparent 3.5px) center/14px 14px no-repeat;
  content:"";
  opacity:.85;
}

/* Kun tartibi ikonkalari */
body[data-template] .guest-agenda__list li.has-icon { grid-template-columns:46px 64px minmax(0,1fr); align-items:center; padding-left:0; }
body[data-template] .guest-agenda__list li.has-icon::before { display:none; }
.guest-agenda__icon {
  display:grid;
  width:46px;
  height:46px;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--invite-accent) 70%,transparent);
  border-radius:50%;
  background:color-mix(in srgb,var(--invite-accent) 10%,transparent);
  color:var(--invite-accent);
}
.guest-agenda__icon svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.guest-agenda__list li > div { display:grid; min-width:0; gap:3px; }
body[data-template] .guest-agenda__list small { color:color-mix(in srgb,var(--guest-section-ink,#433622) 68%,transparent); font:400 .74rem/1.4 var(--invite-sans); }

/* Foto kollaj */
.guest-gallery__grid[data-count="1"] { grid-template-columns:minmax(0,1fr); }
.guest-gallery__grid[data-count="3"] img:first-child,
.guest-gallery__grid[data-count="5"] img:first-child { grid-column:span 2; aspect-ratio:3/2; }
.guest-gallery__grid img { transition:transform .6s ease; }
.guest-gallery__grid img:hover { transform:scale(1.02); }

/* Dress-kod */
body[data-template] .guest-dress { order:6; }
.guest-dress__text { margin:18px auto 0; font:italic 1.25rem/1.4 var(--invite-serif); }
.guest-dress__swatches { display:flex; flex-wrap:wrap; justify-content:center; gap:14px; margin:24px 0 0; padding:0; list-style:none; }
.guest-dress__swatches li {
  width:54px;
  height:54px;
  border:3px solid #fffaf0;
  border-radius:50%;
  background:var(--swatch);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--invite-accent) 70%,transparent),0 8px 20px rgba(0,0,0,.16);
}

/* To'yona kartasi */
body[data-template] .guest-gift { order:9; }
.guest-gift__card {
  position:relative;
  display:flex;
  width:min(100%,340px);
  aspect-ratio:1.586;
  flex-direction:column;
  justify-content:flex-end;
  gap:6px;
  margin:24px auto 18px;
  padding:22px;
  overflow:hidden;
  border-radius:16px;
  background:
    radial-gradient(circle at 85% 15%,rgba(255,255,255,.28),transparent 40%),
    linear-gradient(135deg,color-mix(in srgb,var(--invite-accent) 82%,black),color-mix(in srgb,var(--invite-accent) 45%,black));
  box-shadow:0 18px 40px rgba(0,0,0,.25);
  color:#fffaf0;
  text-align:left;
}
.guest-gift__card::after {
  position:absolute;
  inset:0;
  width:40%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
  animation:guestShine 4.5s ease-in-out 1s infinite;
  content:"";
}
.guest-gift__chip { position:absolute; top:22px; left:22px; width:42px; height:31px; border-radius:6px; background:linear-gradient(135deg,#f4dc9a,#b8913f); }
.guest-gift__number { font:600 clamp(1.05rem,5vw,1.3rem) var(--invite-sans); letter-spacing:.1em; font-variant-numeric:tabular-nums; }
.guest-gift__holder { font-size:.66rem; letter-spacing:.16em; text-transform:uppercase; opacity:.85; }

/* RSVP muddati va qo'ng'iroq */
.guest-rsvp__deadline { margin:-6px 0 16px; color:var(--invite-accent); font:italic 1.05rem/1.4 var(--invite-serif); }
.guest-rsvp__call { display:flex; width:100%; margin-top:14px; }

@media (max-width:520px) {
  body[data-template] .guest-agenda__list li.has-icon { grid-template-columns:40px 52px minmax(0,1fr); gap:10px; }
  .guest-agenda__icon { width:40px; height:40px; }
  .guest-dress__swatches li { width:46px; height:46px; }
}

@media (prefers-reduced-motion:reduce) {
  .guest-ambient { display:none; }
  .guest-gate__door,
  body[data-template] .guest-opening__panel > *,
  body[data-template] .guest-opening__button,
  body[data-template] .invite-card__photo,
  body.guest-is-open[data-template] .invite-card__inner > *,
  .guest-gift__card::after { animation:none; transition:none; }
  .guest-reveal { opacity:1; transform:none; }
}

/* "TAKLIFNOMA" yozuvi har qanday dizayn va maketda kartaning o'rtasida turadi. */
.invite-card .invite-card__eyebrow { align-self:center; text-align:center; }

/* Premium va trend kolleksiyasi: data-collection invitation-renderer.js tomonidan qo'yiladi. */
@keyframes collection-shimmer { 0%,100% { background-position:120% 0; } 50% { background-position:-20% 0; } }
@keyframes collection-rise { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
.invite-card[data-collection] .invite-card__inner > * { animation:collection-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.invite-card[data-collection] .invite-card__inner > :nth-child(2) { animation-delay:.12s; }
.invite-card[data-collection] .invite-card__inner > :nth-child(3) { animation-delay:.24s; }
.invite-card[data-collection] .invite-card__inner > :nth-child(n+4) { animation-delay:.36s; }
.invite-card[data-collection] .invite-card__inner::before {
  position:absolute; top:20px; left:50%; padding:3px 11px; border:1px solid color-mix(in srgb,var(--invite-accent) 60%,transparent);
  border-radius:99px; color:var(--invite-accent); font-size:.42rem; letter-spacing:.24em; transform:translateX(-50%); white-space:nowrap;
}
.invite-card[data-collection="premium"] .invite-card__inner::before { content:"✦ PREMIUM ✦"; }
.invite-card[data-collection="trend"] .invite-card__inner::before { content:"TREND · 2026"; }
.invite-card[data-collection="premium"] { box-shadow:0 0 0 1px color-mix(in srgb,var(--invite-accent) 40%,transparent),0 22px 60px -18px color-mix(in srgb,var(--invite-accent) 55%,transparent); }
.invite-card[data-collection="premium"]::before {
  inset:14px; border-style:double; border-width:3px;
  background:
    radial-gradient(circle at 0 0,var(--invite-accent) 0 3px,transparent 3.5px),
    radial-gradient(circle at 100% 0,var(--invite-accent) 0 3px,transparent 3.5px),
    radial-gradient(circle at 0 100%,var(--invite-accent) 0 3px,transparent 3.5px),
    radial-gradient(circle at 100% 100%,var(--invite-accent) 0 3px,transparent 3.5px);
}
.invite-card[data-collection="premium"]::after {
  opacity:.5; background:linear-gradient(115deg,transparent 35%,color-mix(in srgb,var(--invite-accent) 22%,transparent) 50%,transparent 65%);
  background-size:260% 100%; animation:collection-shimmer 7s ease-in-out infinite;
}
.invite-card[data-collection="premium"] .invite-card__names {
  background:linear-gradient(100deg,var(--invite-ink) 35%,var(--invite-accent) 50%,var(--invite-ink) 65%);
  background-size:260% 100%; -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:collection-rise .9s .24s both,collection-shimmer 6s 1.2s ease-in-out infinite;
}
.invite-card[data-collection="premium"] .invite-card__names i { color:var(--invite-accent); }
.invite-card[data-collection="trend"] { --card-radius:200px 200px 16px 16px; }
.invite-card[data-collection="trend"]::before { inset:12px; border-radius:190px 190px 10px 10px; }
.invite-card[data-collection="trend"]::after {
  inset:auto 0 0; height:18px; opacity:.35; background:radial-gradient(circle at 50% 100%,var(--invite-accent) 0 8px,transparent 8.5px);
  background-size:22px 18px;
}
.invite-card[data-collection="trend"] .invite-card__inner { padding-top:70px; }
.invite-card[data-collection="trend"] .invite-card__photo-wrap { border-radius:999px 999px 6px 6px; }
@media (prefers-reduced-motion:reduce) {
  .invite-card[data-collection] .invite-card__inner > *,
  .invite-card[data-collection="premium"]::after,
  .invite-card[data-collection="premium"] .invite-card__names { animation:none; }
}

/* Telefonda RSVP tanlovlari barmoq bilan bemalol bosilsin. */
.guest-rsvp fieldset label { min-height:44px; cursor:pointer; }
.guest-rsvp fieldset input[type=radio] { width:20px; height:20px; flex:0 0 20px; }

/* Tayyor taklifnoma rasmi: preview kartada rasmning o'zi ko'rinadi. */
.invite-card__card-image { display: none; }
.invite-card[data-card-image="true"] { padding: 0; border: 0; background: #1b1d1b; }
.invite-card[data-card-image="true"]::before,
.invite-card[data-card-image="true"]::after,
.invite-card[data-card-image="true"] .invite-card__inner { display: none; }
.invite-card[data-card-image="true"] .invite-card__card-image { display: block; width: 100%; height: auto; }
