/* ════════════════════════════════════════════════════════════════
   LOVEGRAM — a dreamy couple profile in blush, ivory, sage & gold
   ════════════════════════════════════════════════════════════════ */
:root {
    --ivory: #fbf6f0;
    --paper: #fffdf9;
    --champagne: #f3e6d6;
    --blush: #f2c9c6;
    --blush-l: #f9e7e2;
    --rose: #d98e8e;
    --rose-d: #b86b72;
    --sage: #a9b8a0;
    --sage-l: #e3e9dc;
    --sage-d: #7d8f74;
    --gold: #c8a46a;
    --gold-l: #e7d3a8;
    --gold-d: #a8834a;
    --ink: #4a3b36;
    --muted: #9a8a82;
    --line: rgba(200, 164, 106, .32);
    --hair: rgba(74, 59, 54, .09);
    --col: 480px;
    --f-display: 'Cormorant Garamond', Georgia, serif;
    --f-script: 'Great Vibes', cursive;
    --f-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-variant-numeric: lining-nums;
    font-family: var(--f-ui);
    color: var(--ink);
    background:
        radial-gradient(42vmax 42vmax at 8% 12%, rgba(242, 201, 198, .75), transparent 70%),
        radial-gradient(38vmax 38vmax at 92% 28%, rgba(227, 233, 220, .9), transparent 70%),
        radial-gradient(46vmax 46vmax at 78% 96%, rgba(243, 230, 214, .95), transparent 70%),
        radial-gradient(30vmax 30vmax at 16% 88%, rgba(231, 211, 168, .45), transparent 70%),
        #f4ebe3;
    background-attachment: scroll;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; height: 100vh; }
button { font: inherit; color: inherit; }
svg { display: block; }

/* ════════════════════════════════════════════════════════════════
   STORY VIEWER (cover)
   ════════════════════════════════════════════════════════════════ */
.intro {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
}
.intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40vmax 40vmax at 20% 20%, rgba(242, 201, 198, .9), transparent 70%),
        radial-gradient(40vmax 40vmax at 85% 75%, rgba(227, 233, 220, .95), transparent 70%),
        #efe3da;
    transition: opacity .6s ease;
}
.intro.closing::before { opacity: 0; }

.story {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transform-origin: 50% 50%;
    transition: transform .72s cubic-bezier(.65, 0, .3, 1), opacity .3s ease .5s, border-radius .72s ease;
}
.intro.closing .story { opacity: 0; border-radius: 50%; }
@media (min-width: 600px) {
    .story {
        width: auto;
        height: min(92vh, 860px);
        aspect-ratio: 9 / 16;
        border-radius: 26px;
        box-shadow: 0 30px 80px -30px rgba(74, 59, 54, .45);
    }
}

/* progress bars */
.story-bars {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    gap: 5px;
}
.bar {
    flex: 1;
    height: 2.5px;
    border-radius: 3px;
    background: rgba(74, 59, 54, .16);
    overflow: hidden;
}
.bar i {
    display: block;
    height: 100%;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: 0 50%;
}
.bar.done i { transform: scaleX(1); }
.bar.run i { animation: storyFill 4.8s linear forwards; }
.story.paused .bar.run i { animation-play-state: paused; }
@keyframes storyFill { to { transform: scaleX(1); } }

.story-head {
    position: absolute;
    top: 24px;
    left: 14px;
    right: 8px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
}
.sh-av {
    display: flex;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border: 1px solid var(--line);
    font: italic 600 13px/1 var(--f-display);
    color: var(--rose-d);
    letter-spacing: -.02em;
}
.sh-name { font-weight: 700; color: var(--ink); }
.sh-time { color: var(--muted); }
.sh-close {
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    display: grid;
    place-items: center;
    color: var(--ink);
    cursor: pointer;
}

/* slides */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .55s ease;
    overflow: hidden;
    pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.s-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 28px 110px;
}
.slide .s-body > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.slide.active .s-body > * { opacity: 1; transform: none; }
.slide.active .s-body > *:nth-child(2) { transition-delay: .12s; }
.slide.active .s-body > *:nth-child(3) { transition-delay: .24s; }
.slide.active .s-body > *:nth-child(4) { transition-delay: .36s; }
.slide.active .s-body > *:nth-child(5) { transition-delay: .48s; }

.s-kicker {
    margin: 0;
    font: 400 34px/1.1 var(--f-script);
    color: var(--rose-d);
}

