* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
    --primary-deep: #4a0e0e;
    --secondary-rich: #8b1538;
    --accent-gold: #d4af37;
    --warm-cream: #fdf5f0;
    --soft-shadow: rgba(74, 14, 14, 0.3);
}

#main-screen {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#main-screen .love-card {
    width: 100%;
}

#app,
#main-screen,
#success-screen,
.password-screen {
    min-height: 100vh;
    overflow: hidden;
}

.love-bg {
    background: linear-gradient(135deg, #2d0a0a 0%, #4a0e0e 25%, #6b1421 50%, #8b1538 75%, #5a1428 100%);
    background-size: 400% 400%;
    animation: deepLoveGlow 12s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes deepLoveGlow {
    0%, 100% { background-position: 0% 50%; filter: brightness(1); }
    50% { background-position: 100% 50%; filter: brightness(1.1); }
}

/* Ambient light orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orbitMove 20s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: #d4af37;
    top: -10%;
    left: -5%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: #fdf5f0;
    bottom: -5%;
    right: -10%;
    animation-duration: 25s;
    animation-delay: 5s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: #d4af37;
    top: 30%;
    right: -15%;
    animation-duration: 22s;
    animation-delay: 10s;
}

@keyframes orbitMove {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

/* Elegant particles */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #d4af37;
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) translateX(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-200px) translateX(50px); }
}

/* Pulsing hearts - very subtle */
.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: heartDrift 15s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes heartDrift {
    0% { opacity: 0; transform: translateY(100px) scale(0.5); }
    5% { opacity: 0.3; }
    95% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-600px) scale(1.2); }
}

/* Card design - sophisticated */
.love-card {
    background: linear-gradient(135deg, rgba(253, 245, 240, 0.95) 0%, rgba(253, 245, 240, 0.92) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
    animation: cardPulse 4s ease-in-out infinite;
}

.love-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes cardPulse {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.01); }
}

.playfair { font-family: 'Playfair Display', serif; }
.cormorant { font-family: 'Cormorant Garamond', serif; }

/* Typography - elegant serif */
.heading-main {
    font-size: 3.5rem;
    font-weight: 700;
    color: #4a0e0e;
    letter-spacing: -1px;
    line-height: 1.2;
}

.heading-sub {
    font-size: 1.3rem;
    color: #6b1421;
    letter-spacing: 2px;
    font-weight: 400;
}

.message-text {
    font-size: 1.1rem;
    color: #4a0e0e;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Gold accents */
.gold-accent {
    color: #d4af37;
}

.gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 1.5rem 0;
}

/* Decorative elements */
.floral-corner {
    position: absolute;
    opacity: 0.15;
    font-size: 4rem;
}

.floral-top-left {
    top: 20px;
    left: 20px;
    transform: rotate(-15deg);
}

.floral-bottom-right {
    bottom: 20px;
    right: 20px;
    transform: rotate(15deg);
}

/* Button styling */
.btn-yes {
    background: linear-gradient(135deg, #8b1538 0%, #a61f4d 100%);
    color: #fdf5f0;
    border: 2px solid #d4af37;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(74, 14, 14, 0.3);
    animation: yesButtonPulse 2.5s ease-in-out infinite;
}

.btn-yes::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.3);
    transition: left 0.4s ease;
}

.btn-yes:hover::before {
    left: 100%;
}

.btn-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 14, 14, 0.5), 0 0 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #a61f4d 0%, #c72560 100%);
}

@keyframes yesButtonPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(74, 14, 14, 0.3), 0 0 0 0 rgba(212, 175, 55, 0); }
    50% { box-shadow: 0 8px 25px rgba(74, 14, 14, 0.4), 0 0 0 15px rgba(212, 175, 55, 0); }
}

.btn-no {
    background: rgba(212, 175, 55, 0.1);
    color: #4a0e0e;
    border: 2px solid #d4af37;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-no:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* Celebration effects */
.kiss-burst {
    position: absolute;
    font-size: 28px;
    animation: kissBurst 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    pointer-events: none;
}

@keyframes kissBurst {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0) rotate(720deg); opacity: 0; }
}

.rose-fall {
    position: absolute;
    font-size: 32px;
    animation: roseFall 4s ease-in forwards;
    pointer-events: none;
}

@keyframes roseFall {
    0% { transform: translateY(-100px) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg) scale(0.5); opacity: 0; }
}

