ui: the cards, the HUD, and a menu every device can drive
Screens.component on mount_ui owns the whole presentation layer.
Cards: title (hero picture, the name, START / HOW TO PLAY), how-to-play
with a tab per device family and the real control table, pause with the
run written on it, WIN with the time to spare as the score, and MORNING
SHIFT. HUD: cat portraits with live moods, a vertical dawn meter with the
clock and the tower beside it, a crosshair whose ring closes as the
pointer heats, and Hoshi's intercom captions.
menu.inputMap is live exactly while a card is up and stands the game's own
controls down while it is. A pad walks the rows with the d-pad or the left
stick and confirms with South; a keyboard walks with the arrows or W/S and
confirms with Enter; a mouse hovers to move the lit row and clicks to fire
it; a finger taps the row it means. Escape or Start pauses, and either
resumes.
Every size comes from ui.screenSize() through theme.metrics(), so the same
trees lay out at 810x1080 and at 16:9 — both captured.
Two things are worked around rather than used: a one-shot CSS animation
holds its 0% keyframe in this engine, so the card entrance is driven from
Luau a frame at a time; and a card releases the pointer lock, because a
held pointer never reaches the UI.
Also carries game/input/rdr.inputMap, which another slice had left staged
in the shared staging area.