MODIFIED Requirements
Requirement: Authored proof titles SHALL remain visible in scene HUD regions
The presentation SHALL render an authored proof title without an ellipsis or
discarded words. In the Proof HUD, it SHALL measure the space between the
[NN] number tile and the step counter, subtract 16px from each side, start
at 22px, and shrink in 1px steps to a 16px minimum before wrapping at word
boundaries into at most two lines. On a narrow screen where those two 16px
lines still overflow beside the counter, the title SHALL use the full band
from its left inset to the right inset for up to three 16px lines. In that
fallback, PROOF NN OF NN and a compact, right-aligned STEPS 02 counter
SHALL share the subline row. INDEX banners and Win cards SHALL use the same
shrink-then-wrap helper with their own measured regions. Text fitting SHALL
not change integer grid coordinates, simulation state, or pointer hit
rectangles.
Scenario: A normal Proof title stays on one line
- WHEN a Proof title fits between the number tile and step counter at 22px with the 16px side insets
- THEN the HUD renders the complete title on one line and keeps the existing subline and board placement
Scenario: A long Proof title shrinks before wrapping
- WHEN the complete authored title does not fit at 22px but fits at a size between 16px and 21px
- THEN the HUD renders the complete title on one line at the largest fitting integer pixel size and adds no ellipsis
Scenario: A long modded title wraps at word boundaries
- WHEN the complete title still does not fit at 16px
- THEN the HUD renders every authored word across no more than two lines, breaks only between words, and adds no ellipsis or clipped replacement when that two-line fit fits beside the counter
Scenario: A narrow title uses the full mobile band
- WHEN two 16px lines still overflow beside the step counter at 390px
- THEN the HUD gives the complete title the full band for up to three
16px lines, places
PROOF NN OF NNleft and compactSTEPS 02right on the same subline row, and adds no ellipsis or clipped replacement
Scenario: A wrapped Proof title preserves board clearance
- WHEN the Proof title uses two or three lines
- THEN the
PROOF NN OF NNsubline and board shift down together and the measured HUD-to-board gap remains at least 40px without changing cell size or object coordinates
Scenario: INDEX and Win use the shared fitting rule
- WHEN an INDEX banner or Win card receives a title that needs shrinking or wrapping
- THEN that scene uses the shared shrink and word-boundary wrap helper within its own measured region, with complete copy and no ellipsis
Scenario: Mobile fitting remains inside the viewport
- WHEN a long title is rendered at 390x844
- THEN its lines remain inside the scene's title region, the board or card content retains its safe gap, and existing pointer targets remain unchanged
Scenario: Reduced motion shows settled fitted copy
- WHEN reduced motion is enabled while a title is long enough to shrink or wrap
- THEN the complete fitted title and any required wrapped layout appear immediately with no intermediate clipping or transition-only omission
Scenario: Fitting is presentation-only
- WHEN a title is measured, shrunk, or wrapped
- THEN the engine state, level IDs, integer grid coordinates, navigation, and pointer hit rectangles are unchanged