Some more progress. Known issues:
- font size a little too big for tiles
- popups don't close the second time they're shown with the X/close buttons
- need to align whole thing top-left