/* ═══════════════════════════════════════════════════════════
   FAIRYTALE DREAM — Vellora Premium Template
   Storybook pop-up · pastel sky · gold foil · castle & balloons
═══════════════════════════════════════════════════════════ */
:root {
    --plum:      #6b4a7a;
    --text:      #5e4767;
    --muted:     #9a829f;
    --pink:      #f07da4;
    --pink-d:    #d9557f;
    --pink-s:    #fde4ee;
    --lilac:     #e9defb;
    --peach:     #ffe6d6;
    --baby:      #ddeefc;
    --gold:      #c9a24a;
    --gold-d:    #a8792a;
    --gold-l:    #f3d98b;
    --cream:     #fffaf4;
    --script:    'Parisienne', cursive;
    --display:   'Cinzel', Georgia, serif;
    --serif:     'Cormorant Garamond', Georgia, serif;
    --sans:      'Quicksand', system-ui, sans-serif;
    --foil:      linear-gradient(100deg, #a8792a 0%, #e8c46a 18%, #fff1c1 30%, #c9a24a 44%, #f3d98b 58%, #b8892f 72%, #e8c46a 86%, #a8792a 100%);
    --ring:      0 0 0 1.5px rgba(201, 162, 74, .55), 0 0 0 7px #fff, 0 0 0 8.5px rgba(201, 162, 74, .4);
    --shadow:    0 22px 50px rgba(107, 74, 122, .16);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--sans);
    background: #fff6f2;
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
svg { overflow: visible; }
main { position: relative; }

.container { position: relative; z-index: 2; width: min(100% - 32px, 820px); margin: 0 auto; perspective: 1400px; }
main > section { position: relative; padding: 120px 0 110px; overflow-x: clip; }
main > section::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image: radial-gradient(circle, rgba(201, 162, 74, .2) 1px, transparent 1.6px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

.foil, .foil-text {
    background: var(--foil); background-size: 260% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: foil 7s linear infinite;
}
@keyframes foil { from { background-position: 100% 0; } to { background-position: -160% 0; } }

/* Stars (generated) */
[data-stars] { position: absolute; inset: 0; pointer-events: none; }
[data-stars] i {
    position: absolute; display: block; background: #fff;
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    animation: twinkle 3s ease-in-out infinite;
    filter: drop-shadow(0 0 3px #fff);
}
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }

/* Generic idle motions */
@keyframes bob    { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-14px) rotate(2deg); } }
@keyframes bobSm  { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes driftX { from { transform: translateX(-18px); } to { transform: translateX(18px); } }
@keyframes glow   { 0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 230, 160, .7)); } 50% { filter: drop-shadow(0 0 26px rgba(255, 230, 160, 1)); } }
@keyframes shine  { 0%, 100% { filter: drop-shadow(0 3px 4px rgba(168, 121, 42, .35)) brightness(1); } 50% { filter: drop-shadow(0 3px 10px rgba(243, 217, 139, .9)) brightness(1.12); } }
/* Glow/shine berdenyut tanpa animasi filter (repaint tiap frame): dua salinan statis,
   salinan "menyala" hanya di-crossfade lewat opacity (composited). */
.glow-fx { position: relative; }
.glow-fx > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.glow-fx > .fx-on { opacity: 0; animation: fxPulse var(--fx-d, 3s) ease-in-out infinite; }
@keyframes fxPulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.shine-fx > .fx-off { filter: drop-shadow(0 3px 4px rgba(168, 121, 42, .35)); }
.shine-fx > .fx-on { filter: drop-shadow(0 3px 10px rgba(243, 217, 139, .9)) brightness(1.12); }
.moon-fx { --fx-d: 4s; }
.moon-fx > .fx-off { filter: drop-shadow(0 0 10px rgba(255, 230, 160, .7)); }
.moon-fx > .fx-on { filter: drop-shadow(0 0 26px rgba(255, 230, 160, 1)); }

/* ════════════════════════════
   BUTTONS
════════════════════════════ */
.btn-gold {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 30px; border-radius: 100px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .8);
    background: linear-gradient(135deg, #f3d98b 0%, #c9a24a 42%, #e8c46a 70%, #b8892f 100%);
    color: #fff; text-decoration: none; text-shadow: 0 1px 2px rgba(120, 80, 20, .45);
    font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
    box-shadow: 0 0 0 3px rgba(243, 217, 139, .35), 0 10px 24px rgba(168, 121, 42, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
    transition: box-shadow .3s, filter .3s;
}
.btn-gold::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
    transform: skewX(-20deg); animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(475%) skewX(-20deg); } }
