/* Royal Burgundy guest screens based on the supplied five-phone invitation reference.
   Decorative artwork stays behind editable HTML, so every owner can change text and photos. */
body[data-theme="royal-burgundy"] .phone-shell,
body[data-theme="royal-burgundy"] .phone-shell.invitation-phone {
  width:min(100%,420px);
  max-width:420px;
  min-height:0;
  padding:6px;
  background:#161110;
  border:2px solid #b8a98c;
  border-radius:38px;
  box-shadow:0 22px 56px #21000699,inset 0 0 0 2px #37302d;
}
body[data-theme="royal-burgundy"] .phone-shell .notch {
  display:block;
  top:12px;
  width:94px;
  height:19px;
  border:2px solid #252525;
  border-radius:20px;
  background:#090909;
}
body[data-theme="royal-burgundy"] .phone-shell .phone-content,
body[data-theme="royal-burgundy"] .phone-shell.invitation-phone .phone-content {
  min-height:0;
  border:1px solid #d6b96d;
  border-radius:30px;
  background:#fbf3e3 url('/assets/celebration-frame.png') center/cover no-repeat;
  overflow:visible;
}
body[data-theme="royal-burgundy"] .cover-content {
  display:block;
  position:relative;
  min-height:min(100dvh,820px);
  height:auto;
  padding:0 19px 54px;
  background:#fbf3e3 url('/assets/celebration-frame.png') center/cover no-repeat;
  color:#5c0b19;
}
body[data-theme="royal-burgundy"] .cover-photo-wrap {
  position:relative;
  height:310px;
  margin:45px 7px 0;
  border:3px solid #ad823e;
  border-radius:50% 50% 8px 8px;
  overflow:hidden;
  outline:2px solid #f9e9bf;
  box-shadow:0 4px 12px #6b271855;
  background:var(--cream);
}
body[data-theme="royal-burgundy"] .cover-photo-wrap img {object-fit:cover;object-position:center 25%}
body[data-theme="royal-burgundy"] .cover-photo-fade {inset:76% 0 0;background:linear-gradient(transparent,#fff1d8)}
body[data-theme="royal-burgundy"] .cover-copy-mobile {
  margin:-2px 2px 0;
  padding:4px 7px 0;
  color:#5c0b19;
  background:transparent;
}
body[data-theme="royal-burgundy"] .cover-copy-mobile .crown {display:none}
body[data-theme="royal-burgundy"] .cover-copy-mobile .smallcaps {
  display:block;
  margin:0 auto 1px;
  font:9px/1.2 Georgia,serif;
  letter-spacing:.16em;
  color:#64202a;
}
body[data-theme="royal-burgundy"] .cover-copy-mobile h2 {
  margin:0 auto 1px;
  color:var(--red);
  font:400 clamp(50px,12vw,68px)/.9 Georgia,serif;
  letter-spacing:-.06em;
  text-transform:uppercase;
  text-shadow:none;
}
body[data-theme="royal-burgundy"] #nicknameCover::after {content:attr(data-suffix)}
body[data-theme="royal-burgundy"] .cover-copy-mobile .event-title {
  max-width:20ch;
  margin:auto;
  color:var(--red);
  font:400 22px/1 Georgia,serif;
  text-transform:uppercase;
}
body[data-theme="royal-burgundy"] .cover-copy-mobile .full-name {margin:4px 0;color:#64202a;font:11px Georgia,serif;letter-spacing:.28em;text-transform:uppercase}
body[data-theme="royal-burgundy"] .cover-copy-mobile .gold-divider {margin:4px 0}
body[data-theme="royal-burgundy"] .invitation-details-card {
  margin:4px auto 0;
  max-width:none;
  padding:3px 7px 5px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body[data-theme="royal-burgundy"] .invitation-details-card:before,
body[data-theme="royal-burgundy"] .envelope-flap {display:none}
body[data-theme="royal-burgundy"] .invitation-details-card .event-info {margin:2px auto 8px;max-width:240px;gap:5px;text-align:left}
body[data-theme="royal-burgundy"] .invitation-details-card .event-row b {font-size:11px;text-transform:uppercase}
body[data-theme="royal-burgundy"] .invitation-details-card .event-row small {font-size:9px;text-transform:uppercase}
body[data-theme="royal-burgundy"] .invitation-details-card .primary-btn,
body[data-theme="royal-burgundy"] .form-page .primary-btn {
  min-height:46px;
  margin-top:3px;
  border:1px solid #8c1d2b;
  border-radius:999px;
  color:#fff7ec;
  background:linear-gradient(#a3142d,#620514);
  box-shadow:inset 0 1px 0 #de7f8a,0 4px 8px #5c061b33;
  font:16px Georgia,serif;
}
body[data-theme="royal-burgundy"] #openGalleryBtn {margin-top:6px;color:#5f1422;background:#fff5dfcc}
body[data-theme="royal-burgundy"] .cover-content>.balloon-cluster {display:none}
body[data-theme="royal-burgundy"] .form-page {
  min-height:min(100dvh,820px);
  height:auto;
  padding:45px 32px 68px;
  background:#fbf3e3 url('/assets/celebration-frame.png') center/cover no-repeat;
  border:0;
  border-radius:30px;
}
body[data-theme="royal-burgundy"] .form-page:before {display:none}
body[data-theme="royal-burgundy"] .form-page>.balloon-cluster {display:none}
body[data-theme="royal-burgundy"] .form-page .progress,
body[data-theme="royal-burgundy"] .progress-meta {display:none}
body[data-theme="royal-burgundy"] .form-page .crown {margin:2px 0 8px;font-size:26px;color:#a6762d}
body[data-theme="royal-burgundy"] .form-page h2 {
  margin:5px auto 8px;
  max-width:13ch;
  color:#680e20;
  font:400 clamp(30px,8vw,38px)/1.02 Georgia,serif;
  letter-spacing:-.035em;
  text-transform:uppercase;
}
body[data-theme="royal-burgundy"] .form-page h4 {margin:6px auto;color:#5d1c20;font:18px/1.18 Georgia,serif}
body[data-theme="royal-burgundy"] .form-page p {margin:8px auto 16px;color:#593338;font:14px/1.3 Georgia,serif}
body[data-theme="royal-burgundy"] .form-page .step-back {
  min-height:30px;
  margin:0 0 10px;
  padding:3px 9px;
  background:#fff5dfdd;
  font-size:10px;
}
body[data-theme="royal-burgundy"] .royal-scrapbook {
  position:relative;
  left:auto;
  bottom:auto;
  z-index:1;
  width:174px;
  height:174px;
  margin:0 auto 16px;
  background:transparent;
  overflow:visible;
}
body[data-theme="royal-burgundy"] .royal-scrapbook:before,
body[data-theme="royal-burgundy"] .royal-scrapbook:after,
body[data-theme="royal-burgundy"] .photo-ribbon {display:none}
body[data-theme="royal-burgundy"] .royal-scrapbook .circle-photo {
  position:static;
  width:170px;
  height:170px;
  margin:0;
  transform:none;
  border:6px solid #fffaf0;
  border-radius:50%;
  outline:2px solid #b78235;
  box-shadow:0 6px 20px #6a271055;
}
body[data-theme="royal-burgundy"] .royal-paper-panel {
  position:static;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body[data-theme="royal-burgundy"] .royal-paper-panel:before {display:none}
body[data-theme="royal-burgundy"] .entry-label {margin:24px 0 5px;font:10px Georgia,serif;letter-spacing:.13em}
body[data-theme="royal-burgundy"] .royal-paper-panel .input-card {min-height:48px;background:#fffaf3;border:1px solid #e2cba8;border-radius:12px}
body[data-theme="royal-burgundy"] .royal-paper-panel .input-card input {font:13px Georgia,serif}
body[data-theme="royal-burgundy"] .royal-paper-panel .primary-btn {margin-top:14px}
body[data-theme="royal-burgundy"] .writing-paper {
  margin:16px auto 0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
body[data-theme="royal-burgundy"] .writing-greeting {font:italic 15px Georgia,serif;text-align:left}
body[data-theme="royal-burgundy"] #prayerText {
  min-height:240px;
  padding:12px;
  border:1px solid #ddcdae;
  border-radius:16px;
  background:#fffaf0;
  font:italic 15px/1.6 Georgia,serif;
}
body[data-theme="royal-burgundy"] .writing-paper .primary-btn {margin-top:10px}
body[data-theme="royal-burgundy"] .circle-photo.small {width:116px;height:116px;margin:20px auto 0}
body[data-theme="royal-burgundy"] .verse-page .verse-results {max-height:322px}
body[data-theme="royal-burgundy"] .verse-page .verse-item {padding:8px 10px;background:#fffaf1;border-radius:10px}
body[data-theme="royal-burgundy"] .verse-page .verse-item p {margin:2px 0;font:11px/1.15 Georgia,serif}
body[data-theme="royal-burgundy"] .selfie-page .selfie-circle {width:155px;height:155px;margin:12px auto 13px;border:3px dashed #c39960;outline:0;background:#fff6e8}
body[data-theme="royal-burgundy"] .selfie-page .role-option {min-height:39px;margin:5px 0;border-radius:99px;background:#fff8ec}
body[data-theme="royal-burgundy"] .selfie-page .role-option.active {background:linear-gradient(#9b1830,#650719)}
body[data-theme="royal-burgundy"] .selfie-page .accept-row {
  margin:8px auto 9px;
  padding:7px 10px;
  border:1px solid #d6bd91;
  border-radius:9px;
  background:#fff8ecf2;
  color:#4a2025;
  font:12px/1.25 Georgia,serif;
  text-align:left;
}
body[data-theme="royal-burgundy"] .done-page {justify-content:center}
body[data-theme="royal-burgundy"] .done-card {background:#fff7e8}
body[data-theme="royal-burgundy"] .toy-car {display:none}
body[data-theme="royal-burgundy"] .flow-wrap {padding:35px 12px}
@media(max-width:700px) {
  body[data-theme="royal-burgundy"] .desktop-stage {padding:0}
  body[data-theme="royal-burgundy"] .flow-wrap {padding:0}
  body[data-theme="royal-burgundy"] .phone-shell,
  body[data-theme="royal-burgundy"] .phone-shell.invitation-phone {width:min(100%,420px);max-width:420px;min-height:0;padding:0;border:0;border-radius:0;box-shadow:none}
  body[data-theme="royal-burgundy"] .phone-shell .notch {display:none}
  body[data-theme="royal-burgundy"] .phone-shell .phone-content,
  body[data-theme="royal-burgundy"] .phone-shell.invitation-phone .phone-content {min-height:0;border:0;border-radius:0;overflow:visible}
  body[data-theme="royal-burgundy"] .cover-content {min-height:100dvh;padding:18px 15px calc(28px + env(safe-area-inset-bottom))}
  body[data-theme="royal-burgundy"] .cover-photo-wrap {height:clamp(190px,38dvh,300px);margin:18px 5px 0}
  body[data-theme="royal-burgundy"] .form-page {min-height:100dvh;padding:28px 27px calc(42px + env(safe-area-inset-bottom))}
  body[data-theme="royal-burgundy"] .royal-paper-panel {margin:0;padding:0}
}

/* Keep the editorial panel readable beside the real invitation at tablet and
   narrow desktop widths. The right card is intentionally removed here, but
   the left copy still gets a full track instead of being squeezed into the
   three-column desktop layout. */
@media (min-width:701px) and (max-width:1150px) {
  body[data-theme="royal-burgundy"] .desktop-stage {
    width:100%;
    grid-template-columns:minmax(240px,1fr) minmax(340px,400px);
    gap:24px;
    padding:42px 20px 30px;
  }
  body[data-theme="royal-burgundy"] .desktop-right {display:none}
  body[data-theme="royal-burgundy"] .desktop-copy h1 {
    font-size:clamp(38px,5vw,54px);
    white-space:nowrap;
  }
  body[data-theme="royal-burgundy"] .desktop-copy .script {
    font-size:clamp(36px,4.5vw,58px);
    overflow-wrap:normal;
  }
  body[data-theme="royal-burgundy"] .phone-shell.invitation-phone {
    width:100%;
    max-width:400px;
    justify-self:center;
  }
}

@media(max-width:380px) {
  body[data-theme="royal-burgundy"] .cover-copy-mobile h2 {font-size:48px}
  body[data-theme="royal-burgundy"] .cover-copy-mobile .event-title {font-size:18px}
  body[data-theme="royal-burgundy"] .invitation-details-card {padding:2px 5px}
  body[data-theme="royal-burgundy"] .form-page {padding-inline:23px}
  body[data-theme="royal-burgundy"] .royal-scrapbook .circle-photo {width:154px;height:154px}
}

/* The invitation becomes the page on phones; every step grows with its content. */
@media(max-width:750px) {
  body[data-theme^="kislap-"] .desktop-stage {padding:0}
  body[data-theme^="kislap-"] .desktop-stage .phone-shell.invitation-phone,
  body[data-theme^="kislap-"] .flow-wrap .phone-shell {width:min(100%,420px);max-width:420px;min-height:0;padding:0;border:0;border-radius:0;box-shadow:none}
  body[data-theme^="kislap-"] .desktop-stage .phone-shell.invitation-phone .phone-content,
  body[data-theme^="kislap-"] .flow-wrap .phone-shell .phone-content {min-height:0;border:0;border-radius:0;overflow:visible}
  body[data-theme^="kislap-"] .desktop-stage .cover-content {min-height:100dvh;height:auto;padding:clamp(20px,4dvh,36px) 18px calc(30px + env(safe-area-inset-bottom))}
  body[data-theme^="kislap-"] .flow-wrap {min-height:100dvh;padding:0}
  body[data-theme^="kislap-"] .flow-wrap .form-page {min-height:100dvh;height:auto;padding:clamp(28px,5dvh,45px) 22px calc(42px + env(safe-area-inset-bottom));overflow:visible}
  body[data-theme^="kislap-"] .desktop-stage .phone-shell.invitation-phone .notch,
  body[data-theme^="kislap-"] .flow-wrap .phone-shell .notch {display:none}
  body[data-theme^="kislap-"] .cover-copy-mobile h2,
  body[data-theme="royal-burgundy"] .cover-copy-mobile h2 {overflow-wrap:anywhere}
  body[data-theme^="kislap-"] .form-page .primary-btn,
  body[data-theme="royal-burgundy"] .form-page .primary-btn {min-height:48px}
}
@media(max-width:700px) {
  body[data-theme="royal-burgundy"] .desktop-stage .phone-shell.invitation-phone,
  body[data-theme="royal-burgundy"] .flow-wrap .phone-shell {width:min(100%,420px);max-width:420px;min-height:0;padding:0;border:0;border-radius:0;box-shadow:none}
  body[data-theme="royal-burgundy"] .desktop-stage .phone-shell.invitation-phone .phone-content,
  body[data-theme="royal-burgundy"] .flow-wrap .phone-shell .phone-content {min-height:0;border:0;border-radius:0;overflow:visible}
}
