
/* إعداد الصفحة */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    font-family: Arial, Tahoma, sans-serif;

    background: linear-gradient(
        135deg,
        #fff0f5,
        #ffe0eb,
        #fcecf7
    );

    color: #563344;
}

/* الصندوق الرئيسي */
.card {
    width: min(92%, 560px);
    min-height: 440px;

    padding: 40px 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 20px;

    text-align: center;

    background: rgba(255, 255, 255, 0.85);

    border-radius: 30px;

    box-shadow:
        0 18px 55px rgba(185, 91, 127, 0.15);
}

/* العنوان */
h1 {
    color: #e83f7d;
    font-size: 32px;
}

.subtitle {
    color: #936b7c;
    font-size: 17px;
}

/* الزر */
button {
    border: none;

    padding: 16px 38px;

    border-radius: 50px;

    background: linear-gradient(
        135deg,
        #ff5c91,
        #e83f7d
    );

    color: white;

    font-size: 19px;
    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 9px 22px rgba(232, 63, 125, 0.25);

    transition: 0.3s;
}

button:hover {
    transform: translateY(-4px) scale(1.04);
}

/* منطقة القلب */
.heart-area {
    display: none;

    width: 100%;
    min-height: 220px;

    justify-content: center;
    align-items: center;
}

.heart-area.show {
    display: flex;
}

/* القلب */
.heart {
    position: relative;

    width: 260px;
    max-width: 85%;

    animation: growHeart 1.5s
        cubic-bezier(.18, .78, .26, 1.12) forwards;
}

.heart svg {
    display: block;
    width: 100%;

    filter: drop-shadow(
        0 12px 15px rgba(210, 42, 104, 0.25)
    );
}

/* الكتابة داخل القلب */
.message {
    position: absolute;

    top: 48%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 100%;

    color: white;

    font-family: Georgia, serif;

    font-size: clamp(17px, 4.5vw, 23px);

    font-weight: bold;

    text-align: center;

    white-space: nowrap;
}

/* النص أسفل القلب */
.hint {
    color: #936b7c;
}

/* حركة تكبير القلب */
@keyframes growHeart {

    0% {
        transform: scale(0.05);
        opacity: 0;
    }

    70% {
        transform: scale(1.12);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }

}

/* القلوب الصغيرة */
.sparkle {
    position: fixed;

    color: #f28aae;

    pointer-events: none;

    animation: floatUp 2.6s ease-out forwards;
}

@keyframes floatUp {

    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.6);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.2);
    }

}

/* ملاءمة الهواتف */
@media (max-width: 450px) {

    .card {
        min-height: 400px;
        padding: 25px 15px;
    }

    h1 {
        font-size: 26px;
    }

}
