:root {
  --ink: #161823;
  --muted: #73747b;
  --faint: #a3a4a8;
  --line: #ebebed;
  --soft: #f1f1f2;
  --soft-hover: #e4e4e7;
  --brand: #e54153;
  --brand-soft: #fff1f3;
  --wine: #511419;
  --wine-deep: #590310;
  --cream: #ece4d8;
  --paper: #f6f1e8;
  --gap: 16px;
  --card-w: 430px;
  --serif: BaskervilleBook, "Libre Baskerville", Georgia, serif;
  --display: "Viaoda Libre", "Times New Roman", serif;
  --script: "The Nautigal", "Great Vibes", cursive;
  --heading: "Times New Normal", "Times New Roman", serif;
  --cormorant: "Cormorant Garamond Gnosis", "Cormorant Garamond", serif;
  --thanks: "Monsieur La Doulaise", cursive;
  --lora: "Lora Regular", Lora, serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #fff; color: var(--ink); font-family: var(--ui); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
.envelope img, .card-play img { max-width: none; }

.zl-feed {
  display: grid;
  grid-template-columns: minmax(210px, 252px) minmax(0, 1fr) minmax(300px, 400px);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
}

.zl-feed-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px 20px 18px;
  overflow-y: auto;
}
.zl-feed-brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; width: fit-content; }
.zl-feed-brand-mark { height: 34px; width: auto; }
.zl-feed-brand-wordmark { height: 20px; width: auto; }
.zl-feed-info { margin-top: 36px; }
.zl-feed-info-cover {
  display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center 18%;
  border-radius: 12px; background: var(--soft); box-shadow: 0 0 0 1px rgba(22,24,35,.06);
}
.zl-feed-info-title { margin: 16px 0 0; font-size: 18px; font-weight: 700; line-height: 1.35; }
.zl-feed-info-desc { margin: 10px 0 0; color: #45464d; font-size: 14px; line-height: 1.55; }
.zl-feed-info-desc p { margin: 0; }
.zl-feed-info-extra { display: flex; margin-top: 14px; }
.zl-feed-promo { margin-top: 28px; padding: 16px; border-radius: 14px; background: var(--brand-soft); }
.zl-feed-promo p { margin: 0 0 12px; color: #4a2c34; font-size: 13.5px; line-height: 1.5; }
.zl-feed-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border: 0; border-radius: 19px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
}
.zl-feed-pill:hover { filter: brightness(.94); }
.zl-feed-pill--soft { height: 34px; padding: 0 14px; background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 600; }
.zl-feed-pill--soft:hover { background: var(--soft-hover); filter: none; }
.zl-feed-pill--soft.is-saved { background: var(--brand-soft); color: var(--brand); }
.zl-feed-pill--soft.is-saved svg path { fill: currentColor; }
.zl-feed-side-foot { margin: auto 0 0; padding-top: 24px; color: var(--faint); font-size: 12px; }

.zl-feed-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-width: 0; min-height: 0; padding: var(--gap) 68px var(--gap) 12px;
}
.zl-feed-card-row { display: flex; align-items: flex-end; justify-content: center; gap: 16px; width: min(100%, 540px); height: calc(100dvh - 32px); }
.zl-feed-card {
  position: relative; flex: 1 1 auto; width: auto; max-width: 460px; min-width: 0; height: 100%; overflow: hidden; border-radius: 16px;
  background: #fff; box-shadow: 0 0 0 1px rgba(22,24,35,.06), 0 12px 36px rgba(22,24,35,.12);
}
.card-scroll { height: 100%; overflow: auto; scroll-behavior: smooth; }
.card-scroll::-webkit-scrollbar { width: 0; }
.card-play, .card-music {
  position: absolute; z-index: 5; width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center; padding: 0;
}
.card-play { top: 12px; left: 12px; background: transparent; }
.card-play img { width: 40px; height: 40px; object-fit: contain; }
.card-play.is-playing img { filter: grayscale(1) brightness(1.4); }
.card-music { top: 14px; right: 14px; background: rgba(90, 18, 28, .82); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.card-music[aria-pressed="true"] { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); } }

