/* =============================================================
   YCM Chinese Wedding E-Card â€” cnycm.css
   yourcallmemo ecard system | ycm-cn-v1
   All class names prefixed with ycm-
   ============================================================= */

/* CSS CUSTOM PROPERTIES */
:root {
  --ycm-primary-bg:   #FF0000;
  --ycm-red-bg:       #fdf5ee;
  --ycm-cream:        #fdf5ee;
  --ycm-cream-mid:    #f5e8d6;
  --ycm-cream-dark:   #e8d4bc;
  --ycm-red-primary:  #8b1a1a;
  --ycm-red-light:    #b03030;
  --ycm-red-deep:     #5c0e0e;
  --ycm-red-muted:    #c07070;
  --ycm-gold:         #c9a84c;
  --ycm-gold-light:   #e8d5a3;
  --ycm-gold-pale:    #f7f0de;
  --ycm-white:        #ffffff;
  --ycm-text-dark:    #2d1a1a;
  --ycm-text-mid:     #5a3a3a;
  --ycm-text-muted:   #9a7a7a;
  --ycm-font-serif:   'Playfair Display', 'Georgia', serif;
  --ycm-font-sans:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --ycm-font-script:  'Great Vibes', cursive;
  --ycm-radius-sm:    6px;
  --ycm-radius-md:    14px;
  --ycm-radius-pill:  999px;
  --ycm-shadow-btn:   0 4px 16px rgba(139,26,26,0.35);
  --ycm-shadow-panel: 0 24px 80px rgba(0,0,0,0.45);
  --ycm-dur-fast:     0.2s;
  --ycm-dur-mid:      0.4s;
  --ycm-dur-slow:     0.7s;
  --ycm-ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

/* BASE RESET */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--ycm-font-sans); background: var(--ycm-red-bg) url('image/ycm-new-bg-4.png') center / cover no-repeat; color: var(--ycm-text-dark); min-height: 100vh; min-height: 100svh; overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a { text-decoration: none; color: inherit; }

.ycm-inv-hidden { display: none !important; }

/* STAGE 1 LANDING */
#ycm-landing-stage {
  position: fixed; inset: 0; display: flex;
  align-items: center; justify-content: center;
  background: var(--ycm-red-bg) url('image/ycm-new-bg-4.png') center / cover no-repeat;
  z-index: 10; overflow: hidden;
}
.ycm-flip-scene {
  width: 100%; height: 100vh; height: 100svh; max-height: 100vh; max-height: 100svh;
  max-width: 540px;
  perspective: 1400px; position: relative;
  box-shadow: -12px 0 35px rgba(139,26,26,0.08), 12px 0 35px rgba(139,26,26,0.08);
}
.ycm-flip-card {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.645,0.045,0.355,1.000);
  border-radius: 0;
}
.ycm-flip-card.ycm-is-flipped { transform: rotateY(180deg); }
.ycm-card-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 0; overflow: hidden;
}

/* FRONT FACE */
.ycm-card-front { background-color: var(--ycm-cream); }
.ycm-card-bg {
  position: absolute; inset: 0;
  background: url('image/ycm-cn-background.png') center / cover no-repeat;
  z-index: 0; border-radius: 0;
}
.ycm-card-frame {
  position: absolute; inset: 12px;
  border: 1.5px solid rgba(139,26,26,0.35);
  border-radius: var(--ycm-radius-sm); z-index: 1; pointer-events: none;
}
.ycm-card-corner { position: absolute; width: 22px; height: 22px; border-color: var(--ycm-red-primary); border-style: solid; z-index: 2; pointer-events: none; opacity: 0.7; }
.ycm-card-corner--tl { top: 18px; left: 18px; border-width: 2px 0 0 2px; }
.ycm-card-corner--tr { top: 18px; right: 18px; border-width: 2px 2px 0 0; }
.ycm-card-corner--bl { bottom: 18px; left: 18px; border-width: 0 0 2px 2px; }
.ycm-card-corner--br { bottom: 18px; right: 18px; border-width: 0 2px 2px 0; }

.ycm-top-decor {
  position: absolute;
  top: clamp(14px, 2.5vh, 28px);
  left: 0;
  width: 100%;
  z-index: 3;
  pointer-events: none;
}
.ycm-corner-img {
  position: absolute;
  top: 0;
  width: clamp(90px, 36%, 175px);
  max-width: 190px;
  object-fit: contain;
  object-position: top;
}
.ycm-corner-img--left { left: 0; }
.ycm-corner-img--right { right: 0; transform: scaleX(-1); transform-origin: center top; }
.ycm-topmid-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(70px, 22%, 110px);
  max-width: 120px;
  object-fit: contain;
  object-position: top;
  z-index: 4;
}

.ycm-front-body {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding-top: clamp(128px, 17.5vh, 168px);
  padding-bottom: clamp(16px, 2.8vh, 32px);
  padding-left: clamp(16px, 4vw, 28px);
  padding-right: clamp(16px, 4vw, 28px);
  box-sizing: border-box;
}

