:root {
    /* Bảng màu Cinematic Romance */
    --bg-color: #1a0b1c; /* Bầu trời đêm chạng vạng (Dark twilight) */
    --surface-color: rgba(255, 182, 193, 0.08); /* Kính mờ hồng nhạt */
    --text-primary: #ffffff;
    --text-accent: #ffb6c1; /* Soft blush */
    --heart-color: #ff2a5f; /* Neon glow pink/red */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at center, #2d142c 0%, #1a0b1c 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    user-select: none;
}

/* Hiệu ứng Trái tim bay lơ lửng */
#heart-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    bottom: -10vh;
    font-size: 1.5rem;
    color: var(--heart-color);
    animation: floatUp linear forwards;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(255, 42, 95, 0.8));
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120vh) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}

/* Khung chứa nội dung */
.content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 700px;
}

.message-box {
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hiệu ứng chữ mượt mà */
.message-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    color: #fff;
}

.message-text.active {
    opacity: 1;
    transform: translateY(0);
}

.message-text.fade-out {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
}

/* Khung hành động cuối cùng (Glassmorphism) */
.action-buttons {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: fadeIn 1.5s ease forwards;
}

.final-question {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-accent);
    margin-bottom: 2.5rem;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(255, 182, 193, 0.3);
}

.buttons {
    position: relative;
    width: 100%;
    height: 60px;
}

.btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    outline: none;
}

/* Nút Đồng ý */
.btn-primary {
    background: var(--heart-color);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 42, 95, 0.4);
    position: absolute;
    left: 50%;
    transform: translateX(calc(-100% - 15px));
    z-index: 2;
}

.btn-primary:hover {
    transform: translateX(calc(-100% - 15px)) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 42, 95, 0.6);
}

/* Nút Chê (Sẽ chạy trốn) */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    position: absolute;
    left: 50%;
    transform: translateX(15px);
    z-index: 2;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.celebration {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--heart-color);
    text-shadow: 0 0 20px rgba(255, 42, 95, 0.6);
    line-height: 1.4;
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
    .message-text { font-size: 1.6rem; }
    .final-question { font-size: 1.6rem; }
    .btn { font-size: 1rem; padding: 0.7rem 1.8rem; }
    .btn-primary { transform: translateX(calc(-100% - 5px)); }
    .btn-primary:hover { transform: translateX(calc(-100% - 5px)) scale(1.05); }
    .btn-secondary { transform: translateX(5px); }
}