/* decorations */
.s-rose, .ma-rose { position: absolute; }
.s-leaf, .ma-leaf { position: absolute; }
.s-spark { position: absolute; fill: currentColor; color: var(--gold); opacity: .8; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .35; } 50% { transform: scale(1) rotate(25deg); opacity: .95; } }
@keyframes sway { 0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); } 50% { transform: rotate(calc(var(--r, 0deg) + 4deg)) translateY(-6px); } }

/* ── slide 1 ── */
.s1 {
    background:
        radial-gradient(70% 45% at 50% 42%, rgba(255, 253, 249, .85), transparent 75%),
        linear-gradient(170deg, #fbe9e4 0%, #f6dad4 48%, #f3e6d6 100%);
}
.s1 .r1 { width: 210px; height: 210px; top: -48px; left: -62px; --r: -12deg; animation: sway 9s ease-in-out infinite; }
.s1 .r2 { width: 240px; height: 240px; bottom: -70px; right: -80px; --r: 18deg; animation: sway 11s ease-in-out infinite; }
.s1 .l1 { width: 120px; height: 60px; top: 112px; left: 70px; --r: 28deg; transform: rotate(28deg); }
.s1 .l2 { width: 130px; height: 64px; bottom: 118px; right: 92px; transform: rotate(-150deg); }
.s1 .l3 { width: 96px; height: 48px; bottom: 30px; left: 30px; transform: rotate(-20deg); opacity: .8; }
.duo { display: flex; align-items: center; margin-bottom: 18px; }
.duo-av {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 30%, #fff, var(--paper) 55%, #f6ebe2);
    box-shadow: 0 14px 30px -16px rgba(184, 107, 114, .55), inset 0 0 0 1px var(--line);
}
.duo-av.b { margin-left: -14px; }
.duo-av b { font: italic 600 46px/1 var(--f-display); color: var(--ink); }
.duo-av.g b { color: var(--sage-d); }
.duo-av.b b { color: var(--rose-d); }
.duo-wreath { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); color: var(--gold); opacity: .8; }
.duo-heart {
    position: relative;
    z-index: 2;
    width: 34px;
    height: 34px;
    margin: 0 -18px 0 -10px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--paper);
    box-shadow: 0 6px 14px -6px rgba(184, 107, 114, .6);
    order: 0;
}
.duo .g { order: -1; }
.duo-heart svg { width: 17px; height: 17px; fill: var(--rose); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(.96); } 45% { transform: scale(1.12); } }
.s-names {
    margin: 4px 0 6px;
    font: italic 600 clamp(38px, 12vw, 52px)/1.02 var(--f-display);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    word-break: break-word;
}
.s-names em { font: 400 .78em/1.1 var(--f-script); color: var(--gold-d); font-style: normal; margin: 2px 0; }
.s-sub {
    margin: 10px 0 0;
    padding: 8px 18px;
    border-radius: 99px;
    background: rgba(255, 253, 249, .78);
    border: 1px solid var(--line);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .04em;
}

/* ── slide 2 ── */
.s2 { background: linear-gradient(180deg, #e2e9da 0%, #eef0e6 45%, #f6efe5 100%); }
.s2-arch {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(78%, 320px);
    height: min(56%, 440px);
    transform: translate(-50%, -52%);
    border-radius: 999px 999px 26px 26px;
    background: linear-gradient(180deg, rgba(255, 253, 249, .95), rgba(251, 246, 240, .75));
    box-shadow: 0 0 0 1px var(--line), 0 0 0 8px rgba(255, 253, 249, .45), 0 0 0 9px var(--line);
}
.s2 .k1 { width: 22px; height: 22px; top: 16%; left: 14%; }
.s2 .k2 { width: 14px; height: 14px; top: 24%; right: 15%; animation-delay: -1.2s; }
.s2 .k3 { width: 18px; height: 18px; bottom: 18%; left: 20%; animation-delay: -2.1s; }
.big-date { display: flex; flex-direction: column; align-items: center; margin: 6px 0 14px; }
.bd-day { font-size: 12px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--sage-d); }
.bd-num { font: 500 clamp(110px, 34vw, 150px)/.92 var(--f-display); color: var(--ink); margin: 8px 0 2px; }
.bd-my { font: italic 600 26px/1.2 var(--f-display); color: var(--rose-d); }
.sticker-cal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 22px -12px rgba(74, 59, 54, .45);
    rotate: -3deg;
}
.sticker-cal svg { color: var(--rose-d); }
.s-place {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--muted);
    max-width: 260px;
}
.s-place svg { flex: none; color: var(--rose-d); }