/* Front Header: Curved text + Names in natural, non-overlapping flow */
.ycm-front-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  gap: clamp(1px, 0.4vh, 4px);
}

/* Curved text arc — sits just below topmid 囍 tassel, gracefully above names */
.ycm-curved-text-wrap {
  width: clamp(210px, 78%, 310px);
  pointer-events: none;
  flex-shrink: 0;
  margin-bottom: clamp(-4px, -0.4vh, 2px);
}
.ycm-curved-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}
.ycm-arc-text {
  font-family: var(--ycm-font-serif);
  font-size: 15px;
  font-weight: 600;
  fill: var(--ycm-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ycm-names-block {
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
  width: 100%;
  max-width: clamp(260px, 82vw, 340px);
  margin: 0 auto;
}
.ycm-wedding-label {
  font-family: var(--ycm-font-serif);
  font-size: clamp(0.52rem, 1.4vw, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--ycm-red-primary);
  text-transform: uppercase;
  margin-bottom: clamp(4px, 0.8vh, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ycm-wedding-label::before,
.ycm-wedding-label::after {
  content: 'X';
  font-size: 0.38rem;
  color: var(--ycm-gold);
}
.ycm-couple-name {
  font-family: var(--ycm-font-script);
  color: var(--ycm-red-primary);
  width: 100%;
  max-width: clamp(260px, 82vw, 340px);
  margin: clamp(2px, 0.4vh, 6px) auto clamp(6px, 1vh, 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ycm-couple-name br {
  display: none;
}
.ycm-name-box {
  width: 70%;
  box-sizing: border-box;
  white-space: nowrap;
}
.ycm-name-box--groom {
  align-self: flex-start;
  text-align: right;
  padding-right: clamp(10px, 3.2vw, 22px);
}
.ycm-name-box--bride {
  align-self: flex-end;
  text-align: left;
  padding-left: clamp(10px, 3.2vw, 22px);
}
.ycm-groom-name {
  font-family: var(--ycm-font-script);
  font-size: clamp(1.8rem, 6.8vw, 2.75rem);
  font-weight: 400;
  color: var(--ycm-red-primary);
  line-height: 1.35;
  display: inline-block;
  white-space: nowrap;
}
.ycm-couple-name .ycm-amp {
  font-family: var(--ycm-font-serif);
  font-size: clamp(1.1rem, 3.8vw, 1.45rem);
  font-weight: 400;
  color: var(--ycm-gold);
  line-height: 0.9;
  display: block;
  text-align: center;
  margin: -4px 0;
}
.ycm-bride-name {
  font-family: var(--ycm-font-script);
  font-size: clamp(1.8rem, 6.8vw, 2.75rem);
  font-weight: 400;
  color: var(--ycm-red-primary);
  line-height: 1.6;
  display: inline-block;
  white-space: nowrap;
}
.ycm-families-invite {
  font-family: var(--ycm-font-serif);
  font-size: clamp(0.48rem, 1.25vw, 0.6rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.55;
  color: var(--ycm-red-primary);
  opacity: 0.88;
  text-transform: uppercase;
  margin-top: clamp(4px, 0.7vh, 8px);
}

/* Portrait wrap — adaptively scales with available screen height */
.ycm-portrait-wrap {
  width: clamp(165px, 58vw, 275px);
  max-height: clamp(145px, 32vh, 275px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 1;
  margin: 2px 0;
}
.ycm-portrait-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Footer: Button + Flourish */
.ycm-front-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.8vh, 8px);
  flex-shrink: 0;
}
.ycm-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ycm-red-deep);
  color: var(--ycm-cream);
  font-family: var(--ycm-font-serif);
  font-size: clamp(0.62rem, 1.8vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: clamp(10px, 1.5vh, 13px) clamp(24px, 5vw, 34px);
  border-radius: var(--ycm-radius-pill);
  border: 1.5px solid var(--ycm-gold);
  cursor: pointer;
  transition: all var(--ycm-dur-fast) var(--ycm-ease);
  box-shadow: var(--ycm-shadow-btn);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.ycm-open-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,rgba(255,255,255,0.12) 0%,transparent 55%);
  pointer-events: none;
}
.ycm-open-btn:hover {
  background: var(--ycm-red-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(92,14,14,0.45);
}
.ycm-open-btn:active {
  transform: translateY(0);
}
.ycm-btn-diamond {
  font-size: 0.4rem;
  color: var(--ycm-gold-light);
  flex-shrink: 0;
}
.ycm-bottom-flourish {
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  color: var(--ycm-red-muted);
  flex-shrink: 0;
  line-height: 1;
}

.ycm-petal { position: fixed; pointer-events: none; animation: ycmPetalFall linear forwards; z-index: 15; user-select: none; }
@keyframes ycmPetalFall {
  0%   { transform: translateY(-30px) rotate(0deg)   translateX(0px);  opacity: 0.8; }
  25%  { transform: translateY(25vh)  rotate(90deg)  translateX(15px); }
  50%  { transform: translateY(50vh)  rotate(180deg) translateX(-10px); }
  75%  { transform: translateY(75vh)  rotate(270deg) translateX(12px); }
  100% { transform: translateY(105vh) rotate(360deg) translateX(0px);  opacity: 0; }
}

/* BACK FACE */
.ycm-card-back {
  background: linear-gradient(155deg, var(--ycm-red-deep) 0%, #3d0808 60%, #1a0303 100%);
  transform: rotateY(180deg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; padding: 40px; text-align: center;
}
.ycm-card-back::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(201,168,76,0.3); border-radius: var(--ycm-radius-sm); pointer-events: none; }
.ycm-back-symbol { font-size: clamp(3rem,10vw,4.5rem); color: var(--ycm-gold); animation: ycmPulse 2s ease-in-out infinite; line-height: 1; }
@keyframes ycmPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.85; } }
.ycm-back-text { font-family: var(--ycm-font-serif); font-size: clamp(1rem,3.5vw,1.3rem); color: var(--ycm-cream); line-height: 1.5; }
.ycm-back-subtitle { font-family: var(--ycm-font-sans); font-size: 0.72rem; color: var(--ycm-gold-light); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; }
.ycm-back-spinner { width: 36px; height: 36px; }
.ycm-spinner-ring { width: 100%; height: 100%; border-radius: 50%; border: 2px solid rgba(201,168,76,0.2); border-top-color: var(--ycm-gold); animation: ycmSpin 1s linear infinite; }
@keyframes ycmSpin { to { transform: rotate(360deg); } }

/* STAGE 2 INVITATION PANEL */
#ycm-invitation-panel {
  position: fixed; inset: 0; display: flex; align-items: stretch; justify-content: center;
  background: var(--ycm-red-bg) url('image/ycm-new-bg-4.png') center / cover no-repeat;
  z-index: 20; animation: ycmFadeIn var(--ycm-dur-mid) var(--ycm-ease) both;
  padding: 0; overflow: hidden;
}
@keyframes ycmFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ycm-panel-card {
  background: var(--ycm-red-bg); width: 100%; max-width: 820px; height: 100vh; height: 100svh; max-height: 100vh; max-height: 100svh;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  border-radius: 0;
  box-shadow: -14px 0 35px rgba(139,26,26,0.09), 14px 0 35px rgba(139,26,26,0.09);
  animation: ycmSlideUp var(--ycm-dur-slow) var(--ycm-ease) both;
}
@keyframes ycmSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ycm-panel-topband { height: 5px; width: 100%; flex-shrink: 0; background: linear-gradient(90deg,var(--ycm-red-deep) 0%,var(--ycm-red-primary) 30%,var(--ycm-gold) 50%,var(--ycm-red-primary) 70%,var(--ycm-red-deep) 100%); }

.ycm-navbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 50px; padding: 0 16px; background: rgba(253,245,238,0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ycm-cream-dark); flex-shrink: 0; position: sticky; top: 0; z-index: 40; }
.ycm-nav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; justify-content: center; }
.ycm-nav-links::-webkit-scrollbar { display: none; }
.ycm-nav-link { font-family: var(--ycm-font-sans); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ycm-text-mid); white-space: nowrap; padding: 7px 12px; border-radius: var(--ycm-radius-sm); transition: color var(--ycm-dur-fast) var(--ycm-ease),background var(--ycm-dur-fast) var(--ycm-ease); }
.ycm-nav-link:hover,.ycm-nav-link.ycm-nav-active { color: var(--ycm-red-primary); background: rgba(139,26,26,0.08); }
.ycm-nav-close-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--ycm-red-primary); color: var(--ycm-cream); display: flex; align-items: center; justify-content: center; font-size: 0.82rem; flex-shrink: 0; transition: all var(--ycm-dur-fast) var(--ycm-ease); line-height: 1; }
.ycm-nav-close-btn:hover { background: var(--ycm-red-deep); transform: rotate(90deg); }

