Convergence.Game/DESIGN SYSTEM
Convergence design system (GG-T2044)
The one place a screen's look and behaviour is decided. It is written down from what already ships (App/UI/Tokens.cs, Resources/UI/Theme.uss, App/UI/Ui.cs) and from the owner's decisions in BIBLE §9.0, §11.5, §11.6, §26.6 and §26.7. The visual reference, with live states and the device table, is docs/design/design-system/index.html (it opens from disk). Input: the UX review, docs/design/ux-review/REVIEW.md (GG-T1940).
Sibling specs, written in parallel:
- Words: COPY_STYLE.md and
docs/design/copy-style/(GG-T2045). Voice, casing, button verbs, one name per concept, label length per role. - Icons: ICONS.md and
docs/design/icon-set/(GG-T2046). One icon style, sizes per role (inline 32, button 48, row 64, nav 72) and the inventory.
This file decides layout, tokens, components and states. Where it names a label it defers to the copy guide, and where it names an icon it defers to the icon spec. Making the tokens the only source in code (the lint) is GG-T2047.
The theme is Manapunk (§11.5): smoked-glass panes, pewter rails, one mana-blue accent. The values below are Manapunk's. The other window themes keep the same sizes and change only colour.
1. The owner's rules (non-negotiable)
| # | Rule | Decided in | Built by |
|---|---|---|---|
| R1 | Hamburger top-left, gold top-right. The hub and the battle carry the hamburger in the top-left corner and the gold count in the top-right corner. | §9.0 (GG-T1808, GG-T1904) | RowIcon.HamburgerButton (HubScreen, BattleScreen); Ui.Currencies, .header-gold right-aligned
|
| R2 | Sub-pages keep Back top-left and have no hamburger. Home (the house) sits after Back only when the page is more than one page above the hub. | §9.0 (GG-T1904), §11.3 (GG-T1335) | Ui.Header(title, onBack, …, onHome)
|
| R3 | Select, then confirm, shown pressed in. A first tap selects (ui.select); a tap on the selected thing runs it (ui.confirm). The selected state is a darker inset well, a bright 3-px frame with a dark top edge and a 3-px sink at 98.5 %, never colour alone. Nothing starts selected on touch.
|
§11.5 (GG-T1923, GG-T1942) | Ui.MenuRow, Ui.ConfirmTap, Ui.Tappable(…, confirmTap: true), Ui.Button(…, confirmTap: true); .menu-row--selected, .tap--selected
|
| R4 | No hand cursor on mobile. The pointing hand is for PC builds and the editor only. On a phone no row, note or label keeps a gutter for it. | §11.5 (GG-T1923) | Ui.ShowsCursor, .no-cursor, Kit.Indent (8 px on touch, 72 on PC)
|
| R5 | No truncation. Text shrinks to fit (down to the 30-px floor), then wraps, hyphenating cleanly, or for a single line becomes a marquee. No ellipsis except under Reduce Motion, no clipped glyph, no word broken by hand. | §26.6 (GG-T305, GG-T711) | TextFit, Marquee, LineBreaker (automatic on every label)
|
| R6 | Every arrow is a filled, outlined shape: a Bezier curve or an orthogonal path (right angles, rounded corners), with the head part of the same outline. No stroked lines, no double strokes, no font arrows. | §11.6 (GG-T735 to GG-T737), §9.0 (GG-T2118) | Shapes.Arrow, Shapes.BezierArrow, Shapes.OrthoArrow, Shapes.OrthoPathArrow, Shapes.DashedArrow
|
| R7 | Touch targets are at least 132 × 132 design px (44 pt on the reference phone), and at least 48 dp on Android and 44 pt on iOS on every screen (GG-T2144: TapTarget grows them on narrow logical widths), with at least 24 px between neighbours.
|
POLISH POL-C2, POL-C3; §26.7 | Size.Target, TapTarget, --size-target, Kit.Row, Space.TargetHalfGap
|
| R8 | 30-px text floor. No text is drawn below 30 design px, and the live floor rises further on small or low-dpi screens (12 screen px or 9 dp). All GUI text is one size, TypeScale.Base (40 to 56 px). Emphasis is weight and colour, never size.
|
§26.6 (GG-T770, GG-T1878), POL-A2 | TypeFloor.ShrinkMin = 30, TypeFloor.ShrinkFloor, GuiType
|
| R9 | Hero thumbnails; full art only on tap. Every small actor image is the baked 320-px thumbnail. The full 1024 portrait appears only in reveals and cut-ins, and when the player taps a thumbnail. Conversations show the speaker's thumbnail as a portrait tile (§3.2, owner GG-T2198). One named exception: the vendor menu's keeper stands in full portrait behind the menu (§3.1). | §12.1 (GG-T713, GG-T1804) | Ui.Thumb, Ui.PortraitThumb, Art.Thumb, ArtPreview.Open
|
2. Tokens
Code reads Tokens.cs; USS reads Theme.uss :root. A literal colour, size, spacing or duration in a screen is a bug (POL-A1, POL-B1, POL-C1, POL-E1). tools/polish_lint.py counts new Color(…), Color.white and the like, a hex colour string, a px length in a C# string, a literal font size, and a literal duration passed to Tween or WaitForSeconds. Only dev-only screens may keep literals, each listed with its reason in the lint's DEV_ALLOW (WindowEditorScreen, BreedGalleryScreen, DevOptions).
2.1 Colour roles (Manapunk)
| Role | Value | Token | Use |
|---|---|---|---|
| Stage | #0C0C16 | .theme-manapunk .stage
|
behind everything (the living backdrop paints over it) |
| Pane | #22203A to #100F1C, 0.94 | theme gradient (WindowThemes)
|
every window, sheet and dialog |
| Pane flat | #1A1930 at 0.94 | .window--plain, .tab
|
plain windows, inactive tabs |
| Raised | #2A2840 | .btn, .tab--active
|
a button's face, the active tab |
| Rail | #60646F (dark #34363F, light #8C909C) | Palette.Pewter, PewterDark, PewterLight
|
frames, dividers, gauge sleeves, button rims |
| Accent (contained mana) | #7590C8 (light #ACA5D3, deep #41386F) | Palette.OrbLit, OrbLitHighlight
|
the primary button, a window's top edge, the active tab and nav tab, the pressed tint. Used sparingly: it means "this matters" |
| Text | #E6E6EE | --color-text (#F4F4F6 outside Manapunk)
|
all body text, above 6:1 on every pane |
| Text dim | #A4A3BC | .dim
|
meta, captions, inactive labels; floor 3:1 (WindowTone.CaptionContrast)
|
| Gold | #FFD959 | --color-gold, Palette.Gold
|
currency, and the header subtitle |
| Good, Bad, Warn, Info | #73F294, #FFAAA2, #FFC45C, #DBE0FF | --color-good, -bad, -warn, -info
|
outcome text, never alone (POL-B5) |
| Term | #9CC7FF | Palette.Term
|
a tappable glossary [term] |
| Danger | #3C1A26 face, #963659 rim, #FFB0B8 text | .btn--danger
|
destructive buttons only |
| Hero, Foe, Boss | #78ABFF, #EB454A, #DB66FF | --color-hero, -enemy, -boss
|
team keylines and timeline marks, always with a shape |
| Team marks in code | Hero #78ABFF (CB #57B5E8), Foe #EB454A (CB #F57A0A), Boss #DB66FF (CB #BF4D05) | Palette.TeamHero, TeamFoe, TeamBoss
|
the battle base plates (hero rounded, foe and boss notched, GG-T1948, GG-T2128), keylines and turn icons; each swaps to its CB value under the Colorblind palette |
| Next actor | #40EDE0 (CB #CC78A6) | Palette.NextActorRing
|
the next actor's board ring; never gold, never a team colour, never the enemy intent red |
| Veil | #05050C at 0.72 | .veil
|
behind every modal and sheet |
Elements (Palette.Element), rarity (--color-rarity-*) and gauges (--color-gauge-*) are gameplay colours and stay the same in every theme. Each hue family has one meaning (POL-B4). The reference page lists every USS colour token.
Base-theme surfaces (GG-T2135). Every colour a Theme.uss rule outside :root uses is a --color-* token: the stage and letterbox (--color-stage, --color-letterbox, --color-black, --color-clear), the selected well (--color-well, --color-well-edge), hover and press tints (--color-hover, --color-press, --color-card, --color-card-selected, --color-mana-tint, --color-mana-faint), the button family (--color-btn, -lip, -hover, -pressed, and the same for -primary and -danger, plus --color-btn-primary-rim, and the disabled face --color-btn-disabled, -disabled-rim, -disabled-text, GG-T2162), chrome (--color-chrome, --color-toast, --color-badge, --color-tab, --color-tab-active, --color-label, --color-alert, --color-scrollbar, --color-thumb, --color-gauge-rim, --color-pip-rim, --color-title, --color-mana-core, --color-continue), and the team keylines that had no variable (--color-tamed, --color-wanderer, --color-cb-hero, -foe, -boss). USS cannot add alpha to a variable, so each translucent tint is its own token. A .theme-* block still overrides by selector.
Palette additions for code: Palette.Black, Palette.Gray (the fallback when a content colour does not parse), Palette.Missing (magenta, for a colour that must never be missing), Palette.Overbright (3, 3, 3: an image flashes overbright and eases back to White), Palette.FoeTint (a foe's cut-in portrait), Palette.PlateRim (a dialogue nameplate whose speaker is not talking) and Palette.SomnolithRock.
Grouped code colours (GG-T2139), each at the exact value its call sites drew before: Palette.Vfx.* holds the battle effects (selection and intent glows such as SelectGlow, Harmful, Helpful, Threat; element and status hues such as Fire, Burning, Frozen; sparks, rings, marks, cut-in bands, the board's rock, plate and amplifier, combat text and its outlines; and the vfxstyle fallback hex strings), Palette.Combo.D to SSS the combo rank badge, Palette.Backdrop.* the tints over a screen's background art, Palette.Scene.* generated textures and rigs (placeholder art, the card back, the moon's albedo, the fog banks, the coach shade), and Palette.SkillHex.* the skill hexagon's own palette. Palette.Clear is fully transparent and Palette.Grey(v, a) a computed grey. A colour whose alpha is computed at runtime keeps that computation at the call site and tokenizes only the base: Palette.Vfx.Spark.WithA(1f - k), c.WithA(0.5f). TestMode's pacing waits are Timing.TestModeSettle and Timing.TestModeRead.
Battle board grid (GG-T1950). The board sits on a Palette.Ink backing at sky.json BoardScrim 0.35 (a region's own BoardScrim can only darken it), over the battle backdrop tint. Each grid line is a Palette.Vfx.GridLine core (Size.Hairline) on a Palette.Ink keyline (Size.Underline each side). Measured against the dimmed art under the board for every campaign theme: the core alone is 3.8:1 (Shardfall) to 7.5:1 (Cathedral) against the median art, the core or its keyline is at least 3.5:1 against any of it, and core to keyline is 12.6:1. Window themes (ThemeChrome, WindowThemes) don't paint the board, so they don't change these numbers.
2.2 Type
- One size:
TypeScale.Base(--type-base).GuiTypecomputes it per screen to draw 15 dp (up to 1.2x more on a screen narrower than 2.56 in, GG-T2114; per-device table), clamped to 40 to 56 design px, then multiplies by Settings → Text size (100, 115 or 130 %). Nominal 40. - Floor: 30 design px (
TypeFloor.ShrinkMin), raised live to 12 screen px or 9 dp (TypeFloor.ShrinkFloor). Shrink-to-fit never goes under it. - Roles by weight and colour: Body (M PLUS Rounded 1c Bold); Heavy (ExtraBold: titles, headings, button and tab labels, names); Display (Cinzel: the wordmark and celebration titles only). A screen uses at most these three (POL-A4), and never faux bold (POL-A3).
- Builders:
Ui.Heading,Ui.Name,Ui.Para(anything that wraps),Ui.Caption(one line of meta),Ui.Note,Ui.Display,Ui.Section. - Measure: wrapped text is at most 720 px wide (
--measure-text, about 48 characters, POL-A5). - Depth: Manapunk draws a 1-px outline and no drop shadow.
2.3 Space and size
- Space (
Space,--space-*): 4, 8, 12, 16, 24, 32, 48, 64, 96. 12 exists only as half of the 24-px gap between targets.--space-16-framed(13) is a selected card's padding: 16 less its 3-px frame, so selecting it does not move its content. - Kit (
Kit): page gutter 24 (Fit.Edge), gap 16, window padding 16 / 24, row and nav one live tap target (Kit.Row,Kit.NavHeight=TapTarget.Current, 132 or more), header 150, indent 8 (touch) or 72 (PC), card portrait 120, detail pane at most 45 % of the column. - Tap target (
TapTarget, GG-T2144):Size.Target132 is the floor;TapTarget.Currentis the design height that reaches 48 dp (Android, at the display's own density) or 44 pt (iOS) at the live stage scale, rounded up to 4 px (132 to 200). The UI root takes onetap-target-Nclass, which sets--size-target, so every row, button, tab and nav tab follows with no per-screen code; code readsKit.Row. The battle HUD rows keep 132 (BIBLE 9.0). Per-device values: DEVICES.md. - Size (
Size): target 132 (the floor), icon roles per ICONS.md (inlineIconInline32, buttonIconButton48, rowIcon64, navIconNav72; USS--size-icon-inline,--size-icon-button,--size-icon,--size-icon-nav), icon M 56, icon S 40, chip 50, thumb 120, avatar 96, party slot 180, medallion 140, slot 196, cell 170, card 300, portrait 360 × 400, art 420 × 620. Lines: underline 2, hairline 3, track 6, bar 8, gauge 14, HP bar 18.
2.4 Radii
| Thing | Manapunk | Base theme |
|---|---|---|
| Window, toast | 10 | 10 |
| Stage frame | 12 | 10 |
| Button, tab top corners, card, thumbnail | 8 | 16 (button) |
| Menu row, role badge, scrollbar | 6 | 6, 10 |
| Lab clamp, conduit | square | none |
Radii are tokens (GG-T2047): Theme.uss --radius-N and Tokens.cs Radius.RN, steps 3, 6, 8, 10, 12, 14, 16, 17, 18, 22; POL-C1 counts a literal border-*-radius in Theme.uss as a failure.
The page's token data (docs/design/design-system/tokens.js: colours, space, size, timing, radii and device shapes) is generated from the tokens by python tools/design_tokens.py; tools/test.ps1 runs it with --check, which fails when the page is stale or Tokens.cs and Theme.uss disagree on the radii. Rerun it after changing a token.
2.5 Elevation
UI Toolkit has no box shadow, so elevation is layer order plus edge light, not blur.
| Level | Layer | What lives there | Edge |
|---|---|---|---|
| 0 | Stage | backdrop, board | none |
| 1 | Page | windows, lists, cards | rail rim, lit mana top edge |
| 2 | Chrome | header, bottom nav, footer, battle action row | a 2-px rail or mana border toward the content |
| 3 | Raised control | buttons | the dark lip it stands on (bottom border 7 px; small 5 px) |
| 4 | Overlay | toast, Inspect card | rail rim, mana top edge |
| 5 | Modal | veil, then sheet, Confirm or Art preview | the 0.72 veil behind; always the topmost Overlay child |
Pressing lowers a control by one level: the lip shrinks to 2 px and the face moves down by the difference (translate 0 5px).
2.6 Motion
- Durations (
Timing): instant 0.08, quick 0.15, standard 0.25, emphasis 0.4, dramatic 0.7, cinematic 1.2 s. No random durations (POL-E3). - Easing (
Ease): Out, InOut, Back (overshoot on release), Snap (fast settle), Arc (0 to 1 to 0). No linear UI motion (POL-E2). - Press: sink in 0.06 s ease-out, release in 0.14 s ease-out-back (
.pressable). The first visible response lands inside 100 ms (POL-D3). - Screen change: a 0.2 s fade through black (
Timing.ScreenFade,ScreenRouter). - Reduce Motion removes shakes, the thumbnail wobble (
ThumbWobble), the conduit flicker and the marquee scroll (an ellipsis instead). Never more than 3 flashes a second (POL-E7).
3. Components and their states
Every tappable goes through Ui.Pressable, which sinks it and plays the ui.press tick on touch. The four states, in Manapunk:
- Default: at rest.
- Pressed (
.is-pressed, while the finger is down): the control sinks. Buttons drop onto their lip; rows and cards scale to 95 to 98.5 % and darken. - Selected-pressed (
.menu-row--selected,.tap--selected; GG-T1923, GG-T1942): after the first tap of a select-then-confirm control. A darker inset well (black at 0.38), a 3-px frame in the frame colour with a dark top edge, a 3-px sink at 98.5 %. A button stays sunk on its lip with a dark top edge. One thing is selected per screen. - Disabled (
.menu-row--disabled,.btn--disabled): a menu row's text and icon at 0.6 opacity (still 4.5:1). A button of any variant (normal, primary, danger, small, icon) is not faded: it takes one muted face with a dim rim and full-opacity text, and loses its lip, so it sits flat with no elevation (the non-colour cue, GG-T2162). It does not sink, and a tap toasts the reason when there is one.Theme Face Text Text contrast Classic (base, --color-btn-disabled,-text)#343A56 #C8C8D0 6.7:1 Chrono #3E3E42 #C8C8CC 6.4:1 Granite #40464A #C4D4E0 6.3:1 Slate #3A4056 #C8CEDE 6.5:1 Dark #1E1E24 #A0A0A6 6.4:1 Manapunk #1E1D2E #A4A3BC 6.7:1
| Component | Builder | Classes | Select-then-confirm | Notes |
|---|---|---|---|---|
| Header (sub-page) | Ui.Header(title, onBack, parent, out currencies, subtitle, onHome)
|
.header, .header-title, .header-sub, .header-gold
|
no (navigation) | Back top-left, title, optional gold subtitle, currencies top-right (R1, R2) |
| Hub and battle top bar | RowIcon.HamburgerButton and Ui.Currencies
|
.header-currencies
|
no | hamburger top-left, gold top-right (R1) |
| Bottom nav | Ui.NavBar(parent, current)
|
.kit-navbar, .kit-navtab, .kit-navtab--active
|
no | Home, Campaign, Heroes, Summon, Shop. A locked tab is dimmed with a padlock and toasts its hint |
| Page body | Ui.PageBody
|
#page-body
|
n/a | content column, 24-px gutter, 16-px gaps |
| Window | Ui.Panel(parent, title, fill), Ui.Window
|
.window, .window-title
|
n/a | padding 16 / 24; fill takes the leftover height
|
| List | Ui.ListPanel, Ui.List
|
.list, .list--fill
|
n/a | scrolls inside itself; two lists split the height |
| Menu row | Ui.MenuRow(label, value, onClick, parent, icon, enabled)
|
.menu-row, --selected, --disabled, --compact
|
yes, always | kind icon first (row.KindIcon), label, value on the right (at most 55 %); 132 tall, 24 apart
|
| Row note | Ui.Note
|
.kit-note
|
n/a | a dim sentence under a row, indented by Kit.Indent
|
| Section | Ui.Section
|
.kit-section
|
n/a | heavy gold, flush left |
| Card | Ui.Card(parent, classId, name, out col)
|
.card, .card-tap, .tap--selected
|
when its tap runs an action (Ui.Tappable(…, confirmTap: true))
|
thumbnail 120 (R9), heavy name, its buttons under its text (Ui.Actions)
|
| Button | Ui.Button(text, onClick, classes, parent, confirmTap)
|
.btn, --primary, --danger, --small, --icon, --disabled
|
yes for an action with no confirm of its own (every RowKind.Confirm icon button). No for a button that opens its own Confirm, a dialog's answer, the battle commit button, navigation and steppers
|
the primary holds the mana fill; danger is wine red; one primary per screen (POL-C7) |
| Icon button | Ui.IconButton(kind, onClick, parent, icon) (icon-only, any ICONS.md size), RowIcon.IconButton(text, kind, …, tex)
|
.btn--icon
|
Confirm kind: yes | 132 square; a 48 icon (Size.IconButton): the kind's set icon (RowIcon.IconId, Art.UiIcon) unless tex names another, per ICONS.md
|
| Tabs | Ui.Tabs(names, active, onPick, parent, locked)
|
.tab, .tab--active
|
no | the window below sits flush; the active tab has a 4-px mana top |
| Stepper | Ui.Stepper(parent, value, onMinus, onPlus, …)
|
.btn--small
|
no | minus, value, plus; each button a full target |
| Segmented control | Ui.Segmented(options, selected, onPick, parent)
|
.kit-segmented, .kit-segment, --selected
|
no (a pick is not an action) | equal small buttons sharing the row; the selected one pressed in; each named seg-<label>
|
| Chip | Ui.Chip(text, parent, icon, onClick, selected), Ui.SetSelected
|
.kit-chip, --tap, --selected, --good (a station's ready chip on a recipe row, GG-T2087)
|
no | a pill with an inline 32 icon; a full target when tappable, pressed in when selected |
| Badge | Ui.Badge(text, parent, classes)
|
.kit-badge, .kit-navtab-badge
|
n/a | a count or word on a pill; takes no taps |
| Progress bar | Ui.ProgressBar(frac, parent, label), Ui.SetProgress
|
.kit-progress
|
n/a | the gauge across the width, an optional count at its right |
| Field | Ui.Field(label, value, parent)
|
.kit-field
|
n/a | read-only: dim label, body value |
| Text box | Ui.Input(name, value, parent, maxLength, multiline, readOnly)
|
.kit-input, --multiline
|
n/a | an ink well in a frame rim, a full target tall; multiline wraps from the top left (a profile name, a transfer code) |
| Detail pane | Ui.DetailPanel
|
.window--detail
|
n/a | grows to 45 % of the column, then scrolls |
| Footer | Ui.Footer
|
.window, .kit-footer
|
its button: yes, unless it confirms itself | total on the left, commit on the right, at the bottom, pinned above the nav |
| Empty state | Ui.EmptyState(list, icon, text), Ui.Empty
|
.kit-empty
|
n/a | icon, one sentence, the next step (copy per COPY_STYLE) |
| Gauge | Ui.Gauge, Ui.SetGauge
|
.gauge
|
n/a | a glass tube in a pewter sleeve; never colour alone |
| Thumbnail | Ui.Thumb(id, parent, size, thumbOnly), Ui.PortraitThumb
|
.thumb
|
a tap opens ArtPreview
|
the baked 320-px thumb up to 200 px; full art only on tap (R9) |
| Role badge | Ui.RoleBadge
|
.role-badge
|
n/a | role-colour rim plus a letter, never colour alone |
| Marquee | Ui.Marquee (automatic through TextFit)
|
.marquee
|
n/a | the one-line overflow fallback (R5) |
| Vendor menu (proposed, §3.1) | GG-T2222 builds it | GG-T2222 names them | yes, every row | a keeper's full portrait behind a speech window and at most five menu rows: Buy, Sell, services, Talk, Exit |
| Dialogue tile (proposed, §3.2) | Ui.Thumb(id, box, Ui.ThumbMaxSize) in DialogueScreen (GG-T2230)
|
.thumb, dlg-tile
|
no (a tap opens ArtPreview)
|
the talker's 200-px thumbnail inside the dialogue box on their side; the Commander never has one |
3.1 Vendor menu (GG-T2221, proposed)
Every caravan vendor opens the same screen: the vendor in full portrait in the background and a short command menu, Final Fantasy style, so you always see who you are buying from. The vendors are the story's fixed cast (epic GG-T2198); talking to them is optional. The visual reference, with every vendor on each §9 bucket, is docs/design/vendor-menu/index.html. This section is the design; the builder and the move of each station onto it are GG-T2222 to GG-T2226.
Layers, back to front
- The station's backdrop (level 0). Under §9 it bleeds into the frame pad on buckets B and C; nothing else does.
- The keeper's full portrait, inside the stage box: top edge 20 px under the header's bottom, as tall as the rest of the box, centred, cropped from the top (
object-position: 50% 0) so the face sits in the band between the header and the speech window. A fade from clear to--color-stageruns from 360 px above the menu to the box bottom, so the figure sinks behind the menu instead of being cut. Placeholder art until GG-T2232; a keeper with no portrait yet shows its station emblem large, never an empty frame. - The header (level 2): Back top-left (R2), the vendor's role name as the title (the subtitle keeps today's station level or progress, as
HubPage.Subtitledoes now), gold top-right (R1). There is no bottom nav. - The speech window (level 1): a standard window,
Kit.Gap(16) above the menu, holding a gold nameplate (the vendor's name) and one line. With nothing selected the line is the keeper's greeting bark (Prosebark:shop/<npc>/greet, one line said at a time, asContentDb.ShopBarksalready does for the Manasmith); with a row selected it is that row's caption. Two lines at most (R5 shrinks, then wraps). - The menu window (level 1): full column width, bottom-anchored one gutter (24) above the safe bottom. Rows are
Ui.MenuRow, one live tap target tall (Kit.Row), 24 apart, kind icon first (row 64).
Rows, top to bottom. The order is fixed; a vendor shows only the rows it has.
| Row | When it shows | Icon (ICONS.md) | Opens |
|---|---|---|---|
| Buy | the vendor sells something | shop (delapouite/shop, gold)
|
the vendor's buy list with its footer (today's Buy tab) |
| Sell | the vendor buys back (the Merchant only) | new sell, candidate lorc/two-coins, gold
|
the sell list with its footer |
| Services, one or two | the vendor's own trades | the station's icon (anvil, flask, swirl, crystal bars) | the station screen, keeping its tabs |
| Talk | always, once the keeper has joined | talk (lorc/conversation)
|
the keeper's next topic (DialogueRunner.TalkTopic)
|
| Exit | always, last | new exit, delapouite/exit-door in manapunk (not wine: leaving a shop is not destructive)
|
Router.Back(), the same as the header's Back
|
| Vendor | Rows | From today's screen |
|---|---|---|
| Merchant | Buy / Sell / Talk / Exit | ShopScreen tabs Buy, Sell, Bargain; Bargain becomes the first section of Buy
|
| Blacksmith | Buy / Forge / Repair / Talk / Exit | BlacksmithScreen tabs Forge, Upgrade, Salvage, Repair: Forge holds Forge and Upgrade, Repair holds Repair and Salvage; Buy is new stock (GG-T2224) and stays absent until it exists
|
| Alchemist | Brew / Talk / Exit | AlchemistScreen recipe list
|
| Enchantress | Enchant / Talk / Exit | EnchantressScreen, Armor and Weapons stay tabs inside Enchant
|
| Manasmith | Buy / Refine / Talk / Exit | AetheristScreen panels Buy Dust and Refine
|
| Innkeeper | Respec / Talk / Exit | RespecScreen; only if the owner counts the Innkeeper in the caravan cast
|
At most five rows. Menu height is 2 × 24 + n × row + (n − 1) × 24, and the whole menu sits in the thumb zone (§5). Five rows fit on every in-target shape even where rows grow (TapTarget): 824 px of 993 on the reference iPhone (row 136), 964 of 1035 on the Galaxy S base (row 164), 1044 of 1115 on the Fold6 cover framed under bucket B (row 180), 1104 of 1115 on the Fold5 cover (row 192). Six rows do not fit on the Galaxy S base (1152 of 1035) or the Fold covers. So a vendor gets at most two service rows, and a station with more jobs folds them into tabs inside a row.
States
- Rows follow R3: nothing selected on arrival; the first tap selects (pressed in,
ui.select) and swaps the speech line to the row's caption; a tap on the selected row confirms (ui.confirm). Exit is a row like the others; the header's Back is a single tap, as on every page. - Talk with an unseen topic carries a
Ui.Badge("New")at the row's right, replacing today's "Talk!" label (HubPage's header button, which this row replaces). Talk with no topic is a disabled row (0.6 opacity): it does not select, and a tap toasts "Nothing new to say." The menu keeps its shape every visit. - A screen opened from a row is today's station screen, without the tabs that became rows; its Back returns to the vendor menu. The portrait stays behind it under the
.veiltint, so the list still reads against a 0.94 pane. - Motion: the portrait fades in over
Timing.Standardon arrival; the menu and speech window use the ordinary screen fade. Reduce Motion changes nothing here.
Buckets (§9). The menu is laid out in the 1170 × 2532 box on every bucket. A: the box is the screen. B (Flip main, Fold cover): framed top and bottom; the backdrop fills the pad, the portrait and menu stay in the box. C (tablet): framed left and right, the same way. While §9 is still a proposal, B's stage grows to 2860 or 2872 tall and the menu stays bottom-anchored; the portrait simply shows more of the figure.
Tokens. No new token: the screen reads --color-stage, --color-gold, .veil, the Manapunk pane and rail, Kit.Row, Kit.Gap, Fit.Edge, window padding 16 / 24, header 150, Space.TargetHalfGap × 2 and Timing.Standard, so tools/design_tokens.py --check is unaffected. The portrait's crop is content, not a token: GG-T2222 may add a per-keeper focus value if the art needs one.
Open for the owner (also on the reference page): services as rows between Sell and Talk rather than under Buy; the five-row cap and the Blacksmith's two folded rows; Talk dimmed rather than hidden; Exit as a new fixed word in COPY_STYLE.md §4 beside Back; Sell at the Merchant only; Blacksmith stock and whether the Alchemist sells ready-made brews; whether the Innkeeper is part of the cast.
3.2 Dialogue tiles (GG-T2229, proposed)
Conversations show each speaker as a portrait tile beside the line, not a whole figure on the stage (owner, epic GG-T2198). This supersedes GG-T225's "whole, uncropped portraits" in BIBLE §27.1 and moves "the dialogue stage" from the full-portrait list to the thumbnail list in §12.1.1; both BIBLE amendments land with GG-T2230. The story is told by the caravan's fixed cast, so the tile is mostly an advisor's face; the Commander is never shown (GG-T2189) and has a plate but never a tile. The visual reference, playing three scenes on each §9 bucket, is docs/design/dialogue-tiles/index.html. This section is the design; GG-T2230 builds it in App/Screens/DialogueScreen.cs.
What stays. The one shared box at the bottom (dlg-box, bottom 48), each line replacing the last and typing out at 70 characters a second; the two name plates on the box's top edge (Size.Plate 92, lifted 64, inset 32), lit for the talker and dim for the listener (GG-T225); choices and Next inside the box; Skip, the title, the wits meter and the bond chips where they are. The stage above the box (dlg-stage) and its two whole figures go; the backdrop shows there.
The tile
Ui.Thumb(portraitId, box, Ui.ThumbMaxSize): 200 × 200 px, the largest draw that uses the baked 320-px thumbnail (§12.1.1), so R9 holds with no exception and a conversation never loads a 1024 portrait. 200 px is 67 pt on the reference phone. The tile does not grow withTapTarget; it is not a row.- The
.thumbframe (radius 8) with a 3-px border:Palette.OrbLit(the accent) while that speaker talks,Palette.Pewter(the rail) while they listen.ThumbWobbledrifts the art as it does everywhere (off under Reduce Motion). - Inside the box's padding (16 / 24), top-aligned, on the speaker's side: a left speaker's tile at the box's left edge with the line to its right; a right speaker's at the right edge with the line to its left. The gap is
Space.S24. The line's column keeps its 230-px minimum height, which already holds the tile, so the box is no taller than today. On bucket A the text column is 844 px beside the tile and 1068 without one. - One tile at a time. On a speaker's line the tile is theirs, lit. On the Commander's line, and while the choices show, the tile is the last speaker who had one, dimmed to the listener state (tint 0.42, scale 0.93: today's listener values), because the Commander is answering them. Two tiles would leave a 620-px column.
- No art. A caravan keeper with no portrait yet shows its station emblem in the tile, the same rule as §3.1, never an empty frame. Any other speaker with no art (a nameless NPC; the Commander always) has no tile, and the line takes the box's full width.
- A tap on the tile opens
ArtPreview(R9: full art on tap). A tap anywhere else in the box finishes or advances the line, as today.
Sides. The first two speakers take left, then right; a third takes the side of whoever is not talking (today's SideFor). In a conversation with the Commander, the Commander takes the right and everyone else the left, so the face reads first and your words sit where a phone puts a reply. This flips GG-T1576's Commander-left rule. The Commander's plate reads Commander.Name.
Speaker-change motion
| Change | Tile | Time |
|---|---|---|
| Same speaker, next line | nothing moves; only the text is replaced | n/a |
Same speaker, new expression (another Portrait id)
|
cross-fade in place | Timing.Quick
|
| A new talker | the old tile fades out sliding 40 px toward its own edge; the new one fades in from 40 px outside its own edge, Ease.Out; battle.slide at 0.45 as today
|
out Timing.Quick, in Timing.Standard
|
| To a Commander line or the choices | the tile stays and dims to the listener state, frame to rail | Timing.Standard
|
| Back from the Commander | the tile lights in place | Timing.Standard
|
| The plates | trade lit and dim as today | Timing.Standard, replacing the literal SwapSeconds 0.2 (POL-E1)
|
Reduce Motion keeps the fades and drops the slide, the scale and the wobble.
Beside the vendor menu (§3.1). The two screens are one family: a standard window with the speaker's name in a plate. The vendor menu keeps its full portrait (R9's one exception) because it shows who you are buying from and says one bark at a time; once Talk is confirmed, the conversation is tiles. Talk opens DialogueScreen over the station's backdrop: the menu's portrait leaves with the screen fade, and the keeper's tile is in the box on the first line.
Buckets (§9). The box is laid out in the 1170 × 2532 box on every bucket, so the tile and the text column are the same size on A, B and C. On B the choice buttons grow with TapTarget (180 on the Fold cover) and the box grows upward; the tile stays 200 and top-aligned.
Tokens. No new token: Ui.ThumbMaxSize, Size.Plate, Space.S24, window padding 16 / 24, Palette.OrbLit, Palette.Pewter, Timing.Quick, Timing.Standard and Ease.Out, so tools/design_tokens.py --check is unaffected.
Open for the owner (also on the reference page): the Commander on the right; one tile rather than both speakers'; 200 px on the baked thumb rather than a 300-px tile from the full portrait; a tap on the tile opening the full art.
4. Sheets and modals
All of them sit on GameApp.I.Overlay above a .veil (#05050C at 0.72) that swallows taps, kept the topmost Overlay child. Back or Escape closes the top one.
| Surface | Builder | Shape | Dismiss | Confirm rule |
|---|---|---|---|---|
| Modal | Ui.Modal(title, onCancel, name), Ui.ModalActions, Ui.CloseModal
|
a centred window 76 % wide on the veil | Back answers onCancel
|
the caller's |
| Confirm dialog | Confirm.Show(question, yes, onYes, onNo) (built on Ui.Modal)
|
a centred window 76 % wide: the question as a heading, actions right-aligned (Cancel, then Yes) | Cancel, Back, a second Back | single tap: the dialog is the confirm |
| Bottom sheet | Ui.Sheet(name, onClose, full, heightPct), Ui.CloseSheet; the Abilities sheet (BattleScreen.AbilitySheet, GG-T1914, GG-T1920)
|
full width, rising from the thumb zone. Header with the hero thumbnail, name, HP and Close; tabs; a breadcrumb (Abilities › Ninjutsu › Smokebomb). The board stays visible behind it
|
Close, Back, a tap on the veil | rows are select-then-confirm; the commit button (Perform, Cast, Use) is single |
| Inspect card | InspectCard.Attach(e, build), InspectCard.Tap
|
a floating card beside its anchor | lift the finger, tap elsewhere | press and hold inspects anything (POL-D1) |
| Art preview | ArtPreview.Open(classId)
|
the full 1024 portrait over the veil | a tap anywhere, Back | n/a (R9) |
| Toast | Ui.Toast(text, seconds) (GameApp.Toast forwards)
|
a small pane in the band just under the header (Size.ToastTop below the safe top), out of the thumb zone so it never covers an action; taps pass through, and a second one stacks under the first (GG-T2156). A page that grants something on arrival names it inline instead (the Summon starter Tickets under the wallet)
|
times out (1.8 s) | n/a |
| Pause menu | hamburger, then OpenMenu
|
a sheet of menu rows | Resume, Back | rows are select-then-confirm |
A sheet rises from the bottom (Timing.Standard, Ease.Out) and drops away faster (Timing.Quick). A dialog fades in and scales up from 96 % (Timing.Quick, Ease.Back).
5. Layout grid and thumb zone
The stage is in design px and scales uniformly: at least 1170 × 2532 (GameApp.DesignWidth, DesignHeight), up to 1424 wide (9:16) or 3000 tall (about 9:23). The safe areas come off the top and bottom.
- Columns: one content column,
Fit.Column, with a 24-px gutter (Fit.Edge) on each side. Inside it, a 4-column grid with 24-px gutters is the default for card grids, and the battle action row's three cells share the width evenly. Grids keep even gutters (POL-C8). - Vertical bands, top to bottom: safe top, header or top bar (150), the toast band (toasts only, over the body's top, GG-T2156), body (flex), footer (132, optional), nav (132), safe bottom.
- Thumb zone: primary actions sit in the bottom 45 % of the safe stage (POL-C4). Lists anchor to the lower half (GG-T1853). The commit button, the footer, the nav, the battle action row and the timeline (GG-T2118) live there. The top-left corner (hamburger, Back) is the hard-to-reach corner on purpose: those taps are deliberate, not frequent.
Per device shape, from tools/devices.json (the representative device of each shape; the reference device, iphone15pro, is in iphone-island-393). "132 px is" and "30 px is" convert design px into the device's own pt or dp.
| Shape | In target | Stage | Safe top / bottom | Thumb zone from y | 132 px is | 30 px is |
|---|---|---|---|---|---|---|
| iphone-notch-390 | yes | 1170 × 2532 | 141 / 102 | 1400 | 44.0 pt | 10.0 pt |
| iphone-island-393 (reference) | yes | 1170 × 2536 | 176 / 101 | 1418 | 44.3 pt | 10.1 pt |
| iphone-island-430 | yes | 1170 × 2536 | 161 / 93 | 1416 | 48.5 pt | 11.0 pt |
| iphone-402 | yes | 1170 × 2544 | 180 / 99 | 1426 | 45.3 pt | 10.3 pt |
| iphone-440 | yes | 1170 × 2542 | 165 / 90 | 1423 | 49.6 pt | 11.3 pt |
| iphone-air | yes | 1170 × 2541 | 189 / 95 | 1430 | 47.4 pt | 10.8 pt |
| galaxy-fhd | yes | 1170 × 2535 | 104 / 78 | 1398 | 40.6 dp | 9.2 dp |
| galaxy-qhd | yes | 1170 × 2535 | 91 / 68 | 1398 | 46.4 dp | 10.5 dp |
| galaxy-flip-main | yes | 1170 × 2860 | 95 / 72 | 1576 | 44.3 dp | 10.1 dp |
| galaxy-fold-cover | yes | 1170 × 2872 | 116 / 87 | 1584 | 36.4 dp | 8.3 dp |
| iphone-mini | no | 1170 × 2535 | 156 / 106 | 1406 | 42.3 pt | 9.6 pt |
| iphone-notch-428 | no | 1170 × 2532 | 129 / 93 | 1400 | 48.3 pt | 11.0 pt |
| galaxy-20x9 | no | 1170 × 2600 | 104 / 78 | 1434 | 40.6 dp | 9.2 dp |
| pixel-20x9 | no | 1170 × 2626 | 119 / 68 | 1460 | 46.4 dp | 10.5 dp |
| ipad | no | 1424 × 2532 (framed) | 51 / 43 | 1392 | 61.5 pt | 14.0 pt |
Open question for the owner: 132 design px is exactly 44 pt only on 390-pt-wide screens. On the 360-dp Galaxy S base models it is 40.6 dp, and on the Z Fold cover 36.4 dp: under Apple's 44 pt and Material's 48 dp. Holding 44 on every screen would need a target that grows on narrow screens (about 160 px on the Fold cover), the way TypeFloor already raises text. Until that is decided, 132 px stays the token and the narrow Galaxy shapes are the known exception. The text floor has the same shape, and TypeFloor already handles it live.
6. Do and do not
| Do | Do not | Rule |
|---|---|---|
| Put the hamburger top-left and gold top-right on the hub and in battle | Move the menu into the thumb's corner, or put gold on the left | R1 |
| Give every sub-page Back top-left | Add a hamburger to a sub-page | R2 |
| Select on the first tap and run on the second; show the selection pressed in | Run an action on the first tap of a list row; mark the selection by colour or glow alone | R3 |
| Lead each row with its kind icon at the left edge | Leave a cursor gutter on a phone, or show the pointing hand | R4 |
| Let text shrink, then wrap, then marquee | Cut text with an ellipsis, clip a value at the edge, or break a word by hand | R5 |
Draw arrows with Shapes: filled, outlined, Bezier or orthogonal
|
Stroke a line twice, use a font arrow, or draw a bare stroked line | R6 |
| Make every tappable 132 × 132 with 24 px between | Ship a 20-px talent node or a text link as a tap target | R7 |
Use TypeScale.Base and change weight or colour for emphasis
|
Use a smaller size for meta, or anything under 30 px | R8 |
| Show heroes as their thumbnail and open the full art on tap | Show a shrunken 1024 portrait in a list or on a card | R9 |
| Keep one primary button per screen, in the thumb zone | Stack three price buttons on every row; float the commit button at the top | POL-C4, POL-C7 |
| Take every colour, space and duration from a token | Write new Color(…), 12px or 0.3f in a screen
|
POL-A1, B1, C1, E1 |
| Pin the footer above the nav; let toasts drop from under the header | Let a footer sit under the nav, or a toast sit over the thumb zone's actions | REVIEW §2.3, GG-T2156 |
7. What the UX review asks of the kit
From REVIEW.md, the findings that belong to the kit rather than to one screen:
- The hand cursor on seven screens: removed by R4 (built, GG-T1923). The review proposed a filled highlight with a 4-px left accent bar; the owner chose the pressed-in state instead, so the pressed-in state is the standard.
- Hero, foe, selected and next actor told apart only by thin border colours (REVIEW #5): every team and state mark also needs a shape (POL-B5). The battle token rework is its own story.
- Full art shown without a tap on Heroes · Status: R9.
- Words broken mid-syllable on Abilities, gold clipped on Summon history: R5.
- A footer under the nav on the Shard Store, toasts over content: §4 and §6.
- One name per concept (Diamonds, Shards, Mana Shards): the copy guide (GG-T2045).
8. 2026-11-29: a warmer, more painterly Manapunk (GG-T2191, proposed)
With about 30 days left before wrap, the owner's direction is polish, not new systems. This is a design-direction pass on the existing, already-finalized Manapunk skin (§11.5, GG-T2044, closed) — not a second theme, not a rewrite. The owner's reference is Final Fantasy Resonance's HD-2D feel. GG-T2191's research turned up no reliable public detail on that game's UI specifically (just the general HD-2D genre language: warm, painterly light over hand-crafted materials, not a cold tech surface), so this proposal leans on that genre language rather than copying a screenshot nobody has confirmed.
The owner's own priority order stays the order: familiar/friendly first, cutting-edge second, and most of all universally responsive third. Nothing below trades responsiveness for skin fidelity: every rule in §1 (R1 through R9), every Space/Size/Type/Radii/Motion token, the per-device table in §5 and the thumb zone are unchanged. So are every gameplay colour (Good/Bad/Warn/Info, Hero/Foe/Boss, Term, Danger, Gold, elements, rarity, gauges) — §2.1 already says those "stay the same in every theme," and this proposal doesn't touch them. This is eight colour tokens, nothing else.
The idea. Manapunk's own fiction already points at warmth: the owner described it (GG-T678) as "the Halcyon technology used to contain mana... like a high tech facility but also old and abandoned." Read that as a well-tended apothecary's lantern-glow instead of a derelict lab's cold diagnostic light, and the smoked glass, pewter rails and contained-mana accent all get less blue, not a different hue. Every pair below only lowers an existing token's blue channel by 8-20 % — never a hue rotation — so nothing drifts toward Boss's magenta (#DB66FF) or Gold/Warn's amber (POL-B4: one hue family, one meaning stays true). The existing noise texture (0.3 opacity, soft-light blend, 0.02 grain in the gradient, themes.json's Manapunk entry) already does real work toward "painterly" and needs no change: warming the base colours it sits on is enough to make it read like aged brass and warm smoke instead of sterile vapor.
| Role | Current | Proposed | Change |
|---|---|---|---|
| Pane top | #22203A
|
#25202E
|
R +3, B −12 (≈−20 %): warm charcoal-plum, not blue-black |
| Pane bottom | #100F1C
|
#120F16
|
same nudge, the gradient's dark stop |
Rail (Palette.Pewter)
|
#60646F
|
#606466
|
B −9 (≈−8 %): aged bronze-pewter, not cool steel |
Rail dark (PewterDark)
|
#34363F
|
#343436
|
same nudge, a window's lower edge |
Rail light (PewterLight)
|
#8C909C
|
#8C9090
|
same nudge, a gauge sleeve's lit top |
Accent (Palette.OrbLit)
|
#7590C8
|
#7590AA
|
B −30 (≈−15 %): less icy blue, same blue-violet family |
Accent light (OrbLitHighlight)
|
#ACA5D3
|
#ACA5B3
|
same nudge, the primary button's rim |
| Accent deep | #41386F
|
#41385E
|
same nudge, the primary button's lip |
Checked, not assumed:
- Text contrast (R8's pane requirement, "above 6:1 on every pane"):
--color-text(#E6E6EE) against both pane stops, current and proposed, computed by the sRGB relative-luminance formula: bottom stop ≈15.3:1 → ≈14.9:1, top stop ≈12.7:1 → ≈12.0:1. Comfortably clear of the 6:1 floor in both cases; the nudge is too small to threaten it. - Hue-family collision (POL-B4): the proposed accent (
#7590AA) sits next to Boss's#DB66FF(far more saturated magenta) and Hero's#78ABFF(clearly more blue) — still its own muted blue-violet, the gap doesn't narrow. - R1-R9: none of the nine rules name a hex value or a hue; all nine describe layout, interaction, text handling or targets, so none are touched.
- Responsiveness: no Space, Size, Type, Radii or Motion token changes; the per-device table (§5) and thumb zone are untouched; nothing here changes a touch target, a text floor, or a screen's layout.
Considered and left out of this proposal, on purpose: a bigger radius bump (§2.4's button/card 8 → something closer to the base theme's 16) would read friendlier too, but it is a sizing change the POL-C1 lint checks and the radius table cross-checks against Tokens.cs, not a pure colour nudge — a separate task if the owner wants it, not bundled here.
Scope boundary (deliberate): this section is the proposal. It does not change Theme.uss, Tokens.cs or Ui.cs. If the owner approves it, the follow-up is small and contained: the eight hex literals above in Theme.uss's .theme-manapunk block (the eight rules in §2.1 and §3 that read them: window top/bottom edges, buttons, tabs, nav, toast, gauge, scrollbar, card-selected), Tokens.cs's Palette.Pewter, PewterDark, PewterLight, OrbLit, OrbLitHighlight and the Manapunk entry's deep colour, and themes.json's Manapunk gradient stops — then python tools/design_tokens.py to regenerate the reference page's tokens.js. A live side-by-side (today vs. proposed, same mocks, same markup) is already on the reference page: docs/design/design-system/index.html#warmth.
9. 2026-11-29: fixed aspect-ratio buckets, widened backgrounds (GG-T2192, proposed)
With about 30 days left before wrap, the owner's direction is polish, not new systems. The overworld map was just scoped down to a decorative tap-node skin (GG-T1673 family), not travelable exploration, so this proposal assumes that simpler map rather than anything that would need to reflow around a bigger or smaller viewport.
The problem. §5 already says "the stage scales uniformly... up to 1424 wide (9:16) or 3000 tall (about 9:23)." That growth is live in GameApp.StageSizeFor/FitStage (bible §26.3, GG-T706): the spare axis beyond DesignWidth×DesignHeight (1170 × 2532, 19.5:9, the reference device iphone15pro's shape) grows edge to edge up to MaxStageWidth (1424, 9:16) or MaxStageHeight (3000, ~9:23) before the stage is letterboxed in MysticFog's flat procedural vapour instead. For most in-target phones that growth is under 0.5% (§5's table: 1170 × 2532 to 1170 × 2544) and not worth touching. For two in-target shapes it is not small: the Galaxy Z Flip6 main screen and the Z Fold6 cover screen grow the stage to 1170 × 2860 / 2872 — 13% more board and chrome reflowed into view than the reference device sees, not a cropped or scaled copy of the same layout. That is the "elastic" behaviour this ticket asks to replace with a small fixed set of shapes, the leftover device space filled by wider background art instead.
The bucket set, read off tools/devices.json (schema 1, checked 2026-11-28, 15 shapes) rather than assumed:
| Bucket | devices.json aspect (w/h) | Shapes | Proposed stage |
|---|---|---|---|
| A — Phone (anchor), ~19.5:9 | 0.45 – 0.4622 | iphone-notch-390, iphone-mini, iphone-notch-428, iphone-island-393 (reference), iphone-island-430, iphone-402, iphone-440, iphone-air, galaxy-fhd, galaxy-qhd, galaxy-20x9*, pixel-20x9* | 1170 × 2532 exactly (GameApp.DesignWidth × DesignHeight) — 12 of the matrix's 15 shapes; already within 0.5% of this today, so effectively no change
|
| B — Phone, extra-tall, ~22:9 | 0.4074 – 0.4091 | galaxy-flip-main, galaxy-fold-cover | Bucket A's same 1170 × 2532 box, framed top/bottom, not grown to 2860/2872 |
| C — Tablet / wide window, 9:16+ | 0.6949+ (ipad) | ipad (already inTarget: false)
|
Bucket A's same 1170 × 2532 box, framed left/right at 1424 wide — this is today's only shape that already takes the framed path |
* galaxy-20x9 and pixel-20x9 are inTarget: false (comparison rows) and sit only 2.6-3.7% narrower than the anchor (today's stage grows to 1170 × 2600/2626, not a visible amount); they're absorbed into Bucket A rather than given a fourth bucket.
There is no fourth, "~16:9" bucket. The task brief guessed one might be needed (the task's own words: "a more standard phone ratio e.g. ~16:9"), but the matrix has nothing between Bucket A's 0.4622 and Bucket C's 0.6949 — MaxStageWidth (1424, exactly 9:16) is today's upper growth limit for that empty gap, not a shape any device actually has. Folding it into Bucket C (anything beyond Bucket A's anchor gets framed, not grown) rather than inventing a populated-by-nobody middle bucket keeps this to three.
The fill, named at the method/field level (proposal only — nothing below is built):
GameApp.StageSizeFor(float screenAspect): today's twoMathf.Clamp(..., DesignWidth/Height, MaxStageWidth/Height)calls grow the spare axis continuously. Proposed: both calls collapse to always return the unchangedDesignWidth/DesignHeight(no growth past the anchor), so every shape outside Bucket A's tight band falls through to the framed path that already exists for tablets.GameApp.FitStage(): theframedtest (todayexactW > MaxStageWidth + 2f || exactH > MaxStageHeight + 2f) tightens towardexactW > DesignWidth + 2f || exactH > DesignHeight + 2f, so Bucket B's two shapes take the same pad/frame branch Bucket C already uses.FramePad(today one flat 36 design-px constant) would need to become bucket-aware: roughly 164/170 design px split top and bottom for Flip/Fold-cover (half of 2860-2532 and 2872-2532), versus Bucket C's existing 127 px each side ((1424-1170)/2) — the exact top/bottom split (even, or weighted toward whichever side isn't already eaten by the safe-area inset) is left to the implementation ticket.LivingBackdrop.Layout()already does the needed trick for any aspect it's given — its own class doc says the plates "cover the screen at the art's own aspect (cropping, never stretching, so 9:23 to 3:4 all fill)" viacoverW = Mathf.Max(w, h * aspect) * (1 + 2*margin). Todayw,hcome frombg.resolvedStyle, andbgis sized byGameScreen.BleedBackdrops, which only bleeds a screen's backdrop under the safe-area insets inside the Stage's own box — the frame margin outside it isMysticFog's flat noise, not scene art. Proposed: whenFitStagemarks the stage framed, hand the living backdrop's root the fullfitrect (Stage box plus the frame pad) instead of just the Stage-bound rect. No change toLayout()'s cover-crop math itself — it already fills whatever rect it measures; it has just never been handed a rect bigger than the Stage before.- Risk this surfaces in
Sky.cs:SkyDef/SkyRegionDef'sX/Yplacement (0-1, "screen terms", per the file's own doc comment) is authored against the Stage box. If the backdrop's measured rect grows to include the frame margin, the Somnolith/Moon/wake's 0-1 placement would drift outward with it. The fix is two rects, not one:Layout()keeps placing bodies, shards and the debris wake (somX,somY,skyBottom,refW) off the original Stage-sizedw,h(unchanged), while only the sky/foreground plates' cover-crop sizing uses the larger bleed rect. Flagged here, not resolved — the next ticket's job. - The seam between the fixed frame and the widened fill should never read as a hard line.
SOMNOLITH_VISUAL_SPEC.mdalready has the precedent for exactly this, in Convergence's own boxed satellite framing: "Shards fade in the last 12% toward each frame edge so they never cut off hard." The same idea — a soft blend, not a visible cut — generalizes to the Stage-box/margin seam; whether that is a vignette insideLivingBackdropor a gradient over the join is an implementation choice for later, not fixed here.
Considered and left out, on purpose:
- A fourth ultrawide/desktop bucket for RDP or windowed play: no shape in
tools/devices.jsonneeds one, and Bucket C's existing framed path (not pinned to any particular width beyond the anchor) already absorbs any wider window without a new number. - Splitting Bucket A further (Apple's 390-440 pt family reads 0.46-0.4622, Samsung's FHD/QHD reads exactly 0.4615): under 0.5% apart and already under 12 design px of difference in today's rounding — not worth a second bucket.
Scope boundary (deliberate): this section is the proposal. It does not change GameApp.cs, LivingBackdrop.cs, Sky.cs, Theme.uss or Tokens.cs. If the owner approves it, the follow-up is: the StageSizeFor/FitStage threshold change above; FramePad becoming bucket-aware instead of one constant; a second, frame-inclusive bleed rect for LivingBackdrop (likely a GameScreen.BleedBackdrops overload) alongside today's Stage-bound one; Sky.cs's region placement moving to the two-rect scheme; and re-deriving §5's per-shape table (today's "Stage" column shows galaxy-flip-main/fold-cover at 1170 × 2860/2872 and ipad framed at 1424 × 2532 — Bucket B's rows would change to 1170 × 2532 framed, and §5's "Thumb zone from y" column, computed off the grown stage height, would need to be re-derived off the frozen 2532 instead). None of §1's R1-R9, the Space/Size/Type/Radii/Motion tokens, or Bucket A's own numbers move. A lightweight diagram of the bucket idea is on the reference page: docs/design/design-system/index.html#aspect.