/* Bundled original S-Core Dream OTFs, scoped to the Save the Date main screen only. */
@font-face{
  font-family:"SCoreDreamWedding";
  src:url("../assets/fonts/SCDream3.otf") format("opentype");
  font-style:normal;
  font-weight:300;
  font-display:swap;
}
@font-face{
  font-family:"SCoreDreamWedding";
  src:url("../assets/fonts/SCDream4.otf") format("opentype");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
/* Save the Date — opt-in when both user-made transparent WebP assets are available.
   Older floral card remains as a safe fallback for missing/failed images.
   This sheet affects the invite tab only. */
.app.opening-assets-pending #panel-invite .letter {visibility:hidden}
#panel-invite .save-opening {display:none}
.app.has-save-opening #panel-invite .letter {display:none}
.app.has-save-opening #panel-invite .save-opening {
  position:relative;
  display:block;
  flex:none;
  isolation:isolate;
  /* A fixed-ratio artboard keeps ribbon/logo/date/names aligned on all phones.
     Use stable small-viewport units and reserve enough space for navigation. */
  width:min(87vw,405px,calc((100svh - 230px)*.75));
  height:auto;
  aspect-ratio:1086/1448;
  max-height:calc(100% - 15px);
  /* Same ribbon top gap even on compact or narrow displays. */
  margin:clamp(46px,5.5svh,60px) auto 0;
  padding:0;
  overflow:visible;
  background:none;
  border:0;
  box-shadow:none;
  text-align:center;
}
#panel-invite .save-opening__sr-only {
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
#panel-invite .save-opening__frame {
  display:block;
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
}
/* Optional pastel watercolor wash replaces the ornamental ribbon only
   after the uploaded asset successfully loads. The brush and its positioning
   remain unchanged and always appear above the wash. */
#panel-invite .save-opening__watercolor {
  display:none;
  position:absolute;
  z-index:0;
  /* Let the wash sit behind the lettering rather than read as a round sticker.
     Larger soft feather + lower pigment density blends into the forest. */
  top:4%;
  left:50%;
  width:79%;
  height:auto;
  max-width:none;
  transform:translateX(-50%);
  object-fit:contain;
  opacity:.34;
  filter:saturate(1.35) blur(.8px);
  -webkit-mask-image:radial-gradient(ellipse 78% 76% at 50% 46%,#000 38%,rgba(0,0,0,.78) 57%,transparent 100%);
  mask-image:radial-gradient(ellipse 78% 76% at 50% 46%,#000 38%,rgba(0,0,0,.78) 57%,transparent 100%);
  pointer-events:none;
  user-select:none;
}
.app.has-watercolor-opening #panel-invite .save-opening__frame {display:none}
.app.has-watercolor-opening #panel-invite .save-opening__watercolor {
  display:block;
  animation:save-watercolor-fade 1.4s ease-out both;
}
@keyframes save-watercolor-fade {
  from {opacity:0}
  to {opacity:.34}
}
#panel-invite .save-opening__brush {
  position:absolute;
  z-index:1;
  top:8%;
  left:50%;
  transform:translateX(-50%);
  width:53%;
  height:auto;
  max-width:none;
  pointer-events:none;
  user-select:none;
}
#panel-invite .save-opening__details {
  position:absolute;
  z-index:2;
  top:45%;
  left:10%;
  width:80%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:clamp(4px,.75dvh,8px);
  color:#FFFDF7;
  font-family:"SCoreDreamWedding","Cafe24Gowoonbam","Malgun Gothic",sans-serif;
  text-shadow:0 1px 4px rgba(28,48,45,.44);
  font-weight:400;
}
#panel-invite .save-opening__details p {margin:0;line-height:1.35}
#panel-invite .save-opening__when {
  font-size:clamp(16px,4.5vw,21px);
  font-weight:300;
  letter-spacing:.01em;
  white-space:nowrap;
}
#panel-invite .save-opening__where {
  font-size:clamp(12px,3.5vw,17px);
  word-break:keep-all;
  overflow-wrap:break-word;
}
#panel-invite .save-opening__name {
  position:absolute;
  z-index:2;
  top:68%;
  margin:0;
  color:#FFFDF7;
  font-family:"SCoreDreamWedding","Cafe24Gowoonbam","Malgun Gothic",sans-serif;
  font-size:clamp(20px,6vw,28px);
  font-weight:300;
  line-height:1.2;
  text-shadow:0 1px 5px rgba(23,42,31,.48);
  white-space:nowrap;
}
#panel-invite .save-opening__name--groom {left:20%}
#panel-invite .save-opening__name--bride {right:23%}
/* The plane is driven by the existing JS Bezier path (2.65s).
   Let the full composition settle DOWN after the plane fades out. */
.app.has-save-opening.is-animating #panel-invite .save-opening {
  animation:save-opening-descend 1.08s 2.66s cubic-bezier(.22,1,.36,1) both;
}
@keyframes save-opening-descend {
  0% {opacity:0;transform:translate3d(0,-65px,0)}
  100% {opacity:1;transform:translate3d(0,0,0)}
}
@media(max-height:700px) {
  /* Keep the universal top gap on compact screens; width auto-fits above. */
  #panel-invite .save-opening__details {top:44%;gap:3px}
  #panel-invite .save-opening__when {font-size:clamp(15px,4.35vw,19px)}
  #panel-invite .save-opening__where {font-size:clamp(11px,3.35vw,15px)}
}
@media(max-width:350px) {
  #panel-invite .save-opening__brush {width:55%}
  #panel-invite .save-opening__details {left:7%;width:86%}
  #panel-invite .save-opening__name {font-size:clamp(18px,5.8vw,24px)}
}
@media(prefers-reduced-motion:reduce) {
  .app.has-save-opening.is-animating #panel-invite .save-opening {
    animation:none;
  }
}
