How do you get a perfect score in Masquerade?

I was playing Masquerade by Kathleen Fischer, and got to 5 or 6 of the endings, including the secret ending leading to the author’s other game.

But I can’t find the best ending. Any suggestions?