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

body {
    background-color: #fff8fa;
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

.carousels-container {
    position: fixed;
    width: 200%;
    height: 200%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(25deg);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.overlay-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 248, 250, 0.15);
    backdrop-filter: blur(3px);
    pointer-events: none;
    z-index: 5;
}

.infinite-carousel {
    height: 100%;
    width: 200px;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}

.carousel-inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px 0;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.heart-emoji-carousel {
    font-size: clamp(4rem, 9vw, 8rem);
    text-align: center;
    line-height: 1.2;
    filter: drop-shadow(0 2px 5px rgba(255, 80, 120, 0.3));
    transition: transform 0.2s;
    width: 100%;
    opacity: 0.9;
}

@keyframes moveUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.card {
    user-select: none;
    position: relative;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 40px 40px 30px 30px;
    box-shadow: 0 25px 45px -12px rgba(201, 80, 120, 0.35), 0 10px 20px rgba(0, 0, 0, 0.15);
    max-width: 460px;
    width: calc(100% - 30px);
    padding: 30px 25px 35px 25px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.valentine-gif {
    display: block;
    max-width: 280px;
    width: 80%;
    margin: 0 auto 20px auto;
    border-radius: 24px;
    box-shadow: 0 15px 25px -8px rgba(255, 60, 100, 0.3);
    background-color: #ffe0e7;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.question {
    font-size: 1.9rem;
    font-weight: 600;
    color: #c2185b;
    margin-bottom: 30px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(255, 105, 135, 0.3);
}

.btn {
    display: block;
    width: 100%;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    border: none;
    border-radius: 60px;
    padding: 16px 10px;
    font-size: 1.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s, opacity 0.2s;
    box-shadow: 0 12px 18px -8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.btn:active {
    transform: scale(0.96);
}

.btn-yes {
    background-color: #ff1a4c;
    color: white;
    margin-bottom: 15px;
    box-shadow: 0 12px 18px -6px #ff4d6d;
}

.btn-yes:hover {
    background-color: #e6003c;
    box-shadow: 0 15px 22px -5px #ff3355;
}

.btn-no {
    background-color: #ffc2c2;
    color: #a1304b;
    border: 2px solid #ff8a8a;
    box-shadow: 0 8px 14px rgba(255, 140, 140, 0.4);
    opacity: 0.9;
    font-weight: 600;
}

.btn-no:hover {
    background-color: #ffb0b0;
    opacity: 1;
}

@media (max-width: 480px) {
    .card {
        padding: 25px 18px 30px 18px;
        border-radius: 32px;
    }

    .question {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .btn {
        max-width: 220px;
        padding: 14px 8px;
        font-size: 1.5rem;
    }

    .valentine-gif {
        max-width: 220px;
    }
    
    .infinite-carousel {
        width: 60px;
    }
    
    .heart-emoji-carousel {
        font-size: clamp(2rem, 7vw, 4rem);
    }
}

@media (max-width: 360px) {
    .question {
        font-size: 1.4rem;
    }

    .btn {
        max-width: 190px;
        font-size: 1.3rem;
    }
    
    .infinite-carousel {
        width: 60px;
    }
    
    .heart-emoji-carousel {
        font-size: clamp(2rem, 12vw, 7rem);
    }
}

.btn-no.hidden {
    display: none;
}

.confetti-piece {
    z-index: 10;
    position: fixed;
    pointer-events: none;
    z-index: 100;
    will-change: transform, left, top;
    opacity: 0.9;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.card.celebrate {
    animation: celebratePop 0.4s ease;
}

@keyframes celebratePop {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    70% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.btn-yes.hidden, .btn-no.hidden {
    display: none;
}