/* ── slide 3 ── */
.s3 { background: linear-gradient(165deg, #f6dfda 0%, #ecc5c2 55%, #e0aeb0 100%); }
.s3 .r3 { width: 230px; height: 230px; top: -70px; right: -70px; --r: 12deg; animation: sway 10s ease-in-out infinite; }
.s3 .l4 { width: 120px; height: 60px; top: 122px; right: 120px; transform: rotate(160deg); }
.s3 .r4 { width: 200px; height: 200px; bottom: -64px; left: -60px; --r: -10deg; animation: sway 12s ease-in-out infinite; }
.s3 .l5 { width: 110px; height: 55px; bottom: 112px; left: 96px; transform: rotate(-35deg); }
.s3 .k4 { width: 20px; height: 20px; bottom: 22%; left: 12%; color: #fff; }
.s3 .k5 { width: 14px; height: 14px; top: 30%; left: 18%; color: #fff; animation-delay: -1.6s; }
.guest-sticker {
    position: relative;
    width: min(100%, 300px);
    padding: 30px 22px 24px;
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 22px 40px -22px rgba(120, 60, 66, .55);
    rotate: -2.5deg;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.guest-sticker::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    pointer-events: none;
}
.tape {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 92px;
    height: 24px;
    transform: translateX(-50%) rotate(3deg);
    background: rgba(243, 230, 214, .88);
    box-shadow: 0 2px 4px rgba(74, 59, 54, .08);
}
.gk-to { font: 400 30px/1 var(--f-script); color: var(--rose-d); }
.gk-label { margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.gk-name {
    margin: 6px 0 0;
    font: italic 600 clamp(26px, 8vw, 34px)/1.15 var(--f-display);
    color: var(--ink);
    word-break: break-word;
}
.gk-heart {
    position: absolute;
    right: -12px;
    bottom: -12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blush), var(--rose));
    box-shadow: 0 8px 16px -8px rgba(184, 107, 114, .8);
    rotate: 12deg;
}
.gk-heart svg { width: 18px; height: 18px; fill: #fff; }
.s-invite { margin: 26px 0 22px; font-size: 14px; line-height: 1.6; color: #6a4e4b; }
.btn-open {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 0;
    border-radius: 99px;
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 14px 28px -14px rgba(120, 60, 66, .7);
}
.btn-open::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1.5px solid rgba(255, 253, 249, .9);
    animation: ringOut 2.2s ease-out infinite;
    pointer-events: none;
}
@keyframes ringOut { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.18, 1.5); opacity: 0; } }

.swipe-up {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 16px;
    border: 0;
    background: none;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--ink);
    cursor: pointer;
    transition: opacity .35s ease;
}
.swipe-up svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-4px); } }
.story.last .swipe-up { opacity: 0; pointer-events: none; }
.tap-zones { display: none; }

/* ════════════════════════════════════════════════════════════════
   MUSIC BUTTON
   ════════════════════════════════════════════════════════════════ */
.music-toggle-btn {
    position: fixed;
    top: 6px;
    right: max(10px, calc(50vw - var(--col) / 2 + 10px));
    z-index: 1002;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    border: 1px solid var(--gold-l);
    background: var(--paper);
    color: var(--rose-d);
    box-shadow: 0 6px 16px -8px rgba(74, 59, 54, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease, transform .25s var(--spring);
    -webkit-tap-highlight-color: transparent;
}
body.opened .music-toggle-btn { opacity: 1; pointer-events: auto; }
.music-toggle-btn:hover { transform: scale(1.06); }
.music-toggle-btn svg { width: 18px; height: 18px; }
.music-toggle-btn::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1.5px solid var(--rose);
    opacity: 0;
    pointer-events: none;
}
.music-toggle-btn.playing::after { animation: musicRing 2s ease-out infinite; }
@keyframes musicRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* ════════════════════════════════════════════════════════════════
   APP SHELL
   ════════════════════════════════════════════════════════════════ */
.app {
    position: relative;
    max-width: var(--col);
    min-height: 100vh;
    margin: 0 auto;
    background-color: var(--ivory);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .23 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    box-shadow: 0 0 0 1px rgba(200, 164, 106, .18), 0 30px 80px -40px rgba(74, 59, 54, .35);
}
body.has-qr .app { padding-bottom: 96px; }

.app-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 54px;
    display: flex;
    align-items: center;
    padding: 0 60px 0 16px;
    background: rgba(251, 246, 240, .94);
    border-bottom: 1px solid var(--hair);
}
.wordmark { font: 400 31px/1 var(--f-script); color: var(--ink); padding-top: 4px; }
.bar-icons { margin-left: auto; display: flex; gap: 2px; }
.ic-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--ink);
}
.ic-btn .dot {
    position: absolute;
    top: 9px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rose);
    box-shadow: 0 0 0 2px var(--ivory);
}

