:root {
    --bg-color: #ffe5ec;
    --text-main: #3a0ca3;
    --accent: #e63946;
    --gold: #ffd166;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #ffb3c6, #ffe5ec, #ffc2d1, #ffb3c6);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-main);
    min-height: 100vh;
    overflow: hidden; /* Prevent scrolling, full app feel */
    display: flex;
    justify-content: center;
    align-items: center;
}

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

#hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.heart {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(230, 57, 70, 0.6);
    animation: floatUp 8s linear infinite;
    bottom: -50px;
    z-index: 1;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.8) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen {
    position: absolute;
    width: 100%;
    text-align: center;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    padding: 20px;
}

.screen.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

h1, h2, .message-text {
    font-family: 'Playfair Display', serif;
}

h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--accent);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #4a4e69;
}

/* Glassmorphism Button */
.glass-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 35px;
    font-size: 1.2rem;
    border-radius: 30px;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.1);
    font-family: 'Inter', sans-serif;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.2);
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 8px 32px rgba(230, 57, 70, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.message-text {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
    opacity: 0;
    transform: translateY(10px);
    color: var(--accent);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.active .message-text {
    animation: fadeInUp 1.2s forwards ease-out;
}

.delay-1 { animation-delay: 1.5s !important; }
.delay-2 { animation-delay: 3s !important; }
.delay-3 { 
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 4.5s; 
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s forwards ease-in-out;
}
.active .fade-in {
    animation: fadeIn 1.5s forwards ease-in-out;
}

.glow-text {
    font-size: 3.5rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(230, 57, 70, 0.3), 0 0 20px rgba(230, 57, 70, 0.2);
    margin-bottom: 50px;
}

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

.action-btn {
    padding: 18px 45px;
    font-size: 1.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
}

.action-btn.yes {
    background: #4caf50;
    color: white;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    z-index: 50;
}

.action-btn.yes:hover {
    transform: scale(1.1);
    background: #45a049;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
}

.action-btn.no {
    background: #f44336;
    color: white;
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
    z-index: 50;
    transition: left 0.3s ease, top 0.3s ease; /* smooth jump */
}

.celebration h1 {
    font-size: 3rem;
}

.ring-animation {
    font-size: 6rem;
    margin-top: 30px;
    animation: bounceRing 2s infinite ease-in-out;
    display: inline-block;
}

@keyframes bounceRing {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

@media (max-width: 600px) {
    h1 { font-size: 2.8rem; }
    .glow-text { font-size: 2.5rem; }
    .message-text { font-size: 1.3rem; }
    .action-btn { font-size: 1.3rem; padding: 15px 35px; }
    .glass-card { padding: 40px 20px; }
}