.ycm-content-wrapper { flex: 1; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; position: relative; }
.ycm-content-wrapper::-webkit-scrollbar { width: 3px; }
.ycm-content-wrapper::-webkit-scrollbar-track { background: var(--ycm-cream); }
.ycm-content-wrapper::-webkit-scrollbar-thumb { background: var(--ycm-red-muted); border-radius: 2px; }

.ycm-section { padding: 40px 22px; position: relative; scroll-margin-top: 10px; }
.ycm-section-divider { border: none; height: 1px; margin: 0 24px; background: linear-gradient(to right,transparent,var(--ycm-cream-dark) 20%,var(--ycm-gold-light) 50%,var(--ycm-cream-dark) 80%,transparent); }
.ycm-section-header { text-align: center; margin-bottom: 28px; }
.ycm-section-label { font-family: var(--ycm-font-sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ycm-gold); margin-bottom: 6px; }
.ycm-section-title { font-family: var(--ycm-font-script); font-size: clamp(2rem,6vw,2.5rem); color: var(--ycm-red-primary); line-height: 1.1; }
.ycm-section-ornament { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.ycm-section-ornament::before,.ycm-section-ornament::after { content: ''; height: 1px; width: 36px; background: var(--ycm-gold); opacity: 0.55; }
.ycm-section-ornament span { font-size: 0.5rem; color: var(--ycm-gold); }

/* EVENT — Couple Presentation Row */
/* EVENT — Couple Presentation Row */
.ycm-couple-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 3vw, 24px);
  margin-bottom: 28px;
  margin-left: -22px;
  margin-right: -22px;
  padding: 0 22px;
}
@media (max-width: 767px) {
  .ycm-couple-row {
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px;
  }
}

