/* Shared by every design's page: rules the prototype did not need. */
.msg { white-space: pre-line; }

/* The owner's preview: a note on the cover, then a small tag once the doors open. */
.preview-note {
  position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2;
  margin: 0; width: max-content; max-width: calc(100vw - 24px); padding: 8px 14px; border-radius: 999px;
  background: rgba(43, 26, 18, .88); color: #fff3d6; font: 600 .8rem/1.4 var(--font-body); text-align: center;
}
.preview-chip {
  position: fixed; top: max(12px, env(safe-area-inset-top)); left: 12px; z-index: 40; margin: 0;
  padding: 7px 12px; border-radius: 999px; background: rgba(43, 26, 18, .82); color: #fff3d6;
  font: 700 .78rem/1.2 var(--font-body);
}

/* Inside the Look screen the preview is small: only the scene, filling the frame, so the couple's
   colours are what the eye lands on. */
.embed .langbar, .embed .content, .embed .stage-text, .embed .stage-actions { display: none; }
.embed .stage { min-height: 0; height: 100vh; }
.embed .stage::after { height: 30px; }
.embed .scene { bottom: 24px; height: calc(100% - 30px); }

/* The photo stack shows four cards; the rest wait underneath until a tap brings them round. */
.pol:not([data-pos="0"]):not([data-pos="1"]):not([data-pos="2"]):not([data-pos="3"]) { transform: rotate(9deg) translate(8px, 16px) scale(.91); z-index: 0; visibility: hidden; }

/* A family preview link: the word PREVIEW across the page, and a "please check" card before the rest. */
.wm { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-content: space-around; justify-items: center; }
.wm span { transform: rotate(-24deg); white-space: nowrap; user-select: none; font: 800 clamp(1.5rem, 8vw, 2.8rem)/1 var(--font-body); letter-spacing: .16em; color: rgba(122, 22, 38, .13); -webkit-text-stroke: 1px rgba(255, 243, 214, .25); }
.wm span[lang="ta"] { letter-spacing: 0; font-size: clamp(1.15rem, 6vw, 2.2rem); }
.family { background: #fff3d6; border-bottom: 1px solid var(--line); text-align: center; padding-block: 44px; }
.family .in { display: grid; gap: 14px; justify-items: center; }
.family .sec-title { margin-bottom: 0; font-size: 1.6rem; }
.family-check { font-weight: 600; }
.family-small { font-size: .9rem; color: var(--muted); }
.family-actions { display: grid; gap: 10px; width: 100%; max-width: 360px; margin-top: 6px; }
.family-actions .btn { width: 100%; }
.preview-chip { max-width: calc(100vw - 190px); }

/* The reply form (G2), what it becomes after sending (G3), and the wishes the family chose to show. */
.rsvp { background: var(--paper-2); }
.rsvp-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px; }
.rsvp-form { display: grid; gap: 10px; }
.rsvp-by { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 6px; }
.rsvp-label { display: block; font: 700 .92rem/1.4 var(--font-body); color: var(--ink); margin-top: 8px; padding: 0; }
.rsvp-form input[type="text"], .rsvp-form input[type="tel"], .rsvp-form textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper);
  font: 500 1rem/1.4 var(--font-body); color: var(--ink);
}
.rsvp-form textarea { resize: vertical; min-height: 84px; }
.rsvp-form input:focus-visible, .rsvp-form textarea:focus-visible, .rsvp-choice:focus-visible, .rsvp-step:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.rsvp-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.rsvp-choice {
  min-height: 52px; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer;
  font: 700 1rem/1.25 var(--font-display); color: var(--ink);
}
.rsvp-choice[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff3d6; }
.rsvp-more { display: grid; gap: 10px; }
.rsvp-fns { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.rsvp-fn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); font: 600 .98rem/1.35 var(--font-body); cursor: pointer; }
.rsvp-fn input { width: 22px; height: 22px; flex: none; accent-color: var(--maroon); }
.rsvp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.rsvp-row .rsvp-label { margin-top: 0; }
.rsvp-count { display: flex; align-items: center; gap: 6px; }
.rsvp-step { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); font: 700 1.35rem/1 var(--font-body); color: var(--maroon); cursor: pointer; }
.rsvp-step:disabled { opacity: .35; cursor: default; }
.rsvp-n { min-width: 2.4ch; text-align: center; font: 800 1.35rem/1 var(--font-body); color: var(--ink); }
.rsvp-privacy, .rsvp-small { font-size: .84rem; line-height: 1.55; color: var(--muted); }
.rsvp-privacy { margin-top: 8px; }
.rsvp-error { padding: 10px 14px; border-radius: 12px; background: #fde8e6; color: #8a1c12; font: 600 .92rem/1.45 var(--font-body); }
.rsvp-actions { display: grid; gap: 8px; margin-top: 6px; }
.rsvp-actions .btn { width: 100%; }
.rsvp-send:disabled { opacity: .7; }
.rsvp-closed { text-align: center; color: var(--muted); }
.rsvp-done { display: grid; gap: 14px; text-align: center; }
.rsvp-thanks { font: 700 1.6rem/1.2 var(--font-display); color: var(--maroon); outline: none; overflow-wrap: anywhere; }
.rsvp-told { overflow-wrap: anywhere; }
.rsvp-mine { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.rsvp-mine small, .rsvp-date small { display: block; font-size: .8rem; color: var(--muted); }
.rsvp-mine b { font: 700 1.05rem/1.3 var(--font-body); }
.rsvp-mine .btn, .rsvp-date .btn { padding: 9px 16px; font-size: .9rem; flex: none; }
.rsvp-dates { display: grid; gap: 8px; text-align: left; }
.rsvp-dates h4 { margin: 4px 0 0; font: 700 1rem/1.3 var(--font-display); color: var(--maroon); text-align: center; }
.rsvp-date { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); }
.wish-list { display: grid; gap: 12px; }
.wish { margin: 0; padding: 18px 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: grid; gap: 8px; }
.wish blockquote { margin: 0; font: 500 1rem/1.6 var(--font-body); color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.wish blockquote::before { content: "\201C"; } .wish blockquote::after { content: "\201D"; }
.wish figcaption { font: 700 .86rem/1.3 var(--font-body); color: var(--maroon); overflow-wrap: anywhere; }

/* The two links at the foot of a live invitation. */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .86rem; }
.foot-links a { color: #fff3d6; opacity: .85; padding: 6px 2px; }

/* The opening line. In a script of its own (Arabic, Devanagari, Gurmukhi) it wears that script's face;
   left out, it takes no room. */
[data-script="ar"] { font-family: "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", serif !important; font-size: 1.25em; line-height: 1.7; letter-spacing: 0 !important; text-transform: none !important; }
[data-script="hi"] { font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", "Mangal", sans-serif !important; font-size: 1.1em; line-height: 1.5; letter-spacing: 0 !important; text-transform: none !important; }
[data-script="pa"] { font-family: "Noto Sans Gurmukhi", "Gurmukhi MN", "Raavi", sans-serif !important; font-size: 1.1em; line-height: 1.5; letter-spacing: 0 !important; text-transform: none !important; }
#c-invocation:empty, #s-invocation:empty, #c-invoke:empty, [data-t="invocation"]:empty { display: none; }
