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

.game-container {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

h1 {
    margin-top: 0;
    color: #4a148c;
}

.score-board {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #666;
}

.word-display {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #333;
}

.hint-display {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #777;
}

.input-area {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

input {
    flex: 1;
    padding: 0.8rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #764ba2;
}

button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background: #764ba2;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #5e35b1;
}

.message-display {
    margin-bottom: 1rem;
    font-weight: bold;
    min-height: 1.2rem;
}

.success {
    color: #2e7d32;
}

.error {
    color: #c62828;
}

.hidden {
    display: none;
}

#next-btn {
    width: 100%;
    background: #4caf50;
}

#next-btn:hover {
    background: #388e3c;
}