diff --git a/CURRENT_CHECKPOINT.md b/CURRENT_CHECKPOINT.md new file mode 100644 index 00000000..c2d43973 --- /dev/null +++ b/CURRENT_CHECKPOINT.md @@ -0,0 +1,12 @@ +# Current Checkpoint + +Active Goal: `docs/goals/PHASE7_UI_PRODUCTION_ATLAS_GOAL.md` +Active contract: `docs/presentation/PHASE7_UI_PRODUCTION_CONTRACT.md` +Active ledger: `docs/reviews/PHASE7_UI_PRODUCTION_LEDGER.md` +Baseline: `9a734e913cabc9846edca754c1666399ff501e71` +Stage: `UI_PRODUCTION_ATLAS_ACTIVE` + +The Phase 6 battle, VFX and equipment direction is Owner-accepted. Phase 7 +turns the existing 50-screen design inventory into an individually viewable, +Chinese-first, production-oriented landscape HTML atlas. Runtime, engine, +audio, bulk asset production, device, package and release work remain frozen. diff --git a/README.md b/README.md index 15771e0b..756c940c 100644 --- a/README.md +++ b/README.md @@ -22,22 +22,23 @@ The game may learn structural lessons from authorized private reference research, but its setting, characters, enemies, names, art, audio, UI, progression, formulas, and expression must be original. -## Review The Design +## Review The Phase 7 Production UI Atlas The owner-facing HTML in [`prototype/site/`](prototype/site/) is the current -responsive landscape design prototype. It replaces the superseded coverage -audit and reads the current authorities directly when the Gallery bundle is +responsive landscape production UI atlas. It keeps all 50 page IDs directly +inspectable, uses page-specific compositions instead of generic fallback +cards, and reads the current authorities directly when the Gallery bundle is built. Simplified Chinese is the owner-facing default; English remains available from the language control. The complete 23-state first-play chain, its decision labels, consequences, controls, and the Screen Atlas summaries -are localized rather than leaving the key mechanics in English. +use native HTML text rather than generated lettering. 1. **First play:** inspect 23 states from Contract setup through two-of-four run creation, two separate Market hires, party ordering, risk, automatic battle, diagnosis, reward, equipment adaptation, casualty, and recovery. 2. **Screen atlas:** inspect exactly 50 current page/state IDs. Every ID has a page-specific composition plus loading/empty, error/confirmation, and - interruption/return variants; `SYS-005` exposes its five staged states. + interruption/return variants; there are no generic page fallbacks. 3. **Regions:** inspect all eight Region directions, encounter pressure, enemy identities, and two bosses per Region. 4. **Catalogs:** search 42 Professions, 36 Traits, 320 equipment items, 60 @@ -72,19 +73,24 @@ python3 tools/build_gallery_bundle.py ``` The build command regenerates `prototype/site/data/catalog.json`, verifies the -current exact counts and unique IDs, and writes -`prototype/gallery/aetherbound-guild-prototype.html`. Browser verification is -in `prototype/site/verify-r6.js`; it requires an already-provisioned Playwright -Node module and Chrome, starts no external service, and writes screenshots to -`prototype/gallery/evidence/r6/`. +current exact counts and unique IDs, recursively embeds the UI candidate PNG +and WebP assets, and writes the self-contained +`prototype/gallery/aetherbound-guild-prototype.html`. Phase 7 browser +verification is in `prototype/site/verify-r7.js`; it requires an +already-provisioned Playwright Node module and Chrome, starts no external +service, and writes ignored screenshots to a caller-selected evidence root. +`python3 tools/verify_ui_asset_provenance.py` proves that all 34 character, +equipment and VFX presentation copies are byte-identical to their recorded +accepted candidate sources. ## Evidence Boundary The HTML is an interactive **design prototype**, not a playable build. Existing image boards are labeled concept direction only. The current one-line party, transactions, readable UI, stable IDs, and text are independently authored in -HTML; no board is a final background, sprite, item icon, animation, integrated -asset, runtime screenshot, or human-approved result. +HTML. Traceable character, equipment and VFX candidate images are present to +show composition and scale, but none is a final runtime sprite, animation, +Godot integration, device capture or human-approved result. See [`docs/README.md`](docs/README.md) for the complete authority map and [`docs/reviews/PRE_DEVELOPMENT_READINESS_AUDIT.md`](docs/reviews/PRE_DEVELOPMENT_READINESS_AUDIT.md) diff --git a/docs/README.md b/docs/README.md index cef9b381..2de431d1 100644 --- a/docs/README.md +++ b/docs/README.md @@ -43,6 +43,11 @@ authority after the direction is approved. asset identities, rigs, animation and VFX production - [`presentation/AUDIO_MUSIC_AND_VOICE_CATALOG.md`](presentation/AUDIO_MUSIC_AND_VOICE_CATALOG.md): music, ambience, dialogue and SFX identities +- [`goals/PHASE7_UI_PRODUCTION_ATLAS_GOAL.md`](goals/PHASE7_UI_PRODUCTION_ATLAS_GOAL.md), + [`presentation/PHASE7_UI_PRODUCTION_CONTRACT.md`](presentation/PHASE7_UI_PRODUCTION_CONTRACT.md) + and [`reviews/PHASE7_UI_PRODUCTION_LEDGER.md`](reviews/PHASE7_UI_PRODUCTION_LEDGER.md): + current 50-page Chinese-first UI atlas scope, acceptance and append-only + evidence history ## Prototype, Research And Review @@ -59,6 +64,9 @@ authority after the direction is approved. and the next bounded production order - [`prototype/generation/phase6_ui_masters_02/README.md`](prototype/generation/phase6_ui_masters_02/README.md): eight formal UI masters, exact provider provenance and open Owner decisions +- [`prototype/generation/phase7_profession_identity_01/README.md`](prototype/generation/phase7_profession_identity_01/README.md): + four normalized base-Profession identity anchors, three Phase 7 provider + calls, deterministic processing, play-size review and open runtime gates - [`reference/REFERENCE_RUNTIME_CENSUS.md`](reference/REFERENCE_RUNTIME_CENSUS.md) [`reference/TRANSFERABLE_STRUCTURE_LESSONS.md`](reference/TRANSFERABLE_STRUCTURE_LESSONS.md), [`reference/USER_PLAY_VIDEO_STUDY_2026-08-11.md`](reference/USER_PLAY_VIDEO_STUDY_2026-08-11.md), diff --git a/docs/goals/PHASE7_UI_PRODUCTION_ATLAS_GOAL.md b/docs/goals/PHASE7_UI_PRODUCTION_ATLAS_GOAL.md new file mode 100644 index 00000000..6314c33c --- /dev/null +++ b/docs/goals/PHASE7_UI_PRODUCTION_ATLAS_GOAL.md @@ -0,0 +1,59 @@ +# Phase 7 UI Production Atlas Goal + +## Decision + +Enable the Owner to decide whether the complete page system is sufficiently +clear, coherent and visually representative to authorize a Godot vertical +slice. + +## Player Chain + +The primary review chain is: + +`Title -> Contract -> choose two of four -> creation receipt -> Market -> hire +-> Party Line -> equipment comparison -> Risk -> automatic Battle -> inspect +-> result -> casualty -> reward -> recovery -> next Market` + +## Owned Scope + +- Upgrade `prototype/site/` without changing the accepted game rules. +- Keep all 50 player-facing screen IDs individually viewable. +- Replace generic page fallbacks with page-specific compositions. +- Use real Simplified Chinese copy and factual sample values. +- Integrate only accepted or explicitly Phase-7-generated visual candidates. +- Prove three missing base-Profession identity anchors, using at most three + API Mart GPT-Image-2 paid calls under the workspace standing authorization. +- Bind accepted equipment and VFX samples to the relevant UI states. +- Produce a self-contained Gallery bundle and browser evidence. + +## Frozen + +- Godot/runtime code, gameplay formulas, save behavior and content counts. +- Bulk production of 42 Profession, 320 equipment, 60 Artifact, 100 enemy, + 16 boss or eight complete Region libraries. +- Character action-row expansion beyond existing accepted motion evidence. +- New music, SFX, speech, video, packaging, signing, stores and release. + +## Acceptance + +1. The atlas exposes exactly 50 unique screen IDs and eight page families. +2. Every screen has a page-specific composition, title, purpose, primary action + and safe return/error state; no generic placeholder panel remains. +3. The core chain is clickable with Chinese as the default language. +4. All generated text is replaced by deterministic HTML text. +5. The reference 16:9 stage is fully visible without clipping at desktop and + landscape mobile widths; the gallery shell remains usable on portrait mobile. +6. Character, equipment and VFX images preserve provenance and are never + described as runtime-integrated or final bulk art. +7. Static validation, browser interaction checks, screenshots and console-log + inspection pass from one clean immutable revision. +8. Owner understanding, visual acceptance, fun, audio, device and development + authorization remain open. + +## Legal Terminal + +`Aetherbound Guild Phase 7 production UI atlas candidate ready` + +or + +`Aetherbound Guild Phase 7 redesign required: ` diff --git a/docs/presentation/PHASE7_UI_PRODUCTION_CONTRACT.md b/docs/presentation/PHASE7_UI_PRODUCTION_CONTRACT.md new file mode 100644 index 00000000..b8425612 --- /dev/null +++ b/docs/presentation/PHASE7_UI_PRODUCTION_CONTRACT.md @@ -0,0 +1,42 @@ +# Phase 7 UI Production Contract + +## Visual System + +- Landscape reference stage: `16:9`; protected controls stay inside safe edges. +- Owner-facing shell: quiet light workspace with a persistent dark index. +- Game surfaces: painted world first, compact graphite/ivory instruments second, + teal route state, gold committed action, jade safe result and coral danger. +- Actor scale: ordinary battle units occupy 10-14% of stage height; UI portraits + may be larger only in Recruit inspect, loss review and Records. +- Text is native HTML. AI imagery may never provide labels, values or controls. +- Every primary action has enabled, selected, disabled and failure language. + +## Eight Page Families + +1. Boot, Title and Run creation. +2. Guild, Market and Recruit management. +3. Equipment, Artifact and Party preparation. +4. Risk selection and commitment. +5. Automatic Battle, inspect, pause, retreat and resume. +6. Result, casualty, reward, recovery and run closure. +7. Progression, Records, Chronicle and Oath Season. +8. Settings, save/data and accessibility. + +## Asset Slots + +- `actor-card`: transparent identity anchor, full body, feet visible. +- `actor-line`: idle/action frame at crowd scale with stable baseline. +- `equipment-96` and `equipment-64`: accepted transparent item assets. +- `vfx-128`: detached semantic cue; never baked into actor identity. +- `environment-16x9`: opaque scene art behind editable HTML/UI layers. + +Generated identity anchors are visual candidates only. They may populate design +pages after provenance, chroma cleanup and play-size review, but do not become +runtime sprites until a later motion and engine-integration Goal. + +## Responsive Rule + +The game stage keeps `16:9`. Wide desktop uses available width up to a readable +maximum. Portrait mobile treats the stage as a horizontal artifact: the shell +stacks controls above it and the dedicated viewer permits horizontal inspection +without compressing game text into an unreadable portrait imitation. diff --git a/docs/prototype/generation/README.md b/docs/prototype/generation/README.md index fd4258e7..a88c70b4 100644 --- a/docs/prototype/generation/README.md +++ b/docs/prototype/generation/README.md @@ -1,8 +1,9 @@ # Concept Image Provenance -These four calls are the complete paid-generation set for the current design -prototype. The owner standing authorization allowed up to four calls and USD 5 -equivalent for this task. Exactly four calls were made and no retry occurred. +These four calls are the complete paid-generation set for the original concept +prototype task. The owner standing authorization allowed up to four calls and +USD 5 equivalent for that task. Exactly four calls were made and no retry +occurred. | Purpose | Provider task ID | Prompt | Source output | |---|---|---|---| @@ -21,3 +22,8 @@ Every output is `concept` evidence only. It is not final art, a sprite sheet, an animation, an integrated asset, a runtime screenshot, or a human-approved result. Generated lettering is never UI authority; all readable prototype text and controls are authored in HTML. + +Later bounded production-direction batches are documented in their own +subdirectories and retain separate task ceilings. The current Phase 7 identity +batch is recorded in +[`phase7_profession_identity_01/README.md`](phase7_profession_identity_01/README.md). diff --git a/docs/prototype/generation/phase7_profession_identity_01/BATCH_CONTRACT.md b/docs/prototype/generation/phase7_profession_identity_01/BATCH_CONTRACT.md new file mode 100644 index 00000000..1ea1223a --- /dev/null +++ b/docs/prototype/generation/phase7_profession_identity_01/BATCH_CONTRACT.md @@ -0,0 +1,21 @@ +# Phase 7 Profession Identity Batch 01 + +Purpose: supply three missing base-Profession identity anchors for the Phase 7 +HTML UI atlas. The accepted `recruit-aegis` idle frame is the style, proportion, +camera and outline reference. It is not regenerated. + +| Candidate | Runtime job | Generation | Output state | +|---|---|---|---| +| `farstring-anchor` | ranged Recruit identity in offers, Party and battle | one direct 1K call | source candidate | +| `wayrunner-anchor` | mobile Recruit identity in offers, Party and battle | one direct 1K call | source candidate | +| `kindhand-anchor` | support Recruit identity in offers, Party and battle | one direct 1K call | source candidate | + +All candidates must be complete full-body figures, face right, preserve the +accepted Japanese 2D thin-line/cel-color direction, contain no detached VFX, +text, UI, frame or cast shadow, and use a flat pure-green background for +deterministic removal. They remain design-prototype source/processed assets, +not motion-proven or runtime-integrated sprites. + +Budget: three paid API Mart GPT-Image-2 calls, under the workspace ceiling of +four calls and USD 5 for this Owner-requested task. No retry is pre-authorized +beyond the unused fourth-call task ceiling. diff --git a/docs/prototype/generation/phase7_profession_identity_01/README.md b/docs/prototype/generation/phase7_profession_identity_01/README.md new file mode 100644 index 00000000..64608240 --- /dev/null +++ b/docs/prototype/generation/phase7_profession_identity_01/README.md @@ -0,0 +1,42 @@ +# Phase 7 Profession Identity Batch 01 + +This batch supplies the four base-Profession identity anchors used by the +Phase 7 HTML production UI atlas. Three images were generated for this task; +the accepted Phase 6 Hearthguard frame was reused and normalized without a new +provider call. + +| Profession | Provider task | Cost (USD) | Processed SHA-256 | State | +|---|---|---:|---|---| +| Farstring | `task_01KZSNBVCHNJ63NS60NMJVQ6TZ` | `0.0085` | `0f7eda3b8ac4431fb5a9401e02d37cd4addea4d08d94568331654b8d4c405a26` | `PROCESSED_UI_CANDIDATE` | +| Hearthguard | reused Phase 6 accepted idle frame | `0` | `fac57d23584b713e39817ea36dc432743b63acd18c74dbb5dfabb1f819685a18` | `PROCESSED_UI_CANDIDATE` | +| Kindhand | `task_01KZSNBVA97SWKTEADQ8B16Q8W` | `0.0085` | `899eb7eb81af5acc2b85d344a87f3d0d15f2299d585dbb8fcb1031f19cc242e9` | `PROCESSED_UI_CANDIDATE` | +| Wayrunner | `task_01KZSNBVBGRQ14RZHHZQMDQB52` | `0.0085` | `b1c06349cd91c84d86912579aa1137f634e52abeb983373fdea2a6857fc3f239` | `PROCESSED_UI_CANDIDATE` | + +Exactly three API Mart GPT-Image-2 calls were made, with no retry. Total cost +was USD `0.0255` (`0.255` provider credits). The fourth-call task allowance +was not used. Each provider report retains the task ID, model, local reference, +byte count and returned cost without credentials. + +## Processing Contract + +- The accepted `recruit-aegis` idle frame is the visual reference. +- All four processed anchors are transparent `512x512` PNGs. +- The visible figure is normalized to an `88%` height envelope. +- Feet share a 31-pixel bottom margin for stable offer, Party and battle use. +- Verification requires transparent corners, non-empty content and zero green + spill pixels. +- The contact sheet SHA-256 is + `bc36559be57fa9e6167767601dd83d8e50ed98de57a7f942981c93b1f64c132f`. + +The exact prompts, raw outputs, deterministic processing reports and +verification report remain adjacent to this file. See +[`VISUAL_REVIEW.md`](VISUAL_REVIEW.md) for the play-size judgment and open +boundaries. + +## Evidence Boundary + +These are traceable visual candidates for the non-runtime HTML design atlas. +They are not motion-proven sprites, final profession art, Godot imports, +runtime-integrated assets or human-approved production art. A later animation +and engine-integration Goal must establish action frames, pivots, scale, +event binding and target-device rendering before runtime use. diff --git a/docs/prototype/generation/phase7_profession_identity_01/VISUAL_REVIEW.md b/docs/prototype/generation/phase7_profession_identity_01/VISUAL_REVIEW.md new file mode 100644 index 00000000..b2ae02e7 --- /dev/null +++ b/docs/prototype/generation/phase7_profession_identity_01/VISUAL_REVIEW.md @@ -0,0 +1,36 @@ +# Phase 7 Profession Identity Visual Review + +Review target: [`profession-identity-contact.png`](profession-identity-contact.png) +and the Phase 7 first-play, Party and battle compositions at their actual HTML +display sizes. + +## Agent Visual Review + +Result: `PASS_FOR_UI_ATLAS_OWNER_OPEN` + +- All four silhouettes are distinct at offer-card size: ranged bow and scarf, + shield-led guard, lantern-led support, and light-foot skirmisher. +- Costume language remains within the accepted Japanese 2D thin-line and + cel-color direction without copying reference-game characters. +- Full bodies and feet remain visible; the common baseline prevents card and + Party-line jumping between identities. +- Farstring, Kindhand and Wayrunner read as different roles without relying on + a text label. Hearthguard remains the strongest armored front-line signal. +- No detached VFX, UI lettering, cast shadow or chroma residue is embedded in + the processed anchors. +- The figures remain legible in the opening offers and compact Party line. The + HTML battle keeps ordinary actors near the accepted crowd scale rather than + promoting portrait art into oversized battlefield units. + +## Known Limits + +- The four anchors prove identity direction only. They do not prove animation + continuity, action readability, equipment overlay compatibility or damage + state changes. +- Farstring and Wayrunner share a dark navy/ivory family. Their weapon, + silhouette and pose distinguish them now, but later motion sheets must keep + that distinction at smaller runtime scale. +- Kindhand's lantern is a role prop, not a detached spell effect. Runtime VFX + must remain on separate event-bound layers. +- Human visual acceptance, comprehension at first play and final production + approval remain Owner gates. diff --git a/docs/prototype/generation/phase7_profession_identity_01/outputs/farstring-anchor.png b/docs/prototype/generation/phase7_profession_identity_01/outputs/farstring-anchor.png new file mode 100644 index 00000000..46a36ed8 Binary files /dev/null and b/docs/prototype/generation/phase7_profession_identity_01/outputs/farstring-anchor.png differ diff --git a/docs/prototype/generation/phase7_profession_identity_01/outputs/farstring-raw.png b/docs/prototype/generation/phase7_profession_identity_01/outputs/farstring-raw.png new file mode 100644 index 00000000..58e9bb97 Binary files /dev/null and b/docs/prototype/generation/phase7_profession_identity_01/outputs/farstring-raw.png differ diff --git a/docs/prototype/generation/phase7_profession_identity_01/outputs/hearthguard-anchor.png b/docs/prototype/generation/phase7_profession_identity_01/outputs/hearthguard-anchor.png new file mode 100644 index 00000000..d17656b5 Binary files /dev/null and b/docs/prototype/generation/phase7_profession_identity_01/outputs/hearthguard-anchor.png differ diff --git a/docs/prototype/generation/phase7_profession_identity_01/outputs/kindhand-anchor.png b/docs/prototype/generation/phase7_profession_identity_01/outputs/kindhand-anchor.png new file mode 100644 index 00000000..01c890c6 Binary files /dev/null and b/docs/prototype/generation/phase7_profession_identity_01/outputs/kindhand-anchor.png differ diff --git a/docs/prototype/generation/phase7_profession_identity_01/outputs/kindhand-raw.png b/docs/prototype/generation/phase7_profession_identity_01/outputs/kindhand-raw.png new file mode 100644 index 00000000..075f8ef4 Binary files /dev/null and b/docs/prototype/generation/phase7_profession_identity_01/outputs/kindhand-raw.png differ diff --git a/docs/prototype/generation/phase7_profession_identity_01/outputs/wayrunner-anchor.png b/docs/prototype/generation/phase7_profession_identity_01/outputs/wayrunner-anchor.png new file mode 100644 index 00000000..91f8b666 Binary files /dev/null and b/docs/prototype/generation/phase7_profession_identity_01/outputs/wayrunner-anchor.png differ diff --git a/docs/prototype/generation/phase7_profession_identity_01/outputs/wayrunner-raw.png b/docs/prototype/generation/phase7_profession_identity_01/outputs/wayrunner-raw.png new file mode 100644 index 00000000..a3bd0251 Binary files /dev/null and b/docs/prototype/generation/phase7_profession_identity_01/outputs/wayrunner-raw.png differ diff --git a/docs/prototype/generation/phase7_profession_identity_01/profession-identity-contact.png b/docs/prototype/generation/phase7_profession_identity_01/profession-identity-contact.png new file mode 100644 index 00000000..d327f95b Binary files /dev/null and b/docs/prototype/generation/phase7_profession_identity_01/profession-identity-contact.png differ diff --git a/docs/prototype/generation/phase7_profession_identity_01/prompts/farstring.txt b/docs/prototype/generation/phase7_profession_identity_01/prompts/farstring.txt new file mode 100644 index 00000000..f0e12eae --- /dev/null +++ b/docs/prototype/generation/phase7_profession_identity_01/prompts/farstring.txt @@ -0,0 +1,7 @@ +Create one clean full-body game character identity anchor on a perfectly flat pure green #00FF00 background. + +Match the attached reference's premium Japanese 2D hand-drawn game art: thin crisp dark linework, controlled cel-color shading, elegant readable silhouette, realistic adult proportions around 6.5 to 7 heads tall, compact detail that remains readable at small mobile battle scale. This is the same world and production style but a clearly different profession identity. + +SUBJECT: FARSTRING, an agile adult ranged scout. Three-quarter side view facing RIGHT. Full body from hair to both feet, feet on one shared baseline, centered with generous empty padding. Short wind-swept dark auburn hair, calm focused expression, asymmetrical navy and ivory travel coat, muted teal scarf tail, slim leather bracers, compact recurved bow held low, closed quiver at the back. Light armor and long-range silhouette; no shield, no sword, no wings, no modern technology. The bow, hands, hair and feet must be fully visible and not touch the canvas edge. + +One character only. One neutral battle-ready idle pose only. No attack, no motion blur, no duplicate body, no extra limb or finger, no particles, no magic glow, no floor, no shadow, no scenery, no text, no letters, no numbers, no logo, no UI, no border, no grid. Preserve #00FF00 as a uniform removable background with no green reflected on the character. diff --git a/docs/prototype/generation/phase7_profession_identity_01/prompts/kindhand.txt b/docs/prototype/generation/phase7_profession_identity_01/prompts/kindhand.txt new file mode 100644 index 00000000..c80de6bd --- /dev/null +++ b/docs/prototype/generation/phase7_profession_identity_01/prompts/kindhand.txt @@ -0,0 +1,7 @@ +Create one clean full-body game character identity anchor on a perfectly flat pure green #00FF00 background. + +Match the attached reference's premium Japanese 2D hand-drawn game art: thin crisp dark linework, controlled cel-color shading, elegant readable silhouette, realistic adult proportions around 6.5 to 7 heads tall, compact detail that remains readable at small mobile battle scale. This is the same world and production style but a clearly different profession identity. + +SUBJECT: KINDHAND, an adult field medic and restorative support. Three-quarter side view facing RIGHT. Full body from hair to both feet, feet on one shared baseline, centered with generous empty padding. Warm brown braided hair pinned high, composed observant expression, layered ivory robe-coat with navy hems and subdued jade medical cords, practical boots, one closed brass-and-glass remedy lantern held at the hip, compact satchel with sealed vials. The silhouette must communicate protection and recovery without priest robes; no shield, no giant staff, no wings, no modern technology. The lantern, hands, satchel and feet must be fully visible and not touch the canvas edge. + +One character only. One neutral battle-ready idle pose only. No attack, no motion blur, no duplicate body, no extra limb or finger, no particles, no magic glow, no floor, no shadow, no scenery, no text, no letters, no numbers, no logo, no UI, no border, no grid. Preserve #00FF00 as a uniform removable background with no green reflected on the character. diff --git a/docs/prototype/generation/phase7_profession_identity_01/prompts/wayrunner.txt b/docs/prototype/generation/phase7_profession_identity_01/prompts/wayrunner.txt new file mode 100644 index 00000000..654d9103 --- /dev/null +++ b/docs/prototype/generation/phase7_profession_identity_01/prompts/wayrunner.txt @@ -0,0 +1,7 @@ +Create one clean full-body game character identity anchor on a perfectly flat pure green #00FF00 background. + +Match the attached reference's premium Japanese 2D hand-drawn game art: thin crisp dark linework, controlled cel-color shading, elegant readable silhouette, realistic adult proportions around 6.5 to 7 heads tall, compact detail that remains readable at small mobile battle scale. This is the same world and production style but a clearly different profession identity. + +SUBJECT: WAYRUNNER, an agile adult route fighter. Three-quarter side view facing RIGHT. Full body from hair to both feet, feet on one shared baseline, centered with generous empty padding. Cropped charcoal hair with one pale teal streak, alert expression, short ivory-and-slate split coat, narrow gold route clasps, flexible dark trousers, light greaves, one compact hooked short blade held downward and one empty hand ready to signal. The silhouette must communicate fast repositioning rather than heavy damage; no bow, no shield, no wings, no modern technology. The blade, hands, coat tails and feet must be fully visible and not touch the canvas edge. + +One character only. One neutral battle-ready idle pose only. No attack, no motion blur, no duplicate body, no extra limb or finger, no particles, no magic glow, no floor, no shadow, no scenery, no text, no letters, no numbers, no logo, no UI, no border, no grid. Preserve #00FF00 as a uniform removable background with no green reflected on the character. diff --git a/docs/prototype/generation/phase7_profession_identity_01/reports/farstring-processing.json b/docs/prototype/generation/phase7_profession_identity_01/reports/farstring-processing.json new file mode 100644 index 00000000..664f09f9 --- /dev/null +++ b/docs/prototype/generation/phase7_profession_identity_01/reports/farstring-processing.json @@ -0,0 +1,33 @@ +{ + "ok": true, + "source": "/Users/wusumac/Documents/game/aetherbound_guild/docs/prototype/generation/phase7_profession_identity_01/outputs/farstring-raw.png", + "source_sha256": "5d33d1a6793e50680ddf8fce99986e4eefe41b298fdde2be36a324e04e97ffac", + "source_dimensions": [ + 1254, + 1254 + ], + "source_content_bound": [ + 217, + 72, + 1113, + 1195 + ], + "output": "/Users/wusumac/Documents/game/aetherbound_guild/docs/prototype/generation/phase7_profession_identity_01/outputs/farstring-anchor.png", + "output_sha256": "0f7eda3b8ac4431fb5a9401e02d37cd4addea4d08d94568331654b8d4c405a26", + "output_dimensions": [ + 512, + 512 + ], + "output_content_bound": [ + 76, + 30, + 436, + 481 + ], + "removed_visible_green_pixels_after_resize": 143, + "normalization": { + "height_fraction": 0.88, + "width_fraction": 0.84, + "feet_baseline_margin": 31 + } +} diff --git a/docs/prototype/generation/phase7_profession_identity_01/reports/farstring.json b/docs/prototype/generation/phase7_profession_identity_01/reports/farstring.json new file mode 100644 index 00000000..08b29213 --- /dev/null +++ b/docs/prototype/generation/phase7_profession_identity_01/reports/farstring.json @@ -0,0 +1,17 @@ +{ + "mode": "execute", + "model": "gpt-image-2", + "size": "1:1", + "resolution": "1k", + "output": "/Users/wusumac/Documents/game/aetherbound_guild/docs/prototype/generation/phase7_profession_identity_01/outputs/farstring-raw.png", + "local_references": [ + "/Users/wusumac/Documents/game/aetherbound_guild/docs/prototype/generation/phase6_motion_proof_03/runs/recruit-aegis/accepted/idle/frames/frame-0.png" + ], + "remote_reference_count": 0, + "prompt_chars": 1403, + "task_id": "task_01KZSNBVCHNJ63NS60NMJVQ6TZ", + "status": "completed", + "bytes": 1481550, + "cost": 0.0085, + "credits_cost": 0.085 +} diff --git a/docs/prototype/generation/phase7_profession_identity_01/reports/hearthguard-processing.json b/docs/prototype/generation/phase7_profession_identity_01/reports/hearthguard-processing.json new file mode 100644 index 00000000..0ecde03a --- /dev/null +++ b/docs/prototype/generation/phase7_profession_identity_01/reports/hearthguard-processing.json @@ -0,0 +1,33 @@ +{ + "ok": true, + "source": "docs/prototype/generation/phase6_motion_proof_03/runs/recruit-aegis/accepted/idle/frames/frame-0.png", + "source_sha256": "8b4154ad9b311d9b51a2c68fe0a88b8d9bbfd1c866b7fc927fdec2a5e8c5be78", + "source_dimensions": [ + 256, + 256 + ], + "source_content_bound": [ + 52, + 24, + 197, + 232 + ], + "output": "docs/prototype/generation/phase7_profession_identity_01/outputs/hearthguard-anchor.png", + "output_sha256": "fac57d23584b713e39817ea36dc432743b63acd18c74dbb5dfabb1f819685a18", + "output_dimensions": [ + 512, + 512 + ], + "output_content_bound": [ + 99, + 30, + 413, + 481 + ], + "removed_visible_green_pixels_after_resize": 14, + "normalization": { + "height_fraction": 0.88, + "width_fraction": 0.84, + "feet_baseline_margin": 31 + } +} diff --git a/docs/prototype/generation/phase7_profession_identity_01/reports/kindhand-processing.json b/docs/prototype/generation/phase7_profession_identity_01/reports/kindhand-processing.json new file mode 100644 index 00000000..4295d29a --- /dev/null +++ b/docs/prototype/generation/phase7_profession_identity_01/reports/kindhand-processing.json @@ -0,0 +1,33 @@ +{ + "ok": true, + "source": "/Users/wusumac/Documents/game/aetherbound_guild/docs/prototype/generation/phase7_profession_identity_01/outputs/kindhand-raw.png", + "source_sha256": "02fb80e8ed6f35398fca28fdf892de83f98fd375a2b8df21465b1d44f3797a87", + "source_dimensions": [ + 1254, + 1254 + ], + "source_content_bound": [ + 394, + 56, + 878, + 1199 + ], + "output": "/Users/wusumac/Documents/game/aetherbound_guild/docs/prototype/generation/phase7_profession_identity_01/outputs/kindhand-anchor.png", + "output_sha256": "899eb7eb81af5acc2b85d344a87f3d0d15f2299d585dbb8fcb1031f19cc242e9", + "output_dimensions": [ + 512, + 512 + ], + "output_content_bound": [ + 160, + 30, + 351, + 481 + ], + "removed_visible_green_pixels_after_resize": 111, + "normalization": { + "height_fraction": 0.88, + "width_fraction": 0.84, + "feet_baseline_margin": 31 + } +} diff --git a/docs/prototype/generation/phase7_profession_identity_01/reports/kindhand.json b/docs/prototype/generation/phase7_profession_identity_01/reports/kindhand.json new file mode 100644 index 00000000..fbdcee44 --- /dev/null +++ b/docs/prototype/generation/phase7_profession_identity_01/reports/kindhand.json @@ -0,0 +1,17 @@ +{ + "mode": "execute", + "model": "gpt-image-2", + "size": "1:1", + "resolution": "1k", + "output": "/Users/wusumac/Documents/game/aetherbound_guild/docs/prototype/generation/phase7_profession_identity_01/outputs/kindhand-raw.png", + "local_references": [ + "/Users/wusumac/Documents/game/aetherbound_guild/docs/prototype/generation/phase6_motion_proof_03/runs/recruit-aegis/accepted/idle/frames/frame-0.png" + ], + "remote_reference_count": 0, + "prompt_chars": 1517, + "task_id": "task_01KZSNBVA97SWKTEADQ8B16Q8W", + "status": "completed", + "bytes": 1446567, + "cost": 0.0085, + "credits_cost": 0.085 +} diff --git a/docs/prototype/generation/phase7_profession_identity_01/reports/verification.json b/docs/prototype/generation/phase7_profession_identity_01/reports/verification.json new file mode 100644 index 00000000..af5e4a41 --- /dev/null +++ b/docs/prototype/generation/phase7_profession_identity_01/reports/verification.json @@ -0,0 +1,75 @@ +{ + "ok": true, + "count": 4, + "errors": [], + "items": [ + { + "path": "docs/prototype/generation/phase7_profession_identity_01/outputs/farstring-anchor.png", + "ok": true, + "errors": [], + "dimensions": [ + 512, + 512 + ], + "content_bound": [ + 76, + 30, + 436, + 481 + ], + "visible_pixels": 56186, + "green_spill_pixels": 0 + }, + { + "path": "docs/prototype/generation/phase7_profession_identity_01/outputs/hearthguard-anchor.png", + "ok": true, + "errors": [], + "dimensions": [ + 512, + 512 + ], + "content_bound": [ + 99, + 30, + 413, + 481 + ], + "visible_pixels": 67850, + "green_spill_pixels": 0 + }, + { + "path": "docs/prototype/generation/phase7_profession_identity_01/outputs/kindhand-anchor.png", + "ok": true, + "errors": [], + "dimensions": [ + 512, + 512 + ], + "content_bound": [ + 160, + 30, + 351, + 481 + ], + "visible_pixels": 51616, + "green_spill_pixels": 0 + }, + { + "path": "docs/prototype/generation/phase7_profession_identity_01/outputs/wayrunner-anchor.png", + "ok": true, + "errors": [], + "dimensions": [ + 512, + 512 + ], + "content_bound": [ + 113, + 30, + 399, + 481 + ], + "visible_pixels": 44563, + "green_spill_pixels": 0 + } + ] +} diff --git a/docs/prototype/generation/phase7_profession_identity_01/reports/wayrunner-processing.json b/docs/prototype/generation/phase7_profession_identity_01/reports/wayrunner-processing.json new file mode 100644 index 00000000..c8f32a09 --- /dev/null +++ b/docs/prototype/generation/phase7_profession_identity_01/reports/wayrunner-processing.json @@ -0,0 +1,33 @@ +{ + "ok": true, + "source": "docs/prototype/generation/phase7_profession_identity_01/outputs/wayrunner-raw.png", + "source_sha256": "4f5a26700126fc08c453c20e641010dbc5def54e83b8540b666a410a33a2ac9e", + "source_dimensions": [ + 1254, + 1254 + ], + "source_content_bound": [ + 248, + 70, + 956, + 1188 + ], + "output": "docs/prototype/generation/phase7_profession_identity_01/outputs/wayrunner-anchor.png", + "output_sha256": "b1c06349cd91c84d86912579aa1137f634e52abeb983373fdea2a6857fc3f239", + "output_dimensions": [ + 512, + 512 + ], + "output_content_bound": [ + 113, + 30, + 399, + 481 + ], + "removed_visible_green_pixels_after_resize": 90, + "normalization": { + "height_fraction": 0.88, + "width_fraction": 0.84, + "feet_baseline_margin": 31 + } +} diff --git a/docs/prototype/generation/phase7_profession_identity_01/reports/wayrunner.json b/docs/prototype/generation/phase7_profession_identity_01/reports/wayrunner.json new file mode 100644 index 00000000..491fcd24 --- /dev/null +++ b/docs/prototype/generation/phase7_profession_identity_01/reports/wayrunner.json @@ -0,0 +1,17 @@ +{ + "mode": "execute", + "model": "gpt-image-2", + "size": "1:1", + "resolution": "1k", + "output": "/Users/wusumac/Documents/game/aetherbound_guild/docs/prototype/generation/phase7_profession_identity_01/outputs/wayrunner-raw.png", + "local_references": [ + "/Users/wusumac/Documents/game/aetherbound_guild/docs/prototype/generation/phase6_motion_proof_03/runs/recruit-aegis/accepted/idle/frames/frame-0.png" + ], + "remote_reference_count": 0, + "prompt_chars": 1491, + "task_id": "task_01KZSNBVBGRQ14RZHHZQMDQB52", + "status": "completed", + "bytes": 1421312, + "cost": 0.0085, + "credits_cost": 0.085 +} diff --git a/docs/reviews/PHASE7_UI_PRODUCTION_LEDGER.md b/docs/reviews/PHASE7_UI_PRODUCTION_LEDGER.md new file mode 100644 index 00000000..920028e0 --- /dev/null +++ b/docs/reviews/PHASE7_UI_PRODUCTION_LEDGER.md @@ -0,0 +1,10 @@ +# Phase 7 UI Production Ledger + +Append-only record. Evidence levels remain separate. + +| Date | Revision/run | Result | Evidence and boundary | +|---|---|---|---| +| 2026-08-12 | baseline `9a734e9` | OPEN | Owner accepted displayed Phase 6 battle, VFX and equipment direction. Existing HTML contains 50 IDs but seven generic page fallbacks and placeholder actor/item representations remain. Runtime, human comprehension, device and release are open. | +| 2026-08-12 | `phase7_profession_identity_01` | `SOURCE_AND_PROCESSED_VERIFIED` | Three API Mart GPT-Image-2 calls completed without retry for USD `0.0255`; accepted Hearthguard reused. Four `512x512` anchors pass transparent-corner, shared-baseline and zero-green-spill verification. Agent visual review passes for UI-atlas use; motion, runtime and Owner acceptance remain open. | +| 2026-08-12 | `r7-attempt01` | `INVALID_HARNESS` | The first browser harness treated four actor images as one strict locator and terminated before a valid product judgment. No attempt output is reused. | +| 2026-08-12 | `r7-attempt02` | `DEVELOPMENT_PREFLIGHT_PASS` | Current development tree passed 50 dedicated pages, 23 first-play states, zero generic fallbacks, 34 source-mapped visual candidates, desktop/tablet/portrait-phone/landscape-phone layout, offline bundle loading and browser console inspection. This is not immutable candidate evidence; a new fixed-source attempt is required after commit/push. | diff --git a/prototype/site/app.js b/prototype/site/app.js index 27446660..e99bf6a3 100644 --- a/prototype/site/app.js +++ b/prototype/site/app.js @@ -30,7 +30,7 @@ const state = { const copy = { en: { - brandSubtitle: "Final design prototype", + brandSubtitle: "Production UI atlas", navFirst: "First play", navScreens: "Screen atlas", navRegions: "Regions", @@ -38,7 +38,7 @@ const copy = { navReference: "Reference map", navReview: "Review gates", runtimeFrozen: "Runtime development frozen", - conceptBadge: "Concept direction", + conceptBadge: "Production UI", firstplay: "First play", screens: "Screen atlas", regions: "Regions", @@ -50,7 +50,7 @@ const copy = { back: "Back", inspect: "Inspect", compare: "Compare", - concept: "Concept direction - interface authored in HTML", + concept: "Production UI - native text + traceable candidate art", saved: "Saved", company: "Company", capacity: "Line capacity", @@ -68,7 +68,7 @@ const copy = { returnSafe: "Return safely", }, zh_CN: { - brandSubtitle: "最终设计原型", + brandSubtitle: "生产级 UI 图册", navFirst: "首次游玩", navScreens: "页面图谱", navRegions: "八大区域", @@ -76,7 +76,7 @@ const copy = { navReference: "参考映射", navReview: "审核闸门", runtimeFrozen: "运行时开发仍冻结", - conceptBadge: "概念方向", + conceptBadge: "生产级 UI", firstplay: "首次游玩", screens: "页面图谱", regions: "八大区域", @@ -88,7 +88,7 @@ const copy = { back: "返回", inspect: "查看", compare: "比较", - concept: "概念方向 - 界面由 HTML 独立绘制", + concept: "生产级 UI - 原生文字 + 可追踪候选素材", saved: "已保存", company: "队伍", capacity: "出战容量", @@ -510,11 +510,42 @@ const sceneImages = [ "assets/web/ch_ch05.webp", "assets/web/ch_ch06.webp", "assets/web/ch_ch07.webp", "assets/web/ch_ch08.webp", ]; +const actorAssets = { + Hearthguard: "assets/game/actors/hearthguard.png", + Farstring: "assets/game/actors/farstring.png", + Wayrunner: "assets/game/actors/wayrunner.png", + Kindhand: "assets/game/actors/kindhand.png", + Riftblade: "assets/game/actors/riftblade.png", + TempestSeraph: "assets/game/actors/tempest-seraph.png", +}; + +const equipmentAssets = { + "Stepback Soles": "assets/game/equipment/eq_001_stepback_soles@1x.png", + "Frontpin Greaves": "assets/game/equipment/eq_002_frontpin_greaves@1x.png", + "Passing Sash": "assets/game/equipment/eq_003_passing_sash@1x.png", + "Gapfinder Sandals": "assets/game/equipment/eq_004_gapfinder_sandals@1x.png", + "Leadweight Belt": "assets/game/equipment/eq_005_leadweight_belt@1x.png", + "Rearhook Cloak": "assets/game/equipment/eq_006_rearhook_cloak@1x.png", + "Pivot Anklet": "assets/game/equipment/eq_007_pivot_anklet@1x.png", + "Stillroad Wrap": "assets/game/equipment/eq_008_stillroad_wrap@1x.png", + "Rescue Loop": "assets/game/equipment/eq_009_rescue_loop@1x.png", + "Forward Claim": "assets/game/equipment/eq_010_forward_claim@1x.png", + "Neighbor's Buckle": "assets/game/equipment/eq_011_neighbors_buckle@1x.png", + "Open-Line Cord": "assets/game/equipment/eq_012_open_line_cord@1x.png", +}; + +const vfxAssets = { + threat: "assets/game/vfx/threat_imminent@1x.png", + damage: "assets/game/vfx/damage_heavy@1x.png", + protect: "assets/game/vfx/protect_intercept@1x.png", + tempest: "assets/game/vfx/tempest_phase_imminent@1x.png", +}; + const generatedOffers = [ - { id: "OFF-01", name: "Elian Rook", profession: "Hearthguard", trait: "Narrow Guard", read: "Intercepts a neighbor / slower steps", mark: "HG" }, - { id: "OFF-02", name: "Nia Orrow", profession: "Farstring", trait: "Patient Start", read: "Rear pressure / delayed first basic", mark: "FS" }, - { id: "OFF-03", name: "Tomas Vale", profession: "Wayrunner", trait: "Open Stance", read: "Reorders safely / briefly Exposed", mark: "WR" }, - { id: "OFF-04", name: "Sable Kest", profession: "Kindhand", trait: "Shared Cup", read: "Restores a neighbor / weaker self-heal", mark: "KH" }, + { id: "OFF-01", name: "Elian Rook", profession: "Hearthguard", trait: "Narrow Guard", read: "Intercepts a neighbor / slower steps", mark: "HG", art: actorAssets.Hearthguard }, + { id: "OFF-02", name: "Nia Orrow", profession: "Farstring", trait: "Patient Start", read: "Rear pressure / delayed first basic", mark: "FS", art: actorAssets.Farstring }, + { id: "OFF-03", name: "Tomas Vale", profession: "Wayrunner", trait: "Open Stance", read: "Reorders safely / briefly Exposed", mark: "WR", art: actorAssets.Wayrunner }, + { id: "OFF-04", name: "Sable Kest", profession: "Kindhand", trait: "Shared Cup", read: "Restores a neighbor / weaker self-heal", mark: "KH", art: actorAssets.Kindhand }, ]; const stageDetails = { @@ -638,6 +669,20 @@ function stageArt(index = 0) { return ``; } +function actorImage(offer, className = "actor-art") { + const art = offer.art || actorAssets[offer.profession] || actorAssets.Hearthguard; + return `${escapeHtml(localizedText(offer.profession))}`; +} + +function equipmentImage(name, className = "equipment-art") { + const art = equipmentAssets[name] || equipmentAssets["Stepback Soles"]; + return `${escapeHtml(localizedText(name))}`; +} + +function effectImage(kind, className = "battle-vfx") { + return ``; +} + function conceptLabel() { return `${escapeHtml(t("concept"))}`; } @@ -701,12 +746,12 @@ function renderOpening(screen, variant = "offers2") { } function recruitMarker(offer, selected = false) { - return `
${offer.mark}
${offer.id}${localizedText(offer.name)}${localizedText(offer.profession)}
`; + return `
${actorImage(offer, "recruit-marker-art")}
${offer.id}${localizedText(offer.name)}${localizedText(offer.profession)}
`; } function recruitOffer(offer, selected) { return `
-
${offer.mark}${offer.id}
+
${actorImage(offer, "offer-character")}${offer.mark}${offer.id}
${localizedText(offer.name)}${localizedText(offer.profession)}

