In the victory screen, it says my final score was 26200, so that's a discrepancy.
Yes, I lost my castle, which gave me some kind of defeat screen with a score, but after I got a victory screen with a different score. After a few screens (an epilogue screen, a thank you screen, etc), I was back at the main menu. I chose to reload, replayed the game from day 95 onward and successfully protected my castle, after which I also got a victory screen.