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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffeef8 0%, #ffd6e7 50%, #ffb6c1 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    position: relative;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.question-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 105, 135, 0.3);
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.question-card.hidden {
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.hearts-decoration {
    margin-bottom: 20px;
}

.heart {
    color: #ff6b8a;
    font-size: 24px;
    margin: 0 8px;
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

.heart:nth-child(2) {
    animation-delay: 0.2s;
    font-size: 32px;
    color: #ff4d6d;
}

.heart:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.subtitle {
    color: #888;
    font-size: 1rem;
    margin-bottom: 12px;
}

.title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    color: #d63864;
    margin-bottom: 35px;
    font-weight: 600;
    line-height: 1.2;
}

.buttons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    position: relative;
}

.btn {
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-yes {
    background: linear-gradient(135deg, #ff6b8a 0%, #ff4d6d 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.4);
    order: 1;
}

.btn-yes:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(255, 77, 109, 0.5);
}

.btn-yes:active {
    transform: scale(1.02);
}

.btn-no {
    background: white;
    color: #999;
    border: 2px solid #ddd;
    order: 2;
    transition: all 0.2s ease;
    z-index: 10;
}

.btn-no.escaping {
    position: absolute;
}

.btn-no:hover {
    border-color: #ccc;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.success-message.show {
    opacity: 1;
    pointer-events: auto;
}

.success-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(255, 77, 109, 0.4);
    transform: scale(0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90%;
}

.success-message.show .success-content {
    transform: scale(1);
}

.big-heart {
    font-size: 80px;
    color: #ff4d6d;
    animation: heartbeat 0.8s ease-in-out infinite;
    line-height: 1;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.15);
    }
}

.success-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    color: #d63864;
    margin: 20px 0 10px;
}

.success-content p {
    color: #666;
    font-size: 1.1rem;
    margin: 8px 0;
}

.personal-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem !important;
    color: #d63864 !important;
    font-weight: 600;
}

.love-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem !important;
    color: #ff4d6d !important;
    margin-top: 20px !important;
    font-weight: 600;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .question-card {
        padding: 35px 25px;
    }

    .btn {
        padding: 12px 32px;
        font-size: 1rem;
    }

    .buttons-container {
        flex-direction: row;
        gap: 15px;
        justify-content: space-between;
        padding: 0 10px;
    }

    .success-content {
        padding: 40px 30px;
    }

    .big-heart {
        font-size: 60px;
    }
}

/* Floating background hearts */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 138, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 77, 109, 0.1) 0%, transparent 50%);
    z-index: 0;
}
