@font-face {
    font-family: 'IM Fell English';
    src: url('../FONT/IMFellEnglish-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --mint: #6BC5B0;
    --mint-form: #71baad;
    --teal: #5FB6A1;
    --mint-light: #80CBB7;
    --pink: #F5A7B8;
    --pink-dark: #E8A0B4;
    --black: #1a1a1a;
    --dark-grey: #2c2c2c;
    --white: #ffffff;
}

/* ==========================================================================
   GLOBAL & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    background: #fff;
    font-family: 'IM Fell English', serif;
    color: #2c2c2c;
    overflow-x: hidden;
}

.app-viewport {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    width: 100vw;
    background: #fff;
}

.invitation-container {
    width: 390px;
    max-width: 100vw;
    min-height: 100vh;
    position: relative;
    background: #fff;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
    overflow-x: hidden;
}

.inv-section {
    position: relative;
    width: 390px;
    max-width: 100%;
    overflow: hidden;
}

.sec-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 390px;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   MUSIC TOGGLE
   ========================================================================== */
.music-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: max(24px, calc((100vw - 390px) / 2 + 24px));
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.08);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transition: opacity 0.3s ease, transform 0.2s ease;
    font-size: 18px;
}

.music-toggle-btn:hover {
    transform: scale(1.08);
}

.music-toggle-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.music-icon.playing {
    animation: pulseMusic 2s ease-in-out infinite;
}

