/* Warna & font diisi otomatis dari config.js (theme) lewat CSS variables. */
:root {
  --primary: #7a5c3e; --accent: #c9a86a; --petal: #eab796; --petal-dark: #7e2a3a; --bg: #fbf7f1; --surface: #fff; --text: #3d3128;
  --f-title: "Great Vibes", cursive; --f-head: "Cormorant Garamond", serif; --f-body: "Jost", sans-serif;
  --flower-scale: 1; --maxw: 480px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--f-body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* Tampilan dibatasi selebar ponsel; di desktop tetap di tengah */
#main, .cover { max-width: var(--maxw); margin: 0 auto; }
#main { background: var(--bg); box-shadow: 0 0 40px rgba(0,0,0,.06); }

.script { font-family: var(--f-title); font-weight: 400; color: var(--primary); font-size: 2.9rem; line-height: 1.2; }
.heading { font-family: var(--f-head); font-weight: 600; color: var(--primary); font-size: 1.6rem; margin-bottom: .6rem; }
.script-h { font-family: var(--f-title); font-weight: 400; font-size: 2.4rem; }
.eyebrow { font-family: var(--f-head); letter-spacing: .25em; text-transform: uppercase; font-size: .8rem; color: var(--accent); }
.lead { max-width: 34ch; margin: 0 auto 1.6rem; }
.small { font-size: .85rem; opacity: .85; }
.strong { font-weight: 600; }
.btn { display: inline-flex; align-items: center; gap: .5rem; border: 0; border-radius: 999px; padding: .75rem 1.6rem; background: var(--primary); color: #fff; font-weight: 500; letter-spacing: .03em; box-shadow: 0 6px 18px rgba(0,0,0,.15); transition: transform .2s; text-decoration: none; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); box-shadow: none; padding: .5rem 1.1rem; font-size: .85rem; }
.card { background: var(--surface); border-radius: 18px; padding: 1.4rem; box-shadow: 0 6px 24px rgba(0,0,0,.06); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

/* ---------- Ornamen bunga ---------- */
.flower { position: absolute; pointer-events: none; z-index: 1; }
.flower svg, .flower img { width: 100%; height: auto; }
.corner { width: calc(150px * var(--flower-scale)); }
.corner.tl { top: -6px; left: -6px; }
.corner.tr { top: -6px; right: -6px; transform: scaleX(-1); }
.corner.bl { bottom: -6px; left: -6px; transform: scaleY(-1); }
.corner.br { bottom: -6px; right: -6px; transform: scale(-1,-1); }
.corner > * { transform-origin: 0 0; animation: sway 6s ease-in-out infinite alternate; }
.corner.tr > *, .corner.br > * { animation-delay: -2s; }
.divider { position: relative; width: calc(220px * var(--flower-scale)); margin: 0 auto 1rem; }
body.no-sway .corner > * { animation: none; }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }

/* ---------- Cover ---------- */
.cover { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; text-align: center; background: var(--bg); overflow: hidden; transition: transform 1s cubic-bezier(.7,0,.3,1), opacity 1s; }
.cover.gone { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.cover-bg { position: absolute; inset: 0 0 36% 0; background-size: cover; background-position: center 45%; }
.cover-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 80%, var(--bg) 100%); }
.cover { place-items: end center; }
.cover-band { position: absolute; left: -10%; right: -10%; bottom: -1px; height: 64px; background: var(--primary); border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: 1; }
.cover-inner { position: relative; z-index: 2; padding: 0 1.5rem 4.75rem; }
.cover .script { font-size: 2.9rem; margin: .2rem 0; white-space: nowrap; }
.cover-date { font-family: var(--f-head); font-size: 1.05rem; letter-spacing: .1em; margin-bottom: .6rem; }
.cover-quote { font-family: var(--f-head); font-style: italic; font-size: 1rem; line-height: 1.45; color: var(--primary); white-space: pre-line; margin-bottom: 1rem; opacity: .9; }
.guest-box { margin-bottom: 1rem; }
.guest-name { font-size: 1.35rem !important; }
.guest-name { font-family: var(--f-head); font-size: 1.5rem; font-weight: 600; color: var(--primary); margin-top: .3rem; }

/* ---------- Bagian umum ---------- */
.section { position: relative; padding: 4.5rem 1.6rem; text-align: center; overflow: hidden; }
.section.alt { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.hero { position: relative; height: 92vh; min-height: 520px; display: flex; align-items: flex-end; justify-content: center; text-align: center; overflow: hidden; }
.hero-photo, .closing-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero::after, .closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--bg) 92%); }
.hero::after { background: linear-gradient(to bottom, transparent 66%, var(--bg) 88%); }
.hero-photo { background-position: center 20%; }
.hero-text { position: relative; z-index: 2; padding-bottom: 3rem; }

