:root {
  --bg: #fffcf8;
  --white: #fffdfa;
  --cream: #f8f0e3;
  --beige: #dbc2a7;
  --beige-deep: #a37f64;
  --pink: #f4ccd6;
  --pink-deep: #c98b9c;
  --rose: #b87386;
  --ink: #4f3d35;
  --ink-soft: #7f6b61;
  --shadow: 0 26px 70px rgba(103, 74, 58, 0.10);
  --radius: 34px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(244,204,214,.25), transparent 28%),
    radial-gradient(circle at 100% 15%, rgba(219,194,167,.22), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.74), rgba(248,240,227,.28)),
    var(--bg);
}
body::before, body::after {
  content: "";
  position: fixed;
  inset: 12px;
  border: 1px solid rgba(201,139,156,.14);
  border-radius: 32px;
  pointer-events: none;
  z-index: 0;
}
body::after {
  inset: 24px;
  border-color: rgba(163,127,100,.08);
  border-style: dashed;
}
.page-bg, .grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.grain {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.34) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,.23) 0 1px, transparent 1px);
  background-size: 20px 20px, 18px 18px;
  opacity: .24;
}
a { color: inherit; text-decoration: none; }
main, footer { position: relative; z-index: 1; }

/* persistent animated floral layer */
.three-hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
  overflow: hidden;
}
.three-hero canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* invitation fills roughly 90% of the viewport */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 12px max(24px, env(safe-area-inset-bottom));
  position: relative;
}
.hero-invitation {
  position: relative;
  width: min(90vw, 1080px);
  height: min(90svh, 1010px);
  min-height: 640px;
  display: grid;
  place-items: center;
  z-index: 2;
  isolation: isolate;
}
.hero-svg-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  filter: drop-shadow(0 24px 38px rgba(108,78,62,.12));
}
.hero-svg-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 1;
}
.hero-copy-over-svg {
  position: relative;
  z-index: 2;
  width: min(54%, 560px);
  max-height: 82%;
  margin: 0 auto;
  padding: clamp(10px, 2vh, 24px) clamp(8px, 2vw, 22px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-copy-over-svg::before {
  content: "";
  position: absolute;
  inset: -20px -26px;
  z-index: -1;
  border-radius: 28px;
  background: radial-gradient(circle at center, rgba(255,253,250,.78) 0%, rgba(255,252,248,.60) 43%, rgba(255,250,246,.18) 68%, rgba(255,250,246,0) 100%);
  box-shadow: 0 18px 45px rgba(164, 135, 112, .10);
  backdrop-filter: blur(1.5px);
}
.hero-kicker, .section-kicker, .meta-label, .event-kicker {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--pink-deep);
  font-weight: 700;
}
.guest-line, .invite-line, .section-copy, .venue-info p, footer {
  color: var(--ink-soft);
  line-height: 1.7;
}
.guest-line { margin: 8px 0 7px; }
.invite-line { margin: 0 0 9px; font-size: .9rem; }
.couple-names {
  width: 100%;
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif Bengali", serif;
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.person-block {
  display: grid;
  gap: 7px;
}
.name-text {
  display: block;
  font-size: clamp(2.45rem, 5.8vw, 5.55rem);
  line-height: .92;
  color: var(--ink);
  opacity: .64;
  text-shadow: 0 1px 0 rgba(255,255,255,.22);
}


.parents-block {
  display: grid;
  justify-items: center;
  gap: 1px;
  margin-top: 2px;
  font-family: "Manrope", system-ui, sans-serif;
  color: rgba(79,61,53,.86);
}
.parent-role {
  display: block;
  margin-bottom: 3px;
  font-size: clamp(.90rem, 1.55vw, 1.08rem);
  line-height: 1.25;
  font-weight: 600;
  color: rgba(79,61,53,.80);
}
.parent-name {
  display: block;
  font-size: clamp(1rem, 1.85vw, 1.22rem);
  line-height: 1.25;
  font-weight: 650;
  color: rgba(79,61,53,.92);
}
.parent-join {
  display: block;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.02rem;
  line-height: 1;
  color: var(--pink-deep);
}

.couple-names .bn { display: block; }
.couple-names small {
  justify-self: center;
  display: block;
  margin: 9px 0;
  font-size: .25em;
  letter-spacing: .16em;
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  color: var(--pink-deep);
  opacity: 1;
}
.invite-meta {
  width: 100%;
  margin: 22px auto 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.invite-meta-box {
  min-width: 0;
  padding: 11px 8px;
  border-radius: 18px;
  background: rgba(255,253,250,.58);
  border: 1px solid rgba(163,127,100,.10);
  backdrop-filter: blur(4px);
}
.invite-meta-box strong, .invite-meta-box span { display: block; }
.invite-meta-box strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: .79rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.invite-meta-box span:last-child {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: .70rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.primary-btn, .soft-btn, .ghost-btn, .text-btn, .admin-footer-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.primary-btn, .soft-btn, .ghost-btn, .admin-footer-btn {
  padding: 12px 19px;
  border-radius: 999px;
}
.primary-btn {
  background: linear-gradient(180deg, var(--pink-deep), #ba7789);
  color: white;
  box-shadow: 0 12px 26px rgba(201,139,156,.25);
}
.soft-btn {
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(163,127,100,.14);
  color: var(--ink);
}

.luxe-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.76), rgba(248,240,227,.66));
  border: 1px solid rgba(163,127,100,.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.luxe-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201,139,156,.11);
  border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
}

.section { padding: 88px clamp(16px, 5vw, 80px); }
.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}
.section-heading h2, .venue-info h3, .admin-card h1 {
  margin: 10px 0 12px;
  font-family: "Cormorant Garamond", "Noto Serif Bengali", serif;
  font-weight: 600;
  color: var(--ink);
}
.section-heading h2 { font-size: clamp(2.35rem, 5vw, 4.2rem); line-height: .98; }

.countdown-grid {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.countdown-card {
  min-height: 172px;
  padding: 28px 14px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.countdown-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 7vw, 5.3rem);
  font-weight: 600;
  line-height: .78;
  color: var(--rose);
}
.countdown-card span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 32px;
  line-height: 1.2;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: .75rem;
}

.venue-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .82fr 1.38fr;
  gap: 20px;
  align-items: stretch;
}
.venue-info {
  min-height: 420px;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.venue-info h3 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1; }
.venue-info p { margin: 0 0 24px; }
.venue-info .primary-btn { align-self: flex-start; }
.map-shell { min-height: 420px; padding: 10px; }
.map-shell iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 398px;
  border: 0;
  border-radius: 25px;
  background: var(--cream);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(16px, 5vw, 74px) max(36px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(163,127,100,.10);
}
.admin-footer-btn {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(163,127,100,.16);
  color: var(--ink-soft);
  font-size: .82rem;
  padding: 9px 14px;
}
.form-message { min-height: 1.2em; color: var(--pink-deep); }
.hidden { display: none !important; }
.muted { color: var(--ink-soft); }

