body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    /* background:linear-gradient(135deg,#fff0f5,#f6f0ff); */
    background-image: url(bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding-top: 80px;
}

/* Banner */
#banner {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.banner-word {
    font-weight: bold;
    font-size: 32px;
    color: #ff3632;
    padding: 10px 21px;
    border-radius: 12px;
    background: #ffe0ed;
    opacity: 0;
    animation: fallIn 0.8s forwards;
}

@keyframes fallIn {
    from {
        transform: translateY(-30px) scale(0.6);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Confetti */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff9ab3;
    top: 0;
    left: 50%;
    opacity: 0.9;
    border-radius: 50%;
    pointer-events: none;
    animation: fallConfetti linear forwards;
}

@keyframes fallConfetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(120vh) rotate(360deg);
        opacity: 0;
    }
}

/* Card */
.card {
    background: white;
    width: 92%;
    max-width: 450px;
    padding: 26px;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
    text-align: center;
    animation: fadeSlide .6s ease;
    z-index: 2;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 22px;
    margin-bottom: 10px
}

p {
    font-size: 16px;
    line-height: 1.7;
    color: #333
}

/* Button */
button {
    width: 80%;
    padding: 12px;
    margin-top: 14px;
    border: none;
    border-radius: 14px;
    background: #e84a7a;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button.nextBtn {
    background: #6c63ff
}

/* Input */
input {
    width: 90%;
    padding: 12px;
    margin-top: 12px;
    border-radius: 14px;
    border: 1px solid #ccc;
    font-size: 16px;
    text-align: center;
}

/* Feedback */
.feedback {
    margin-top: 12px;
    color: #777;
    min-height: 22px
}

/* Floating letters/words */
.falling-word {
    position: absolute;
    font-size: 20px;
    font-weight: bold;
    color: #ff9ab3;
    animation: fallWord 1.5s ease forwards;
}

@keyframes fallWord {
    0% {
        transform: translateY(-40px) scale(0.6);
        opacity: 0;
    }

    60% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(0);
    }
}

/* Sparkles */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffd1dc;
    animation: floatSparkle 1.5s linear forwards;
    pointer-events: none;
}

@keyframes floatSparkle {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1.2);
    }

    100% {
        transform: translateY(-40px) scale(0.5);
    }
}

/* Popup image */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20;
    text-align: center;
}

.popup-content img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 16px;
    cursor: pointer;
}

/* Hearts */
.heart {
    position: absolute;
    bottom: -20px;
    color: #ff9ab3;
    font-size: 14px;
    animation: floatUp 10s linear infinite;
    opacity: .6;
    pointer-events: none;
}

@keyframes floatUp {
    from {
        transform: translateY(0);
        opacity: 0
    }

    10% {
        opacity: .6
    }

    to {
        transform: translateY(-120vh);
        opacity: 0
    }
}

@media (max-width:700px) {
    body {
        margin: 0;
        font-family: "Segoe UI", Tahoma, sans-serif;
        /* background:linear-gradient(135deg,#fff0f5,#f6f0ff); */
        background-image: url(bg.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        position: relative;
        padding-top: 80px;
    }

    /* Banner */
    #banner {
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        z-index: 10;
        width: 100%;
    }

    .banner-word {
        font-weight: bold;
        font-size: 16px;
        color: #ff3632;
        padding: 5px 13px;
        border-radius: 12px;
        background: #ffe0ed;
        opacity: 0;
        animation: fallIn 0.8s forwards;
    }

    /* Confetti */
    .confetti {
        position: absolute;
        width: 8px;
        height: 8px;
        background: #ff9ab3;
        top: 0;
        left: 50%;
        opacity: 0.9;
        border-radius: 50%;
        pointer-events: none;
        animation: fallConfetti linear forwards;
    }

    /* Card */
    .card {
        background: white;
        width: 70%;
        max-width: 450px;
        padding: 26px;
        border-radius: 22px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
        text-align: center;
        animation: fadeSlide .6s ease;
        z-index: 2;
        margin-top: 24vw !important;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 10px
    }

    p {
        font-size: 16px;
        line-height: 1.7;
        color: #333
    }

    /* Button */
    button {
        width: 80%;
        padding: 12px;
        margin-top: 14px;
        border: none;
        border-radius: 14px;
        background: #e84a7a;
        color: white;
        font-size: 16px;
        cursor: pointer;
    }

    button.nextBtn {
        background: #6c63ff
    }

    /* Input */
    input {
        width: 90%;
        padding: 12px;
        margin-top: 12px;
        border-radius: 14px;
        border: 1px solid #ccc;
        font-size: 16px;
        text-align: center;
    }

    /* Feedback */
    .feedback {
        margin-top: 12px;
        color: #777;
        min-height: 22px
    }

    /* Floating letters/words */
    .falling-word {
        position: absolute;
        font-size: 20px;
        font-weight: bold;
        color: #ff9ab3;
        animation: fallWord 1.5s ease forwards;
    }

    /* Sparkles */
    .sparkle {
        position: absolute;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #ffd1dc;
        animation: floatSparkle 1.5s linear forwards;
        pointer-events: none;
    }

    /* Popup image */
    .popup {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 20;
        text-align: center;
    }

    .popup-content img {
        max-width: 90%;
        max-height: 80vh;
        border-radius: 16px;
        cursor: pointer;
    }

    /* Hearts */
    .heart {
        position: absolute;
        bottom: -20px;
        color: #ff9ab3;
        font-size: 14px;
        animation: floatUp 10s linear infinite;
        opacity: .6;
        pointer-events: none;
    }

    video {
        width: 100vw;
    }

}