/* Success screen */
.success-screen {
    animation: successIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successIn {
    0% { opacity: 0; transform: scale(0.8) rotate(-5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.love-text-glow {
    animation: textGlow 1.5s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
    50% { text-shadow: 0 0 25px rgba(212, 175, 55, 0.6); }
}

.heart-beat {
    animation: heartBeat 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
}

/* Entrance animation */
.card-enter {
    animation: cardEnter 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardEnter {
    0% { opacity: 0; transform: translateY(50px) scale(0.9) rotateX(10deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0deg); }
}

.hover-heart-image {
    position: fixed;
    width: 140px;
    height: 140px;
    object-fit: cover;
    clip-path: path('M70 124 C22 88 8 66 8 45 C8 26 22 12 41 12 C54 12 64 19 70 30 C76 19 86 12 99 12 C118 12 132 26 132 45 C132 66 118 88 70 124 Z');
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
    opacity: 0;
    animation: hoverHeartPop 1.1s ease forwards;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

@keyframes hoverHeartPop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(-8deg); }
    15% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.05) rotate(6deg); }
}

.no-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 6, 10, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.no-popup-card {
    background: linear-gradient(135deg, rgba(253, 245, 240, 0.98) 0%, rgba(253, 245, 240, 0.94) 100%);
    border: 2px solid rgba(212, 175, 55, 0.6);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(30, 10, 18, 0.35);
    max-width: 420px;
    width: 100%;
    padding: 28px 30px 32px;
    text-align: center;
    position: relative;
}

.no-popup-title {
    font-size: 2rem;
    color: #4a0e0e;
    margin-bottom: 10px;
}

.no-popup-msg {
    color: #6b1421;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.no-popup-btn {
    background: linear-gradient(135deg, #8b1538 0%, #a61f4d 100%);
    color: #fdf5f0;
    border: 2px solid #d4af37;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 28px rgba(74, 14, 14, 0.3);
}

.no-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(74, 14, 14, 0.4);
}

.audio-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}

.audio-ready-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.18) 100%);
    color: #fdf5f0;
    border: 2px solid rgba(212, 175, 55, 0.85);
    padding: 14px 40px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.8px;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: gentlePulse 2s ease-in-out infinite;
}

.audio-ready-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.45) 0%, rgba(212, 175, 55, 0.28) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(212, 175, 55, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 175, 55, 1);
}

@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 8px 28px rgba(212, 175, 55, 0.35),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

.audio-action-btn {
    background: rgba(212, 175, 55, 0.12);
    color: #fdf5f0;
    border: 2px solid rgba(212, 175, 55, 0.6);
    padding: 11px 24px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.audio-action-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.i-love-you-btn {
    background: rgba(212, 175, 55, 0.25);
    border-color: rgba(212, 175, 55, 0.8);
}

.i-love-you-btn:hover {
    background: rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.rating-popup-card {
    background: rgba(14, 6, 10, 0.95);
    border: 2px solid rgba(212, 175, 55, 0.7);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(10, 4, 8, 0.7);
    max-width: 460px;
    width: 100%;
    padding: 32px 28px;
    text-align: center;
    position: relative;
}

.rating-popup-title {
    color: #fdf5f0;
    font-size: 1.6rem;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.rating-popup-msg {
    color: rgba(253, 245, 240, 0.85);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 28px 0;
}

.star {
    font-size: 2.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: grayscale(0.7) brightness(0.6);
}

.star:hover {
    transform: scale(1.3);
    filter: brightness(1.2);
}

.star.selected {
    filter: grayscale(0) brightness(1.3);
    transform: scale(1.15);
}

.rating-message {
    color: #fdf5f0;
    font-size: 1.15rem;
    margin-top: 20px;
    padding: 14px 20px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    line-height: 1.5;
}

.video-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 6, 10, 0.82);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.video-popup-card {
    background: rgba(14, 6, 10, 0.92);
    border: 2px solid rgba(212, 175, 55, 0.6);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(10, 4, 8, 0.6);
    max-width: 560px;
    width: 100%;
    padding: 18px;
    position: relative;
}

.video-popup-title {
    color: #fdf5f0;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-align: center;
}

.video-popup-card video,
.video-iframe-wrapper,
.video-popup-card iframe {
    width: 100%;
    max-height: 65vh;
    border-radius: 16px;
    display: block;
    background: #0b0508;
}

.video-iframe-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-iframe-wrapper iframe {
    height: 100%;
    border: 0;
}

.video-popup-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.video-popup-actions button {
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.video-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.video-control-btn {
    background: rgba(212, 175, 55, 0.16);
    color: #fdf5f0;
    border: 2px solid rgba(212, 175, 55, 0.7);
    border-radius: 999px;
    padding: 10px 26px;
    font-weight: 600;
    letter-spacing: 0.6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.25);
}

.video-progress {
    width: 100%;
    max-width: 420px;
    height: 8px;
    border-radius: 999px;
    background: rgba(253, 245, 240, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
    overflow: hidden;
    cursor: pointer;
}

.video-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4af37 0%, #f5d76b 100%);
}

.video-time {
    color: rgba(253, 245, 240, 0.85);
    font-size: 0.95rem;
    letter-spacing: 0.4px;
}

.video-replay-btn {
    background: rgba(212, 175, 55, 0.12);
    color: #fdf5f0;
    border: 2px solid rgba(212, 175, 55, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-replay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.25);
}

.video-continue-btn {
    background: linear-gradient(135deg, #8b1538 0%, #a61f4d 100%);
    color: #fdf5f0;
    border: 2px solid #d4af37;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(74, 14, 14, 0.4);
}

.carousel-wrap {
    margin: 24px auto 28px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-row {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 10px 0;
    animation: carouselScroll 32s linear infinite;
}

.carousel-row.reverse {
    animation-direction: reverse;
    animation-duration: 36s;
}

.carousel-card {
    width: 180px;
    height: 240px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 14px 30px rgba(10, 4, 8, 0.35);
    transform: translateY(0);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.05);
}

.carousel-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 6, 10, 0.1), rgba(15, 6, 10, 0.85));
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 14px 16px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: left;
    z-index: 2;
}