${localizedText(offer.trait)} - ${localizedText(offer.read)}

${t("noCoin")}${iconButton("i", `${t("inspect")} ${offer.name}`)}
`; @@ -735,7 +780,7 @@ function renderMarket(screen, variant) { return frame(screen, body, { variant }); } if (isItem) { - const body = `
⇣EQ-001
ITEM OFFER

Stepback Soles

After the first direct hit, step one position rearward if legal.

Target exposureFront → Center
Next basicWait +1 tick
${actionDock("Buy - 32 Coin", t("inspect"))}
`; + const body = `
${equipmentImage("Stepback Soles", "item-offer-art")}EQ-001
ITEM OFFER

Stepback Soles

After the first direct hit, step one position rearward if legal.

Target exposureFront → Center
Next basicWait +1 tick
${actionDock("Buy - 32 Coin", t("inspect"))}
`; return frame(screen, body, { variant }); } const offers = [generatedOffers[0], generatedOffers[2], generatedOffers[3]]; @@ -744,10 +789,10 @@ function renderMarket(screen, variant) { const body = `
${bi("INTEGRATED MARKET", "一体化集市")}

${bi("Company, offers and inventory stay visible", "队伍、报价与库存保持同屏")}

${t("company")}${count}/${t("capacity")}4
-
${bi("COMPANY BENCH", "队伍席位")}${bi("Tap Recruit to inspect or reorder", "点击队员查看或调整顺序")}
${company.map((offer, index) => ``).join("")}${Array.from({ length: 4 - count }, (_, index) => ``).join("")}
+
${bi("COMPANY BENCH", "队伍席位")}${bi("Tap Recruit to inspect or reorder", "点击队员查看或调整顺序")}
${company.map((offer, index) => ``).join("")}${Array.from({ length: 4 - count }, (_, index) => ``).join("")}
-
${offers.map((offer, index) => ``).join("")}
-
${bi("RUN INVENTORY", "本轮库存")}4 / 12 · ${bi("Tap item to compare", "点击物品进行比较")}
${Array.from({ length: 12 }, (_, index) => { const item = inventory[index]; return ``; }).join("")}
+
${offers.map((offer, index) => ``).join("")}
+
${bi("RUN INVENTORY", "本轮库存")}4 / 12 · ${bi("Tap item to compare", "点击物品进行比较")}
${Array.from({ length: 12 }, (_, index) => { const item = inventory[index]; const inventoryNames = ["Stepback Soles", "Frontpin Greaves", "Rescue Loop", "Open-Line Cord"]; return ``; }).join("")}
`; @@ -756,18 +801,19 @@ function renderMarket(screen, variant) { function partyActors() { const original = [ - ["3", "Nia", "FS", "Rear"], ["2", "Sable", "KH", "Protected"], ["1", "Tomas", "WR", "Center"], ["0", "Elian", "HG", "Exposed"], + ["3", "Nia", generatedOffers[1], "Rear"], ["2", "Sable", generatedOffers[3], "Protected"], ["1", "Tomas", generatedOffers[2], "Center"], ["0", "Elian", generatedOffers[0], "Exposed"], ]; const swapped = [original[0], original[2], original[1], original[3]]; - return (state.partySwapped ? swapped : original).map(([position, name, mark, status], index) => ``).join(""); + return (state.partySwapped ? swapped : original).map(([position, name, offer, status], index) => ``).join(""); } function renderPreparation(screen, variant) { if (screen.id.startsWith("EQP")) { const comparison = screen.id === "EQP-002"; + const equipmentRows = [["Stepback Soles", "EQ-001"], ["Frontpin Greaves", "EQ-002"], ["Rescue Loop", "EQ-009"], ["Open-Line Cord", "EQ-012"]]; const body = `
-
ELIGIBLE INVENTORY${["Stepback Soles", "Frontpin Greaves", "Rescue Loop", "Open-Line Cord"].map((name, index) => ``).join("")}
-
FSNia OrrowFarstring · position 3
Current: Quiet Rearplate
+
ELIGIBLE INVENTORY${equipmentRows.map(([name, id], index) => ``).join("")}
+
${actorImage(generatedOffers[1], "equipment-wearer-art")}Nia OrrowFarstring · position 3
Current: Quiet Rearplate
BEHAVIOR DELTA

