body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(to bottom, #ff4d6d, #ffb3c6);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* Card */
.card {
    background: white;
    padding: 25px;
    border-radius: 25px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    z-index: 2;
}

h1 {
    color: #ff3366;
}

.name {
    color: #ff3366;
    font-weight: bold;
}

#typing {
    min-height: 60px;
    color: #555;
    font-size: 15px;
}

.photo {
    width: 100%;
    border-radius: 15px;
    margin: 15px 0;
}

input {
    padding: 10px;
    width: 90%;
    border-radius: 20px;
    border: 1px solid #ccc;
    margin-top: 10px;
}

button {
    margin-top: 10px;
    padding: 10px 18px;
    border: none;
    border-radius: 25px;
    background: #ff3366;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

button:hover {
    background: #e62e5c;
}

.hidden {
    display: none;
}

.love {
    font-size: 18px;
    color: #ff3366;
    margin-top: 10px;
}

/* Ring animation */
.ring {
    font-size: 55px;
    animation: pop 1.5s infinite;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Proposal buttons */
.buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

#noBtn {
    background: #999;
    position: relative;
}

/* Floating hearts */
.effects::before,
.effects::after {
    content: "💖 💕 🌹 💘";
    position: absolute;
    font-size: 26px;
    animation: float 12s linear infinite;
}

.effects::after {
    animation-delay: 6s;
}

@keyframes float {
    from { top: 100%; left: 0; }
    to { top: -20%; left: 80%; }
}

/* Confetti */
#confetti {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
}