/* ── profile ── */
.profile { padding: 20px 16px 0; }
.pf-top { display: flex; align-items: center; gap: 18px; }
.pf-av { position: relative; flex: none; width: 96px; height: 96px; }
.pf-av .ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--gold), var(--rose), var(--blush), var(--sage), var(--gold-l), var(--gold));
    animation: spin 7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pf-av-in {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 3.5px solid var(--ivory);
    background: radial-gradient(circle at 35% 30%, #fff, var(--blush-l) 70%, var(--blush));
}
.pf-wreath { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); color: var(--gold); opacity: .75; }
.pf-av-in b { position: relative; font: italic 600 27px/1 var(--f-display); color: var(--ink); letter-spacing: -.02em; }
.pf-av-in b em { font: 400 .8em/1 var(--f-script); color: var(--rose-d); margin: 0 1px; font-style: normal; }
.pf-av.greet .pf-av-in { animation: greet .7s var(--spring); }
@keyframes greet { 0% { transform: scale(.7); } 100% { transform: scale(1); } }

.pf-stats { flex: 1; display: flex; justify-content: space-around; margin: 0; padding: 0; list-style: none; }
.pf-stats li { display: flex; flex-direction: column; align-items: center; }
.pf-stats b { font: 600 25px/1.1 var(--f-display); }
.pf-stats span { font-size: 12.5px; color: var(--muted); }