/* Horizontal Red Ribbon Band behind Couple */
.ycm-couple-red-band {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(38px, 8.5vw, 55px);
  height: clamp(82px, 16.5vw, 115px);
  background: linear-gradient(180deg, #781315 0%, #8b1a1c 30%, #8b1a1c 70%, #721113 100%);
  border-top: 1.5px solid rgba(201, 168, 76, 0.4);
  border-bottom: 1.5px solid rgba(201, 168, 76, 0.4);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.22), inset 0 -2px 8px rgba(0, 0, 0, 0.22), 0 4px 15px rgba(139, 26, 26, 0.12);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Motifs inside Red Band */
.ycm-band-motif {
  position: absolute;
  pointer-events: none;
  opacity: 0.52;
  filter: drop-shadow(0 0 1.5px rgba(226, 198, 122, 0.45));
}
.ycm-band-cloud-img {
  width: 100%;
  height: auto;
  display: block;
}
.ycm-band-motif--left {
  left: clamp(4px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(70px, 14vw, 125px);
}
.ycm-band-motif--phoenix {
  left: calc(50% - clamp(52px, 10vw, 70px));
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(38px, 8vw, 62px);
}
.ycm-band-phoenix-svg {
  width: 100%;
  height: auto;
  display: block;
}
.ycm-band-motif--center-right {
  left: calc(50% + clamp(52px, 10vw, 70px));
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(38px, 8vw, 65px);
}
.ycm-band-motif--right {
  right: clamp(4px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(70px, 14vw, 125px);
}

/* Floating Clouds in Cream Area Above Red Band */
.ycm-couple-cloud {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.32;
}
.ycm-couple-cloud--top-left {
  top: -12px;
  left: 12px;
  width: clamp(60px, 12vw, 95px);
}
.ycm-couple-cloud--top-right {
  top: -8px;
  right: 12px;
  width: clamp(60px, 12vw, 95px);
}
.ycm-couple-cloud img {
  width: 100%;
  height: auto;
  display: block;
}

.ycm-person-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 170px;
  position: relative;
  z-index: 3;
}
.ycm-person-frame {
  position: relative;
  width: clamp(100px, 20vw, 150px);
  aspect-ratio: 3/4;
  border-radius: 60px 60px 20px 20px;
  overflow: hidden;
  border: 2px solid var(--ycm-gold);
  box-shadow: 0 4px 18px rgba(139,26,26,0.18), 0 0 0 3px rgba(201,168,76,0.18);
  background: var(--ycm-cream);
}
.ycm-person-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.ycm-person-floral {
  position: absolute;
  top: 0;
  width: 28px;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}
.ycm-person-floral--left { left: -4px; }
.ycm-person-floral--right { right: -4px; }
.ycm-person-floral svg { width: 100%; height: 100%; }
.ycm-person-name {
  font-family: var(--ycm-font-script);
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  color: var(--ycm-red-primary);
  margin-top: 8px;
  line-height: 1.1;
}
.ycm-person-role {
  font-family: var(--ycm-font-serif);
  font-size: clamp(0.55rem, 1.3vw, 0.65rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ycm-gold);
  margin-top: 2px;
}

/* Center column — Xi symbol + vertical names */
.ycm-couple-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: clamp(52px, 11vw, 82px);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.ycm-couple-xi {
  font-family: var(--ycm-font-serif);
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 900;
  color: #8b1a1c;
  -webkit-text-stroke: 3.5px var(--ycm-cream);
  paint-order: stroke fill;
  filter: drop-shadow(0 0 1.5px #550b0b) drop-shadow(0 3px 6px rgba(0,0,0,0.3));
  line-height: 1;
  user-select: none;
  transition: transform var(--ycm-dur-fast) var(--ycm-ease);
}
.ycm-couple-xi:hover {
  transform: scale(1.08);
}
.ycm-couple-names-vert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ycm-name-vert {
  font-family: var(--ycm-font-script);
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  color: var(--ycm-red-primary);
  line-height: 1.15;
}
.ycm-amp-vert {
  font-family: var(--ycm-font-serif);
  font-size: clamp(0.6rem, 1.6vw, 0.8rem);
  color: var(--ycm-gold);
  font-weight: 400;
  line-height: 1;
}

/* Family Info Block */
.ycm-family-block {
  text-align: center;
  margin-bottom: 28px;
  padding: 20px 20px;
  background: rgba(255,255,255,0.55);
  border-radius: var(--ycm-radius-md);
  border: 1px solid rgba(201,168,76,0.2);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.ycm-family-intro {
  font-family: var(--ycm-font-serif);
  font-size: clamp(0.78rem, 2.2vw, 0.92rem);
  font-style: italic;
  color: var(--ycm-text-mid);
  margin-bottom: 14px;
  line-height: 1.5;
}
.ycm-family-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(10px, 3vw, 22px);
}
.ycm-family-side {
  flex: 1;
  max-width: 160px;
  text-align: center;
}
.ycm-family-label {
  font-family: var(--ycm-font-sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ycm-gold);
  margin-bottom: 3px;
}
.ycm-family-parent {
  font-family: var(--ycm-font-serif);
  font-size: clamp(0.78rem, 2vw, 0.9rem);
  font-weight: 600;
  color: var(--ycm-text-dark);
  line-height: 1.35;
}
.ycm-family-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
  flex-shrink: 0;
}
.ycm-family-divider span {
  font-size: 0.8rem;
  color: var(--ycm-red-muted);
  opacity: 0.6;
}

/* EVENT CARDS */
.ycm-event-card {
  background: var(--ycm-white);
  border-radius: var(--ycm-radius-md);
  padding: 26px 22px;
  text-align: center;
  border: 1px solid var(--ycm-cream-dark);
  box-shadow: 0 2px 16px rgba(139,26,26,0.07);
  margin-bottom: 16px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.ycm-event-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  line-height: 1;
}
.ycm-event-type-badge { display: inline-block; background: var(--ycm-red-primary); color: var(--ycm-white); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; padding: 4px 14px; border-radius: var(--ycm-radius-pill); margin-bottom: 14px; }
.ycm-event-date-big { font-family: var(--ycm-font-serif); font-size: clamp(2.4rem,8vw,3rem); font-weight: 700; color: var(--ycm-red-primary); line-height: 1; }
.ycm-event-month-year { font-family: var(--ycm-font-serif); font-size: 0.95rem; color: var(--ycm-text-mid); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.ycm-event-info-row { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.85rem; color: var(--ycm-text-mid); margin-bottom: 8px; }
.ycm-event-venue-name { font-family: var(--ycm-font-serif); font-size: 1.05rem; font-weight: 600; color: var(--ycm-text-dark); margin-top: 16px; margin-bottom: 4px; }
.ycm-event-venue-addr { font-size: 0.8rem; color: var(--ycm-text-muted); line-height: 1.6; margin-bottom: 16px; }
.ycm-map-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1.5px solid var(--ycm-red-primary); color: var(--ycm-red-primary); font-family: var(--ycm-font-sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 22px; border-radius: var(--ycm-radius-pill); cursor: pointer; transition: all var(--ycm-dur-fast) var(--ycm-ease); }
.ycm-map-btn:hover { background: var(--ycm-red-primary); color: var(--ycm-white); }

/* RSVP */
.ycm-rsvp-intro { font-family: var(--ycm-font-serif); font-size: 0.92rem; color: var(--ycm-text-mid); text-align: center; line-height: 1.7; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.ycm-rsvp-deadline { font-weight: 700; color: var(--ycm-red-primary); }
#ycm-rsvp-form { max-width: 600px; margin-left: auto; margin-right: auto; }
.ycm-form-group { margin-bottom: 14px; }
.ycm-form-label { display: block; font-family: var(--ycm-font-sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ycm-text-mid); margin-bottom: 6px; }
.ycm-form-input,.ycm-form-select,.ycm-form-textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--ycm-cream-dark); border-radius: var(--ycm-radius-sm); background: var(--ycm-white); font-family: var(--ycm-font-sans); font-size: 0.9rem; color: var(--ycm-text-dark); outline: none; transition: border-color var(--ycm-dur-fast),box-shadow var(--ycm-dur-fast); appearance: auto; }
.ycm-form-input:focus,.ycm-form-select:focus,.ycm-form-textarea:focus { border-color: var(--ycm-red-muted); box-shadow: 0 0 0 3px rgba(139,26,26,0.09); }
.ycm-form-textarea { resize: vertical; min-height: 80px; }
.ycm-rsvp-submit-btn { width: 100%; padding: 14px; background: linear-gradient(135deg,var(--ycm-red-primary) 0%,var(--ycm-red-deep) 100%); color: var(--ycm-cream); font-family: var(--ycm-font-serif); font-size: 1rem; font-weight: 600; letter-spacing: 0.06em; border-radius: var(--ycm-radius-md); cursor: pointer; transition: all var(--ycm-dur-fast) var(--ycm-ease); margin-top: 6px; box-shadow: var(--ycm-shadow-btn); position: relative; overflow: hidden; }
.ycm-rsvp-submit-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(255,255,255,0.1) 0%,transparent 50%); }
.ycm-rsvp-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(92,14,14,0.4); }

