:root {
    --bg-dark: #1a0b12; /* Deep romantic dark red/black */
    --primary: #d47a8b; /* Soft rose gold/pink */
    --text-main: #f5e6e8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --btn-hover: rgba(212, 122, 139, 0.8);
    --error: #ff4d4d;
    --success: #66bb6a;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden; /* Prevent scrolling, single page app feel */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #2b0c16 0%, #1a0b12 100%);
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent url('https://www.transparenttextures.com/patterns/stardust.png') repeat top center;
    animation: move-twink-back 200s linear infinite;
    opacity: 0.3;
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

/* Screens */
.screen {
    display: none;
    width: 100%;
    max-width: 480px; /* Mobile first max width */
    height: 100%;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.screen.active {
    display: flex;
}

/* Glassmorphism Card */
.glass-card, .photo-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    width: 100%;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.photo-card {
    padding: 15px;
}

/* Typography */
.romantic-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.highlight-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}

/* Inputs & Buttons */
input[type="password"] {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    outline: none;
}

input[type="password"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(212, 122, 139, 0.3);
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    width: 100%;
    margin-top: 10px;
}

.primary-btn:hover, .primary-btn:active {
    background: var(--btn-hover);
    transform: translateY(-2px);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.option-btn:hover, .option-btn:active {
    background: rgba(255, 255, 255, 0.15);
}

.option-btn.correct {
    background: rgba(102, 187, 106, 0.2);
    border-color: var(--success);
}

.option-btn.wrong {
    background: rgba(255, 77, 77, 0.2);
    border-color: var(--error);
    animation: shake 0.5s;
}

.feedback-msg {
    margin-top: 15px;
    font-weight: 600;
    min-height: 24px;
    margin-bottom: 0;
}

/* Photos */
.image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #000;
    margin-bottom: 15px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-caption {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 10px;
}

/* Proposal Screen */
.proposal-card {
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(212, 122, 139, 0.4);
    background: rgba(43, 12, 22, 0.6);
}

.ring-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

.proposal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.yes-btn {
    background: linear-gradient(135deg, #ff4081, #d47a8b);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 40px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 64, 129, 0.4);
    font-family: 'Outfit', sans-serif;
}

.finale-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.finale-overlay.hidden {
    display: none;
}

.finale-text {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 20px var(--primary);
    text-align: center;
    padding: 20px;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

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

.slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 122, 139, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(212, 122, 139, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 122, 139, 0); }
}

.scale-in {
    animation: scaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Utility */
.mt-4 {
    margin-top: 1rem;
}
.error-msg {
    color: var(--error);
    margin-top: 10px;
    font-size: 0.9rem;
}

.finale-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.finale-photo-wrapper {
    width: 80%;
    max-width: 400px;
    aspect-ratio: 4/5;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 20px;
    border: 3px solid var(--primary);
    box-shadow: 0 0 30px rgba(212, 122, 139, 0.6);
    background: #000;
}

.finale-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
