* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: "Arial", sans-serif;
    background: #fff7fb;
    color: #3a1830;
}

main {
    width: 100%;
    height: 100vh;
    position: relative;
}

.page {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    opacity: 0;
    visibility: hidden;
    transform: scale(1.04) translateY(20px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        visibility 0.8s;
}

.page.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.page::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #ffd6e9;
    filter: blur(100px);
    opacity: 0.45;
    z-index: -1;
}

.tiny {
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #d94d91;
    margin-bottom: 25px;
}

h1 {
    font-size: clamp(48px, 10vw, 110px);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -4px;
    margin-bottom: 25px;
}

h1 span {
    color: #ed6ba8;
}

h2 {
    font-size: clamp(30px, 6vw, 65px);
    margin-bottom: 25px;
    line-height: 1;
}

p {
    font-size: 20px;
    line-height: 1.6;
    max-width: 650px;
}

.subtitle {
    color: #85546f;
    margin-bottom: 35px;
}

button {
    border: none;
    background: #ed6ba8;
    color: white;
    padding: 16px 30px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 8px;
    box-shadow: 0 10px 30px rgba(237, 107, 168, 0.25);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

button:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 15px 35px rgba(237, 107, 168, 0.4);
    background: #d94d91;
}

button:active {
    transform: scale(0.95);
}

.choices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 750px;
    margin-top: 20px;
}

.choices button {
    background: white;
    color: #8d3b68;
    border: 2px solid #f3c2d9;
    box-shadow: 0 8px 25px rgba(100, 30, 70, 0.08);
}

.choices button:hover {
    background: #fff0f7;
    border-color: #ed6ba8;
}

.choices .yes {
    background: #ed6ba8;
    color: white;
    border: none;
}

.photo {
    width: min(360px, 75vw);
    height: min(460px, 55vh);
    object-fit: cover;
    border-radius: 30px;
    margin-bottom: 30px;
    box-shadow:
        0 30px 70px rgba(77, 24, 56, 0.25),
        0 0 0 8px rgba(255, 255, 255, 0.7);

    animation: photoFloat 5s ease-in-out infinite;
}

@keyframes photoFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

.name {
    font-size: clamp(80px, 18vw, 190px);
    color: #ed6ba8;
    letter-spacing: 8px;
    text-shadow:
        0 10px 30px rgba(237, 107, 168, 0.25);
    animation: nameGlow 2s ease-in-out infinite alternate;
}

@keyframes nameGlow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.04);
    }
}

.list {
    margin: 20px 0;
}

.list p {
    font-size: 18px;
    margin: 8px;
}

.big-heart {
    font-size: clamp(90px, 20vw, 180px);
    animation: heartbeat 1.2s infinite;
    margin-bottom: 20px;
}

@keyframes heartbeat {
    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.12);
    }
}

.signature {
    font-size: 15px;
    color: #9c718b;
    margin-top: 30px;
}

#hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 100;
}

.heart {
    position: absolute;
    bottom: -50px;
    font-size: 20px;
    animation: floatHeart linear forwards;
    opacity: 0.8;
}

@keyframes floatHeart {
    0% {
        transform:
            translateY(0)
            translateX(0)
            rotate(0deg)
            scale(0.7);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform:
            translateY(-50vh)
            translateX(40px)
            rotate(180deg)
            scale(1);
    }

    100% {
        transform:
            translateY(-115vh)
            translateX(-50px)
            rotate(360deg)
            scale(0.6);
        opacity: 0;
    }
}

.final {
    background:
        radial-gradient(
            circle at center,
            #fff,
            #fff0f7 50%,
            #ffd8e9
        );
}

.final h1 {
    color: #d94d91;
}

@media (max-width: 600px) {
    .page {
        padding: 25px 18px;
    }

    h1 {
        letter-spacing: -2px;
    }

    p {
        font-size: 17px;
    }

    button {
        padding: 14px 22px;
        font-size: 14px;
    }

    .photo {
        width: min(300px, 78vw);
        height: min(390px, 50vh);
        border-radius: 24px;
    }
}