/* ═══════════════════════════════════════════════════════════════════
   PLANET CINTA — undangan 3D: planet mungil bergaya mainan clay
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --ink: #4b3a63;
    --text: #5d4e74;
    --dim: #9488aa;
    --pink: #ff7fa8;
    --pink-d: #e45a8a;
    --pink-l: #ffd3e2;
    --lilac: #b9a4ff;
    --lilac-d: #8f78e8;
    --mint: #7fdcb8;
    --mint-d: #45b98e;
    --butter: #ffe08a;
    --sky: #9fd4ff;
    --cream: #fffaf3;
    --round: 'Fredoka', 'Nunito', system-ui, sans-serif;
    --body: 'Nunito', system-ui, sans-serif;
    --arab: 'Amiri', serif;
    --pop: cubic-bezier(.34, 1.56, .64, 1);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --dusk: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
    margin: 0;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: #cfe9ff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; height: 100svh; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }

/* ── langit ─────────────────────────────────────────────────────── */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
    background: linear-gradient(180deg, #a9dcff 0%, #cfe9ff 38%, #ffe3ef 78%, #fff1e2 100%); }
.sky::before { content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(60% 40% at 82% 12%, rgba(255, 255, 255, .75), transparent 70%),
        radial-gradient(50% 35% at 10% 30%, rgba(255, 214, 236, .55), transparent 70%); }
.sky .dusk { position: absolute; inset: 0; opacity: var(--dusk); transition: opacity .2s linear;
    background: linear-gradient(180deg, #2b2a6b 0%, #6b4fa8 34%, #e98bb3 70%, #ffc79a 100%); }
.sky .sun { position: absolute; top: 9%; right: 12%; width: 74px; height: 74px; border-radius: 50%;
    background: radial-gradient(circle at 40% 38%, #fffbe6, #ffe08a 60%, #ffc76b);
    box-shadow: 0 0 0 14px rgba(255, 232, 150, .25), 0 0 60px 20px rgba(255, 226, 140, .45);
    transform: translateY(calc(var(--dusk) * 60vh)); opacity: calc(1 - var(--dusk) * .6); }
.no-gl .sky::after { content: ''; position: absolute; left: 50%; top: 26svh; width: 120vmin; height: 120vmin; transform: translateX(-50%);
    border-radius: 50%; background: radial-gradient(circle at 42% 30%, #c8f5c4, #8fe0a0 45%, #5fc48b 75%, #4aa97b);
    box-shadow: inset -30px -40px 80px rgba(60, 120, 90, .35), 0 30px 80px -20px rgba(90, 70, 160, .4); }

#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; outline: none; touch-action: pan-y; }

/* ── tombol clay ────────────────────────────────────────────────── */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
    font-family: var(--round); font-weight: 600; font-size: 16px; letter-spacing: .01em;
    color: #fff; background: linear-gradient(180deg, #ff97b9, var(--pink));
    box-shadow: 0 5px 0 var(--pink-d), 0 14px 22px -8px rgba(228, 90, 138, .65), inset 0 2px 0 rgba(255, 255, 255, .45);
    transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--pink-d), 0 6px 12px -6px rgba(228, 90, 138, .6), inset 0 2px 0 rgba(255, 255, 255, .45); }
.btn.alt { color: var(--ink); background: linear-gradient(180deg, #fff, #f3eeff); box-shadow: 0 5px 0 #d8ccff, 0 14px 22px -10px rgba(143, 120, 232, .55), inset 0 2px 0 #fff; }
.btn.alt:active { box-shadow: 0 1px 0 #d8ccff, inset 0 2px 0 #fff; }
.btn.mint { background: linear-gradient(180deg, #95ead0, var(--mint)); box-shadow: 0 5px 0 var(--mint-d), 0 14px 22px -8px rgba(69, 185, 142, .55), inset 0 2px 0 rgba(255, 255, 255, .5); }
.btn.wide { width: 100%; }
.btn.sm { padding: 10px 18px; font-size: 14px; }
.btn.loading { opacity: .7; pointer-events: none; }

/* ── HUD ────────────────────────────────────────────────────────── */
.music-toggle-btn {
    position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 1000;
    width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center; color: var(--pink-d);
    background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 0 #f3c6d7, 0 10px 20px -8px rgba(110, 80, 170, .45);
}
.music-toggle-btn svg { width: 18px; height: 18px; }
.music-toggle-btn.playing { animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

.chip {
    position: fixed; top: calc(16px + env(safe-area-inset-top)); left: 50%; z-index: 900;
    display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 140px);
    padding: 7px 14px 7px 8px; border-radius: 999px; border: 2px solid #fff;
    background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 0 rgba(185, 164, 255, .45), 0 10px 20px -10px rgba(110, 80, 170, .5);
    font-family: var(--round); font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap;
    transform: translate(-50%, -140%); opacity: 0; transition: transform .6s var(--pop), opacity .4s;
}
body.opened .chip { transform: translate(-50%, 0); opacity: 1; }
.chip .ch-no { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px;
    background: linear-gradient(180deg, #ff97b9, var(--pink)); color: #fff; font-size: 12px; font-weight: 600; }
.chip .ch-t { overflow: hidden; text-overflow: ellipsis; }
.chip.bump { animation: chipBump .55s var(--pop); }
@keyframes chipBump { 0% { transform: translate(-50%, 0) scale(1); } 40% { transform: translate(-50%, 0) scale(1.12); } 100% { transform: translate(-50%, 0) scale(1); } }

.nav { position: fixed; left: 10px; top: 50%; z-index: 900; display: flex; flex-direction: column; gap: 7px; transform: translate(-60px, -50%); transition: transform .7s var(--pop); }
body.opened .nav { transform: translate(0, -50%); }
.nav button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 2px solid #fff; cursor: pointer;
    background: rgba(185, 164, 255, .55); box-shadow: 0 2px 6px rgba(110, 80, 170, .3); transition: height .4s var(--pop), background .3s; }
.nav button.on { height: 24px; background: var(--pink); }

.hint3d {
    position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 800; transform: translateX(-50%);
    font-family: var(--round); font-size: 12px; color: var(--ink); padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .8); border: 2px solid #fff; pointer-events: none; opacity: 0; transition: opacity .5s; white-space: nowrap;
}
body.opened .hint3d.show { opacity: 1; }

.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 9800; transform: translate(-50%, 30px) scale(.9);
    padding: 11px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--round); font-size: 14px;
    opacity: 0; pointer-events: none; transition: all .45s var(--pop); box-shadow: 0 12px 30px -10px rgba(75, 58, 99, .6); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ── COVER ──────────────────────────────────────────────────────── */
.cover { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    padding: calc(22px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); text-align: center; transition: opacity .5s; }
.cover.leaving .cv-top, .cover.leaving .cv-foot { opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none; }
.cover.gone { opacity: 0; pointer-events: none; }
.cv-top, .cv-foot { position: relative; z-index: 2; transition: opacity .45s, transform .5s var(--ease); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px; border: 2px solid #fff;
    background: rgba(255, 255, 255, .78); font-family: var(--round); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; color: var(--ink);
    box-shadow: 0 4px 0 rgba(185, 164, 255, .4); }
.pill .ico { color: var(--pink); }
.cv-stage { position: absolute; left: 50%; top: 44%; width: min(78vw, 360px); aspect-ratio: 1.5; transform: translate(-50%, -50%); z-index: 1;
    border: 0; background: transparent; cursor: pointer; padding: 0; border-radius: 24px; }
.cv-stage:focus-visible { outline: 3px dashed var(--pink); outline-offset: 8px; }
.cv-foot { width: 100%; max-width: 420px; }
.cv-names { margin: 0 0 6px; font-family: var(--round); font-weight: 600; font-size: clamp(30px, 9vw, 44px); line-height: 1.05; color: var(--ink);
    text-shadow: 0 3px 0 #fff, 0 8px 20px rgba(255, 255, 255, .8); }
.cv-names .hrt { display: inline-block; width: .62em; height: .62em; margin: 0 .12em; color: var(--pink); vertical-align: .02em; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(.95); } 45% { transform: scale(1.1); } }
.cv-date { margin: 0 0 14px; font-family: var(--round); font-size: 14px; color: var(--ink); opacity: .8; letter-spacing: .08em; }
.cv-to { margin: 0 auto 16px; padding: 12px 18px; max-width: 320px; border-radius: 20px; background: rgba(255, 255, 255, .82); border: 2px solid #fff;
    box-shadow: 0 5px 0 rgba(255, 159, 192, .45), 0 16px 26px -16px rgba(110, 80, 170, .5); }
.cv-to span { display: block; font-size: 12px; color: var(--dim); }
.cv-to b { display: block; font-family: var(--round); font-weight: 600; font-size: 19px; color: var(--ink); word-break: break-word; }
.cv-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--ink); opacity: .75; }
.cv-note { margin: 6px 0 0; font-size: 11px; color: var(--dim); }

/* amplop cadangan (CSS) — tampil sampai WebGL siap / bila WebGL tak ada */
.env-css { position: absolute; inset: 8% 6%; transition: opacity .6s, transform .6s var(--pop); animation: float 3.4s ease-in-out infinite; }
.gl-ready .env-css { opacity: 0; transform: scale(.8); }
.env-css .e-body { position: absolute; inset: 0; border-radius: 18px; background: linear-gradient(160deg, #ffd9e6, #ffc2d6); box-shadow: 0 8px 0 #f2a6c0, 0 24px 40px -16px rgba(110, 80, 170, .5); overflow: hidden; }
.env-css .e-body::before { content: ''; position: absolute; left: -10%; right: -10%; bottom: -40%; height: 100%; background: #ffb3cc; transform: rotate(0); clip-path: polygon(0 100%, 50% 30%, 100% 100%); }
.env-css .e-flap { position: absolute; left: 0; right: 0; top: 0; height: 62%; background: #ffa6c4; clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 18px 18px 0 0; transform-origin: top; transition: transform .6s var(--ease); }
.env-css .e-seal { position: absolute; left: 50%; top: 52%; width: 54px; height: 54px; margin-left: -27px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #ff8fb0, #ff5c8a); box-shadow: 0 3px 0 #d94374; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--round); font-weight: 600; font-size: 15px; }
.cover.leaving .env-css .e-flap { transform: rotateX(180deg); }
.cover.leaving .env-css { transform: scale(.2) rotate(30deg); opacity: 0; transition-delay: .4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ── MAIN ───────────────────────────────────────────────────────── */
main { position: relative; z-index: 2; opacity: 0; transition: opacity .8s; overflow-x: clip; }
body.opened main { opacity: 1; }
.stop { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
    padding: 52svh 16px 10svh; pointer-events: none; }
.stop.tall { padding-top: 50svh; }
.card {
    position: relative; pointer-events: auto; width: 100%; max-width: 460px;
    padding: 30px 22px 26px; border-radius: 30px; border: 2px solid rgba(255, 255, 255, .95);
    background: rgba(255, 255, 255, .84);
    backdrop-filter: blur(10px) saturate(1.35); -webkit-backdrop-filter: blur(10px) saturate(1.35);
    box-shadow: 0 7px 0 rgba(185, 164, 255, .38), 0 30px 50px -26px rgba(90, 60, 150, .6), inset 0 -3px 0 rgba(185, 164, 255, .12);
}
.card.center { text-align: center; }
.tag { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 2px solid #fff;
    box-shadow: 0 4px 0 rgba(255, 159, 192, .5), 0 10px 18px -10px rgba(110, 80, 170, .6);
    font-family: var(--round); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.tag b { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
    background: linear-gradient(180deg, #c9b8ff, var(--lilac)); color: #fff; font-size: 11.5px; font-weight: 600; }

.lbl { margin: 0 0 6px; font-family: var(--round); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--pink-d); }
.ttl { margin: 0 0 12px; font-family: var(--round); font-weight: 600; font-size: clamp(26px, 7.4vw, 34px); line-height: 1.12; color: var(--ink); }
.sub { margin: -6px 0 12px; font-family: var(--round); color: var(--dim); }
.txt { margin: 0 0 14px; }
.txt.sm { font-size: 14px; }
.arabic { font-family: var(--arab); font-size: 22px; line-height: 1.9; color: var(--ink); direction: rtl; margin: 0 0 8px; }
.arabic.big { font-size: 26px; }

/* hero */
.hero .card { padding-top: 34px; }
.hero-names { margin: 2px 0 8px; font-family: var(--round); font-weight: 600; font-size: clamp(40px, 12vw, 58px); line-height: 1; color: var(--ink); }
.hero-names span { display: block; }
.hero-names .amp { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0; font-size: .42em; color: var(--pink); }
.hero-names .amp::before, .hero-names .amp::after { content: ''; width: 34px; height: 3px; border-radius: 3px; background: var(--pink-l); }
.hero-names .amp .ico { width: 1.3em; height: 1.3em; animation: beat 1.4s ease-in-out infinite; }
.date-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 14px; }
.date-pills span { padding: 6px 13px; border-radius: 999px; font-family: var(--round); font-size: 13.5px; font-weight: 500; color: var(--ink);
    background: #fff; box-shadow: 0 3px 0 #ffd3e2, inset 0 0 0 2px #ffe6ef; }
.date-pills span:nth-child(2) { box-shadow: 0 3px 0 #d8ccff, inset 0 0 0 2px #ece6ff; }
.date-pills span:nth-child(3) { box-shadow: 0 3px 0 #bdf0dc, inset 0 0 0 2px #dcf7ec; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--round); font-size: 12.5px; color: var(--dim); text-decoration: none; }
.scroll-cue i { width: 22px; height: 34px; border-radius: 999px; border: 2px solid var(--lilac); position: relative; }
.scroll-cue i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--pink); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ayat */
.ayat { margin: 16px 0 0; padding: 18px 16px; border-radius: 22px; background: linear-gradient(170deg, #fff6fa, #f4f0ff); box-shadow: inset 0 0 0 2px #fff; }
.ayat .arabic { font-size: 20px; }
.ayat blockquote { margin: 6px 0 8px; font-style: italic; font-size: 14.5px; }
.ayat figcaption { font-family: var(--round); font-size: 12.5px; font-weight: 600; color: var(--lilac-d); }

/* mempelai */
.couple { display: grid; gap: 18px; margin-top: 8px; }
.person { text-align: center; }
.bubble { position: relative; width: 132px; height: 132px; margin: 0 auto 12px; border-radius: 50%; padding: 6px;
    background: conic-gradient(from 200deg, var(--pink), var(--butter), var(--mint), var(--lilac), var(--pink)); box-shadow: 0 6px 0 rgba(185, 164, 255, .4); }
.bubble.b2 { background: conic-gradient(from 20deg, var(--lilac), var(--sky), var(--mint), var(--pink), var(--lilac)); }
.bubble > div { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 4px solid #fff; background: linear-gradient(160deg, #ffe7f0, #efe9ff); display: flex; align-items: center; justify-content: center; }
.bubble img { width: 100%; height: 100%; object-fit: cover; }
.bubble .ini { font-family: var(--round); font-weight: 600; font-size: 52px; color: var(--pink); }
.bubble.b2 .ini { color: var(--lilac-d); }
.bubble .badge { position: absolute; right: 2px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
    color: var(--pink); box-shadow: 0 3px 0 #ffd3e2; animation: beat 1.8s ease-in-out infinite; }
.person h3 { margin: 0 0 4px; font-family: var(--round); font-weight: 600; font-size: 23px; line-height: 1.2; color: var(--ink); }
.person .parent { margin: 0; font-size: 14px; }
.person .parent b { color: var(--ink); font-weight: 700; }
.couple .and { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--pink); font-family: var(--round); font-size: 26px; }
.couple .and::before, .couple .and::after { content: ''; flex: 1; max-width: 70px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--pink-l) 0 8px, transparent 8px 13px); }

/* kisah */
.story { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.story li { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 4px 0 #f1eaff; }
.story .st-ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(180deg, #ff9fbe, var(--pink)); box-shadow: 0 4px 0 var(--pink-d); }
.story li:nth-child(2) .st-ic { background: linear-gradient(180deg, #cdbdff, var(--lilac)); box-shadow: 0 4px 0 var(--lilac-d); }
.story li:nth-child(3) .st-ic { background: linear-gradient(180deg, #9cecd2, var(--mint)); box-shadow: 0 4px 0 var(--mint-d); }
.story .st-ic .ico { width: 22px; height: 22px; }
.story h3 { margin: 0 0 2px; font-family: var(--round); font-weight: 600; font-size: 17px; color: var(--ink); }
.story p { margin: 0; font-size: 14px; line-height: 1.55; }
.story .lbl { margin-bottom: 2px; font-size: 10.5px; }

/* countdown — kubus clay */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 12px; perspective: 600px; }
.cube { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cube b { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: 18px;
    font-family: var(--round); font-weight: 600; font-size: clamp(22px, 7vw, 30px); color: #fff; transform-style: preserve-3d;
    background: linear-gradient(180deg, #ff9fbe, var(--pink)); box-shadow: 0 6px 0 var(--pink-d), 0 14px 18px -10px rgba(228, 90, 138, .7), inset 0 3px 0 rgba(255, 255, 255, .4); }
.cube:nth-child(2) b { background: linear-gradient(180deg, #cdbdff, var(--lilac)); box-shadow: 0 6px 0 var(--lilac-d), 0 14px 18px -10px rgba(143, 120, 232, .7), inset 0 3px 0 rgba(255, 255, 255, .4); }
.cube:nth-child(3) b { background: linear-gradient(180deg, #9cecd2, var(--mint)); box-shadow: 0 6px 0 var(--mint-d), 0 14px 18px -10px rgba(69, 185, 142, .7), inset 0 3px 0 rgba(255, 255, 255, .4); }
.cube:nth-child(4) b { color: #8a6416; background: linear-gradient(180deg, #fff0b8, var(--butter)); box-shadow: 0 6px 0 #e7b94a, 0 14px 18px -10px rgba(231, 185, 74, .8), inset 0 3px 0 rgba(255, 255, 255, .6); }
.cube span { font-family: var(--round); font-size: 12px; color: var(--dim); }
.bigdate { margin: 0; font-family: var(--round); font-weight: 600; font-size: clamp(28px, 8vw, 36px); color: var(--ink); letter-spacing: .04em; }

/* acara */
.events { display: grid; gap: 14px; margin-top: 6px; }
.ev { padding: 18px 16px; border-radius: 24px; background: #fff; box-shadow: 0 5px 0 #ffe0ea; text-align: left; }
.ev:nth-child(2) { box-shadow: 0 5px 0 #e6deff; }
.ev-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ev-ic { width: 44px; height: 44px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(180deg, #ff9fbe, var(--pink)); box-shadow: 0 4px 0 var(--pink-d); }
.ev:nth-child(2) .ev-ic { background: linear-gradient(180deg, #cdbdff, var(--lilac)); box-shadow: 0 4px 0 var(--lilac-d); }
.ev-ic .ico { width: 22px; height: 22px; }
.ev h3 { margin: 0; font-family: var(--round); font-weight: 600; font-size: 21px; color: var(--ink); }
.ev .lbl { margin: 0; font-size: 10.5px; }
.ev dl { margin: 0 0 12px; display: grid; gap: 6px; }
.ev dl div { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.ev dt { color: var(--pink); padding-top: 1px; }
.ev:nth-child(2) dt { color: var(--lilac-d); }
.ev dd { margin: 0; }

/* lokasi */
.map-frame { position: relative; margin: 6px 0 14px; border-radius: 24px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 5px 0 #e6deff; aspect-ratio: 4 / 3; background: #eef6ff; }
.leaflet-map { width: 100%; height: 100%; }
.map-illu { display: block; width: 100%; height: 100%; position: relative; }
.map-illu svg { width: 100%; height: 100%; display: block; }
.mi-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); color: var(--pink); animation: float 2.4s ease-in-out infinite; }
.mi-pin .ico { width: 44px; height: 44px; filter: drop-shadow(0 4px 0 rgba(228, 90, 138, .35)); }
.loc-name { margin: 0 0 4px; font-family: var(--round); font-weight: 600; font-size: 20px; color: var(--ink); }
.pc-marker span { display: block; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pink); border: 3px solid #fff; box-shadow: 0 6px 12px rgba(228, 90, 138, .5); }
.pc-marker b { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; }

/* galeri */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.gal-item { position: relative; padding: 7px 7px 22px; border: 0; border-radius: 14px; background: #fff; cursor: pointer;
    box-shadow: 0 5px 0 #f1eaff, 0 16px 22px -14px rgba(90, 60, 150, .5); transform: rotate(var(--r, -2deg)); transition: transform .35s var(--pop); }
.gal-item:nth-child(2n) { --r: 2.5deg; }
.gal-item:nth-child(3n) { --r: -1deg; }
.gal-item:hover, .gal-item:focus-visible { transform: rotate(0) scale(1.04); }
.gal-item img, .gal-item .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.gal-item .ph { display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(150deg, #ffc6da, #cdbdff); }
.gal-item:nth-child(2n) .ph { background: linear-gradient(150deg, #a9e9d3, #a9d8ff); }
.gal-item:nth-child(3n) .ph { background: linear-gradient(150deg, #ffe7a3, #ffb9cf); }
.gal-item .ph .ico { width: 34px; height: 34px; }
.gal-item::after { content: ''; position: absolute; top: -8px; left: 50%; width: 38px; height: 15px; margin-left: -19px; border-radius: 3px; background: rgba(255, 211, 226, .85); transform: rotate(-4deg); }
.gal-item:nth-child(2n)::after { background: rgba(185, 164, 255, .6); }

/* hadiah (partial) */
.gift-wrap { position: relative; pointer-events: auto; width: 100%; max-width: 1080px; margin-top: 14px; }
.gift #gift-section { background: transparent !important; padding: 6px 0 0 !important; font-family: var(--body) !important; }
.gift #gift-section .gs-heading { display: none; }
.gift #gift-section .gs-card, .gift #gift-section .gs-bank-card { border-radius: 24px !important; border: 2px solid #fff !important; background: rgba(255, 255, 255, .9) !important;
    box-shadow: 0 6px 0 rgba(185, 164, 255, .38), 0 20px 30px -20px rgba(90, 60, 150, .55) !important; }
.gift #gift-section .gs-sbtn, .gift #gift-section .gs-btn-buy, .gift #gift-section .gs-bank-copy { border-radius: 999px !important; background: var(--pink) !important; color: #fff !important; border: 0 !important;
    box-shadow: 0 4px 0 var(--pink-d) !important; font-family: var(--round) !important; }
.gift #gift-section .gs-price { color: var(--pink-d) !important; }
.gift #gift-section .gs-name, .gift #gift-section .gs-bank-name-text, .gift #gift-section .gs-bank-holder { color: var(--ink) !important; }
.gift #gift-section .gs-dot.taken { background: var(--pink) !important; }
.gift .gs-wrap, .gift .gs-track, .gift .gs-bank-track { max-width: 1080px; margin-left: auto; margin-right: auto; }

/* rsvp */
.rsvp-form { text-align: left; }
.f-l { display: block; margin: 12px 0 6px; font-family: var(--round); font-size: 13px; font-weight: 500; color: var(--ink); }
.f-in { width: 100%; padding: 13px 16px; border-radius: 18px; border: 2px solid #efe9ff; background: #fff; color: var(--ink); font: inherit; font-size: 15px; outline: none;
    box-shadow: inset 0 3px 0 #f7f4ff; transition: border-color .2s, box-shadow .2s; }
.f-in:focus { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(185, 164, 255, .25); }
textarea.f-in { resize: vertical; min-height: 90px; }
.att { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.att label { position: relative; cursor: pointer; }
.att input { position: absolute; opacity: 0; inset: 0; }
.att span { display: block; padding: 11px 4px; border-radius: 16px; text-align: center; font-family: var(--round); font-size: 13.5px; font-weight: 500; color: var(--ink);
    background: #fff; border: 2px solid #efe9ff; box-shadow: 0 4px 0 #efe9ff; transition: all .25s var(--pop); }
.att input:checked + span { color: #fff; border-color: var(--pink); background: var(--pink); box-shadow: 0 4px 0 var(--pink-d); transform: translateY(-2px); }
.att input:focus-visible + span { outline: 3px solid var(--lilac); outline-offset: 2px; }
.rsvp-form .btn { margin-top: 18px; }

/* ucapan */
.wishes-list { max-height: 460px; overflow-y: auto; margin-top: 6px; padding-right: 4px; text-align: left; scrollbar-width: thin; scrollbar-color: var(--lilac) transparent; }
.wish-item { display: flex; gap: 12px; padding: 12px; margin-bottom: 10px; border-radius: 20px; background: #fff; box-shadow: 0 4px 0 #f1eaff; }
.wish-item.new { animation: popIn .7s var(--pop) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.6) translateY(20px); } to { opacity: 1; transform: none; } }
.wish-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: var(--av, var(--pink)); color: #fff; font-family: var(--round); font-weight: 600; font-size: 17px; text-transform: uppercase; box-shadow: 0 3px 0 rgba(75, 58, 99, .18); }
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.wish-name { font-family: var(--round); font-weight: 600; font-size: 15px; color: var(--ink); word-break: break-word; }
.wish-badge { font-family: var(--round); font-size: 10.5px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: #dcf7ec; color: #2f9a72; }
.wish-badge.tidak { background: #ffe3ec; color: var(--pink-d); }
.wish-badge.ragu { background: #efe9ff; color: var(--lilac-d); }
.wish-message { margin: 4px 0; font-size: 14.5px; line-height: 1.55; word-break: break-word; }
.wish-time { font-size: 11px; color: var(--dim); }
.wish-empty { text-align: center; padding: 26px 0 14px; color: var(--dim); }
.wish-empty .ico { width: 34px; height: 34px; color: var(--lilac); margin-bottom: 4px; }
.wish-empty p { margin: 0; }

/* penutup */
.finale .card { background: rgba(255, 255, 255, .8); }
.fin-names { margin: 4px 0 10px; font-family: var(--round); font-weight: 600; font-size: clamp(34px, 10vw, 46px); line-height: 1.05; color: var(--ink); }
.fin-names .ico { width: .7em; height: .7em; color: var(--pink); vertical-align: -.02em; animation: beat 1.4s ease-in-out infinite; }
.fam { display: grid; gap: 10px; margin: 14px 0; }
.fam p { margin: 0; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 4px 0 #f1eaff; font-size: 14px; }
.fam span { display: block; font-family: var(--round); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-d); }
.salam { font-family: var(--round); font-weight: 500; color: var(--ink); }
.credit { margin: 16px 0 0; font-size: 11.5px; color: var(--dim); }

/* ── reveal: kartu "meletup" dalam 3D ───────────────────────────── */
.rv { opacity: 0; transform: perspective(900px) translateY(40px) rotateX(-28deg) scale(.92); transform-origin: 50% 100%;
    transition: opacity .6s var(--ease), transform .9s var(--pop); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

/* ── lightbox ───────────────────────────────────────────────────── */
.gallery-lightbox { display: none; opacity: 0; transition: opacity .3s; position: fixed; inset: 0; z-index: 9600; background: rgba(75, 58, 99, .9); align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.lb-img-wrap { max-width: 92vw; max-height: 82vh; padding: 10px 10px 34px; background: #fff; border-radius: 18px; box-shadow: 0 10px 0 rgba(185, 164, 255, .5); }
.lb-img-wrap img { max-width: calc(92vw - 20px); max-height: calc(82vh - 44px); object-fit: contain; border-radius: 10px; }
.lb-close, .lb-prev, .lb-next { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; background: #fff; border: 0; color: var(--pink-d);
    font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 #ffd3e2; }
.lb-close { top: calc(18px + env(safe-area-inset-top)); right: 18px; font-size: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-family: var(--round); font-size: 13px; color: #fff; }

body.has-qr .finale { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }

/* ── layar lebar: planet di kiri, kartu di kanan ───────────────── */
@media (min-width: 900px) {
    .stop, .stop.tall { padding: 12vh 7vw; align-items: flex-end; justify-content: center; }
    .card { max-width: 470px; }
    .nav { left: 18px; }
    .cv-stage { top: 42%; width: 400px; }
    .hint3d { left: 32%; }
}
@media (max-height: 640px) and (max-width: 899px) {
    .stop { padding-top: 46svh; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
    .rv { opacity: 1; transform: none; }
}