/* GALLERY */
.ycm-gallery-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; max-width: 620px; margin-left: auto; margin-right: auto; }
.ycm-gallery-item { aspect-ratio: 1; overflow: hidden; border-radius: var(--ycm-radius-sm); cursor: pointer; position: relative; background: var(--ycm-cream-dark); }
.ycm-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s var(--ycm-ease); }
.ycm-gallery-item::after { content: 'X'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(92,14,14,0); color: var(--ycm-white); font-size: 1.6rem; opacity: 0; transition: all var(--ycm-dur-fast) var(--ycm-ease); }
.ycm-gallery-item:hover img { transform: scale(1.08); }
.ycm-gallery-item:hover::after { background: rgba(92,14,14,0.35); opacity: 1; }

/* GIFT */
.ycm-gift-intro { font-family: var(--ycm-font-serif); font-size: 0.92rem; color: var(--ycm-text-mid); text-align: center; line-height: 1.8; margin-bottom: 22px; max-width: 620px; margin-left: auto; margin-right: auto; }
.ycm-gift-cards { display: flex; flex-direction: column; gap: 12px; max-width: 620px; margin-left: auto; margin-right: auto; }
.ycm-gift-card { background: var(--ycm-white); border-radius: var(--ycm-radius-md); padding: 20px 20px 20px 24px; border: 1px solid var(--ycm-cream-dark); box-shadow: 0 2px 10px rgba(139,26,26,0.06); position: relative; overflow: hidden; }
.ycm-gift-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(to bottom,var(--ycm-gold),var(--ycm-red-primary)); }
.ycm-gift-bank-name { font-family: var(--ycm-font-serif); font-size: 1rem; font-weight: 700; color: var(--ycm-text-dark); margin-bottom: 8px; }
.ycm-gift-account-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ycm-text-muted); margin-bottom: 4px; }
.ycm-gift-account-num { font-family: 'Courier New','Consolas',monospace; font-size: 1.15rem; font-weight: 700; color: var(--ycm-red-primary); letter-spacing: 0.08em; }
.ycm-gift-account-name { font-size: 0.8rem; color: var(--ycm-text-muted); margin-top: 3px; }
.ycm-gift-copy-btn { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ycm-red-primary); border: 1.5px solid var(--ycm-red-muted); padding: 7px 14px; border-radius: var(--ycm-radius-pill); cursor: pointer; transition: all var(--ycm-dur-fast) var(--ycm-ease); background: none; }
.ycm-gift-copy-btn:hover { background: var(--ycm-red-primary); border-color: var(--ycm-red-primary); color: var(--ycm-white); }