.couple-wrap { display: grid; gap: 1.4rem; position: relative; z-index: 2; }
.person img { width: 170px; height: 220px; object-fit: cover; border-radius: 100px 100px 16px 16px; margin: 0 auto 1rem; border: 4px solid var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.person h4 { font-family: var(--f-title); font-weight: 400; font-size: 2.2rem; color: var(--primary); }
.person .full { font-family: var(--f-head); font-weight: 600; font-size: 1.15rem; }
.person a { color: var(--primary); font-size: .85rem; }
.amp { font-family: var(--f-title); font-size: 3rem; color: var(--accent); }

.quote { font-family: var(--f-head); font-style: italic; font-size: 1.15rem; max-width: 36ch; margin: 0 auto .8rem; }

.timeline { position: relative; text-align: left; max-width: 360px; margin: 0 auto; padding-left: 1.6rem; border-left: 2px solid var(--accent); }
.timeline .item { position: relative; margin-bottom: 1.6rem; }
.timeline .item::before { content: ""; position: absolute; left: calc(-1.6rem - 7px); top: .4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 3px solid var(--bg); }
.timeline h4 { font-family: var(--f-head); font-size: 1.2rem; color: var(--primary); }
.timeline .date { font-size: .8rem; color: var(--accent); font-weight: 600; letter-spacing: .05em; }

.countdown { display: flex; justify-content: center; gap: .6rem; margin: 1rem 0 2rem; position: relative; z-index: 2; }
.countdown div { background: var(--primary); color: #fff; border-radius: 14px; width: 68px; padding: .6rem 0; }
.countdown b { display: block; font-family: var(--f-head); font-size: 1.6rem; line-height: 1.1; }
.countdown span { font-size: .7rem; letter-spacing: .08em; }
.events { display: grid; gap: 1.2rem; position: relative; z-index: 2; }
.event h4 { font-family: var(--f-head); font-size: 1.4rem; color: var(--primary); }
.event .when { font-weight: 600; margin: .3rem 0; }
.event .venue { font-weight: 600; margin-top: .6rem; }
.event .btn { margin-top: 1rem; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
.gallery img:nth-child(3n+1) { grid-column: span 2; aspect-ratio: 4/3; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 1rem; }
.lightbox img { max-height: 88vh; border-radius: 10px; }
.lightbox button { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; color: #fff; font-size: 2.4rem; }

.gifts { display: grid; gap: 1rem; margin-bottom: 1rem; }
.gift .bank { font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .1em; color: var(--primary); }
.gift .num { font-size: 1.3rem; letter-spacing: .08em; margin: .3rem 0; font-variant-numeric: tabular-nums; }

.stats { display: flex; justify-content: center; gap: .8rem; margin-bottom: 1.2rem; }
.stats span { background: var(--surface); border-radius: 999px; padding: .3rem .9rem; font-size: .85rem; border: 1px solid var(--accent); }
.form { display: grid; gap: .8rem; text-align: left; position: relative; z-index: 2; }
.form label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 500; }
.form input, .form textarea, .form select { font: inherit; padding: .65rem .8rem; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--text) 20%, transparent); background: var(--bg); color: var(--text); }
.form .btn { justify-self: center; }
.wishes { list-style: none; padding: 0; margin-top: 1.4rem; text-align: left; max-height: 420px; overflow-y: auto; display: grid; gap: .6rem; }
.wishes li { background: var(--surface); border-radius: 12px; padding: .8rem 1rem; border-left: 3px solid var(--accent); }
.wishes .who { font-weight: 600; }
.wishes .meta { font-size: .72rem; opacity: .65; }

.closing { position: relative; min-height: 0; display: flex; align-items: flex-end; text-align: center; overflow: hidden; }
.closing::after { background: linear-gradient(to top, var(--bg) 30%, transparent 62%); }
.closing-text { position: relative; z-index: 2; padding: 2rem 1.6rem 3rem; }
.closing-text p { margin-bottom: 1.2rem; }
.footer { text-align: center; padding: 1.2rem; background: var(--primary); color: #fff; }

.music-btn { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); display: grid; place-items: center; }
.music-btn.playing svg { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s, transform .9s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .corner > * { animation: none; } }
[hidden] { display: none !important; }

/* tambahan: teks multi-baris & penutup */
.person .small, .families { white-space: pre-line; }
.signoff { margin-top: 1rem; }
.families { margin-top: .4rem; font-family: var(--f-head); font-size: 1rem; font-weight: 600; }
.corner { width: calc(170px * var(--flower-scale)); }
.cover .corner { width: calc(135px * var(--flower-scale)); }
.cover .corner.br { bottom: 40px; }

.person img { width: 190px; height: 250px; }
.gallery img { object-position: center 72%; }
.gallery img:last-child:nth-child(3n+2) { grid-column: span 2; aspect-ratio: 4/3; }

/* penutup: foto di atas, teks di bawah (wajah tidak tertutup) */
.closing { display: block; }
.closing::after { content: none; }
.closing-photo { position: relative; inset: auto; height: 82vh; min-height: 480px; background-position: center 20%; }
.closing-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 78%, var(--bg) 100%); }
.closing-text { padding-top: .5rem; }