.paper { position: relative; background: var(--paper) url("assets/castle.webp") center bottom / 130% auto no-repeat; color: var(--wine); text-align: center; }
.burgundy {
  position: relative; margin: 18px 16px; padding: 28px 18px 36px; background: var(--wine); color: var(--cream);
  text-align: center; overflow: hidden;
}
.eyebrow {
  margin: 8px 0 18px; font-family: var(--heading); font-weight: 700; font-size: 18px;
  letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow.save { font-family: var(--cormorant); font-weight: 500; font-style: italic; letter-spacing: .06em; font-size: 22px; color: var(--wine-deep); text-transform: uppercase; }
.eyebrow.light { color: var(--cream); }
.eyebrow.wine { color: var(--wine-deep); }
.couple { margin: 0; font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1.15; color: var(--wine); }
.couple.light { color: var(--cream); font-size: 46px; }
.amp { margin: -8px 0; font-family: var(--script); font-size: 54px; line-height: 1; }
.amp-faint { color: rgba(81,20,25,.28); font-size: 86px; margin: -28px 0 -18px; }
.amp-light { color: var(--cream); margin: -6px 0 0; }
.names-block { padding: 10px 20px 28px; }
.body-serif { margin: 16px 0 0; font-family: var(--serif); font-size: 15px; line-height: 1.55; letter-spacing: .01em; }
.body-serif.caps { text-transform: uppercase; letter-spacing: .04em; }
.lunar { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 14px; opacity: .95; }
.parents { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 8px; align-items: start; margin-top: 8px; }
.parents p { margin: 0; font-family: var(--serif); font-size: 14.5px; line-height: 1.55; }
.parents .muted { color: rgba(236,228,216,.7); }
.parents .strong { font-weight: 700; }
.parents .place { margin-top: 6px; font-size: 13px; }
.parents-line { width: 1px; height: 72px; margin: 8px auto 0; background: rgba(236,228,216,.55); }
.date-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--serif); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.date-row strong { font-size: 42px; font-weight: 400; line-height: 1; text-transform: none; }

.hero { padding: 22px 0 4px; }
.envelope { position: relative; height: auto; aspect-ratio: 5 / 5.6; margin-top: 4px; }
.env-back, .env-front, .portrait, .flowers { position: absolute; }
.env-back { width: 74%; left: 13%; top: 16%; z-index: 1; }
.portrait {
  width: 56%; left: 28%; top: 1%; z-index: 2; padding: 1.6% 1.6% 3.4%; background: #fff;
  box-shadow: 0 10px 24px rgba(60,20,24,.18); transform: rotate(-1.5deg); object-fit: cover; height: 54%;
}
.env-front { width: 76%; left: 12%; top: 42%; z-index: 3; filter: drop-shadow(0 10px 16px rgba(60,20,24,.2)); }
.flowers { width: 48%; height: auto; z-index: 4; pointer-events: none; }
.flowers-left { left: -6%; top: 2%; }
.flowers-right { right: -8%; top: 10%; width: 38%; transform: scaleX(-1); }
.party-flower { top: auto; bottom: 6%; left: -10%; width: 36%; opacity: .95; }
.built {
  position: absolute; right: 8px; bottom: 90px; margin: 0; writing-mode: vertical-rl;
  font-family: var(--serif); font-size: 11px; letter-spacing: .14em; color: rgba(81,20,25,.45);
}