.carousel-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 6px;
    line-height: 1.3;
}

.carousel-caption p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0;
}

.carousel-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 36px rgba(10, 4, 8, 0.45);
}

.carousel-card:hover::after {
    opacity: 1;
}

.carousel-card:hover .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

.last-thing-btn {
    background: rgba(212, 175, 55, 0.12);
    color: #fdf5f0;
    border: 2px solid rgba(212, 175, 55, 0.7);
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 18px;
}

.last-thing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.25);
}

.audio-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 6, 10, 0.82);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.audio-popup-card {
    background: linear-gradient(135deg, rgba(253, 245, 240, 0.98) 0%, rgba(253, 245, 240, 0.92) 100%);
    border: 2px solid rgba(212, 175, 55, 0.6);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(10, 4, 8, 0.5);
    max-width: 420px;
    width: 100%;
    padding: 26px 28px 28px;
    text-align: center;
}

.audio-popup-title {
    font-size: 1.8rem;
    color: #4a0e0e;
    margin-bottom: 10px;
}

.audio-popup-msg {
    color: #6b1421;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.audio-popup-controls {
    width: 100%;
    margin-top: 8px;
}

.audio-popup-close {
    margin-top: 16px;
    background: rgba(212, 175, 55, 0.12);
    color: #4a0e0e;
    border: 2px solid rgba(212, 175, 55, 0.7);
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audio-popup-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.25);
}

@keyframes carouselScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.password-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #2d0a0a 0%, #4a0e0e 50%, #6b1421 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999;
    overflow: hidden;
}

