body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f0f2f5;
    color: #1c1e21;
}

.container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #1a1a1a;
    text-align: center;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 2.2rem;
}

p {
    text-align: center;
    color: #606770;
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 600px;
    margin-bottom: 30px;
}

#word-input {
    width: 100%;
    max-width: 500px;
    padding: 14px 20px;
    font-size: 18px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#word-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

#status {
    margin: 20px 0;
    font-weight: 500;
}

.status {
    text-align: center;
    color: #888;
}

#results {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    padding: 24px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #edf2f7;
}

#results h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

ol {
    width: 100%;
    padding: 0;
    margin: 0;
    list-style-type: none;
    counter-reset: result-counter;
}

.result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    counter-increment: result-counter;
}

.result-item::before {
    content: counter(result-counter) ".";
    font-weight: 600;
    color: #a0aec0;
    width: 30px;
    flex-shrink: 0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-score {
    font-weight: 600;
    color: #007bff;
    display: inline-block;
    width: 80px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.result-parts {
    font-size: 1.1rem;
    color: #2d3748;
}

.error {
    color: #d73a49;
    padding: 12px;
    background-color: #ffeef0;
    border-radius: 6px;
    margin: 10px 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

em {
    display: block;
    text-align: center;
    color: #718096;
    margin-top: 15px;
    font-size: 0.9rem;
}