* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 800px;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1, h2, h3 {
    color: #333;
    margin-bottom: 1rem;
}

p {
    color: #666;
    margin-bottom: 2rem;
}

/* Game screen styles */
.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.timer, #score {
    font-weight: bold;
    color: #555;
}

.emoji-display {
    font-size: 3rem;
    margin: 2rem 0;
    min-height: 5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.guess-container {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    padding: 0.8rem 1.5rem;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover {
    background: #3367d6;
}

button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.result {
    margin: 1rem 0;
    font-weight: bold;
    min-height: 1.5rem;
}

.correct {
    color: #0f9d58;
}

.incorrect {
    color: #db4437;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* High score screen styles */
.highscore-screen {
    text-align: center;
}

#final-score {
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
    font-weight: bold;
}

.initials-input {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 1rem 0 2rem;
}

#initials-input {
    width: 100px;
    text-align: center;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.highlight-text {
    color: #4285f4;
    font-weight: bold;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

#highscore-table {
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
}

th, td {
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr.highlight {
    background-color: #e8f0fe;
    font-weight: bold;
}

#play-again {
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: #34a853;
}