In a whimsical world where hats grant their wearers unpredictable powers, you play as a down-on-their-luck hat detective tasked with unraveling the conundrum of mismatched hats at a high-society gala. Attending the party are eccentric characters, each with their own mysterious motives and a hat that could change the course of the evening. Engage in witty dialogue, solve zany puzzles, and piece together clues to not only discover who the hats belong to but also the sinister plot brewing beneath the surface of this glamorous event. Can you navigate the treacherous waters of social faux pas and ludicrous hat abilities to unveil the truth before the clock strikes midnight?