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

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(270deg, #ffc0cb, #ffb6c1, #ffd1dc);
    background-size: 400% 400%;
    animation: bgMove 10s ease infinite;
    font-family: 'Dancing Script', cursive;
}

@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    text-align: center;
}

h1 {
    font-size: 42px;
    color: #d6336c;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 14px 26px;
    font-size: 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: white;
    user-select: none;
}

.agree {
    background: #ff5c8a;
}

.no {
    background: #999;
    position: relative;
}

body {
    background: linear-gradient(270deg, #ffb6c1, #ffc0cb, #ffd1dc, #ff9a9e);
    background-size: 600% 600%;
    animation: bgMove 12s ease infinite;
}

.hearts {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.heart {
    position: absolute;
    bottom: -20px;
    font-size: 20px;
    color: rgba(255, 92, 138, 0.7);
    animation: fly 6s linear infinite;
}

@keyframes fly {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) scale(1.5);
        opacity: 0;
    }
}

.pulse {
    animation: pulse 1.8s infinite;
}

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

.glow {
    box-shadow: 0 0 12px rgba(255, 92, 138, 0.6);
    animation: glow 2s infinite;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 92, 138, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 92, 138, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 92, 138, 0.4);
    }
}

.sub-text {
    margin-top: 10px;
    font-size: 26px;
    color: #ff5c8a;
    opacity: 0.9;
    animation: fadeIn 2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 182, 193, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.overlay.show {
    opacity: 1;
}

.agree.clicked {
    animation: clickPop 0.4s ease;
}

@keyframes clickPop {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.15);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Đảm bảo nút luôn bấm được */
.buttons,
.btn {
    position: relative;
    z-index: 9999;
}

/* Overlay + hiệu ứng không được chặn click */
.overlay,
.hearts {
    pointer-events: none;
}