${comparison ? "Quiet Rearplate → Stepback Soles" : "Stepback Soles"}

After first hitStep rear
Target relationFront → Center
Next basicWait +1

At full rear the trigger is dormant. Apply remains reversible until readiness commit.

`; return frame(screen, body, { variant }); @@ -795,7 +841,8 @@ function renderRisk(screen, variant) { } function battleLine() { - return `
${t("protected")}${partyActors()}${t("exposed")}
Pane Bite · 0.8s → Elian
OXPrism screenPNGuard chipGFRear shot
`; + const enemies = Array.from({ length: 4 }, (_, index) => `Riftblade${index === 3 ? "Prism screen" : index % 2 ? "Guard chip" : "Rear step"}`).join(""); + return `
${t("protected")}${partyActors()}${t("exposed")}
Pane Bite · 0.8s → Elian${effectImage("threat")}
${enemies}Tempest Seraph${effectImage("tempest", "boss-vfx")}Phase 1
`; } function renderBattle(screen, variant) { @@ -828,21 +875,25 @@ function renderOutcome(screen, variant) { return frame(screen, body, { variant }); } if (screen.id === "OUT-002") { - const body = `
FSFALLEN
COMMITTED LOSS

Nia Orrow

Farstring · Patient Start · Level 3 · survived 4 battles

EquipmentReturned to inventory
Party gapRear pressure lost
Replacement Credit+1 tier
Death is permanent for this run. No relationship or personal-arc system is implied.
${actionDock("Acknowledge loss", "Inspect receipt", "data-flow-next")}
`; + const body = `
${actorImage(generatedOffers[1], "fallen-actor-art")}FALLEN
COMMITTED LOSS