/* WISHES */
.ycm-wish-send-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 620px; margin-left: auto; margin-right: auto; padding: 14px; background: linear-gradient(135deg,var(--ycm-gold) 0%,#d4a848 100%); color: var(--ycm-red-deep); font-family: var(--ycm-font-serif); font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; border-radius: var(--ycm-radius-md); cursor: pointer; transition: all var(--ycm-dur-fast) var(--ycm-ease); margin-bottom: 20px; border: 1.5px solid var(--ycm-gold); box-shadow: 0 4px 14px rgba(201,168,76,0.3); }
.ycm-wish-send-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.4); }
.ycm-wish-wall { display: flex; flex-direction: column; gap: 10px; max-width: 620px; margin-left: auto; margin-right: auto; max-height: 420px; overflow-y: auto; padding-right: 6px; scroll-behavior: smooth; }
.ycm-wish-wall::-webkit-scrollbar { width: 5px; }
.ycm-wish-wall::-webkit-scrollbar-track { background: var(--ycm-cream-dark); border-radius: 99px; }
.ycm-wish-wall::-webkit-scrollbar-thumb { background: var(--ycm-red-primary); border-radius: 99px; opacity: 0.7; }
.ycm-wish-wall::-webkit-scrollbar-thumb:hover { background: var(--ycm-red-deep); }
.ycm-wish-card { background: var(--ycm-white); border-radius: var(--ycm-radius-md); padding: 16px 18px; border-left: 3px solid var(--ycm-red-primary); box-shadow: 0 2px 8px rgba(139,26,26,0.06); transition: transform var(--ycm-dur-fast),opacity var(--ycm-dur-mid); }
.ycm-wish-card.ycm-wish-new { opacity: 0; transform: translateY(-8px); }
.ycm-wish-icon { font-size: 1.1rem; margin-bottom: 6px; }
.ycm-wish-message { font-family: var(--ycm-font-serif); font-size: 0.88rem; color: var(--ycm-text-dark); line-height: 1.65; font-style: italic; margin-bottom: 8px; }
.ycm-wish-author { font-family: var(--ycm-font-sans); font-size: 0.73rem; font-weight: 700; color: var(--ycm-red-primary); }

