/* ═══════════════════════════════════════════════════════════
   RETRO GROOVY — 70s revival: orange, mustard, hot pink, chocolate, cream
   Fonts: Shrikhand (chunky retro display) · DM Sans (friendly body)
═══════════════════════════════════════════════════════════ */
:root {
    --bg:           #FFF4E0;
    --bg-2:         #FFE9D2;
    --surface:      #FFFAF1;
    --surface-2:    #FCE4C4;
    --text:         #3B1D10;
    --muted:        #74462F;
    --accent:       #E8611A;
    --accent-light: #F4B23E;
    --accent-dark:  #B9470D;
    --mustard:      #F4B23E;
    --mustard-l:    #F9CB6B;
    --pink:         #EE5A92;
    --pink-l:       #F58DB4;
    --pink-d:       #B8336A;
    --choc:         #4A2414;
    --choc-2:       #6B3A22;
    --cream:        #FFF4E0;
    --sage:         #8FA65A;
    --display:      'Shrikhand', 'Cooper Black', Georgia, serif;
    --sans:         'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius:       22px;
    --border:       2.5px solid var(--choc);
    --frame-w:      min(100vw, 640px);
    --pad-top:      calc(var(--frame-w) * .34 + 16px);
    --pad-bot:      calc(var(--frame-w) * .33 + 16px);
    --scallop:      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 8A11.6 11.6 0 0 1 71 13.63A11.6 11.6 0 0 1 86.37 29A11.6 11.6 0 0 1 92 50A11.6 11.6 0 0 1 86.37 71A11.6 11.6 0 0 1 71 86.37A11.6 11.6 0 0 1 50 92A11.6 11.6 0 0 1 29 86.37A11.6 11.6 0 0 1 13.63 71A11.6 11.6 0 0 1 8 50A11.6 11.6 0 0 1 13.63 29A11.6 11.6 0 0 1 29 13.63A11.6 11.6 0 0 1 50 8Z'/%3E%3C/svg%3E");
    --checker:      repeating-conic-gradient(var(--choc) 0 25%, var(--cream) 0 50%) 0 0 / 16px 16px;
    --dots:         radial-gradient(rgba(232,97,26,.11) 1.6px, transparent 1.8px) 0 0 / 22px 22px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    font-family: var(--sans);
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}
body.no-scroll { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
main { overflow: hidden; position: relative; }
::selection { background: var(--pink); color: #fff; }

/* ── Retro display text (chunky offset shadow) ── */
.retro-text {
    font-family: var(--display); font-weight: 400;
    color: var(--accent);
    text-shadow: 2px 2px 0 var(--mustard), 4px 4px 0 var(--choc);
    letter-spacing: .01em;
}

/* ── Section frame + injected bingkai (SVG assets) ── */
.section-frame {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--pad-top) 0 var(--pad-bot);
    background: var(--dots), var(--bg);
}
.section-frame:nth-of-type(even) { background: var(--dots), var(--bg-2); }
.section-frame-top, .section-frame-bottom,
.intro-frame-top, .intro-frame-bottom {
    position: absolute; left: 50%; transform: translateX(-50%);
    width: var(--frame-w); line-height: 0;
    pointer-events: none; user-select: none; z-index: 1;
    display: block;
}
.section-frame-top, .intro-frame-top { top: 0; }
.section-frame-bottom, .intro-frame-bottom { bottom: 0; }
.section-frame-top img, .section-frame-bottom img { width: 100%; height: auto; display: block; }
.intro-frame-top, .intro-frame-bottom { height: auto; max-height: 42vh; object-fit: cover; }
.intro-frame-top { object-position: top; }
.intro-frame-bottom { object-position: bottom; }
.divider { display: block; width: min(260px, 76%); height: auto; margin: 0 auto; }

/* ── Container ── */
.container {
    width: 100%; max-width: 760px; margin: 0 auto; padding: 0 1.5rem;
    position: relative; z-index: 2;
}

/* ── Section heading ── */
.section-head { text-align: center; margin-bottom: 2.1rem; }
.eyebrow {
    display: inline-block;
    font-family: var(--sans); font-weight: 800;
    font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
    color: var(--cream); background: var(--choc);
    padding: .38rem 1rem .36rem 1.2rem; border-radius: 999px;
    transform: rotate(-2.5deg);
    box-shadow: 3px 3px 0 var(--pink);
    margin-bottom: .9rem;
}
.section-title {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(1.8rem, 8vw, 2.7rem);
    line-height: 1.12;
    color: var(--accent);
    text-shadow: 2px 2px 0 var(--mustard), 4px 4px 0 var(--choc);
    margin-bottom: .4rem;
    overflow-wrap: anywhere;
}
.section-title .w, .hero-names .w { display: inline-block; white-space: nowrap; }
.section-title .ch, .hero-names .ch { display: inline-block; }
.wavy-line {
    display: block; width: min(200px, 60%); height: 24px; margin: 0 auto;
    overflow: visible;
}
.wavy-line path {
    fill: none; stroke: var(--pink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 1; stroke-dashoffset: 0;
}

/* ── Sprite-based decorations ── */
.float-daisy, .float-spark { position: absolute; pointer-events: none; z-index: 1; overflow: visible; }
.float-daisy { width: 44px; height: 44px; animation: daisySpin 18s linear infinite; }
.float-spark { width: 18px; height: 18px; fill: var(--mustard); animation: twinkle 2.6s ease-in-out infinite; }
.fd-1 { top: 22%; left: 5%; }
.fd-2 { bottom: 24%; right: 6%; width: 34px; height: 34px; animation-duration: 14s; animation-direction: reverse; }
.fs-1 { top: 30%; right: 9%; }
.fs-2 { bottom: 31%; left: 10%; fill: var(--pink-l); animation-delay: 1.2s; width: 14px; height: 14px; }
.fd-3 { top: 26%; left: 7%; width: 36px; height: 36px; }
.fd-4 { bottom: 30%; right: 8%; width: 30px; height: 30px; animation-direction: reverse; }
@keyframes daisySpin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .55; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }

/* ════════════════════════════
   BUTTONS
════════════════════════════ */
.btn-groovy {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    position: relative;
    padding: .95rem 2rem;
    background: var(--mustard);
    color: var(--choc);
    border: var(--border); border-radius: 999px; cursor: pointer;
    font-family: var(--sans); font-weight: 800;
    font-size: .88rem; letter-spacing: .14em; text-transform: uppercase;
    box-shadow: 4px 4px 0 var(--choc);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .25s;
}
.btn-groovy:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--choc); background: var(--mustard-l); }
.btn-groovy:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--choc); }
.btn-groovy:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
.btn-groovy:disabled { opacity: .75; cursor: not-allowed; transform: none; }
.btn-groovy.is-sent { background: #9BC27A; }
.btn-block { width: 100%; }

/* ════════════════════════════
   WAVE WIPE OVERLAY
════════════════════════════ */
.wave-wipe {
    display: none;
    position: fixed; inset: 0; z-index: 10050;
    pointer-events: none;
}
.wave-wipe svg { width: 100%; height: 100%; display: block; }

/* ════════════════════════════
   INTRO / COVER
════════════════════════════ */
.intro {
    position: fixed; inset: 0; z-index: 10000;
    background: radial-gradient(ellipse at 50% 42%, #FFF8EC 0%, var(--bg) 55%, #FDE3C2 100%);
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden auto;
}
.intro-sunburst {
    position: absolute; left: 50%; top: 42%;
    width: 220vmax; height: 220vmax;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(rgba(244,178,62,.22) 0deg 7.5deg, rgba(255,244,224,0) 7.5deg 15deg);
    -webkit-mask: radial-gradient(circle, #000 0%, rgba(0,0,0,.6) 14%, transparent 34%);
    mask: radial-gradient(circle, #000 0%, rgba(0,0,0,.6) 14%, transparent 34%);
    animation: sunSpin 90s linear infinite;
    pointer-events: none;
}
@keyframes sunSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.intro-content {
    position: relative; z-index: 2;
    width: 100%; max-width: 420px;
    padding: calc(var(--frame-w) * .2 + 8px) 22px calc(var(--frame-w) * .26 + 8px); margin: auto;
}
.intro-badge {
    position: relative; width: 176px; height: 176px; margin: 0 auto .9rem;
}
.intro-ornamen { width: 100%; height: 100%; animation: daisySpin 60s linear infinite; }
.groovy-seal {
    position: relative; width: 84px; height: 84px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    filter: drop-shadow(3px 3px 0 var(--choc));
}
.intro-badge .groovy-seal { position: absolute; left: 50%; top: 50%; margin: -42px 0 0 -42px; }
.groovy-seal::before, .groovy-seal::after {
    content: ''; position: absolute; inset: 0;
    -webkit-mask: var(--scallop) center / contain no-repeat;
    mask: var(--scallop) center / contain no-repeat;
}
.groovy-seal::before { background: var(--choc); }
.groovy-seal::after { inset: 4px; background: radial-gradient(circle at 40% 35%, var(--mustard-l), var(--mustard) 60%, #D9921F); }
.groovy-seal span {
    position: relative; z-index: 1;
    font-family: var(--display); font-size: 1.65rem; line-height: 1;
    color: var(--choc); letter-spacing: .02em;
    text-shadow: 1.5px 1.5px 0 var(--cream);
}
.groovy-seal.small { width: 70px; height: 70px; margin-bottom: 1.1rem; }
.groovy-seal.small span { font-size: 1.35rem; }
.intro-subtitle {
    font-size: .76rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase;
    color: var(--pink-d); margin-bottom: .55rem;
}
.intro-names {
    font-size: clamp(2.1rem, 10vw, 3rem); line-height: 1.12;
    margin-bottom: 1.5rem; overflow-wrap: anywhere;
}
.intro-names em {
    font-style: normal; display: block; line-height: 1.1;
    color: var(--pink); font-size: .8em;
}
.guest-card {
    position: relative;
    margin: 0 auto 1.7rem; padding: 1.05rem 1.3rem 1.1rem;
    max-width: 310px;
    background: var(--surface);
    border: var(--border); border-radius: var(--radius);
    box-shadow: 6px 6px 0 var(--pink), 6px 6px 0 2.5px var(--choc);
}
.sticker { position: absolute; pointer-events: none; overflow: visible; }
.sticker-smile { width: 40px; height: 40px; top: -18px; right: -12px; transform: rotate(14deg); }
.sticker-spark { width: 20px; height: 20px; top: -10px; left: 14px; fill: var(--mustard); animation: twinkle 2.4s ease-in-out infinite; }
.to-label { font-size: .86rem; color: var(--muted); }
.guest-name {
    font-family: var(--sans); font-weight: 800;
    font-size: clamp(1.2rem, 5.2vw, 1.5rem); line-height: 1.3;
    margin-top: .25rem; color: var(--choc);
    overflow-wrap: anywhere;
}

/* ════════════════════════════
   NAVIGATION
════════════════════════════ */
nav {
    position: fixed; left: 0; right: 0; margin: 0 auto;
    width: max-content; max-width: calc(100% - 24px);
    bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateY(140px);
    z-index: 1000; opacity: 0;
    transition: transform .9s cubic-bezier(.34,1.56,.64,1), opacity .5s;
}
nav.visible { transform: translateY(0); opacity: 1; }
/* lift above the guest QR button (#qr-fab, bottom-right) only when it exists */
body:has(#qr-fab) nav, body.has-qr nav { bottom: calc(84px + env(safe-area-inset-bottom)); }
.nav-inner {
    display: flex; gap: 4px; align-items: center;
    padding: 5px 6px;
    background: var(--surface);
    border: var(--border); border-radius: 999px;
    box-shadow: 4px 4px 0 var(--choc);
}
nav a {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
    color: var(--choc); display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: color .3s, background .3s, transform .35s cubic-bezier(.34,1.56,.64,1);
}
nav a svg { width: 21px; height: 21px; flex: none; }
nav a.active { color: var(--cream); background: var(--accent); transform: rotate(-8deg); }
nav a:hover { background: var(--mustard-l); }
nav a.active:hover { background: var(--accent); }
nav a:focus-visible { outline: 2.5px solid var(--pink); outline-offset: 2px; }
/* keep the last block clear of the fixed nav */
main > .footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
body:has(#qr-fab) main > .footer, body.has-qr main > .footer { padding-bottom: calc(168px + env(safe-area-inset-bottom)); }

/* ════════════════════════════
   MUSIC BUTTON (spinning record)
════════════════════════════ */
.music-toggle-btn {
    position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; z-index: 1001;
    width: 44px; height: 44px;
    border: var(--border); border-radius: 50%;
    background: repeating-radial-gradient(circle, var(--choc) 0 2px, var(--choc-2) 2px 4px);
    color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--accent);
    transition: transform .3s;
}
.music-toggle-btn::before {
    content: ''; position: absolute; inset: 11px; border-radius: 50%;
    background: var(--pink); border: 2px solid var(--choc);
}
.music-toggle-btn svg { width: 15px; height: 15px; position: relative; z-index: 1; }
.music-toggle-btn.is-playing { animation: daisySpin 4s linear infinite; }
.music-toggle-btn:hover { transform: scale(1.06); }
.music-toggle-btn:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }

/* ════════════════════════════
   MARQUEE STRIPS
════════════════════════════ */
.marquee {
    position: relative; z-index: 6;
    width: 112%; margin: -26px -6%;
    overflow: hidden;
    border-top: var(--border); border-bottom: var(--border);
    transform: rotate(-2.4deg);
    padding: .62rem 0;
    box-shadow: 0 5px 0 rgba(74,36,20,.18);
}
.marquee.reverse { transform: rotate(2deg); }
.m-orange { background: var(--accent); color: var(--cream); }
.m-choc   { background: var(--choc); color: var(--mustard-l); }
.m-pink   { background: var(--pink); color: var(--cream); }
.marquee-track {
    display: flex; width: max-content;
    animation: marquee 26s linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 30s; }
.marquee-track span {
    flex-shrink: 0; white-space: nowrap;
    font-family: var(--display); font-size: 1.15rem; line-height: 1.2;
    letter-spacing: .04em; text-transform: uppercase;
    padding-right: .5em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ════════════════════════════
   HERO
════════════════════════════ */
.hero { align-items: center; padding-left: 16px; padding-right: 16px; }
.hero.section-frame { background: radial-gradient(ellipse at 50% 46%, #FFF9EF 0%, var(--bg) 60%), var(--bg); }
.hero-sun {
    position: absolute; left: 50%; top: 46%;
    width: 170vmax; height: 170vmax; transform: translate(-50%, -50%);
    background: repeating-conic-gradient(rgba(238,90,146,.08) 0deg 6deg, transparent 6deg 12deg);
    -webkit-mask: radial-gradient(circle, #000 0%, transparent 30%);
    mask: radial-gradient(circle, #000 0%, transparent 30%);
    animation: sunSpin 120s linear infinite reverse;
    pointer-events: none; z-index: 0;
}
.hero-frame {
    position: relative; z-index: 2;
    width: min(calc(100% - 64px), 340px);
    margin: 32px auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 2.2rem 1.2rem 2.4rem;
    background: var(--surface);
    border-radius: 200px 200px 30px 30px;
    box-shadow:
        0 0 0 2.5px var(--choc),
        0 0 0 9px var(--pink),
        0 0 0 11.5px var(--choc),
        0 0 0 18px var(--mustard),
        0 0 0 20.5px var(--choc),
        0 0 0 27px var(--accent),
        0 0 0 29.5px var(--choc),
        10px 12px 0 29.5px rgba(74,36,20,.16);
}
.hero-orn-wrap { width: min(62%, 170px); margin: 0 auto .9rem; }
.hero-ornamen { width: 100%; height: auto; }
.hero-orn-wrap.is-live .hero-ornamen { animation: daisySpin 50s linear infinite; }
.hero-content { position: relative; }
.hero-label {
    font-size: .74rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase;
    color: var(--pink-d); margin-bottom: .7rem;
}
.hero-names {
    font-size: clamp(2.1rem, 10vw, 2.9rem); line-height: 1.1;
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 1.1rem; overflow-wrap: anywhere;
}
.hero-names .nm { display: block; max-width: 100%; }
.hero-names .amp {
    display: inline-block;
    color: var(--pink); font-size: .72em; line-height: 1.15;
    text-shadow: 2px 2px 0 var(--choc);
}
.hero-date {
    display: flex; align-items: center; justify-content: center; gap: .9rem;
    margin-top: 1.2rem;
}
.hero-date .day {
    font-family: var(--display);
    line-height: 1;
    color: var(--cream); background: var(--accent);
    width: 1.75em; height: 1.75em; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem;
    border: var(--border); box-shadow: 3px 3px 0 var(--choc);
}
.month-year { text-align: left; line-height: 1.3; }
.month-year .month {
    display: block; font-weight: 800; font-size: 1.05rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--choc);
}
.month-year .year { font-size: .95rem; font-weight: 700; color: var(--muted); letter-spacing: .3em; }

/* ════════════════════════════
   QUOTE
════════════════════════════ */
.quote > .container { text-align: center; max-width: 560px; }
.quote-card {
    position: relative;
    background: var(--surface);
    border: var(--border); border-radius: 30px;
    padding: 2.6rem 1.4rem 1.8rem;
    box-shadow: 8px 8px 0 var(--mustard), 8px 8px 0 2.5px var(--choc);
}
.quote-daisy {
    position: absolute; top: -30px; left: 50%; margin-left: -30px;
    width: 60px; height: 60px; overflow: visible;
    animation: daisySpin 22s linear infinite;
}
.quote p {
    font-size: clamp(1.05rem, 4.4vw, 1.25rem); font-weight: 500; font-style: italic;
    color: var(--text); line-height: 1.7; margin: 0 auto 1.1rem;
}
.quote p .wd { display: inline-block; }
.quote cite {
    display: inline-block; font-style: normal; font-weight: 800;
    font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--cream); background: var(--pink-d);
    padding: .3rem .9rem; border-radius: 999px;
    margin-bottom: 1.2rem;
}

/* ════════════════════════════
   COUPLE
════════════════════════════ */
.couple-flex {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: start; gap: 1rem;
    max-width: 640px; margin: 0 auto;
}
.couple-item { text-align: center; min-width: 0; }
.portrait-flower {
    position: relative;
    width: 136px; height: 136px; margin: 0 auto 1.1rem;
    display: flex; align-items: center; justify-content: center;
    filter: drop-shadow(4px 4px 0 var(--choc));
}
.portrait-flower::before, .portrait-flower::after {
    content: ''; position: absolute; inset: 0;
    -webkit-mask: var(--scallop) center / contain no-repeat;
    mask: var(--scallop) center / contain no-repeat;
}
.portrait-flower::before { background: var(--choc); }
.portrait-flower::after {
    inset: 4px;
    background: repeating-radial-gradient(circle at 50% 50%, var(--accent) 0 9px, var(--mustard) 9px 18px, var(--pink) 18px 27px, var(--cream) 27px 36px);
    animation: daisySpin 40s linear infinite;
}
.portrait-flower.alt::after {
    background: repeating-radial-gradient(circle at 50% 50%, var(--pink) 0 9px, var(--cream) 9px 18px, var(--mustard) 18px 27px, var(--accent) 27px 36px);
    animation-direction: reverse;
}
.portrait-flower span {
    position: relative; z-index: 1;
    width: 56%; height: 56%; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: var(--border);
    font-family: var(--display); font-size: 2.3rem; line-height: 1;
    color: var(--accent); text-shadow: 2px 2px 0 var(--choc);
}
.name {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(1.35rem, 6vw, 1.85rem); line-height: 1.2;
    color: var(--choc);
    margin-bottom: .6rem; overflow-wrap: anywhere;
}
.ampersand {
    font-family: var(--display); font-size: clamp(2.6rem, 10vw, 3.4rem);
    color: var(--pink); text-shadow: 3px 3px 0 var(--choc);
    align-self: center; line-height: 1;
    padding-bottom: 3rem;
}
.parent { font-size: .95rem; color: var(--muted); line-height: 1.55; }

/* ════════════════════════════
   EVENT
════════════════════════════ */
.countdown-groovy {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem;
    max-width: 420px; margin: 0 auto 2.4rem;
}
.time-box {
    text-align: center; padding: .9rem .2rem .7rem;
    background: var(--surface);
    border: var(--border); border-radius: 18px;
    box-shadow: 4px 4px 0 var(--accent), 4px 4px 0 2.5px var(--choc);
    perspective: 300px;
}
.time-box:nth-child(2) { box-shadow: 4px 4px 0 var(--mustard), 4px 4px 0 2.5px var(--choc); }
.time-box:nth-child(3) { box-shadow: 4px 4px 0 var(--pink), 4px 4px 0 2.5px var(--choc); }
.time-box:nth-child(4) { box-shadow: 4px 4px 0 var(--sage), 4px 4px 0 2.5px var(--choc); }
.time-box span {
    display: inline-block;
    font-family: var(--display);
    font-size: clamp(1.6rem, 7.4vw, 2.2rem); line-height: 1.15;
    color: var(--accent); text-shadow: 2px 2px 0 var(--choc);
    transform-origin: 50% 0;
}
.time-box label {
    display: block; margin-top: .15rem;
    font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted);
}
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.6rem;
}
.event-card {
    position: relative; overflow: hidden;
    text-align: center;
    background: var(--surface);
    border: var(--border); border-radius: 26px;
    box-shadow: 7px 7px 0 var(--accent), 7px 7px 0 2.5px var(--choc);
}
.event-card.alt { box-shadow: 7px 7px 0 var(--pink), 7px 7px 0 2.5px var(--choc); }
.card-checker { height: 22px; background: var(--checker); border-bottom: var(--border); }
.card-content { padding: 1.5rem 1.4rem 1.9rem; }
.event-daisy { width: 52px; height: 52px; display: block; margin: 0 auto .7rem; animation: daisySpin 20s linear infinite; }
.event-title {
    font-family: var(--display); font-weight: 400;
    font-size: 1.65rem; line-height: 1.15;
    color: var(--accent); text-shadow: 2px 2px 0 var(--choc);
    margin-bottom: .8rem;
}
.event-card.alt .event-title { color: var(--pink); }
.event-date { font-weight: 800; font-size: 1.05rem; color: var(--choc); margin-bottom: .35rem; }
.event-time {
    display: inline-block;
    color: var(--choc); background: var(--mustard-l);
    border: 2px solid var(--choc); border-radius: 999px;
    font-weight: 800; letter-spacing: .08em;
    padding: .15rem .9rem; margin-bottom: .8rem; font-size: .95rem;
}
.event-location { color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* ════════════════════════════
   MAP
════════════════════════════ */
.map-card {
    overflow: hidden;
    background: var(--surface);
    border: var(--border); border-radius: 26px;
    box-shadow: 7px 7px 0 var(--mustard), 7px 7px 0 2.5px var(--choc);
}
.map-info {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: 1.3rem 1.3rem 1.1rem;
    border-bottom: var(--border);
}
.map-detail { display: flex; align-items: flex-start; gap: .75rem; flex: 1; min-width: 180px; }
.map-icon {
    color: var(--cream); background: var(--accent);
    width: 42px; height: 42px; border-radius: 50%; border: var(--border);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.map-icon svg { width: 20px; height: 20px; }
.map-venue { font-weight: 800; font-size: 1.05rem; color: var(--choc); margin-bottom: .15rem; line-height: 1.4; }
.map-address { font-size: .95rem; color: var(--muted); line-height: 1.55; }
.btn-map-nav {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .65rem 1.3rem;
    background: var(--pink); color: var(--cream);
    border: var(--border); border-radius: 999px;
    box-shadow: 3px 3px 0 var(--choc);
    font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
    text-decoration: none; white-space: nowrap; flex-shrink: 0;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}
.btn-map-nav:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--choc); }
.btn-map-nav:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
.leaflet-map { width: 100%; height: 260px; display: block; z-index: 1; }
.map-embed-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .6rem; height: 180px;
    background: var(--checker); color: var(--choc);
    text-decoration: none; font-weight: 800; letter-spacing: .04em;
    position: relative;
}
.map-embed-placeholder::before {
    content: ''; position: absolute; inset: 22px; border-radius: 18px;
    background: var(--surface); border: var(--border);
}
.map-embed-placeholder > * { position: relative; }
.map-embed-placeholder:hover { color: var(--accent); }

/* ════════════════════════════
   GALLERY
════════════════════════════ */
.gallery-subtitle {
    text-align: center; font-weight: 500; font-style: italic; color: var(--muted);
    font-size: 1rem; margin: -1rem 0 1.7rem;
}
.gallery-layout {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
    padding: 8px;
    background: var(--choc);
    border-radius: 24px;
    box-shadow: 6px 6px 0 var(--pink), 6px 6px 0 2.5px var(--choc);
}
.gallery-featured, .gallery-grid-item, .gallery-extra-item {
    position: relative; overflow: hidden; cursor: pointer;
    background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
}
.gallery-featured { aspect-ratio: 3/4; border-radius: 16px 16px 16px 60px; }
.gallery-grid-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.gallery-grid-item { min-height: 0; }
.gallery-grid-item:nth-child(2) { border-radius: 16px 40px 16px 16px; }
.gallery-grid-item:nth-child(3) { border-radius: 50%; }
.gallery-extra-item { aspect-ratio: 1; border: var(--border); }
.gallery-featured img, .gallery-grid-item img, .gallery-extra-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.34,1.56,.64,1);
}
.gallery-featured:hover img, .gallery-grid-item:hover img, .gallery-extra-item:hover img { transform: scale(1.08) rotate(1deg); }
.gallery-featured-overlay, .gallery-item-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(232,97,26,0);
    transition: background .3s;
}
.gallery-featured:hover .gallery-featured-overlay,
.gallery-grid-item:hover .gallery-item-overlay,
.gallery-extra-item:hover .gallery-item-overlay { background: rgba(232,97,26,.35); }
.gallery-featured-overlay svg, .gallery-item-overlay svg { opacity: 0; transition: opacity .3s; }
.gallery-featured:hover svg, .gallery-grid-item:hover svg, .gallery-extra-item:hover svg { opacity: 1; }
.gallery-row-extra {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr));
    gap: 10px; margin-top: 16px;
}
.gallery-featured.placeholder, .gallery-grid-item.placeholder { color: var(--accent); cursor: default; }
.gallery-featured.placeholder svg, .gallery-grid-item.placeholder svg { opacity: .6; }

/* Lightbox */
.gallery-lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(74,36,20,.94);
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.lb-img-wrap { max-width: min(90vw, 600px); max-height: 85vh; display: flex; align-items: center; justify-content: center; }
.lb-img-wrap img {
    max-width: 100%; max-height: 80vh; object-fit: contain;
    border: 4px solid var(--cream); border-radius: 18px;
    box-shadow: 8px 8px 0 var(--accent);
}
.lb-close, .lb-prev, .lb-next {
    position: fixed; display: flex; align-items: center; justify-content: center;
    border: var(--border); border-radius: 50%;
    background: var(--mustard); color: var(--choc);
    box-shadow: 3px 3px 0 var(--choc);
    cursor: pointer; transition: transform .2s, background .2s;
}
.lb-close { top: 1.2rem; right: 1.2rem; width: 42px; height: 42px; font-size: 1rem; font-weight: 800; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; }
.lb-prev { left: .75rem; }
.lb-next { right: .75rem; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--pink); color: var(--cream); }
.lb-counter {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    color: var(--choc); font-weight: 800; font-size: .85rem; letter-spacing: .2em;
    padding: 4px 16px; border: var(--border); border-radius: 999px; background: var(--cream);
}

