# ALPHA50.9.23 — spatial color distribution inside oversized regions

## Scope
Replace the remaining near-monochrome Chat Mandala masses with a deterministic spatial color treatment for oversized enclosed regions. The chat profile still defines the available palette and its color hierarchy, while template geometry determines how those colors are distributed through radial depth.

## Behavior
- Keep the existing 10-color master palette and the existing character / n-gram profile model.
- Keep seven profile-derived colors as the active regional palette after profile compression and dominant-color limiting.
- Keep atomic region assignments deterministic and independent from reveal order.
- Detect oversized colorable regions from the existing static region metadata; do not re-segment source artwork at runtime.
- For oversized regions, add a lightweight SVG radial spatial fill using several colors from the active profile palette. The radial range is derived from the region geometry, so the color variation follows the mandala's center-to-edge structure.
- Preserve the normal solid-color mapping as a compatibility fallback for callers that do not render the spatial style.
- Store spatial region styles inside the existing `unit_colors_json` payload under `__region_spatial_styles`; no new database column or migration is required.
- Upgrade the mapping version to `chat-profile-v9-spatial-region-distributed` so previously stored v8 mappings are regenerated automatically.

## What is intentionally unchanged
- Source SVG geometry, outlines and prepared region segmentation.
- Region reveal order and progressive opacity calculations.
- Chat profiling signals, hashed n-grams, Structure and Energy calculations.
- Telegram PNG transport and ImageMagick rasterization path.
- Mini App functionality, lifecycle and localization.
- Privacy contract: no raw message text is stored or logged.

## Acceptance
- The strongly skewed medium-02 regression scenario still exposes at least seven regional colors and keeps the dominant area below 50% in the atomic mapping model.
- Oversized regions receive deterministic multi-color spatial styles with at least three active profile colors.
- The rendered medium-02 state around 70–80% Structure visibly distributes several palette colors through the center-to-edge depth instead of leaving the major layers nearly monochrome.
- Repeated calls with equal inputs remain deterministic.
- Legacy persisted v7 mappings are regenerated to v9 on status read, so existing active games do not remain pinned to the previous allocator.
- All existing unit, integration and API checks pass.