/* Admin */
.admin-page {
  min-height: 100vh;
  padding: 40px 20px;
  background: radial-gradient(circle at 10% 10%, rgba(244,204,214,.22), transparent 30%), linear-gradient(180deg, rgba(255,252,248,.96), rgba(248,240,227,.72));
}
.admin-shell { width: min(1050px,100%); margin: 0 auto; position: relative; z-index: 1; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--ink-soft); }
.admin-card {
  border-radius: 28px;
  padding: clamp(24px,4vw,42px);
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(163,127,100,.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.admin-card form { display: grid; gap: 14px; margin-top: 24px; }
.admin-card label { display: grid; gap: 8px; color: var(--ink-soft); }
.admin-header, .admin-subhead, .link-row, .invite-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.invite-form { grid-template-columns: 1fr auto !important; align-items: end; }
.ghost-btn { background: rgba(248,240,227,.88); color: var(--ink); border: 1px solid rgba(163,127,100,.10); }
.text-btn { background: transparent; color: var(--pink-deep); }
.created-invite { margin: 24px 0; padding: 18px; background: rgba(244,204,214,.18); border-radius: 18px; }
.created-invite > span { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: .92rem; }
.link-row input { flex: 1; }
.invite-list-wrap { margin-top: 34px; }
.invite-list { display: grid; gap: 12px; }
.invite-row { padding: 16px; border: 1px solid rgba(163,127,100,.12); border-radius: 16px; background: rgba(255,255,255,.92); }
.invite-meta { min-width: 0; }
.invite-meta strong, .invite-meta small { display: block; }
.invite-meta small { margin-top: 4px; color: var(--ink-soft); word-break: break-all; }
.invite-actions { display: flex; gap: 8px; }
.settings-card { margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(163,127,100,.12); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-grid .wide { grid-column: 1 / -1; }
.settings-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.settings-actions .form-message { margin: 0; }
input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(163,127,100,.20);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font: inherit;
  outline: none;
}
input:focus { border-color: var(--pink-deep); box-shadow: 0 0 0 4px rgba(201,139,156,.12); }

/* tablet */
@media (max-width: 980px) {
  .hero-invitation { width: 92vw; height: 90svh; }
  .hero-copy-over-svg { width: min(64%, 540px); }
  .invite-meta { grid-template-columns: 1fr 1fr; }
  .invite-meta .place-box { grid-column: 1 / -1; }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .venue-layout, .settings-grid { grid-template-columns: 1fr; }
  .settings-grid .wide { grid-column: auto; }
  .venue-info { min-height: auto; }
}

/* phones */
@media (max-width: 640px) {
  body::before { inset: 7px; border-radius: 24px; }
  body::after { inset: 14px; border-radius: 20px; }
  .hero { padding-left: 7px; padding-right: 7px; }
  .hero-invitation {
    width: 94vw;
    height: 90svh;
    min-height: 610px;
  }
  .hero-svg-stage { border-radius: 22px; }
  .hero-svg-art {
    object-fit: contain;
    object-position: 50% 50%;
  }
  .hero-copy-over-svg {
    width: min(74%, 420px);
    max-height: 78%;
    padding: 8px 2px;
  }
  .hero-kicker { font-size: .60rem; letter-spacing: .12em; }
  .guest-line { font-size: .74rem; line-height: 1.4; margin: 5px 0; }
  .invite-line { font-size: .70rem; line-height: 1.35; margin-bottom: 7px; }
  .couple-names { font-size: clamp(2.0rem, 11vw, 3.6rem); line-height: .86; }
  .couple-names small {
  justify-self: center; margin: 6px 0; }
  .invite-meta { grid-template-columns: 1fr; gap: 5px; margin: 13px auto 11px; }
  .invite-meta .place-box { grid-column: auto; }
  .invite-meta-box { padding: 7px 6px; border-radius: 12px; }
  .meta-label { font-size: .52rem; }
  .invite-meta-box strong { font-size: .65rem; margin-top: 2px; }
  .invite-meta-box span:last-child { font-size: .58rem; line-height: 1.25; }
  .hero-actions { gap: 7px; }
  .primary-btn, .soft-btn { padding: 9px 14px; font-size: .72rem; }

  .section { padding: 72px 14px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2 { font-size: clamp(2.1rem, 11vw, 3.1rem); }
  .section-copy { font-size: .9rem; }
  .countdown-grid { gap: 10px; }
  .countdown-card { min-height: 138px; padding: 22px 8px 18px; }
  .countdown-card strong { font-size: clamp(3.2rem, 18vw, 4.4rem); }
  .countdown-card span { margin-top: 26px; font-size: .62rem; letter-spacing: .13em; }

  .venue-info { padding: 28px 22px; }
  .venue-info h3 { font-size: 2.3rem; }
  .venue-info .primary-btn { align-self: stretch; text-align: center; }
  .map-shell { min-height: 350px; padding: 7px; }
  .map-shell iframe { min-height: 336px; border-radius: 20px; }

  footer { align-items: stretch; flex-direction: column; text-align: center; }
  .admin-footer-btn { align-self: center; }

  .invite-form { grid-template-columns: 1fr !important; }
  .admin-header, .admin-subhead, .invite-row, .link-row, .invite-actions, .settings-actions { flex-direction: column; align-items: stretch; }
  .invite-actions button { width: 100%; }
}

/* short-height phones */
@media (max-width: 640px) and (max-height: 720px) {
  .hero-invitation { height: 94svh; min-height: 560px; }
  .hero-copy-over-svg { width: 76%; transform: scale(.92); }
}


.hero-invitation::before {
  content: "";
  position: absolute;
  inset: 4% 7%;
  background: radial-gradient(circle at center, rgba(255,252,248,.12), rgba(255,252,248,0));
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.hero-copy-over-svg .guest-line {
  max-width: 34ch;
}
.hero-copy-over-svg .invite-line {
  max-width: 36ch;
}
@media (max-width: 980px) {
  .hero-copy-over-svg {
    width: min(62%, 500px);
  }
  .name-text {
    font-size: clamp(2.15rem, 6.5vw, 4.1rem);
  }
}
@media (max-width: 680px) {
  .hero-invitation {
    width: min(94vw, 760px);
    height: min(92svh, 980px);
    min-height: 660px;
  }
  .hero-copy-over-svg {
    width: min(64%, 340px);
    max-height: 84%;
    padding: 12px 8px;
  }
  .hero-kicker, .section-kicker, .meta-label, .event-kicker {
    font-size: .64rem;
    letter-spacing: .16em;
  }
  .guest-line {
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: .83rem;
    line-height: 1.48;
  }
  .invite-line {
    font-size: .77rem;
    line-height: 1.4;
  }
  .name-text {
    font-size: clamp(1.72rem, 8.2vw, 3rem);
    opacity: .52;
  }
  .parent-line {
    font-size: .73rem;
    line-height: 1.32;
  }
  .couple-names small {
    margin: 2px 0;
    font-size: .24em;
  }
  .invite-meta {
    margin-top: 14px;
    gap: 6px;
  }
  .invite-meta-box {
    padding: 10px 7px;
  }
  .invite-meta-box strong {
    font-size: .70rem;
  }
  .invite-meta-box span:last-child {
    font-size: .64rem;
  }
}
@media (max-width: 430px) {
  .hero {
    padding-left: 6px;
    padding-right: 6px;
  }
  .hero-invitation {
    width: 96vw;
    height: min(94svh, 920px);
    min-height: 620px;
  }
  .hero-copy-over-svg {
    width: min(66%, 288px);
    padding: 10px 6px;
  }
  .name-text {
    font-size: clamp(1.50rem, 8.8vw, 2.55rem);
    opacity: .54;
  }
  .parent-line {
    font-size: .66rem;
  }
  .hero-actions .primary-btn,
  .hero-actions .soft-btn {
    padding: 10px 15px;
    font-size: .88rem;
  }
}


/* v10 invitation readability + mobile parent layout */
@media (max-width: 680px) {
  .parents-block { gap: 0; }
  .parent-role {
    font-size: .76rem;
    margin-bottom: 2px;
  }
  .parent-name {
    font-size: .82rem;
    line-height: 1.22;
  }
  .parent-join {
    font-size: .82rem;
  }
  .name-text {
    opacity: .68;
  }
}
@media (max-width: 430px) {
  .parent-role { font-size: .68rem; }
  .parent-name { font-size: .75rem; }
  .parent-join { font-size: .75rem; }
  .name-text { opacity: .70; }
}


/* v11: full-height, non-squished mobile invitation artwork */
@media (max-width: 680px) {
  .hero {
    min-height: 100svh;
    padding: 0;
    overflow: hidden;
  }

  .hero-invitation {
    width: 100vw;
    height: 100svh;
    min-height: 100svh;
    max-width: none;
    overflow: hidden;
  }

  .hero-svg-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 0;
  }

  .hero-svg-art {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: auto;
    min-width: 100%;
    max-width: none;
    transform: translate(-50%, -50%);
    object-fit: unset;
    object-position: unset;
  }

  .hero-copy-over-svg {
    width: min(72vw, 360px);
    max-height: 88svh;
    padding: 8px 4px;
  }

  .name-text {
    font-size: clamp(2.15rem, 10.5vw, 3.65rem);
    line-height: .88;
    opacity: .72;
  }

  .parent-role {
    font-size: .82rem;
  }

  .parent-name {
    font-size: .92rem;
    line-height: 1.18;
  }

  .parent-join {
    font-size: .88rem;
  }
}

@media (max-width: 430px) {
  .hero-copy-over-svg {
    width: min(74vw, 310px);
    max-height: 90svh;
  }

  .name-text {
    font-size: clamp(2rem, 11.5vw, 3.15rem);
    opacity: .74;
  }

  .parent-role {
    font-size: .76rem;
  }

  .parent-name {
    font-size: .84rem;
  }

  .parent-join {
    font-size: .82rem;
  }
}

/* Very tall/narrow phones: keep the SVG full-height and allow more side crop. */
@media (max-width: 430px) and (min-height: 780px) {
  .hero-svg-art {
    height: 104%;
  }

  .hero-copy-over-svg {
    width: min(72vw, 300px);
  }
}


/* v12: cohesive invitation + separate event-details block */
.invitation-stack {
  width: min(92vw, 1120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* The floral invitation remains the focal piece. */
.invitation-stack .hero-invitation {
  width: min(90vw, 1040px);
  height: min(78svh, 880px);
  min-height: 650px;
  flex: 0 0 auto;
}

/* Keep details visually attached to the invitation instead of isolated cards. */
.event-details-panel {
  position: relative;
  z-index: 4;
  width: min(86vw, 980px);
  margin-top: 34px;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: minmax(130px, .75fr) 1px minmax(120px, .65fr) 1px minmax(260px, 1.7fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(163,127,100,.15);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.96), rgba(255,252,247,.88) 58%, rgba(248,240,227,.86)),
    var(--cream);
  box-shadow: 0 24px 58px rgba(103,74,58,.13);
  backdrop-filter: blur(18px);
}
.event-details-panel::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 20px;
  border: 1px solid rgba(201,139,156,.10);
  pointer-events: none;
}
.event-detail-item {
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: center;
}
.event-detail-item > span,
.event-detail-item > strong {
  display: block;
}
.event-detail-item strong {
  margin-top: 5px;
  color: var(--ink);
  font-family: "Cormorant Garamond", "Noto Serif Bengali", serif;
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  line-height: 1.08;
  font-weight: 650;
}
.event-place-item > span:last-child {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: .76rem;
  line-height: 1.35;
}
.event-detail-divider {
  position: relative;
  z-index: 1;
  width: 1px;
  height: 58px;
  background: linear-gradient(180deg, transparent, rgba(163,127,100,.25), transparent);
}
.event-details-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.event-details-actions .primary-btn,
.event-details-actions .soft-btn {
  white-space: nowrap;
  padding: 11px 16px;
  font-size: .88rem;
}

/* Desktop: avoid the disconnected, card-island look. */
@media (min-width: 981px) {
  .hero {
    padding-top: 26px;
    padding-bottom: 78px;
  }
  .event-details-panel {
    margin-top: 42px;
  }
  .hero-copy-over-svg {
    width: min(49%, 520px);
  }
  .hero-copy-over-svg::before {
    inset: -24px -34px;
  }
}

/* Tablet keeps one cohesive wide details block. */
@media (max-width: 980px) and (min-width: 641px) {
  .invitation-stack {
    width: 94vw;
  }
  .invitation-stack .hero-invitation {
    width: 92vw;
    height: min(84svh, 900px);
  }
  .event-details-panel {
    width: min(90vw, 780px);
    grid-template-columns: 1fr 1px 1fr 1px 1.65fr;
    margin-top: 34px;
  }
  .event-details-actions {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

/* Mobile: preserve v11's height-first SVG scaling, then place details naturally below. */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-bottom: 44px;
  }
  .invitation-stack {
    width: 100%;
  }
  .invitation-stack .hero-invitation {
    width: 100vw;
    height: 100svh;
    min-height: 620px;
  }
  .event-details-panel {
    width: calc(100vw - 24px);
    margin-top: 30px;
    padding: 19px 17px 17px;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 24px;
  }
  .event-detail-item {
    padding: 8px 10px 14px;
  }
  .event-detail-item:nth-of-type(1) {
    border-right: 1px solid rgba(163,127,100,.12);
  }
  .event-detail-divider {
    display: none;
  }
  .event-place-item {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid rgba(163,127,100,.12);
  }
  .event-detail-item strong {
    font-size: 1.25rem;
  }
  .event-place-item > span:last-child {
    font-size: .72rem;
  }
  .event-details-actions {
    grid-column: 1 / -1;
    justify-content: center;
    padding-top: 4px;
  }
}

@media (max-width: 430px) {
  .event-details-panel {
    width: calc(100vw - 18px);
    padding-left: 12px;
    padding-right: 12px;
  }
  .event-detail-item {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* ============================================================
   v14 responsive composition reset
   The invitation scales from the artwork itself, not viewport width.
   ============================================================ */

.hero {
  min-height: auto;
  display: block;
  overflow: visible;
  padding: 28px 14px 78px;
}

.invitation-stack {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Desktop/tablet artwork is always square and sized from vmin.
   This prevents wide monitors from making the names enormous. */
.invitation-stack .hero-invitation {
  container-type: inline-size;
  width: min(72vmin, 760px, calc(100vw - 40px));
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-width: none;
  overflow: visible;
  display: grid;
  place-items: center;
}

.hero-svg-stage {
  position: absolute;
  inset: 0;
  overflow: visible;
  border-radius: 0;
}

.hero-svg-art {
  position: static;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  display: block;
}

/* Safe text zone inside the white center of the floral artwork. */
.hero-copy-over-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 46%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-copy-over-svg::before {
  inset: -18% -16%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255,253,250,.72) 0%,
    rgba(255,253,250,.48) 42%,
    rgba(255,251,247,.18) 67%,
    rgba(255,251,247,0) 84%
  );
  box-shadow: none;
  backdrop-filter: none;
}

.hero-kicker {
  margin: 0 0 clamp(3px, .6cqw, 7px);
  font-size: clamp(.55rem, 1.25cqw, .68rem);
  letter-spacing: .14em;
  line-height: 1.25;
}

.guest-line {
  max-width: 34ch;
  margin: 0 0 clamp(3px, .55cqw, 6px);
  font-size: clamp(.74rem, 1.75cqw, .92rem);
  line-height: 1.4;
}

.invite-line {
  max-width: 35ch;
  margin: 0 0 clamp(6px, 1cqw, 10px);
  font-size: clamp(.70rem, 1.55cqw, .86rem);
  line-height: 1.4;
}

.couple-names {
  width: 100%;
  display: grid;
  gap: clamp(4px, .9cqw, 9px);
  margin: 0;
}

.person-block {
  display: grid;
  justify-items: center;
  gap: clamp(4px, .65cqw, 7px);
  min-width: 0;
}

.name-text {
  display: block;
  width: 100%;
  font-size: clamp(2.35rem, 7.1cqw, 4.25rem);
  line-height: .88;
  font-weight: 600;
  color: var(--ink);
  opacity: .68;
  text-wrap: balance;
  overflow-wrap: normal;
}

.parents-block {
  display: grid;
  justify-items: center;
  gap: clamp(1px, .3cqw, 3px);
  margin: 0;
  width: 100%;
}

.parent-role {
  margin: 0 0 1px;
  font-size: clamp(.78rem, 1.8cqw, .98rem);
  line-height: 1.2;
  font-weight: 600;
}

.parent-name {
  max-width: 100%;
  font-size: clamp(.88rem, 2.2cqw, 1.08rem);
  line-height: 1.22;
  font-weight: 650;
  text-wrap: balance;
}

.parent-join {
  margin: 0;
  font-size: clamp(.75rem, 1.7cqw, .94rem);
  line-height: 1;
}

.couple-names small {
  margin: clamp(1px, .4cqw, 4px) 0;
  font-size: clamp(.46rem, 1.05cqw, .58rem);
  line-height: 1;
  letter-spacing: .15em;
}

/* Event details are in normal flow, never overlapping the names. */
.event-details-panel {
  width: min(940px, calc(100vw - 40px));
  margin-top: clamp(34px, 5vh, 54px);
  padding: 23px 26px;
  grid-template-columns: minmax(130px,.72fr) 1px minmax(120px,.62fr) 1px minmax(270px,1.72fr) auto;
  gap: 18px;
  border-radius: 28px;
}

.event-detail-item strong {
  font-size: clamp(1.22rem, 1.75vw, 1.55rem);
}

.event-place-item > span:last-child {
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

/* A tiny visual connector keeps the two pieces cohesive without overlap. */
.invitation-stack::after {
  content: "";
  order: 1;
  width: 1px;
  height: 24px;
  margin-top: -43px;
  margin-bottom: 19px;
  background: linear-gradient(180deg, rgba(201,139,156,0), rgba(201,139,156,.28), rgba(201,139,156,0));
  pointer-events: none;
}
.event-details-panel { order: 2; }
.invitation-stack .hero-invitation { order: 0; }

/* Tablets: still square artwork, but use more width. */
@media (max-width: 980px) and (min-width: 641px) {
  .hero {
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .invitation-stack .hero-invitation {
    width: min(78vmin, 700px, calc(100vw - 32px));
  }

  .hero-copy-over-svg {
    width: 49%;
  }

  .name-text {
    font-size: clamp(2.2rem, 7.7cqw, 4rem);
  }

  .event-details-panel {
    width: min(88vw, 780px);
    margin-top: 42px;
    grid-template-columns: 1fr 1px 1fr 1px 1.7fr;
  }

  .event-details-actions {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 2px;
  }
}

/* Phones: keep the full-height artwork behavior that already worked,
   but fit the copy independently and let details scroll below it. */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 0 0 48px;
    overflow: visible;
  }

  .invitation-stack {
    width: 100%;
  }

  .invitation-stack .hero-invitation {
    container-type: normal;
    width: 100vw;
    height: max(100svh, 650px);
    min-height: max(100svh, 650px);
    aspect-ratio: auto;
    overflow: hidden;
  }

  .hero-svg-stage {
    inset: 0;
    overflow: hidden;
  }

  .hero-svg-art {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: auto;
    min-width: 100%;
    max-width: none;
    transform: translate(-50%, -50%);
    object-fit: unset;
  }

  .hero-copy-over-svg {
    top: 50%;
    left: 50%;
    width: min(74vw, 330px);
    max-height: none;
    transform: translate(-50%, -50%);
    padding: 0 2px;
  }

  .hero-copy-over-svg::before {
    inset: -12% -10%;
  }

  .hero-kicker {
    font-size: .60rem;
    margin-bottom: 4px;
  }

  .guest-line {
    font-size: .76rem;
    line-height: 1.35;
    margin-bottom: 4px;
  }

  .invite-line {
    font-size: .70rem;
    line-height: 1.34;
    margin-bottom: 7px;
  }

  .couple-names {
    gap: 5px;
  }

  .person-block {
    gap: 5px;
  }

  .name-text {
    font-size: clamp(2rem, 10.6vw, 3.25rem);
    line-height: .88;
    opacity: .72;
  }

  .parent-role {
    font-size: .78rem;
  }

  .parent-name {
    font-size: .88rem;
    line-height: 1.18;
  }

  .parent-join {
    font-size: .80rem;
  }

  .couple-names small {
    margin: 1px 0;
    font-size: .48rem;
  }

  .invitation-stack::after {
    display: none;
  }

  .event-details-panel {
    order: 2;
    width: calc(100vw - 22px);
    margin-top: 28px;
    padding: 18px 14px 16px;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 23px;
  }

  .event-detail-item {
    padding: 8px 9px 13px;
  }

  .event-detail-item:nth-of-type(1) {
    border-right: 1px solid rgba(163,127,100,.12);
  }

  .event-place-item {
    grid-column: 1 / -1;
    padding: 15px 10px 13px;
    border-top: 1px solid rgba(163,127,100,.12);
  }

  .event-detail-divider {
    display: none;
  }

  .event-detail-item strong {
    font-size: 1.18rem;
  }

  .event-place-item > span:last-child {
    font-size: .70rem;
    line-height: 1.35;
  }

  .event-details-actions {
    grid-column: 1 / -1;
    justify-content: center;
    padding-top: 3px;
  }
}

@media (max-width: 430px) {
  .invitation-stack .hero-invitation {
    height: max(100svh, 620px);
    min-height: max(100svh, 620px);
  }

  .hero-copy-over-svg {
    width: min(76vw, 300px);
  }

  .name-text {
    font-size: clamp(1.9rem, 11vw, 3rem);
  }

  .parent-role {
    font-size: .72rem;
  }

  .parent-name {
    font-size: .81rem;
  }

  .parent-join {
    font-size: .75rem;
  }

  .event-details-panel {
    width: calc(100vw - 16px);
  }
}

/* Short landscape-ish phones: let the section become taller rather than clipping copy. */
@media (max-width: 640px) and (max-height: 700px) {
  .invitation-stack .hero-invitation {
    height: 700px;
    min-height: 700px;
  }

  .hero-copy-over-svg {
    width: min(72vw, 310px);
  }

  .name-text {
    font-size: clamp(1.85rem, 9.6vw, 2.75rem);
  }
}


/* ============================================================
   v15 DESKTOP SCALE FIX
   Desktop artwork scales from viewport WIDTH, not viewport HEIGHT.
   The invitation may extend below the fold and scroll naturally.
   Mobile rules above remain unchanged.
   ============================================================ */
@media (min-width: 981px) {
  .hero {
    padding: 22px 16px 82px;
    overflow: visible;
  }

  .invitation-stack {
    max-width: 1240px;
  }

  .invitation-stack .hero-invitation {
    width: min(86vw, 1000px);
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: 0;
    max-height: none;
  }

  .hero-svg-stage {
    inset: 0;
    overflow: visible;
  }

  .hero-svg-art {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  /* Keep all copy inside the pale center instead of scaling with the monitor. */
  .hero-copy-over-svg {
    width: 43%;
    top: 49.5%;
  }

  .hero-kicker {
    font-size: clamp(.62rem, 1.18cqw, .76rem);
  }

  .guest-line {
    font-size: clamp(.82rem, 1.58cqw, 1rem);
  }

  .invite-line {
    font-size: clamp(.76rem, 1.42cqw, .92rem);
    margin-bottom: clamp(8px, 1.05cqw, 12px);
  }

  .name-text {
    font-size: clamp(3rem, 6.35cqw, 4.6rem);
    line-height: .9;
  }

  .parent-role {
    font-size: clamp(.88rem, 1.62cqw, 1.05rem);
  }

  .parent-name {
    font-size: clamp(1rem, 1.95cqw, 1.18rem);
  }

  .parent-join {
    font-size: clamp(.82rem, 1.45cqw, .98rem);
  }

  .couple-names small {
    font-size: clamp(.50rem, .95cqw, .62rem);
    margin: clamp(2px, .35cqw, 4px) 0;
  }

  .event-details-panel {
    width: min(1000px, 86vw);
    margin-top: 42px;
  }

  .invitation-stack::after {
    display: none;
  }
}

/* Large desktop displays can show an even larger invitation. */
@media (min-width: 1500px) {
  .invitation-stack .hero-invitation {
    width: min(78vw, 1120px);
  }

  .event-details-panel {
    width: min(1050px, 76vw);
  }
}


/* ============================================================
   v16 MOBILE TYPOGRAPHY FIX
   Desktop sizing from v15 is intentionally unchanged.
   Phones get a wider safe text area and substantially larger type.
   ============================================================ */
@media (max-width: 640px) {
  .hero-copy-over-svg {
    width: min(82vw, 360px);
    top: 49.5%;
  }

  .hero-copy-over-svg::before {
    inset: -10% -7%;
  }

  .hero-kicker {
    font-size: clamp(.67rem, 2.9vw, .80rem);
    line-height: 1.25;
    letter-spacing: .12em;
    margin-bottom: 6px;
  }

  .guest-line {
    font-size: clamp(.86rem, 3.45vw, 1rem);
    line-height: 1.34;
    margin-bottom: 6px;
  }

  .invite-line {
    font-size: clamp(.80rem, 3.15vw, .94rem);
    line-height: 1.34;
    margin-bottom: 10px;
  }

  .couple-names {
    gap: 7px;
  }

  .person-block {
    gap: 7px;
  }

  .name-text {
    font-size: clamp(2.55rem, 12.4vw, 3.8rem);
    line-height: .86;
    opacity: .76;
  }

  .parents-block {
    gap: 3px;
  }

  .parent-role {
    font-size: clamp(.88rem, 3.5vw, 1rem);
    line-height: 1.18;
  }

  .parent-name {
    font-size: clamp(.98rem, 4vw, 1.12rem);
    line-height: 1.18;
  }

  .parent-join {
    font-size: clamp(.86rem, 3.3vw, .98rem);
    line-height: 1;
  }

  .couple-names small {
    font-size: .56rem;
    margin: 3px 0;
  }
}

@media (max-width: 430px) {
  .hero-copy-over-svg {
    width: min(84vw, 330px);
  }

  .name-text {
    font-size: clamp(2.35rem, 12.7vw, 3.4rem);
  }

  .parent-role {
    font-size: clamp(.84rem, 3.8vw, .96rem);
  }

  .parent-name {
    font-size: clamp(.94rem, 4.25vw, 1.06rem);
  }

  .parent-join {
    font-size: clamp(.82rem, 3.55vw, .94rem);
  }

  .guest-line {
    font-size: clamp(.82rem, 3.65vw, .94rem);
  }

  .invite-line {
    font-size: clamp(.76rem, 3.35vw, .88rem);
  }
}

@media (max-width: 640px) and (max-height: 700px) {
  .hero-copy-over-svg {
    width: min(78vw, 330px);
  }

  .name-text {
    font-size: clamp(2.15rem, 10.8vw, 3.05rem);
  }

  .parent-role { font-size: .80rem; }
  .parent-name { font-size: .90rem; }
  .parent-join { font-size: .82rem; }
  .guest-line { font-size: .78rem; }
  .invite-line { font-size: .73rem; }
}


/* v18: personalized invitee emphasis */
.guest-line {
  width: 100%;
  margin: 8px auto 10px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}
.guest-lead,
.guest-tail {
  display: block;
  color: var(--ink-soft);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(.78rem, 1.05vw, .96rem);
  line-height: 1.35;
  font-weight: 500;
}
.invitee-name {
  display: block;
  max-width: 100%;
  margin: 2px auto 3px;
  color: #5f4047;
  font-family: "Cormorant Garamond", "Noto Serif Bengali", serif;
  font-size: clamp(1.55rem, 2.35vw, 2.45rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255,255,255,.48);
}
.invitee-name.hidden,
.guest-tail.hidden {
  display: none !important;
}

@media (max-width: 700px) {
  .guest-line {
    gap: 2px;
    margin: 6px auto 8px !important;
  }
  .guest-lead,
  .guest-tail {
    font-size: clamp(.78rem, 3.4vw, .94rem) !important;
    line-height: 1.28 !important;
  }
  .invitee-name {
    font-size: clamp(1.55rem, 7vw, 2.25rem) !important;
    line-height: 1.02;
    margin: 2px auto 4px;
    color: #57373f;
  }
}

@media (max-width: 430px) {
  .invitee-name {
    font-size: clamp(1.42rem, 7.6vw, 2rem) !important;
  }
  .guest-lead,
  .guest-tail {
    font-size: .78rem !important;
  }
}


/* v19: guest photo + message contribution sections */
.contribution-section {
  position: relative;
}
.contribution-card {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
}
.contribution-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}
.contribution-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 600;
}
.contribution-form input[type="text"],
.contribution-form textarea {
  width: 100%;
  border: 1px solid rgba(163,127,100,.20);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  font: inherit;
  resize: vertical;
  outline: none;
}
.contribution-form input[type="text"]:focus,
.contribution-form textarea:focus {
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 4px rgba(201,139,156,.12);
}
.file-picker {
  padding: 18px;
  border: 1px dashed rgba(184,115,134,.38);
  border-radius: 20px;
  background: rgba(255,253,250,.64);
}
.file-picker > span {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
}
.file-picker em {
  font-family: "Manrope", sans-serif;
  font-size: .75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--ink-soft);
}
.file-picker input[type="file"] {
  width: 100%;
  font: inherit;
  color: var(--ink-soft);
}
.file-picker input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(244,204,214,.5);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.file-picker small {
  font-weight: 400;
  line-height: 1.5;
}
.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.upload-preview-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(163,127,100,.13);
  background: rgba(255,255,255,.76);
  transition: transform .2s ease, box-shadow .2s ease;
}
.upload-preview-card.uploaded {
  box-shadow: 0 10px 28px rgba(91,128,100,.12);
}
.upload-preview-image-link {
  display: block;
  aspect-ratio: 1 / 1;
  background: rgba(248,240,227,.55);
}
.upload-preview-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.upload-preview-meta {
  display: grid;
  gap: 3px;
  padding: 10px 11px 12px;
  font-size: .75rem;
}
.upload-preview-meta strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-preview-meta span {
  color: var(--ink-soft);
}
.upload-success-badge {
  justify-self: start;
  margin-top: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(120,157,127,.13);
  color: #577460 !important;
  font-size: .68rem;
  font-weight: 700;
}
.upload-progress-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}
.upload-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(163,127,100,.12);
}
.upload-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--pink-deep));
  transition: width .15s linear;
}
.upload-progress-wrap strong {
  min-width: 42px;
  color: var(--rose);
  font-size: .8rem;
}
.contribution-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.contribution-actions button:disabled {
  opacity: .58;
  cursor: wait;
}

