* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff9a9e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.container {
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.card {
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 50px 40px;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border: 3px solid #2d3748;
    animation: cardAppear 0.8s ease;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.step {
    display: none;
    text-align: center;
    animation: fadeIn 0.6s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hearts-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hearts-decoration .heart {
    position: absolute;
    font-size: 30px;
    animation: floatHeart 3s ease-in-out infinite;
}

.hearts-decoration .heart:nth-child(1) {
    top: 30px;
    left: 30px;
    animation-delay: 0s;
}

.hearts-decoration .heart:nth-child(2) {
    top: 50px;
    right: 40px;
    animation-delay: 0.5s;
}

.hearts-decoration .heart:nth-child(3) {
    bottom: 80px;
    left: 40px;
    animation-delay: 1s;
}

.hearts-decoration .heart:nth-child(4) {
    bottom: 60px;
    right: 30px;
    animation-delay: 1.5s;
}

.hearts-decoration.celebration .heart:nth-child(5) {
    top: 40%;
    left: 20px;
    animation-delay: 2s;
}

.hearts-decoration.celebration .heart:nth-child(6) {
    top: 40%;
    right: 20px;
    animation-delay: 2.5s;
}

@keyframes floatHeart {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.handwritten {
    font-family: 'Caveat', cursive;
    font-size: 48px;
    color: #2d3748;
    margin: 15px 0;
    font-weight: 700;
    line-height: 1.2;
}

.handwritten.big {
    font-size: 56px;
}

.handwritten.huge {
    font-size: 72px;
    color: #ff6b9d;
}

.message {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.8;
    margin: 20px 0;
}

.message.small {
    font-size: 16px;
}

.emoji-big {
    font-size: 80px;
    margin: 20px 0;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.celebration-emoji {
    animation: rotate 1s ease;
}

@keyframes rotate {
    0% { transform: rotate(0deg) scale(0); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.next-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffa06b 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
    font-family: 'Poppins', sans-serif;
}

.next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 157, 0.4);
}

.next-btn .arrow {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.next-btn:hover .arrow {
    transform: translateX(5px);
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
    position: relative;
    min-height: 70px;
}

.yes-btn, .no-btn {
    padding: 18px 45px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.yes-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.yes-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(72, 187, 120, 0.4);
}

.no-btn {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
    position: relative;
    z-index: 1000;
}

.hearts-final {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    font-size: 50px;
}

.hearts-final span {
    animation: heartBeat 1s ease infinite;
}

.hearts-final span:nth-child(1) { animation-delay: 0s; }
.hearts-final span:nth-child(2) { animation-delay: 0.2s; }
.hearts-final span:nth-child(3) { animation-delay: 0.4s; }

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
    .card {
        padding: 40px 30px;
        min-height: 500px;
    }
    
    .handwritten {
        font-size: 40px;
    }
    
    .handwritten.big {
        font-size: 48px;
    }
    
    .handwritten.huge {
        font-size: 60px;
    }
    
    .message {
        font-size: 16px;
    }
    
    .emoji-big {
        font-size: 60px;
    }
    
    .hearts-decoration .heart {
        font-size: 24px;
    }
    
    .next-btn, .yes-btn, .no-btn {
        padding: 15px 35px;
        font-size: 16px;
    }
}
