body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    margin: 0;
    color: #333;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    color: #1a73e8;
    margin-bottom: 20px;
}

.game-area {
    margin-bottom: 30px;
    position: relative;
}

.character-display {
    font-size: 6rem;
    font-weight: bold;
    color: #202124;
    height: 120px;
    line-height: 120px;
    margin-bottom: 10px;
}

.timer {
    font-size: 1.5rem;
    color: #e84118;
    margin-bottom: 20px;
}

#input-box {
    width: 50%;
    padding: 12px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #dfe1e5;
    border-radius: 24px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#input-box:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.keyboard {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.keyboard-row {
    display: flex;
    gap: 8px;
}

.key {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    background-color: #f8f9fa;
    color: #202124;
    cursor: default;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.key.highlight {
    background-color: #1a73e8;
    color: #fff;
    transform: scale(1.1);
}

.key-radical {
    font-size: 0.7rem;
    color: #5f6368;
    margin-top: 4px;
    display: none;
}

.key.highlight .key-radical {
    display: block;
    color: #e8f0fe;
}