.btn-gold:hover { filter: brightness(1.06); box-shadow: 0 0 0 5px rgba(243, 217, 139, .45), 0 14px 30px rgba(168, 121, 42, .5), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold.sm   { padding: 10px 20px; font-size: .7rem; }
.btn-gold.full { width: 100%; }
.btn-gold.sent { background: linear-gradient(135deg, #bfe3c8, #7fbf94); }
.btn-gold:disabled { cursor: default; }

/* ════════════════════════════
   INTRO — STORYBOOK
════════════════════════════ */
.intro { position: fixed; inset: 0; z-index: 9999; overflow: hidden; }
.intro-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .55), transparent 55%),
        linear-gradient(180deg, #cbc2f2 0%, #e6cdf0 38%, #fbd6e5 70%, #ffe5d6 100%);
}
.intro-stars { bottom: 40%; }
.intro-moon { position: absolute; top: 6%; right: 9%; width: 60px; height: 60px; }
.intro-cloud { position: absolute; animation: driftX 14s ease-in-out infinite alternate; }
.intro-cloud svg { width: 100%; height: auto; aspect-ratio: 120 / 64; display: block; }
.intro-cloud.ic1 { left: -22%; bottom: -3%; width: 72%; }
.intro-cloud.ic2 { right: -26%; bottom: -5%; width: 78%; animation-delay: -6s; }
.intro-cloud.ic3 { left: -10%; top: 15%; width: 34%; opacity: .85; animation-duration: 18s; }
.intro-cloud.ic4 { right: -8%; top: 27%; width: 30%; opacity: .75; animation-delay: -9s; }
.intro-balloon { position: absolute; animation: bob 4.5s ease-in-out infinite alternate; }
.intro-balloon svg { width: 100%; height: auto; aspect-ratio: 100 / 150; display: block; }
.intro-balloon.ib1 { left: 7%; top: 8%; width: 44px; }
.intro-balloon.ib2 { right: 7%; top: 80%; width: 40px; animation-delay: -2s; }

.book-stage {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    perspective: 2200px;
}
.book {
    position: relative;
    width: min(84vw, 360px, 58vh);
    aspect-ratio: 36 / 52;
    transform-style: preserve-3d;
    animation: bookIn 1.2s cubic-bezier(.34, 1.56, .64, 1) backwards;
}
@keyframes bookIn { from { opacity: 0; transform: translateY(40px) scale(.9) rotateX(12deg); } to { opacity: 1; transform: none; } }

.book-block {
    position: absolute; inset: 0; border-radius: 4px 16px 16px 4px; background: #fbf3e8;
    box-shadow: 2px 2px 0 #eadcc6, 4px 4px 0 #fbf3e8, 6px 6px 0 #eadcc6, 8px 8px 0 #fbf3e8, 10px 10px 0 #e4d3ba,
                14px 22px 44px rgba(107, 74, 122, .35);
}
.book-inside, .pg-front, .pg-back {
    border-radius: 4px 16px 16px 4px;
    background:
        radial-gradient(ellipse at 50% 40%, #fffdf9 0%, #fff6ea 70%, #f8ead6 100%);
    box-shadow: inset 12px 0 18px -12px rgba(107, 74, 122, .25);
}
.book-inside {
    position: absolute; inset: 0; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 30px 24px; perspective: 700px;
}
.bi-corner { position: absolute; width: 58px; height: 58px; }
.bi-corner.tl { top: 10px; left: 12px; }
.bi-corner.br { bottom: 10px; right: 10px; }
.bi-popup { width: 82%; transform-origin: 50% 100%; }
.bi-castle { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.bi-text { font-family: var(--script); font-size: 1.5rem; color: var(--plum); text-align: center; line-height: 1.3; }

.book-page {
    position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d;
}
.pg-front, .pg-back {
    position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden;
    background-image:
        repeating-linear-gradient(180deg, transparent 0 27px, rgba(201, 162, 74, .1) 27px 28px),
        radial-gradient(ellipse at 50% 40%, #fffdf9 0%, #fff6ea 70%, #f8ead6 100%);
}
.pg-back { transform: rotateY(180deg); border-radius: 16px 4px 4px 16px; box-shadow: inset -12px 0 18px -12px rgba(107, 74, 122, .25); }
.book-page.p1 .pg-front {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: 30px 26px; gap: 6px;
}
.pg-once  { font-family: var(--script); font-size: 2.3rem; color: var(--pink-d); line-height: 1.2; }
.pg-text  { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--text); line-height: 1.5; }
.pg-names { font-family: var(--script); font-size: 1.9rem; line-height: 1.3; }
.pg-names { background: var(--foil); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.pg-garland { width: 92%; height: 56px; margin-top: 6px; }

.book-cover { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; z-index: 5; }
.cover-front, .cover-back {
    position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden;
    border-radius: 6px 18px 18px 6px;
}
.cover-front {
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .7) 0, transparent 42%),
        radial-gradient(circle at 80% 90%, rgba(255, 255, 255, .35) 0, transparent 40%),
        linear-gradient(155deg, #f9c4d8 0%, #e9c4ee 50%, #c8d3f6 100%);
    box-shadow: inset 16px 0 22px -14px rgba(107, 74, 122, .45), inset 0 0 0 1px rgba(255, 255, 255, .6), 0 30px 60px rgba(107, 74, 122, .35);
    outline: 1.5px solid rgba(201, 162, 74, .85); outline-offset: -15px;
}
.cover-front::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .28) 1.5px, transparent 2px),
        radial-gradient(circle at 0 0, rgba(255, 255, 255, .18) 1px, transparent 1.6px);
    background-size: 22px 22px, 11px 11px;
}
.cover-front::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 18px; border-radius: 6px 0 0 6px;
    background:
        linear-gradient(180deg, transparent 8%, #e8c46a 8% 10%, transparent 10% 90%, #e8c46a 90% 92%, transparent 92%),
        linear-gradient(90deg, rgba(107, 74, 122, .3), rgba(107, 74, 122, .05));
}
.cv-corner { position: absolute; width: 66px; height: 66px; }
.cv-corner.tl { top: 8px; left: 20px; }
.cv-corner.tr { top: 8px; right: 8px; }
.cv-corner.bl { bottom: 8px; left: 20px; }
.cv-corner.br { bottom: 8px; right: 8px; }
.cv-content {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: 40px 30px 34px 40px;
}
.cv-crown { width: 54px; height: 42px; }
.cv-eyebrow { font-family: var(--display); font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--plum); margin-top: 6px; }
.cv-names {
    font-family: var(--script); font-weight: 400; line-height: 1.05; margin: 8px 0 0;
    font-size: clamp(2.1rem, 10vw, 2.9rem);
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8)) drop-shadow(0 3px 6px rgba(107, 74, 122, .2));
}
.cv-names span {
    display: block;
    background: var(--foil); background-size: 260% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: foil 7s linear infinite; padding: 0 .12em;
}
.cv-names em { display: block; font-family: var(--serif); font-style: italic; font-size: .5em; color: var(--pink-d); }
.cv-content .flourish { width: 170px; height: 22px; margin: 4px auto 2px; }
.cv-guest { margin: 4px 0 16px; }
.to-label { display: block; font-size: .7rem; color: var(--plum); opacity: .8; }
.guest-name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--plum); line-height: 1.35; margin: 3px 0 2px; }
.to-note { display: block; font-family: var(--serif); font-style: italic; font-size: .72rem; color: var(--plum); opacity: .7; }