.gallery { position: relative; background: #efe8df; }
.gallery img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 3 / 3.7; object-fit: cover; object-position: center 18%; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 78px; display: flex; justify-content: center; gap: 6px; }
.gallery-dots button { width: 7px; height: 7px; border: 0; border-radius: 50%; padding: 0; background: rgba(255,255,255,.55); }
.gallery-dots button.is-on { background: #fff; }
.party { margin-top: -70px; position: relative; z-index: 1; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 26px 12px 0; }
.countdown div { border: 1px solid rgba(236,228,216,.35); padding: 8px 0 10px; }
.countdown b { display: block; font-family: var(--display); font-size: 28px; font-weight: 400; line-height: 1.1; }
.countdown span { font-family: var(--serif); font-size: 13px; opacity: .85; }
.calendar { margin: 22px 18px 0; padding: 10px 8px 12px; background: rgba(236,228,216,.09); }
.cal-head, .cal-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head span { font-family: var(--serif); font-size: 11px; letter-spacing: .04em; opacity: .7; padding: 4px 0; }
.cal-row span { font-family: var(--serif); font-size: 13px; line-height: 28px; }
.cal-row .day-29 { color: var(--wine); background: var(--cream); border-radius: 50%; width: 26px; height: 26px; line-height: 26px; margin: 1px auto; }
.cal-actions { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.cal-menu { position: relative; }
.cal-btn { height: 36px; padding: 0 18px; border: 0; border-radius: 4px; background: var(--cream); color: var(--wine); font-family: var(--serif); font-size: 14px; }
.cal-drop { display: none; position: absolute; left: 0; top: calc(100% + 6px); min-width: 160px; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.16); overflow: hidden; z-index: 3; text-align: left; }
.cal-drop.is-open { display: block; }
.cal-drop button { display: block; width: 100%; padding: 10px 12px; border: 0; background: #fff; color: var(--ink); font-size: 13px; text-align: left; }
.cal-drop button:hover { background: var(--soft); }

.venue { padding: 36px 20px 28px; }
.address { margin: 0 0 16px; font-family: var(--serif); font-size: 15px; }
.map-wrap { position: relative; height: 210px; margin: 0 16px; overflow: hidden; background: #e7eef2; }
.map-wrap img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.map-open { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); border: 0; background: #fff; color: #222; font-size: 12px; padding: 4px 8px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.dress { padding: 28px 20px 36px; }
.swatches { display: flex; justify-content: center; gap: 28px; }
.swatches span { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.35), 0 6px 16px rgba(81,20,25,.12); }

.rsvp-wrap { padding: 28px 18px 10px; background-image: none; }
.rsvp-form { background: #fff; margin: 0 auto; padding: 22px 22px 18px; text-align: left; box-shadow: 0 8px 28px rgba(81,20,25,.08); }
.rsvp-form h3 { margin: 0 0 14px; text-align: center; color: var(--wine); font-family: var(--serif); font-size: 22px; font-weight: 400; }
.field, fieldset { display: block; margin: 0 0 12px; border: 0; padding: 0; }
.field span, legend { display: block; margin-bottom: 6px; color: #3a3a3a; font-size: 14px; }
.field input, .field select { width: 100%; height: 36px; border: 1px solid #d9d9d9; border-radius: 6px; padding: 0 10px; background: #fff; }
.radio { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; color: #333; }
.radio input { accent-color: var(--brand); }
.rsvp-submit { width: 100%; height: 38px; margin-top: 6px; border: 0; border-radius: 2px; background: var(--wine); color: #fff; font-size: 15px; }
.rsvp-done { margin: 12px 0 0; text-align: center; color: var(--wine); font-size: 14px; }

.gift { padding: 34px 20px 20px; }
.heart-gift { border: 0; background: none; padding: 0; }
.heart-gift img { width: 220px; height: auto; }
.gift-box { margin: 8px auto 10px; max-width: 260px; padding: 14px; background: #fff; color: var(--wine); font-family: var(--serif); }
.gift-box p { margin: 0 0 4px; }
.gift-name { font-weight: 700; letter-spacing: .06em; }
.gift-num { font-size: 18px; letter-spacing: .04em; }
.gift-box button { margin-top: 8px; border: 0; background: var(--wine); color: #fff; border-radius: 16px; height: 32px; padding: 0 14px; font-size: 13px; }

.thanks { position: relative; min-height: 420px; color: #fff; }
.thanks img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 4.2; max-width: none; object-fit: cover; object-position: center 30%; }
.thanks-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 28px 28px; background: linear-gradient(transparent, rgba(20,8,10,.72) 42%, rgba(20,8,10,.82)); }
.thanks .script { margin: 0 0 8px; font-family: var(--thanks); font-size: 40px; }
.thanks-copy p:last-child { margin: 0; font-family: var(--lora); font-size: 14px; line-height: 1.55; }
.card-foot { margin: 0; padding: 14px 16px 22px; text-align: center; background: var(--wine); color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 14px; }

.zl-feed-rail { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 12px; width: 64px; }
.zl-feed-rail-avatar { width: 48px; height: 48px; margin-bottom: 6px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; object-position: center 20%; box-shadow: 0 2px 8px rgba(22,24,35,.14); }
.zl-feed-rail-action { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 48px; padding: 0; border: 0; background: none; color: inherit; }
.zl-feed-rail-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--soft); }
.zl-feed-rail-action:hover .zl-feed-rail-icon, .zl-feed-rail-action[aria-pressed="true"] .zl-feed-rail-icon { background: var(--soft-hover); color: var(--brand); }
.zl-feed-rail-action[aria-pressed="true"] svg path { fill: currentColor; }
.zl-feed-rail-label { max-width: 64px; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; }
.zl-feed-nav { position: absolute; top: 50%; right: 14px; display: flex; flex-direction: column; gap: 16px; transform: translateY(-50%); }
.panel-close { display: none; }
.sheet-backdrop { display: none; }
.zl-feed-nav-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); }
.zl-feed-nav-btn:hover { background: var(--soft-hover); }

.zl-feed-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--line); }
.zl-feed-tabs { display: flex; margin: 0 10px; border-bottom: 1px solid var(--line); }
.zl-feed-tab { flex: 1; height: 46px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--faint); font-size: 15px; font-weight: 600; }
.zl-feed-tab[aria-selected="true"] { border-bottom-color: var(--ink); color: var(--ink); }
.zl-feed-panel-body { flex: 1; min-height: 0; padding: 10px 15px 16px; overflow-y: auto; }
.zl-feed-count { margin: 6px 0 16px; color: var(--muted); font-size: 14px; text-align: center; }
.zl-feed-wishes { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.zl-feed-wish { display: flex; gap: 12px; }
.zl-feed-wish-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; font-weight: 700; flex: none; }
.zl-feed-wish-name { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.zl-feed-wish-text { margin: 3px 0 0; font-size: 15px; line-height: 1.45; }
.zl-feed-wish-time { margin: 5px 0 0; color: var(--faint); font-size: 12px; }
.zl-feed-composer { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px 12px 18px; border-top: 1px solid var(--line); }
.zl-feed-composer-name, .zl-feed-composer-input { width: 100%; border: 1px solid transparent; background: var(--soft); color: var(--ink); outline: none; }
.zl-feed-composer-name { height: 38px; padding: 0 16px; border-radius: 19px; font-size: 14px; }
.zl-feed-composer-row { display: flex; align-items: flex-end; gap: 10px; }
.zl-feed-composer-input { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 18px; border-radius: 22px; font-size: 15px; line-height: 1.4; resize: none; }
.zl-feed-composer-name:focus, .zl-feed-composer-input:focus { border-color: #f4b8c1; background: #fff; }
.zl-feed-composer-send { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--brand); flex: none; }
.phone-pane { display: grid; place-items: center; }
.phone-mock { width: 220px; padding: 18px 16px 20px; border: 10px solid #161823; border-radius: 28px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5; }
.phone-bar { width: 64px; height: 6px; margin: 0 auto 14px; border-radius: 4px; background: #161823; }
.phone-mock code { display: block; margin-top: 10px; color: var(--ink); font-size: 12px; word-break: break-all; }

.gate {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center;
  background: radial-gradient(ellipse at center, #8d2430 0%, #6d1520 42%, #4a0d16 100%);
}
.gate.is-gone { visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .45s ease, visibility .45s; }
.gate-card {
  width: min(380px, calc(100vw - 40px)); padding: 36px 28px 32px; border-radius: 18px;
  background: #fbf7f2; text-align: center; color: var(--wine);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.gate-heart {
  width: 64px; height: 64px; margin: -58px auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #a33a48, #6e1824 70%);
  box-shadow: 0 0 0 8px rgba(255,255,255,.35), 0 10px 24px rgba(90,16,24,.35);
}
.gate-heart svg { width: 28px; height: 28px; }
.gate-card h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1.05; }
.gate-card h1 span { font-family: var(--script); font-size: 36px; }
.gate-rule { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 16px; color: var(--wine); }
.gate-rule span { width: 54px; height: 1px; background: rgba(81,20,25,.45); }
.gate-rule i { font-style: normal; font-size: 12px; }
.gate-date, .gate-invite, .gate-sub { font-family: var(--serif); }
.gate-date { margin: 0; font-size: 16px; }
.gate-invite { margin: 18px 0 10px; font-size: 16px; }
.gate-who { display: inline-block; margin: 0; padding: 6px 16px; border-radius: 999px; background: #f3e6e4; color: var(--wine); font-family: var(--serif); font-weight: 700; font-size: 16px; }
.gate-sub { margin: 12px 0 18px; font-size: 14px; }
.gate-open { height: 42px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--wine); color: #fff; font-size: 16px; font-weight: 650; box-shadow: 0 8px 16px rgba(81,20,25,.25); }
.gate-open:disabled { opacity: .7; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(12px);
  background: #161823; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: .2s ease; z-index: 40;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1199px) {
  .zl-feed { grid-template-columns: minmax(0, 1fr) minmax(280px, 34vw); grid-template-rows: auto minmax(0, 1fr); }
  .zl-feed-side {
    grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px;
    padding: 10px 16px; border-bottom: 1px solid var(--line); overflow: hidden;
  }
  .zl-feed-info { margin-top: 0; display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
  .zl-feed-info-cover { width: 92px; height: 56px; aspect-ratio: auto; flex: none; }
  .zl-feed-info-title { margin: 0; white-space: nowrap; }
  .zl-feed-info-desc, .zl-feed-side-foot { display: none; }
  .zl-feed-info-extra { margin-top: 0; }
  .zl-feed-promo { margin: 0; padding: 0; background: transparent; }
  .zl-feed-promo p { display: none; }
  .zl-feed-stage { grid-row: 2; padding: 12px 62px 12px 12px; }
  .zl-feed-panel { grid-row: 2; }
  .zl-feed-card-row { height: 100%; }
  .zl-feed-nav { right: 8px; }
}

@media (max-width: 899px) {
  .zl-feed { grid-template-columns: 1fr; }
  .zl-feed-stage { padding: 12px 16px 16px; }
  .zl-feed-nav { display: none; }
  .zl-feed-card-row { width: min(100%, 520px); }
  .zl-feed-panel {
    position: fixed; z-index: 25; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
    background: #fff; border-left: 0; transform: translateX(105%);
    transition: transform .28s ease; box-shadow: -12px 0 40px rgba(22, 24, 35, .16);
  }
  .zl-feed-panel.is-open { transform: none; }
  .panel-close {
    display: grid; place-items: center; position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 20px;
  }
  .sheet-backdrop { position: fixed; inset: 0; z-index: 24; background: rgba(22, 24, 35, .4); }
  .sheet-backdrop[hidden] { display: none; }
}

@media (max-width: 767px) {
  .zl-feed { display: block; height: 100dvh; }
  .zl-feed-side { display: none; }
  .zl-feed-stage { height: 100dvh; padding: 0; }
  .zl-feed-card-row { width: 100%; height: 100%; max-width: none; gap: 0; align-items: stretch; }
  .zl-feed-card { max-width: none; height: 100%; border-radius: 0; box-shadow: none; }
  .zl-feed-rail {
    position: fixed; z-index: 12; left: 0; right: 0; bottom: 0; width: auto;
    flex-direction: row; justify-content: space-around; gap: 0;
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .zl-feed-rail-avatar, #phoneBtn { display: none; }
  .zl-feed-rail-action { min-width: 0; flex: 1; }
  .zl-feed-rail-icon { width: 40px; height: 40px; }
  .zl-feed-rail-label { font-size: 10px; max-width: none; }
  .card-scroll { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .card-play { top: calc(10px + env(safe-area-inset-top)); }
  .card-music { top: calc(12px + env(safe-area-inset-top)); }
  .zl-feed-panel {
    top: auto; left: 0; right: 0; width: 100%; height: min(78dvh, 640px);
    border-radius: 18px 18px 0 0; transform: translateY(110%);
  }
  .zl-feed-panel.is-open { transform: none; }
  .couple { font-size: clamp(34px, 9vw, 46px); }
  .couple.light { font-size: clamp(34px, 9vw, 44px); }
  .gate { padding: 36px 16px; overflow: auto; }
  .gate-card { width: min(360px, 100%); }
  .gate-heart { margin-top: 0; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .built { display: none; }
}

.is-hidden { display: none !important; }
#phonePane[hidden], #wishForm[hidden] { display: none !important; }
#phonePane, #wishForm { display: none; }
#phonePane:not([hidden]) { display: grid; }
#wishForm:not([hidden]) { display: flex; }