/* cover: foto mengisi ruang di atas teks; area krem mulai tepat di bawah foto */
.cover { display: flex; flex-direction: column; place-items: initial; }
.cover-bg { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; background-position: center 64%; }
.cover-bg::after { background: linear-gradient(to bottom, rgba(0,0,0,0) 82%, var(--bg) 100%); }
.cover-inner { margin-top: -1.4rem; padding: 0 1.5rem 4.4rem; }
.cover .eyebrow { font-size: .72rem; }
.cover .script { font-size: 2.7rem; margin: .1rem 0; }
.cover-date { margin-bottom: .45rem; }
.cover-quote { font-size: .95rem; margin-bottom: .7rem; }
.guest-box { margin-bottom: .8rem; }
.cover .btn { padding: .65rem 1.5rem; }

/* bunga pojok bawah setiap bagian: muncul (mekar) saat digulir, tanpa goyang */
#main .section { padding-bottom: calc(4.5rem + 70px * var(--flower-scale)); }
.bloom-flower { width: calc(150px * var(--flower-scale)); bottom: -2px; }
.bloom-flower.bl { left: -4px; }
.bloom-flower.br { right: -4px; }
.bloom-flower > * { animation: none !important; transform-origin: 0 0; opacity: 0; transform: scale(.45) rotate(-10deg); transition: opacity 1.1s ease, transform 1.4s cubic-bezier(.2,.8,.2,1); }
.bloom-flower.br > * { transition-delay: .18s; }
.section.bloomed .bloom-flower > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .bloom-flower > * { opacity: 1; transform: none; transition: none; } }