Nia Orrow

Farstring · Patient Start · Level 3 · survived 4 battles

EquipmentReturned to inventory
Party gapRear pressure lost
Replacement Credit+1 tier
Death is permanent for this run. No relationship or personal-arc system is implied.
${actionDock("Acknowledge loss", "Inspect receipt", "data-flow-next")}
`; return frame(screen, body, { variant }); } if (screen.id === "OUT-003") { const rewards = [["EQ-014", "Quiet Rearplate", "Converts first area hit to direct"], ["AR-011", "Narrow Vanguard", "One fewer deploy; front starts Guarded"], ["PF-B05", "Farstring insight", "Opens a profession trial"]]; - const body = `
FIXED REWARD DRAFT

Choose the next decision you want to change

${rewards.map((reward, index) => ``).join("")}
${actionDock("Claim Quiet Rearplate", "Compare build", "data-flow-next")}
`; + const rewardArt = [equipmentImage("Stillroad Wrap", "reward-item-art"), effectImage("protect", "reward-item-art"), actorImage(generatedOffers[1], "reward-actor-art")]; + const body = `
FIXED REWARD DRAFT

Choose the next decision you want to change

${rewards.map((reward, index) => ``).join("")}
${actionDock("Claim Quiet Rearplate", "Compare build", "data-flow-next")}
`; return frame(screen, body, { variant }); } if (screen.id === "OUT-004") { const body = `
RECOVERY

Company remains viable

Replacement Credit reduces only a later hire. Lost level, Trait, profession and history stay lost.

${actionDock("Commit protected hire", "Review consequences", "data-flow-next")}
`; return frame(screen, body, { variant }); } - const rows = stageDetails[screen.id] || ["Outcome receipt verified", "No unresolved casualty", "Safe destination named"]; - const body = `
${screen.id}

${escapeHtml(screenName(screen))}

${rows.map((row) => `
${escapeHtml(row)}
`).join("")}

${truncate(screen.purpose, 180)}

${actionDock(screen.id === "OUT-006" ? "Hold to abandon run" : "Finish result", "Cancel")}
`; - return frame(screen, body, { variant }); + if (screen.id === "OUT-005") { + const body = `
${bi("RUN CLOSED", "远征已结束")}
${bi("COMPANY COLLAPSE · CONTRACT 05", "队伍覆灭 · 契约05")}

${bi("The route ends; the Guild keeps what was learned", "本次路线结束,公会保留已获得的知识")}

${generatedOffers.map((offer) => `${actorImage(offer, "run-end-actor")}${localizedText(offer.profession)}`).join("")}
${bi("RETAINED", "永久保留")}${bi("Renown", "声望")} +4${bi("Discoveries", "发现")} +7${bi("Records", "历史记录")} +1
${bi("CLEARED", "本轮清除")}${bi("Coin", "金币")} 86 → 0${bi("Credit", "补员凭证")} 1 → 0${bi("Living Company", "存活队伍")} 0
${actionDock(bi("Open Guild Charter", "打开公会宪章"), bi("Return to Title", "返回标题"))}
`; + return frame(screen, body, { variant, resources: false }); + } + const body = `
${bi("RUN ABANDONMENT REVIEW", "放弃远征审核")}

${bi("End this expedition?", "确定结束本轮远征?")}

${bi("This is a run-close transaction, not a retreat. It cannot be undone after the receipt is committed.", "这是结束本轮远征的事务,不是撤退;回执提交后无法撤销。")}

${bi("Cleared", "清除")}${bi("Coin 214 · Credit 1 · current Company", "金币214 · 补员凭证1 · 当前队伍")}${bi("Retained", "保留")}${bi("Records · discoveries · committed Guild breadth", "历史记录 · 发现 · 已提交的公会广度")}${bi("Not granted", "不会获得")}${bi("Battle reward · casualty Credit · completion bonus", "战斗奖励 · 伤亡补员凭证 · 完成奖励")}
`; + return frame(screen, body, { variant, resources: false }); } function renderRoster(screen, variant) { @@ -851,7 +902,8 @@ function renderRoster(screen, variant) { return frame(screen, body, { variant }); } const roster = generatedOffers.concat([{ id: "RC-017", name: "Miro Sen", profession: "Coilsmith", trait: "Deep Pocket", mark: "CS" }]); - const body = `
LIVING COMPANY · 5${roster.map((offer, index) => ``).join("")}
`; + const focusedOffer = screen.id === "REC-002" ? generatedOffers[1] : generatedOffers[3]; + const body = `
LIVING COMPANY · 5${roster.map((offer, index) => ``).join("")}
`; return frame(screen, body, { variant }); } @@ -919,9 +971,20 @@ function renderSystem(screen, variant) { return frame(screen, body, { variant, art: false, header: false }); } if (screen.id === "SYS-002") return renderSettings(screen, variant, "FIRST-LAUNCH SETUP"); - const details = stageDetails[screen.id] || [screen.purpose, screen.action]; - const body = `
${screen.id}

${escapeHtml(screenName(screen))}

${details.map((detail, index) => ``).join("")}
`; - return frame(screen, body, { variant, resources: false }); + if (screen.id === "SYS-004") { + const body = `
RUN LEDGER

${bi("Choose a verified expedition", "选择一个已校验的远征")}

`; + return frame(screen, body, { variant, resources: false }); + } + if (screen.id === "SYS-006") { + const body = `
${bi("RESUME REVIEW", "继续前审核")}

${bi("You stopped after equipment returned", "你在装备退回后离开")}

${bi("No battle event or purchase is pending.", "没有待处理的战斗事件或购买操作。")}

✓ ${bi("Battle finalized", "战斗已结算")}✓ ${bi("Equipment returned", "装备已退回")}03 ${bi("Choose recovery", "选择恢复方案")}
${partyActors()}
`; + return frame(screen, body, { variant, resources: false }); + } + if (screen.id === "SYS-007") { + const body = `
${bi("SAVE RECOVERY", "存档恢复")}

${bi("Compare verified lineage", "比较已校验的存档谱系")}

${bi("Recovery never overwrites the last healthy source before a receipt exists.", "生成恢复回执前,不会覆盖最后一个健康来源。")}

`; + return frame(screen, body, { variant, resources: false }); + } + const body = `
${bi("CREDITS · LICENSES · DATA", "制作名单 · 许可 · 数据")}

${bi("What belongs to the game and what leaves the device", "游戏包含什么,以及哪些数据会离开设备")}

01${bi("Original game design", "原创游戏设计")}

${bi("Systems, names, rules and presentation are authored for Aetherbound Guild.", "系统、名称、规则与呈现均为 Aetherbound Guild 独立创作。")}

02${bi("Offline core play", "核心玩法离线可用")}

${bi("Runs, settings and Records remain local unless a future platform feature states otherwise.", "远征、设置和记录保留在本地,除非未来平台功能另有说明。")}

03${bi("Traceable production media", "可追踪的制作素材")}

${bi("Generated candidates retain provider task, prompt, cost and processing provenance.", "生成候选保留供应商任务、提示词、费用和处理记录。")}

`; + return frame(screen, body, { variant, resources: false, art: false }); } function renderArtifact(screen, variant) { @@ -935,8 +998,13 @@ function renderProgress(screen, variant) { if (screen.id === "PST-001") return renderChronicleDecision(screen, variant); if (screen.id === "PST-002") return renderOathSeason(screen, variant); if (screen.id === "PST-003") return renderOathResult(screen, variant); + if (screen.id === "PRO-001") { + const body = `
${bi("RUN GROWTH · ONE DECISION PENDING", "本轮成长 · 一项决策待定")}

${bi("Elian can change how the front is held", "Elian 可以改变前排的承伤方式")}

${bi("Promotion preserves level, Trait, equipment and current HP percentage.", "晋升会保留等级、特性、装备与当前生命比例。")}

LV 6
${actorImage(generatedOffers[0], "growth-actor-art")}PF-B01${bi("Hearthguard", "护心卫士")}

${bi("Intercept adjacent direct pressure", "拦截相邻队员承受的直接压力")}

