body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffe6f2, #ffc6e2);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* Floating sparkles background */
.sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #ff69b4;
    border-radius: 50%;
    animation: float 5s linear infinite;
}
@keyframes float {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 1; }
    50% { transform: translateY(-50px) translateX(20px) scale(1.3); opacity: 0.7; }
    100% { transform: translateY(0) translateX(-10px) scale(1); opacity: 1; }
}

/* ===== BOX ===== */
.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(145deg, #fff0f5, #ffe6f2);
    padding: 5vh 5vw;
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(255,105,180,0.3);
    text-align: center;
    position: relative;
}

/* ===== HEADINGS ===== */
.headingone, .headingtwo {
    font-size: 5vh;
    font-weight: 700;
    margin-bottom: 3vh;
    color: #ff1493;
    text-shadow: 2px 2px 6px rgba(255,20,147,0.5);
}
.wanna {
    font-size: 6vh;
    font-weight: 700;
    margin: 2vh 0;
    color: #ff69b4;
    animation: glow 1.5s infinite alternate;
}
@keyframes glow {
    from { text-shadow: 0 0 10px #ff69b4; }
    to { text-shadow: 0 0 25px #ff1493; }
}

/* ===== BUTTONS ===== */
.buttonone, .buttontwo, .restartBtn {
    width: 80%;
    max-width: 300px;
    padding: 1.2em;
    font-size: 1.5em;
    font-weight: 700;
    border-radius: 3em;
    border: none;
    cursor: pointer;
    margin-bottom: 2vh;
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
    box-shadow: 0 8px 25px rgba(255,20,147,0.3);
    transition: all 0.3s ease;
}
.buttonone:hover, .buttontwo:hover, .restartBtn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 35px rgba(255,20,147,0.6);
}

/* ===== HEARTS ===== */
.hearts {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2vh;
}
.heart {
    font-size: 4vh;
    transition: transform 0.6s, opacity 0.6s;
    position: relative;
}
.heart.lost {
    transform: scale(0) rotate(-30deg);
    opacity: 0;
    animation: heartPop 0.6s forwards;
}
@keyframes heartPop {
    0% { transform: scale(1); opacity:1; }
    50% { transform: scale(1.5) rotate(-15deg); opacity:0.8; }
    100% { transform: scale(0) rotate(-30deg); opacity:0; }
}
/* Heart sparkle */
.heart::after {
    content: "✨";
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 1.5vh;
    animation: sparkle 1s infinite;
    opacity: 0.8;
}
@keyframes sparkle {
    0% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.5) opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

/* ===== TIMER ===== */
.timer {
    font-size: 3vh;
    font-weight: 700;
    margin-bottom: 2vh;
    color: #ff1493;
    text-shadow: 1px 1px 3px rgba(255,20,147,0.5);
}

/* ===== HIDDEN ===== */
.headingtwo, .buttontwo, .hearts, .timer, .restartBtn {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 500px) {
    .box { padding: 3vh 4vw; }
    .headingone, .headingtwo { font-size: 4vh; margin-bottom: 2vh; }
    .wanna { font-size: 5vh; margin: 2vh 0; }
    .buttonone, .buttontwo, .restartBtn { width: 90%; max-width: 250px; font-size: 1.2em; padding: 0.8em 1em; }
    .hearts { font-size: 3vh; gap: 6px; margin-bottom: 1.5vh; }
    .timer { font-size: 2.5vh; margin-bottom: 1.5vh; }
}
@media (max-width: 350px) {
    .box { padding: 2vh 3vw; }
    .headingone, .headingtwo { font-size: 3.5vh; }
    .wanna { font-size: 4.5vh; }
    .buttonone, .buttontwo, .restartBtn { width: 100%; font-size: 1em; padding: 0.6em 0.8em; }
    .hearts { font-size: 2.5vh; gap: 4px; }
    .timer { font-size: 2vh; }
}

/* ===== CONFETTI ===== */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ff69b4;
    top: 0;
    animation: fall 2s linear infinite;
}
@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}
