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

body {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #ffd4d4 0%, #ffe4e1 50%, #ffd9d4 100%);
    overflow: hidden;
    font-family: 'Arima';
    position: relative;
}

.leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    animation: fall linear infinite;
    z-index: 1;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(120vh) rotate(360deg);
        opacity: 0.4;
    }
}

.heart-container {
    position: absolute;
    bottom: 190px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
    transition: all 0.6s ease;
}

.glowing-heart {
    position: relative;
    width: 120px;
    height: 120px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.8)) 
                drop-shadow(0 0 40px rgba(255, 107, 157, 0.6));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255, 107, 157, 1)) 
                drop-shadow(0 0 60px rgba(255, 107, 157, 0.8));
        transform: scale(1.05);
    }
}

.glowing-heart::before,
.glowing-heart::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 96px;
    background: linear-gradient(135deg, #ff1744, #ff6b9d);
    border-radius: 60px 60px 0 0;
}

.glowing-heart::before {
    left: 60px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.glowing-heart::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.touch-text {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Arima', cursive;
    font-size: 24px;
    color: #ff1744;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
}

.miss-you-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Patrick hand', cursive;
    font-size: 36px;
    color: #ff1744;
    opacity: 0;
    transition: opacity 0.8s ease;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.miss-you-text.show {
    opacity: 1;
}

.cards-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
    z-index: 10;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cards-container::-webkit-scrollbar {
    display: none;
}

.card {
    background: #fff;
    border: 2px solid #ffb6c1;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(-100vw) rotate(-15deg);
    transition: all 2s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 20px;
    color: #333;
    line-height: 1.6;
    position: relative;
}

.card::before {
    content: '♥';
    position: absolute;
    top: 10px;
    right: 15px;
    color: #ff6b9d;
    font-size: 24px;
}

.card.show {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

.card-1 { background: linear-gradient(135deg, #fff5f7 0%, #ffe4e9 100%); }
.card-2 { background: linear-gradient(135deg, #fff9e6 0%, #ffe8cc 100%); }
.card-3 { background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%); }
.card-4 { background: linear-gradient(135deg, #f5fff0 0%, #e8ffe6 100%); }

.letter-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 10;
}

.letter-paper {
    background: linear-gradient(to bottom, #fffef9 0%, #fffef9 95%, #f9f7e8 100%);
    border: 1px solid #d4c5a9;
    border-radius: 8px;
    padding: 30px 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.letter-paper::-webkit-scrollbar {
    display: none;
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, #ffe6e6 10%, #ffe6e6 90%, transparent 100%);
}

.letter-text {
    font-family: 'Dancing Script', cursive;
    font-size: 22px;
    color: #4a4a4a;
    line-height: 2.2;
    white-space: pre-wrap;
    padding-left: 20px;
}

.continue-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b9d, #ff1744);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-family: 'Caveat', cursive;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 23, 68, 0.3);
    transition: all 0.3s ease;
    display: none;
    z-index: 20;
}

.continue-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 7px 25px rgba(255, 23, 68, 0.4);
}

.audio-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ff6b9d;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.audio-control:hover {
    transform: scale(1.1);
}