/* animasi muncul per bagian */
.reveal { opacity: 0; transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.a-up { transform: translateY(28px); }
.a-down { transform: translateY(-18px); }
.a-left { transform: translateX(-36px); }
.a-right { transform: translateX(36px); }
.a-zoom { transform: scale(.9); }
.a-fade { transform: none; }
.a-settle { opacity: 1; transform: scale(1.08); transition: transform 2.6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* teks kecil "The Wedding of" / "Save the Date" lebih terbaca & sedikit turun */
.eyebrow { color: color-mix(in srgb, var(--accent) 55%, var(--primary)); font-weight: 600; }
.cover-inner { margin-top: .5rem; }
.hero-text { padding-bottom: 1.4rem; }
.hero-text .eyebrow { margin-bottom: .2rem; }

/* ---------- Amplop digital: kartu rekening ---------- */
#giftToggle { margin: 0 auto 1.4rem; }
.gifts { display: grid; gap: 1rem; max-width: 340px; margin: 0 auto; position: relative; z-index: 2; }
.bank-card { position: relative; text-align: left; border-radius: 16px; padding: 1.1rem 1.15rem 1rem; color: #2b2a2e;
  background: radial-gradient(120% 90% at 85% 10%, rgba(255,255,255,.95), rgba(255,255,255,0) 60%), linear-gradient(135deg, #f4f4f6 0%, #e4e4e8 55%, #f1f1f3 100%);
  box-shadow: 0 10px 26px rgba(60,30,35,.14), inset 0 0 0 1px rgba(255,255,255,.7); overflow: hidden; aspect-ratio: 1.62; display: flex; flex-direction: column; justify-content: space-between; max-width: 100%; }
.bank-card::after { content: ""; position: absolute; right: -10%; bottom: -30%; width: 70%; height: 90%; border-radius: 50%; background: radial-gradient(circle, rgba(0,0,0,.04) 1px, transparent 1.4px) 0 0/6px 6px; pointer-events: none; }
.bank-top { display: flex; justify-content: space-between; align-items: flex-start; }
.chip { width: 42px; height: auto; margin-top: 1.6rem; }
.bank-logo { height: 26px; width: auto; }
.bank-name { font-weight: 700; color: #0b3a75; }
.bank-num { font-size: 1.25rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; margin: .2rem 0 0; font-weight: 500; }
.bank-bottom { display: flex; justify-content: space-between; align-items: center; gap: .6rem; position: relative; z-index: 1; }
.bank-holder { font-size: .82rem; letter-spacing: .06em; color: #55555c; font-weight: 600; min-width: 0; }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid #d6d6db; background: #fff; color: #2b2a2e; border-radius: 999px; padding: .4rem .85rem; font-size: .8rem; font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.08); flex-shrink: 0; }
.copy-btn:focus-visible, .pill input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.bank-card.pop { animation: pop .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Ucapan: latar maroon seperti contoh ---------- */
#rsvp { background: var(--primary); color: #fff; }
#rsvp .heading { color: #fff; }
.rsvp-sub { font-weight: 500; margin: -.2rem 0 1.2rem; opacity: .95; }
#rsvp .stats span { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.form { max-width: 380px; margin: 0 auto; display: grid; gap: .75rem; text-align: left; position: relative; z-index: 2; }
.form input[type=text], .form input:not([type]), .form textarea { width: 100%; font: inherit; padding: .8rem 1rem; border-radius: 12px; border: 1px solid rgba(0,0,0,.08); background: #fff; color: #2b2224; }
.form input::placeholder, .form textarea::placeholder { color: #9a8f91; }
.attend { border: 0; padding: 0; margin: .2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.attend legend { font-size: .92rem; margin-bottom: .45rem; padding: 0; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: block; text-align: center; background: #fff; border-radius: 999px; padding: .7rem .5rem; font-weight: 600; font-size: .9rem; border: 2px solid transparent; transition: background .2s, border-color .2s; }
.pill.yes span { color: #3f8a4a; } .pill.no span { color: #c0392b; }
.pill.yes input:checked + span { background: #e7f4e8; border-color: #3f8a4a; }
.pill.no input:checked + span { background: #fbe9e7; border-color: #c0392b; }
.btn.send { width: 100%; justify-content: center; background: linear-gradient(180deg, color-mix(in srgb, var(--petal) 85%, #fff), var(--accent)); color: #fff; font-weight: 600; border-radius: 12px; box-shadow: none; margin-top: .2rem; }
.btn.send:disabled { opacity: .6; }
.form-msg { min-height: 1.2em; font-size: .85rem; text-align: center; }
.form-msg.ok { color: #d8f0d9; } .form-msg.err { color: #ffd6d0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wishes { list-style: none; padding: 0; margin: 1.6rem auto 0; max-width: 420px; text-align: left; display: grid; gap: 0; max-height: none; overflow: visible; }
.wishes li { display: flex; gap: .85rem; padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,.14); background: none; border-left: 0; border-radius: 0; }
.wishes li > div { min-width: 0; }
.wishes .avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--petal) 80%, #fff); color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
.wishes .avatar svg { width: 26px; height: 26px; }
.wishes .who { font-weight: 600; color: #fff; }
.wishes .meta { font-size: .75rem; opacity: .75; margin: .1rem 0 .25rem; color: #fff; }
.wishes .msg { overflow-wrap: anywhere; color: #fff; }
.wishes .tag { font-size: .66rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; margin-left: .3rem; vertical-align: 2px; }
.wishes .tag.yes { background: rgba(120,200,130,.25); } .wishes .tag.no { background: rgba(240,120,110,.25); }
.wishes .empty { opacity: .8; justify-content: center; font-style: italic; border-bottom: 0; }
#rsvp .btn.ghost.more { display: block; margin: 1rem auto 0; color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- foto sebagai bingkai (zoom & geser lewat Editor) ---------- */
.ph { background-repeat: no-repeat; background-size: cover; background-color: color-mix(in srgb, var(--accent) 18%, var(--bg)); }
.person .person-photo { width: 190px; height: 250px; border-radius: 100px 100px 16px 16px; margin: 0 auto 1rem; border: 4px solid var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.12); max-width: 100%; }
.gallery .gi { width: 100%; aspect-ratio: 3/4; border-radius: 12px; cursor: zoom-in; background-position: center 72%; max-width: 100%; }
.gallery .gi:nth-child(3n+1), .gallery .gi:last-child:nth-child(3n+2) { grid-column: span 2; aspect-ratio: 4/3; }

/* footer: Made with love by Solidus Works */
.footer { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .85rem; letter-spacing: .03em; padding: 1.1rem 1rem calc(1.1rem + env(safe-area-inset-bottom, 0px)); }
.footer b { font-weight: 600; letter-spacing: .06em; }
.footer .heart { color: color-mix(in srgb, var(--petal) 70%, #ff6b81); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .footer .heart { animation: none; } }

/* ---------- Save the Date slideshow ---------- */
.hero-photo.slides { background: none; }
.hero-photo .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; background-position: center 30%; }
.hero-photo .slide.on { opacity: 1; z-index: 1; }
.hero-photo .slide.kb { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: .7rem; display: flex; justify-content: center; gap: .45rem; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--primary) 35%, transparent); transition: width .3s, background .3s; }
.hero-dots button.on { width: 22px; background: var(--primary); }
@media (prefers-reduced-motion: reduce) { .hero-photo .slide.kb { animation: none; } }

/* ---------- Menu bawah dengan tombol Home di tengah ---------- */
.bottom-nav { position: fixed; z-index: 55; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: .35rem max(10px, env(safe-area-inset-left, 0px)) calc(.4rem + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: 0 -6px 20px rgba(60,20,30,.08); border-radius: 18px 18px 0 0; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: color-mix(in srgb, var(--text) 60%, transparent); text-decoration: none; font-size: .64rem; font-weight: 500; padding: .2rem 0; }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.on { color: var(--primary); }
.bottom-nav a.home { justify-self: center; width: 58px; height: 58px; margin-top: -26px; border-radius: 50%; background: var(--primary); color: #fff; justify-content: center;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 45%, transparent); border: 4px solid var(--surface); }
.bottom-nav a.home svg { width: 26px; height: 26px; }
.bottom-nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 10px; }
body.has-nav .music-btn { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
body.has-nav .footer { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
.hero-photo.slides { z-index: 0; }

/* ---------- Latar motif bunga untuk bagian berisi tulisan ---------- */
.section.floral { isolation: isolate; }
.section.floral::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--floral-bg, none); background-size: 220px 220px; background-repeat: repeat;
  opacity: var(--floral-opacity, .2);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(0,0,0,.45) 0%, rgba(0,0,0,.8) 55%, #000 100%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(0,0,0,.45) 0%, rgba(0,0,0,.8) 55%, #000 100%); }
.section.floral > *:not(.flower):not(.stem-rose) { position: relative; z-index: 1; }
/* bunga pojok atas (lebih kecil & sedikit transparan agar tidak menutupi judul) */
.bloom-flower.tl, .bloom-flower.tr { top: -2px; bottom: auto; width: calc(118px * var(--flower-scale)); opacity: .9; }
.bloom-flower.tl { left: -2px; transform: none; }
.bloom-flower.tr { right: -2px; transform: scaleX(-1); }
.section.floral { padding-top: calc(4.5rem + 30px * var(--flower-scale)); }

/* ---------- Gaya bunga "foto": tanpa bunga pojok; buket botani & mawar bertangkai ---------- */
body.fl-photo .flower.corner { display: none; }
body.fl-photo #main .section { padding-bottom: 4.5rem; }
body.fl-photo .section.floral { padding-top: 4.5rem; }
body.fl-photo .section.floral::before { background-repeat: no-repeat; background-size: auto min(92%, 600px); background-position: center 50%;
  -webkit-mask-image: none; mask-image: none; }
.stem-rose { display: none; }
body.fl-photo .stem-rose { display: block; position: absolute; z-index: 0; bottom: 0; height: min(62%, 280px); width: auto; max-width: none; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease, transform 1.6s cubic-bezier(.2,.7,.2,1); }
body.fl-photo .stem-rose.right { right: calc(min(62%, 280px) * -.37); transform: translateY(40px) rotate(4deg); }
body.fl-photo .stem-rose.left { left: calc(min(62%, 280px) * -.37); transform: translateY(40px) scaleX(-1) rotate(4deg); }
body.fl-photo .section.bloomed .stem-rose { opacity: .95; }
body.fl-photo .section.bloomed .stem-rose.right { transform: rotate(4deg); }
body.fl-photo .section.bloomed .stem-rose.left { transform: scaleX(-1) rotate(4deg); }
.rose-div { display: flex; align-items: center; justify-content: center; gap: .7rem; }
.rose-div i { display: block; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.rose-div i:last-child { transform: scaleX(-1); }
.rose-div img { width: 46px; height: auto; filter: drop-shadow(0 3px 4px rgba(80,0,10,.25)); }
@media (prefers-reduced-motion: reduce) { body.fl-photo .stem-rose { transition: none; } }

/* tanda & normal & hati pink di Mempelai */
.amp-n { font-family: var(--f-body); font-style: normal; font-weight: 400; font-size: .5em; vertical-align: .22em; margin: 0 .1em; color: var(--accent); }
.amp { font-family: var(--f-body); font-style: normal; font-weight: 300; font-size: 2.2rem; line-height: 1; color: var(--accent); }

/* mawar satu tangkai di samping foto mempelai */
.photo-wrap { position: relative; width: 190px; max-width: 100%; margin: 0 auto 1rem; }
.photo-wrap .person-photo { position: relative; z-index: 1; margin: 0; }
.couple-rose { position: absolute; z-index: 0; top: -14px; height: 280px; width: auto; max-width: none; pointer-events: none; opacity: .55; }
.couple-rose.left { right: calc(100% - 26px); transform: scaleX(-1) rotate(5deg); transform-origin: 50% 100%; }
.couple-rose.right { left: calc(100% - 26px); transform: rotate(5deg); transform-origin: 50% 100%; }
.person .couple-rose { width: auto; height: 280px; border: 0; border-radius: 0; box-shadow: none; margin: 0; object-fit: contain; }

/* mawar Mempelai: menempel di tepi layar (kiri untuk pria, kanan untuk wanita) */
.person { position: relative; }
.person > *:not(.couple-rose) { position: relative; z-index: 1; }
.person .couple-rose { top: -6px; height: 300px; opacity: .55; }
.person .couple-rose.left { left: calc(-1.6rem - 128px); right: auto; transform: scaleX(-1); }
.person .couple-rose.right { right: calc(-1.6rem - 128px); left: auto; transform: none; }

/* tombol Hadir / Tidak Hadir: dibedakan warna saja */
.pill.yes span { background: #e6f2e4; color: #2f6f3a; }
.pill.no span { background: #f8e4e2; color: #a8352b; }
.pill.yes input:checked + span { background: #3f8a4a; border-color: #3f8a4a; color: #fff; }
.pill.no input:checked + span { background: #c0392b; border-color: #c0392b; color: #fff; }

/* menu bawah: 6 tombol section, tanpa Home */
.bottom-nav { grid-template-columns: repeat(6, 1fr); align-items: center; padding-top: .45rem; }
.bottom-nav a { font-size: .62rem; white-space: nowrap; padding: .25rem 0; border-radius: 12px; transition: color .2s, background .2s; }
.bottom-nav a.on { background: color-mix(in srgb, var(--primary) 9%, transparent); }
body.has-nav .music-btn { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

/* tanda & kaligrafi (dari gambar), warna mengikuti warna nama mempelai */
.amp-n { display: inline-block; width: .62em; height: .74em; margin: 0 .1em; vertical-align: -.06em; font-size: 1em;
  color: transparent; overflow: hidden; white-space: nowrap; text-indent: 200%;
  background: var(--primary);
  -webkit-mask: var(--amp-mask) center / contain no-repeat; mask: var(--amp-mask) center / contain no-repeat; }
.amp { display: flex; justify-content: center; font-size: 4.2rem; line-height: 1; }
.amp .amp-n { margin: 0; }

/* slideshow penutup */
.closing-photo.slides { background: none; z-index: 0; }
.closing-photo .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; background-position: center 20%; }
.closing-photo .slide.on { opacity: 1; z-index: 1; }
.closing-photo .slide.kb { animation: kenburns 9s ease-out both; }
.closing-photo.slides::after { z-index: 2; }
.closing { position: relative; }
.closing-dots { position: relative; bottom: auto; margin-top: -1.6rem; z-index: 3; }
.closing-photo.slides { overflow: hidden; }
/* geser tanda & di judul nama sedikit ke kanan agar tampak di tengah */
.script .amp-n { position: relative; left: .1em; }

/* slot galeri berisi 2 foto detail ditumpuk */
.gallery .gi.gi-stack { display: grid; grid-template-rows: 1fr 1fr; gap: .5rem; background: none; cursor: default; }
.gallery .gs { min-height: 0; border-radius: 12px; cursor: zoom-in; background-size: cover; background-position: center; }

.form .jumlah { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .9rem; }
.form .jumlah select { font: inherit; padding: .5rem .8rem; border-radius: 10px; border: 0; background: #fff; color: #2b2224; }
