body {
    font-family: 'Arial', sans-serif;
    background: radial-gradient(circle, #ffebee 0%, #fce4ec 50%, #f8bbd0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    color: white;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

.container {
    text-align: center;
    position: relative;
    z-index: 10;
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.8);
    background: linear-gradient(to right, #ffb6c1, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.heart-3d {
    perspective: 1000px;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.heart-shape {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: pulse 2s infinite, rotate 15s infinite linear;
}

.heart-shape:before, .heart-shape:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 160px;
    background: linear-gradient(45deg, #ffb6c1 0%, #ff69b4 50%, #db7093 100%);
    border-radius: 50px 50px 0 0;
    box-shadow: 0 0 50px rgba(255, 105, 180, 0.6);
}

.heart-shape:before {
    transform: rotate(-45deg) translateY(-30px) translateZ(20px);
}

.heart-shape:after {
    transform: rotate(45deg) translateX(30px) translateZ(20px);
}

@keyframes pulse {
    0% { transform: scale(1) rotateY(0deg); }
    50% { transform: scale(1.1) rotateY(180deg); }
    100% { transform: scale(1) rotateY(360deg); }
}

@keyframes rotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.message {
    font-size: 1.5rem;
    margin: 2rem 0;
    line-height: 2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.date-counter {
    font-size: 1.2rem;
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 182, 193, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

@keyframes pulse {
    0% { transform: scale(1) rotateY(0deg); }
    50% { transform: scale(1.1) rotateY(180deg); }
    100% { transform: scale(1) rotateY(360deg); }
}

@keyframes rotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

#heart-container {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.sparkle-text {
    font-size: 1.8rem;
    margin: 1rem 0;
    animation: sparkle 2s infinite;
    background: linear-gradient(to right, #ff4081, #ff80ab);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes sparkle {
    0% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.5; transform: scale(0.8); }
}