diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..9e818e4 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,30 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Project Overview + +This is a collection of small independant apps that help with the rules for Pathfinder 2E (Remastered). + +## Architecture + +Everything lives in `perception.html`: styles, markup, and JavaScript are co-located in one file. There are no external dependencies except Mermaid.js loaded from CDN. + +### Key structural areas in `perception.html` + +- **CSS custom properties** (`--bg`, `--surface`, `--border`, `--accent`, per-state color triplets `--c-`, `--c--hi`, `--c--border`) drive the entire dark-fantasy color theme. Detection state colors: observed (green), hidden (amber), undetected (orange), unnoticed (red), concealed (blue), invisible (purple). + +- **Tab system** (`#stealth`, `#detection`, `#simulator`): three `
` elements toggled by `showTab()`. The Situation Simulator is the default active tab. + +- **Sidebar** (`