body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}

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

h1 {
    margin-bottom: 2rem;
    color: #1a73e8;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: #e8f0fe;
    padding: 1rem 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.label {
    font-size: 0.9rem;
    color: #5f6368;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a73e8;
}

.text-display {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #dadce0;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 1.5rem;
    user-select: none;
    white-space: pre-wrap;
}

.char-correct {
    color: #1e8e3e;
}

.char-incorrect {
    color: #d93025;
    background-color: #fce8e6;
    border-radius: 2px;
}

.char-current {
    border-bottom: 3px solid #1a73e8;
}

#text-input {
    width: 100%;
    height: 120px;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #dadce0;
    border-radius: 10px;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

#text-input:focus {
    border-color: #1a73e8;
}

.controls {
    margin-top: 2rem;
}

#restart-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#restart-btn:hover {
    background: #1557b0;
}