`; + return frame(screen, body, { variant, art: false }); + } if (screen.id === "PRO-003") { - const body = `
COMPENDIUM
${state.data.professions.slice(0, 6).map((entry, index) => ``).join("")}
`; + const professionPreviews = [generatedOffers[0], generatedOffers[1], generatedOffers[2], generatedOffers[3], generatedOffers[0], generatedOffers[1]]; + const body = `
COMPENDIUM
${state.data.professions.slice(0, 6).map((entry, index) => ``).join("")}
`; return frame(screen, body, { variant, art: false }); } const rows = stageDetails[screen.id] || ["Decision grammar unlocked", "Prerequisite verified", "Receipt available"]; diff --git a/prototype/site/assets/game/actors/farstring.png b/prototype/site/assets/game/actors/farstring.png new file mode 100644 index 00000000..46a36ed8 Binary files /dev/null and b/prototype/site/assets/game/actors/farstring.png differ diff --git a/prototype/site/assets/game/actors/hearthguard.png b/prototype/site/assets/game/actors/hearthguard.png new file mode 100644 index 00000000..d17656b5 Binary files /dev/null and b/prototype/site/assets/game/actors/hearthguard.png differ diff --git a/prototype/site/assets/game/actors/kindhand.png b/prototype/site/assets/game/actors/kindhand.png new file mode 100644 index 00000000..01c890c6 Binary files /dev/null and b/prototype/site/assets/game/actors/kindhand.png differ diff --git a/prototype/site/assets/game/actors/riftblade.png b/prototype/site/assets/game/actors/riftblade.png new file mode 100644 index 00000000..c3d0c783 Binary files /dev/null and b/prototype/site/assets/game/actors/riftblade.png differ diff --git a/prototype/site/assets/game/actors/tempest-seraph.png b/prototype/site/assets/game/actors/tempest-seraph.png new file mode 100644 index 00000000..6594bb0a Binary files /dev/null and b/prototype/site/assets/game/actors/tempest-seraph.png differ diff --git a/prototype/site/assets/game/actors/wayrunner.png b/prototype/site/assets/game/actors/wayrunner.png new file mode 100644 index 00000000..91f8b666 Binary files /dev/null and b/prototype/site/assets/game/actors/wayrunner.png differ diff --git a/prototype/site/assets/game/asset-provenance.json b/prototype/site/assets/game/asset-provenance.json new file mode 100644 index 00000000..1fdb8124 --- /dev/null +++ b/prototype/site/assets/game/asset-provenance.json @@ -0,0 +1,74 @@ +{ + "schema_version": 1, + "evidence_state": "design_prototype_candidate_only", + "actors": [ + { + "target": "actors/farstring.png", + "source": "docs/prototype/generation/phase7_profession_identity_01/outputs/farstring-anchor.png" + }, + { + "target": "actors/hearthguard.png", + "source": "docs/prototype/generation/phase7_profession_identity_01/outputs/hearthguard-anchor.png" + }, + { + "target": "actors/kindhand.png", + "source": "docs/prototype/generation/phase7_profession_identity_01/outputs/kindhand-anchor.png" + }, + { + "target": "actors/wayrunner.png", + "source": "docs/prototype/generation/phase7_profession_identity_01/outputs/wayrunner-anchor.png" + }, + { + "target": "actors/riftblade.png", + "source": "docs/prototype/generation/phase6_motion_proof_03/runs/enemy-riftblade/anchors/idle.png" + }, + { + "target": "actors/tempest-seraph.png", + "source": "docs/prototype/generation/phase6_motion_proof_03/runs/boss-tempest-seraph/anchors/idle.png" + } + ], + "families": [ + { + "name": "equipment", + "target_root": "equipment", + "source_root": "docs/prototype/generation/phase6_equipment_assets_06r/assets", + "files": [ + "eq_001_stepback_soles@1x.png", + "eq_002_frontpin_greaves@1x.png", + "eq_003_passing_sash@1x.png", + "eq_004_gapfinder_sandals@1x.png", + "eq_005_leadweight_belt@1x.png", + "eq_006_rearhook_cloak@1x.png", + "eq_007_pivot_anklet@1x.png", + "eq_008_stillroad_wrap@1x.png", + "eq_009_rescue_loop@1x.png", + "eq_010_forward_claim@1x.png", + "eq_011_neighbors_buckle@1x.png", + "eq_012_open_line_cord@1x.png" + ] + }, + { + "name": "vfx", + "target_root": "vfx", + "source_root": "docs/prototype/generation/phase6_vfx_language_05/assets", + "files": [ + "damage_critical@1x.png", + "damage_heavy@1x.png", + "damage_light@1x.png", + "damage_repeated@1x.png", + "protect_absorb@1x.png", + "protect_break@1x.png", + "protect_gain@1x.png", + "protect_intercept@1x.png", + "tempest_phase_forecast@1x.png", + "tempest_phase_imminent@1x.png", + "tempest_phase_reduced_final@1x.png", + "tempest_phase_resolve@1x.png", + "threat_cancel@1x.png", + "threat_forecast@1x.png", + "threat_imminent@1x.png", + "threat_resolve@1x.png" + ] + } + ] +} diff --git a/prototype/site/assets/game/equipment/eq_001_stepback_soles@1x.png b/prototype/site/assets/game/equipment/eq_001_stepback_soles@1x.png new file mode 100644 index 00000000..2dd08e16 Binary files /dev/null and b/prototype/site/assets/game/equipment/eq_001_stepback_soles@1x.png differ diff --git a/prototype/site/assets/game/equipment/eq_002_frontpin_greaves@1x.png b/prototype/site/assets/game/equipment/eq_002_frontpin_greaves@1x.png new file mode 100644 index 00000000..50294066 Binary files /dev/null and b/prototype/site/assets/game/equipment/eq_002_frontpin_greaves@1x.png differ diff --git a/prototype/site/assets/game/equipment/eq_003_passing_sash@1x.png b/prototype/site/assets/game/equipment/eq_003_passing_sash@1x.png new file mode 100644 index 00000000..6c0c970d Binary files /dev/null and b/prototype/site/assets/game/equipment/eq_003_passing_sash@1x.png differ diff --git a/prototype/site/assets/game/equipment/eq_004_gapfinder_sandals@1x.png b/prototype/site/assets/game/equipment/eq_004_gapfinder_sandals@1x.png new file mode 100644 index 00000000..f9a772aa Binary files /dev/null and b/prototype/site/assets/game/equipment/eq_004_gapfinder_sandals@1x.png differ diff --git a/prototype/site/assets/game/equipment/eq_005_leadweight_belt@1x.png b/prototype/site/assets/game/equipment/eq_005_leadweight_belt@1x.png new file mode 100644 index 00000000..6cc94f51 Binary files /dev/null and b/prototype/site/assets/game/equipment/eq_005_leadweight_belt@1x.png differ diff --git a/prototype/site/assets/game/equipment/eq_006_rearhook_cloak@1x.png b/prototype/site/assets/game/equipment/eq_006_rearhook_cloak@1x.png new file mode 100644 index 00000000..6a79695a Binary files /dev/null and b/prototype/site/assets/game/equipment/eq_006_rearhook_cloak@1x.png differ diff --git a/prototype/site/assets/game/equipment/eq_007_pivot_anklet@1x.png b/prototype/site/assets/game/equipment/eq_007_pivot_anklet@1x.png new file mode 100644 index 00000000..f31471aa Binary files /dev/null and b/prototype/site/assets/game/equipment/eq_007_pivot_anklet@1x.png differ diff --git a/prototype/site/assets/game/equipment/eq_008_stillroad_wrap@1x.png b/prototype/site/assets/game/equipment/eq_008_stillroad_wrap@1x.png new file mode 100644 index 00000000..76c94df6 Binary files /dev/null and b/prototype/site/assets/game/equipment/eq_008_stillroad_wrap@1x.png differ diff --git a/prototype/site/assets/game/equipment/eq_009_rescue_loop@1x.png b/prototype/site/assets/game/equipment/eq_009_rescue_loop@1x.png new file mode 100644 index 00000000..9b2ed155 Binary files /dev/null and b/prototype/site/assets/game/equipment/eq_009_rescue_loop@1x.png differ diff --git a/prototype/site/assets/game/equipment/eq_010_forward_claim@1x.png b/prototype/site/assets/game/equipment/eq_010_forward_claim@1x.png new file mode 100644 index 00000000..6b00837b Binary files /dev/null and b/prototype/site/assets/game/equipment/eq_010_forward_claim@1x.png differ diff --git a/prototype/site/assets/game/equipment/eq_011_neighbors_buckle@1x.png b/prototype/site/assets/game/equipment/eq_011_neighbors_buckle@1x.png new file mode 100644 index 00000000..6587c8b8 Binary files /dev/null and b/prototype/site/assets/game/equipment/eq_011_neighbors_buckle@1x.png differ diff --git a/prototype/site/assets/game/equipment/eq_012_open_line_cord@1x.png b/prototype/site/assets/game/equipment/eq_012_open_line_cord@1x.png new file mode 100644 index 00000000..6190f2eb Binary files /dev/null and b/prototype/site/assets/game/equipment/eq_012_open_line_cord@1x.png differ diff --git a/prototype/site/assets/game/vfx/damage_critical@1x.png b/prototype/site/assets/game/vfx/damage_critical@1x.png new file mode 100644 index 00000000..d506d1e2 Binary files /dev/null and b/prototype/site/assets/game/vfx/damage_critical@1x.png differ diff --git a/prototype/site/assets/game/vfx/damage_heavy@1x.png b/prototype/site/assets/game/vfx/damage_heavy@1x.png new file mode 100644 index 00000000..49dcb5c5 Binary files /dev/null and b/prototype/site/assets/game/vfx/damage_heavy@1x.png differ diff --git a/prototype/site/assets/game/vfx/damage_light@1x.png b/prototype/site/assets/game/vfx/damage_light@1x.png new file mode 100644 index 00000000..636e574d Binary files /dev/null and b/prototype/site/assets/game/vfx/damage_light@1x.png differ diff --git a/prototype/site/assets/game/vfx/damage_repeated@1x.png b/prototype/site/assets/game/vfx/damage_repeated@1x.png new file mode 100644 index 00000000..d24bd668 Binary files /dev/null and b/prototype/site/assets/game/vfx/damage_repeated@1x.png differ diff --git a/prototype/site/assets/game/vfx/protect_absorb@1x.png b/prototype/site/assets/game/vfx/protect_absorb@1x.png new file mode 100644 index 00000000..7f63951a Binary files /dev/null and b/prototype/site/assets/game/vfx/protect_absorb@1x.png differ diff --git a/prototype/site/assets/game/vfx/protect_break@1x.png b/prototype/site/assets/game/vfx/protect_break@1x.png new file mode 100644 index 00000000..f272f97a Binary files /dev/null and b/prototype/site/assets/game/vfx/protect_break@1x.png differ diff --git a/prototype/site/assets/game/vfx/protect_gain@1x.png b/prototype/site/assets/game/vfx/protect_gain@1x.png new file mode 100644 index 00000000..5aeece75 Binary files /dev/null and b/prototype/site/assets/game/vfx/protect_gain@1x.png differ diff --git a/prototype/site/assets/game/vfx/protect_intercept@1x.png b/prototype/site/assets/game/vfx/protect_intercept@1x.png new file mode 100644 index 00000000..723eaa94 Binary files /dev/null and b/prototype/site/assets/game/vfx/protect_intercept@1x.png differ diff --git a/prototype/site/assets/game/vfx/tempest_phase_forecast@1x.png b/prototype/site/assets/game/vfx/tempest_phase_forecast@1x.png new file mode 100644 index 00000000..ff7629fe Binary files /dev/null and b/prototype/site/assets/game/vfx/tempest_phase_forecast@1x.png differ diff --git a/prototype/site/assets/game/vfx/tempest_phase_imminent@1x.png b/prototype/site/assets/game/vfx/tempest_phase_imminent@1x.png new file mode 100644 index 00000000..14268481 Binary files /dev/null and b/prototype/site/assets/game/vfx/tempest_phase_imminent@1x.png differ diff --git a/prototype/site/assets/game/vfx/tempest_phase_reduced_final@1x.png b/prototype/site/assets/game/vfx/tempest_phase_reduced_final@1x.png new file mode 100644 index 00000000..39ee04ec Binary files /dev/null and b/prototype/site/assets/game/vfx/tempest_phase_reduced_final@1x.png differ diff --git a/prototype/site/assets/game/vfx/tempest_phase_resolve@1x.png b/prototype/site/assets/game/vfx/tempest_phase_resolve@1x.png new file mode 100644 index 00000000..5cf9872f Binary files /dev/null and b/prototype/site/assets/game/vfx/tempest_phase_resolve@1x.png differ diff --git a/prototype/site/assets/game/vfx/threat_cancel@1x.png b/prototype/site/assets/game/vfx/threat_cancel@1x.png new file mode 100644 index 00000000..8d894375 Binary files /dev/null and b/prototype/site/assets/game/vfx/threat_cancel@1x.png differ diff --git a/prototype/site/assets/game/vfx/threat_forecast@1x.png b/prototype/site/assets/game/vfx/threat_forecast@1x.png new file mode 100644 index 00000000..403e0955 Binary files /dev/null and b/prototype/site/assets/game/vfx/threat_forecast@1x.png differ diff --git a/prototype/site/assets/game/vfx/threat_imminent@1x.png b/prototype/site/assets/game/vfx/threat_imminent@1x.png new file mode 100644 index 00000000..31f4e1b3 Binary files /dev/null and b/prototype/site/assets/game/vfx/threat_imminent@1x.png differ diff --git a/prototype/site/assets/game/vfx/threat_resolve@1x.png b/prototype/site/assets/game/vfx/threat_resolve@1x.png new file mode 100644 index 00000000..8d582596 Binary files /dev/null and b/prototype/site/assets/game/vfx/threat_resolve@1x.png differ diff --git a/prototype/site/data/catalog.json b/prototype/site/data/catalog.json index bb15a823..224c0dcc 100644 --- a/prototype/site/data/catalog.json +++ b/prototype/site/data/catalog.json @@ -1,7 +1,7 @@ { - "version": 2, - "status": "design-prototype-current-authority", - "authorityRevision": "guild-charter-integration-r4", + "version": 3, + "status": "production-ui-atlas-candidate", + "authorityRevision": "phase7-ui-production-atlas", "counts": { "screens": 50, "professions": 42, diff --git a/prototype/site/index.html b/prototype/site/index.html index 2702a403..cb95bb30 100644 --- a/prototype/site/index.html +++ b/prototype/site/index.html @@ -4,9 +4,9 @@ - Aetherbound Guild - Final Landscape Prototype + Aetherbound Guild - Production UI Atlas - + @@ -30,7 +30,7 @@ @@ -67,6 +67,6 @@
- + diff --git a/prototype/site/styles.css b/prototype/site/styles.css index d3edfe42..06fdf7c3 100644 --- a/prototype/site/styles.css +++ b/prototype/site/styles.css @@ -74,7 +74,7 @@ img { display: block; max-width: 100%; } .mobile-only { display: none; } main { min-width: 0; padding: 24px; } -.view { width: min(100%, 1500px); margin: 0 auto; } +.view { width: min(100%, 1840px); margin: 0 auto; } .view-heading { min-height: 78px; display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 18px; } .view-heading h1 { margin: 4px 0 5px; font-size: 28px; line-height: 1.18; } .view-heading p { max-width: 760px; margin: 0; color: var(--ink-700); font-size: 13px; line-height: 1.5; } @@ -83,7 +83,7 @@ main { min-width: 0; padding: 24px; } .heading-badges span { padding: 6px 8px; color: var(--ink-700); font-size: 10px; font-weight: 800; background: var(--white); border: 1px solid var(--line); border-radius: 3px; } .loading-state, .empty-state { padding: 48px; text-align: center; background: var(--white); border: 1px solid var(--line); } -.stage-wrap { width: min(100%, 1240px); margin: 0 auto; background: #0c1519; box-shadow: var(--shadow); } +.stage-wrap { width: min(100%, 1600px); margin: 0 auto; background: #0c1519; box-shadow: var(--shadow); } .game-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; color: var(--mist-050); background: #23353b; container-name: stage; container-type: inline-size; isolation: isolate; } .stage-art { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; } .stage-wash { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(9,20,24,.84) 0%, rgba(18,34,38,.42) 46%, rgba(8,16,20,.76) 100%); } @@ -112,8 +112,9 @@ main { min-width: 0; padding: 24px; } .offer-grid { height: 58%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; } .recruit-offer { min-width: 0; display: grid; grid-template-rows: minmax(0, .9fr) auto auto; color: var(--ink-950); background: rgba(243,246,242,.94); border: 2px solid transparent; border-radius: 5px; overflow: hidden; } .recruit-offer.is-selected { border-color: var(--work-gold); box-shadow: inset 0 0 0 2px var(--ink-950); } -.offer-figure { min-height: 0; display: grid; place-items: center; position: relative; background: linear-gradient(150deg, #cfe5df, #7eb5b2); } -.offer-figure > span { width: 48px; height: 60px; display: grid; place-items: center; color: var(--white); font-size: 14px; font-weight: 900; background: var(--ink-840); border: 4px solid #60757a; border-radius: 45% 45% 18% 18%; } +.offer-figure { min-height: 0; display: grid; place-items: end center; position: relative; background: linear-gradient(160deg, #eff4ee, #b8d4d0); overflow: hidden; } +.offer-character { width: 88%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 5px 5px rgba(12,25,29,.26)); } +.offer-figure > .offer-role-mark { position: absolute; right: 6px; top: 6px; width: 27px; height: 27px; display: grid; place-items: center; color: var(--white); font-size: 8px; font-weight: 900; background: var(--ink-840); border: 2px solid var(--work-gold); border-radius: 50%; } .offer-figure small { position: absolute; left: 6px; bottom: 4px; font-size: 8px; font-weight: 900; } .offer-copy { min-width: 0; padding: 5px 7px; } .offer-copy strong { display: block; overflow-wrap: anywhere; font-size: 11px; } @@ -142,7 +143,8 @@ main { min-width: 0; padding: 24px; } .chosen-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0; } .recruit-marker { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 6px; color: var(--ink-950); background: var(--mist-120); border: 1px solid var(--line); border-radius: 4px; } .recruit-marker.is-selected { border-color: var(--work-gold); } -.recruit-silhouette, .large-figure { width: 38px; height: 45px; display: grid; flex: 0 0 auto; place-items: center; color: var(--white); font-size: 10px; font-weight: 900; background: var(--ink-840); border: 3px solid var(--route-teal); border-radius: 45% 45% 18% 18%; } +.recruit-silhouette, .large-figure { width: 38px; height: 45px; display: grid; flex: 0 0 auto; place-items: center; color: var(--white); font-size: 10px; font-weight: 900; background: #dce8e4; border: 2px solid var(--route-teal); border-radius: 3px; overflow: hidden; } +.recruit-marker-art, .recruit-detail-art, .equipment-wearer-art, .record-inspect-art { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; } .recruit-marker small, .recruit-marker strong, .recruit-marker em { display: block; } .recruit-marker small { font-size: 7px; } .recruit-marker strong { font-size: 10px; } @@ -175,7 +177,7 @@ main { min-width: 0; padding: 24px; } .market-list { min-height: 0; display: grid; gap: 3px; padding: 7px; background: rgba(232,238,235,.94); } .market-row { min-height: 0; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 7px; padding: 5px 7px; color: var(--ink-950); text-align: left; background: var(--white); border: 1px solid var(--line); border-left: 4px solid transparent; } .market-row.is-focused { border-left-color: var(--work-gold); box-shadow: inset 0 0 0 1px var(--ink-950); } -.row-avatar { width: 31px; height: 35px; display: grid; place-items: center; color: var(--white); font-size: 9px; font-weight: 900; background: var(--ink-840); border-radius: 40% 40% 15% 15%; } +.row-avatar { width: 31px; height: 35px; display: grid; place-items: center; color: var(--white); font-size: 9px; font-weight: 900; background: #dce8e4; border-radius: 3px; overflow: hidden; } .market-row small, .market-row strong, .market-row em { display: block; } .market-row small { color: var(--route-teal); font-size: 7px; } .market-row strong { font-size: 9px; } @@ -199,6 +201,7 @@ main { min-width: 0; padding: 24px; } .market-company-bench > div { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; } .bench-recruit { min-width: 0; display: grid; grid-template-columns: 26px 1fr; grid-template-rows: 1fr 1fr; gap: 0 5px; align-items: center; padding: 3px 5px; color: var(--ink-950); text-align: left; background: var(--white); border: 1px solid var(--line); border-bottom: 3px solid var(--route-teal); } .bench-recruit > span { grid-row: 1 / 3; width: 25px; height: 29px; display: grid; place-items: center; color: var(--white); font-size: 7px; background: var(--ink-840); } +.bench-actor-art, .market-offer-art { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; } .bench-recruit strong, .bench-recruit small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bench-recruit strong { font-size: 7px; } .bench-recruit small { color: var(--ink-700); font-size: 5px; } @@ -210,7 +213,7 @@ main { min-width: 0; padding: 24px; } .market-offer-cards { min-height: 0; grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } .market-offer-card { min-width: 0; display: grid; grid-template-columns: minmax(82px, .58fr) 1fr auto; gap: 8px; align-items: stretch; padding: 7px; color: var(--ink-950); text-align: left; background: rgba(255,255,255,.96); border: 2px solid var(--line); border-bottom: 5px solid var(--neutral-silver); } .market-offer-card.is-focused { border-color: var(--work-gold); border-bottom-color: var(--work-gold); } -.market-offer-card .row-avatar { width: 100%; height: 100%; min-height: 86px; color: transparent; font-size: 17px; background-color: var(--ink-840); background-repeat: no-repeat; background-size: 300% auto; border: 3px solid var(--mist-180); border-radius: 4px; } +.market-offer-card .row-avatar { width: 100%; height: 100%; min-height: 86px; color: transparent; font-size: 17px; background: #e5eeea; border: 2px solid var(--mist-180); border-radius: 3px; } .market-offer-card > div, .market-offer-card > b { align-self: center; } .market-offer-card small, .market-offer-card strong, .market-offer-card em { display: block; } .market-offer-card div > small { color: var(--route-teal); font-size: 6px; } @@ -223,6 +226,7 @@ main { min-width: 0; padding: 24px; } .market-inventory > div { min-width: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; } .inventory-slot { min-width: 0; display: grid; place-items: center; align-content: center; padding: 1px; color: var(--ink-700); background: var(--mist-120); border: 1px solid var(--line); } .inventory-slot.is-filled { color: var(--ink-950); background: var(--white); border-bottom: 3px solid var(--route-teal); } +.inventory-item-art { width: min(70%, 38px); max-height: 34px; object-fit: contain; } .inventory-slot span { font-size: 12px; } .inventory-slot small { overflow: hidden; width: 100%; font-size: 4px; text-align: center; text-overflow: ellipsis; white-space: nowrap; } .reference-informed-market .market-footer { min-width: 0; margin: 0; } @@ -281,9 +285,11 @@ main { min-width: 0; padding: 24px; } .equipment-row { min-height: 43px; display: flex; align-items: center; gap: 8px; color: var(--ink-950); text-align: left; background: var(--white); border: 1px solid var(--line); } .equipment-row.is-focused { border-left: 4px solid var(--work-gold); } .equipment-row > span { width: 36px; font-size: 20px; text-align: center; } -.equipment-row strong, .equipment-row small { display: block; } +.equipment-row-art { width: 34px; height: 34px; object-fit: contain; } +.equipment-row strong, .equipment-row small, .equipment-row em { display: block; } .equipment-row strong { font-size: 8px; } .equipment-row small { font-size: 7px; } +.equipment-row em { color: var(--ink-700); font-size: 6px; font-style: normal; } .equipment-wearer { display: grid; place-items: center; align-content: center; text-align: center; } .equipment-wearer .large-figure { width: 68px; height: 86px; font-size: 16px; } .equipment-wearer strong { margin-top: 5px; font-size: 12px; } @@ -305,7 +311,8 @@ main { min-width: 0; padding: 24px; } .party-cord::before { content: ""; position: absolute; left: 7%; right: 7%; top: 61px; height: 3px; background: #d7e0dd; border: 1px solid var(--ink-950); } .party-actor { position: relative; z-index: 2; min-width: 74px; height: 93px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto auto; align-items: end; padding: 4px; color: var(--ink-950); background: rgba(243,246,242,.94); border: 2px solid var(--route-teal); border-radius: 4px; } .party-actor.is-front { border-color: var(--danger-coral); } -.actor-figure { grid-column: 1 / 3; justify-self: center; align-self: center; width: 38px; height: 46px; display: grid; place-items: center; color: var(--white); font-size: 9px; font-weight: 900; background: var(--ink-840); border: 3px solid #739196; border-radius: 46% 46% 16% 16%; } +.actor-figure { grid-column: 1 / 3; justify-self: center; align-self: center; width: 38px; height: 46px; display: grid; place-items: center; color: var(--white); font-size: 9px; font-weight: 900; background: transparent; } +.party-actor-art { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 2px 2px rgba(12,25,29,.22)); } .party-actor > b { width: 20px; height: 20px; display: grid; place-items: center; color: var(--white); font-size: 9px; background: var(--ink-950); border-radius: 2px; } .party-actor > strong { justify-self: end; font-size: 8px; } .party-actor > em { grid-column: 1 / 3; color: var(--ink-700); font-size: 7px; font-style: normal; } @@ -369,15 +376,24 @@ main { min-width: 0; padding: 24px; } .battle-line { position: absolute; left: 2.8%; right: 2.8%; top: 25%; bottom: 17%; display: grid; grid-template-columns: 1.12fr .32fr .72fr; align-items: end; gap: 5px; } .battle-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 4px; background: rgba(243,246,242,.84); border: 1px solid var(--ink-950); } .allied-line { z-index: 2; display: flex; align-items: end; justify-content: flex-end; gap: 4px; } -.allied-line .party-actor { min-width: 52px; height: 76px; } -.allied-line .actor-figure { width: 30px; height: 38px; } +.allied-line .party-actor { min-width: 68px; height: 114px; background: transparent; border: 0; } +.allied-line .party-actor.is-front { border: 0; } +.allied-line .actor-figure { width: 64px; height: 88px; } +.allied-line .party-actor > b { align-self: end; } +.allied-line .party-actor > strong, .allied-line .party-actor > em { color: var(--white); text-shadow: 0 1px 3px var(--ink-950); } .allied-line .edge-label { width: 42px; color: #d4e9e7; font-size: 7px; font-weight: 900; text-align: center; } .action-gap { z-index: 3; align-self: center; } .forecast-arrow { display: block; padding: 5px; color: var(--white); font-size: 7px; font-weight: 900; text-align: center; background: var(--danger-coral); border: 2px solid #ffb8b3; clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%); } .enemy-line { z-index: 2; display: flex; align-items: end; gap: 5px; } -.enemy-actor { min-width: 48px; height: 64px; display: grid; place-items: center; align-content: center; color: var(--white); font-size: 11px; font-weight: 900; background: #713c3e; border: 3px solid #d27978; border-radius: 48% 48% 20% 20%; } -.enemy-actor.elite { min-width: 67px; height: 88px; background: #4c5263; border-color: #a7b4d2; } +.enemy-actor { position: relative; min-width: 62px; height: 96px; display: grid; place-items: end center; color: var(--white); font-size: 11px; font-weight: 900; background: transparent; } +.enemy-actor.elite { min-width: 72px; height: 112px; } +.enemy-actor img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; } .enemy-actor small { display: block; margin-top: 3px; font-size: 6px; font-weight: 700; text-align: center; } +.enemy-actor small, .boss-actor small { position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); padding: 2px 4px; color: var(--white); background: rgba(24,33,39,.88); white-space: nowrap; } +.boss-actor { position: relative; width: 96px; height: 142px; display: grid; place-items: end center; } +.boss-actor > img:first-child { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; } +.boss-vfx { position: absolute; left: 50%; top: -12px; width: 34px; height: 34px; transform: translateX(-50%); object-fit: contain; } +.battle-vfx { width: 36px; height: 36px; object-fit: contain; } .battle-event-log { position: absolute; left: 2.8%; bottom: 5%; display: flex; gap: 4px; max-width: 65%; } .battle-event-log span, .battle-event-log b { padding: 4px 5px; font-size: 6px; background: rgba(24,33,39,.9); border: 1px solid rgba(255,255,255,.25); } .battle-event-log b { border-color: var(--work-gold); } @@ -413,7 +429,7 @@ main { min-width: 0; padding: 24px; } .result-effects b { display: block; margin-bottom: 2px; color: var(--route-teal); } .loss-composition { display: grid; grid-template-columns: .65fr 1.35fr; gap: 12px; } .fallen-figure { display: grid; place-items: center; align-content: center; background: #dce1de; border: 1px solid var(--line); } -.fallen-figure span { width: 90px; height: 115px; display: grid; place-items: center; color: #bbc4c2; font-size: 24px; font-weight: 900; background: #4c595d; border: 5px solid #7d8a8d; border-radius: 45% 45% 16% 16%; filter: grayscale(1); } +.fallen-actor-art { width: 78%; height: 76%; object-fit: contain; object-position: center bottom; filter: grayscale(1) saturate(.45); opacity: .72; } .fallen-figure i { margin-top: 7px; color: var(--danger-coral); font-size: 10px; font-style: normal; font-weight: 900; } .loss-record { padding: 12px; background: var(--white); border-left: 5px solid var(--danger-coral); } .loss-record h2 { margin: 4px 0; font-size: 21px; } @@ -424,6 +440,7 @@ main { min-width: 0; padding: 24px; } .reward-option, .recovery-path { min-width: 0; display: grid; align-content: start; gap: 3px; padding: 9px; color: var(--ink-950); text-align: left; background: var(--white); border: 2px solid transparent; border-radius: 4px; } .reward-option.is-selected, .recovery-path.is-selected { border-color: var(--work-gold); } .reward-object { display: grid; place-items: center; height: 45px; color: var(--route-teal); font-size: 32px; } +.reward-item-art, .reward-actor-art { width: 48px; height: 44px; object-fit: contain; } .reward-option small, .reward-option strong, .reward-option p, .reward-option em, .recovery-path span, .recovery-path strong, .recovery-path small, .recovery-path p { margin: 0; } .reward-option small, .recovery-path small { color: var(--route-teal); font-size: 7px; } .reward-option strong, .recovery-path strong { font-size: 10px; } @@ -495,6 +512,116 @@ main { min-width: 0; padding: 24px; } .path-node.is-current { border-color: var(--work-gold); box-shadow: inset 0 -4px var(--work-gold); } .progress-details { width: 62%; display: grid; gap: 3px; } +/* Production-specific system, closure and growth pages */ +.run-ledger-composition, .resume-composition, .recovery-ledger-composition, .data-notice-composition, +.run-end-composition, .abandon-composition, .run-growth-composition { + height: 100%; position: relative; padding: 2.4% 3.2% 4.8%; color: var(--ink-950); + background: rgba(232,238,235,.97); +} +.run-ledger-composition { display: grid; grid-template-columns: 1.4fr .6fr; grid-template-rows: auto 1fr; gap: 8px; } +.run-ledger-composition > header { grid-column: 1 / 3; display: flex; align-items: end; justify-content: space-between; } +.run-ledger-composition h2, .resume-composition h2, .recovery-ledger-composition h2, +.data-notice-composition h2, .run-end-composition h2, .abandon-composition h2, +.run-growth-composition h2 { margin: 3px 0; font-size: 18px; line-height: 1.15; } +.run-slots { min-height: 0; display: grid; gap: 5px; } +.run-slot { min-width: 0; min-height: 65px; display: grid; grid-template-columns: 92px 30px 1fr auto; align-items: center; gap: 7px; padding: 5px; color: var(--ink-950); text-align: left; background: var(--white); border: 1px solid var(--line); } +.run-slot.is-focused { border-color: var(--work-gold); box-shadow: inset 5px 0 var(--work-gold); } +.run-slot > img { width: 92px; height: 52px; object-fit: cover; } +.run-slot > span { font-size: 12px; font-weight: 900; text-align: center; } +.run-slot small, .run-slot p, .run-slot em { margin: 0; font-size: 7px; font-style: normal; } +.run-slot strong { display: block; margin: 2px 0; font-size: 10px; } +.run-slot > em { padding: 4px; color: var(--safe-jade); border: 1px solid currentColor; } +.run-slot.is-empty { grid-template-columns: 30px 1fr auto; border-style: dashed; } +.run-ledger-composition > aside, .recovery-ledger-composition > aside { padding: 11px; background: var(--ink-840); color: var(--mist-050); border-top: 4px solid var(--work-gold); } +.run-ledger-composition > aside b, .run-ledger-composition > aside strong, .run-ledger-composition > aside p { display: block; margin: 4px 0; font-size: 8px; line-height: 1.4; } + +.resume-composition { display: grid; grid-template-columns: 1.35fr .65fr; gap: 9px; } +.resume-composition > section, .resume-composition > aside { min-width: 0; padding: 12px; background: var(--white); } +.resume-composition > section > p { margin: 4px 0; font-size: 8px; } +.resume-timeline { display: flex; align-items: center; margin: 12px 0 8px; } +.resume-timeline span { padding: 6px; font-size: 7px; font-weight: 800; border: 2px solid var(--neutral-silver); } +.resume-timeline span.is-done { color: var(--white); background: var(--safe-jade); border-color: var(--safe-jade); } +.resume-timeline span.is-current { border-color: var(--work-gold); } +.resume-timeline i { flex: 1; height: 2px; background: var(--neutral-silver); } +.resume-party { display: flex; justify-content: center; gap: 5px; padding: 7px; background: var(--ink-840); } +.resume-party .party-actor { min-width: 55px; height: 70px; } +.resume-composition > aside { display: grid; align-content: start; gap: 5px; border-top: 4px solid var(--route-teal); } +.resume-composition > aside small, .resume-composition > aside strong { font-size: 8px; } +.resume-composition dl { display: grid; gap: 3px; margin: 5px 0; } +.resume-composition dl > div { display: flex; justify-content: space-between; gap: 6px; padding: 5px; font-size: 7px; background: var(--mist-120); } +.resume-composition dd { margin: 0; font-weight: 900; } + +.recovery-ledger-composition { display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: auto 1fr; gap: 8px; } +.recovery-ledger-composition > header { grid-column: 1 / 3; } +.recovery-ledger-composition header p { margin: 2px 0; font-size: 8px; } +.lineage-list { display: grid; gap: 5px; } +.lineage-row { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 7px; padding: 8px; color: var(--ink-950); text-align: left; background: var(--white); border: 2px solid transparent; } +.lineage-row.is-focused { border-color: var(--work-gold); } +.lineage-row.is-conflict { border-color: var(--danger-coral); } +.lineage-row > span { font-size: 7px; font-weight: 900; } +.lineage-row strong { font-size: 9px; } +.lineage-row p, .lineage-row em { margin: 2px 0 0; font-size: 7px; font-style: normal; } +.recovery-ledger-composition > aside b, .recovery-ledger-composition > aside p { display: block; margin: 4px 0; font-size: 8px; line-height: 1.45; } + +.data-notice-composition { display: grid; grid-template-columns: .45fr 1.1fr .45fr; grid-template-rows: auto 1fr; gap: 8px; } +.data-notice-composition > header { grid-column: 1 / 4; } +.data-notice-composition > nav { display: grid; align-content: start; gap: 4px; } +.data-notice-composition > nav button { min-height: 34px; color: var(--ink-700); text-align: left; background: var(--white); border: 0; border-left: 4px solid transparent; } +.data-notice-composition > nav button.is-active { color: var(--ink-950); border-left-color: var(--work-gold); } +.data-notice-composition > section { display: grid; gap: 5px; } +.data-notice-composition article { display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; padding: 7px; background: var(--white); } +.data-notice-composition article > span { grid-row: 1 / 3; font-size: 9px; font-weight: 900; } +.data-notice-composition article strong { font-size: 9px; } +.data-notice-composition article p { margin: 0; font-size: 7px; line-height: 1.4; } +.data-notice-composition > aside { display: grid; align-content: start; gap: 6px; padding: 9px; color: var(--mist-050); background: var(--ink-840); border-top: 4px solid var(--safe-jade); } +.data-notice-composition > aside b, .data-notice-composition > aside strong { font-size: 7px; } + +.run-end-composition { display: grid; grid-template-rows: auto 1fr auto; gap: 7px; } +.run-end-composition > header { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; } +.run-end-company { position: absolute; right: 3.2%; top: 4%; display: flex; align-items: end; height: 72px; opacity: .62; } +.run-end-company > span { width: 38px; display: grid; place-items: end center; } +.run-end-actor { width: 42px; height: 60px; object-fit: contain; object-position: center bottom; filter: grayscale(.35); } +.run-end-company b { display: none; } +.run-end-ledger { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 7px; align-content: stretch; } +.run-end-ledger article, .run-end-ledger aside { display: grid; align-content: start; gap: 5px; padding: 11px; background: var(--white); border-top: 4px solid var(--safe-jade); } +.run-end-ledger article.is-cleared { border-top-color: var(--danger-coral); } +.run-end-ledger span, .run-end-ledger b { font-size: 7px; } +.run-end-ledger strong { font-size: 10px; } +.run-end-ledger aside { color: var(--mist-050); background: var(--ink-840); border-top-color: var(--work-gold); } +.run-end-ledger aside p { margin: 0; font-size: 8px; line-height: 1.45; } + +.abandon-composition { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; } +.abandon-composition > section, .abandon-composition > aside { padding: 12px; background: var(--white); } +.abandon-composition > section > p { max-width: 85%; margin: 4px 0 9px; font-size: 8px; line-height: 1.45; } +.abandon-impact { display: grid; gap: 5px; } +.abandon-impact span { padding: 7px; font-size: 8px; background: var(--mist-120); border-left: 4px solid var(--neutral-silver); } +.abandon-impact b { display: block; margin-bottom: 2px; } +.abandon-composition > aside { display: grid; place-items: center; align-content: center; gap: 8px; border: 2px solid var(--danger-coral); text-align: center; } +.abandon-composition > aside > span { font-size: 8px; } +.abandon-composition > aside > strong { color: var(--danger-coral); font-size: 16px; } +.hold-track { width: 82%; height: 10px; background: var(--mist-180); border: 1px solid var(--line-strong); } +.hold-track i { display: block; width: 42%; height: 100%; background: var(--danger-coral); } +.stage-danger { min-height: 34px; padding: 7px 12px; color: var(--white); font-size: 9px; font-weight: 900; background: var(--danger-coral); border: 1px solid #7d2528; } + +.run-growth-composition { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: auto 1fr; gap: 8px; } +.run-growth-composition > header { grid-column: 1 / 3; display: flex; justify-content: space-between; align-items: start; } +.run-growth-composition header p { margin: 2px 0; font-size: 8px; } +.growth-level { min-width: 58px; padding: 8px; color: var(--ink-950); font-size: 15px; font-weight: 900; text-align: center; background: var(--work-gold); } +.growth-tree { min-height: 0; display: grid; grid-template-columns: .75fr 24px 1fr; grid-template-rows: 1fr 1fr; gap: 6px; } +.growth-origin { grid-row: 1 / 3; display: grid; place-items: center; align-content: center; padding: 8px; background: var(--white); border-top: 4px solid var(--route-teal); } +.growth-actor-art { width: 82px; height: 110px; object-fit: contain; object-position: center bottom; } +.growth-origin small, .growth-origin p { margin: 2px 0; font-size: 7px; text-align: center; } +.growth-origin strong { font-size: 11px; } +.growth-tree > i { grid-row: 1 / 3; align-self: center; height: 3px; background: var(--neutral-silver); } +.growth-choice { display: grid; align-content: center; gap: 3px; padding: 8px; color: var(--ink-950); text-align: left; background: var(--white); border: 2px solid var(--line); } +.growth-choice.is-selected { border-color: var(--work-gold); } +.growth-choice small, .growth-choice p, .growth-choice em { margin: 0; font-size: 7px; font-style: normal; } +.growth-choice strong { font-size: 10px; } +.growth-choice em { color: var(--route-teal); font-weight: 900; } +.run-growth-composition > aside { display: grid; align-content: start; gap: 4px; padding: 10px; background: var(--ink-840); color: var(--mist-050); border-top: 4px solid var(--work-gold); } +.run-growth-composition > aside > span { font-size: 7px; font-weight: 900; } +.run-growth-composition > aside .sheet-row { justify-content: space-between; color: var(--ink-950); font-size: 7px; } + /* Guild Charter and final-campaign decisions */ .charter-composition, .chronicle-composition, .oath-composition, .oath-result-composition { height: 100%; padding: 2.2% 3.2% 4.6%; color: var(--ink-950); background: rgba(232,238,235,.97); } .charter-composition { display: grid; grid-template-rows: auto 58px minmax(0, 1fr); gap: 8px; } @@ -583,7 +710,8 @@ main { min-width: 0; padding: 24px; } .record-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; } .record-tile { min-width: 0; display: grid; place-items: center; align-content: center; padding: 4px; color: var(--ink-950); background: var(--mist-120); border: 1px solid var(--line); } .record-tile.is-focused { border-color: var(--work-gold); } -.record-tile > span { width: 31px; height: 34px; display: grid; place-items: center; color: var(--white); font-size: 8px; background: var(--ink-840); } +.record-tile > span { width: 38px; height: 45px; display: grid; place-items: center; color: var(--white); font-size: 8px; background: #dce8e4; overflow: hidden; } +.record-tile-art { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; } .record-tile small, .record-tile strong, .record-tile em { font-size: 7px; font-style: normal; text-align: center; } .record-inspect .large-figure { width: 65px; height: 78px; } .record-inspect h2 { margin: 5px 0; font-size: 15px; } @@ -1118,6 +1246,74 @@ main { min-width: 0; padding: 24px; } .variant-sheet p { font-size: 6px; } } +@container stage (max-width: 760px) { + .boss-actor { width: 55px; height: 78px; } + .run-ledger-composition, .resume-composition, .recovery-ledger-composition, + .data-notice-composition, .run-end-composition, .abandon-composition, + .run-growth-composition { padding: 2% 2.5% 3.5%; gap: 4px; } + .run-ledger-composition h2, .resume-composition h2, .recovery-ledger-composition h2, + .data-notice-composition h2, .run-end-composition h2, .abandon-composition h2, + .run-growth-composition h2 { font-size: 12px; } + .run-slot { min-height: 47px; grid-template-columns: 68px 22px 1fr auto; padding: 3px; } + .run-slot > img { width: 68px; height: 39px; } + .run-slot strong { font-size: 8px; } + .run-slot p { display: none; } + .resume-party .party-actor { min-width: 42px; height: 56px; } + .resume-timeline { margin: 6px 0 4px; } + .resume-timeline span { padding: 4px; font-size: 6px; } + .data-notice-composition article { padding: 4px; } + .data-notice-composition article p { font-size: 6px; } + .run-end-company { display: none; } + .run-end-ledger article, .run-end-ledger aside { padding: 6px; } + .abandon-composition > section, .abandon-composition > aside { padding: 7px; } + .growth-actor-art { width: 58px; height: 76px; } + .growth-choice { padding: 5px; } +} + +@container stage (max-width: 480px) { + .boss-actor { width: 38px; height: 54px; } + .boss-vfx { top: -8px; width: 22px; height: 22px; } + .battle-vfx { width: 24px; height: 24px; } + .run-ledger-composition { grid-template-columns: 1fr .55fr; } + .run-ledger-composition > header { align-items: center; } + .run-ledger-composition > header .stage-kicker { display: none; } + .run-slot { min-height: 35px; grid-template-columns: 19px 1fr auto; } + .run-slot > img, .run-slot > div > small, .run-slot > div > p { display: none; } + .run-slot strong { font-size: 6px; } + .run-slot > em { padding: 2px; font-size: 5px; } + .run-ledger-composition > aside, .recovery-ledger-composition > aside { padding: 5px; } + .run-ledger-composition > aside p, .recovery-ledger-composition > aside p { display: none; } + .resume-composition { grid-template-columns: 1.35fr .65fr; } + .resume-composition > section, .resume-composition > aside { padding: 5px; } + .resume-composition > section > p, .resume-composition dl > div:nth-child(n+3) { display: none; } + .resume-timeline span:nth-of-type(2), .resume-timeline i:nth-of-type(2) { display: none; } + .resume-party { padding: 2px; gap: 2px; } + .resume-party .party-actor { min-width: 29px; height: 40px; } + .recovery-ledger-composition { grid-template-columns: 1.35fr .65fr; } + .recovery-ledger-composition header p { display: none; } + .lineage-row { grid-template-columns: 42px 1fr auto; padding: 3px; } + .lineage-row p { display: none; } + .data-notice-composition { grid-template-columns: .42fr 1.1fr .48fr; } + .data-notice-composition > nav button { min-height: 25px; padding: 2px; font-size: 5px; } + .data-notice-composition article { grid-template-columns: 18px 1fr; gap: 1px 3px; } + .data-notice-composition article p { display: none; } + .data-notice-composition > aside { padding: 4px; gap: 3px; } + .run-end-ledger { grid-template-columns: 1fr 1fr .8fr; gap: 3px; } + .run-end-ledger strong { font-size: 6px; } + .run-end-ledger aside p { display: none; } + .abandon-composition > section > p { display: none; } + .abandon-impact span { padding: 4px; font-size: 6px; } + .abandon-composition > aside > strong { font-size: 9px; } + .run-growth-composition { grid-template-columns: 1.25fr .75fr; } + .run-growth-composition header p, .growth-origin p, .growth-choice p { display: none; } + .growth-level { min-width: 38px; padding: 4px; font-size: 9px; } + .growth-tree { grid-template-columns: .65fr 10px 1fr; gap: 2px; } + .growth-actor-art { width: 39px; height: 52px; } + .growth-choice { padding: 3px; } + .run-growth-composition > aside { padding: 4px; } + .run-growth-composition > aside .sheet-row:nth-of-type(n+3) { display: none; } +} + @media (max-width: 1160px) { :root { --sidebar: 226px; } main { padding: 18px; } diff --git a/prototype/site/verify-r7.js b/prototype/site/verify-r7.js new file mode 100644 index 00000000..1b1956ab --- /dev/null +++ b/prototype/site/verify-r7.js @@ -0,0 +1,316 @@ +#!/usr/bin/env node +"use strict"; + +const assert = require("node:assert/strict"); +const fs = require("node:fs"); +const path = require("node:path"); +const { chromium } = require("playwright"); + +const root = path.resolve(__dirname, "../.."); +const baseURL = process.env.ABG_PROTOTYPE_URL || "http://127.0.0.1:8766"; +const outputDir = process.env.ABG_PROTOTYPE_EVIDENCE || path.join(root, "prototype/gallery/evidence/r7"); +const browserPath = process.env.ABG_BROWSER_PATH || "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"; + +const criticalScreens = { + "SYS-004": ".run-ledger-composition", + "SYS-005": ".opening-composition", + "SYS-006": ".resume-composition", + "SYS-007": ".recovery-ledger-composition", + "SYS-008": ".data-notice-composition", + "SHP-001": ".market-composition", + "SHP-002": ".market-review", + "EQP-002": ".equipment-composition", + "PTY-001": ".party-composition", + "BAT-002": ".battle-composition", + "OUT-001": ".result-composition", + "OUT-003": ".reward-composition", + "OUT-004": ".recovery-composition", + "OUT-005": ".run-end-composition", + "OUT-006": ".abandon-composition", + "PRO-001": ".run-growth-composition", + "PRO-002": ".charter-composition", + "PRO-003": ".records-composition", + "PST-001": ".chronicle-composition", + "PST-002": ".oath-composition", + "PST-003": ".oath-result-composition", + "SET-002": ".settings-composition", +}; + +async function noHorizontalOverflow(page, label) { + const dimensions = await page.evaluate(() => ({ + scrollWidth: document.documentElement.scrollWidth, + clientWidth: document.documentElement.clientWidth, + })); + assert.ok(dimensions.scrollWidth <= dimensions.clientWidth + 1, `${label}: ${JSON.stringify(dimensions)}`); +} + +async function stageFitsViewport(page, label, requireVertical = false) { + const metrics = await page.locator(".game-stage").first().evaluate((stage) => { + const box = stage.getBoundingClientRect(); + return { left: box.left, right: box.right, top: box.top, bottom: box.bottom, width: box.width, height: box.height, viewportWidth: innerWidth, viewportHeight: innerHeight }; + }); + assert.ok(metrics.left >= -0.5 && metrics.right <= metrics.viewportWidth + 0.5, `${label} horizontal stage: ${JSON.stringify(metrics)}`); + if (requireVertical) assert.ok(metrics.top >= -0.5 && metrics.bottom <= metrics.viewportHeight + 0.5, `${label} vertical stage: ${JSON.stringify(metrics)}`); + assert.ok(Math.abs(metrics.width / metrics.height - 16 / 9) < 0.02, `${label} aspect ratio: ${JSON.stringify(metrics)}`); +} + +async function openView(page, view) { + const desktopButton = page.locator(`[data-view="${view}"]`); + const inViewport = await desktopButton.evaluate((element) => { + const box = element.getBoundingClientRect(); + return box.left >= 0 && box.right <= innerWidth && box.top >= 0 && box.bottom <= innerHeight; + }); + if (!inViewport) { + await page.locator("#open-nav").click(); + } + await desktopButton.click(); + await page.locator("main .view").waitFor({ state: "visible" }); +} + +async function waitForMobileNavClosed(page) { + await page.waitForFunction(() => { + const sidebar = document.querySelector("#sidebar"); + return sidebar && !sidebar.classList.contains("is-open") && sidebar.getBoundingClientRect().right <= 0.5; + }); +} + +async function selectScreen(page, id) { + await openView(page, "screens"); + const button = page.locator(`.screen-index [data-screen-id="${id}"]`); + await button.evaluate((element) => element.click()); + await page.locator(`[data-stage-id="${id}"]`).waitFor({ state: "visible" }); +} + +async function screenshot(page, name) { + const destination = path.join(outputDir, name); + await page.screenshot({ path: destination, fullPage: true }); + return destination; +} + +async function desktopAudit(browser, evidence) { + const errors = []; + const page = await browser.newPage({ viewport: { width: 1440, height: 1000 }, deviceScaleFactor: 1 }); + page.on("console", (message) => { if (message.type() === "error") errors.push(`console: ${message.text()}`); }); + page.on("pageerror", (error) => errors.push(`pageerror: ${error.message}`)); + await page.goto(baseURL, { waitUntil: "networkidle" }); + + assert.equal(await page.locator("#loading").count(), 0, "loading state clears"); + assert.equal(await page.locator("html").getAttribute("lang"), "zh-CN", "Simplified Chinese is the owner-facing default"); + assert.match(await page.locator(".opening-title h2").textContent(), /选择两名队员/, "opening decision is readable in Chinese"); + await page.locator('[data-locale="en"]').first().click(); + assert.equal(await page.locator("html").getAttribute("lang"), "en", "English remains available"); + assert.equal(await page.locator(".nav-item").count(), 6, "gallery view count"); + assert.equal(await page.locator(".flow-progress button").count(), 23, "complete first-play state count"); + assert.equal(await page.locator(".recruit-offer").count(), 4, "four provisional offers"); + assert.equal(await page.locator(".offer-character").count(), 4, "four profession identity anchors"); + assert.deepEqual(await page.locator(".offer-character").first().evaluate((image) => [image.complete, image.naturalWidth > 0]), [true, true], "first profession identity loads"); + assert.equal(await page.locator(".recruit-offer.is-selected").count(), 0, "opening build is not preselected"); + await noHorizontalOverflow(page, "desktop opening"); + await stageFitsViewport(page, "desktop opening"); + evidence.push(await screenshot(page, "desktop-opening.png")); + + await page.locator('[data-offer-id="OFF-01"]').click(); + assert.equal(await page.locator(".recruit-offer.is-selected").count(), 1, "first provisional selection"); + await page.locator('[data-offer-id="OFF-03"]').click(); + assert.equal(await page.locator(".recruit-offer.is-selected").count(), 2, "second provisional selection"); + assert.ok(await page.locator(".opening-footer .stage-primary").isEnabled(), "Review Company enabled at 2/2"); + + await page.locator('[data-flow-index="7"]').click(); + assert.equal(await page.locator('[data-stage-id="SHP-001"] .company-meter strong').first().textContent(), "2", "first Market Company count"); + assert.equal(await page.locator('[data-stage-id="SHP-001"] .bench-recruit').count(), 4, "Market keeps four Company slots visible"); + assert.equal(await page.locator('[data-stage-id="SHP-001"] .market-offer-card').count(), 3, "Market keeps three offers comparable"); + assert.equal(await page.locator('[data-stage-id="SHP-001"] .inventory-slot').count(), 12, "Market keeps run inventory visible"); + assert.equal(await page.locator('[data-stage-id="SHP-001"] .market-tool-rail button').count(), 4, "Market modes remain visible"); + evidence.push(await screenshot(page, "desktop-market.png")); + await page.locator('[data-flow-index="12"]').click(); + assert.equal(await page.locator('[data-stage-id="PTY-001"] .party-actor').count(), 4, "party line actor count"); + assert.equal(await page.locator('[data-stage-id="PTY-001"] .party-actor').last().locator("> b").textContent(), "0", "rightmost position is 0"); + evidence.push(await screenshot(page, "desktop-formation.png")); + await page.locator('[data-flow-index="16"]').click(); + assert.ok(await page.locator('[data-stage-id="BAT-002"] .forecast-arrow').isVisible(), "battle forecast visible"); + assert.equal(await page.locator('[data-stage-id="BAT-002"] .allied-line .party-actor').count(), 4, "battle party line count"); + assert.equal(await page.locator('[data-stage-id="BAT-002"] .enemy-actor img').count(), 4, "battle enemy group uses real actor art"); + assert.equal(await page.locator('[data-stage-id="BAT-002"] .boss-actor > img').count(), 2, "battle boss and attached VFX are visible"); + evidence.push(await screenshot(page, "desktop-battle.png")); + await page.locator('[data-flow-index="18"]').click(); + assert.ok(await page.locator('[data-stage-id="OUT-001"] .is-divergence').isVisible(), "result divergence visible"); + evidence.push(await screenshot(page, "desktop-result.png")); + await page.locator('[data-flow-index="22"]').click(); + assert.equal(await page.locator('[data-stage-id="OUT-004"] .recovery-path').count(), 3, "recovery paths visible"); + evidence.push(await screenshot(page, "desktop-recovery.png")); + + await openView(page, "screens"); + assert.equal(await page.locator(".screen-index button").count(), 50, "screen inventory count"); + const ids = await page.locator(".screen-index button span").allTextContents(); + assert.equal(new Set(ids).size, 50, "screen IDs unique"); + for (const id of ids) { + const button = page.locator(`.screen-index [data-screen-id="${id}"]`); + await button.evaluate((element) => element.click()); + assert.equal(await page.locator(".game-stage").first().getAttribute("data-stage-id"), id, `${id} owns its composition`); + assert.equal(await page.locator(".prototype-missing").count(), 0, `${id} has no missing placeholder`); + assert.equal(await page.locator(".generic-composition").count(), 0, `${id} has no generic fallback`); + const visualAssetsLoad = await page.locator(`[data-stage-id="${id}"]`).evaluate((stage) => + [...stage.querySelectorAll("img")].every((image) => image.complete && image.naturalWidth > 0), + ); + assert.equal(visualAssetsLoad, true, `${id} visual assets load`); + } + for (const [id, selector] of Object.entries(criticalScreens)) { + await selectScreen(page, id); + assert.ok(await page.locator(`[data-stage-id="${id}"] ${selector}`).isVisible(), `${id} critical composition`); + } + await page.locator('[data-screen-variant="error"]').click(); + assert.ok(await page.locator(".state-variant-overlay.error").isVisible(), "screen error variant inspectable"); + + await selectScreen(page, "PRO-002"); + assert.equal(await page.locator(".charter-seal").count(), 8, "Guild Charter has eight horizontal Region seals"); + assert.equal(await page.locator(".charter-packet").count(), 3, "selected Region exposes three breadth packets"); + await page.locator('[data-charter-region="6"]').click(); + assert.match(await page.locator(".charter-seal.is-current").textContent(), /RG-07/, "Charter Region selection changes in place"); + await page.locator('[data-charter-packet="2"]').click(); + assert.match(await page.locator(".no-power-boundary").textContent(), /NO PERMANENT COMBAT POWER/, "Charter claim denies permanent raw power"); + assert.match(await page.locator(".charter-review").textContent(), /RG-07/, "Charter prerequisite follows selected Region"); + evidence.push(await screenshot(page, "desktop-guild-charter.png")); + + await selectScreen(page, "PST-001"); + assert.equal(await page.locator(".chronicle-choice").count(), 2, "final boss exposes two explicit choices"); + assert.match(await page.locator(".archive-contract").textContent(), /Company archived as Records/, "both final choices archive Company"); + await page.locator('[data-chronicle-choice="oath"]').click(); + assert.ok(await page.locator('[data-chronicle-choice="oath"].is-selected').isVisible(), "Oath Season choice is reviewable"); + assert.match(await page.locator(".chronicle-review").textContent(), /Ordinary New Run/, "ordinary New Run remains visible"); + evidence.push(await screenshot(page, "desktop-final-choice.png")); + + await selectScreen(page, "PST-002"); + assert.equal(await page.locator(".oath-law").count(), 3, "Oath Season law choices visible"); + await page.locator('[data-oath-law="broken-front"]').click(); + assert.equal(await page.locator(".oath-law.is-selected").count(), 2, "Oath laws toggle independently"); + assert.match(await page.locator(".no-carryover").textContent(), /NO CLEARED RECRUIT CARRYOVER/, "cleared Recruit carryover denied"); + await selectScreen(page, "PST-003"); + assert.match(await page.locator(".oath-receipts").textContent(), /Renown/, "Oath result shows sourced receipts"); + + await openView(page, "regions"); + assert.equal(await page.locator(".region-tabs button").count(), 8, "region count"); + for (let index = 0; index < 8; index += 1) { + await page.locator(`[data-region-index="${index}"]`).click(); + await page.waitForFunction(() => { + const image = document.querySelector(".region-stage img"); + return image && image.complete && image.naturalWidth > 0; + }); + } + evidence.push(await screenshot(page, "desktop-regions.png")); + + await openView(page, "catalogs"); + assert.equal(await page.locator(".catalog-tabs button").count(), 6, "searchable catalog family count"); + await page.locator('[data-catalog-type="professions"]').click(); + await page.locator('[data-catalog-filter="base"]').click(); + assert.equal(await page.locator(".catalog-entry").count(), 12, "base profession count"); + await page.locator('[data-catalog-type="equipment"]').click(); + await page.locator("[data-catalog-search]").fill("Stepback Soles"); + assert.equal(await page.locator(".catalog-entry").count(), 1, "equipment search result"); + assert.equal(await page.locator(".catalog-entry strong").textContent(), "Stepback Soles", "equipment search identity"); + evidence.push(await screenshot(page, "desktop-catalog.png")); + + await openView(page, "reference"); + assert.equal(await page.locator(".reference-selector button").count(), 15, "fifteen reference mappings"); + assert.equal(await page.locator(".reference-wireframe img, .reference-wireframe video").count(), 0, "reference map embeds no commercial media"); + assert.match(await page.locator(".reference-wireframe footer").textContent(), /no commercial media/, "wireframe boundary visible"); + assert.equal(await page.locator(".adaptation-panel .game-stage").getAttribute("data-stage-id"), "SHP-001", "default mapping binds integrated Market"); + await page.locator('[data-reference-index="11"]').click(); + assert.equal(await page.locator(".adaptation-panel .game-stage").getAttribute("data-stage-id"), "PRO-002", "persistent-path mapping binds Guild Charter"); + assert.match(await page.locator(".fidelity-decisions").textContent(), /Eight horizontal Region seals/, "reference decision states original adaptation"); + evidence.push(await screenshot(page, "desktop-reference-map.png")); + + await selectScreen(page, "SET-002"); + await page.locator('[data-text-scale="130"]').click(); + assert.equal(await page.locator("body").getAttribute("data-text-scale"), "130", "130% state applies"); + await page.locator('[data-setting-key="contrast"]').click(); + assert.match(await page.locator("body").getAttribute("class"), /high-contrast/, "high-contrast state applies"); + await page.locator('[data-locale="zh_CN"]').first().click(); + assert.equal(await page.locator("html").getAttribute("lang"), "zh-CN", "Simplified Chinese state applies"); + assert.match(await page.locator("main h1").textContent(), /显示与文字/, "selected screen localizes"); + evidence.push(await screenshot(page, "desktop-settings-zh-130.png")); + await page.locator('[data-text-scale="100"]').click(); + + await page.locator("#fullscreen-current").click(); + assert.ok(await page.locator("#stage-dialog").evaluate((dialog) => dialog.open), "stage viewer opens"); + await page.locator("#zoom-in").click(); + assert.equal(await page.locator("#zoom-reset").textContent(), "125%", "stage viewer zooms"); + await page.locator("#close-dialog").click(); + + await openView(page, "review"); + assert.equal(await page.locator(".review-groups article").count(), 7, "seven Owner review groups"); + assert.equal(await page.locator('[data-view="review"] em').textContent(), "7", "review navigation badge matches group count"); + assert.match(await page.locator(".review-groups article").last().textContent(), /Charter and final choice|公会宪章与终章选择/, "seventh group covers Charter and final choice"); + + assert.deepEqual(errors, [], `desktop browser errors: ${errors.join(" | ")}`); + await page.close(); +} + +async function responsiveAudit(browser, evidence) { + const fixtures = [ + { name: "tablet-battle.png", viewport: { width: 1024, height: 768 }, view: "screens", screen: "BAT-002", vertical: false }, + { name: "phone-portrait-opening.png", viewport: { width: 390, height: 844 }, view: "firstplay", vertical: true }, + { name: "phone-landscape-battle.png", viewport: { width: 844, height: 390 }, view: "firstplay", flow: 16, vertical: true }, + { name: "phone-portrait-final-choice.png", viewport: { width: 390, height: 844 }, view: "screens", screen: "PST-001", vertical: true }, + { name: "phone-landscape-charter.png", viewport: { width: 844, height: 390 }, view: "screens", screen: "PRO-002", vertical: true }, + { name: "phone-portrait-reference-market.png", viewport: { width: 390, height: 844 }, view: "reference", reference: 2, vertical: false }, + { name: "phone-landscape-reference-battle.png", viewport: { width: 844, height: 390 }, view: "reference", reference: 7, vertical: false }, + ]; + for (const fixture of fixtures) { + const page = await browser.newPage({ viewport: fixture.viewport, deviceScaleFactor: 1 }); + const errors = []; + page.on("pageerror", (error) => errors.push(error.message)); + await page.goto(`${baseURL}#${fixture.view}`, { waitUntil: "networkidle" }); + if (fixture.screen) await selectScreen(page, fixture.screen); + if (Number.isInteger(fixture.flow)) await page.locator(`[data-flow-index="${fixture.flow}"]`).click(); + if (Number.isInteger(fixture.reference)) { + await openView(page, "reference"); + await page.locator(`[data-reference-index="${fixture.reference}"]`).click(); + } + if (fixture.viewport.width < 880) { + await page.locator("#open-nav").click(); + assert.match(await page.locator("#sidebar").getAttribute("class"), /is-open/, `${fixture.name} drawer opens`); + await page.locator("#close-nav").click(); + assert.doesNotMatch(await page.locator("#sidebar").getAttribute("class"), /is-open/, `${fixture.name} drawer closes`); + await waitForMobileNavClosed(page); + } + await noHorizontalOverflow(page, fixture.name); + await stageFitsViewport(page, fixture.name, fixture.vertical); + evidence.push(await screenshot(page, fixture.name)); + assert.deepEqual(errors, [], `${fixture.name} browser errors: ${errors.join(" | ")}`); + await page.close(); + } +} + +async function bundleAudit(browser) { + const bundle = path.join(root, "prototype/gallery/aetherbound-guild-prototype.html"); + assert.ok(fs.statSync(bundle).size > 1_000_000, "Gallery bundle contains embedded media"); + const page = await browser.newPage({ viewport: { width: 1280, height: 800 } }); + const external = []; + page.on("request", (request) => { + if (!request.url().startsWith("file:") && !request.url().startsWith("data:")) external.push(request.url()); + }); + await page.goto(`file://${bundle}`, { waitUntil: "load" }); + assert.equal(await page.locator(".recruit-offer").count(), 4, "Gallery bundle initializes offline"); + assert.deepEqual(external, [], `Gallery external requests: ${external.join(" | ")}`); + await page.close(); +} + +async function main() { + fs.mkdirSync(outputDir, { recursive: true }); + const browser = await chromium.launch({ headless: true, executablePath: browserPath }); + const evidence = []; + try { + await desktopAudit(browser, evidence); + await responsiveAudit(browser, evidence); + await bundleAudit(browser); + } finally { + await browser.close(); + } + console.log("ABG_R7_BROWSER_OK screens=50 dedicated=50 generic=0 flow_states=23 actors=4 equipment=12 vfx=16 reference_maps=15 review_groups=7 regions=8 catalogs=42,36,320,60,100,16 responsive=desktop,tablet,phone_portrait,phone_landscape bundle=offline"); + console.log(`evidence=${evidence.join(",")}`); +} + +main().catch((error) => { + console.error(error.stack || error); + process.exitCode = 1; +}); diff --git a/tools/build_gallery_bundle.py b/tools/build_gallery_bundle.py index 0c8a8948..2307c8a7 100644 --- a/tools/build_gallery_bundle.py +++ b/tools/build_gallery_bundle.py @@ -184,9 +184,9 @@ def build_catalog() -> dict[str, object]: require_unique(entries[label], count, label) payload: dict[str, object] = { - "version": 2, - "status": "design-prototype-current-authority", - "authorityRevision": "guild-charter-integration-r4", + "version": 3, + "status": "production-ui-atlas-candidate", + "authorityRevision": "phase7-ui-production-atlas", "counts": expected, **entries, } @@ -196,7 +196,9 @@ def build_catalog() -> dict[str, object]: def data_uri(path: Path) -> str: - mime = "image/webp" if path.suffix == ".webp" else "application/octet-stream" + mime = {".webp": "image/webp", ".png": "image/png"}.get( + path.suffix.lower(), "application/octet-stream" + ) encoded = base64.b64encode(path.read_bytes()).decode("ascii") return f"data:{mime};base64,{encoded}" @@ -207,7 +209,11 @@ def main() -> None: styles = (SITE / "styles.css").read_text(encoding="utf-8") app = (SITE / "app.js").read_text(encoding="utf-8") - asset_paths = sorted((SITE / "assets" / "web").glob("*.webp")) + asset_paths = sorted( + path + for path in (SITE / "assets").rglob("*") + if path.is_file() and path.suffix.lower() in {".webp", ".png"} + ) asset_paths.append(SITE / "favicon.webp") for path in asset_paths: relative = path.relative_to(SITE).as_posix() @@ -218,13 +224,13 @@ def main() -> None: catalog_json = json.dumps(catalog, ensure_ascii=False, separators=(",", ":")).replace("<", "\\u003c") app = app.replace("', f"") + index = index.replace('', f"") index = index.replace( - '', + '', f'\n', ) - forbidden = ('href="styles.css"', 'src="app.js"', "assets/web/") + forbidden = ('href="styles.css', 'src="app.js', "assets/") remaining = [token for token in forbidden if token in index] if remaining: raise RuntimeError(f"external prototype dependency remains: {remaining}") diff --git a/tools/process_identity_anchor.py b/tools/process_identity_anchor.py new file mode 100644 index 00000000..0e7f31e1 --- /dev/null +++ b/tools/process_identity_anchor.py @@ -0,0 +1,92 @@ +#!/usr/bin/env python3 +"""Remove green chroma and normalize one full-body identity anchor.""" + +from __future__ import annotations + +import argparse +import hashlib +import json +from pathlib import Path + +from PIL import Image + +from process_green_grid_assets import remove_green + + +def parse_args() -> argparse.Namespace: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("source", type=Path) + parser.add_argument("--output", type=Path, required=True) + parser.add_argument("--report", type=Path, required=True) + parser.add_argument("--pixels", type=int, default=512) + parser.add_argument("--height-fraction", type=float, default=0.88) + parser.add_argument("--width-fraction", type=float, default=0.84) + return parser.parse_args() + + +def digest(path: Path) -> str: + return hashlib.sha256(path.read_bytes()).hexdigest() + + +def main() -> None: + args = parse_args() + if args.pixels < 64 or not 0 < args.height_fraction <= 1 or not 0 < args.width_fraction <= 1: + raise SystemExit("invalid output normalization") + + source = Image.open(args.source).convert("RGBA") + keyed = remove_green(source) + bound = keyed.getchannel("A").point(lambda value: 255 if value >= 16 else 0).getbbox() + if not bound: + raise SystemExit("empty identity after chroma removal") + + content = keyed.crop(bound) + max_width = round(args.pixels * args.width_fraction) + max_height = round(args.pixels * args.height_fraction) + scale = min(max_width / content.width, max_height / content.height) + size = (max(1, round(content.width * scale)), max(1, round(content.height * scale))) + resized = content.convert("RGBa").resize(size, Image.Resampling.LANCZOS).convert("RGBA") + + cleaned: list[tuple[int, int, int, int]] = [] + green_spill = 0 + for red, green, blue, alpha in resized.getdata(): + if alpha < 4 or (green - red > 50 and green - blue > 50): + if alpha >= 4: + green_spill += 1 + cleaned.append((0, 0, 0, 0)) + else: + cleaned.append((red, green, blue, alpha)) + resized.putdata(cleaned) + + canvas = Image.new("RGBA", (args.pixels, args.pixels), (0, 0, 0, 0)) + left = (args.pixels - resized.width) // 2 + bottom_margin = round(args.pixels * (1 - args.height_fraction) / 2) + top = args.pixels - bottom_margin - resized.height + canvas.alpha_composite(resized, (left, top)) + + args.output.parent.mkdir(parents=True, exist_ok=True) + args.report.parent.mkdir(parents=True, exist_ok=True) + canvas.save(args.output) + output_bound = canvas.getchannel("A").point(lambda value: 255 if value >= 16 else 0).getbbox() + report = { + "ok": True, + "source": args.source.as_posix(), + "source_sha256": digest(args.source), + "source_dimensions": list(source.size), + "source_content_bound": list(bound), + "output": args.output.as_posix(), + "output_sha256": digest(args.output), + "output_dimensions": list(canvas.size), + "output_content_bound": list(output_bound) if output_bound else None, + "removed_visible_green_pixels_after_resize": green_spill, + "normalization": { + "height_fraction": args.height_fraction, + "width_fraction": args.width_fraction, + "feet_baseline_margin": bottom_margin, + }, + } + args.report.write_text(json.dumps(report, indent=2) + "\n", encoding="utf-8") + print(f"IDENTITY_ANCHOR_PROCESS_OK output={args.output} sha256={report['output_sha256']}") + + +if __name__ == "__main__": + main() diff --git a/tools/verify_identity_anchors.py b/tools/verify_identity_anchors.py new file mode 100644 index 00000000..71d30fe1 --- /dev/null +++ b/tools/verify_identity_anchors.py @@ -0,0 +1,73 @@ +#!/usr/bin/env python3 +"""Verify normalized Phase 7 full-body identity anchors.""" + +from __future__ import annotations + +import argparse +import json +from pathlib import Path + +from PIL import Image + + +def parse_args() -> argparse.Namespace: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--input-dir", type=Path, required=True) + parser.add_argument("--output", type=Path, required=True) + parser.add_argument("--expected-count", type=int, default=4) + parser.add_argument("--pixels", type=int, default=512) + return parser.parse_args() + + +def inspect(path: Path, pixels: int) -> dict[str, object]: + image = Image.open(path).convert("RGBA") + visible = [(r, g, b, a) for r, g, b, a in image.getdata() if a >= 16] + bound = image.getchannel("A").point(lambda value: 255 if value >= 16 else 0).getbbox() + corners = [ + image.getpixel((0, 0))[3], + image.getpixel((pixels - 1, 0))[3], + image.getpixel((0, pixels - 1))[3], + image.getpixel((pixels - 1, pixels - 1))[3], + ] if image.size == (pixels, pixels) else [] + green_spill = sum(1 for red, green, blue, _ in visible if green - red > 50 and green - blue > 50) + errors: list[str] = [] + if image.size != (pixels, pixels): + errors.append(f"dimensions {image.size}") + if not visible or not bound: + errors.append("empty visible content") + if corners and any(corners): + errors.append(f"opaque corners {corners}") + if bound and not 0.82 <= (bound[3] - bound[1]) / pixels <= 0.90: + errors.append(f"height fraction {(bound[3] - bound[1]) / pixels:.4f}") + if bound and bound[3] != round(pixels * 0.94): + errors.append(f"feet baseline {bound[3]}") + if green_spill: + errors.append(f"green spill {green_spill}") + return { + "path": path.as_posix(), + "ok": not errors, + "errors": errors, + "dimensions": list(image.size), + "content_bound": list(bound) if bound else None, + "visible_pixels": len(visible), + "green_spill_pixels": green_spill, + } + + +def main() -> None: + args = parse_args() + files = sorted(args.input_dir.glob("*-anchor.png")) + items = [inspect(path, args.pixels) for path in files] + errors = [error for item in items for error in item["errors"]] + if len(files) != args.expected_count: + errors.append(f"expected {args.expected_count} anchors, found {len(files)}") + report = {"ok": not errors, "count": len(files), "errors": errors, "items": items} + args.output.parent.mkdir(parents=True, exist_ok=True) + args.output.write_text(json.dumps(report, indent=2) + "\n", encoding="utf-8") + if errors: + raise SystemExit("IDENTITY_ANCHOR_VERIFY_FAILED " + "; ".join(errors[:8])) + print(f"IDENTITY_ANCHOR_VERIFY_OK anchors={len(files)} output={args.output}") + + +if __name__ == "__main__": + main() diff --git a/tools/verify_ui_asset_provenance.py b/tools/verify_ui_asset_provenance.py new file mode 100644 index 00000000..aa34b271 --- /dev/null +++ b/tools/verify_ui_asset_provenance.py @@ -0,0 +1,80 @@ +#!/usr/bin/env python3 +"""Verify every Phase 7 HTML game asset is a byte-identical known candidate.""" + +from __future__ import annotations + +import hashlib +import json +from pathlib import Path + + +ROOT = Path(__file__).resolve().parents[1] +ASSET_ROOT = ROOT / "prototype/site/assets/game" +MANIFEST_PATH = ASSET_ROOT / "asset-provenance.json" + + +def digest(path: Path) -> str: + value = hashlib.sha256() + with path.open("rb") as handle: + for chunk in iter(lambda: handle.read(1024 * 1024), b""): + value.update(chunk) + return value.hexdigest() + + +def main() -> int: + manifest = json.loads(MANIFEST_PATH.read_text(encoding="utf-8")) + expected: set[Path] = set() + counts: dict[str, int] = {"actors": 0} + errors: list[str] = [] + + pairs: list[tuple[str, Path, Path]] = [] + for entry in manifest["actors"]: + target = ASSET_ROOT / entry["target"] + source = ROOT / entry["source"] + pairs.append(("actors", target, source)) + + for family in manifest["families"]: + name = family["name"] + counts[name] = 0 + for filename in family["files"]: + target = ASSET_ROOT / family["target_root"] / filename + source = ROOT / family["source_root"] / filename + pairs.append((name, target, source)) + + for family, target, source in pairs: + expected.add(target) + if not source.is_file(): + errors.append(f"missing source: {source.relative_to(ROOT)}") + continue + if not target.is_file(): + errors.append(f"missing target: {target.relative_to(ROOT)}") + continue + if digest(source) != digest(target): + errors.append( + f"hash mismatch: {target.relative_to(ROOT)} <- {source.relative_to(ROOT)}" + ) + continue + counts[family] += 1 + + actual = set(ASSET_ROOT.glob("*/*.png")) + for path in sorted(actual - expected): + errors.append(f"unmapped target: {path.relative_to(ROOT)}") + for path in sorted(expected - actual): + errors.append(f"manifest target absent: {path.relative_to(ROOT)}") + + if errors: + for error in errors: + print(f"ERROR: {error}") + return 1 + + total = sum(counts.values()) + print( + "UI_ASSET_PROVENANCE_OK " + f"actors={counts['actors']} equipment={counts['equipment']} " + f"vfx={counts['vfx']} total={total}" + ) + return 0 + + +if __name__ == "__main__": + raise SystemExit(main())