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

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0a0a 50%, #0d0d0d 100%);
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: #ff3366;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    box-shadow: 0 0 6px #ff3366;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: floatUp var(--float-duration) linear infinite;
    opacity: 0.15;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 600;
    background: linear-gradient(135deg, #ff3366 0%, #ff6b6b 50%, #ff3366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 51, 102, 0.5);
    animation: glow 3s ease-in-out infinite alternate;
    margin-bottom: 10px;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(255, 51, 102, 0.5));
    }
    to {
        filter: drop-shadow(0 0 40px rgba(255, 51, 102, 0.8));
    }
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.time-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.time-block {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 15px;
    padding: 20px 25px;
    min-width: 100px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.time-block:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 51, 102, 0.6);
    box-shadow: 0 10px 40px rgba(255, 51, 102, 0.2);
}

.time-value {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #ff3366;
    text-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
    font-variant-numeric: tabular-nums;
}

.time-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

.heart-container {
    animation: fadeInUp 1s ease-out 0.7s both;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.heart {
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 51, 102, 0.6));
}

.heart svg {
    width: 100%;
    height: 100%;
    fill: #ff3366;
    transition: fill 0.3s ease;
}

.heart:hover {
    transform: scale(1.1);
}

.heart:hover svg {
    fill: #ff6b6b;
}

.heart:active {
    transform: scale(0.95);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.1); }
    20% { transform: scale(1); }
    30% { transform: scale(1.1); }
    40% { transform: scale(1); }
}

.heart-hint {
    margin-top: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.current-time {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Explosion container for heart click effect */
.explosion-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.explosion-heart {
    position: absolute;
    font-size: 20px;
    animation: explode var(--explode-duration) ease-out forwards;
    pointer-events: none;
}

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

.ripple {
    position: absolute;
    border: 2px solid #ff3366;
    border-radius: 50%;
    animation: rippleEffect 1s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
        margin-left: -150px;
        margin-top: -150px;
    }
}

@media (max-width: 600px) {
    .time-block {
        min-width: 80px;
        padding: 15px 20px;
    }

    .heart {
        width: 100px;
        height: 100px;
    }
}

.loading {
    opacity: 0;
    animation: none;
}

.loaded {
    animation: fadeIn 1s ease-out forwards;
}

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

