Sportsmanship
Etymology
Built from "sportsman" plus "-ship," the word emerged in the 1800s as organized sport codified ideals of fair play, capturing a gentleman-amateur ethic of respecting rules and rivals. Beyond games it names decency in any rivalry — congratulating the winner, not gloating or blaming.
noun · /SPORTS-man-ship/
Fair, gracious conduct toward opponents, in victory and defeat alike.
What it names
The ethic that the way you compete matters as much as whether you win.
Example
Conceding the election graciously was a rare public act of sportsmanship.
Related idea
Sportsmanship keeps faith with the rules’ spirit, whereas gamesmanship games that spirit for an edge.