.lock-roses {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.password-card {
    background: linear-gradient(135deg, rgba(253, 245, 240, 0.98) 0%, rgba(253, 245, 240, 0.94) 100%);
    border: 2px solid rgba(212, 175, 55, 0.6);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(10, 4, 8, 0.6);
    max-width: 420px;
    width: 100%;
    padding: 36px 32px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.password-title {
    font-size: 2.2rem;
    color: #4a0e0e;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.password-subtitle {
    color: #6b1421;
    font-size: 1rem;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.password-reveal {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.reveal-box {
    width: 36px;
    height: 42px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 10px;
    background: rgba(253, 245, 240, 0.6);
    color: #4a0e0e;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 3px;
    color: #4a0e0e;
    background: rgba(253, 245, 240, 0.5);
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
}

.password-input:disabled {
    background: rgba(253, 245, 240, 0.3);
    color: #7b6b6b;
    cursor: not-allowed;
}

.password-input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.8);
}

.password-submit {
    background: linear-gradient(135deg, #8b1538 0%, #a61f4d 100%);
    color: #fdf5f0;
    border: 2px solid #d4af37;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(74, 14, 14, 0.3);
}

.password-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.password-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(74, 14, 14, 0.4);
}

.password-error {
    color: #8b1538;
    font-size: 0.9rem;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.password-error.show {
    opacity: 1;
}

.content-hidden {
    display: none !important;
}

.hidden {
    display: none !important;
}

.nav-controls {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    gap: 12px;
    z-index: 100;
}

.nav-btn {
    background: rgba(212, 175, 55, 0.12);
    color: #fdf5f0;
    border: 2px solid rgba(212, 175, 55, 0.6);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.4px;
    box-shadow: 0 8px 20px rgba(10, 4, 8, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(10, 4, 8, 0.45);
    background: rgba(212, 175, 55, 0.2);
}

.nav-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nav-restart {
    background: rgba(212, 175, 55, 0.22);
    border-color: rgba(212, 175, 55, 0.85);
}

.lock-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8b1538 0%, #a61f4d 100%);
    border: 2px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(74, 14, 14, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 100;
    opacity: 0;
    animation: fadeInLock 0.5s ease forwards 1s;
}

.lock-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(74, 14, 14, 0.5);
}

@media (max-width: 1024px) {
    .heading-main {
        font-size: 3rem;
    }

    .message-text {
        font-size: 1.05rem;
    }

    .carousel-card {
        width: 170px;
        height: 230px;
    }

    .video-popup-card {
        max-width: 520px;
    }
}

@media (max-width: 768px) {
    .love-card {
        padding: 2.5rem 2rem;
    }

    .heading-main {
        font-size: 2.6rem;
    }

    .message-text {
        font-size: 1rem;
    }

    .success-screen h2 {
        font-size: 3rem;
    }

    .success-screen p {
        font-size: 1.6rem;
    }

    .heart-beat {
        font-size: 4.5rem;
    }

    .carousel-row {
        gap: 14px;
    }

    .carousel-card {
        width: 150px;
        height: 205px;
    }

    .video-popup-card,
    .audio-popup-card,
    .rating-popup-card,
    .no-popup-card,
    .password-card {
        max-width: 92vw;
        padding: 22px 20px 24px;
    }

    .video-progress {
        max-width: 100%;
    }

    .audio-actions {
        flex-wrap: wrap;
    }

    .rating-stars {
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .love-card {
        padding: 2rem 1.5rem;
    }

    .heading-main {
        font-size: 2.2rem;
    }

    .message-text {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .btn-yes,
    .btn-no {
        width: 100%;
        max-width: 260px;
    }

    .success-screen h2 {
        font-size: 2.5rem;
    }

    .success-screen p {
        font-size: 1.3rem;
        letter-spacing: 0.2rem;
    }

    .heart-beat {
        font-size: 4rem;
    }

    .carousel-card {
        width: 130px;
        height: 180px;
    }

    .carousel-caption h3 {
        font-size: 0.9rem;
    }

    .carousel-caption p {
        font-size: 0.85rem;
    }

    .audio-popup-title,
    .rating-popup-title,
    .password-title,
    .no-popup-title {
        font-size: 1.5rem;
    }

    .audio-popup-msg,
    .rating-popup-msg,
    .password-subtitle,
    .no-popup-msg {
        font-size: 0.95rem;
    }

    .rating-stars {
        gap: 10px;
    }

    .star {
        font-size: 2.2rem;
    }

    .password-reveal {
        flex-wrap: wrap;
    }

    .reveal-box {
        width: 32px;
        height: 38px;
        font-size: 1.05rem;
    }

    .password-input {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .nav-controls {
        bottom: 16px;
        gap: 10px;
    }

    .nav-btn {
        padding: 8px 14px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .heading-main {
        font-size: 2rem;
    }

    .message-text {
        font-size: 0.92rem;
    }

    .love-card {
        padding: 1.75rem 1.2rem;
    }

    .btn-yes,
    .btn-no {
        max-width: 220px;
        font-size: 0.95rem;
        padding: 12px 20px;
    }

    .password-card {
        padding: 20px 18px 22px;
    }

    .password-title {
        font-size: 1.35rem;
    }

    .reveal-box {
        width: 28px;
        height: 34px;
    }

    .audio-action-btn,
    .audio-ready-btn,
    .audio-popup-close,
    .video-control-btn {
        font-size: 0.95rem;
        padding: 10px 18px;
    }
}

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

.balloon-heart {
    position: fixed;
    font-size: 24px;
    animation: balloonFloat 5s ease-in forwards;
    opacity: 0.8;
    pointer-events: none;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
}

@keyframes balloonFloat {
    0% { transform: translateY(20px) scale(0.7); opacity: 0; }
    20% { opacity: 0.9; }
    100% { transform: translateY(-140px) scale(1.15); opacity: 0; }
}