:root {
    --primary-pink: #ff758c;
    --secondary-pink: #ff7eb3;
    --deep-red: #e91e63;
    --soft-white: #fff5f7;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

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

body {
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fce4ec 0%, #f06292 100%);
    overflow: hidden;
    color: #4a4a4a;
}

.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#heartCanvas {
    width: 100%;
    height: 100%;
}

.container {
    padding: 2rem;
    perspective: 1000px;
    z-index: 10;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.heart-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.main-heart {
    width: 100px;
    height: 90px;
    position: relative;
    cursor: pointer;
    animation: pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(233, 30, 99, 0.3));
}

.heart-inner {
    position: relative;
    width: 100px;
    height: 90px;
}

.heart-inner::before,
.heart-inner::after {
    content: "";
    position: absolute;
    left: 50px;
    top: 0;
    width: 50px;
    height: 80px;
    background: var(--deep-red);
    border-radius: 50px 50px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart-inner::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--deep-red);
}

.message-box {
    min-height: 80px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.interactive-area {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.question {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    position: relative;
}

.btn {
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-yes {
    background: linear-gradient(to right, var(--primary-pink), var(--secondary-pink));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.4);
}

.btn-yes:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 117, 140, 0.6);
}

.btn-no {
    background: #fff;
    color: #888;
    border: 1px solid #ddd;
}

.hidden {
    display: none;
    opacity: 0;
}

.reveal-message {
    animation: fadeIn 1s ease-out forwards;
}

.romantic-text {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--deep-red);
    margin-bottom: 1rem;
}

.sub-text {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
}

.photo-placeholder {
    width: 100%;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 2rem;
    background: #e0e0e0;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: var(--deep-red);
    opacity: 0.7;
}

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

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

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .card {
        padding: 2rem 1.5rem;
        max-width: 95vw;
    }

    .title {
        font-size: 2rem;
    }

    .romantic-text {
        font-size: 2.2rem;
    }

    .photo-placeholder {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        padding: 0.7rem 1.5rem;
    }

    .title {
        font-size: 1.8rem;
    }

    .message-box {
        font-size: 1rem;
    }

    .main-heart {
        width: 80px;
        height: 70px;
    }

    .heart-inner::before,
    .heart-inner::after {
        width: 40px;
        height: 65px;
        left: 40px;
    }

    .heart-inner::after {
        left: 0;
    }
}

@media (max-height: 600px) {
    .card {
        padding: 1.5rem;
    }

    .heart-wrapper {
        margin-bottom: 1rem;
    }

    .title {
        margin-bottom: 1rem;
    }
}