As you said, that would disproportionately help the rich and hurt the poor. OTOH, this country does need to discourage wasteful, frivolous lawsuits.
How about a compromise, something like loser pays 50%, but the judge has discretion to adjust this upward or down, depending on the merits of the case?