/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 3px 3px 0px #ff6b6b;
    margin-bottom: 0.5rem;
    animation: bounce 2s infinite;
}

.tagline {
    font-size: 1.2rem;
    color: #f8f9fa;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Game area */
.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* Game stats */
.game-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat {
    text-align: center;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(255, 107, 107, 0.3);
    min-width: 120px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Game zone */
.game-zone {
    margin: 2rem 0;
    position: relative;
}

.click-target {
    width: 200px;
    height: 200px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.1s ease;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.click-target:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.6);
}

.click-target:active {
    transform: scale(0.95);
}

.click-target.clicked {
    animation: clickPulse 0.3s ease;
}

.target-text {
    position: relative;
    z-index: 2;
}

.target-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.click-target:hover .target-effects {
    opacity: 1;
}

/* Game controls */
.game-controls {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #a8e6cf, #88d8a3);
    color: #333;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 230, 207, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Game messages */
.game-messages {
    text-align: center;
    margin-top: 1rem;
}

.message {
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.message.success {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.message.warning {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

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

@keyframes clickPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes scorePop {
    0% {
        transform: scale(0) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) translateY(-20px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(-40px);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .game-stats {
        gap: 1rem;
    }
    
    .stat {
        min-width: 100px;
        padding: 0.8rem 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .click-target {
        width: 150px;
        height: 150px;
        font-size: 1.2rem;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }
    
    .click-target {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }
    
    .stat {
        min-width: 80px;
        padding: 0.6rem 0.8rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
}
