9aa0dd23b1
Clicking the new Home header chip opens Profile on top of Home. Pressing Esc then closed Home (because handle_home_cancel_button fired on Esc with no awareness of layered modals) and left Profile orphaned over the game — the player had to press P afterwards just to dismiss what they meant to dismiss in the first place. Two changes restore the standard "Esc closes the topmost modal" contract: - profile_plugin: split P/button (toggle) from Esc (close-only). Esc only fires when Profile is currently open. - home_plugin: handle_home_cancel_button now skips its Esc branch when any other ModalScrim exists, deferring to whichever modal is on top. Click on the explicit Cancel button is unaffected. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>