/* admin contribution viewer */
.admin-contributions-card {
  margin-top: 30px;
}
.admin-contribution-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.admin-contribution-entry {
  overflow: hidden;
  border: 1px solid rgba(163,127,100,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.admin-contribution-toggle {
  width: 100%;
  border: 0;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.admin-contribution-toggle > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.admin-contribution-toggle strong,
.admin-contribution-toggle small {
  display: block;
}
.admin-contribution-toggle small {
  color: var(--ink-soft);
}
.contribution-chevron {
  font-size: 1.4rem;
  transition: transform .2s ease;
}
.admin-contribution-toggle.open .contribution-chevron {
  transform: rotate(180deg);
}
.admin-media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}
.admin-media-thumb {
  min-width: 0;
  overflow: hidden;
  border-radius: 13px;
  background: rgba(248,240,227,.7);
  border: 1px solid rgba(163,127,100,.11);
}
.admin-media-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}
.admin-media-thumb span {
  display: block;
  padding: 7px 8px;
  color: var(--ink-soft);
  font-size: .68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-blessing-body {
  padding: 0 18px 18px;
}
.admin-blessing-body > p {
  margin: 0 0 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(248,240,227,.5);
  color: var(--ink);
  line-height: 1.65;
}

@media (max-width: 700px) {
  .contribution-card {
    padding: 20px 15px;
  }
  .upload-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contribution-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .contribution-actions .primary-btn {
    width: 100%;
  }
  .admin-media-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* v20 per-image guest upload states */
.file-upload-progress{width:100%;height:6px;margin-top:5px;overflow:hidden;border-radius:999px;background:rgba(163,127,100,.12)}
.file-upload-progress span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--pink),var(--pink-deep));transition:width .12s linear}
.file-upload-status{justify-self:start;font-size:.69rem;font-weight:700}
.guest-photo-upload-card.uploading .file-upload-status{color:var(--rose)}
.guest-photo-upload-card.uploaded{border-color:rgba(95,145,107,.28);box-shadow:0 10px 28px rgba(91,128,100,.13)}
.guest-photo-upload-card.uploaded .file-upload-progress span{background:#789d7f}
.guest-photo-upload-card.uploaded .file-upload-status{color:#577460}
.guest-photo-upload-card.upload-failed{border-color:rgba(174,82,82,.34);box-shadow:0 10px 24px rgba(174,82,82,.08)}
.guest-photo-upload-card.upload-failed .file-upload-progress span{background:#b66f6f}
.guest-photo-upload-card.upload-failed .file-upload-status{color:#9b5555}
.admin-photo-card-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));align-items:start}
.admin-photo-item{min-width:0;overflow:hidden;border:1px solid rgba(163,127,100,.12);border-radius:16px;background:rgba(255,255,255,.82)}
.admin-photo-item .admin-media-thumb{display:block;border:0;border-radius:0}
.admin-photo-item .admin-media-thumb img{aspect-ratio:4/3;object-fit:contain;background:rgba(248,240,227,.55)}
.admin-photo-meta{display:grid;gap:4px;padding:10px 11px 12px}.admin-photo-meta strong{color:var(--ink)}
.admin-photo-meta span,.admin-photo-meta small{color:var(--ink-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-photo-meta span{font-size:.74rem}.admin-photo-meta small{font-size:.67rem}
.admin-photo-meta a{justify-self:start;margin-top:4px;color:var(--rose);font-size:.72rem;font-weight:700}
@media(max-width:700px){.admin-photo-card-grid{grid-template-columns:1fr}}


/* v21: blessings use the same per-image upload states as guest photos */
.blessing-upload-card.uploading .file-upload-status{color:var(--rose)}
.blessing-upload-card.uploaded{border-color:rgba(95,145,107,.28);box-shadow:0 10px 28px rgba(91,128,100,.13)}
.blessing-upload-card.uploaded .file-upload-progress span{background:#789d7f}
.blessing-upload-card.uploaded .file-upload-status{color:#577460}
.blessing-upload-card.upload-failed{border-color:rgba(174,82,82,.34);box-shadow:0 10px 24px rgba(174,82,82,.08)}
.blessing-upload-card.upload-failed .file-upload-progress span{background:#b66f6f}
.blessing-upload-card.upload-failed .file-upload-status{color:#9b5555}


/* v22: explicit one-image-per-row upload UI */
.individual-upload-list {
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}
.individual-upload-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: stretch;
  min-height: 132px;
}
.individual-upload-thumb {
  aspect-ratio: auto;
  min-height: 132px;
  height: 100%;
  border-right: 1px solid rgba(163,127,100,.11);
}
.individual-upload-thumb img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  max-height: 180px;
  object-fit: contain;
  background: rgba(248,240,227,.46);
}
.individual-upload-meta {
  align-content: center;
  gap: 7px;
  padding: 15px 16px;
  font-size: .82rem;
}
.individual-upload-meta strong {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: .9rem;
}
.individual-upload-number {
  justify-self: start;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(244,204,214,.28);
  color: var(--rose) !important;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.individual-upload-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.individual-upload-status-row .file-upload-status {
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.file-upload-percent {
  flex: 0 0 auto;
  color: var(--ink-soft) !important;
  font-size: .72rem;
  font-weight: 800;
}
.individual-upload-card.uploading {
  border-color: rgba(201,139,156,.34);
  box-shadow: 0 10px 28px rgba(201,139,156,.09);
}
@media (max-width: 560px) {
  .individual-upload-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 112px;
  }
  .individual-upload-thumb,
  .individual-upload-thumb img {
    min-height: 112px;
  }
  .individual-upload-thumb img {
    max-height: 145px;
  }
  .individual-upload-meta {
    padding: 11px 12px;
    gap: 6px;
  }
  .individual-upload-meta strong {
    font-size: .82rem;
  }
  .individual-upload-number {
    font-size: .62rem;
  }
  .individual-upload-status-row {
    gap: 8px;
  }
}


/* =========================================================
   V24: interactive envelope opening entrance
   ========================================================= */
body.intro-locked {
  overflow: hidden;
  height: 100svh;
  overscroll-behavior: none;
}

.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 43%, rgba(255,255,255,.94) 0 12%, rgba(255,242,246,.76) 35%, rgba(247,214,222,.92) 100%),
    #f6dce3;
  transition: opacity .72s ease, visibility .72s ease;
}

.opening-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .26;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 16% 19%, transparent 0 28px, rgba(183,115,134,.17) 29px 30px, transparent 31px),
    radial-gradient(ellipse at 84% 22%, transparent 0 24px, rgba(183,115,134,.14) 25px 26px, transparent 27px),
    radial-gradient(ellipse at 26% 81%, transparent 0 32px, rgba(163,127,100,.12) 33px 34px, transparent 35px);
}

.opening-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.opening-bg-flower {
  position: absolute;
  color: rgba(183,115,134,.13);
  font-size: clamp(5rem, 12vw, 11rem);
  filter: blur(.2px);
  pointer-events: none;
  user-select: none;
}
.opening-bg-flower-one { left: -1.5rem; top: 7%; transform: rotate(-20deg); }
.opening-bg-flower-two { right: -2rem; bottom: 4%; transform: rotate(18deg); font-size: clamp(7rem, 15vw, 13rem); }
.opening-bg-flower-three { right: 13%; top: 7%; transform: rotate(32deg); font-size: clamp(3rem, 7vw, 6rem); }

.envelope-scene {
  position: relative;
  width: min(92vw, 640px);
  display: grid;
  justify-items: center;
  gap: clamp(28px, 5vh, 48px);
  perspective: 1500px;
  transform-style: preserve-3d;
}

.envelope-wrap {
  --env-w: min(88vw, 570px);
  --env-h: calc(var(--env-w) * .64);
  position: relative;
  width: var(--env-w);
  height: var(--env-h);
  transform-style: preserve-3d;
  filter: drop-shadow(0 30px 45px rgba(126,84,77,.18));
}

.envelope-back {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.42), transparent 40%),
    linear-gradient(180deg, #f9dce3 0%, #efc6d0 100%);
  border: 1px solid rgba(178,116,132,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}

.envelope-back::before {
  content: "";
  position: absolute;
  inset: 4% 5%;
  opacity: .22;
  background:
    radial-gradient(ellipse at 14% 26%, transparent 0 20px, rgba(178,116,132,.35) 21px 22px, transparent 23px),
    radial-gradient(ellipse at 84% 70%, transparent 0 27px, rgba(178,116,132,.26) 28px 29px, transparent 30px),
    radial-gradient(circle at 72% 22%, transparent 0 8px, rgba(178,116,132,.25) 9px 10px, transparent 11px);
}

.letter-card {
  position: absolute;
  z-index: 2;
  left: 7%;
  right: 7%;
  top: 9%;
  height: 80%;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #fffdfa, #fff7f3);
  border: 1px solid rgba(183,115,134,.12);
  box-shadow: 0 12px 32px rgba(112,78,66,.10);
  display: grid;
  place-items: center;
  transform: translateY(16%) scale(.96);
  transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .8s ease;
}

.letter-card-inner {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  color: #6a5248;
}
.letter-small {
  font-size: .72rem;
  letter-spacing: .23em;
  text-transform: uppercase;
  color: #bc7c8f;
}
.letter-card strong {
  max-width: 90%;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: .95;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.letter-flourish { font-size: 1.55rem; color: #c58a9a; }

.envelope-flap {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 0;
  height: 58%;
  transform-origin: 50% 0%;
  transform: rotateX(0deg);
  transform-style: preserve-3d;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background:
    linear-gradient(160deg, rgba(255,255,255,.28), transparent 38%),
    linear-gradient(180deg, #f8d7df, #eebdca);
  border-top: 1px solid rgba(178,116,132,.14);
  transition: transform 1.05s cubic-bezier(.34,.02,.18,1), filter .6s ease;
  backface-visibility: visible;
}

.envelope-pocket {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
  pointer-events: none;
}
.pocket-left,
.pocket-right,
.pocket-bottom {
  position: absolute;
  inset: 0;
}
.pocket-left {
  clip-path: polygon(0 13%, 54% 64%, 0 100%);
  background: linear-gradient(145deg, #f3cbd5, #edbec9);
}
.pocket-right {
  clip-path: polygon(100% 13%, 46% 64%, 100% 100%);
  background: linear-gradient(215deg, #f6d2da, #eec0ca);
}
.pocket-bottom {
  clip-path: polygon(0 100%, 50% 47%, 100% 100%);
  background: linear-gradient(180deg, #f5cdd6, #ecc0ca);
}

.wax-seal {
  --wax-dark: #641b2a;
  --wax-mid: #8d263a;
  --wax-rich: #a9364e;
  --wax-light: #c75a70;
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 43%;
  width: clamp(88px, 16vw, 118px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-2deg);
  border: 0;
  border-radius: 46% 54% 49% 51% / 51% 46% 54% 49%;
  cursor: pointer;
  color: #5b1625;
  isolation: isolate;
  background:
    radial-gradient(circle at 34% 26%, rgba(255,190,198,.58) 0 7%, rgba(255,190,198,.12) 15%, transparent 31%),
    radial-gradient(circle at 63% 68%, rgba(72,8,24,.25) 0 13%, transparent 34%),
    radial-gradient(circle at 44% 42%, var(--wax-rich) 0 18%, var(--wax-mid) 57%, var(--wax-dark) 100%);
  box-shadow:
    0 16px 24px rgba(76,21,35,.34),
    0 5px 8px rgba(78,20,35,.24),
    inset 4px 5px 9px rgba(255,167,181,.30),
    inset -7px -9px 13px rgba(58,8,23,.36),
    0 0 0 2px rgba(86,19,35,.22);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .5s ease, filter .32s ease;
}

.wax-seal::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 48% 52% 50% 50% / 51% 48% 52% 49%;
  z-index: -1;
  background:
    radial-gradient(circle at 35% 24%, rgba(255,210,216,.22), transparent 34%),
    linear-gradient(145deg, #b33e56, #7b2034 64%, #611828);
  box-shadow:
    inset 2px 2px 5px rgba(255,195,203,.18),
    inset -5px -6px 8px rgba(56,7,20,.22);
}

.wax-seal::after {
  content: "";
  position: absolute;
  left: 18%;
  top: 13%;
  width: 34%;
  height: 17%;
  border-radius: 50%;
  transform: rotate(-18deg);
  background: linear-gradient(180deg, rgba(255,221,226,.38), rgba(255,221,226,0));
  filter: blur(.6px);
  pointer-events: none;
  z-index: 5;
}

.wax-lobe {
  position: absolute;
  z-index: -2;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 27%, rgba(255,174,188,.22), transparent 33%),
    linear-gradient(145deg, #a6324a, #6f1a2d 76%);
  box-shadow:
    inset 2px 2px 4px rgba(255,177,190,.16),
    inset -3px -4px 6px rgba(64,8,22,.20);
}
.wax-lobe-1 { left: -8%; top: 25%; transform: scale(1.04); }
.wax-lobe-2 { right: -7%; top: 21%; transform: scale(.98); }
.wax-lobe-3 { left: 8%; top: -6%; transform: scale(.92); }
.wax-lobe-4 { right: 5%; bottom: -7%; transform: scale(1.02); }
.wax-lobe-5 { left: 2%; bottom: 2%; transform: scale(.78); }
.wax-lobe-6 { right: -1%; top: 55%; transform: scale(.72); }

.wax-seal-face {
  position: absolute;
  inset: 15%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(204,87,106,.64), transparent 31%),
    radial-gradient(circle at 50% 50%, #942a40 0 48%, #782035 76%, #5f1728 100%);
  box-shadow:
    0 0 0 2px rgba(70,12,26,.38),
    0 0 0 5px rgba(190,76,94,.16),
    inset 3px 3px 6px rgba(225,117,133,.24),
    inset -4px -5px 8px rgba(54,7,18,.26);
  overflow: hidden;
}

.wax-inner-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1.5px solid rgba(75,14,29,.52);
  box-shadow:
    0 1px 0 rgba(211,105,122,.25),
    inset 0 1px 2px rgba(49,5,16,.22);
}

.wax-flower-mark {
  width: 58%;
  height: 58%;
  overflow: visible;
  filter:
    drop-shadow(1px 1px 0 rgba(210,96,115,.18))
    drop-shadow(-1px -1px 0 rgba(65,9,22,.45));
}
.wax-flower-petals ellipse {
  fill: #711b2f;
  stroke: rgba(198,77,98,.36);
  stroke-width: 1.4;
}
.wax-flower-heart {
  fill: #5c1427;
  stroke: rgba(205,88,107,.32);
  stroke-width: 1.5;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) rotate(-2deg) scale(1.045);
  filter: saturate(1.06) brightness(1.025);
}
.wax-seal:active {
  transform: translate(-50%, -50%) rotate(-2deg) scale(.94);
}
.wax-seal:focus-visible {
  outline: 3px solid rgba(255,255,255,.92);
  outline-offset: 7px;
}

.tap-to-open {
  border: 0;
  background: transparent;
  color: #7c5e54;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 3px;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.tap-to-open span { font-size: .79rem; font-weight: 700; }
.tap-to-open small { font-size: .62rem; opacity: .72; letter-spacing: .12em; }

.envelope-wrap.is-opening .wax-seal {
  animation: seal-release .62s cubic-bezier(.3,.7,.2,1) forwards;
}
.envelope-wrap.is-opening .envelope-flap {
  animation: flap-open 1.15s .34s cubic-bezier(.25,.68,.18,1) forwards;
}
.envelope-wrap.is-opening .letter-card {
  animation: letter-rise 1.25s 1.05s cubic-bezier(.18,.75,.18,1) forwards;
}
.opening-screen.is-opening .tap-to-open {
  animation: prompt-away .35s forwards;
}

@keyframes seal-release {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  30% { transform: translate(-50%, -50%) scale(.86) rotate(-4deg); }
  100% { transform: translate(-50%, -58%) scale(.72) rotate(12deg); opacity: 0; filter: blur(2px); }
}
@keyframes flap-open {
  0% { transform: rotateX(0deg); z-index: 5; }
  55% { transform: rotateX(-115deg); z-index: 3; }
  100% { transform: rotateX(-178deg); z-index: 1; }
}
@keyframes letter-rise {
  0% { transform: translateY(16%) scale(.96); }
  58% { transform: translateY(-54%) scale(1.01); }
  100% { transform: translateY(-86%) scale(1.04); opacity: .98; }
}
@keyframes prompt-away {
  to { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 600px) {
  .envelope-scene {
    width: 100vw;
    gap: 34px;
  }
  .envelope-wrap {
    --env-w: min(90vw, 430px);
    --env-h: calc(var(--env-w) * .68);
  }
  .wax-seal {
    width: clamp(78px, 23vw, 98px);
  }
  .letter-card strong {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }
}

@media (max-height: 580px) and (orientation: landscape) {
  .envelope-scene { transform: scale(.72); }
}

@media (prefers-reduced-motion: reduce) {
  .envelope-flap,
  .letter-card,
  .wax-seal,
  .opening-screen,
  .tap-to-open {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* =========================================================
   V25: smoother opening sequence + opening Three.js flowers
   ========================================================= */
.opening-screen {
  transition:
    opacity 1.15s cubic-bezier(.22,.72,.18,1),
    visibility 1.15s linear;
}

.opening-three-flowers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: .92;
}
.opening-three-flowers canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.opening-screen::before,
.opening-bg-flower { z-index: 0; }
.envelope-scene {
  z-index: 3;
  transition: transform 1.2s cubic-bezier(.16,.82,.18,1), opacity 1s ease;
}
.opening-screen.is-opening .envelope-scene {
  animation: opening-scene-breathe 3.8s cubic-bezier(.2,.75,.18,1) forwards;
}

.letter-card {
  transform: translateY(14%) scale(.965);
  will-change: transform, opacity;
}
.letter-card-inner {
  gap: 9px;
  padding: 22px 24px;
}
.letter-card strong {
  max-width: 82%;
  display: grid;
  justify-items: center;
  gap: 1px;
  font-size: clamp(1.15rem, 3vw, 2rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: .015em;
  overflow-wrap: normal;
}
.opening-name-word {
  display: block;
  white-space: nowrap;
}

.envelope-wrap.is-opening .wax-seal {
  animation: seal-release-v25 .82s cubic-bezier(.22,.76,.18,1) forwards;
}
.envelope-wrap.is-opening .envelope-flap {
  animation: flap-open-v25 1.65s .42s cubic-bezier(.18,.74,.16,1) forwards;
}
.envelope-wrap.is-opening .letter-card {
  animation: letter-rise-v25 1.85s 1.36s cubic-bezier(.16,.76,.14,1) forwards;
}
.opening-screen.is-opening .tap-to-open {
  animation: prompt-away-v25 .65s cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes seal-release-v25 {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; filter: blur(0); }
  24%  { transform: translate(-50%, -50%) scale(.92) rotate(-2deg); }
  52%  { transform: translate(-50%, -52%) scale(.84) rotate(3deg); opacity: .92; }
  100% { transform: translate(-50%, -62%) scale(.68) rotate(10deg); opacity: 0; filter: blur(2.5px); }
}
@keyframes flap-open-v25 {
  0%   { transform: rotateX(0deg); z-index: 5; filter: brightness(1); }
  18%  { transform: rotateX(-18deg); z-index: 5; }
  56%  { transform: rotateX(-112deg); z-index: 3; filter: brightness(.985); }
  82%  { transform: rotateX(-164deg); z-index: 2; }
  100% { transform: rotateX(-179deg); z-index: 1; filter: brightness(.97); }
}
@keyframes letter-rise-v25 {
  0%   { transform: translateY(14%) scale(.965); opacity: 1; }
  22%  { transform: translateY(4%) scale(.976); }
  58%  { transform: translateY(-49%) scale(1); }
  82%  { transform: translateY(-78%) scale(1.025); }
  100% { transform: translateY(-90%) scale(1.035); opacity: 1; }
}
@keyframes prompt-away-v25 {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}
@keyframes opening-scene-breathe {
  0% { transform: translateY(0) scale(1); }
  68% { transform: translateY(-4px) scale(1.008); }
  100% { transform: translateY(-10px) scale(1.018); opacity: .98; }
}

@media (max-width: 600px) {
  .letter-card-inner { padding: 18px; gap: 7px; }
  .letter-card strong {
    max-width: 86%;
    font-size: clamp(1.05rem, 5vw, 1.55rem);
    line-height: 1.03;
  }
  .letter-small { font-size: .63rem; }
  .letter-flourish { font-size: 1.28rem; }
}

@media (prefers-reduced-motion: reduce) {
  .opening-three-flowers { display: none; }
}


/* =========================================================
   V26: satin ribbon + wax seal closure
   ========================================================= */
.ribbon-closure {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.ribbon-band {
  position: absolute;
  left: 50%;
  width: clamp(46px, 8.5vw, 68px);
  transform: translateX(-50%);
  background:
    linear-gradient(90deg,
      rgba(104, 31, 51, .98) 0%,
      rgba(144, 48, 71, .99) 18%,
      rgba(190, 83, 106, 1) 46%,
      rgba(151, 51, 75, .99) 70%,
      rgba(98, 27, 47, .98) 100%);
  box-shadow:
    inset 8px 0 12px rgba(255,255,255,.12),
    inset -8px 0 12px rgba(96,49,65,.16),
    0 5px 10px rgba(101,59,68,.10);
  transition:
    transform 1.05s cubic-bezier(.2,.78,.18,1),
    opacity .78s ease;
}
.ribbon-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0 28%, rgba(255,255,255,.24) 48%, transparent 68% 100%);
  opacity: .72;
}
.ribbon-band-top {
  top: 0;
  height: 47%;
  border-radius: 5px 5px 0 0;
}
.ribbon-band-bottom {
  bottom: 0;
  height: 58%;
  border-radius: 0 0 5px 5px;
}

.ribbon-tail {
  position: absolute;
  z-index: 1;
  top: 41%;
  left: 50%;
  width: clamp(34px, 6.5vw, 50px);
  height: clamp(68px, 12vw, 94px);
  transform-origin: 50% 0%;
  background:
    linear-gradient(90deg,
      #76243d 0%,
      #a23b59 24%,
      #c85e79 48%,
      #9a3552 76%,
      #6b1e37 100%);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 50% 82%, 18% 100%);
  filter: drop-shadow(0 6px 5px rgba(94,52,64,.12));
  transition:
    transform 1.05s cubic-bezier(.2,.78,.18,1),
    opacity .72s ease;
}
.ribbon-tail-left {
  transform: translateX(-88%) rotate(18deg);
}
.ribbon-tail-right {
  transform: translateX(-12%) rotate(-18deg);
}

.ribbon-wax-seal {
  top: 43%;
  width: clamp(82px, 14vw, 106px);
  z-index: 9;
}

.envelope-wrap.is-opening .ribbon-band-top {
  animation: ribbon-top-release 1.05s .16s cubic-bezier(.2,.78,.18,1) forwards;
}
.envelope-wrap.is-opening .ribbon-band-bottom {
  animation: ribbon-bottom-release 1.05s .16s cubic-bezier(.2,.78,.18,1) forwards;
}
.envelope-wrap.is-opening .ribbon-tail-left {
  animation: ribbon-tail-left-release .95s .13s cubic-bezier(.2,.78,.18,1) forwards;
}
.envelope-wrap.is-opening .ribbon-tail-right {
  animation: ribbon-tail-right-release .95s .13s cubic-bezier(.2,.78,.18,1) forwards;
}

@keyframes ribbon-top-release {
  0%   { transform: translateX(-50%) translateY(0) scaleX(1); opacity: 1; }
  45%  { transform: translateX(-50%) translateY(-7%) scaleX(.98); opacity: .96; }
  100% { transform: translateX(-50%) translateY(-115%) scaleX(.94); opacity: 0; }
}
@keyframes ribbon-bottom-release {
  0%   { transform: translateX(-50%) translateY(0) scaleX(1); opacity: 1; }
  45%  { transform: translateX(-50%) translateY(7%) scaleX(.98); opacity: .96; }
  100% { transform: translateX(-50%) translateY(115%) scaleX(.94); opacity: 0; }
}
@keyframes ribbon-tail-left-release {
  0%   { transform: translateX(-88%) rotate(18deg) scale(1); opacity: 1; }
  100% { transform: translateX(-140%) translateY(28px) rotate(37deg) scale(.88); opacity: 0; }
}
@keyframes ribbon-tail-right-release {
  0%   { transform: translateX(-12%) rotate(-18deg) scale(1); opacity: 1; }
  100% { transform: translateX(42%) translateY(28px) rotate(-37deg) scale(.88); opacity: 0; }
}

@media (max-width: 600px) {
  .ribbon-band {
    width: clamp(42px, 12vw, 58px);
  }
  .ribbon-tail {
    width: clamp(30px, 9vw, 42px);
    height: clamp(60px, 18vw, 82px);
  }
  .ribbon-wax-seal {
    width: clamp(76px, 21vw, 94px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-band,
  .ribbon-tail {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* =========================================================
   V28: ribbon removed + deeper wax + botanical emboss
   ========================================================= */
.ribbon-closure,
.ribbon-band,
.ribbon-tail {
  display: none !important;
}

.wax-seal {
  --wax-dark: #2d040d;
  --wax-deep: #410713;
  --wax-mid: #5b0c1d;
  --wax-rich: #741329;
  --wax-light: #9b3046;
  top: 43%;
  width: clamp(92px, 16vw, 122px);
  color: #24030a;
  background:
    radial-gradient(circle at 31% 23%, rgba(255,185,190,.28) 0 5%, rgba(255,185,190,.06) 14%, transparent 28%),
    radial-gradient(circle at 67% 72%, rgba(20,0,5,.40) 0 16%, transparent 38%),
    radial-gradient(circle at 46% 43%, var(--wax-rich) 0 16%, var(--wax-mid) 48%, var(--wax-deep) 72%, var(--wax-dark) 100%);
  box-shadow:
    0 19px 28px rgba(51,4,15,.42),
    0 7px 10px rgba(49,3,13,.30),
    inset 4px 5px 8px rgba(200,78,94,.23),
    inset -8px -10px 15px rgba(20,0,6,.48),
    0 0 0 2px rgba(42,3,12,.34);
}
.wax-seal::before {
  background:
    radial-gradient(circle at 34% 22%, rgba(255,183,191,.13), transparent 33%),
    linear-gradient(145deg, #7f172d, #4c0918 62%, #31050f);
  box-shadow:
    inset 2px 2px 5px rgba(208,96,109,.13),
    inset -5px -7px 9px rgba(20,0,6,.36);
}
.wax-seal::after {
  background: linear-gradient(180deg, rgba(255,211,215,.24), rgba(255,211,215,0));
  opacity: .8;
}
.wax-lobe {
  background:
    radial-gradient(circle at 34% 27%, rgba(197,70,87,.14), transparent 34%),
    linear-gradient(145deg, #6f1227, #3b0714 76%);
  box-shadow:
    inset 2px 2px 4px rgba(204,83,98,.12),
    inset -3px -4px 7px rgba(17,0,5,.34);
}
.wax-seal-face {
  inset: 14%;
  background:
    radial-gradient(circle at 36% 28%, rgba(150,40,59,.34), transparent 31%),
    radial-gradient(circle at 50% 50%, #5e0e20 0 46%, #470918 74%, #2b040d 100%);
  box-shadow:
    0 0 0 2px rgba(25,0,7,.58),
    0 0 0 5px rgba(130,31,51,.12),
    inset 3px 3px 6px rgba(151,50,68,.15),
    inset -5px -6px 9px rgba(16,0,5,.38);
}
.wax-inner-ring {
  inset: 7%;
  border: 1.8px solid rgba(28,1,8,.72);
  box-shadow:
    0 1px 0 rgba(143,39,57,.28),
    inset 0 1px 3px rgba(12,0,4,.34);
}
.wax-flower-mark {
  width: 67%;
  height: 67%;
  overflow: visible;
  filter:
    drop-shadow(1px 1px 0 rgba(126,34,50,.55))
    drop-shadow(-1px -1px 0 rgba(13,0,4,.78));
}
.wax-botanical-mark {
  stroke: #25030b;
  stroke-width: 3.1;
}
.wax-botanical-mark circle {
  fill: #25030b;
  stroke: #25030b;
}
.wax-seal:hover {
  filter: saturate(1.08) brightness(1.04);
}

@media (max-width: 600px) {
  .wax-seal {
    width: clamp(82px, 24vw, 104px);
  }
}


/* =========================================================
   V29: approved photographic wax seal + rustic envelope
   ========================================================= */

/* Cleaner entrance: keep the Three.js flowers, remove old static ornaments. */
.opening-bg-flower { display: none !important; }

.opening-screen {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,252,244,.98) 0 13%, rgba(245,229,214,.92) 45%, rgba(225,198,180,.96) 100%),
    #ead2c2;
  transition: opacity 1.2s cubic-bezier(.2,.72,.16,1), visibility 1.2s linear;
}
.opening-screen::before {
  opacity: .42;
  background-image:
    repeating-linear-gradient(12deg, rgba(91,62,48,.022) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(96deg, rgba(255,255,255,.10) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.30), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(104,65,48,.06), transparent 31%);
  mix-blend-mode: multiply;
}

.opening-three-flowers {
  opacity: .58;
  filter: saturate(.82) sepia(.10);
}

.envelope-scene {
  width: min(94vw, 680px);
  gap: clamp(30px, 5vh, 52px);
  perspective: 1900px;
}

.envelope-wrap {
  --env-w: min(90vw, 610px);
  --env-h: calc(var(--env-w) * .635);
  filter:
    drop-shadow(0 34px 36px rgba(83,51,39,.18))
    drop-shadow(0 7px 9px rgba(94,58,44,.10));
}

/* Warm handmade paper with subtle mottling and grain. */
.envelope-back {
  border-radius: 13px 17px 15px 12px;
  background:
    radial-gradient(circle at 18% 25%, rgba(255,255,255,.42), transparent 24%),
    radial-gradient(circle at 78% 72%, rgba(157,112,83,.08), transparent 30%),
    repeating-linear-gradient(7deg, rgba(101,76,58,.018) 0 1px, transparent 1px 4px),
    linear-gradient(165deg, #f5e4d5 0%, #edd5c3 48%, #e8cdbc 100%);
  border: 1px solid rgba(132,91,68,.16);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.28),
    inset 0 -14px 28px rgba(112,74,55,.055),
    inset 0 10px 24px rgba(255,255,255,.14);
}
.envelope-back::before {
  inset: 0;
  opacity: .55;
  border-radius: inherit;
  background:
    repeating-linear-gradient(93deg, transparent 0 6px, rgba(86,61,46,.025) 6px 7px),
    repeating-linear-gradient(2deg, transparent 0 9px, rgba(255,255,255,.055) 9px 10px);
  mix-blend-mode: multiply;
}
.envelope-back::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 10px 14px 12px 10px;
  border: 1px solid rgba(255,255,255,.20);
  pointer-events: none;
}

.envelope-flap {
  height: 59%;
  background:
    repeating-linear-gradient(6deg, rgba(101,76,58,.018) 0 1px, transparent 1px 5px),
    linear-gradient(168deg, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(180deg, #f7e6d7 0%, #eacdb9 100%);
  border-top: 1px solid rgba(126,84,63,.15);
  filter: drop-shadow(0 3px 2px rgba(95,61,45,.035));
}

.envelope-pocket {
  border-radius: 13px 17px 15px 12px;
}
.pocket-left {
  background:
    repeating-linear-gradient(9deg, rgba(99,72,55,.016) 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #eed9c8, #e5c6b2);
}
.pocket-right {
  background:
    repeating-linear-gradient(-8deg, rgba(99,72,55,.016) 0 1px, transparent 1px 5px),
    linear-gradient(215deg, #f1dccb, #e7c7b4);
}
.pocket-bottom {
  background:
    repeating-linear-gradient(4deg, rgba(99,72,55,.016) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #f0d9c7, #e5c2ac);
}

/* The invitation card itself now looks like slightly aged cotton paper. */
.letter-card {
  left: 6.5%;
  right: 6.5%;
  top: 8%;
  height: 82%;
  border-radius: 8px 11px 7px 10px;
  background:
    radial-gradient(circle at 14% 20%, rgba(255,255,255,.65), transparent 22%),
    radial-gradient(circle at 82% 76%, rgba(163,117,87,.06), transparent 25%),
    repeating-linear-gradient(11deg, rgba(90,67,53,.018) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #fffaf0 0%, #f7eadb 100%);
  border: 1px solid rgba(145,98,71,.17);
  box-shadow:
    0 18px 34px rgba(91,59,44,.13),
    inset 0 0 30px rgba(160,113,82,.035),
    inset 0 1px 0 rgba(255,255,255,.78);
  transform: translateY(15%) scale(.97);
  will-change: transform, opacity, filter;
}
.letter-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(147,99,72,.12);
  border-radius: 5px 8px 4px 7px;
  pointer-events: none;
}
.letter-card-inner {
  position: relative;
  z-index: 1;
  gap: 10px;
  padding: 25px;
  color: #60493d;
}
.letter-small {
  color: #9e665f;
  letter-spacing: .26em;
}
.letter-card strong {
  color: #4d372f;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
}
.letter-flourish { color: #8e5b55; }

/* Replace all CSS-drawn wax with the approved transparent PNG. */
.wax-seal-image-button {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 43%;
  width: clamp(156px, 28vw, 205px);
  aspect-ratio: auto;
  transform: translate(-50%, -50%) rotate(-2.5deg);
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  isolation: isolate;
  overflow: visible;
  filter: drop-shadow(0 13px 12px rgba(55,10,17,.26));
  transition:
    transform .42s cubic-bezier(.16,.82,.18,1),
    filter .42s ease,
    opacity .6s ease;
}
.wax-seal-image-button::before,
.wax-seal-image-button::after { display: none !important; }
.wax-seal-image {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  transform: translateZ(0);
}
.wax-seal-image-button:hover {
  transform: translate(-50%, -50%) rotate(-1.5deg) scale(1.035);
  filter: drop-shadow(0 15px 14px rgba(55,10,17,.29)) saturate(1.035);
}
.wax-seal-image-button:active {
  transform: translate(-50%, -49%) rotate(-2.5deg) scale(.965);
}
.wax-seal-image-button:focus-visible {
  outline: 3px solid rgba(94,31,43,.42);
  outline-offset: 7px;
}

.tap-to-open {
  color: #6c4d40;
  text-shadow: 0 1px 0 rgba(255,255,255,.42);
}
.tap-to-open span { font-size: .78rem; }

/* More natural, staged motion: press/release, flap, card, gentle settle. */
.envelope-wrap.is-opening .wax-seal-image-button {
  animation: rustic-seal-release 1.02s cubic-bezier(.18,.78,.16,1) forwards;
}
.envelope-wrap.is-opening .envelope-flap {
  animation: rustic-flap-open 1.85s .46s cubic-bezier(.18,.72,.12,1) forwards;
}
.envelope-wrap.is-opening .letter-card {
  animation: rustic-letter-rise 2.05s 1.48s cubic-bezier(.14,.76,.12,1) forwards;
}
.opening-screen.is-opening .tap-to-open {
  animation: rustic-prompt-away .72s cubic-bezier(.2,.68,.18,1) forwards;
}
.opening-screen.is-opening .envelope-scene {
  animation: rustic-scene-settle 4.45s cubic-bezier(.16,.76,.14,1) forwards;
}

@keyframes rustic-seal-release {
  0%   { transform: translate(-50%, -50%) rotate(-2.5deg) scale(1); opacity: 1; filter: drop-shadow(0 13px 12px rgba(55,10,17,.26)); }
  18%  { transform: translate(-50%, -48.5%) rotate(-2deg) scale(.955); }
  38%  { transform: translate(-50%, -51%) rotate(-4deg) scale(1.015); }
  68%  { transform: translate(-52%, -61%) rotate(-8deg) scale(.91); opacity: .86; }
  100% { transform: translate(-58%, -76%) rotate(-15deg) scale(.76); opacity: 0; filter: drop-shadow(0 18px 15px rgba(55,10,17,.08)) blur(1.3px); }
}
@keyframes rustic-flap-open {
  0%   { transform: rotateX(0deg); z-index: 5; filter: brightness(1); }
  12%  { transform: rotateX(-8deg); z-index: 5; }
  33%  { transform: rotateX(-44deg); z-index: 5; }
  62%  { transform: rotateX(-123deg); z-index: 3; filter: brightness(.99); }
  86%  { transform: rotateX(-169deg); z-index: 2; }
  100% { transform: rotateX(-179deg); z-index: 1; filter: brightness(.96); }
}
@keyframes rustic-letter-rise {
  0%   { transform: translateY(15%) scale(.97); opacity: 1; filter: blur(0); }
  14%  { transform: translateY(10%) scale(.975); }
  42%  { transform: translateY(-31%) scale(.988); }
  72%  { transform: translateY(-69%) scale(1.012); }
  90%  { transform: translateY(-85%) scale(1.025); }
  100% { transform: translateY(-82%) scale(1.02); opacity: 1; filter: blur(0); }
}
@keyframes rustic-prompt-away {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(13px); }
}
@keyframes rustic-scene-settle {
  0% { transform: translateY(0) scale(1); }
  54% { transform: translateY(-3px) scale(1.004); }
  80% { transform: translateY(-8px) scale(1.008); }
  100% { transform: translateY(-9px) scale(1.008); opacity: .995; }
}

@media (max-width: 600px) {
  .envelope-scene { width: 100vw; gap: 34px; }
  .envelope-wrap {
    --env-w: min(92vw, 440px);
    --env-h: calc(var(--env-w) * .65);
  }
  .wax-seal-image-button {
    width: clamp(140px, 40vw, 176px);
    top: 44%;
  }
  .letter-card-inner { padding: 18px 20px; }
}

@media (max-width: 390px) {
  .wax-seal-image-button { width: clamp(132px, 42vw, 158px); }
  .envelope-wrap { --env-w: 94vw; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .envelope-scene { transform: scale(.76); }
  .wax-seal-image-button { width: clamp(132px, 22vw, 168px); }
}

@media (prefers-reduced-motion: reduce) {
  .wax-seal-image-button,
  .envelope-flap,
  .letter-card,
  .opening-screen,
  .tap-to-open,
  .envelope-scene {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* =========================================================
   V30: shorter opening card + bilingual Bismillah + Akdh note
   ========================================================= */

/* Keep the inner opening letter entirely inside the envelope before it rises. */
.letter-card {
  top: 16%;
  height: 64%;
  transform: translateY(8%) scale(.965);
}

.envelope-wrap.is-opening .letter-card {
  animation: rustic-letter-rise-v30 2.05s 1.48s cubic-bezier(.14,.76,.12,1) forwards;
}

@keyframes rustic-letter-rise-v30 {
  0%   { transform: translateY(8%) scale(.965); opacity: 1; filter: blur(0); }
  16%  { transform: translateY(4%) scale(.972); }
  43%  { transform: translateY(-24%) scale(.987); }
  72%  { transform: translateY(-55%) scale(1.008); }
  90%  { transform: translateY(-69%) scale(1.018); }
  100% { transform: translateY(-66%) scale(1.014); opacity: 1; filter: blur(0); }
}

/* Arabic + Bangla Bismillah get their own readable lines. */
.bismillah-block {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-bottom: 8px;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: none;
}

.bismillah-arabic {
  display: block;
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(1.16rem, 1.75vw, 1.46rem);
  font-weight: 600;
  color: #9b6072;
  line-height: 1.35;
}

.bismillah-bangla {
  display: block;
  font-family: "Noto Serif Bengali", serif;
  font-size: clamp(.82rem, 1.15vw, 1rem);
  font-weight: 600;
  letter-spacing: .025em;
  color: #ad7484;
}

.invite-line {
  font-weight: 500;
}

/* Separate Akdh message, visually related to the card but never overlapping it. */
.akdh-message-box {
  width: min(86%, 860px);
  margin: clamp(22px, 3vw, 34px) auto clamp(22px, 3vw, 34px);
  padding: clamp(20px, 2.8vw, 30px) clamp(22px, 4vw, 42px);
  position: relative;
  z-index: 3;
  border-radius: 26px;
  border: 1px solid rgba(166, 116, 99, .16);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.76), transparent 62%),
    linear-gradient(180deg, rgba(255,250,246,.88), rgba(247,234,224,.78));
  box-shadow: 0 18px 42px rgba(92,59,47,.085);
  backdrop-filter: blur(8px);
  text-align: center;
}

.akdh-message-box::before {
  content: "❦";
  display: block;
  margin-bottom: 9px;
  color: rgba(174, 105, 126, .82);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
}

.akdh-message-box p {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif Bengali", serif;
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  font-weight: 500;
  line-height: 1.6;
  color: #674e43;
}

@media (max-width: 700px) {
  .letter-card {
    top: 17%;
    height: 61%;
    transform: translateY(7%) scale(.965);
  }

  .bismillah-block {
    gap: 1px;
    margin-bottom: 6px;
  }

  .bismillah-arabic {
    font-size: clamp(1rem, 4.7vw, 1.24rem);
  }

  .bismillah-bangla {
    font-size: clamp(.72rem, 3.35vw, .9rem);
  }

  .akdh-message-box {
    width: min(92%, 520px);
    margin-top: 18px;
    margin-bottom: 24px;
    padding: 18px 18px 20px;
    border-radius: 21px;
  }

  .akdh-message-box p {
    font-size: clamp(1.04rem, 4.8vw, 1.24rem);
    line-height: 1.55;
  }
}

@media (max-width: 390px) {
  .letter-card {
    top: 18%;
    height: 58%;
  }
  .bismillah-arabic { font-size: 1rem; }
  .bismillah-bangla { font-size: .72rem; }
  .akdh-message-box { width: 94%; }
}


/* ============================================================
   v31 Programme strip
   ============================================================ */
.programme-panel {
  position: relative;
  z-index: 4;
  width: min(74vw, 760px);
  margin: 24px auto 0;
  padding: 22px 30px 24px;
  text-align: center;
  border: 1px solid rgba(163,127,100,.13);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.95), rgba(255,250,246,.88) 58%, rgba(247,236,224,.82)),
    var(--cream);
  box-shadow: 0 18px 44px rgba(103,74,58,.10);
  backdrop-filter: blur(14px);
}
.programme-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 19px;
  border: 1px solid rgba(201,139,156,.09);
  pointer-events: none;
}
.programme-ornament {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2px;
  color: var(--rose);
}
.programme-ornament span {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,115,134,.55));
}
.programme-ornament span:last-child {
  background: linear-gradient(90deg, rgba(184,115,134,.55), transparent);
}
.programme-ornament b {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 500;
}
.programme-title {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", "Noto Serif Bengali", serif;
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: .95;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .03em;
  color: #6b4d45;
}
.programme-items {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 26px;
  max-width: 580px;
  margin: 0 auto;
}
.programme-item {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.programme-label {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1;
  font-style: italic;
  font-weight: 600;
  color: var(--pink-deep);
}
.programme-item strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 2.35vw, 1.9rem);
  line-height: 1.08;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.programme-item strong em {
  padding: 0 .12em;
  font-weight: 400;
  color: var(--rose);
}
.programme-separator {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(163,127,100,.28), transparent);
}

@media (max-width: 700px) {
  .programme-panel {
    width: calc(100vw - 30px);
    margin-top: 18px;
    padding: 20px 16px 22px;
    border-radius: 22px;
  }
  .programme-title {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  .programme-items {
    gap: 14px;
  }
  .programme-label {
    font-size: 1.18rem;
  }
  .programme-item strong {
    font-size: 1.35rem;
  }
}

@media (max-width: 390px) {
  .programme-panel {
    width: calc(100vw - 20px);
    padding-left: 11px;
    padding-right: 11px;
  }
  .programme-items {
    gap: 10px;
  }
  .programme-item strong {
    font-size: 1.22rem;
  }
}