.seal { position: absolute; right: -24px; top: 50%; margin-top: -34px; width: 68px; height: 68px; z-index: 4; filter: drop-shadow(0 6px 8px rgba(150, 40, 80, .35)); }
.seal-half {
    position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff9fc0 0%, #e2628f 55%, #b8406b 100%);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .18), inset 0 -4px 8px rgba(120, 30, 60, .35);
    display: flex; align-items: center; justify-content: center;
}
.seal-half::before {
    content: ""; position: absolute; inset: 8px; border-radius: 50%;
    border: 1.5px dashed rgba(255, 225, 236, .7);
}
.seal-half.l { clip-path: polygon(0 0, 52% 0, 45% 28%, 57% 50%, 44% 73%, 52% 100%, 0 100%); }
.seal-half.r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 52% 100%, 44% 73%, 57% 50%, 45% 28%); }
.seal-half span { font-family: var(--display); font-weight: 600; font-size: 1rem; color: #ffe6ef; letter-spacing: .02em; text-shadow: 0 1px 1px rgba(120, 30, 60, .5); }
.seal-half span i { font-family: var(--script); font-style: normal; font-size: .9em; margin: 0 1px; }

.cover-back { transform: rotateY(180deg); border-radius: 18px 6px 6px 18px; background: #fdeef4; overflow: hidden; }
.cb-pattern {
    position: absolute; inset: 10px; border-radius: 12px;
    border: 1px solid rgba(201, 162, 74, .5);
    background:
        radial-gradient(circle at 10px 10px, rgba(240, 125, 164, .3) 2.2px, transparent 2.8px) 0 0 / 20px 20px,
        radial-gradient(circle at 0 0, rgba(201, 162, 74, .25) 1.4px, transparent 2px) 0 0 / 20px 20px,
        linear-gradient(160deg, #fdeef4, #efe4fb);
}

/* ════════════════════════════
   NAVIGATION
════════════════════════════ */
nav {
    position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 1000; opacity: 0; pointer-events: none;
    width: max-content; max-width: calc(100% - 24px);
    transition: transform .8s cubic-bezier(.16,1,.3,1), opacity .8s cubic-bezier(.16,1,.3,1), bottom .4s ease;
}
nav.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
body:has(#qr-fab) nav#mainNav,
body.has-qr nav#mainNav { bottom: calc(84px + env(safe-area-inset-bottom)); }
.nav-inner {
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 6px 8px; border-radius: 100px;
    display: flex; align-items: center; gap: 4px;
    border: 1.5px solid rgba(201, 162, 74, .55);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .5), 0 12px 30px rgba(107, 74, 122, .2);
}
nav a {
    color: var(--muted); display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
    text-decoration: none; -webkit-tap-highlight-color: transparent;
    transition: color .3s, background .3s, box-shadow .3s;
}
nav a svg { width: 20px; height: 20px; }
nav a.active {
    color: #fff; background: linear-gradient(135deg, #f3d98b, #c9a24a 55%, #b8892f);
    box-shadow: 0 4px 12px rgba(168, 121, 42, .4);
}
nav a:hover:not(.active) { color: var(--pink-d); background: var(--pink-s); }
nav a:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }

/* ════════════════════════════
   MUSIC
════════════════════════════ */
.music-toggle-btn {
    position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; z-index: 1001;
    width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f3d98b, #c9a24a 55%, #b8892f); color: #fff;
    border: 2px solid #fff; box-shadow: 0 6px 18px rgba(168, 121, 42, .45);
}
.music-toggle-btn svg { width: 20px; height: 20px; }
.music-toggle-btn::before {
    content: ""; position: absolute; inset: -7px; border-radius: 50%;
    border: 1.5px dashed rgba(201, 162, 74, .8); opacity: 0;
}
.music-toggle-btn.playing::before { opacity: 1; animation: spin 8s linear infinite; }
.music-toggle-btn.playing svg { animation: bobSm .6s ease-in-out infinite alternate; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════
   HERO — POP-UP SCENE
════════════════════════════ */
.hero { height: 100vh; height: 100svh; min-height: 640px; padding: 0 !important; overflow: hidden !important; }
.hero-scene { position: absolute; inset: 0; }
.sky {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 62%, rgba(255, 255, 255, .7), transparent 50%),
        linear-gradient(180deg, #c8c0f2 0%, #e4d0f2 30%, #fad6e6 58%, #ffe4d6 80%, #fff3ec 100%);
}
.hero-stars { bottom: 45%; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.moon-wrap { position: absolute; top: 11%; right: 8%; width: 66px; height: 66px; }
.moon { display: block; width: 100%; height: 100%; }

.l-rainbow .rainbow {
    position: absolute; left: 50%; bottom: 25%;
    width: min(122vw, 620px); height: auto; aspect-ratio: 400 / 230;
    margin-left: calc(min(122vw, 620px) / -2);
}
.drift { position: absolute; inset: 0; animation: driftX 16s ease-in-out infinite alternate; }
.drift.d2 { animation-duration: 19s; animation-delay: -5s; }
.drift.d3 { animation-duration: 22s; animation-delay: -9s; }
.drift.d4 { animation-duration: 13s; }
.drift.d5 { animation-duration: 15s; animation-delay: -7s; animation-direction: alternate-reverse; }
.drift.d6 { animation-duration: 17s; animation-delay: -3s; }
.cl { position: absolute; height: auto; aspect-ratio: 120 / 64; display: block; }
.l-clouds-front .cl { max-width: 520px; filter: drop-shadow(0 -6px 14px rgba(203, 182, 236, .35)); }
.l-clouds-back .cl { max-width: 340px; }

.balloon { position: absolute; }
.balloon .bob { animation: bob 5s ease-in-out infinite alternate; }
.balloon svg { width: 100%; height: auto; aspect-ratio: 100 / 150; display: block; filter: drop-shadow(0 8px 10px rgba(107, 74, 122, .15)); }
.balloon.bl1 { left: 3%; top: 36%; width: 62px; }
.balloon.bl2 { right: 4%; top: 31%; width: 54px; }
.balloon.bl2 .bob { animation-delay: -2.4s; animation-duration: 5.8s; }
.balloon.bl3 { right: 2%; top: 57%; width: 44px; }
.balloon.bl3 .bob { animation-delay: -1.2s; animation-duration: 4.4s; }
.balloon.bl4 { left: 7%; top: 63%; width: 30px; opacity: .9; }
.balloon.bl4 .bob { animation-delay: -3s; }

.l-castle { perspective: 900px; }
.castle-pop {
    position: absolute; left: 0; right: 0; margin: 0 auto; bottom: 14%;
    width: min(72vw, 370px, 40vh); transform-origin: 50% 100%;
}
.castle { width: 100%; height: auto; aspect-ratio: 1; display: block; filter: drop-shadow(0 18px 24px rgba(107, 74, 122, .18)); }

.hero-content {
    position: absolute; left: 0; right: 0; top: calc(70px + env(safe-area-inset-top)); z-index: 3;
    display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px;
}
.banner-bob { width: min(92vw, 440px); animation: bobSm 3s ease-in-out infinite alternate; }
.banner { width: 100%; height: auto; aspect-ratio: 420 / 140; display: block; }
.ribbon-text { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 4px; fill: #fff; }
.hero-names {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .22em;
    margin-top: -10px; font-family: var(--script); font-weight: 400; line-height: 1.12;
    font-size: clamp(2.9rem, 12.5vw, 4.6rem); color: #b8892f;
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 2px 0 rgba(255, 255, 255, .95)) drop-shadow(0 6px 14px rgba(107, 74, 122, .35));
}
.hero-names .nm { display: inline-block; padding: 0 .1em; white-space: nowrap; }
.hero-names .ch { display: inline-block; }
.hero-names .amp { display: inline-block; font-family: var(--serif); font-style: italic; font-size: .55em; color: var(--pink-d); }
.hero-names.foil { animation: none; background: none; -webkit-text-fill-color: initial; }
.hero-names.foil .nm {
    background: linear-gradient(100deg, #8f6522 0%, #c09440 20%, #e2b95c 32%, #a8792a 46%, #d4a84e 60%, #9a6d22 74%, #c09440 88%, #8f6522 100%); background-size: 260% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: foil 7s linear infinite;
}

.date-plaque {
    position: relative; margin-top: 10px;
    display: inline-flex; align-items: center; gap: 14px;
    padding: 12px 24px 10px; border-radius: 100px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 0 1.5px rgba(201, 162, 74, .6), 0 0 0 5px rgba(255, 255, 255, .55), 0 10px 26px rgba(107, 74, 122, .18);
}
.dp-crown { position: absolute; top: -22px; left: 50%; margin-left: -17px; width: 34px; height: 26px; }
.dp-side { font-family: var(--serif); font-weight: 600; font-size: 1rem; color: var(--plum); letter-spacing: .04em; }
.dp-day {
    font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1;
    background: var(--foil); background-size: 260% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: foil 7s linear infinite;
}

.scroll-hint {
    position: absolute; bottom: 22px; left: 50%; margin-left: -12px; z-index: 3;
    width: 24px; height: 38px; border: 1.8px solid rgba(201, 162, 74, .9); border-radius: 14px; background: rgba(255, 255, 255, .5);
}
.scroll-hint span {
    position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
    border-radius: 2px; background: var(--pink); animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(13px); } }

/* ════════════════════════════
   CLOUD BANDS between sections
════════════════════════════ */
.cloud-band { position: absolute; top: -46px; left: -12%; right: -12%; height: 90px; z-index: 4; pointer-events: none; }
.cb { position: absolute; height: auto; aspect-ratio: 120 / 64; filter: drop-shadow(0 6px 10px rgba(203, 182, 236, .25)); }
.cb { width: 24%; max-width: 290px; }
.cb.c1 { left: 0;   bottom: 4px; }
.cb.c2 { left: 16%; bottom: 16px; width: 20%; }
.cb.c3 { left: 33%; bottom: -2px; }
.cb.c4 { left: 52%; bottom: 12px; width: 20%; }
.cb.c5 { left: 66%; bottom: 0; }
.cb.c6 { right: 0;  bottom: 14px; width: 22%; }

/* ════════════════════════════
   SECTION BACKGROUNDS
════════════════════════════ */
.quote          { background: linear-gradient(180deg, #fff3ec 0%, #fdeef6 100%); }
.couple         { background: linear-gradient(180deg, #fdeef6 0%, #f1e8fd 100%); }
.event          { background: linear-gradient(180deg, #f1e8fd 0%, #fff0e6 100%); }
.map-section    { background: linear-gradient(180deg, #fff0e6 0%, #e9f3fd 100%); }
.gallery        { background: linear-gradient(180deg, #e9f3fd 0%, #fdeef6 100%); }
.wishes-section { background: linear-gradient(180deg, #f6eafd 0%, #ecdff9 100%); }

/* ════════════════════════════
   SECTION HEAD
════════════════════════════ */
.section-head { text-align: center; margin-bottom: 40px; }
.sh-crown { display: block; width: 46px; height: 36px; margin: 0 auto 4px; --fx-d: 3.4s; }
.eyebrow { font-family: var(--script); font-size: 1.75rem; color: #e06f98; line-height: 1.3; }
.section-title {
    font-family: var(--display); font-weight: 600; letter-spacing: .08em;
    font-size: clamp(1.75rem, 7.4vw, 2.6rem); color: var(--plum); line-height: 1.25;
    text-shadow: 0 2px 0 #fff;
}
.flourish { display: block; width: 230px; height: 30px; margin: 8px auto 0; }
.fl { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; }
.fl-heart { fill: var(--pink); }
.fl-dot { fill: var(--gold); }
.section-intro { text-align: center; max-width: 540px; margin: -14px auto 46px; font-family: var(--serif); font-size: 1.12rem; color: var(--text); }

/* ════════════════════════════
   STORY PAGE (quote + rsvp)
════════════════════════════ */
.story-page {
    position: relative; max-width: 620px; margin: 0 auto; text-align: center;
    padding: 70px 36px 34px; border-radius: 24px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(253, 228, 238, .6), transparent 60%),
        linear-gradient(180deg, #fffdf8 0%, #fff6ec 100%);
    box-shadow: var(--ring), var(--shadow);
}
.sp-corner { position: absolute; width: 62px; height: 62px; pointer-events: none; }
.sp-corner.tl { top: 10px; left: 10px; }
.sp-corner.tr { top: 10px; right: 10px; }
.sp-corner.bl { bottom: 10px; left: 10px; }
.sp-corner.br { bottom: 10px; right: 10px; }
.sp-crown { position: absolute; top: -30px; left: 50%; margin-left: -34px; width: 68px; height: 52px; }
.sp-eyebrow { font-family: var(--script); font-size: 2rem; color: #e06f98; line-height: 1.2; margin-bottom: 10px; }
.quote-text { font-family: var(--serif); font-style: italic; font-size: 1.22rem; line-height: 1.8; color: var(--text); }
.quote-text .w { display: inline-block; }
.story-page cite { display: inline-block; margin-top: 16px; font-style: normal; font-family: var(--display); font-size: .74rem; letter-spacing: .3em; color: var(--gold-d); }
.sp-garland { display: block; width: min(100%, 380px); height: 76px; margin: 14px auto 0; }

/* ════════════════════════════
   COUPLE
════════════════════════════ */
.couple-flex { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 18px; }
.couple-item { text-align: center; }
.portrait { position: relative; width: 220px; height: 280px; margin: 40px auto 30px; }
.p-photo {
    position: absolute; inset: 21px 19px; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .85) 0, transparent 42%),
        linear-gradient(160deg, #d9ebfc 0%, #a3cbf0 100%);
}
.p-photo.bride {
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .85) 0, transparent 42%),
        linear-gradient(160deg, #ffdce8 0%, #f39abb 100%);
}
.p-photo span { font-family: var(--script); font-size: 6.2rem; color: #fff; text-shadow: 0 4px 16px rgba(107, 74, 122, .3); line-height: 1; }
.p-frame { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(107, 74, 122, .18)); }
.p-crown { position: absolute; top: -40px; left: 50%; margin-left: -38px; width: 76px; }
.p-crown svg { width: 76px; height: 58px; display: block; animation: bobSm 2.4s ease-in-out infinite alternate; filter: drop-shadow(0 4px 6px rgba(168, 121, 42, .35)); }
.p-roses { position: absolute; bottom: -22px; left: 50%; margin-left: -80px; width: 160px; height: 62px; }
.p-roses svg { position: absolute; }
.pr-leaf { width: 54px; height: 22px; bottom: 18px; }
.pr-leaf.l { left: 2px; }
.pr-leaf.r { right: 2px; }
.pr-rose { filter: drop-shadow(0 3px 4px rgba(107, 74, 122, .2)); }
.pr-rose.a { left: 26px;  bottom: 6px; width: 38px; height: 38px; }
.pr-rose.b { left: 56px;  bottom: 0;   width: 48px; height: 48px; }
.pr-rose.c { left: 96px;  bottom: 6px; width: 38px; height: 38px; }
.role { font-family: var(--display); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-d); }
.couple-item .name { font-family: var(--script); font-weight: 400; font-size: 2.6rem; line-height: 1.25; color: var(--plum); }
.couple-item .parent { font-family: var(--serif); font-size: 1.08rem; color: var(--muted); line-height: 1.6; margin-top: 4px; }

.swans-wrap { position: relative; width: 170px; align-self: center; margin-top: 60px; }
.swans-glide { animation: driftX 4s ease-in-out infinite alternate; }
.swans { width: 170px; height: auto; aspect-ratio: 220 / 150; display: block; }
.float-heart { position: absolute; bottom: 60%; width: 16px; height: 16px; fill: var(--pink); opacity: 0; animation: heartRise 3.6s ease-in infinite; }
.float-heart svg { width: 100%; height: 100%; display: block; }
.float-heart.h1 { left: 44%; }
.float-heart.h2 { left: 32%; width: 11px; height: 11px; animation-delay: 1.2s; fill: #cdb6f2; }
.float-heart.h3 { left: 58%; width: 13px; height: 13px; animation-delay: 2.4s; fill: #f6a6c2; }
@keyframes heartRise {
    0%   { opacity: 0; transform: translateY(0) scale(.5); }
    20%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-80px) translateX(10px) scale(1.1); }
}

/* ════════════════════════════
   EVENT
════════════════════════════ */
.countdown { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; perspective: 700px; }
.time-box { text-align: center; }
.tb-frame {
    position: relative; width: 74px; height: 84px; perspective: 300px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 40px 40px 14px 14px;
    background: linear-gradient(180deg, #fffdf8 0%, #fff1f6 100%);
    box-shadow: 0 0 0 1.5px #d9b45e, 0 0 0 5px #fff, 0 0 0 6.5px rgba(201, 162, 74, .5), 0 12px 24px rgba(107, 74, 122, .16);
}
.tb-frame::before {
    content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
    background: linear-gradient(135deg, #fff1c1, #c9a24a); transform: rotate(45deg);
    box-shadow: 0 0 0 2px #fff;
}
.tb-frame .num { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.95rem; color: var(--gold-d); line-height: 1; }
.time-box label { display: block; margin-top: 12px; font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.carriage-road { position: relative; height: 150px; max-width: 560px; margin: 0 auto 40px; }
.carriage-move { position: absolute; left: 50%; bottom: 8px; width: 170px; margin-left: -85px; }
.carriage-bob { animation: bobSm .5s ease-in-out infinite alternate; }
.carriage { width: 170px; height: auto; aspect-ratio: 200 / 160; display: block; filter: drop-shadow(0 10px 10px rgba(107, 74, 122, .18)); }
.road-line {
    position: absolute; left: 4%; right: 4%; bottom: 6px; height: 6px;
    background: radial-gradient(circle, #e8c46a 0 2px, transparent 2.4px) 0 50% / 14px 6px repeat-x;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.decree { position: relative; padding: 0 4px 26px; }
.rod {
    position: relative; z-index: 2; height: 22px; margin: 0 -4px; border-radius: 11px;
    background: linear-gradient(180deg, #fff1c1 0%, #e2b95c 40%, #a8792a 80%, #e8c46a 100%);
    box-shadow: 0 5px 10px rgba(107, 74, 122, .25);
}
.rod::before, .rod::after {
    content: ""; position: absolute; top: -3px; width: 18px; height: 28px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff1c1, #c9a24a 60%, #8f6522);
}
.rod::before { left: -12px; }
.rod::after  { right: -12px; }
.paper {
    position: relative; margin: -8px 10px; padding: 40px 22px 56px; text-align: center;
    background: linear-gradient(90deg, #f3e4cc 0%, #fffaf0 7%, #fffdf8 50%, #fffaf0 93%, #f3e4cc 100%);
    box-shadow: inset 0 10px 12px -8px rgba(120, 80, 40, .22), inset 0 -10px 12px -8px rgba(120, 80, 40, .22), 0 14px 30px rgba(107, 74, 122, .12);
}
.paper::before {
    content: ""; position: absolute; inset: 14px 10px; border: 1px solid rgba(201, 162, 74, .45); border-radius: 6px; pointer-events: none;
}
.dc-crown { display: block; width: 44px; height: 34px; margin: 0 auto 4px; }
.event-title { font-family: var(--script); font-weight: 400; font-size: 2.5rem; line-height: 1.2; color: var(--plum); }
.dc-line {
    width: 140px; height: 12px; margin: 6px auto 12px;
    background: radial-gradient(circle at 6px 6px, #fff 0 1.6px, #f3e6d4 2.6px, #e2c98c 4.6px, transparent 5px) 0 0 / 14px 12px repeat-x;
}
.event-date { font-family: var(--display); font-weight: 500; font-size: .95rem; letter-spacing: .04em; color: var(--plum); }
.event-time {
    display: inline-block; margin: 10px 0; padding: 4px 16px; border-radius: 100px;
    background: var(--pink-s); color: var(--pink-d); font-weight: 600; font-size: .9rem;
}
.event-location { font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--text); }
.wax {
    position: absolute; bottom: -20px; left: 50%; margin-left: -26px; z-index: 3;
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, #ff9fc0 0%, #e2628f 55%, #b8406b 100%);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .18), 0 6px 12px rgba(150, 40, 80, .35);
}
.wax::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.3px dashed rgba(255, 225, 236, .75); }
.wax svg { width: 20px; height: 20px; fill: #ffe1ec; }

/* ════════════════════════════
   MAP
════════════════════════════ */
.map-wrap { position: relative; max-width: 660px; margin: 0 auto; }
.map-balloon { position: absolute; top: -78px; right: -4px; width: 54px; z-index: 3; }
.map-balloon .bob { animation: bob 4.6s ease-in-out infinite alternate; }
.map-balloon svg { width: 100%; height: auto; aspect-ratio: 100 / 150; display: block; }
.royal-frame { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--ring), var(--shadow); }
.map-info { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; flex-wrap: wrap; }
.map-detail { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 200px; }
.map-icon {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--pink-s); color: var(--pink-d); box-shadow: 0 0 0 1.5px rgba(201, 162, 74, .5);
}
.map-venue { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--plum); line-height: 1.4; }
.map-address { font-family: var(--serif); font-size: 1rem; color: var(--muted); line-height: 1.5; }
.leaflet-map { height: 300px; width: 100%; z-index: 1; }
.map-embed-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    height: 220px; background: var(--pink-s); color: var(--pink-d); text-decoration: none;
}

/* ════════════════════════════
   GALLERY
════════════════════════════ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1100px; }
.g-item {
    position: relative; padding: 6px; border-radius: 20px; cursor: pointer;
    background: linear-gradient(135deg, #fff1c1 0%, #d9b45e 30%, #f3d98b 55%, #b8892f 80%, #f3d98b 100%);
    box-shadow: 0 14px 28px rgba(107, 74, 122, .16);
}
.g-item::after {
    content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
    background: #fff; border: 2px solid #d9b45e; transform: rotate(45deg); border-radius: 2px;
}
.g-inner {
    position: relative; border-radius: 15px; overflow: hidden; aspect-ratio: 4 / 5;
    border: 3px solid #fff;
    background: linear-gradient(160deg, #fffdf8 0%, var(--pink-s) 55%, var(--lilac) 100%);
    display: flex; align-items: center; justify-content: center;
}
.g-inner img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.g-item:hover .g-inner img { transform: scale(1.06); }
.g-item:first-child { grid-column: span 2; }
.g-item:first-child .g-inner { aspect-ratio: 16 / 10; border-radius: 120px 120px 15px 15px; }
.g-item:first-child { border-radius: 126px 126px 20px 20px; }
.g-item.placeholder { cursor: default; }
.ph-ico { width: 38%; height: auto; aspect-ratio: 100 / 150; opacity: .5; }
.ph-ico.wide { width: 46%; aspect-ratio: 220 / 150; }
.ph-ico.crown { width: 40%; aspect-ratio: 60 / 46; }

.gallery-lightbox {
    display: none; position: fixed; inset: 0; z-index: 10000; opacity: 0;
    align-items: center; justify-content: center;
    background: rgba(63, 50, 99, .93); transition: opacity .3s;
}
.lb-img-wrap img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 14px; border: 4px solid #f3d98b; }
.lb-close, .lb-prev, .lb-next {
    position: absolute; background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(243, 217, 139, .6); cursor: pointer;
    width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.lb-close { top: 20px; right: 20px; font-size: 1.1rem; }
.lb-prev  { left: 14px; top: 50%; margin-top: -23px; font-size: 2rem; }
.lb-next  { right: 14px; top: 50%; margin-top: -23px; font-size: 2rem; }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #f3d98b; font-family: var(--display); font-size: .8rem; letter-spacing: .15em; }

/* ════════════════════════════
   GIFT PARTIAL — fairytale skin
════════════════════════════ */
#gift-section {
    position: relative; z-index: 2;
    background: linear-gradient(180deg, #fdeef6 0%, #f6eafd 100%) !important;
}
#gift-section .gs-heading h2 {
    color: var(--plum) !important; font-family: var(--display) !important; font-weight: 600 !important;
    letter-spacing: .08em; font-size: clamp(1.6rem, 6.5vw, 2.3rem) !important;
}
#gift-section .gs-heading h2::after { background: var(--gold) !important; width: 60px !important; }
#gift-section .gs-heading p { color: #e06f98 !important; font-family: var(--script) !important; font-size: 1.5rem !important; }
#gift-section .gs-sub-label { color: var(--gold-d) !important; font-family: var(--display) !important; }
#gift-section .gs-card, #gift-section .gs-bank-card {
    border-radius: 20px !important; background: #fffdf9 !important;
    box-shadow: 0 0 0 1.5px rgba(201, 162, 74, .5), 0 14px 28px rgba(107, 74, 122, .14) !important;
}
#gift-section .gs-btn-buy, #gift-section .gs-sbtn {
    background: linear-gradient(135deg, #f3d98b, #c9a24a 50%, #b8892f) !important; color: #fff !important; border: none !important;
}
#gift-section .gs-price { color: var(--pink-d) !important; }

/* ════════════════════════════
   WISHES / RSVP
════════════════════════════ */
.rsvp-card { padding: 54px 28px 34px; margin-bottom: 38px; text-align: left; }
.fd-form { position: relative; z-index: 1; }
.fd-form .input-row { margin-bottom: 18px; }
.fd-form label {
    display: block; font-family: var(--display); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold-d); margin-bottom: 8px;
}
.fd-form input[type="text"], .fd-form textarea {
    width: 100%; padding: 13px 16px; border-radius: 14px;
    border: 1.5px solid #f0dce8; background: #fff;
    font-family: var(--serif); font-size: 1.08rem; color: var(--text);
    transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.fd-form input::placeholder, .fd-form textarea::placeholder { color: #c4adc6; font-style: italic; }
.fd-form input:focus, .fd-form textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(240, 125, 164, .15); }
.attend-options { display: flex; gap: 10px; flex-wrap: wrap; }
.attend-opt { margin: 0 !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font-family: var(--sans) !important; }
.attend-opt input { position: absolute; opacity: 0; pointer-events: none; }
.attend-opt span {
    display: inline-block; padding: 8px 18px; border-radius: 100px; font-size: .88rem; font-weight: 500;
    border: 1.5px solid #f0dce8; background: #fff; color: var(--text); transition: .25s;
}
.attend-opt input:checked + span { background: linear-gradient(135deg, #f6a6c2, #e06f98); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(224, 111, 152, .35); }
.attend-opt input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }

.wishes-list {
    display: flex; flex-direction: column; gap: 14px;
    max-height: 540px; overflow-y: auto; padding: 4px 6px 4px 2px;
    scrollbar-width: thin; scrollbar-color: #e8c46a transparent;
}
.wish-item {
    position: relative; display: flex; gap: 14px; padding: 18px; border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 0 0 1px rgba(201, 162, 74, .35), 0 8px 18px rgba(107, 74, 122, .08);
}
.wish-avatar {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, #ffd1e0, #e06f98);
    color: #fff; font-family: var(--script); font-size: 1.5rem;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #d9b45e;
}
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wish-name { font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--plum); }
.wish-badge { font-size: .66rem; font-weight: 600; padding: 2px 10px; border-radius: 100px; letter-spacing: .04em; }
.wish-badge.hadir { background: #e3f3e6; color: #3f7a4d; }
.wish-badge.tidak { background: #fde3e8; color: #b8405c; }
.wish-badge.ragu  { background: #fdf0dc; color: #a57a2c; }
.wish-message { font-family: var(--serif); font-size: 1.05rem; margin: 6px 0 4px; line-height: 1.6; word-wrap: break-word; }
.wish-time { font-size: .72rem; color: var(--muted); }
.wish-empty { text-align: center; padding: 30px; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.1rem; background: rgba(255, 255, 255, .7); border-radius: 18px; }

/* ════════════════════════════
   FOOTER — happily ever after
════════════════════════════ */
.footer {
    position: relative; overflow-x: clip; text-align: center; color: #fff;
    padding: 0 20px 150px;
    background: linear-gradient(180deg, #ecdff9 0%, #c3aee8 22%, #8b74c0 55%, #4d3d78 82%, #3a2d61 100%);
}
.footer-sky { position: relative; height: 340px; margin: 0 -20px; }
.footer-stars { bottom: 30%; }
.footer-moon { position: absolute; top: 70px; right: 12%; width: 58px; height: 58px; }
.footer-balloon { position: absolute; bottom: 30%; animation: rise 14s linear infinite; }
.footer-balloon svg { width: 100%; height: auto; aspect-ratio: 100 / 150; display: block; }
.footer-balloon.fb1 { left: 9%;  width: 40px; }
.footer-balloon.fb2 { right: 10%; width: 46px; animation-delay: -5s; animation-duration: 17s; }
.footer-balloon.fb3 { left: 72%; width: 26px; animation-delay: -10s; animation-duration: 12s; }
@keyframes rise {
    0%   { transform: translateY(80px) rotate(-3deg); opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translateY(-80px) rotate(3deg); }
    90%  { opacity: 1; }
    100% { transform: translateY(-240px) rotate(-3deg); opacity: 0; }
}
.footer-castle {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto;
    width: min(76vw, 320px); height: auto; aspect-ratio: 1;
    filter: drop-shadow(0 0 30px rgba(255, 220, 160, .45)) saturate(.9) brightness(.94);
}
.footer-clouds { position: absolute; left: 0; right: 0; bottom: -46px; height: 300px;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 96%); mask-image: linear-gradient(180deg, #000 72%, transparent 96%); }
.fc { position: absolute; height: auto; aspect-ratio: 120 / 64; opacity: .96; max-width: 460px; }
.fc.c1 { left: -8%; bottom: 0; width: 46%; }
.fc.c2 { right: -10%; bottom: 4px; width: 50%; }
.fc.c3 { left: 50%; transform: translateX(-50%); bottom: -10px; width: 48%; opacity: .92; }
.footer-inner { position: relative; z-index: 2; max-width: 560px; margin: 30px auto 0; }
.footer-crown { width: 60px; height: 46px; display: block; margin: 0 auto 6px; }
.footer-ever {
    font-family: var(--script); font-size: clamp(2rem, 8.6vw, 2.8rem); line-height: 1.25;
    background: var(--foil); background-size: 260% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: foil 7s linear infinite;
}
.footer-copy { font-family: var(--serif); font-size: 1.1rem; color: #f3eaff; opacity: .92; margin: 12px auto 22px; }
.footer-names { font-family: var(--display); font-weight: 600; font-size: 1.6rem; letter-spacing: .06em; color: #fff; }
.footer-names em { font-family: var(--script); font-style: normal; color: #ffb8cf; font-weight: 400; }
.footer .fl { stroke: var(--gold-l); }
.footer-credit { margin-top: 34px; font-size: .72rem; color: #e8dcff; opacity: .65; letter-spacing: .06em; }

/* ════════════════════════════
   AMBIENT LAYERS
════════════════════════════ */
.fd-particles { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.butterfly-layer { position: fixed; inset: 0; z-index: 35; pointer-events: none; overflow: hidden; }
.butterfly { position: absolute; top: 0; left: 0; width: 36px; height: 30px; }
.butterfly { filter: drop-shadow(0 4px 4px rgba(107, 74, 122, .18)); }
.butterfly svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* kepakan sayap: transform saja (composited), pengganti animateTransform SMIL */
.bf-wings { position: absolute; inset: 0; animation: flap .36s linear infinite; }
@keyframes flap { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.22); } }
.butterfly.fly-0 { animation: fly0 24s linear infinite; }
.butterfly.fly-1 { animation: fly1 29s linear infinite; width: 30px; height: 25px; }
.butterfly.fly-2 { animation: fly2 34s linear infinite; width: 26px; height: 22px; }
.butterfly.fly-3 { animation: fly3 27s linear infinite -8s; width: 32px; height: 27px; }
@keyframes fly0 {
    0%   { transform: translate(-10vw, 72vh) rotate(18deg); }
    25%  { transform: translate(28vw, 48vh) rotate(8deg); }
    50%  { transform: translate(55vw, 62vh) rotate(24deg); }
    75%  { transform: translate(80vw, 32vh) rotate(6deg); }
    100% { transform: translate(110vw, 18vh) rotate(14deg); }
}
@keyframes fly1 {
    0%   { transform: translate(110vw, 26vh) rotate(-18deg) scaleX(-1); }
    30%  { transform: translate(70vw, 42vh) rotate(-8deg) scaleX(-1); }
    60%  { transform: translate(34vw, 22vh) rotate(-24deg) scaleX(-1); }
    100% { transform: translate(-10vw, 52vh) rotate(-10deg) scaleX(-1); }
}
@keyframes fly2 {
    0%   { transform: translate(18vw, 110vh) rotate(8deg); }
    40%  { transform: translate(42vw, 70vh) rotate(-6deg); }
    70%  { transform: translate(14vw, 36vh) rotate(14deg); }
    100% { transform: translate(62vw, -10vh) rotate(0deg); }
}
@keyframes fly3 {
    0%   { transform: translate(90vw, 110vh) rotate(-10deg) scaleX(-1); }
    35%  { transform: translate(66vw, 66vh) rotate(6deg) scaleX(-1); }
    70%  { transform: translate(84vw, 30vh) rotate(-14deg) scaleX(-1); }
    100% { transform: translate(40vw, -10vh) rotate(0deg) scaleX(-1); }
}

.fx-layer { position: fixed; inset: 0; z-index: 10001; pointer-events: none; overflow: hidden; }
.fx {
    position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px;
    animation: fxOut var(--d, 1.2s) cubic-bezier(.2, .8, .3, 1) forwards;
}
.fx svg { width: 100%; height: 100%; display: block; }
.fx-star svg { filter: drop-shadow(0 0 3px rgba(255, 240, 200, .9)); }
.fx-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; box-shadow: 0 0 6px rgba(255, 255, 255, .9); }
@keyframes fxOut {
    0%   { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 1; }
    20%  { transform: translate(calc(var(--dx) * .45), calc(var(--dy) * .45)) scale(var(--s)) rotate(calc(var(--rot) * .3)); opacity: 1; }
    100% { transform: translate(var(--dx), calc(var(--dy) + 70px)) scale(calc(var(--s) * .6)) rotate(var(--rot)); opacity: 0; }
}

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 760px) {
    main > section { padding: 104px 0 96px; }
    .couple-flex { grid-template-columns: 1fr; gap: 6px; }
    .swans-wrap { margin: 0 auto 10px; width: 150px; }
    .swans { width: 150px; }
    .portrait { width: 200px; height: 255px; }
    .p-photo { inset: 19px 17px; }
    .event-grid { grid-template-columns: 1fr; gap: 40px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .story-page { padding: 64px 24px 30px; }
    .sp-corner { width: 50px; height: 50px; }
    .map-info { flex-direction: column; align-items: stretch; }
    .countdown { gap: 9px; }
    .tb-frame { width: 66px; height: 78px; }
    .tb-frame .num { font-size: 1.7rem; }
}
@media (max-width: 360px) {
    .cv-corner { width: 52px; height: 52px; }
    .cv-content { padding: 34px 24px 28px 34px; }
}
@media (min-width: 900px) {
    .balloon.bl1 { left: 14%; width: 80px; }
    .balloon.bl2 { right: 15%; width: 70px; }
    .balloon.bl3 { right: 24%; top: 60%; width: 54px; }
    .balloon.bl4 { left: 24%; width: 40px; }
    .moon-wrap { right: 18%; width: 84px; height: 84px; }
    .castle-pop { width: min(420px, 48vh); bottom: 12%; }
    .footer-sky { height: 380px; }
    .intro-balloon.ib1 { left: 20%; top: 30%; width: 74px; }
    .intro-balloon.ib2 { right: 21%; top: 55%; width: 62px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .fd-particles, .butterfly-layer, .fx-layer { display: none; }
}
