.trazo-chino-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: 'Open Sans', sans-serif;
}

.trazo-chino-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
    text-align: center;
}

.trazo-chino-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px 0;
    text-align: center;
}

.trazo-chino-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.trazo-chino-input-area input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

.trazo-chino-input-area input:focus {
    border-color: #4db2ec;
}

.trazo-chino-input-area button {
    padding: 12px 24px;
    font-size: 16px;
    background: #4db2ec;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.trazo-chino-input-area button:hover {
    background: #3a9bd5;
}

.trazo-chino-result {
    text-align: center;
    margin-bottom: 20px;
    min-height: 30px;
}

.trazo-chino-result-palabra {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.trazo-chino-result-chino {
    font-size: 16px;
    color: #e53935;
}

.trazo-chino-result-error {
    font-size: 15px;
    color: #e53935;
    font-weight: 500;
}

.trazo-chino-characters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
    padding: 10px;
}

.trazo-chino-char-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 8px;
    transition: border-color 0.3s;
}

.trazo-chino-char-wrapper:hover {
    border-color: #4db2ec;
}

.trazo-chino-char-wrapper .hanzi-writer-container {
    width: 140px;
    height: 140px;
}

.trazo-chino-char-label {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-top: 4px;
}

.trazo-chino-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.trazo-chino-controls button {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.trazo-chino-btn-play {
    background: #43a047;
    color: #fff;
}

.trazo-chino-btn-play:hover {
    background: #388e3c;
}

.trazo-chino-btn-step {
    background: #fb8c00;
    color: #fff;
}

.trazo-chino-btn-step:hover {
    background: #ef6c00;
}

.trazo-chino-btn-reset {
    background: #757575;
    color: #fff;
}

.trazo-chino-btn-reset:hover {
    background: #616161;
}

.trazo-chino-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

.trazo-chino-footer p {
    margin: 0;
}
