.ratio-prompt {
    font-size: 1.15rem;
    font-weight: 600;
    color: #444;
    text-align: center;
    margin: 0.5rem 0 1rem;
}

.ratio-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 1.25rem;
    padding: 0.9rem 1.1rem;
    background: #f2fbf4;
    border: 2px solid #bfe6c8;
    border-radius: 18px;
}

.ratio-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.ratio-group-icons {
    font-size: 1.7rem;
    line-height: 1.2;
    letter-spacing: 0.1rem;
    word-break: break-word;
    max-width: 12rem;
    text-align: center;
}

.ratio-group-label {
    font-size: 1rem;
    font-weight: 700;
    color: #2f6b45;
}

.ratio-colon {
    font-size: 2rem;
    font-weight: 800;
    color: #1f3a5f;
}

.ratio-expression {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5rem;
    margin: 0 auto 1.25rem;
    padding: 0.75rem 1.5rem;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #1f3a5f;
    background: #eef5ff;
    border: 2px solid #bcd4f6;
    border-radius: 16px;
}

.ratio-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ratio-option {
    min-width: 6rem;
    padding: 0.85rem 1.2rem;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    color: #1f3a5f;
    background: #ffffff;
    border: 2px solid #bcd4f6;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.ratio-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(31, 58, 95, 0.15);
}

.ratio-hint {
    text-align: left;
}

.ratio-hint p {
    margin: 0.35rem 0;
}