@keyframes pulseMusic {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ==========================================================================
   SECTION 1: COVER GATE — REVISI GATE 1
   ========================================================================== */
.sec-cg {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 390px;
    height: 100vh;
    z-index: 1000;
    cursor: pointer;
}

.gate-door {
    position: absolute;
    top: 0;
    width: 195px;
    height: 100vh;
    z-index: 1001;
    transition: transform 1.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
}

.gate-left {
    left: 0;
}

.gate-right {
    right: 0;
}

/* Pertahankan rasio ilustrasi gate agar ornamen tidak tampak melebar. */
.gate-door img.gate-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Nama berada di tengah horizontal gate kanan, dekat dengan posisi desain asli. */
.gate-recipient {
    position: absolute;
    z-index: 5;
    text-align: center;
    width: calc(100% - 20px);
    left: 50%;
    top: 58.5%;
    transform: translateX(-50%);
}

.guest-name {
    font-size: 16px;
    font-weight: normal;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 170px;
    margin: 0 auto;
}

/* Tombol lebih besar dan sedikit lebih tinggi, tetap di tengah gate kanan. */
.open-btn-wrapper {
    position: absolute;
    z-index: 5;
    width: 124px;
    height: 124px;
    left: 50%;
    top: 63%;
    transform: translateX(-50%);
}

.rotating-button {
    width: 100%;
    height: 100%;
    display: block;
    animation: spinSlow 18s linear infinite;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sec-cg.opened .gate-left {
    transform: translateX(-100%);
}

.sec-cg.opened .gate-right {
    transform: translateX(100%);
}

.sec-cg.dismissed {
    display: none;
}

/* ==========================================================================
   SECTION 2: SAVE THE DATE
   ========================================================================== */
.sec-sd {
    height: 1295px;
}

.sd-circle {
    position: absolute;
    z-index: 2;
    transform-origin: center center;
    /* Semua lingkaran berbagi satu sumbu putar di tengah komposisi. */
    left: 50%;
    top: 421px;
    transform: translate(-50%, -50%) rotate(var(--scroll-rotation, 0deg));
    will-change: transform;
}

.circle-1 {
    width: 302px;
    height: 302px;
}

.circle-2 {
    width: 201px;
    height: 201px;
}

.circle-3 {
    width: 117px;
    height: 117px;
}

/* Quotes — smaller size to match preview */
.sd-quotes {
    position: absolute;
    z-index: 3;
    width: 200px;
    height: auto;
    left: 50%;
    top: 724px;
    transform: translateX(-50%) translateY(24px);
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.sd-quotes.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Photos — positioned at bottom of section, scroll-driven merge */
.sd-photo {
    position: absolute;
    z-index: 4;
    will-change: transform, opacity;
}

.photo-engga {
    width: 115px;
    height: 127px;
    left: 94px;
    top: 1064px;
}

.photo-wulan {
    width: 102px;
    height: 124px;
    left: 196px;
    top: 1076px;
}

/* ==========================================================================
   SECTION 3: INVITATION DETAIL — REVISI ID 1, 2, 3
   ========================================================================== */
.sec-id {
    height: 2244px;
}

.id-asset {
    position: absolute;
    z-index: 3;
}

/* Nama pengantin dinaikkan sedikit agar lebih seimbang dalam lengkungan. */
.id-nama {
    position: absolute;
    z-index: 3;
    width: 259px;
    height: 281px;
    left: 50%;
    top: 270px;
    transform: translateX(-50%) scale(0.9);
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.id-nama.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.id-date-wrapper {
    position: absolute;
    z-index: 3;
    width: 307px;
    height: 491px;
    left: 40px;
    top: 748px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.id-date-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.id-tanggal-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
}

.id-akad-note {
    position: absolute;
    z-index: 4;
    left: 0;
    top: 492px;
    width: 230px;
    color: #1a1a1a;
    font-family: 'IM Fell English', serif;
    font-size: 12.45px;
    line-height: 1.25;
    letter-spacing: 0.1px;
}

.id-akad-note span {
    display: block;
}

/* REVISI ID 2: Bunga tanggal smooth ±15° CSS animation (no longer scroll-driven) */
.id-bunga-tanggal {
    position: absolute;
    z-index: 1;
    width: 161px;
    height: 157px;
    left: 66px;
    top: 210px;
    transform-origin: center center;
    will-change: transform;
    animation: bungaRock 6s ease-in-out infinite alternate;
}

@keyframes bungaRock {
    0% { transform: rotate(-15deg); }
    100% { transform: rotate(15deg); }
}

.flower-1, .flower-2, .sparkle-1 {
    position: absolute;
    z-index: 3;
    opacity: 0;
    transform: scale(0.3) rotate(30deg);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flower-1.visible, .flower-2.visible, .sparkle-1.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.flower-1 { width: 26px; height: 25px; left: 48px; top: 1330px; }
.flower-2 { width: 27px; height: 27px; left: 328px; top: 1350px; }
.sparkle-1 { width: 21px; height: 22px; left: 340px; top: 1290px; }

.flower-1.visible { animation: subtleSparkleLoop 3s ease-in-out infinite alternate; animation-delay: 0s; }
.flower-2.visible { animation: subtleSparkleLoop 3s ease-in-out infinite alternate; animation-delay: 0.8s; }
.sparkle-1.visible { animation: subtleSparkleLoop 3s ease-in-out infinite alternate; animation-delay: 1.6s; }

@keyframes subtleSparkleLoop {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.12) rotate(8deg); }
}

.id-karangan {
    position: absolute;
    z-index: 3;
    width: 205px;
    height: 241px;
    left: 50%;
    top: 1460px;
    transform: translateX(-50%) scale(0.9);
    opacity: 0;
    transform-origin: top center;
    transition: opacity 1s ease, transform 1s ease;
}

.id-karangan.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    animation: pendulumSway 4s ease-in-out infinite alternate;
}

@keyframes pendulumSway {
    0% { transform: translateX(-50%) scale(1) rotate(-3deg); }
    100% { transform: translateX(-50%) scale(1) rotate(3deg); }
}

.id-tempat {
    position: absolute;
    z-index: 3;
    width: 213px;
    height: 397px;
    left: 50%;
    top: 1758px;
    transform: translateX(-50%) scale(0.9);
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.id-tempat.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* REVISI ID 3: View Maps button smaller */
.id-maps-link {
    position: absolute;
    z-index: 5;
    width: 120px;
    height: 26px;
    left: 50%;
    top: 2180px;
    transform: translateX(-50%);
    display: block;
    opacity: 0;
    transition: opacity 1s ease;
}

.id-maps-link.visible {
    opacity: 1;
}

.id-maps-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.id-countdown-container {
    position: absolute;
    z-index: 5;
    width: 322px;
    height: 86px;
    left: 34px;
    top: 1300px;
}

.countdown-bg {
    width: 100%;
    height: 100%;
    display: block;
}

.countdown-values {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #292929;
    font-family: 'IM Fell English', serif;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-num {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.timer-label {
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-top: 3px;
    opacity: 0.7;
    text-transform: uppercase;
}

/* ==========================================================================
   SECTION 4: OUR STORY
   ========================================================================== */
.sec-os {
    height: 1712px;
}

.os-flyingbug {
    position: absolute;
    z-index: 3;
    width: 182px;
    height: 204px;
    left: 102px;
    top: 268px;
    animation: bugWiggle 5s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes bugWiggle {
    0% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-6px) rotate(1.5deg); }
    66% { transform: translateY(3px) rotate(-1.5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.os-sparkle-1, .os-sparkle-2, .os-sparkle-3 {
    position: absolute;
    z-index: 3;
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 1s ease, transform 1s ease;
}

.os-sparkle-1 { width: 15px; height: 14px; left: 346px; top: 1002px; transition-delay: 0s; }
.os-sparkle-2 { width: 20px; height: 20px; left: 40px; top: 1054px; transition-delay: 0.3s; }
.os-sparkle-3 { width: 24px; height: 23px; left: 168px; top: 72px; transition-delay: 0.6s; }

.os-sparkle-1.visible { transform: scale(1); opacity: 1; animation: sparklePopLoop 2.5s ease-in-out infinite alternate; animation-delay: 0s; }
.os-sparkle-2.visible { transform: scale(1); opacity: 1; animation: sparklePopLoop 2.5s ease-in-out infinite alternate; animation-delay: 0.5s; }
.os-sparkle-3.visible { transform: scale(1); opacity: 1; animation: sparklePopLoop 2.5s ease-in-out infinite alternate; animation-delay: 1s; }

@keyframes sparklePopLoop {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 1; }
}

.os-2019, .os-2023, .os-2024, .os-2025, .os-2026 {
    position: absolute;
    z-index: 3;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease, transform 1s ease;
}

.os-2019 { width: 298px; height: 74px; left: 48px; top: 1080px; }
.os-2023 { width: 296px; height: 93px; left: 50px; top: 1190px; transition-delay: 0.15s; }
.os-2024 { width: 283px; height: 56px; left: 56px; top: 1320px; transition-delay: 0.3s; }
.os-2025 { width: 266px; height: 75px; left: 64px; top: 1426px; transition-delay: 0.45s; }
.os-2026 { width: 242px; height: 80px; left: 76px; top: 1550px; transition-delay: 0.6s; }

.os-2019.visible, .os-2023.visible, .os-2024.visible, .os-2025.visible, .os-2026.visible {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   SECTION 5: GUEST WISHES — GW MINT FORM
   ========================================================================== */
.sec-gw {
    height: 845px;
    min-height: 845px;
    padding-bottom: 40px;
    background: #ffffff;
    overflow: visible;
    z-index: 3;
}

.gw-bg-img {
    height: 407px;
    width: 390px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.gw-syb {
    position: absolute;
    z-index: 3;
    width: 141px;
    height: 55px;
    left: 124px;
    top: 330px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease, transform 1s ease;
}

.gw-syb.visible {
    opacity: 1;
    transform: scale(1);
}

/* REVISI GW: Mint #71baad form card with black contrast text */
.gw-form-card {
    position: absolute;
    z-index: 4;
    width: 340px;
    left: 25px;
    top: 400px;
    bottom: 30px;
    background: var(--mint-form);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.20);
}

.wish-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wish-form-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.wish-form-actions .wish-submit-btn {
    width: 100%;
}

.wish-form-actions .wish-cancel-btn {
    padding-inline: 16px;
    background: rgba(255, 255, 255, 0.35);
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.wish-form-actions .wish-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.55);
}

.wish-form-actions .wish-cancel-btn[hidden] {
    display: none;
}

.form-group {
    width: 100%;
}

.gw-form-card input, .gw-form-card textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gw-form-card input::placeholder,
.gw-form-card textarea::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

.gw-form-card textarea {
    resize: none;
}

.gw-form-card input:focus, .gw-form-card textarea:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.12);
}

.gw-form-card button {
    background: #1a1a1a;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gw-form-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background: #333;
}

.gw-form-card button:active {
    transform: translateY(1px);
}

.wishes-feed {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding-top: 14px;
}

.wishes-feed::-webkit-scrollbar {
    width: 4px;
}

.wishes-feed::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.wishes-feed::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.wish-item {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px;
    border-left: 3px solid #1a1a1a;
}

.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.wish-author {
    color: #1a1a1a;
    font-weight: bold;
    font-size: 12px;
}

.wish-time {
    color: rgba(0, 0, 0, 0.45);
    font-size: 10px;
}

.wish-body {
    color: #1a1a1a;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.wish-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
}

.gw-form-card .wish-action-btn {
    min-width: 0;
    padding: 5px 9px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(0, 0, 0, 0.14);
    color: #1a1a1a;
    font-family: inherit;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    box-shadow: none;
}

.gw-form-card .wish-action-btn:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: none;
}

.gw-form-card .wish-delete-btn {
    color: #8a2631;
}

.wish-empty {
    padding: 18px 8px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    text-align: center;
}

/* ==========================================================================
   SECTION 6: WEDDING GIFT
   ========================================================================== */
.sec-wg {
    height: 555px;
    background: #ffffff;
    z-index: 1;
}

.wg-bg {
    position: absolute;
    z-index: 1;
    width: 390px;
    height: auto;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 1.1s ease, transform 1.1s ease;
    pointer-events: none;
}

.wg-bg.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Seluruh komposisi muncul dari balik batas pink section Closing. */
.wg-reveal {
    position: absolute;
    z-index: 3;
    width: 390px;
    height: 255px;
    left: 0;
    top: 300px;
    transform: translateY(275px);
    opacity: 0;
    will-change: transform, opacity;
}

.wg-illustration {
    position: absolute;
    z-index: 2;
    width: 291px;
    height: 254px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    display: block;
    pointer-events: none;
}

.wg-copy-btn {
    position: absolute;
    z-index: 5;
    width: 44px;
    height: 44px;
    left: 249px;
    top: 7px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.wg-copy-btn:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 2px;
}

.wg-copy-feedback {
    position: absolute;
    z-index: 6;
    left: 50%;
    top: 55px;
    transform: translateX(-50%) translateY(4px);
    padding: 5px 10px;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    font-size: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wg-copy-feedback.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   SECTION 7: CLOSING — REVISI CL 1, CL 2
   ========================================================================== */
.sec-cl {
    height: 1179px;
    z-index: 2;
}

.cl-sparkle-1 {
    position: absolute;
    z-index: 3;
    width: 17px;
    height: 18px;
    left: 32px;
    top: 60px;
    opacity: 0;
    transition: opacity 1s ease;
}

.cl-sparkle-2 {
    position: absolute;
    z-index: 3;
    width: 14px;
    height: 13px;
    left: 256px;
    top: 620px;
    opacity: 0;
    transition: opacity 1s ease;
}

.cl-sparkle-1.visible, .cl-sparkle-2.visible {
    opacity: 1;
    animation: sparklePopLoop 2.5s ease-in-out infinite alternate;
}

/* REVISI CL 1: Wiggle lebih terasa */
.cl-thankyou {
    position: absolute;
    z-index: 3;
    width: 242px;
    height: 108px;
    left: 72px;
    top: 168px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cl-thankyou.visible {
    opacity: 1;
    transform: scale(1);
    animation: clWiggle 5s ease-in-out infinite alternate;
}

/* REVISI CL 1: Wiggle lebih terasa — dari ±0.8° ke ±4° */
@keyframes clWiggle {
    0% { transform: scale(1) rotate(-4deg); }
    50% { transform: scale(1.03) rotate(4deg); }
    100% { transform: scale(0.97) rotate(-4deg); }
}

.cl-sparkle-ty {
    position: absolute;
    z-index: 4;
    width: 38px;
    height: 39px;
    left: 268px;
    top: 176px;
    opacity: 0;
    transition: opacity 1s ease;
}

.cl-sparkle-ty.visible {
    opacity: 1;
    animation: sparkleSway 3.5s ease-in-out infinite alternate;
}

@keyframes sparkleSway {
    0% { transform: rotate(-4deg); }
    100% { transform: rotate(4deg); }
}

.cl-quotes-1 {
    position: absolute;
    z-index: 3;
    width: 195px;
    height: 65px;
    left: 98px;
    top: 344px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease, transform 1s ease;
}

.cl-quotes-1.visible {
    opacity: 1;
    transform: scale(1);
}

.cl-quotes-2 {
    position: absolute;
    z-index: 3;
    width: 191px;
    height: 76px;
    left: 100px;
    top: 458px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

.cl-quotes-2.visible {
    opacity: 1;
    transform: scale(1);
}

.cl-butterfly {
    position: absolute;
    z-index: 3;
    width: 84px;
    height: 111px;
    left: 158px;
    top: 570px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.cl-butterfly.visible {
    opacity: 1;
    transform: scale(1);
    animation: butterflyWiggle 4s ease-in-out 1.2s 2 alternate;
}

@keyframes butterflyWiggle {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(2.5deg); }
    100% { transform: translateY(2px) rotate(-2.5deg); }
}

.cl-seeyou {
    position: absolute;
    z-index: 3;
    width: 141px;
    height: 44px;
    left: 124px;
    top: 740px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease 0.4s, transform 1s ease 0.4s;
}

.cl-seeyou.visible {
    opacity: 1;
    transform: scale(1);
    animation: clWiggle 5s ease-in-out infinite alternate;
}

/* REVISI CL 2: Illustration box centered */
.cl-illustration-box {
    position: absolute;
    z-index: 3;
    width: 219px;
    height: 228px;
    left: 50%;
    top: 882px;
    transform: translateX(-50%);
}

.cl-illustration {
    width: 100%;
    height: 100%;
    display: block;
}

/* REVISI CL 1 & CL 2: Flower rotation ±50°, centered on illustration, BEHIND illustration */
.cl-flower {
    position: absolute;
    width: 181px;
    height: 183px;
    left: 50%;
    top: 56%;
    transform: translate(-50%, -50%) rotate(-50deg);
    z-index: -1;
    transform-origin: center center;
    animation: flowerLoop 7s ease-in-out infinite alternate;
}

@keyframes flowerLoop {
    0% { transform: translate(-50%, -50%) rotate(-50deg); }
    100% { transform: translate(-50%, -50%) rotate(50deg); }
}
