Pixel width estimate
Each character is looked up in a width table approximating the font Google renders in search results at typical SERP size, and the widths are summed to get an estimated total. Wide characters (W, M, @) cost more than narrow ones (i, l, t, punctuation), which is why two titles of equal length can land on opposite sides of the cutoff.