:root {
    --rose: #fb7185;
    --rose-dark: #e11d48;
    --soft-pink: #fff1f2;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--soft-pink);
    color: #4c0519;
    overflow-x: hidden;
    scroll-behavior: smooth;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.font-romantic { font-family: 'Dancing Script', cursive; }
.font-serif { font-family: 'Playfair Display', serif; }

.glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#main-app { display: none; opacity: 0; transition: opacity 1s ease; }

.polaroid {
    background: white;
    padding: 8px 8px 24px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-radius: 4px;
    transition: transform 0.3s ease;
}
.polaroid:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
}

.video-container {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(251, 113, 133, 0.2);
    border: 4px solid white;
}

.card { perspective: 1000px; height: 70px; }
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.card.flipped .card-inner { transform: rotateY(180deg); }
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.card-back { transform: rotateY(180deg); background: white; }
.card-front { background: var(--rose); color: white; }

#bg-particles {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.tape {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 25px;
    background: rgba(251, 113, 133, 0.3);
    backdrop-filter: blur(2px);
    z-index: 2;
}

/* Message List Styling */
.message-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 1.5rem;
    animation: slideUpFade 0.5s ease-out forwards;
}

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

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(251, 113, 133, 0.05);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(251, 113, 133, 0.2);
    border-radius: 10px;
}