.pf-name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 16px 0 0;
    font: 600 23px/1.2 var(--f-display);
}
.verified { flex: none; }
.pf-cat { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.pf-bio { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.pf-loc { display: inline-flex; align-items: center; gap: 4px; color: var(--rose-d); font-weight: 600; }
.pf-loc svg { flex: none; }

.pf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.btn-follow, .btn-ghost {
    height: 40px;
    border-radius: 11px;
    border: 0;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s var(--spring), background .25s ease, color .25s ease;
}
.btn-follow { background: linear-gradient(135deg, #e3a3a5, var(--rose-d)); color: #fff; box-shadow: 0 8px 18px -10px rgba(184, 107, 114, .9); }
.btn-follow.following { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost { background: var(--champagne); color: var(--ink); }
.btn-follow:active, .btn-ghost:active { transform: scale(.97); }

.highlights {
    display: flex;
    gap: 12px;
    margin: 20px -16px 0;
    padding: 0 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.highlights::-webkit-scrollbar { display: none; }
.hl {
    flex: none;
    width: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
    color: var(--ink);
}
.hl-c {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    padding: 3px;
    border: 1px solid var(--gold-l);
    background: var(--ivory);
    display: grid;
    place-items: center;
    transition: transform .25s var(--spring);
}
.hl-c svg {
    width: 100%;
    height: 100%;
    padding: 15px;
    border-radius: 50%;
    color: var(--rose-d);
    background: radial-gradient(circle at 35% 30%, #fff, var(--blush-l) 80%);
}
.hl:nth-child(2) .hl-c svg { color: var(--gold-d); background: radial-gradient(circle at 35% 30%, #fff, #f6ecd9 80%); }
.hl:nth-child(3) .hl-c svg { color: var(--sage-d); background: radial-gradient(circle at 35% 30%, #fff, var(--sage-l) 80%); }
.hl:nth-child(4) .hl-c svg { color: var(--rose-d); background: radial-gradient(circle at 35% 30%, #fff, #f4e3e9 80%); }
.hl:nth-child(5) .hl-c svg { color: var(--gold-d); background: radial-gradient(circle at 35% 30%, #fff, var(--champagne) 80%); }
.hl:active .hl-c { transform: scale(.92); }

.tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 16px -16px 0;
    border-top: 1px solid var(--hair);
}
.tab {
    height: 46px;
    display: grid;
    place-items: center;
    color: #c2b5ad;
    border-top: 1.5px solid transparent;
    margin-top: -1px;
}
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--ink); border-top-color: var(--ink); }

/* ════════════════════════════════════════════════════════════════
   FEED
   ════════════════════════════════════════════════════════════════ */
.feed { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.post {
    background: var(--paper);
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
    padding-bottom: 14px;
    scroll-margin-top: 58px;
}
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].shown { opacity: 1; transform: none; }

.post-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.ph-av {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(var(--gold), var(--rose), var(--sage), var(--gold));
    display: grid;
    place-items: center;
}
.ph-av b, .ph-av svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--paper);
    background: var(--blush-l);
    display: grid;
    place-items: center;
    font: italic 600 13px/1 var(--f-display);
    color: var(--rose-d);
    letter-spacing: -.03em;
}
.ph-av.gift svg { padding: 6px; color: var(--rose-d); }
.ph-meta { display: flex; flex-direction: column; min-width: 0; }
.ph-meta b { font-size: 13.5px; font-weight: 700; }
.ph-meta small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-more { margin-left: auto; flex: none; color: var(--muted); }

.post-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* announcement */
.m-announce {
    background:
        radial-gradient(60% 40% at 50% 45%, rgba(255, 253, 249, .9), transparent 75%),
        linear-gradient(160deg, #fae9e4, #f3e6d6);
}
.ma-rose.a { width: 170px; height: 170px; top: -46px; right: -50px; }
.ma-rose.b { width: 140px; height: 140px; bottom: -40px; left: -40px; }
.ma-leaf.a { width: 100px; height: 50px; top: 92px; right: 62px; transform: rotate(150deg); }
.ma-leaf.b { width: 92px; height: 46px; bottom: 74px; left: 70px; transform: rotate(-30deg); }
.ma-arch {
    position: absolute;
    inset: 10% 15%;
    border-radius: 999px 999px 20px 20px;
    border: 1px solid var(--gold);
    background: rgba(255, 253, 249, .78);
    box-shadow: 0 0 0 6px rgba(255, 253, 249, .5), 0 0 0 7px var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 14px;
}
.ma-script { margin: 0; font: 400 clamp(26px, 8vw, 34px)/1.1 var(--f-script); color: var(--rose-d); }
.ma-rule { width: 56px; height: 1px; background: var(--gold); margin: 16px 0; }
.ma-names {
    margin: 0;
    font: italic 600 clamp(32px, 10vw, 42px)/1.02 var(--f-display);
    display: flex;
    flex-direction: column;
    align-items: center;
    word-break: break-word;
}
.ma-names em { font: 400 .78em/1.15 var(--f-script); font-style: normal; color: var(--gold-d); }
.ma-date { margin: 18px 0 0; font-size: 11.5px; font-weight: 600; letter-spacing: .3em; color: var(--muted); }

/* couple carousel */
.carousel {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.cs {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}
.cs.groom { background: radial-gradient(60% 45% at 50% 40%, rgba(255, 253, 249, .85), transparent 75%), linear-gradient(170deg, #eef1ea, #dde5d6); }
.cs.bride { background: radial-gradient(60% 45% at 50% 40%, rgba(255, 253, 249, .85), transparent 75%), linear-gradient(170deg, #fbece8, #f2d4cf); }
.mp-label { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.mp-portrait {
    position: relative;
    width: 168px;
    height: 168px;
    margin: 20px 0 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 30%, #fff, var(--paper) 60%, #f3ece3);
    box-shadow: 0 18px 36px -20px rgba(74, 59, 54, .5), inset 0 0 0 1px var(--line), 0 0 0 8px rgba(255, 253, 249, .5);
}
.mp-wreath { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); color: var(--gold); opacity: .8; }
.groom .mp-wreath { color: var(--sage-d); }
.bride .mp-wreath { color: var(--rose); }
.mp-portrait b { position: relative; font: italic 600 74px/1 var(--f-display); }
.groom .mp-portrait b { color: var(--sage-d); }
.bride .mp-portrait b { color: var(--rose-d); }
.mp-name { margin: 0; font: italic 600 clamp(28px, 9vw, 36px)/1.1 var(--f-display); word-break: break-word; }
.mp-parent { margin: 10px 0 0; font-size: 13.5px; line-height: 1.6; color: #7e6c64; }
.cs-count {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(74, 59, 54, .62);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
}
.cs-dots { display: flex; justify-content: center; gap: 5px; margin: 12px 0 -18px; position: relative; z-index: 1; pointer-events: none; }
.cs-dots i { width: 6px; height: 6px; border-radius: 50%; background: #dcd0c4; transition: background .25s ease, transform .25s ease; }
.cs-dots i.on { background: var(--rose-d); transform: scale(1.15); }

/* quote */
.m-quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 36px;
    background: radial-gradient(70% 60% at 50% 50%, #fffdf8, #f7efe3);
}
.m-quote::before {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    pointer-events: none;
}
.mq-mark { font: 600 110px/.55 var(--f-display); color: var(--blush); margin-bottom: 4px; }
.mq-text { margin: 0; font: italic 500 clamp(18px, 5.4vw, 22px)/1.5 var(--f-display); color: var(--ink); }
.mq-rule { width: 40px; height: 1px; background: var(--gold); margin: 22px 0 12px; }
.mq-cite { font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-d); }

/* countdown */
.m-count {
    display: grid;
    place-items: center;
    background:
        radial-gradient(55% 40% at 50% 50%, rgba(255, 253, 249, .8), transparent 75%),
        linear-gradient(165deg, #e5ebdf, #f6efe4 62%, #f5dcd6);
}
.m-count .k6 { width: 22px; height: 22px; top: 12%; left: 14%; }
.m-count .k7 { width: 16px; height: 16px; bottom: 14%; right: 16%; animation-delay: -1.5s; }
.count-sticker {
    width: min(84%, 340px);
    padding: 24px 18px 20px;
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 24px 44px -26px rgba(74, 59, 54, .55), inset 0 0 0 1px var(--line);
    rotate: -2deg;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cs-title { font: 400 34px/1 var(--f-script); color: var(--rose-d); }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; width: 100%; margin: 18px 0 14px; }
.cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0 9px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbf3ea, var(--champagne));
}
.cd-box:nth-child(2) { background: linear-gradient(180deg, #fcefec, #f6dcd8); }
.cd-box:nth-child(3) { background: linear-gradient(180deg, #f2f4ee, var(--sage-l)); }
.cd-box b { font: 600 30px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.cd-box span { margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs-date { font-size: 13px; color: var(--muted); }
.cs-remind {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 9px 16px;
    border-radius: 99px;
    border: 1px solid var(--blush);
    color: var(--rose-d);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

/* events */
.m-event.akad { background: radial-gradient(60% 45% at 50% 45%, #fffdf8, transparent 80%), linear-gradient(170deg, #f5efe5, #ebe2d3); }
.m-event.resepsi { background: radial-gradient(60% 45% at 50% 45%, #fffdf8, transparent 80%), linear-gradient(170deg, #fbede9, #f1d6d1); }
.ev-card {
    position: absolute;
    inset: 7% 8%;
    border-radius: 26px;
    border: 1px solid var(--gold);
    background: rgba(255, 253, 249, .86);
    box-shadow: 0 0 0 6px rgba(255, 253, 249, .55), 0 0 0 7px var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 16px;
}
.ev-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blush-l);
    color: var(--rose-d);
}
.resepsi .ev-icon { background: #f6ecd9; color: var(--gold-d); }
.ev-icon svg { width: 25px; height: 25px; }
.ev-kind { margin-top: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-d); }
.ev-title { margin: 2px 0 12px; font: italic 600 40px/1.05 var(--f-display); }
.ev-datebox { display: flex; align-items: center; gap: 12px; }
.ev-datebox span {
    width: 92px;
    padding: 7px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.ev-datebox b { font: 500 56px/1 var(--f-display); color: var(--rose-d); }
.ev-rows { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; align-items: center; }
.ev-rows li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; }
.ev-rows svg { width: 16px; height: 16px; flex: none; color: var(--rose-d); }
.ev-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding: 11px 20px;
    border-radius: 99px;
    background: linear-gradient(135deg, #e3a3a5, var(--rose-d));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px -12px rgba(184, 107, 114, .9);
}

/* map */
.m-map { aspect-ratio: 1 / 1; background: #f1ebe1; }
.leaflet-map { width: 100%; height: 100%; z-index: 1; }
.map-illu { display: block; width: 100%; height: 100%; position: relative; }
.map-illu svg { width: 100%; height: 100%; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -80%); }
.lg-marker span {
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 4px;
    rotate: -45deg;
    display: grid;
    place-items: center;
    background: var(--paper);
    box-shadow: 0 8px 16px -6px rgba(74, 59, 54, .5), inset 0 0 0 1px var(--line);
}
.lg-marker svg { width: 20px; height: 20px; fill: var(--rose); rotate: 45deg; }
.loc-card { padding: 2px 14px 0; }
.loc-name { margin: 0; font: 600 22px/1.25 var(--f-display); }
.loc-addr { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 9px 18px;
    border-radius: 11px;
    background: var(--champagne);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.btn-maps svg { color: var(--rose-d); }

/* actions row, likes, caption */
.post-actions { display: flex; align-items: center; gap: 4px; padding: 8px 8px 2px; }
.pa {
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
}
.pa svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.pa.save { margin-left: auto; }
.pa.like.liked { color: #d4727e; }
.pa.like.liked svg { fill: #d4727e; }
.pa.save.saved svg { fill: var(--ink); }
.pa.pop svg, .wish-like.pop svg { animation: pop .45s var(--spring); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.post-likes { margin: 0; padding: 0 14px; font-size: 13.5px; }
.post-cap { margin: 5px 0 0; padding: 0 14px; font-size: 14px; line-height: 1.55; }
.tagx { color: var(--rose-d); font-weight: 600; }
.post-time { margin: 6px 0 0; padding: 0 14px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.big-heart {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 96px;
    height: 96px;
    margin: -48px 0 0 -48px;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
}
.big-heart svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 6px 14px rgba(120, 60, 66, .35)); }
.big-heart.go { animation: bigHeart 1s var(--ease) forwards; }
@keyframes bigHeart {
    0% { transform: scale(0); opacity: 0; }
    15% { transform: scale(1.2); opacity: .96; }
    30% { transform: scale(.94); }
    45% { transform: scale(1.04); }
    80% { transform: scale(1); opacity: .96; }
    100% { transform: scale(1.1) translateY(-12px); opacity: 0; }
}

/* gallery grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 10px; }
.g-item {
    position: relative;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--champagne);
    cursor: pointer;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-item.ph { display: grid; place-items: center; cursor: default; }
.g-item.ph svg { width: 34%; height: 34%; fill: rgba(255, 253, 249, .85); }
.g-item.ph.p2 svg, .g-item.ph.p5 svg { width: 54%; height: 54%; opacity: .9; }
.ph.p1 { background: linear-gradient(135deg, #f6dad5, #eab7b5); }
.ph.p2 { background: linear-gradient(135deg, #f8efe4, #efdcc2); }
.ph.p3 { background: linear-gradient(135deg, #e6ece0, #c8d3bf); }
.ph.p4 { background: linear-gradient(135deg, #efe2d2, #e2c9a8); }
.ph.p5 { background: linear-gradient(135deg, #e8eee4, #d4ddcc); }
.ph.p6 { background: linear-gradient(135deg, #f9e3e0, #f0c8c6); }

/* gift */
.gift-wrap { background: var(--paper); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.gift-wrap:not(:has(#gift-section)) { display: none; }
.gift-wrap #gift-section { background: transparent !important; padding: 6px 0 22px !important; }
.gift-wrap .gs-heading h2 { font-family: var(--f-display) !important; font-style: italic; font-weight: 600 !important; font-size: 26px !important; color: var(--ink) !important; }
.gift-wrap .gs-heading h2::after { background: var(--gold) !important; }

/* ════════════════════════════════════════════════════════════════
   COMMENTS · RSVP
   ════════════════════════════════════════════════════════════════ */
.comments {
    margin-top: 6px;
    padding: 10px 0 18px;
    border-radius: 26px 26px 0 0;
    background: var(--paper);
    box-shadow: 0 -10px 30px -22px rgba(74, 59, 54, .35);
    scroll-margin-top: 54px;
}
.sheet-grip { display: block; width: 40px; height: 4px; margin: 0 auto; border-radius: 4px; background: #e2d8cd; }
.cm-head { text-align: center; padding: 14px 20px 14px; border-bottom: 1px solid var(--hair); }
.cm-head h2 { margin: 0; font: italic 600 30px/1.1 var(--f-display); }
.cm-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.composer { padding: 14px 16px 16px; border-bottom: 1px solid var(--hair); }
.cf-row { display: flex; align-items: center; gap: 10px; }
.cf-av {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blush), var(--rose-d));
    color: #fff;
    font: italic 600 16px/1 var(--f-display);
}
.cf-row input {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    font: 600 14px var(--f-ui);
    color: var(--ink);
    outline: none;
}
.cf-row input:focus { border-bottom-color: var(--rose); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0 44px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 99px;
    border: 1px solid var(--line);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip input:checked + span { background: var(--rose-d); border-color: var(--rose-d); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.cf-msg { display: flex; align-items: flex-end; gap: 6px; margin: 12px 0 0 44px; }
.cf-msg textarea {
    flex: 1;
    min-width: 0;
    resize: none;
    padding: 10px 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--ivory);
    font: 14px/1.45 var(--f-ui);
    color: var(--ink);
    outline: none;
}
.cf-msg textarea:focus { border-color: var(--rose); }
.cf-send {
    flex: none;
    height: 40px;
    padding: 0 8px;
    border: 0;
    background: none;
    color: var(--rose-d);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.cf-send:disabled { opacity: .55; cursor: default; }
.cf-send.sent { color: var(--sage-d); }

.wishes-list { display: flex; flex-direction: column; padding: 6px 0 0; }
.wish-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 16px;
    --r1: #f4c4c2;
    --r2: #c97b82;
}
.wish-item.new { animation: slideIn .6s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.wish-avatar {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid transparent;
    background: linear-gradient(var(--paper), var(--paper)) padding-box, linear-gradient(135deg, var(--r1), var(--r2)) border-box;
    color: var(--r2);
    font: italic 600 17px/1 var(--f-display);
    text-transform: uppercase;
}
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wish-name { font-size: 13.5px; font-weight: 700; }
.wish-badge { padding: 2px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 700; }
.wish-badge.hadir { background: var(--sage-l); color: var(--sage-d); }
.wish-badge.tidak { background: var(--blush-l); color: var(--rose-d); }
.wish-badge.ragu { background: #f6ecd9; color: var(--gold-d); }
.wish-message { margin: 3px 0 0; font-size: 14px; line-height: 1.5; word-break: break-word; }
.wish-time { display: inline-block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.wish-like {
    flex: none;
    align-self: center;
    width: 30px;
    height: 30px;
    border: 0;
    background: none;
    display: grid;
    place-items: center;
    color: #c2b5ad;
    cursor: pointer;
}
.wish-like svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.wish-like.liked { color: #d4727e; }
.wish-like.liked svg { fill: #d4727e; }
.wish-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 20px 16px; text-align: center; }
.wish-empty p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* footer */
.end { padding: 40px 28px 64px; text-align: center; }
.end-wreath { width: 86px; height: 86px; margin: 0 auto; color: var(--gold); }
.end-script { margin: 10px 0 0; font: 400 50px/1 var(--f-script); color: var(--rose-d); }
.end-copy { max-width: 330px; margin: 12px auto 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.end-names { margin: 22px 0 0; font: italic 600 32px/1.15 var(--f-display); }
.end-names em { font: 400 .8em var(--f-script); font-style: normal; color: var(--gold-d); }
.end-credit { margin: 18px 0 0; font-size: 11.5px; color: var(--muted); }

/* ════════════════════════════════════════════════════════════════
   FX, TOAST, LIGHTBOX
   ════════════════════════════════════════════════════════════════ */
.fx-layer { position: fixed; inset: 0; z-index: 6000; pointer-events: none; overflow: hidden; }
.burst {
    position: absolute;
    display: block;
    transform: translate(-50%, -50%);
    animation: burstOut 1.1s cubic-bezier(.2, .8, .3, 1) forwards;
}
.burst svg { width: 100%; height: 100%; fill: currentColor; }
@keyframes burstOut {
    0% { transform: translate(-50%, -50%) scale(.2) rotate(0); opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty) + 40px)) scale(1) rotate(var(--rot)); opacity: 0; }
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 6500;
    padding: 10px 18px;
    border-radius: 99px;
    background: rgba(74, 59, 54, .92);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translate(-50%, 16px);
    transition: opacity .3s ease, transform .3s var(--ease);
    pointer-events: none;
    white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 7000;
    align-items: center;
    justify-content: center;
    background: rgba(48, 38, 35, .94);
    opacity: 0;
    transition: opacity .3s ease;
}
.lb-img-wrap { max-width: 92vw; max-height: 80vh; }
.lb-img-wrap img { max-width: 92vw; max-height: 80vh; border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.lb-close, .lb-prev, .lb-next {
    position: absolute;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 253, 249, .12);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.lb-close { top: 18px; right: 18px; font-size: 17px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
}

.leaflet-container { font-family: var(--f-ui); }
.leaflet-control-attribution { font-size: 9px !important; }

/* ════════════════════════════════════════════════════════════════
   SMALL SCREENS + REDUCED MOTION
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
    .pf-stats b { font-size: 21px; }
    .hl, .hl-c { width: 56px; }
    .hl-c { height: 56px; }
    .ev-title { font-size: 34px; }
    .ev-datebox b { font-size: 46px; }
    .cd-box b { font-size: 25px; }
}
@media (max-height: 680px) {
    .duo-av { width: 84px; height: 84px; }
    .duo-av b { font-size: 36px; }
    .bd-num { font-size: 96px; }
    .s-body { padding-top: 76px; padding-bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    html { scroll-behavior: auto; }
}

/* Cormorant defaults to old-style figures ("I2"); the font shorthand resets
   font-variant, so restore lining figures for every numeric display */
.bd-num, .ev-datebox b, .pf-stats b, .cd-box b, .pf-av-in b, .duo-av b, .ph-av b, .sh-av { font-variant-numeric: lining-nums tabular-nums; }