/* ════════════════════════════
   GIFT SECTION OVERRIDE
════════════════════════════ */
#gift-section {
    position: relative;
    background: var(--dots), var(--bg-2) !important;
    padding: var(--pad-top) 0 var(--pad-bot) !important;
    min-height: auto !important;
    z-index: 2;
    font-family: var(--sans) !important;
}
#gift-section .gs-heading h2 {
    color: var(--accent) !important;
    font-family: var(--display) !important; font-weight: 400 !important;
    font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
    text-shadow: 2px 2px 0 var(--mustard), 4px 4px 0 var(--choc);
}
#gift-section .gs-heading h2::after { background: var(--pink) !important; width: 60px !important; height: 4px !important; border-radius: 4px !important; }
#gift-section .gs-heading p { color: var(--muted) !important; font-family: var(--sans) !important; font-size: .98rem !important; }
#gift-section .gs-sub-label { color: var(--pink-d) !important; }
#gift-section .gs-card, #gift-section .gs-bank-card {
    border: var(--border) !important; border-radius: 20px !important;
    box-shadow: 5px 5px 0 var(--mustard), 5px 5px 0 2.5px var(--choc) !important;
    background: var(--surface) !important;
}

/* ════════════════════════════
   WISHES
════════════════════════════ */
.rsvp-form-container {
    max-width: 560px; margin: 0 auto 2.4rem;
    padding: 1.8rem 1.4rem 1.6rem;
    background: var(--surface);
    border: var(--border); border-radius: 28px;
    box-shadow: 7px 7px 0 var(--pink), 7px 7px 0 2.5px var(--choc);
}
.input-row { margin-bottom: 1.3rem; }
.input-row > label {
    display: block; margin-bottom: .45rem;
    font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
    color: var(--accent-dark);
}
.input-row input[type="text"], .input-row textarea {
    width: 100%; padding: .85rem 1rem;
    background: #fff; color: var(--text);
    border: var(--border); border-radius: 16px;
    font-family: var(--sans); font-size: 1rem;
    transition: box-shadow .25s, transform .25s;
}
.input-row textarea { resize: vertical; }
.input-row input::placeholder, .input-row textarea::placeholder { color: #A98169; }
.input-row input:focus, .input-row textarea:focus {
    outline: none;
    box-shadow: 4px 4px 0 var(--mustard);
    transform: translate(-1px, -1px);
}
.attend-options { display: flex; gap: .5rem; flex-wrap: wrap; }
.attend-opt {
    display: flex; align-items: center; gap: .4rem; cursor: pointer;
    padding: .45rem .85rem; border: 2px solid var(--choc); border-radius: 999px;
    font-size: .92rem; font-weight: 700; color: var(--choc); background: #fff;
    transition: background .25s, transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}
.attend-opt:hover { transform: translateY(-2px); }
.attend-opt:has(input:checked) { background: var(--mustard-l); box-shadow: 3px 3px 0 var(--choc); }
.attend-opt input[type="radio"] { accent-color: var(--accent); width: 15px; height: 15px; }
.wishes-list { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.wish-item {
    display: flex; gap: .85rem; align-items: flex-start;
    padding: 1rem 1.05rem .95rem;
    background: var(--surface);
    border: var(--border); border-radius: 20px;
    box-shadow: 4px 4px 0 var(--choc);
}
.wish-item:nth-child(3n+2) .wish-avatar { background: var(--pink); }
.wish-item:nth-child(3n+3) .wish-avatar { background: var(--mustard); color: var(--choc); }
.wish-avatar {
    width: 42px; height: 42px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: var(--cream);
    border: var(--border); border-radius: 50%;
    font-family: var(--display); font-size: 1.15rem; line-height: 1;
}
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .25rem; }
.wish-name { font-weight: 800; font-size: 1rem; color: var(--choc); }
.wish-badge {
    font-size: .7rem; font-weight: 800; letter-spacing: .06em;
    padding: 1px 9px; border: 2px solid var(--choc); border-radius: 999px; color: var(--choc);
}
.wish-badge.hadir { background: #BFE0A3; }
.wish-badge.tidak { background: #F7B5CC; }
.wish-badge.ragu  { background: var(--mustard-l); }
.wish-message { font-size: .98rem; color: var(--text); line-height: 1.55; margin-bottom: .25rem; word-break: break-word; }
.wish-time { font-size: .8rem; color: var(--muted); }
.wish-empty {
    text-align: center; color: var(--muted); font-weight: 600; padding: 1.6rem 1rem;
    border: 2.5px dashed var(--choc-2); border-radius: 20px;
}

/* ════════════════════════════
   FOOTER (chocolate)
════════════════════════════ */
.footer { text-align: center; align-items: center; padding-left: 1.5rem; padding-right: 1.5rem; }
.footer.section-frame {
    background:
        radial-gradient(rgba(244,178,62,.14) 1.6px, transparent 1.8px) 0 0 / 22px 22px,
        radial-gradient(ellipse at 50% 50%, #5C2E1A 0%, var(--choc) 70%);
    color: var(--cream);
}
.footer-inner { position: relative; z-index: 2; max-width: 460px; margin: 0 auto; }
.footer .eyebrow { background: var(--pink); color: var(--cream); box-shadow: 3px 3px 0 var(--mustard); }
.footer-names {
    font-size: clamp(2rem, 9vw, 2.7rem); line-height: 1.15;
    margin-bottom: 1rem; overflow-wrap: anywhere;
    color: var(--mustard); text-shadow: 2px 2px 0 var(--accent), 4px 4px 0 #2A1209;
}
.footer-names .amp { display: block; color: var(--pink-l); font-size: .72em; }
.footer-copy { color: #F6DFC4; font-size: 1.02rem; margin-bottom: 1.6rem; }
.footer-credit { margin-top: 2rem; font-size: .8rem; color: #E9C9A8; letter-spacing: .04em; }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 520px) {
    .container { padding: 0 1.4rem; }
    .couple-flex { gap: .5rem; }
    .portrait-flower { width: 104px; height: 104px; }
    .portrait-flower span { font-size: 1.8rem; }
    .ampersand { font-size: 2.3rem; padding-bottom: 4rem; }
    .parent { font-size: .9rem; }
    .countdown-groovy { gap: .5rem; }
    .time-box { border-radius: 15px; }
    .map-info { flex-direction: column; align-items: stretch; }
    .btn-map-nav { width: 100%; }
    .rsvp-form-container { padding: 1.6rem 1.15rem 1.5rem; }
}
@media (max-width: 360px) {
    .portrait-flower { width: 90px; height: 90px; }
    .hero-frame { width: calc(100% - 60px); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .intro-sunburst, .hero-sun, .intro-ornamen, .hero-orn-wrap.is-live .hero-ornamen,
    .float-daisy, .float-spark, .sticker-spark, .quote-daisy, .event-daisy,
    .portrait-flower::after, .marquee-track, .music-toggle-btn.is-playing { animation: none !important; }
    nav, nav a, .btn-groovy, .attend-opt { transition: none; }
}
