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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

header h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #667eea;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.stat {
    background: #f0f4ff;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

.stat .label {
    color: #666;
    margin-right: 8px;
}

.stat .value {
    color: #667eea;
}

.game-area {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen {
    display: none;
    text-align: center;
    width: 100%;
}

.screen.active {
    display: block;
}

#start-screen h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

#start-screen p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.difficulty-select {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.diff-btn {
    padding: 15px 40px;
    font-size: 1.3rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    min-width: 250px;
}

.diff-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.target-word {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: #667eea;
    letter-spacing: 5px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-area input {
    width: 100%;
    max-width: 500px;
    padding: 15px;
    font-size: 1.5rem;
    border: 3px solid #ddd;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.input-area input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.input-area input.correct {
    border-color: #4ade80;
    background: #f0fdf4;
}

.input-area input.wrong {
    border-color: #ef4444;
    background: #fef2f2;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.feedback {
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    min-height: 30px;
}

.feedback.correct {
    color: #16a34a;
}

.feedback.wrong {
    color: #dc2626;
}

#game-over-screen h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ef4444;
}

#game-over-screen p {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

#restart-btn {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 1.3rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

#restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

footer p {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .target-word {
        font-size: 2rem;
    }
    
    .stats {
        gap: 10px;
    }
    
    .stat {
        padding: 10px 15px;
        font-size: 1rem;
    }
}