/* CONTACT */
.ycm-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; max-width: 680px; margin-left: auto; margin-right: auto; }
.ycm-contact-card { background: var(--ycm-white); border-radius: var(--ycm-radius-md); padding: 16px 18px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--ycm-cream-dark); box-shadow: 0 2px 8px rgba(139,26,26,0.05); transition: box-shadow var(--ycm-dur-fast); }
.ycm-contact-card:hover { box-shadow: 0 4px 16px rgba(139,26,26,0.1); }
.ycm-contact-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg,var(--ycm-red-primary) 0%,var(--ycm-red-light) 100%); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; color: var(--ycm-white); }
.ycm-contact-info { flex: 1; min-width: 0; }
.ycm-contact-role { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ycm-text-muted); margin-bottom: 2px; }
.ycm-contact-name { font-family: var(--ycm-font-serif); font-size: 0.98rem; font-weight: 600; color: var(--ycm-text-dark); margin-bottom: 1px; }
.ycm-contact-phone { font-size: 0.78rem; color: var(--ycm-text-muted); }
.ycm-whatsapp-btn { width: 40px; height: 40px; border-radius: 50%; background: #25D366; color: var(--ycm-white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--ycm-dur-fast) var(--ycm-ease); }
.ycm-whatsapp-btn:hover { background: #128C7E; transform: scale(1.1); }

.ycm-inv-footer { padding: 18px 22px 22px; text-align: center; border-top: 1px solid var(--ycm-cream-dark); background: var(--ycm-cream); flex-shrink: 0; }
.ycm-inv-close-footer-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ycm-font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ycm-text-muted); cursor: pointer; transition: color var(--ycm-dur-fast); padding: 8px; background: none; border: none; }
.ycm-inv-close-footer-btn:hover { color: var(--ycm-red-primary); }

.ycm-scroll-top-btn { position: absolute; bottom: 84px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--ycm-red-primary); color: var(--ycm-cream); border: none; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; cursor: pointer; opacity: 0; transform: translateY(10px) scale(0.85); transition: all var(--ycm-dur-mid) var(--ycm-ease); pointer-events: none; z-index: 30; box-shadow: 0 4px 14px rgba(139,26,26,0.3); }
.ycm-scroll-top-btn.ycm-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.ycm-scroll-top-btn:hover { background: var(--ycm-red-deep); transform: translateY(-3px) scale(1.05); }

/* MUSIC BUTTON */
.ycm-music-btn { position: fixed; bottom: 22px; left: 22px; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg,var(--ycm-red-primary) 0%,var(--ycm-red-deep) 100%); color: var(--ycm-white); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 200; box-shadow: 0 4px 20px rgba(92,14,14,0.45); transition: all var(--ycm-dur-fast) var(--ycm-ease); border: 2px solid var(--ycm-gold); }
.ycm-music-btn:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(92,14,14,0.55); }
.ycm-music-icon { font-size: 1.25rem; line-height: 1; }
.ycm-wave-bars { display: none; align-items: flex-end; gap: 2.5px; height: 22px; }
.ycm-music-btn.ycm-music-playing .ycm-music-icon { display: none; }
.ycm-music-btn.ycm-music-playing .ycm-wave-bars { display: flex; }
.ycm-wave-bar { width: 3.5px; border-radius: 2px; background: var(--ycm-white); animation: ycmWaveAnim 0.7s ease-in-out infinite alternate; }
.ycm-wave-bar:nth-child(1) { height: 8px;  animation-delay: 0s;    }
.ycm-wave-bar:nth-child(2) { height: 16px; animation-delay: 0.12s; }
.ycm-wave-bar:nth-child(3) { height: 22px; animation-delay: 0.22s; }
.ycm-wave-bar:nth-child(4) { height: 16px; animation-delay: 0.12s; }
.ycm-wave-bar:nth-child(5) { height: 8px;  animation-delay: 0s;    }
@keyframes ycmWaveAnim { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

/* MODALS */
.ycm-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.72); display: flex; align-items: center; justify-content: center; z-index: 300; padding: 20px; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: ycmFadeIn var(--ycm-dur-fast) var(--ycm-ease) both; }
.ycm-modal-box { background: var(--ycm-cream); border-radius: var(--ycm-radius-md); width: 100%; max-width: 420px; max-height: 85svh; overflow-y: auto; padding: 26px; position: relative; box-shadow: 0 24px 64px rgba(0,0,0,0.35); animation: ycmSlideUp var(--ycm-dur-mid) var(--ycm-ease) both; }
.ycm-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ycm-modal-title { font-family: var(--ycm-font-script); font-size: 2rem; color: var(--ycm-red-primary); line-height: 1; }
.ycm-modal-close { width: 30px; height: 30px; border-radius: 50%; background: var(--ycm-cream-mid); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.8rem; color: var(--ycm-text-mid); transition: all var(--ycm-dur-fast) var(--ycm-ease); border: none; flex-shrink: 0; }
.ycm-modal-close:hover { background: var(--ycm-red-primary); color: var(--ycm-white); transform: rotate(90deg); }
.ycm-wish-submit-btn { width: 100%; padding: 13px; background: linear-gradient(135deg,var(--ycm-red-primary) 0%,var(--ycm-red-deep) 100%); color: var(--ycm-cream); font-family: var(--ycm-font-serif); font-size: 1rem; font-weight: 600; border-radius: var(--ycm-radius-md); cursor: pointer; transition: all var(--ycm-dur-fast) var(--ycm-ease); margin-top: 8px; border: none; box-shadow: var(--ycm-shadow-btn); }
.ycm-wish-submit-btn:hover { transform: translateY(-2px); }
.ycm-map-iframe { width: 100%; height: 280px; border: none; border-radius: var(--ycm-radius-sm); margin-top: 14px; display: block; }
.ycm-map-open-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 10px 20px; border: 1.5px solid var(--ycm-red-primary); color: var(--ycm-red-primary); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--ycm-radius-pill); text-decoration: none; transition: all var(--ycm-dur-fast) var(--ycm-ease); }
.ycm-map-open-link:hover { background: var(--ycm-red-primary); color: var(--ycm-white); }

