body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #ffdde1, #ee9ca7);
    text-align: center;
}

/* container */
.container {
    margin-top: 60px;
}

/* tombol */
.buttons button {
    padding: 12px 20px;
    margin: 10px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: #ff4d6d;
    color: white;
}

button.no {
    background: gray;
}

/* ================= */
/* 🌹 WRAPPER */
/* ================= */

.rose-wrapper {
    position: relative;
    width: 200px;
    margin: 60px auto;
}

/* ================= */
/* 🌹 BUNGA */
/* ================= */

.rose {
    position: relative;
    width: 200px;
    height: 200px;
}

/* kelopak */
.petal {
    position: absolute;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 30% 30%, #ff6b81, #800000);
    border-radius: 50%;
    top: 55px;
    left: 55px;
    opacity: 0;
    box-shadow: 
        inset -5px -5px 10px rgba(0,0,0,0.3),
        5px 5px 15px rgba(0,0,0,0.2);
}

/* posisi awal (puzzle) */
.p1 { transform: translate(-150px, -150px); }
.p2 { transform: translate(-150px, 150px); }
.p3 { transform: translate(150px, -150px); }
.p4 { transform: translate(150px, 150px); }

/* animasi ke posisi bunga */
.p1 { animation: a1 1s forwards 0.2s; }
.p2 { animation: a2 1s forwards 0.4s; }
.p3 { animation: a3 1s forwards 0.6s; }
.p4 { animation: a4 1s forwards 0.8s; }

@keyframes a1 {
    to { transform: rotate(0deg) translate(60px); opacity: 1; }
}
@keyframes a2 {
    to { transform: rotate(90deg) translate(60px); opacity: 1; }
}
@keyframes a3 {
    to { transform: rotate(180deg) translate(60px); opacity: 1; }
}
@keyframes a4 {
    to { transform: rotate(270deg) translate(60px); opacity: 1; }
}

/* tengah bunga */
.center {
    position: absolute;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, #5a0000, #200000);
    border-radius: 50%;
    top: 65px;
    left: 65px;
    opacity: 0;
    animation: muncul 1s forwards 1s;
    box-shadow: inset -4px -4px 8px rgba(0,0,0,0.5);
}

@keyframes muncul {
    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ================= */
/* 🌿 BATANG */
/* ================= */

.stem {
    width: 8px;
    height: 120px;
    background: linear-gradient(to bottom, #2e7d32, #1b5e20);
    margin: -20px auto 0;
    border-radius: 10px;
    box-shadow: inset -2px -2px 5px rgba(0,0,0,0.4);
}

/* ================= */
/* 🍃 DAUN */
/* ================= */

.leaf {
    position: absolute;
    width: 60px;
    height: 30px;
    background: linear-gradient(to right, #4caf50, #1b5e20);
    border-radius: 50%;
    top: 160px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.leaf.left {
    left: 20px;
    transform: rotate(-30deg);
}

.leaf.right {
    right: 20px;
    transform: rotate(30deg);
}

/* teks */
.text {
    margin-top: 20px;
    font-size: 18px;
}
/* 💖 nama */
.nama {
    color: #b3003c;
    margin-bottom: 20px;
}

/* ✨ efek love jatuh */
.hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.heart {
    position: absolute;
    top: -10px;
    font-size: 20px;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}
.buttons {
    position: relative;
}

/* biar tombol ga keluar layar di HP */
.no {
    position: relative;
}

/* responsif */
@media (max-width: 600px) {
    h1 {
        font-size: 28px;
    }

    .buttons button {
        width: 80%;
        font-size: 16px;
    }
}