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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.timer-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.title {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
    letter-spacing: -0.5px;
}

.last-seen {
    margin-bottom: 40px;
}

.last-seen p {
    color: #666;
    font-size: 1.1rem;
}

.date {
    color: #764ba2;
    font-weight: 600;
}

.timer-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.time-unit {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 15px;
    padding: 20px 10px;
    color: white;
    box-shadow: 0 10px 20px rgba(240, 147, 251, 0.3);
}

.number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
}

.label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(118, 75, 162, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 1s ease;
    animation: pulse 2s infinite;
}

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

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

.floating-heart {
    position: fixed;
    font-size: 20px;
    color: rgba(255, 182, 193, 0.6);
    pointer-events: none;
    z-index: -1;
    animation: float linear infinite;
}

.floating-heart:nth-child(odd) {
    color: rgba(255, 105, 180, 0.5);
}

.floating-heart:nth-child(3n) {
    color: rgba(255, 20, 147, 0.4);
}

.floating-ghost {
    position: fixed;
    font-size: 25px;
    color: rgba(230, 230, 255, 0.7);
    pointer-events: none;
    z-index: -1;
    animation: float linear infinite;
}

.floating-ghost:nth-child(odd) {
    color: rgba(200, 200, 255, 0.6);
}

.floating-ghost:nth-child(3n) {
    color: rgba(240, 240, 255, 0.5);
}

.total-time {
    color: #666;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .timer-card {
        padding: 30px 20px;
    }
    
    .title {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    .timer-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .number {
        font-size: 2rem;
    }
}

@media (max-width: 400px) {
    .timer-display {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "days hours"
            "minutes seconds";
    }
    
    .time-unit:nth-child(1) { grid-area: days; }
    .time-unit:nth-child(2) { grid-area: hours; }
    .time-unit:nth-child(3) { grid-area: minutes; }
    .time-unit:nth-child(4) { 
        grid-area: seconds;
    }
}