/* LIGHTBOX */
.ycm-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.93); display: flex; align-items: center; justify-content: center; z-index: 400; animation: ycmFadeIn var(--ycm-dur-fast) var(--ycm-ease) both; }
.ycm-lightbox-img { max-width: 92vw; max-height: 82svh; object-fit: contain; border-radius: var(--ycm-radius-sm); transition: opacity 0.25s; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.ycm-lightbox-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.14); color: var(--ycm-white); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid rgba(255,255,255,0.2); transition: background var(--ycm-dur-fast); }
.ycm-lightbox-close:hover { background: rgba(255,255,255,0.28); }
.ycm-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.14); color: var(--ycm-white); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid rgba(255,255,255,0.2); transition: background var(--ycm-dur-fast); }
.ycm-lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.ycm-lightbox-prev { left: 14px; }
.ycm-lightbox-next { right: 14px; }

/* TOAST */
.ycm-toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(14px); background: var(--ycm-text-dark); color: var(--ycm-white); font-family: var(--ycm-font-sans); font-size: 0.84rem; font-weight: 500; padding: 12px 24px; border-radius: var(--ycm-radius-pill); z-index: 500; opacity: 0; transition: all 0.3s var(--ycm-ease); max-width: min(340px,90vw); text-align: center; pointer-events: none; white-space: nowrap; }
.ycm-toast.ycm-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ycm-toast.ycm-toast-success { background: linear-gradient(135deg,#2d6a4f,#3a8a65); }
.ycm-toast.ycm-toast-error { background: linear-gradient(135deg,var(--ycm-red-deep),#8b1a1a); }

/* SIDE DECORATIVE PILLARS (DESKTOP) — fixed to screen edges */
.ycm-side-pillar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 25;
  display: none;
}
@media (min-width: 980px) {
  .ycm-side-pillar {
    display: block;
  }
  .ycm-side-pillar--left {
    left: 0;
  }
  .ycm-side-pillar--right {
    right: 0;
  }
}
/* The vertical red line â€” positioned at outermost edge */
.ycm-pillar-line {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 18px;
  width: 3px;
  background-color: var(--ycm-red-primary);
  opacity: 0.85;
}
.ycm-side-pillar--right .ycm-pillar-line {
  left: auto;
  right: 18px;
}

/* Corner fret ornament */
.ycm-pillar-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 2;
}
.ycm-pillar-corner--top {
  top: 15px;
  left: 8px;
}
.ycm-side-pillar--right .ycm-pillar-corner--top {
  left: auto;
  right: 8px;
  transform: scaleX(-1);
}
.ycm-pillar-corner--bottom {
  bottom: 15px;
  left: 8px;
}
.ycm-side-pillar--right .ycm-pillar-corner--bottom {
  left: auto;
  right: 8px;
  transform: scaleX(-1);
}

/* Floral circle ornament â€” center of side pillar */
.ycm-pillar-floral {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  z-index: 3;
}

/* RESPONSIVE */
@media (max-width: 767px) {
  #ycm-landing-stage { background: var(--ycm-cream) url('image/ycm-new-bg-4.png') center / cover no-repeat; }
  .ycm-flip-scene { max-width: 100vw; max-height: 100svh; height: 100svh; border-radius: 0; filter: none; }
  .ycm-flip-card,.ycm-card-face,.ycm-card-bg { border-radius: 0; }
  .ycm-section { padding: 32px 18px; }
}
@media (min-width: 768px) {
  #ycm-invitation-panel { padding: 0; }
  .ycm-panel-card { border-radius: 0; max-height: 100svh; height: 100svh; }
}

