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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #2d2d2d 50%, #1a1a1a 75%, #0a0a0a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(240, 185, 11, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(240, 185, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    text-align: center;
    padding: 40px 20px;
    max-width: 700px;
    width: 100%;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f0b90b 0%, #ffd700 25%, #ffff00 50%, #ffd700 75%, #f0b90b 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(240, 185, 11, 0.3);
    margin-bottom: 15px;
    animation: gradientShift 3s ease-in-out infinite, bounce 2s infinite;
    letter-spacing: -1px;
}

header p {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.game-area {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 1px solid rgba(240, 185, 11, 0.3);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.4),
        0 0 0 1px rgba(240, 185, 11, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.game-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 185, 11, 0.5), transparent);
}

.cz-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 40px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cz-container:hover {
    transform: scale(1.08) translateY(-5px);
}

.cz-image-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.5),
        0 0 0 1px rgba(240, 185, 11, 0.2),
        0 0 30px rgba(240, 185, 11, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border: 2px solid rgba(240, 185, 11, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cz-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(1.05) contrast(1.05) saturate(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(240, 185, 11, 0.1) 0%, 
        rgba(255, 215, 0, 0.2) 50%, 
        rgba(240, 185, 11, 0.1) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 50%;
}

.cz-container:hover .image-overlay {
    opacity: 1;
}

.cz-container:hover .cz-image {
    transform: scale(1.05);
    filter: brightness(1.15) contrast(1.1) saturate(1.2);
}

.kiss-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: all 0.5s ease;
}

.kiss-overlay.show {
    opacity: 1;
    animation: kiss 0.8s ease-out;
}

@keyframes kiss {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 25px;
}

.kiss-counter, .love-meter {
    flex: 1;
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    border: 1px solid rgba(240, 185, 11, 0.2);
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.3),
        0 0 0 1px rgba(240, 185, 11, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kiss-counter::before, .love-meter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 185, 11, 0.3), transparent);
}

.counter-label, .love-label {
    display: block;
    font-weight: 500;
    color: #f0b90b;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.counter-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f0b90b, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(240, 185, 11, 0.3);
}

.love-bar {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #0a0a0a, #1a1a1a);
    border: 1px solid rgba(240, 185, 11, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0 10px 0;
    position: relative;
}

.love-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(240, 185, 11, 0.1), transparent);
    border-radius: 12px;
}

.love-fill {
    height: 100%;
    background: linear-gradient(90deg, #f0b90b, #ffd700, #ffed4e, #ffff00);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 0 10px rgba(240, 185, 11, 0.3);
}

.love-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    border-radius: 12px;
}

.love-text {
    font-weight: 600;
    color: #f0b90b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.kiss-btn, .share-btn {
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.kiss-btn {
    background: linear-gradient(135deg, #f0b90b, #ffd700);
    color: #1a1a1a;
    box-shadow: 
        0 8px 20px rgba(240, 185, 11, 0.3),
        0 0 0 1px rgba(240, 185, 11, 0.2);
    font-weight: 700;
}

.kiss-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.kiss-btn:hover::before {
    left: 100%;
}

.kiss-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(240, 185, 11, 0.4),
        0 0 0 1px rgba(240, 185, 11, 0.3);
    background: linear-gradient(135deg, #ffd700, #ffff00);
}

.share-btn {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: #f0b90b;
    border: 1px solid rgba(240, 185, 11, 0.4);
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.3),
        0 0 0 1px rgba(240, 185, 11, 0.1);
    font-weight: 700;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 185, 11, 0.1), transparent);
    transition: left 0.6s ease;
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(0,0,0,0.4),
        0 0 0 1px rgba(240, 185, 11, 0.3);
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: #ffd700;
    border-color: rgba(240, 185, 11, 0.6);
}

.messages {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message {
    background: linear-gradient(135deg, #f0b90b, #ffd700);
    color: #1a1a1a;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: 600;
    animation: slideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 20px rgba(240, 185, 11, 0.3),
        0 0 0 1px rgba(240, 185, 11, 0.2);
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

footer {
    color: #f0b90b;
    font-size: 1rem;
    opacity: 0.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .cz-container {
        width: 150px;
        height: 150px;
    }
    
    .stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .kiss-btn, .share-btn {
        width: 100%;
    }
}

/* Love level animations */
.love-level-1 .love-fill { width: 20%; }
.love-level-2 .love-fill { width: 40%; }
.love-level-3 .love-fill { width: 60%; }
.love-level-4 .love-fill { width: 80%; }
.love-level-5 .love-fill { width: 100%; }

/* Special effects */
.heart-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.heart {
    position: absolute;
    color: #e74c3c;
    font-size: 20px;
    animation: fall 3s linear infinite;
}

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