* { box-sizing: border-box; touch-action: manipulation; }

body, html {
    margin: 0; padding: 0; width: 100%; height: 100%;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    overflow: hidden;
}

#app-container { width: 100vw; height: 100vh; position: relative; }

.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

/* Screens */
section { 
    height: 100%; width: 100%; 
    display: flex; justify-content: center; align-items: center;
    position: absolute; transition: opacity 0.8s ease;
}

.hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.active { opacity: 1; z-index: 10; }

/* Buttons & Navigation */
.btn-container { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    align-items: center;
    margin-top: 20px; 
    flex-wrap: wrap;
}

button {
    padding: 15px 30px; border-radius: 50px; border: none;
    font-weight: 600; cursor: pointer; font-size: 1.1rem;
    transition: transform 0.2s;
}

#yes-btn { background: #ff4b6b; color: white; box-shadow: 0 5px 15px rgba(255,75,107,0.4); }
#no-btn { background: white; color: #ff4b6b; }

/* Poem Styling */
.poem-box {
    margin-top: 10px;
    margin-bottom: 20px;
}

.poem {
    font-family: 'Dancing Script', cursive;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d63384;
    font-style: italic;
    margin: 0 0 15px 0;
}

.love-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff4b6b;
    margin: 0;
}

/* Garden Logic */
.garden-overlay {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.instruction {
    font-size: 1.8rem;
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

#counter {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff4b6b;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
}

#flower-bed { width: 100%; height: 100%; position: relative; z-index: 1; }

.flower {
    position: absolute;
    font-size: clamp(3rem, 10vw, 5rem); /* Responsive size */
    transform-origin: bottom center;
    animation: growBloom 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.27) forwards;
}

@keyframes growBloom {
    0% { transform: scale(0) rotate(-20deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

#final-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2); z-index: 100;
    display: flex; align-items: center; justify-content: center;
}

.scrollable { max-height: 80vh; overflow-y: auto; }
.dancing-font { font-family: 'Dancing Script', cursive; color: #d63384; margin-bottom: 10px; }
.reasons-list { text-align: left; list-style: none; padding: 0; }
.reasons-list li { margin: 15px 0; font-size: 0.95rem; line-height: 1.4; }