The Character Sheet is a UI component used to view and manage an Explorer unit. It combines Stat visualization, Inventory management (Paper Doll), and Skill Tree progression into a single tabbed interface.
## **1. Visual Layout**
Style: High-tech/Fantasy hybrid. Dark semi-transparent backgrounds with voxel-style borders.
Container: Centered Modal (80% width/height).
### **A. Header (The Identity)**
- **Left:** Large 2D Portrait of the Unit
- **Center:** Name, Class Title (e.g., "Vanguard"), and Level
- **Bottom:** XP Bar (Gold progress fill). Displays "SP: [X]" badge if Skill Points are available
- **Right:** "Close" button (X)
### **B. Left Panel: Attributes (The Data)**
- A vertical list of stats derived from `getEffectiveStat()`
6.**Events:** Dispatch `equip-item` events when dragging/clicking inventory items
## **5. Integration Strategy**
**Context:** The Character Sheet is a modal that sits above all other UI (CombatHUD, Hub, TeamBuilder). It should be mounted to the `#ui-layer` when triggered and removed when closed.
**Trigger Points:**
- **Combat:** Clicking the Unit Portrait in CombatHUD dispatches `open-character-sheet`
- **Hub:** Clicking a unit card in the Barracks dispatches `open-character-sheet`
- **Input:** Pressing 'C' (configured in InputManager) triggers it for the active unit