A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Decision cards: centred, large, with a 16:9 media header (photographs; decision videos, phase 1) (#441)
Eyal Golan7aeec3f1dc77
diff --git a/ASSETS.yaml b/ASSETS.yamlindex 979767bb0..1e0368fe5 100644--- a/ASSETS.yaml+++ b/ASSETS.yaml@@ -223,7 +223,7 @@ rules:credit: "Moshe Marlin Levin / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event idf_founding. Original 686x1200, SHA-1 2f0905da8614028f03d981bbd07cb77c7e19059b (https://upload.wikimedia.org/wikipedia/commons/0/0b/Jerusalem_%28997008872766605171.jpg); made by tools/event_images.py (crop [0.5, 0.52, 0.94]). Commons VRTS permission ticket 2021092910005788. The NLI calls it the IDF founding ceremony at the Rehavia Gymnasium (the first IDF parade in Jerusalem), June 1948, just after the event window. Colour slide shown in monochrome (the grade); the slide mount and its handwriting are cropped away. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event idf_founding. Original 686x1200, SHA-1 2f0905da8614028f03d981bbd07cb77c7e19059b (https://upload.wikimedia.org/wikipedia/commons/0/0b/Jerusalem_%28997008872766605171.jpg); made by tools/event_images.py (crop [0.5, 0.52, 0.94]). Commons VRTS permission ticket 2021092910005788. The NLI calls it the IDF founding ceremony at the Rehavia Gymnasium (the first IDF parade in Jerusalem), June 1948, just after the event window. Colour slide shown in monochrome (the grade); the slide mount and its handwriting are cropped away. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/first_truce.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Jerusalem_(997008872623805171).jpg"@@ -232,7 +232,7 @@ rules:credit: "Moshe Marlin Levin / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event first_truce. Original 2000x1334, SHA-1 c61bbf24a941d9568eb2b6dcb429a35b8692fe38 (https://upload.wikimedia.org/wikipedia/commons/9/94/Jerusalem_%28997008872623805171%29.jpg); made by tools/event_images.py (crop [0.5, 0.55, 1.0]). Commons VRTS permission ticket 2021092910005788. Colour slide shown in monochrome (the grade). NLI: taken 'during a pause in the fighting'; which truce is not recorded. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event first_truce. Original 2000x1334, SHA-1 c61bbf24a941d9568eb2b6dcb429a35b8692fe38 (https://upload.wikimedia.org/wikipedia/commons/9/94/Jerusalem_%28997008872623805171%29.jpg); made by tools/event_images.py (crop [0.5, 0.55, 1.0]). Commons VRTS permission ticket 2021092910005788. Colour slide shown in monochrome (the grade). NLI: taken 'during a pause in the fighting'; which truce is not recorded. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/altalena.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:1948_Arab-Israeli_War_(997008136847805171).jpg"@@ -241,7 +241,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event altalena. Original 1362x924, SHA-1 80f3a7175284948b1232f54ae521d66d11580866 (https://upload.wikimedia.org/wikipedia/commons/f/f7/1948_Arab-Israeli_War_%28997008136847805171%29.jpg); made by tools/event_images.py (crop [0.5, 0.58, 1.0]). Commons VRTS permission ticket 2021092910005788. SENSITIVE: the picture needs the owner's sensitivity review before a shareable build may carry it (sensitivity_reviewed in event-images.yaml; Build.cs -shareable refuses until then). Replaces the burning-ship frame (owner-delegated ruling 2026-10-11: no outcome before the choice). NLI: 'A moment before the shelling of the Altalena, the Irgun's arms ship. The Altalena approaches the Tel Aviv shore', dated 20 June 1948 (in the event window). No Altalena frame from Kfar Vitkin was found on Commons under a usable licence: the Meitar frames are all at Tel Aviv, and the others found are GPO, PD-Israel or CC BY-SA. Replacement picked 2026-10-11 under the controller's ruling (owner-delegated): a pre-decision or in-window photograph, nothing graphic; licence, SHA-1 and credit read through the Commons API. Sensitivity review: owner sign-off 2026-10-11 (in session, via controller). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event altalena. Original 1362x924, SHA-1 80f3a7175284948b1232f54ae521d66d11580866 (https://upload.wikimedia.org/wikipedia/commons/f/f7/1948_Arab-Israeli_War_%28997008136847805171%29.jpg); made by tools/event_images.py (crop [0.5, 0.58, 1.0]). Commons VRTS permission ticket 2021092910005788. SENSITIVE: the picture needs the owner's sensitivity review before a shareable build may carry it (sensitivity_reviewed in event-images.yaml; Build.cs -shareable refuses until then). Replaces the burning-ship frame (owner-delegated ruling 2026-10-11: no outcome before the choice). NLI: 'A moment before the shelling of the Altalena, the Irgun's arms ship. The Altalena approaches the Tel Aviv shore', dated 20 June 1948 (in the event window). No Altalena frame from Kfar Vitkin was found on Commons under a usable licence: the Meitar frames are all at Tel Aviv, and the others found are GPO, PD-Israel or CC BY-SA. Replacement picked 2026-10-11 under the controller's ruling (owner-delegated): a pre-decision or in-window photograph, nothing graphic; licence, SHA-1 and credit read through the Commons API. Sensitivity review: owner sign-off 2026-10-11 (in session, via controller). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/ten_days.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:1948_Arab-Israeli_War_997009323190005171.jpg"@@ -250,7 +250,7 @@ rules:credit: "Boris Carmi / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event ten_days. Original 1322x1297, SHA-1 b0e87fdf628f8df263c9ad0034fc47016110a343 (https://upload.wikimedia.org/wikipedia/commons/b/b0/1948_Arab-Israeli_War_997009323190005171.jpg); made by tools/event_images.py (crop [0.5, 0.4, 1.0]). Commons VRTS permission ticket 2021092910005788. SENSITIVE: the picture needs the owner's sensitivity review before a shareable build may carry it (sensitivity_reviewed in event-images.yaml; Build.cs -shareable refuses until then). Replaces the near-portrait of one named woman (owner-delegated ruling 2026-10-11: portraits stay PD or CC0). NLI: 'The capture of the airport at Lydda in the War of Independence', 10 July 1948 (in the event window). Two unnamed soldiers; the airport itself is not in the frame. The 82nd Battalion series of the same day is in 'Meitar Collection (review needed)' on Commons and was not used. Replacement picked 2026-10-11 under the controller's ruling (owner-delegated): a pre-decision or in-window photograph, nothing graphic; licence, SHA-1 and credit read through the Commons API. Sensitivity review: owner sign-off 2026-10-11 (in session, via controller). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event ten_days. Original 1322x1297, SHA-1 b0e87fdf628f8df263c9ad0034fc47016110a343 (https://upload.wikimedia.org/wikipedia/commons/b/b0/1948_Arab-Israeli_War_997009323190005171.jpg); made by tools/event_images.py (crop [0.5, 0.4, 1.0]). Commons VRTS permission ticket 2021092910005788. SENSITIVE: the picture needs the owner's sensitivity review before a shareable build may carry it (sensitivity_reviewed in event-images.yaml; Build.cs -shareable refuses until then). Replaces the near-portrait of one named woman (owner-delegated ruling 2026-10-11: portraits stay PD or CC0). NLI: 'The capture of the airport at Lydda in the War of Independence', 10 July 1948 (in the event window). Two unnamed soldiers; the airport itself is not in the frame. The 82nd Battalion series of the same day is in 'Meitar Collection (review needed)' on Commons and was not used. Replacement picked 2026-10-11 under the controller's ruling (owner-delegated): a pre-decision or in-window photograph, nothing graphic; licence, SHA-1 and credit read through the Commons API. Sensitivity review: owner sign-off 2026-10-11 (in session, via controller). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/second_truce.jpg"licence: CC0-1.0source: "https://commons.wikimedia.org/wiki/File:Graaf_Bernadotte_op_Schiphol,_Bestanddeelnr_934-6899.jpg"@@ -259,7 +259,7 @@ rules:credit: "Ben Merk / Anefo, Nationaal Archief (Anefo 934-6899) · CC0 · graded and cropped"adapted: "graded and cropped"commons: "CC0; CC-zero, Nationaal Archief"- note: "Event second_truce. Original 3205x2504, SHA-1 fb5bef2114d8d19013884a39b2b3534440e87e47 (https://upload.wikimedia.org/wikipedia/commons/6/63/Graaf_Bernadotte_op_Schiphol%2C_Bestanddeelnr_934-6899.jpg); made by tools/event_images.py (crop [0.5, 0.35, 1.0]). Nationaal Archief record: 'Auteursrechthebbende: Nationaal Archief, CC0'. Taken in Amsterdam. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event second_truce. Original 3205x2504, SHA-1 fb5bef2114d8d19013884a39b2b3534440e87e47 (https://upload.wikimedia.org/wikipedia/commons/6/63/Graaf_Bernadotte_op_Schiphol%2C_Bestanddeelnr_934-6899.jpg); made by tools/event_images.py (crop [0.5, 0.35, 1.0]). Nationaal Archief record: 'Auteursrechthebbende: Nationaal Archief, CC0'. Taken in Amsterdam. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/jerusalem_military_government.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Jerusalem_(997008872608005171.jpg"@@ -268,7 +268,7 @@ rules:credit: "Moshe Marlin Levin / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event jerusalem_military_government. Original 2000x1322, SHA-1 241a9575d316acca61a4218caabffbc9987217d5 (https://upload.wikimedia.org/wikipedia/commons/6/6e/Jerusalem_%28997008872608005171.jpg); made by tools/event_images.py (crop [0.5, 0.64, 1.0]). Commons VRTS permission ticket 2021092910005788. Context, a month before the event window (the NLI dates it June 1948). Colour slide shown in monochrome (the grade). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event jerusalem_military_government. Original 2000x1322, SHA-1 241a9575d316acca61a4218caabffbc9987217d5 (https://upload.wikimedia.org/wikipedia/commons/6/6e/Jerusalem_%28997008872608005171.jpg); made by tools/event_images.py (crop [0.5, 0.64, 1.0]). Commons VRTS permission ticket 2021092910005788. Context, a month before the event window (the NLI dates it June 1948). Colour slide shown in monochrome (the grade). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/latrun_proposal.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Latrun_(997009322899505171.jpg"@@ -277,7 +277,7 @@ rules:credit: "Boris Carmi / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event latrun_proposal. Original 1314x1314, SHA-1 b7c373c3b9d8ef7cd18c60b5bad42a682106784d (https://upload.wikimedia.org/wikipedia/commons/9/97/Latrun_%28997009322899505171.jpg); made by tools/event_images.py (crop [0.5, 0.56, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event latrun_proposal. Original 1314x1314, SHA-1 b7c373c3b9d8ef7cd18c60b5bad42a682106784d (https://upload.wikimedia.org/wikipedia/commons/9/97/Latrun_%28997009322899505171.jpg); made by tools/event_images.py (crop [0.5, 0.56, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/bernadotte_assassination.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Ben_Gurion_International_Airport_(997008136963805171).jpg"@@ -286,7 +286,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event bernadotte_assassination. Original 1476x900, SHA-1 f2d01b034fdac97de865b2a0903bf72c43919c81 (https://upload.wikimedia.org/wikipedia/commons/e/ef/Ben_Gurion_International_Airport_%28997008136963805171%29.jpg); made by tools/event_images.py (crop [0.5, 0.45, 1.0]). Commons VRTS permission ticket 2021092910005788. SENSITIVE: the picture needs the owner's sensitivity review before a shareable build may carry it (sensitivity_reviewed in event-images.yaml; Build.cs -shareable refuses until then). This frame shows the officials saluting by the UN aircraft (Ralph Bunche at left); the coffin is not in it. Identifiable officials. Sensitivity review: owner sign-off 2026-10-11 (in session, via controller). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event bernadotte_assassination. Original 1476x900, SHA-1 f2d01b034fdac97de865b2a0903bf72c43919c81 (https://upload.wikimedia.org/wikipedia/commons/e/ef/Ben_Gurion_International_Airport_%28997008136963805171%29.jpg); made by tools/event_images.py (crop [0.5, 0.45, 1.0]). Commons VRTS permission ticket 2021092910005788. SENSITIVE: the picture needs the owner's sensitivity review before a shareable build may carry it (sensitivity_reviewed in event-images.yaml; Build.cs -shareable refuses until then). This frame shows the officials saluting by the UN aircraft (Ralph Bunche at left); the coffin is not in it. Identifiable officials. Sensitivity review: owner sign-off 2026-10-11 (in session, via controller). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/operation_yoav.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:1948_Arab-Israeli_War_997008137023805171.jpg"@@ -295,7 +295,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event operation_yoav. Original 1459x916, SHA-1 0069029bf7941c344f27d9600ed68c04c9df7d3b (https://upload.wikimedia.org/wikipedia/commons/8/8f/1948_Arab-Israeli_War_997008137023805171.jpg); made by tools/event_images.py (crop [0.5, 0.48, 1.0]). Commons VRTS permission ticket 2021092910005788. SENSITIVE: the picture needs the owner's sensitivity review before a shareable build may carry it (sensitivity_reviewed in event-images.yaml; Build.cs -shareable refuses until then). Replaces Beersheba on the day it was taken (owner-delegated ruling 2026-10-11: no outcome before the choice). NLI: 'IDF forces go down before the start of Operation Yoav to free the besieged Negev', 13 October 1948, two days before the event window. Unnamed officers. Replacement picked 2026-10-11 under the controller's ruling (owner-delegated): a pre-decision or in-window photograph, nothing graphic; licence, SHA-1 and credit read through the Commons API. Sensitivity review: owner sign-off 2026-10-11 (in session, via controller). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event operation_yoav. Original 1459x916, SHA-1 0069029bf7941c344f27d9600ed68c04c9df7d3b (https://upload.wikimedia.org/wikipedia/commons/8/8f/1948_Arab-Israeli_War_997008137023805171.jpg); made by tools/event_images.py (crop [0.5, 0.48, 1.0]). Commons VRTS permission ticket 2021092910005788. SENSITIVE: the picture needs the owner's sensitivity review before a shareable build may carry it (sensitivity_reviewed in event-images.yaml; Build.cs -shareable refuses until then). Replaces Beersheba on the day it was taken (owner-delegated ruling 2026-10-11: no outcome before the choice). NLI: 'IDF forces go down before the start of Operation Yoav to free the besieged Negev', 13 October 1948, two days before the event window. Unnamed officers. Replacement picked 2026-10-11 under the controller's ruling (owner-delegated): a pre-decision or in-window photograph, nothing graphic; licence, SHA-1 and credit read through the Commons API. Sensitivity review: owner sign-off 2026-10-11 (in session, via controller). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/operation_hiram.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Galilee_(997009323161505171.jpg"@@ -304,7 +304,7 @@ rules:credit: "Boris Carmi / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event operation_hiram. Original 1273x1314, SHA-1 0c130ac6cd06aa8c74e5fd4e102f817c57c34ddd (https://upload.wikimedia.org/wikipedia/commons/8/88/Galilee_%28997009323161505171.jpg); made by tools/event_images.py (crop [0.5, 0.44, 1.0]). Commons VRTS permission ticket 2021092910005788. SENSITIVE: the picture needs the owner's sensitivity review before a shareable build may carry it (sensitivity_reviewed in event-images.yaml; Build.cs -shareable refuses until then). Sensitivity review: owner sign-off 2026-10-11 (in session, via controller). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event operation_hiram. Original 1273x1314, SHA-1 0c130ac6cd06aa8c74e5fd4e102f817c57c34ddd (https://upload.wikimedia.org/wikipedia/commons/8/88/Galilee_%28997009323161505171.jpg); made by tools/event_images.py (crop [0.5, 0.44, 1.0]). Commons VRTS permission ticket 2021092910005788. SENSITIVE: the picture needs the owner's sensitivity review before a shareable build may carry it (sensitivity_reviewed in event-images.yaml; Build.cs -shareable refuses until then). Sensitivity review: owner sign-off 2026-10-11 (in session, via controller). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/jerusalem_ceasefire.jpg"licence: CC0-1.0source: "https://commons.wikimedia.org/wiki/File:Jeruzalem._Wegversperringen_in_de_Propheet_Samuelstraat,_op_de_grens_tussen_Jord,_Bestanddeelnr_255-0327.jpg"@@ -313,7 +313,7 @@ rules:credit: "Willem van de Poll, Nationaal Archief (Van de Poll 255-0327) · CC0 · graded and cropped"adapted: "graded and cropped"commons: "CC0; CC-zero, Nationaal Archief"- note: "Event jerusalem_ceasefire. Original 2629x2613, SHA-1 c6638d02c2c60c7a88c0206623509f3801136a54 (https://upload.wikimedia.org/wikipedia/commons/b/b8/Jeruzalem._Wegversperringen_in_de_Propheet_Samuelstraat%2C_op_de_grens_tussen_Jord%2C_Bestanddeelnr_255-0327.jpg); made by tools/event_images.py (crop [0.5, 0.6, 1.0]). Nationaal Archief record: 'Auteursrechthebbende: Nationaal Archief, CC0'. Exact date not recorded (Van de Poll's 1948-1949 series). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event jerusalem_ceasefire. Original 2629x2613, SHA-1 c6638d02c2c60c7a88c0206623509f3801136a54 (https://upload.wikimedia.org/wikipedia/commons/b/b8/Jeruzalem._Wegversperringen_in_de_Propheet_Samuelstraat%2C_op_de_grens_tussen_Jord%2C_Bestanddeelnr_255-0327.jpg); made by tools/event_images.py (crop [0.5, 0.6, 1.0]). Nationaal Archief record: 'Auteursrechthebbende: Nationaal Archief, CC0'. Exact date not recorded (Van de Poll's 1948-1949 series). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/operation_horev.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:1948_Arab-Israeli_War_997008137257005171.jpg"@@ -322,7 +322,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event operation_horev. Original 1476x932, SHA-1 bce4cc3336c0a4ca544b7a1645e0e9289216d89b (https://upload.wikimedia.org/wikipedia/commons/9/97/1948_Arab-Israeli_War_997008137257005171.jpg); made by tools/event_images.py (crop [0.38, 0.6, 0.7]). Commons VRTS permission ticket 2021092910005788. SENSITIVE: the picture needs the owner's sensitivity review before a shareable build may carry it (sensitivity_reviewed in event-images.yaml; Build.cs -shareable refuses until then). Research alternate 1, not pick 2: pick 2 (997008137258905171) has two covered bundles on the track that could not be identified at full resolution. The right side of this negative is fogged; the crop keeps the left two-thirds. Sensitivity review: owner sign-off 2026-10-11 (in session, via controller). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event operation_horev. Original 1476x932, SHA-1 bce4cc3336c0a4ca544b7a1645e0e9289216d89b (https://upload.wikimedia.org/wikipedia/commons/9/97/1948_Arab-Israeli_War_997008137257005171.jpg); made by tools/event_images.py (crop [0.38, 0.6, 0.7]). Commons VRTS permission ticket 2021092910005788. SENSITIVE: the picture needs the owner's sensitivity review before a shareable build may carry it (sensitivity_reviewed in event-images.yaml; Build.cs -shareable refuses until then). Research alternate 1, not pick 2: pick 2 (997008137258905171) has two covered bundles on the track that could not be identified at full resolution. The right side of this negative is fogged; the crop keeps the left two-thirds. Sensitivity review: owner sign-off 2026-10-11 (in session, via controller). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/elections_1949.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Meitar_Collection_(997008137164005171.jpg"@@ -331,7 +331,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event elections_1949. Original 945x665, SHA-1 b651d1645cc6b346e849cb4197ab2e9b99a2c950 (https://upload.wikimedia.org/wikipedia/commons/5/5f/Meitar_Collection_%28997008137164005171.jpg); made by tools/event_images.py (crop [0.5, 0.48, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event elections_1949. Original 945x665, SHA-1 b651d1645cc6b346e849cb4197ab2e9b99a2c950 (https://upload.wikimedia.org/wikipedia/commons/5/5f/Meitar_Collection_%28997008137164005171.jpg); made by tools/event_images.py (crop [0.5, 0.48, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/armistice_egypt.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Meitar_Collection_(997008137405105171.jpg"@@ -340,7 +340,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event armistice_egypt. Original 1873x1330, SHA-1 c76e85fe84c63805aed6eb04c04c140511b16d21 (https://upload.wikimedia.org/wikipedia/commons/d/d6/Meitar_Collection_%28997008137405105171.jpg); made by tools/event_images.py (crop [0.5, 0.5, 1.0]). Commons VRTS permission ticket 2021092910005788. Context, three months before the armistice. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event armistice_egypt. Original 1873x1330, SHA-1 c76e85fe84c63805aed6eb04c04c140511b16d21 (https://upload.wikimedia.org/wikipedia/commons/d/d6/Meitar_Collection_%28997008137405105171.jpg); made by tools/event_images.py (crop [0.5, 0.5, 1.0]). Commons VRTS permission ticket 2021092910005788. Context, three months before the armistice. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/armistice_jordan.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Ben_Gurion_International_Airport_(997008137543905171).jpg"@@ -349,7 +349,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event armistice_jordan. Original 920x657, SHA-1 b43662888bdc03a1c09952b094c52e996e138cae (https://upload.wikimedia.org/wikipedia/commons/d/dc/Ben_Gurion_International_Airport_%28997008137543905171%29.jpg); made by tools/event_images.py (crop [0.5, 0.45, 1.0]). Commons VRTS permission ticket 2021092910005788. Identifiable officials (probably among them Moshe Dayan and Walter Eytan; the NLI caption does not name them). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event armistice_jordan. Original 920x657, SHA-1 b43662888bdc03a1c09952b094c52e996e138cae (https://upload.wikimedia.org/wikipedia/commons/d/dc/Ben_Gurion_International_Airport_%28997008137543905171%29.jpg); made by tools/event_images.py (crop [0.5, 0.45, 1.0]). Commons VRTS permission ticket 2021092910005788. Identifiable officials (probably among them Moshe Dayan and Walter Eytan; the NLI caption does not name them). Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/austerity_1949.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Meitar_Collection_(997008136819405171).jpg"@@ -358,7 +358,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event austerity_1949. Original 941x661, SHA-1 3304e182575fd203ab3d5c1f400eba2e5227df64 (https://upload.wikimedia.org/wikipedia/commons/c/c5/Meitar_Collection_%28997008136819405171%29.jpg); made by tools/event_images.py (crop [0.5, 0.45, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event austerity_1949. Original 941x661, SHA-1 3304e182575fd203ab3d5c1f400eba2e5227df64 (https://upload.wikimedia.org/wikipedia/commons/c/c5/Meitar_Collection_%28997008136819405171%29.jpg); made by tools/event_images.py (crop [0.5, 0.45, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/frumkin_commission.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Rosh_Ha%27Ayin_(997008136256005171).jpg"@@ -367,7 +367,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection / Israel State Archives · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line2, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event frumkin_commission. Original 1249x1338, SHA-1 eb469d7bf52b6c15a005cfb2a9e0c22f8ce80c21 (https://upload.wikimedia.org/wikipedia/commons/b/b5/Rosh_Ha%27Ayin_%28997008136256005171%29.jpg); made by tools/event_images.py (crop [0.5, 0.52, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event frumkin_commission. Original 1249x1338, SHA-1 eb469d7bf52b6c15a005cfb2a9e0c22f8ce80c21 (https://upload.wikimedia.org/wikipedia/commons/b/b5/Rosh_Ha%27Ayin_%28997008136256005171%29.jpg); made by tools/event_images.py (crop [0.5, 0.52, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/maabarot_policy.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Ma%27abara_(997008136927805171.jpg"@@ -376,7 +376,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event maabarot_policy. Original 1914x1322, SHA-1 ee0b388c7cb1eed63a920d4b3831119c9ab28ff6 (https://upload.wikimedia.org/wikipedia/commons/9/9e/Ma%27abara_%28997008136927805171.jpg); made by tools/event_images.py (crop [0.5, 0.55, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event maabarot_policy. Original 1914x1322, SHA-1 ee0b388c7cb1eed63a920d4b3831119c9ab28ff6 (https://upload.wikimedia.org/wikipedia/commons/9/9e/Ma%27abara_%28997008136927805171.jpg); made by tools/event_images.py (crop [0.5, 0.55, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/law_of_return.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Jerusalem_(997008136347905171).jpg"@@ -385,7 +385,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event law_of_return. Original 1330x1346, SHA-1 8414ef53805ec5628dc8a7d20ec1593c3a83982d (https://upload.wikimedia.org/wikipedia/commons/b/b8/Jerusalem_%28997008136347905171%29.jpg); made by tools/event_images.py (crop [0.5, 0.55, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event law_of_return. Original 1330x1346, SHA-1 8414ef53805ec5628dc8a7d20ec1593c3a83982d (https://upload.wikimedia.org/wikipedia/commons/b/b8/Jerusalem_%28997008136347905171%29.jpg); made by tools/event_images.py (crop [0.5, 0.55, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/clothing_rationing_1950.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Tel_Aviv-Yafo_997008137472205171.jpg"@@ -394,7 +394,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event clothing_rationing_1950. Original 1330x1314, SHA-1 65d46a266250b3e28b0adf3f44f43d03c91b836e (https://upload.wikimedia.org/wikipedia/commons/0/06/Tel_Aviv-Yafo_997008137472205171.jpg); made by tools/event_images.py (crop [0.5, 0.62, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event clothing_rationing_1950. Original 1330x1314, SHA-1 65d46a266250b3e28b0adf3f44f43d03c91b836e (https://upload.wikimedia.org/wikipedia/commons/0/06/Tel_Aviv-Yafo_997008137472205171.jpg); made by tools/event_images.py (crop [0.5, 0.62, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/ministry_supply_crisis.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Tel_Aviv-Yafo_997008137468405171.jpg"@@ -403,7 +403,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event ministry_supply_crisis. Original 1889x1314, SHA-1 847ad5f90f86a9754d5cfb7b1af77731d636333c (https://upload.wikimedia.org/wikipedia/commons/6/6a/Tel_Aviv-Yafo_997008137468405171.jpg); made by tools/event_images.py (crop [0.5, 0.5, 1.0]). Commons VRTS permission ticket 2021092910005788. Context, six months before the event. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event ministry_supply_crisis. Original 1889x1314, SHA-1 847ad5f90f86a9754d5cfb7b1af77731d636333c (https://upload.wikimedia.org/wikipedia/commons/6/6a/Tel_Aviv-Yafo_997008137468405171.jpg); made by tools/event_images.py (crop [0.5, 0.5, 1.0]). Commons VRTS permission ticket 2021092910005788. Context, six months before the event. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/hula_drainage.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Hula_Valley_(997008137583605171.jpg"@@ -412,7 +412,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event hula_drainage. Original 1322x1322, SHA-1 81b3d2ddbf29f916c54a988338aaa44348cf0afe (https://upload.wikimedia.org/wikipedia/commons/0/0a/Hula_Valley_%28997008137583605171.jpg); made by tools/event_images.py (crop [0.5, 0.42, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event hula_drainage. Original 1322x1322, SHA-1 81b3d2ddbf29f916c54a988338aaa44348cf0afe (https://upload.wikimedia.org/wikipedia/commons/0/0a/Hula_Valley_%28997008137583605171.jpg); made by tools/event_images.py (crop [0.5, 0.42, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/iraqi_exodus.jpg"licence: CC-BY-4.0source: "https://commons.wikimedia.org/wiki/File:Aliyah_(997008136551705171).jpg"@@ -421,7 +421,7 @@ rules:credit: "Benno Rothenberg / Meitar Collection / National Library of Israel / The Pritzker Family National Photography Collection · CC BY 4.0 · graded and cropped"adapted: "graded and cropped"commons: "CC BY 4.0; Cc-by-4.0, Meitar Collection/license credit line, National Library of Israel/Meitar Collection; Items with VRTS permission confirmed"- note: "Event iraqi_exodus. Original 1914x1322, SHA-1 70c4dfa48f2794853b6eb6229663f2840c68c613 (https://upload.wikimedia.org/wikipedia/commons/1/1d/Aliyah_%28997008136551705171%29.jpg); made by tools/event_images.py (crop [0.5, 0.55, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event iraqi_exodus. Original 1914x1322, SHA-1 70c4dfa48f2794853b6eb6229663f2840c68c613 (https://upload.wikimedia.org/wikipedia/commons/1/1d/Aliyah_%28997008136551705171%29.jpg); made by tools/event_images.py (crop [0.5, 0.55, 1.0]). Commons VRTS permission ticket 2021092910005788. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."- glob: "unity/Assets/UI/EventImages/israel_bonds.jpg"licence: Public-Domainsource: "https://commons.wikimedia.org/wiki/File:Photograph_of_President_Truman_in_the_Oval_Office,_evidently_receiving_a_Menorah_as_a_gift_from_the_Prime_Minister_of..._-_NARA_-_200318.jpg"@@ -430,5 +430,5 @@ rules:credit: "Abbie Rowe, National Park Service / U.S. National Archives (NARA 200318) · public domain · graded and cropped"adapted: "graded and cropped"commons: "Public domain; PD-USGov, NARA-cooperation"- note: "Event israel_bonds. Original 3000x2393, SHA-1 990a79527ad34e1296129d1956bad1e602127db8 (https://upload.wikimedia.org/wikipedia/commons/5/53/Photograph_of_President_Truman_in_the_Oval_Office%2C_evidently_receiving_a_Menorah_as_a_gift_from_the_Prime_Minister_of..._-_NARA_-_200318.jpg); made by tools/event_images.py (crop [0.5, 0.58, 1.0]). US federal work (Abbie Rowe, National Park Service photographer at the White House), public domain in the US. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller)."+ note: "Event israel_bonds. Original 3000x2393, SHA-1 990a79527ad34e1296129d1956bad1e602127db8 (https://upload.wikimedia.org/wikipedia/commons/5/53/Photograph_of_President_Truman_in_the_Oval_Office%2C_evidently_receiving_a_Menorah_as_a_gift_from_the_Prime_Minister_of..._-_NARA_-_200318.jpg); made by tools/event_images.py (crop [0.5, 0.58, 1.0]). US federal work (Abbie Rowe, National Park Service photographer at the White House), public domain in the US. Licence verified 2026-10-11 via the Commons API (licence review), with the owner's sign-off 2026-10-11 (in session, via controller). Re-cropped 2026-10-13 to the centred card's 16:9 media header (at most 960x540) from the same original, the same crop centre and width; only the crop changed, the credit and licence are as before."removed: []diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fa5a40de6..f2c188410 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -208,6 +208,12 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIB- Map: the unit figures' uniforms are darker and warmer, so a trio stands out against the sunlit ground as promo 03'sdoes instead of khaki on khaki; a figure's slope base is painted trodden earth instead of a dark grey disc. Areadability choice at map scale; the sourced kit is unchanged (refs #197).+- The decision card opens in the middle of the screen (decision cards, 2026-10-13): up to 1040 px wide, with a 16:9 media+ header that shows the event's archival photograph at up to 960x540 (the 24 photographs re-cropped from the same originals+ to 16:9). While it is open the map is blocked: a dim backdrop takes map clicks, and the info panel and the minimap are+ out of reach, while the top bar stays usable. Hide (or Escape) collapses it to a "Decision waiting" button that brings+ it back, and a new event opens it again with the keyboard focus on the card (Tab reaches the options; none is lit before+ the player picks). Any open screen hides it until it closes. Presentation only: no golden moves.- The scenario runner (`Scenario`) and the `mvp-slice` golden's player (`MvpGolden`) move from the tests into `Statecraft.Sim`,next to `GoldenRun`, so Unity can play those goldens too (step 1 of #394). Same code, same hashes; no golden moves.- The map's railways and roads are placed from a bake at boot instead of being built (refs #321), as the water'sdiff --git a/docs/event-images.md b/docs/event-images.mdindex eeea0d516..f5ef72594 100644--- a/docs/event-images.md+++ b/docs/event-images.md@@ -18,7 +18,7 @@ Owner ruling 2026-10-11 (summarised; recorded in `docs/CONTENT_POLICY.md` sectio| What | Where ||---|---|-| The pictures, at most 720 x 320 JPEG (9:4; `idf_founding` is 612 x 272, as its original is small), each under 200 KB | `unity/Assets/UI/EventImages/<event>.jpg` |+| The pictures, at most 960 x 540 JPEG (16:9, the centred card's media header; `idf_founding` is 640 x 360, as its original is small), each under 450 KB | `unity/Assets/UI/EventImages/<event>.jpg` || The mapping: event, Commons page, original URL and SHA-1, licence, artist, credit, alt text, crop, sensitivity flags | `unity/Assets/UI/EventImages/event-images.yaml` || The catalog the game loads (`Resources.Load`, so there is no scene field) | `unity/Assets/Resources/EventImageCatalog.asset` || Provenance rows, one per file (`status: verified` once the owner signs off) | `ASSETS.yaml` |@@ -31,28 +31,29 @@ and `SaveGameTests` stay unchanged.## The card-When the event has a picture, it fills the top of the card in a gold frame, as in the promo. Its credit line runs as a+The card opens in the middle of the screen, up to 1040 px wide, over a dim backdrop (decision cards, 2026-10-13). When the+event has a picture, it fills the card's 16:9 media header (960x540 at the 1080p reference) in a gold frame, as in the+promo. Its credit line runs as asmall italic caption strip along the picture's bottom edge, so the credit is always visible but costs the card noheight. The minister's portrait is hidden, and the office line still names the minister. The alt text is the picture's`tooltip`, and `EventCardPresenter.PhotoAlt` exposes it.-The photograph needs a band at least as tall as its credit line plus 48 px of picture+The header is 16:9 whenever the card has the height for it. The photograph needs a band at least as tall as its credit line plus 48 px of picture(`EventCardPresenter.MinPhotoHeight`). The credit strip never shrinks (`flex-shrink: 0`), so the credit that CC BY 4.0requires is never cut.-- On a window at least 990 px tall (logically; `EventCardPresenter.ScrollFallbackHeight`, the playtest rule that the- body never scrolls there) the picture gives way first. If the band would fall below that height, the whole- photograph is dropped: picture, credit and tooltip.-- On a shorter window, the body text may scroll, as it already could. The band keeps the height it needs and the- body scrolls for the rest. Without this, an ultrawide 2560x1080 window never showed a photograph. The photograph is- dropped only when the options would otherwise be cut.+- On every window the picture gives way first when the card is taller than the room under the bar: the header gets+ shorter (the picture is cropped, never squeezed), so the text and the options always show whole. If the band would+ fall below that height, the whole photograph is dropped: picture, credit and tooltip, and only then may the body+ scroll. (The old 200 px band in the right-hand column had to let the body scroll first on short windows, or an+ ultrawide 2560x1080 window never showed a photograph; the 16:9 header has the room to give.)- When the window grows again, a dropped photograph comes back without waiting for the next event.- A dropped photograph does not bring back the minister's portrait, which is taller still. The office line still namesthe minister.- On a short window the card may show the photograph for one frame before it drops.-`UiLayoutTests.EveryEventCardStaysAboveTheMinimap`, `AShortWindowShowsThePhotographWholeOrDropsIt` (1280x600 and-2560x1080) and `ADroppedPhotographReturnsWhenTheWindowGrows` cover this. The card's height cap rose from 560 to 600 px-to make room; the right-hand column still bounds it above the minimap.+`UiLayoutTests.EveryEventCardFitsTheDecisionLayer` (every HUD window shape, the two- and three-row bars included),+`AShortWindowShowsThePhotographWholeOrDropsIt` (1280x600 and 2560x1080) and `ADroppedPhotographReturnsWhenTheWindowGrows`+cover this. The decision layer under the top bar bounds the card's height.## Adding or replacing a picturediff --git a/docs/superpowers/plans/2026-10-13-decision-videos.md b/docs/superpowers/plans/2026-10-13-decision-videos.mdnew file mode 100644index 000000000..2056a4a07--- /dev/null+++ b/docs/superpowers/plans/2026-10-13-decision-videos.md@@ -0,0 +1,353 @@+# Decision videos: implementation plan++Date: 2026-10-13. Branch `ui/decision-card-centred` from `origin/main` `8cc4776`, worktree `.worktrees/decision-videos`.++Design of record: `reports/Video at decision moments.md` (its recommendation, the "Full plan", chosen by the owner on+2026-10-13). Inputs: the repo audit (`video-integration-proposal.md`, session scratchpad) and+`research_notes/Video at decision moments/unity_webgl_video.md`.++## Owner rulings this plan implements (2026-10-13)++1. Centred, large decision card, up to about 1040 px, with a 16:9 media header.+2. The archival photograph comes first. An "Illustration" switch shows a silent 4–8 s AI loop, labelled+ "AI-generated illustration", on about 12 events.+3. Phase 2: a 3–4 s skippable outcome clip, for the historical option only, played at End Turn.+4. Deport never gets any video.+5. The Ben-Gurion recording on the start screen is a separate PR (PR 4 below). The ISA file has arrived.+6. AI clip rights: "no need to check, just use them". This goes in `docs/oss/DECISIONS.md` (PR 1).++## Constraints, checked against the code++- **The sim never sees video.** The mapping lives in `unity/Assets/UI/EventVideos/event-videos.yaml`, which only+ Unity reads. The clips live in `unity/Assets/StreamingAssets/video/`. Nothing goes under `content/`. The goldens must+ not move: 1950 `71e9904d`, 1952 `62f8ec61`, smoke `d3fdd459`.+- **The smoke run doesn't depend on layout.** It presses `event-options`' first `Button` with a+ `NavigationSubmitEvent` (`GameRoot.cs:376-381`). It doesn't depend on where the card is or which buttons sit in the+ header, as long as the options stay inside `#event-options` and stay first in it.+- **Automated runs skip the start screen** through `StartScreenPresenter.Skipped`, which reads smoke, `golden`, `shot`,+ `vprofile`, `profile`, `units`, `borderproof` and `nostart`. Video-off uses the same automated flags but not+ `nostart`, because that one is manual.+- **#409 `ScreenNav.DisableCovered`** disables the panels that a root class hides (`top-bar`, `right-column`,+ `info-panel`). Today the card sits inside `right-column` (`Game.uxml:80-110`, `Statecraft.uss:166`, 480 px wide).+- **The card's photographs are 9:4 crops at 720×320** (`tools/event_images.py` `ASPECT`, `WIDTH`; 24 rows in+ `event-images.yaml`). A 16:9 header needs new crops from the originals, at up to 960×540.+- **The Hebrew UI is not loaded by the game** (`strings.he.yaml` header; #193). Event text is English content.+- **#401 (HUD PR A)** edits `Game.uxml` (UiFrame `filigree` lines, including the event card's at line 99, and the info+ panel) and `Statecraft.uss` (the info panel). This plan doesn't change any info-panel or gilt-trim rule. The only+ overlap is the event card's UiFrame line, which moves with the card: whichever PR merges second takes the other's+ one-line change.+- **WebGL video** must come from a URL in StreamingAssets, with one VideoPlayer, a RenderTexture and+ `Background.FromRenderTexture`, all unverified in this project until the spike. `com.unity.modules.video` is+ already in `manifest.json`.++## Decisions taken in this plan (rank 10, with the devil's advocate)++| # | Decision | Devil's advocate | Why it stands |+|---|---|---|---|+| A | The card leaves `right-column` for a new full-height layer, `event-layer`, under the bar. The minimap keeps the column. | Moving the element conflicts with #401's one-line UiFrame change. | Centring a child of a 480 px right-hand column needs negative offsets that depend on the window size. A sibling layer is the plain way to do it, and the conflict is one line. |+| B | While a screen (Cabinet, Budget, Defence, Why) is open, the card is hidden and disabled. It comes back when the screen closes. | Today a player can read the Cabinet beside an open event. | A centred card and a centre screen overlap at every window size. This is #210's existing two-row rule, extended to every tier, and it goes in `DisableCovered`, so nothing re-enables a covered panel. |+| C | Video is opt-in per card: the photograph shows first, and the switch starts the loop. There is no autoplay, so there is no separate pause button and no reduced-motion jslib. | WCAG 2.2.2 asks for pause, stop or hide on motion longer than 5 s. | 2.2.2 covers content that starts automatically. Here the player's own switch starts the loop and the same switch stops it. |+| D | The mapping is a YAML TextAsset that `GameRoot` takes as a serialized field, the same way it takes `strings.en.yaml`, parsed at start by `EventVideoMapping` with YamlDotNet. There is no editor importer and no ScriptableObject. | The photos use an importer and a ScriptableObject (`EventImageImport`). | The photos need the importer to reference textures. Clips are URLs, so they don't, and the importer would be an abstraction nobody asked for. An EditMode test checks the rows instead: each event exists, each file exists, and no row names a Deport option. |+| E | Encoding is pinned in `tools/encode_event_videos.py`: H.264 High, yuv420p, 960×540, 24 fps, CRF 28, `-g 48`, `-an`, `+faststart`. It refuses any output that has an audio stream. | 720p is sharper. | The header is about 960 px wide at most at the 1080p reference. 540p is about 40% smaller (audit §4.3). |+| F | Video is forced off by `EventVideo.ForcedOff(url, args, webgl)`: smoke > 0, `golden`, `shot`, `vprofile`, `profile`, `units`, `borderproof`. When it is off, the switch is not shown at all, so captures and `?smoke` see the same card as PR 1. | The switch could be shown greyed out instead. | Not shown is the deterministic choice: no element to focus, nothing to measure. |+| G | The fallback: if a clip is missing, fails (`errorReceived`) or isn't prepared within 8 s, the header goes back to the photograph and the switch hides for that event. | It could retry. | A silent retry hides errors. The photograph is the source of truth. |++## Questions for you before code (each ranked below 10, so I won't act on them alone)++1. **Modal or not (9/10).** At 1920×1080 a 1040 px card with a full 16:9 header reaches from the bar nearly to the+ bottom of the window, and it overlaps the info panel (x 440–1480 against x 16–536). I propose:+ - while the card is open, a dim scrim under the bar blocks map clicks, and the info panel and the right-hand column+ are disabled through `DisableCovered`;+ - a "Hide" button on the card collapses it to a small "Decision waiting" button at the top right under the bar, which+ reopens it;+ - the card reopens by itself when the shown event changes.++ Without the collapse, a player couldn't look at the map or inspect a hex while any decision is pending, and that is a+ regression. The alternative is no scrim, and the card overlapping the map and the info panel.+2. **The illustration switch persists for the session (8/10).** I propose that once the player picks Illustration, the+ following cards open on their clip (when they have one) until the player switches back. It isn't saved, and every+ launch starts on the photograph. The alternative resets to the photograph on every card.+3. **A burned-in bug on the clips (8/10).** The report's table asks for a small burned-in bug as well as the UI label,+ because StreamingAssets files can be downloaded and passed around. This machine's ffmpeg has no `drawtext` and+ Pillow has no raqm. So I'd render "AI-generated · נוצר בבינה מלאכותית" once, as a transparent PNG, in headless+ Chrome (proper bidi, Frank Ruhl Libre and EB Garamond, both OFL), commit it with an ASSETS row, and overlay it with+ ffmpeg. The alternatives are English only, or no bug.+4. **ASSETS status for the clips (9/10).** You said "status per the repo's convention, citing that ruling". The+ convention has two statuses: `owner-verify` (waiting for the owner) and `verified` (the owner signed off). Since the+ ruling *is* the owner's sign-off, I'd use `verified`, with the note "Owner ruling 2026-10-13 (DECISIONS.md D-V):+ terms not checked". That stops the clips blocking `--release`. Consequence: the Dreamina clips (A07, A09) would pass+ the release gate for a paid build. `owner-verify` would keep them blocking. Which one?+5. **Sensitive events (9/10).** `ten_days` (J09) and `operation_yoav` (W04a) are `war-casualties`. The audit+ recommended a per-clip sensitivity review. I propose `sensitive: true, sensitivity_reviewed: false` rows that a+ `-shareable` build refuses, mirroring the photo gate in `Build.cs`, and they show normally in dev builds. The+ alternative is to leave those two out until you review them.+6. **The contact sheet tiers and Hebrew (9/10).**+ - The WebGL player is the Mobile tier, and its captures come from headed Chrome.+ - Editor renders show no UI (`MapCapture.Promo`), and a macOS player can't be driven by CDP. So the PC tier would be+ an *uncommitted* editor capture that renders the MapCapture scene at quality level 1 and composites the UI document+ through `PanelSettings.targetTexture`. It is deleted after use.+ - "HE" can only mean the card rendered with `strings.he.yaml`, so that just the new labels are Hebrew. The full RTL+ card waits for #193.++ Is that what you want?+7. **The photographs grow (9/10).** New 16:9 crops at up to 960×540 cost about 4× the pixels of 720×320 in `.data`, and+ their GPU memory goes from about 2.9 MB to about 6.5 MB (DXT1 crunched). I'll measure the `.data.br` change in PR 1 and+ report it. A 16:9 crop shows more of each picture than the 9:4 one, so the five sensitivity-reviewed photographs+ (altalena, ten_days, operation_yoav, operation_hiram, bernadotte_assassination) are flagged on the contact sheet for+ a look.++## Answers (coordinator, 2026-10-13; plan approved)++1. Modal: yes. A dim backdrop blocks map clicks, and the info panel and the minimap are disabled while the card is open.+ Hide collapses the card to "Decision waiting" (EN and HE), which reopens it, and a new event reopens it by itself.+ Hide and reopen go in the focus tests.+2. The Illustration switch is remembered for the session, and is not saved.+3. Burned-in bug: yes, the bilingual PNG from headless Chrome, overlaid with ffmpeg. It is small, in a corner, inside the+ safe area.+4. Clip rows: `verified`, citing D-V. D-V says that it covers commercial and paid builds and that the owner accepts the+ Dreamina restriction.+5. J09 and W04a: sensitive and not reviewed, so the gate refuses them until the owner reviews them.+6. Contact sheet as planned, with the HE limitation (#193) labelled on the sheet.+7. Bigger photographs: fine. Report the `.data` change, and flag the sensitivity-reviewed photographs whose new crop shows+ more.+8. The WAV goes through Unity's AudioClip import with no processing (no normalising, no force to mono). The ISA licence+ allows technical format changes. The sha256 test on the source WAV stays.++## PR 1: the centred card, photographs only, plus the DECISIONS ruling++Branch `ui/decision-card-centred`. The issue to claim: open "Decision cards: centred, large, 16:9 media header (video+phase 0)" (`Refs #106, #41`) and comment the branch on it.++**Files**+- `unity/Assets/UI/Game.uxml`:+ - move `event-card` out of `right-column` into a new `event-layer` (after `info-panel`, before the screens), with+ the card's existing inner block unchanged, except that `event-photo` becomes `event-media` (16:9);+ - add the `event-hide` button and the `event-reopen` button (question 1).+- `unity/Assets/UI/Statecraft.uss`:+ - `.event-layer`: absolute; left, right and bottom 16; `top` per HUD tier (112, 140, 232, 328, the same as+ `right-column`);+ - `.event-card`: `width: 1040px; max-width: 100%`, centred, `max-height: 100%`;+ - `.event-media`: a 16:9 height, set by the presenter from the card's width, since USS has no aspect-ratio property.+ It is still the first to shrink on short windows, as now;+ - the tier, `screen-open` and `start-open` rules for the layer;+ - `.event-open .toast` at the top centre over the media header.++ No rule for `.info-panel`, `UiFrame` or the gilt trim is changed.+- `EventCardPresenter.cs`:+ - the media header's height (width × 9/16, capped by the room left);+ - the collapse and reopen;+ - card focus when a new event opens (the card itself, not an option, so no choice looks recommended; Tab reaches the options);+ - `RoomForDroppedPhoto` reads the layer instead of `right-gap`.++ The drop and restore logic (`MinPhotoHeight`, the CC BY credit never cut) stays as it is.+- `ScreenNav.cs` (`DisableCovered`): `event-layer` is disabled under `start-open` and `screen-open`. While the card is+ open (`event-open`), `right-column` and `info-panel` are disabled.+- `HudPresenter.cs`: nothing, because the tier classes already exist.+- `tools/event_images.py`: `ASPECT = 16/9`, `WIDTH = 960`, and `MAX_BYTES` re-checked.+- `event-images.yaml`: the `crop` values reviewed for 16:9 and the comment updated.+- The 24 JPGs remade from the originals, fetched into an empty folder outside the repo with a project User-Agent, no+ owner identifiers, and their SHA-1 checked by the tool.+- `EventImageImport.MaxEdge` stays 1024.+- `ASSETS.yaml`: the crop text in each photo row's note (licences unchanged).+- `docs/event-images.md`.+- `EventImageCatalog.cs`: the memory comment.+- `strings.en.yaml` and `strings.he.yaml`: `event.hide`, `event.reopen`.+- `docs/oss/DECISIONS.md`, a new ticked line (moved to its own docs PR, #449, after review):+ > - [x] D-V AI video clips in the game: Veo 3.1 (through ElevenLabs) and Seedance 2.0 (through Dreamina).+ > Decided (owner, 2026-10-13): "no need to check, just use them". D-D found that Dreamina's terms restrict commercial+ > use, and D5 covered images only; the owner accepts this.+- `CHANGELOG.md`, Unreleased.++**Tests (EditMode, written first)**+- `UiLayoutTests`, extending the existing tests, plus `DecisionCardLayoutTests`. At every `PromoHudTests` shape+ (1920×1080, 1280×720, 1366×768, 1760×1000, 1920×1200, 1440×900, 1024×768, 1280×1024, 1024×1024, 960×1080, 800×1000),+ plus 390×844, 960×600 and 2560×1080, for every real event:+ - the card is centred (|left gap − right gap| ≤ 1 px), at most 1040 logical px wide, inside the layer, and below the+ bar at every tier, the narrow two-row and three-row tiers included;+ - the media header is 16:9 within 1 px when the window has room, and the photograph is shown whole with its credit or+ dropped, never cut (the current rules, re-pointed);+ - the options are inside the card and their text fits;+ - no window shape at least as tall as 1366×657 scrolls the body.+- **Focus and #409:**+ - with the card open, `info-panel` and `right-column` buttons are disabled and Tab can't reach them;+ - collapsing the card enables them again;+ - with a screen open (every tier), the card is hidden and disabled, and closing the screen restores it;+ - under the start screen the layer is disabled;+ - a new event puts the focus on the card (no option lit), and an event that is already open does not steal the focus from+ the top bar.+- **Collapse:** Hide, then reopen; a new shown event reopens the card.+- **The existing tests still pass:** `EventCardTests`, `TheTwoRowHudKeepsWhatAScreenCoversOutOfReach`,+ `AWideScreenHidesTheInfoPanelItCovers`, `PromoHudTests.TheToastIsOpaqueAndClearOfTheScreens` (updated for the toast+ over the card), and `SimSmokeTests`.+- `tools/tests/test_event_images.py`: the 16:9 box, and the size cap.++**Verification**+- `dotnet test sim/Statecraft.sln`, the tools pytest, `scripts/oss` pytest and `check_repo.py`.+- The full EditMode suite under `machine_lock --shared --wait-unity`, with 0 `warning CS`.+- A WebGL build, then `web_check.py --query "golden&smoke=5"` with the three values.+- The `.data.br` and `.wasm.br` sizes against main, built on the same machine.+- `headed.py boot --cpu 4 --runs 5` against main: the map build doesn't change, and the first frame is reported.+- Then revert the `ProjectSettings`, `Assets/Settings` and `UNITY_MCP` churn.+- Contact sheet to you **before the push**:+ - EN and HE label sets;+ - Mobile (WebGL, headed Chrome) and PC (editor composite);+ - 1920×1080, 1440×900, 1024×1024 (two-row), 390×844 (three-row), and 2560×1080;+ - a photograph event, a portrait-only event, and a long event;+ - the collapse state;+ - the 24 new 16:9 crops on a separate sheet, the sensitive ones marked.++## PR 2: the WebGL spike, then the clips and the Illustration switch++Branch `ui/decision-card-video`, from main after PR 1 merges, or stacked on it if you say so.++**Step 1, the spike (measure before building the rest).** One clip (L14), a minimal `CardVideo`, and one event.+- `.wasm.br`, `.data.br` and `framework.js` sizes against PR 1's build. Is the video module stripped today? The spike+ shows that.+- `headed.py boot --cpu 4 --runs 5`, interleaved with the PR 1 build: map-build median and range, first frame. The+ #321 margin is about 100 ms over 2620 ms against the 2720 ms budget, and a regression beyond noise is a stop. No+ clip is requested before the map is built: the player is created lazily, on the first switch press.+- Playback in headed Chrome (ANGLE Metal):+ - after pressing the switch, two screenshots 1 s apart differ inside the header, and nowhere else;+ - the console has no errors;+ - `Background.FromRenderTexture` updates without `MarkDirtyRepaint` (if it doesn't, repaint on `frameReady`);+ - a renamed clip falls back to the photograph within 8 s;+ - a frame-time sample with the loop running and with it off (`?vprofile` isn't usable here, so CDP+ `Performance.getMetrics`).+- Firefox and Safari aren't on this machine's automation path. I'll note them as untested unless you want a manual+ check.++The numbers go to you; then step 2.++**Step 2, files**+- `unity/Assets/UI/EventVideos/event-videos.yaml`. One row per event: `event`, `file`, `source` (the promo shot and+ its sha256), `generator`, `generated` (date), `alt`, `sensitive`, `sensitivity_reviewed`.+- `unity/Assets/StreamingAssets/video/<clip>.mp4`, 12 clips:++ | Event | Shot | Source |+ |---|---|---|+ | latrun_proposal | L14 | demo2 v2, Veo 3.1 |+ | first_truce | K03a | demo3, Veo 3.1 |+ | jerusalem_ceasefire | K03b | demo3, Veo 3.1 |+ | operation_yoav | W04a | demo3, Veo 3.1; sensitive |+ | maabarot_policy | W05a | demo3, Veo 3.1 |+ | frumkin_commission | W05b | demo3, Veo 3.1 |+ | law_of_return | K04a | demo3, Veo 3.1 |+ | hula_drainage | W06 | demo3, Veo 3.1 |+ | austerity_1949 | A09 | demo2 v1, Seedance 2.0 / Dreamina; audio stripped |+ | iraqi_exodus | A07 | demo2 v1, Seedance 2.0 / Dreamina; audio stripped |+ | ten_days | J09 | demo2 v2, Veo 3.1; sensitive |+ | jerusalem_military_government | JQ18 | demo2 v2, Veo 3.1; generic alt, because it shows May |++ - Not used: H01, A27 (Altalena), any demo 1 file, any finished cut, any audio.+ - Each source is copied out of `promo/` (read-only) and encoded by the script. Every clip gets a frame contact sheet+ checked for recognisable faces before it is committed.+ - About 8–9 MB in all (audit §4.3).+- `tools/encode_event_videos.py`:+ - pinned arguments;+ - an `ffprobe` check of each output: H.264, 960×540, no audio stream, `moov` before `mdat`;+ - an optional bug overlay (question 3).+- `EventVideoMapping.cs` (parse and `Problems`), and `EventVideo.cs` (`ForcedOff`, URL).+- `CardVideo.cs`: one lazy `VideoPlayer` (URL source, RenderTexture target, `audioOutputMode None`, looping), one+ reused 960×540 RenderTexture released when the card closes or collapses, and `errorReceived` and the timeout leading+ to the fallback.+- `EventCardPresenter.cs`: the Photograph | Illustration switch in the header's corner, and the "AI-generated+ illustration" strip in place of the credit while the clip shows. Focus order: options, then Hide, then the switch.+- `GameRoot.cs`: the serialized TextAsset, and `ForcedOff` passed in.+- `Build.cs`: `-shareable` refuses sensitive unreviewed clip rows (question 5).+- `strings.{en,he}.yaml`: `event.photo`, `event.illustration`, `event.ai_label`.+- `ASSETS.yaml`: one row per clip, with `ai_generated: true`, the generator, the generation date, the source shot and+ its sha256, the encode recipe, and the status per question 4, citing D-V. Plus a row for the bug PNG if question 3+ goes ahead.+- `docs/ai-disclosure.md` regenerated, the README "AI use" line, `docs/event-videos.md`, `CHANGELOG.md`.++**Tests (EditMode)**+- Mapping:+ - every row's event exists in `content/` and its file exists in StreamingAssets;+ - no duplicate events;+ - no row names an event with an option whose id is `deport` (the Deport guard, ahead of GDD Phase 6);+ - `ai_generated` is required.+- `ForcedOff` is true for each automated flag (WebGL URL and desktop args) and false for none or `nostart`. With video+ forced off, the switch isn't in the tree and the card matches PR 1's.+- The switch appears only for events with a clip. Pressing it shows the label and hides the credit. Pressing it again+ restores the photograph and the credit.+- Fallback: a missing file, or a simulated `errorReceived`, puts the photograph back, hides the switch for that event+ and logs once.+- Focus order: options, then Hide, then the switch.+- Content hash and goldens: `SimSmokeTests` and the WebGL `golden&smoke=5` are unchanged, and a test asserts that+ `event-videos.yaml` isn't under `Paths.Content`.+- Layout: every PR 1 layout test, with the switch present.++**Verification:** as in PR 1, plus the spike numbers repeated on the final build, and an itch-style relative-path check+(`web_check` serves the build from a subdirectory). Then a contact sheet and the measurements to you before the push:+- the 12 clips' mid frames;+- the switch states, in EN and HE;+- the fallback;+- Mobile and PC.++## PR 3 (later, after your review of PR 2): outcome clips at End Turn++Only for the historical option (`historical: true`) of a mapped event, and only when that option was the one queued.+Played at End Turn as "this turn's orders": 3–4 s, skippable by click, Esc, Enter or Space, with video forced off in+automated runs. Deport never gets a clip, and the mapping test refuses it. Candidates from the audit:++| Event | Option | Shot |+|---|---|---|+| first_truce | accept | A02 |+| operation_horev | launch | A05 |+| maabarot_policy | maabarot | A08 |+| hula_drainage | continue_works | W08 |++There is no A27. The detailed plan comes after PR 2.++## PR 4 (separate, start screen): Ben-Gurion's Declaration recording++The input is `promo/demo2/audio/archival/BG-1948-ORIGINAL_isa-00113hj.wav`:+- 9.29 s, sha256 `2b949e12f1d33d6f…`;+- Israel State Archives item 00113hj (טס-169/21), rights field «גנזך המדינה»;+- provenance and the licence quotes are in the session scratchpad, `bg-audio/isa/*.info.json`.++Branch `ui/start-screen-declaration-audio`, which plays independently of the video PRs. I'll plan it in full when it+starts. The outline:++- **The file is not altered.** No trim, fade, denoise or loudness change.+ - Copy it byte for byte to `unity/Assets/Audio/declaration-1948-isa-00113hj.wav`.+ - Import it as an AudioClip with **PCM** compression, so Unity doesn't transcode it. The cost of PCM is about 9.29 s ×+ rate × channels × 2 bytes; I'll measure it.+ - Check: the imported clip's sample count and rate match the WAV.+ - I'll ask you whether Unity's container conversion counts as "alteration". If it does, the fallback is the raw file+ in StreamingAssets played through a jslib `<audio>` element.+- **It plays only after a user gesture.** On the start screen, a "Play the recording" button (a click, Enter or a tap)+ starts it. It never autoplays and never plays on Continue or New Game by surprise. The button switches to "Stop".+ `ForcedOff` (PR 2) applies: automated runs skip the start screen anyway. It is muted under the existing skip flags.+- **EN and HE captions in UI Toolkit:**+ - Hebrew in Frank Ruhl Libre through the advanced text generator, `language-direction="RTL"`, as `start-he` already+ does;+ - English is the official translation, the same text as the panel;+ - the cue times come from listening, and live in a small Unity-side `declaration-captions.yaml`;+ - `StartScreenTests` renders both and checks the RTL order.+- **The credit line on screen:** "Recording: Israel State Archives", beside the existing "Painting: AI-generated." It+ plays over the still painting only, never with H01 or any moving image.+- **Provenance:**+ - an `ASSETS.yaml` row with the licence "Israel State Archives terms of use". That value isn't in+ `scripts/oss/oss_policy.py` `ALLOWED_LICENCES`, so the PR adds it, as its own reviewed line;+ - status `owner-verify`;+ - the note records the recordist's 1980s claim (ע"א 474/86): moot in Israel since 1998, US status uncertain;+ - `NOTICE` carries the credit.+- **Tests:**+ - the button is the only thing that starts playback;+ - the credit is present;+ - the caption text matches `docs/sources/declaration-1948`;+ - the sha256 of the shipped WAV equals the source's (the no-alteration guard);+ - the goldens and smoke stay unchanged.+- **Audio-module check:** this is the game's first `AudioSource`. I'll measure the `.wasm` change and boot at `--cpu 4`,+ as in the PR 2 spike.++## Machine and repo rules++- Every Unity run goes through `uv run tools/machine_lock.py --shared|--exclusive --wait-unity --timeout 3000`, without+ `-nographics`, and with `-CI false -GITHUB_ACTIONS false -TF_BUILD false`. Afterwards I revert `ProjectSettings`,+ `Assets/Settings` and the `UNITY_MCP` defines.+- No AppleScript, `pkill` or `killall`, and any stop is by PID only.+- `promo/` is read only, and `promo/demo/` is never touched.+- One PR per phase. I claim the issue and never merge.+- No owner email or identifiers in any web request: the Commons original downloads use the project User-Agent only.diff --git a/tools/event_images.py b/tools/event_images.pyindex 730b450dc..b9503f622 100644--- a/tools/event_images.py+++ b/tools/event_images.py@@ -10,8 +10,8 @@ it reads it, so a wrong or tampered download is refused. Downloads are untrusteduv run --with pillow==12.3.0 --with pyyaml==6.0.3 python -I tools/event_images.py --originals DIRThe adaptation, recorded as "graded and cropped" in each credit (CC BY 4.0 asks for it), is exactly this and nothing-else: the picture is read as luminance (a colour slide becomes black and white), cropped to the row's 9:4 box, resized-to at most WIDTH pixels wide (a multiple of 36, so both sides are multiples of 4), its levels stretched between the 0.5+else: the picture is read as luminance (a colour slide becomes black and white), cropped to the row's 16:9 box, resized+to at most WIDTH pixels wide (a multiple of 64, so both sides are multiples of 4), its levels stretched between the 0.5and 99.5 percentiles, and toned from navy shadows through sepia mid-tones to warm highlights. No retouching, no colourising, nothing added or removed."""from __future__ import annotations@@ -27,15 +27,15 @@ from PIL import ImageREPO = Path(__file__).resolve().parents[1]FOLDER = REPO / "unity/Assets/UI/EventImages"MAPPING = FOLDER / "event-images.yaml"-ASPECT = 9 / 4 # the card header's width : height (Statecraft.uss .event-photo)-WIDTH = 720 # about 1.5x the 456 px header, so it stays sharp on larger windows-MAX_BYTES = 200 * 1024+ASPECT = 16 / 9 # the card's media header, width : height (EventCardPresenter.MediaAspect)+WIDTH = 960 # the header's width at the 1080p reference (a 1040 px card less its padding)+MAX_BYTES = 450 * 1024 # 200 KB at the old 720x320, scaled with the pixel count (x2.25)# The grade: luminance 0 -> navy, 128 -> sepia, 255 -> warm paper (the promo's navy and gold palette).SHADOW, MID, HIGHLIGHT = (14, 18, 30), (126, 117, 104), (238, 232, 218)def crop_box(size: tuple[int, int], crop: list[float]) -> tuple[int, int, int, int]:- """The 9:4 box for a row's crop [centre x, centre y, width] (shares of the original), kept inside the picture.+ """The 16:9 box for a row's crop [centre x, centre y, width] (shares of the original), kept inside the picture.If the picture is too short for that width, the width shrinks to fit the full height."""w, h = sizecx, cy, share = crop@@ -80,8 +80,8 @@ def stretch(im: Image.Image) -> Image.Image:def grade(original: Image.Image, crop: list[float]) -> Image.Image:"""The shipped picture for one row (see the module docstring for the full list of changes)."""gray = original.convert("L").crop(crop_box(original.size, crop))- width = min(WIDTH, gray.width) // 36 * 36 # 9:4 in whole pixels, both sides multiples of 4 (block compression)- gray = gray.resize((width, width * 4 // 9), Image.Resampling.LANCZOS)+ width = min(WIDTH, gray.width) // 64 * 64 # 16:9 in whole pixels, both sides multiples of 4 (block compression)+ gray = gray.resize((width, width * 9 // 16), Image.Resampling.LANCZOS)return stretch(gray).convert("RGB").point(tone_lut())diff --git a/tools/headed.py b/tools/headed.pyindex 133923cfb..5e3cdbd80 100644--- a/tools/headed.py+++ b/tools/headed.py@@ -37,7 +37,10 @@ sys.path.insert(0, str(REPO / "tools"))import web_check # noqa: E402 (stdlib only)WINDOW = (1568, 752)-END_TURN, WHY, OPTION, MAP_UNDER_WHY = (1516, 42), (1317, 33), (1390, 283), (815, 450)+# OPTION: the first option of the centred decision card after the first End Turn (One Army); MAP_UNDER_WHY: a map point under+# the open Why screen, clear of the card (the card hides under a screen and its backdrop blocks the map; #434). All four+# measured on a WebGL capture of the playtest window, this branch at 1a0c3a7 (WHY had moved with the HUD round 1 bar).+END_TURN, WHY, OPTION, MAP_UNDER_WHY = (1516, 42), (1389, 32), (608, 520), (1180, 300)def burst_events(points):diff --git a/tools/tests/test_event_images.py b/tools/tests/test_event_images.pyindex 7f4f22246..90182de73 100644--- a/tools/tests/test_event_images.py+++ b/tools/tests/test_event_images.py@@ -1,4 +1,4 @@-"""tools/event_images.py: the event-card photographs are cropped to 9:4, resized, graded (luminance, levels, the+"""tools/event_images.py: the event-card photographs are cropped to 16:9, resized, graded (luminance, levels, thenavy-sepia tone) and nothing else; downloads are checked by SHA-1 before they are read."""import hashlibimport io@@ -9,12 +9,12 @@ from PIL import Imageimport event_images as ei-def test_the_crop_box_is_nine_by_four_and_inside_the_picture():+def test_the_crop_box_is_sixteen_by_nine_and_inside_the_picture():for size, crop in [((2000, 1334), [0.5, 0.5, 1.0]), ((686, 1200), [0.5, 0.52, 0.94]), ((1476, 932), [0.38, 0.6, 0.7]),((1000, 300), [0.5, 0.5, 1.0]), ((1000, 1000), [0.0, 1.0, 0.5])]:left, top, right, bottom = ei.crop_box(size, crop)assert 0 <= left < right <= size[0] and 0 <= top < bottom <= size[1]- assert abs((right - left) / (bottom - top) - 9 / 4) < 0.02+ assert abs((right - left) / (bottom - top) - 16 / 9) < 0.02assert ei.crop_box((1000, 300), [0.5, 0.5, 1.0])[3] - ei.crop_box((1000, 300), [0.5, 0.5, 1.0])[1] == 300 # too short: full heightwith pytest.raises(ValueError):ei.crop_box((100, 100), [0.5, 0.5, 1.5])@@ -24,7 +24,7 @@ def test_the_grade_is_a_tone_of_the_luminance_only():src = Image.new("RGB", (1800, 1200))src.putdata([((x * 7) % 256, (y * 3) % 256, 128) for y in range(1200) for x in range(1800)])out = ei.grade(src, [0.5, 0.5, 1.0])- assert out.size == (720, 320) and out.size[0] % 4 == 0 and out.size[1] % 4 == 0+ assert out.size == (960, 540) and out.size[0] % 4 == 0 and out.size[1] % 4 == 0lut = ei.tone_lut()tones = {(lut[v], lut[256 + v], lut[512 + v]) for v in range(256)}assert set(out.get_flattened_data()) <= tones # every pixel is a tone of one grey level: no colour added@@ -33,11 +33,11 @@ def test_the_grade_is_a_tone_of_the_luminance_only():def test_a_small_original_is_not_enlarged_and_stays_block_aligned():out = ei.grade(Image.new("L", (686, 1200), 90), [0.5, 0.52, 0.94])- assert out.size == (612, 272) # 645 px wide crop -> 612 (a multiple of 36), never upscaled+ assert out.size == (640, 360) # 645 px wide crop -> 640 (a multiple of 64), never upscaleddef test_encode_stays_under_the_size_cap():- noisy = Image.effect_noise((720, 320), 120).convert("RGB")+ noisy = Image.effect_noise((960, 540), 120).convert("RGB")data = ei.encode(noisy)assert len(data) <= ei.MAX_BYTESassert Image.open(io.BytesIO(data)).info.get("exif") is None@@ -102,4 +102,4 @@ def test_every_row_has_a_shipped_file_and_a_crop():assert (ei.FOLDER / r["file"]).is_file()assert len(r["crop"]) == 3 and len(r["sha1"]) == 40with Image.open(ei.FOLDER / r["file"]) as im:- assert im.size[0] * 4 == im.size[1] * 9+ assert im.size[0] * 9 == im.size[1] * 16diff --git a/unity/Assets/Scripts/UI/EventCardPresenter.cs b/unity/Assets/Scripts/UI/EventCardPresenter.csindex f32a889ad..4a57dadf8 100644--- a/unity/Assets/Scripts/UI/EventCardPresenter.cs+++ b/unity/Assets/Scripts/UI/EventCardPresenter.cs@@ -5,10 +5,14 @@ using UnityEngine.UIElements;namespace Statecraft.Game.UI{- /// <summary>The event card (right of the screen): the first pending event the player has not yet answered, with its- /// header picture (an archival photograph of the event with its credit line, as the promo's card; EventImageCatalog) or,- /// when the event has none, the responsible minister's portrait, the text with today's office holders filled in, and- /// one button per option.+ /// <summary>The decision card, in the middle of the screen under the bar (decision cards, 2026-10-13): the first pending+ /// event the player has not yet answered, with its 16:9 media header (an archival photograph of the event with its credit+ /// line, as the promo's card; EventImageCatalog) or, when the event has none, the responsible minister's portrait, the+ /// text with today's office holders filled in, and one button per option.+ /// While it shows, the root has OpenClass: a backdrop dims the map and takes the pointer, and ScreenNav.DisableCovered+ /// takes the panels under it out of reach. Hide collapses it to the "Decision waiting" button, which brings it back; a+ /// new event opens it again by itself. A new event puts the keyboard focus on the card itself, not on an+ /// option, so no choice is lit as if recommended; Tab then reaches the options in order./// A choice is an order: it takes effect at End Turn, and an unanswered event is delegated to the minister.</summary>public sealed class EventCardPresenter : System.IDisposable{@@ -16,10 +20,31 @@ namespace Statecraft.Game.UIpublic const float PortraitWidth = 96f, PortraitHeight = 128f;/// <summary>The class on each option button (Statecraft.uss).</summary>public const string OptionClass = "event-option";+ /// <summary>On the "root" element while the card shows (not collapsed): Statecraft.uss shows the backdrop.</summary>+ public const string OpenClass = "event-open";+ /// <summary>On the "root" element while the card shows and no start screen or screen covers it (set by+ /// ScreenNav.DisableCovered): the panels under the backdrop are disabled and the toast moves clear of the card.</summary>+ public const string ModalClass = "event-modal";+ /// <summary>The media header's width over its height (the photographs and the clips are 960x540).</summary>+ public const float MediaAspect = 16f / 9f;readonly VisualElement card; readonly SimBridge bridge; readonly UiText text; readonly PortraitCatalog? portraits;readonly EventImageCatalog? photos;- readonly VisualElement band, head, scroll, options; readonly Label credit;+ readonly VisualElement band, head, scroll, options, layer, hudRoot; readonly Label credit;+ readonly Button hide, reopen;+ readonly System.Action onHide, onReopen, onUncovered;+ readonly EventCallback<PointerDownEvent> onHidePointer;+ readonly EventCallback<NavigationSubmitEvent> onHideSubmit;+ readonly EventCallback<NavigationCancelEvent> onCancel;+ /// <summary>The last Hide came from the pointer (PointerBlur's rule: no focus fill left behind for a mouse click).</summary>+ bool hideByPointer;+ /// <summary>The session the card last showed: a new one (New Game, a load) forgets what was collapsed or focused.</summary>+ GameSession? session;+ /// <summary>The event the player collapsed the card on (Hide), or null; a different event opens the card again.</summary>+ string? collapsedFor;+ /// <summary>The event whose first option last took the focus, so an event already open never takes it again.</summary>+ string? focusedFor;+ float appliedWidth = float.NaN;public EventCardPresenter(VisualElement root, SimBridge bridge, UiText text, PortraitCatalog? portraits, EventImageCatalog? photos = null){@@ -30,8 +55,27 @@ namespace Statecraft.Game.UI// size it was dropped at gets no geometry event of its own; the head below it always moves, so it checks too.head = card.Q<VisualElement>(className: "event-head");scroll = card.Q<VisualElement>("event-scroll"); options = card.Q<VisualElement>("event-options");+ layer = card.parent; hudRoot = root.Q("root") ?? root;+ hide = card.Q<Button>("event-hide"); reopen = layer.Q<Button>("event-reopen");+ hide.text = text["event.hide"]; reopen.text = text["event.reopen"];+ onHide = Collapse; onReopen = Reopen;+ onUncovered = () => { focusedFor = null; if (Shown != null && !Collapsed) FocusCard(Shown.Id, force: true); };+ onHidePointer = _ => hideByPointer = true;+ onHideSubmit = _ => hideByPointer = false;+ onCancel = e => { if (Escape()) e.StopPropagation(); };+ hide.clicked += onHide; reopen.clicked += onReopen;+ card.focusable = true; card.tabIndex = 0; // the card takes the focus itself (FocusCard); Statecraft.uss .event-card:focus+ // Hide with the pointer leaves no focus fill on "Decision waiting" (PointerBlur's rule); with the keyboard it moves there.+ hide.RegisterCallback<PointerDownEvent>(onHidePointer, TrickleDown.TrickleDown);+ hide.RegisterCallback<NavigationSubmitEvent>(onHideSubmit, TrickleDown.TrickleDown);+ // Escape on the open card is Hide (GameRoot also polls the key when nothing has the focus: Escape()).+ card.RegisterCallback<NavigationCancelEvent>(onCancel);+ // A start screen or a screen that covered the layer has closed (ScreenNav.DisableCovered): the open card takes+ // the focus it could not take under it.+ ScreenNav.OnUncovered(layer, onUncovered);foreach (var e in new[] { band, credit, head, scroll, options }) e.RegisterCallback<GeometryChangedEvent>(OnPhotoGeometry);- card.parent?.RegisterCallback<GeometryChangedEvent>(OnColumnGeometry);+ layer.RegisterCallback<GeometryChangedEvent>(OnColumnGeometry);+ card.RegisterCallback<GeometryChangedEvent>(OnCardGeometry);bridge.Changed += Render;Render();}@@ -40,9 +84,48 @@ namespace Statecraft.Game.UIpublic void Dispose(){bridge.Changed -= Render;+ hide.clicked -= onHide; reopen.clicked -= onReopen;+ hide.UnregisterCallback(onHidePointer, TrickleDown.TrickleDown); hide.UnregisterCallback(onHideSubmit, TrickleDown.TrickleDown);+ card.UnregisterCallback(onCancel);+ ScreenNav.OnUncovered(layer, null);foreach (var e in new[] { band, credit, head, scroll, options }) e.UnregisterCallback<GeometryChangedEvent>(OnPhotoGeometry);- card.parent?.UnregisterCallback<GeometryChangedEvent>(OnColumnGeometry);+ layer.UnregisterCallback<GeometryChangedEvent>(OnColumnGeometry);+ card.UnregisterCallback<GeometryChangedEvent>(OnCardGeometry);card.Q<VisualElement>("event-options")?.Clear(); card.style.display = DisplayStyle.None;+ reopen.style.display = DisplayStyle.None;+ hudRoot.RemoveFromClassList(OpenClass);+ ScreenNav.DisableCovered(hudRoot);+ }++ /// <summary>True while the card is collapsed to the "Decision waiting" button (Hide).</summary>+ public bool Collapsed => Shown != null && collapsedFor == Shown.Id;++ /// <summary>Hide: the card gives the map back and waits behind the "Decision waiting" button, which takes the focus.</summary>+ public void Collapse()+ {+ if (Shown == null) return;+ collapsedFor = Shown.Id;+ Render();+ if (hideByPointer) { hideByPointer = false; return; }+ reopen.Focus();+ // Tried again once styles resolve: the button was hidden a moment ago and may not take it yet.+ reopen.schedule.Execute(() => { if (Collapsed && reopen.focusController?.focusedElement != reopen) reopen.Focus(); });+ }++ /// <summary>Escape: Hide, when the card is open and in reach. True when it did.</summary>+ public bool Escape()+ {+ if (Shown == null || Collapsed || !layer.enabledInHierarchy) return false;+ hideByPointer = false;+ Collapse();+ return true;+ }++ /// <summary>"Decision waiting": the card opens again and takes the focus.</summary>+ public void Reopen()+ {+ collapsedFor = null; focusedFor = null;+ Render();}/// <summary>The event the card shows, or null when every pending event has a queued answer.</summary>@@ -54,7 +137,14 @@ namespace Statecraft.Game.UIvar pending = s.PendingEvents.Select(id => c.Events.First(e => e.Id == id)).ToList();var open = pending.Where(e => bridge.QueuedLike(new ChooseEventOption(e.Id, "")) == null).ToList();Shown = open.FirstOrDefault();- card.style.display = Shown == null ? DisplayStyle.None : DisplayStyle.Flex;+ if (Shown == null) collapsedFor = null;+ if (bridge.Session != session) { session = bridge.Session; collapsedFor = null; focusedFor = null; }+ var shown = Shown != null && !Collapsed;+ card.style.display = shown ? DisplayStyle.Flex : DisplayStyle.None;+ card.SetEnabled(shown); // a child of an undisplayed element can still take the focus (#400): a collapsed card's options must not+ reopen.style.display = Collapsed ? DisplayStyle.Flex : DisplayStyle.None;+ hudRoot.EnableInClassList(OpenClass, shown);+ ScreenNav.DisableCovered(hudRoot);if (Shown == null) { ShowPhoto(null); return; }var e = Shown;var date = EventSystem.FillDate(e, s.Date);@@ -85,6 +175,26 @@ namespace Statecraft.Game.UIoptions.Add(b);}card.Q<Label>("event-count").text = open.Count > 1 ? text.Format("event.more", open.Count - 1) : "";+ if (shown && focusedFor != e.Id) FocusCard(e.Id, force: false);+ }++ /// <summary>A newly shown event puts the keyboard focus on the card (keyboard play, #41): the next Tab reaches its+ /// first option, and no option is lit before the player picks. Not while the layer is out of reach (the start screen+ /// or a screen covers it): then nothing is recorded, and the card takes the focus when the cover closes+ /// (onUncovered, <paramref name="force"/>). It is tried again once styles resolve, as a still-hidden card cannot take+ /// it; that retry takes it from nothing, or, when forced, from whatever the closing cover left focused.</summary>+ void FocusCard(string id, bool force)+ {+ if (!layer.enabledInHierarchy) return;+ focusedFor = id;+ card.Focus();+ card.schedule.Execute(() =>+ {+ if (Shown?.Id != id || Collapsed) return;+ if (!layer.enabledInHierarchy) { if (focusedFor == id) focusedFor = null; return; } // covered meanwhile: try again when uncovered+ var now = card.focusController?.focusedElement;+ if (card.panel != null && now != card && (force || now == null)) card.Focus();+ });}/// <summary>Shows the event's photograph with its credit line, its alt text as the picture's tooltip, or hides both.</summary>@@ -104,32 +214,34 @@ namespace Statecraft.Game.UIband.style.backgroundImage = photo == null ? (StyleBackground)StyleKeyword.None : new StyleBackground(photo.Value.image);band.tooltip = photo?.alt ?? "";PhotoAlt = photo?.alt;- ApplyPhotoFloor();+ ApplyMediaHeight();}- /// <summary>The logical window height below which the event body may scroll (UiLayoutTests, playtest 2 P2-3: from- /// 990 up, the body and the options fit without scrolling).</summary>+ /// <summary>The playtest 2 P2-3 line (UiLayoutTests): in a window at least this tall (logically) the body and the+ /// options of every event fit without scrolling. The media header gives way first on every window+ /// (ApplyMediaHeight), so below it the body scrolls only once the photograph is dropped.</summary>public const float ScrollFallbackHeight = 990f;- /// <summary>True on a window shorter than <see cref="ScrollFallbackHeight"/> (logically), where the body may scroll.</summary>- bool ShortWindow+ /// <summary>The media header's height: 16:9 of the card's content width (the stylesheet's 540 px until the card is laid+ /// out). On every window the header gives way first when the card is taller than the layer (Statecraft.uss+ /// flex-shrink 1000; the picture is cropped, background-size cover), so the text and the options show whole; below+ /// PhotoNeeds it is dropped (FitPhoto), and only then may the body scroll. The 200 px band of the old right-hand+ /// column needed the body to scroll first on short windows, or 21:9 never showed a photograph; a 16:9 header has+ /// the room to give.</summary>+ void ApplyMediaHeight(){- get- {- var h = card.panel?.visualTree.layout.height ?? float.NaN;- return !float.IsNaN(h) && h > 0 && h < ScrollFallbackHeight;- }+ var w = card.contentRect.width;+ appliedWidth = w;+ band.style.height = float.IsNaN(w) || w <= 0 ? (StyleLength)StyleKeyword.Null : new StyleLength(UnityEngine.Mathf.Round(w / MediaAspect));}- /// <summary>On a short window (an ultrawide 2560x1080 is one) the body gives way before the band: it scrolls, as it- /// may there, down to its minimum, and only then does the band shrink (and drop below PhotoNeeds). Before this the- /// band always gave way first, fell below that height and no photograph ever showed at 21:9. On taller windows the- /// band still gives way first (Statecraft.uss flex-shrink 1000), so the body never scrolls for it. The options keep- /// flex-shrink 0 either way, so they are never cut.</summary>- void ApplyPhotoFloor()+ /// <summary>The card's width changed (it was first laid out, or the window changed): the media header follows it. The+ /// card's height changes with the header, so only a new width counts, or the two would chase each other.</summary>+ void OnCardGeometry(GeometryChangedEvent evt){- band.style.flexShrink = PhotoAlt != null && ShortWindow ? new StyleFloat(0.001f) : new StyleFloat(StyleKeyword.Null);- band.style.height = StyleKeyword.Null; // back to the stylesheet's 200 px; FitPhoto trims it again if it must+ var w = card.contentRect.width;+ if (float.IsNaN(w) || w <= 0 || UnityEngine.Mathf.Abs(w - appliedWidth) < 0.5f) return;+ ApplyMediaHeight(); FitPhoto();}/// <summary>The smallest height of the picture left visible above its credit strip (Statecraft.uss .event-photo@@ -161,41 +273,28 @@ namespace Statecraft.Game.UIif (PhotoAlt == null) return;var h = band.layout.height; var needs = PhotoNeeds;if (float.IsNaN(h) || float.IsNaN(needs)) return;- if (h < needs - 0.5f) { SetPhotoShown(false); return; }- // On a short window the band hardly shrinks (ApplyPhotoFloor), and Yoga does not hand the body's leftover- // shortfall back to it once the body is at its minimum. So when the options would be cut, the band is trimmed- // by that much, and dropped if that leaves it short of PhotoNeeds. It only ever shrinks, so this converges.- if (!ShortWindow) return;- var over = options.worldBound.yMax - card.worldBound.yMax;- if (float.IsNaN(over) || over <= 0.5f) return;- var target = h - over - 1f;- if (target < needs) SetPhotoShown(false);- else band.style.height = target;+ if (h < needs - 0.5f) SetPhotoShown(false);}void OnPhotoGeometry(GeometryChangedEvent evt) => FitPhoto();- /// <summary>The right-hand column changed size (the window did; the card's content never moves it, as the column is- /// pinned to the window by top and bottom). A shown photograph is checked again; a dropped one comes back only when- /// the room now free in the column holds it (<see cref="RoomForDroppedPhoto"/>), so it is never shown just to be- /// measured (a hidden element keeps its old layout, so a re-shown band may get no new geometry event).</summary>+ /// <summary>The decision layer changed size (the window did; the card's content never moves it, as the layer is pinned+ /// to the window on every side). A shown photograph is checked again; a dropped one comes back only when the room now+ /// free in the layer holds it (<see cref="RoomForDroppedPhoto"/>), so it is never shown just to be measured (a hidden+ /// element keeps its old layout, so a re-shown band may get no new geometry event).</summary>void OnColumnGeometry(GeometryChangedEvent evt){if (current != null && PhotoAlt == null) { if (RoomForDroppedPhoto() >= PhotoNeeds) SetPhotoShown(true); }- else { ApplyPhotoFloor(); FitPhoto(); }+ else { ApplyMediaHeight(); FitPhoto(); }}- /// <summary>The band height a dropped photograph would get now (at most; the band itself stops at 200 px): the slack- /// of the column's flexible gap above its minimum, capped by the card's max-height, less the band's margins.</summary>+ /// <summary>The band height a dropped photograph would get now (at most; the band itself stops at 16:9): the layer's+ /// height the card leaves free (the card's max-height is the layer's), less the band's margins.</summary>float RoomForDroppedPhoto(){- var gap = card.parent?.Q(className: "right-gap");- if (gap == null || float.IsNaN(gap.layout.height) || float.IsNaN(card.layout.height)) return 0;- var slack = gap.layout.height - gap.resolvedStyle.minHeight.value;- // On a short window the body may scroll, so the room it would give up (down to its own minimum) counts too.- if (ShortWindow && !float.IsNaN(scroll.layout.height)) slack += System.Math.Max(0f, scroll.layout.height - scroll.resolvedStyle.minHeight.value);- var max = card.resolvedStyle.maxHeight;- if (max.keyword == StyleKeyword.Undefined && !float.IsNaN(max.value)) slack = System.Math.Min(slack, max.value - card.layout.height);+ var room = layer.contentRect.height;+ if (float.IsNaN(room) || float.IsNaN(card.layout.height)) return 0;+ var slack = room - card.layout.height;return slack - band.resolvedStyle.marginTop - band.resolvedStyle.marginBottom;}diff --git a/unity/Assets/Scripts/UI/EventImageCatalog.cs b/unity/Assets/Scripts/UI/EventImageCatalog.csindex 702ffd57c..6d6b52b84 100644--- a/unity/Assets/Scripts/UI/EventImageCatalog.cs+++ b/unity/Assets/Scripts/UI/EventImageCatalog.cs@@ -33,9 +33,10 @@ namespace Statecraft.Game.UIpublic List<Entry> entries = new List<Entry>();/// <summary>The catalog the game ships, or null when there is none (the card then shows the minister's portrait).- /// Memory (review M10): loading the catalog pulls in all its textures at start and they are never unloaded. At 25- /// pictures of 720x320, DXT1, crunched, no mipmaps, that is about 115 KB each and 2.9 MB in all, which is fine. If- /// the count grows past about 100, keep a Resources path per entry instead and load each event's texture on demand.</summary>+ /// Memory (review M10): loading the catalog pulls in all its textures at start and they are never unloaded. At 24+ /// pictures of at most 960x540 (the 16:9 media header), DXT1, crunched, no mipmaps, that is at most about 260 KB each+ /// and 6.2 MB in all, which is fine. If the count grows past about 50, keep a Resources path per entry instead and+ /// load each event's texture on demand.</summary>public static EventImageCatalog? Load() => Resources.Load<EventImageCatalog>(ResourcePath);/// <summary>The event's entry, or null when the event has no picture.</summary>diff --git a/unity/Assets/Scripts/UI/GameRoot.cs b/unity/Assets/Scripts/UI/GameRoot.csindex 35ac1285b..67c03baeb 100644--- a/unity/Assets/Scripts/UI/GameRoot.cs+++ b/unity/Assets/Scripts/UI/GameRoot.cs@@ -47,6 +47,7 @@ namespace Statecraft.Game.UIMapLabelsPresenter? labels;ScreenNav? nav;StartScreenPresenter? start;+ EventCardPresenter? card;CameraRig? rig;List<(string, int, int, DateTime)>? drawn;@@ -144,7 +145,7 @@ namespace Statecraft.Game.UIOwn(new PointerBlur(root)); // a mouse click leaves no focus fill behind (keyboard keeps it)Own(new NavigationGuard(root)); // the camera keys (WASD, arrows) never move UI focus (B6)if (DiagLog.Nav) Own(new NavEventLog(root)); // ?navlog: every UI pointer/submit event (playtest 2, P2-4)- var card = Own(new EventCardPresenter(root, bridge, text, portraits, EventImageCatalog.Load())); // event photos: Resources, no scene field+ card = Own(new EventCardPresenter(root, bridge, text, portraits, EventImageCatalog.Load())); // event photos: Resources, no scene fieldOwn(new DefencePresenter(root, bridge, text, portraits));Own(new BudgetPresenter(root, bridge, text));Own(new WhyPresenter(root, bridge, text));@@ -251,7 +252,7 @@ namespace Statecraft.Game.UIDebug.Log(FormattableString.Invariant($"GAME OK {bridge.State.Date:yyyy-MM-dd} turn {bridge.State.Turn} hash {bridge.State.Hash()}"));if (smoke > 0){- if (Application.isPlaying) StartCoroutine(Smoke(root, bridge, card, smoke, Debug.Log));+ if (Application.isPlaying) StartCoroutine(Smoke(root, bridge, card!, smoke, Debug.Log));else Debug.LogWarning("SMOKE FAIL the smoke run needs play mode or a player");}if (Application.isPlaying && PixelErrorProfile.Requested()) StartCoroutine(PixelErrorProfile.Run(map.Terrain));@@ -302,7 +303,7 @@ namespace Statecraft.Game.UIStopAllCoroutines();for (int i = owned.Count - 1; i >= 0; i--) owned[i].Dispose();owned.Clear();- minimap = null; labels = null; nav = null; start = null; rig = null; drawn = null; units = null; logCamera = false;+ minimap = null; labels = null; nav = null; start = null; card = null; rig = null; drawn = null; units = null; logCamera = false;// A ?profile run cut short (a stopped coroutine never reaches its restore line) must not leave the terrain at the// profile's pixel error (Task 24 review M1). Nothing else changes it, so restoring is always right.if (map != null && map.Terrain != null) map.Terrain.heightmapPixelError = MapBuilder.TerrainPixelError;@@ -356,7 +357,9 @@ namespace Statecraft.Game.UI// Escape closes the open screen even when no element has the keyboard focus (ScreenNav also takes the UI// Cancel event from a focused element; closing twice is harmless). On the start screen it withdraws an open New// Game request (StartScreenPresenter.Escape; idempotent too).- if (UnityEngine.InputSystem.Keyboard.current?.escapeKey.wasPressedThisFrame == true) { start?.Escape(); nav?.Close(); }+ // With nothing else to close, Escape on the open decision card is Hide (EventCardPresenter.Escape; the card itself+ // takes the Cancel event when it has the focus).+ if (UnityEngine.InputSystem.Keyboard.current?.escapeKey.wasPressedThisFrame == true) { bool done = start?.Escape() == true; done |= nav?.Close() == true; if (!done && document.rootVisualElement.focusController?.focusedElement == null) card?.Escape(); }SyncMinimap();if (!logCamera || rig == null || (rig.Distance == loggedDistance && rig.Yaw == loggedYaw)) return;loggedDistance = rig.Distance; loggedYaw = rig.Yaw;diff --git a/unity/Assets/Scripts/UI/ScreenNav.cs b/unity/Assets/Scripts/UI/ScreenNav.csindex 973350e44..1663a7b4d 100644--- a/unity/Assets/Scripts/UI/ScreenNav.cs+++ b/unity/Assets/Scripts/UI/ScreenNav.cs@@ -16,26 +16,43 @@ namespace Statecraft.Game.UI/// <summary>The class on the "root" element while a wide screen (class <see cref="WideClass"/>: Cabinet, Defence) is/// open: Statecraft.uss hides the info panel it covers, so its buttons take no focus and no clicks.</summary>public const string WideOpenClass = "wide-screen-open", WideClass = "screen-wide";- /// <summary>The class on the "root" element while any screen is open: in the two-row (narrow) HUD every screen takes- /// the full width, so Statecraft.uss hides the event column and the info panel under it (#210).</summary>+ /// <summary>The class on the "root" element while any screen is open: Statecraft.uss hides the decision layer under it,+ /// and in the two-row (narrow) HUD, where every screen takes the full width, the minimap column and the info panel+ /// too (#210).</summary>public const string ScreenOpenClass = "screen-open";/// <summary>Disables each HUD panel that a class on the "root" element hides, and enables it again when none does: a/// child of an undisplayed element can still take the keyboard focus, so hiding alone leaves its buttons in Tab's- /// reach (#400). The start screen covers the top bar, the event column and the info panel; in the two-row HUD any- /// open screen covers the event column and the info panel; a wide screen covers the info panel. Called wherever- /// one of those classes changes (StartScreenPresenter, Open, HudPresenter's tier), so no caller re-enables a panel- /// another still covers.</summary>+ /// reach (#400). The start screen covers the top bar, the minimap column, the decision layer and the info panel; any+ /// open screen covers the decision layer (it sits where the card does), and in the two-row HUD also the minimap+ /// column and the info panel; a wide screen covers the info panel; the open decision card's backdrop+ /// (EventCardPresenter.OpenClass, with no start screen or screen over it: ModalClass, set here) covers the minimap+ /// column and the info panel. Called wherever one of those classes changes (StartScreenPresenter, Open,+ /// HudPresenter's tier, EventCardPresenter), so no caller re-enables a panel another still covers.</summary>public static void DisableCovered(VisualElement root){var r = root.Q("root") ?? root;bool start = r.ClassListContains(StartScreenPresenter.OpenClass);- bool full = r.ClassListContains(ScreenOpenClass) && r.ClassListContains(HudPresenter.TwoRowClass);+ bool screen = r.ClassListContains(ScreenOpenClass);+ bool full = screen && r.ClassListContains(HudPresenter.TwoRowClass);+ bool modal = r.ClassListContains(EventCardPresenter.OpenClass) && !start && !screen;+ r.EnableInClassList(EventCardPresenter.ModalClass, modal);r.Q("top-bar")?.SetEnabled(!start);- r.Q("right-column")?.SetEnabled(!(start || full));- r.Q("info-panel")?.SetEnabled(!(start || full || r.ClassListContains(WideOpenClass)));+ r.Q("right-column")?.SetEnabled(!(start || full || modal));+ r.Q("info-panel")?.SetEnabled(!(start || full || modal || r.ClassListContains(WideOpenClass)));+ var layer = r.Q("event-layer");+ if (layer != null)+ {+ bool was = layer.enabledSelf, now = !(start || screen);+ layer.SetEnabled(now);+ if (!was && now) (layer.userData as System.Action)?.Invoke(); // EventCardPresenter: the open card takes the focus+ }}+ /// <summary>Asks to be told, synchronously, whenever the decision layer comes out from under the start screen or a+ /// screen (DisableCovered enables it again); null stops it.</summary>+ public static void OnUncovered(VisualElement layer, System.Action? action) => layer.userData = action;+/// <summary>Asks to be told, synchronously, whenever <paramref name="screen"/> is opened (a presenter that skips/// rendering while its screen is hidden catches up then).</summary>public static void OnOpened(VisualElement screen, System.Action action) => screen.userData = action;diff --git a/unity/Assets/Tests/EditMode/DecisionCardTests.cs b/unity/Assets/Tests/EditMode/DecisionCardTests.csnew file mode 100644index 000000000..143221e77--- /dev/null+++ b/unity/Assets/Tests/EditMode/DecisionCardTests.cs@@ -0,0 +1,305 @@+#nullable enable+using System.Collections;+using System.Collections.Generic;+using System.Linq;+using NUnit.Framework;+using Statecraft.Game;+using Statecraft.Game.UI;+using Statecraft.Sim;+using UnityEditor;+using UnityEngine;+using UnityEngine.TestTools;+using UnityEngine.UIElements;++/// <summary>The decision card in the middle (decision cards, 2026-10-13): while it shows, its backdrop takes the pointer and+/// the panels under it are out of reach (ScreenNav.DisableCovered, as #409 does for screens); Hide collapses it to+/// "Decision waiting", which brings it back; a new event opens it again; a new event puts the focus on the card (no option+/// lit as if recommended; Tab goes on to the options) and an open one never takes it back; any open screen, and the start screen, hide it and take it out of reach. Checked on+/// a one-row HUD (1920x1080) and the narrow two-row HUD (960x1080).</summary>+public class DecisionCardTests+{+ static readonly Content C = ContentLoader.Load(Paths.Content);+ static UiText Text => UiText.Parse(AssetDatabase.LoadAssetAtPath<TextAsset>(UiPaths.Strings).text);++ sealed class Rig : System.IDisposable+ {+ public readonly VisualElement Root; public readonly SimBridge Bridge; public readonly ScreenNav Nav; public readonly EventCardPresenter Card;+ readonly GameObject go; readonly PanelSettings ps; readonly RenderTexture rt; readonly List<System.IDisposable> owned = new List<System.IDisposable>();++ public Rig(int w, int h, string eventId, bool photos = false)+ {+ rt = new RenderTexture(w, h, 0);+ ps = Object.Instantiate(AssetDatabase.LoadAssetAtPath<PanelSettings>(UiPaths.Panel));+ ps.targetTexture = rt;+ go = new GameObject("DecisionCardTest");+ go.SetActive(false);+ var doc = go.AddComponent<UIDocument>();+ doc.panelSettings = ps;+ doc.visualTreeAsset = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(UiPaths.GameUxml);+ go.SetActive(true);+ Root = doc.rootVisualElement;+ Root.Q("root").RemoveFromClassList("loading");+ Bridge = new SimBridge(Pending(eventId), Text);+ owned.Add(new HudPresenter(Root, Bridge, Text));+ Nav = new ScreenNav(Root); owned.Add(Nav);+ owned.Add(new InfoPanelPresenter(Root, Bridge, Text, C.SettlementHexes.ToDictionary(x => x.Id, x => x.Id)));+ Card = new EventCardPresenter(Root, Bridge, Text, null,+ photos ? AssetDatabase.LoadAssetAtPath<EventImageCatalog>("Assets/Resources/EventImageCatalog.asset") : null); owned.Add(Card);+ }++ public void Dispose()+ {+ for (int i = owned.Count - 1; i >= 0; i--) owned[i].Dispose();+ Object.DestroyImmediate(go); Object.DestroyImmediate(ps); rt.Release(); Object.DestroyImmediate(rt);+ }++ public VisualElement Hud => Root.Q("root");+ public Button FirstOption => Root.Q("event-options").Q<Button>();+ public VisualElement CardElement => Root.Q("event-card");+ public Button Hide => Root.Q<Button>("event-hide");+ public Button Waiting => Root.Q<Button>("event-reopen");+ public Focusable? Focused => Root.panel.focusController.focusedElement;+ public bool Shows(string name) => Root.Q(name).resolvedStyle.display == DisplayStyle.Flex;+ }++ /// <summary>A new game in the event's own time with only that event pending.</summary>+ static GameSession Pending(string eventId)+ {+ var g = GameSession.New(C, GoldenRun.Seed, Mode.Historical);+ g.State.Date = C.Events.First(e => e.Id == eventId).From;+ g.State.PendingEvents.Clear(); g.State.PendingEvents.Add(eventId);+ return g;+ }++ static IEnumerator Frames(int n) { for (int i = 0; i < n; i++) yield return null; }++ static void Press(Button b)+ {+ using (var e = NavigationSubmitEvent.GetPooled()) { e.target = b; b.SendEvent(e); }+ }++ static void Covered(Rig r, bool covered, string where)+ {+ Assert.AreEqual(!covered, r.Root.Q("info-panel").enabledSelf, $"{where}: the info panel is {(covered ? "disabled" : "enabled")}");+ Assert.AreEqual(!covered, r.Root.Q("right-column").enabledSelf, $"{where}: the minimap column is {(covered ? "disabled" : "enabled")}");+ }++ static readonly (int w, int h)[] Tiers = { (1920, 1080), (960, 1080) };++ [UnityTest]+ public IEnumerator TheOpenCardTakesThePointerAndThePanelsUnderIt()+ {+ foreach (var (w, h) in Tiers)+ {+ using var r = new Rig(w, h, "law_of_return");+ yield return Frames(4);+ var where = $"{w}x{h}";+ Assert.AreEqual(w == 960, r.Hud.ClassListContains(HudPresenter.TwoRowClass), $"{where}: precondition, the HUD tier");+ Assert.IsTrue(r.Shows("event-card"), $"{where}: the card shows");+ Assert.IsTrue(r.Hud.ClassListContains(EventCardPresenter.OpenClass) && r.Hud.ClassListContains(EventCardPresenter.ModalClass), where);+ Assert.IsTrue(r.Shows("event-scrim"), $"{where}: the backdrop shows");+ Covered(r, true, where);+ // A point of the map clear of every panel: the backdrop takes it, so a map click or drag stops there.+ // (The layer's 16 px gutter at the left, just under the bar: the backdrop reaches the window's edge.)+ var free = new Vector2(4f, r.Root.Q("top-bar").worldBound.yMax + 4f);+ Assert.AreSame(r.Root.Q("event-scrim"), r.Root.panel.Pick(free), $"{where}: the backdrop takes the pointer at {free}");+ Assert.AreSame(r.CardElement, r.Focused, $"{where}: the new event's card has the focus, no option lit");+ Assert.IsTrue(r.FirstOption.canGrabFocus, $"{where}: its options are in reach");++ // Hide: the card collapses to "Decision waiting", which takes the focus; the map and the panels come back.+ Press(r.Hide);+ yield return Frames(3);+ Assert.IsTrue(r.Card.Collapsed, where);+ Assert.IsFalse(r.Shows("event-card"), $"{where}: the card is hidden");+ Assert.IsFalse(r.Shows("event-scrim"), $"{where}: the backdrop is gone");+ Assert.IsTrue(r.Shows("event-reopen"), $"{where}: Decision waiting shows");+ Assert.AreEqual("Decision waiting", r.Waiting.text);+ Assert.IsFalse(r.Hud.ClassListContains(EventCardPresenter.ModalClass), where);+ Covered(r, false, where);+ Assert.AreSame(r.Waiting, r.Focused, $"{where}: Decision waiting has the focus");+ Assert.IsFalse(r.FirstOption.canGrabFocus, $"{where}: the hidden card's options are out of reach");+ var pick = r.Root.panel.Pick(free);+ Assert.IsTrue(pick == null || !r.Root.Q("event-layer").Contains(pick), $"{where}: the map takes the pointer again ({pick?.name})");++ // Decision waiting: the card is back, its first option focused, the panels out of reach again.+ Press(r.Waiting);+ yield return Frames(3);+ Assert.IsFalse(r.Card.Collapsed, where);+ Assert.IsTrue(r.Shows("event-card") && r.Shows("event-scrim"), $"{where}: reopened");+ Assert.IsFalse(r.Shows("event-reopen"), where);+ Covered(r, true, where);+ Assert.AreSame(r.CardElement, r.Focused, $"{where}: the reopened card has the focus");+ Assert.IsTrue(r.FirstOption.canGrabFocus, $"{where}: its options are in reach again");+ }+ }++ [UnityTest]+ public IEnumerator ANewEventOpensACollapsedCard()+ {+ using var r = new Rig(1920, 1080, "law_of_return");+ yield return Frames(4);+ r.Card.Collapse();+ yield return Frames(2);+ Assert.IsTrue(r.Card.Collapsed);+ r.Bridge.Replace(Pending("hula_drainage"));+ yield return Frames(3);+ Assert.AreEqual("hula_drainage", r.Card.Shown?.Id);+ Assert.IsFalse(r.Card.Collapsed, "a new event opens the card again");+ Assert.IsTrue(r.Shows("event-card") && !r.Shows("event-reopen"));+ Assert.AreSame(r.CardElement, r.Focused, "and puts the focus on the card");+ }++ [UnityTest]+ public IEnumerator AnOpenEventDoesNotTakeTheFocusBack()+ {+ using var r = new Rig(1920, 1080, "law_of_return");+ yield return Frames(4);+ var endTurn = r.Root.Q<Button>("end-turn");+ endTurn.Focus();+ Assert.AreSame(endTurn, r.Focused, "precondition");+ r.Card.Render(); // the bridge changed (a queued order, a refused one), the same event still open+ yield return Frames(3);+ Assert.AreSame(endTurn, r.Focused, "the top bar keeps the focus");+ }++ [UnityTest]+ public IEnumerator AnOpenScreenOrTheStartScreenHidesTheCardAndTakesItOutOfReach()+ {+ foreach (var (w, h) in Tiers)+ {+ using var r = new Rig(w, h, "law_of_return");+ yield return Frames(4);+ var where = $"{w}x{h}";+ foreach (var s in ScreenNav.Screens)+ {+ r.Nav.Open(s);+ yield return Frames(3);+ Assert.IsFalse(r.Shows("event-layer"), $"{where} {s}: the decision layer is hidden");+ Assert.IsFalse(r.Root.Q("event-layer").enabledSelf, $"{where} {s}: and disabled");+ Assert.IsFalse(r.FirstOption.canGrabFocus, $"{where} {s}: its options are out of reach");+ r.FirstOption.Focus();+ Assert.AreNotSame(r.FirstOption, r.Focused, $"{where} {s}: focus does not reach them");+ Assert.IsFalse(r.Hud.ClassListContains(EventCardPresenter.ModalClass), $"{where} {s}: no backdrop under a screen");+ // The panels beside a screen are as the screen leaves them (one row, Budget: beside it, in reach).+ if (w == 1920 && s == "budget") Covered(r, false, $"{where} {s}");+ }+ r.Nav.Open(null);+ yield return Frames(3);+ Assert.IsTrue(r.Shows("event-layer") && r.Shows("event-card"), $"{where}: closing the screen brings the card back");+ Assert.IsTrue(r.Root.Q("event-layer").enabledSelf && r.Hud.ClassListContains(EventCardPresenter.ModalClass), where);+ Covered(r, true, where);++ r.Hud.AddToClassList(StartScreenPresenter.OpenClass);+ ScreenNav.DisableCovered(r.Root);+ yield return Frames(2);+ Assert.IsFalse(r.Shows("event-layer"), $"{where}: the start screen hides the layer");+ Assert.IsFalse(r.Root.Q("event-layer").enabledSelf, $"{where}: and disables it");+ Assert.IsFalse(r.Hud.ClassListContains(EventCardPresenter.ModalClass), where);+ r.Hud.RemoveFromClassList(StartScreenPresenter.OpenClass);+ ScreenNav.DisableCovered(r.Root);+ }+ }++ /// <summary>The longest refusal a toast shows, three to four lines in the toast's width.</summary>+ const string LongToast = "Not done: Not enough attention (need 4.0, have 2.0)\nNot done: No more than 2 map actions in one turn\n"+ + "Not done: The Knesset must approve it: the coalition holds 46 of 120 seats\nYour game was saved, but the browser refused the autosave";++ /// <summary>The toast moves to the top middle while the card is open: over the photograph, clear of its CC BY credit,+ /// the title and the options, with the real photographs, a long refusal, and on the windows where the card fills the+ /// layer (21:9 and a short laptop window) as well as the one-row and two-row HUDs.</summary>+ [UnityTest]+ public IEnumerator TheToastClearsTheOpenCardsCreditTitleAndOptions()+ {+ foreach (var (w, h) in new[] { (1920, 1080), (960, 1080), (2560, 1080), (1366, 657) })+ foreach (var ev in new[] { "law_of_return", "operation_hiram" }) // a short text; the tallest card+ {+ using var r = new Rig(w, h, ev, photos: true);+ yield return Frames(5);+ var where = $"{w}x{h} {ev}";+ Assert.IsTrue(r.Card.PhotoAlt != null, $"{where}: precondition: the photograph shows");+ var toast = r.Root.Q<Label>("toast");+ toast.text = LongToast;+ toast.style.display = DisplayStyle.Flex;+ yield return Frames(3);+ var t = toast.worldBound;+ foreach (var name in new[] { "event-photo-credit", "event-title", "event-options", "event-hide" })+ Assert.IsFalse(t.Overlaps(r.Root.Q(name).worldBound), $"{where}: the toast {t} covers {name} {r.Root.Q(name).worldBound}");+ Assert.Greater(r.Root.Q("root").IndexOf(toast), r.Root.Q("root").IndexOf(r.Root.Q("event-layer")), "the toast is drawn above the layer");+ }+ }++ /// <summary>Review S1: the card takes the focus when the start screen closes, and when a screen that covered it closes,+ /// whether the event was open before the screen or arrived under it; a new session (New Game, a load) forgets what+ /// was collapsed (N5).</summary>+ [UnityTest]+ public IEnumerator TheCardTakesTheFocusWhenItsCoverCloses()+ {+ using var r = new Rig(1920, 1080, "law_of_return");+ yield return Frames(4);+ r.Nav.Open("cabinet");+ yield return Frames(3);+ Assert.AreNotSame(r.CardElement, r.Focused, "precondition: covered");+ r.Nav.Open(null);+ yield return Frames(3);+ Assert.AreSame(r.CardElement, r.Focused, "closing Cabinet gives the open card the focus");++ // An event that arrives while a screen is open takes the focus when it closes.+ r.Nav.Open("budget");+ yield return Frames(2);+ r.Bridge.Replace(Pending("hula_drainage"));+ yield return Frames(3);+ Assert.AreNotSame(r.CardElement, r.Focused, "precondition: covered when it arrived");+ r.Nav.Close();+ yield return Frames(3);+ Assert.AreEqual("hula_drainage", r.Card.Shown?.Id);+ Assert.AreSame(r.CardElement, r.Focused, "the event that arrived under Budget has the focus once Budget closes");++ // The start screen, as at boot: shown over an open card, then closed.+ r.Hud.AddToClassList(StartScreenPresenter.OpenClass);+ ScreenNav.DisableCovered(r.Root);+ r.Root.Q<Button>("end-turn").Focus(); // what the start screen's own button stands for+ yield return Frames(3);+ r.Hud.RemoveFromClassList(StartScreenPresenter.OpenClass);+ ScreenNav.DisableCovered(r.Root);+ yield return Frames(3);+ Assert.AreSame(r.CardElement, r.Focused, "closing the start screen gives the open card the focus");++ // N5: a collapsed card, then a new session with the same event: it opens.+ r.Card.Collapse();+ yield return Frames(2);+ Assert.IsTrue(r.Card.Collapsed);+ r.Bridge.Replace(Pending("hula_drainage"));+ yield return Frames(3);+ Assert.IsFalse(r.Card.Collapsed, "a new session forgets the collapse");+ Assert.AreSame(r.CardElement, r.Focused, "and the card has the focus");+ }++ /// <summary>N1 and N2: Hide with the pointer leaves no focus fill on "Decision waiting" (PointerBlur's rule), with the+ /// keyboard it moves the focus there; Escape on the open card is Hide, and does nothing under a screen.</summary>+ [UnityTest]+ public IEnumerator HideByPointerLeavesNoFocusAndEscapeHides()+ {+ using var r = new Rig(1920, 1080, "law_of_return");+ yield return Frames(4);+ using (var down = PointerDownEvent.GetPooled()) { down.target = r.Hide; r.Hide.SendEvent(down); }+ r.Card.Collapse(); // what the click's Clickable does next+ yield return Frames(3);+ Assert.IsTrue(r.Card.Collapsed);+ Assert.AreNotSame(r.Waiting, r.Focused, "a pointer Hide leaves Decision waiting unfocused");+ Press(r.Waiting);+ yield return Frames(3);+ Assert.IsFalse(r.Card.Collapsed);++ using (var cancel = NavigationCancelEvent.GetPooled()) { cancel.target = r.CardElement; r.CardElement.SendEvent(cancel); }+ yield return Frames(3);+ Assert.IsTrue(r.Card.Collapsed, "Escape on the open card hides it");+ Assert.AreSame(r.Waiting, r.Focused, "and, from the keyboard, Decision waiting has the focus");+ Assert.IsFalse(r.Card.Escape(), "Escape on a collapsed card does nothing");+ Press(r.Waiting);+ yield return Frames(2);+ r.Nav.Open("why");+ yield return Frames(2);+ Assert.IsFalse(r.Card.Escape(), "under a screen Escape is the screen's");+ Assert.IsFalse(r.Card.Collapsed);+ }+}diff --git a/unity/Assets/Tests/EditMode/DecisionCardTests.cs.meta b/unity/Assets/Tests/EditMode/DecisionCardTests.cs.metanew file mode 100644index 000000000..821a39f11--- /dev/null+++ b/unity/Assets/Tests/EditMode/DecisionCardTests.cs.meta@@ -0,0 +1,2 @@+fileFormatVersion: 2+guid: 1088ff7edb11f4f6fa9c2e07f0e24124\ No newline at end of filediff --git a/unity/Assets/Tests/EditMode/EventImageMappingTests.cs b/unity/Assets/Tests/EditMode/EventImageMappingTests.csindex eb6945264..584afc537 100644--- a/unity/Assets/Tests/EditMode/EventImageMappingTests.cs+++ b/unity/Assets/Tests/EditMode/EventImageMappingTests.cs@@ -75,7 +75,7 @@ public class EventImageMappingTests}[Test]- public void EveryPictureIsAShippedNineByFourFileAndEveryFileHasARow()+ public void EveryPictureIsAShippedSixteenByNineFileAndEveryFileHasARow(){var rows = Rows;var files = Directory.GetFiles(EventImageMapping.Folder, "*.jpg").Select(f => Path.GetFileName(f)).OrderBy(x => x).ToArray();@@ -83,12 +83,12 @@ public class EventImageMappingTestsforeach (var r in rows){var path = $"{EventImageMapping.Folder}/{r.File}";- Assert.LessOrEqual(new FileInfo(path).Length, 200 * 1024, path);+ Assert.LessOrEqual(new FileInfo(path).Length, 450 * 1024, path); // tools/event_images.py MAX_BYTESvar tex = new Texture2D(2, 2);try{Assert.IsTrue(ImageConversion.LoadImage(tex, File.ReadAllBytes(path)), path);- Assert.AreEqual(tex.width * 4, tex.height * 9, $"{path}: 9:4 ({tex.width}x{tex.height})");+ Assert.AreEqual(tex.width * 9, tex.height * 16, $"{path}: 16:9, the media header ({tex.width}x{tex.height})");Assert.AreEqual(0, tex.width % 4 + tex.height % 4, $"{path}: multiples of 4 for block compression");Assert.GreaterOrEqual(tex.width, 600, path);}@@ -116,7 +116,7 @@ public class EventImageMappingTests}var importer = (TextureImporter)AssetImporter.GetAtPath($"{EventImageMapping.Folder}/{rows[0].File}");Assert.IsFalse(importer.mipmapEnabled);- Assert.AreEqual(TextureImporterNPOTScale.None, importer.npotScale, "kept at 9:4");+ Assert.AreEqual(TextureImporterNPOTScale.None, importer.npotScale, "kept at 16:9");}/// <summary>Every picture has its own ASSETS.yaml row with the same licence, source page and credit, still owner-verifydiff --git a/unity/Assets/Tests/EditMode/InfoPanelLayoutTests.cs b/unity/Assets/Tests/EditMode/InfoPanelLayoutTests.csindex 64d3d41f8..6cd878c41 100644--- a/unity/Assets/Tests/EditMode/InfoPanelLayoutTests.cs+++ b/unity/Assets/Tests/EditMode/InfoPanelLayoutTests.cs@@ -98,7 +98,8 @@ public class InfoPanelLayoutTests/// <summary>#397: with Lydda's hex chosen (the longest region line: "Ramle Sub-District, Lydda District (Mandate/// sub-districts, 1947)") and an event open, every shown label of the info panel lies inside the panel and its text fits- /// its box, the panel lies in the window, and it overlaps neither the event column nor the minimap, at every window size.</summary>+ /// its box, the panel lies in the window, and it overlaps neither the minimap nor the event card (unless the card's backdrop+ /// covers it, the panel disabled under it), at every window size.</summary>[UnityTest]public IEnumerator InfoPanelTextStaysInsideThePanel(){@@ -113,8 +114,12 @@ public class InfoPanelLayoutTestsAssert.AreEqual(DisplayStyle.Flex, root.Q("event-card").resolvedStyle.display, $"{w}x{h}: precondition: an event is open");Assert.IsNotEmpty(root.Q<Label>("info-region").text, $"{w}x{h}: precondition: the hex names its region");if (!Inside(panel.worldBound, window)) problems.Add($"{w}x{h}: the panel {panel.worldBound} leaves the window {window}");- foreach (var other in new[] { "event-card", "minimap" })- if (panel.worldBound.Overlaps(root.Q(other).worldBound)) problems.Add($"{w}x{h}: the panel {panel.worldBound} overlaps {other} {root.Q(other).worldBound}");+ if (panel.worldBound.Overlaps(root.Q("minimap").worldBound)) problems.Add($"{w}x{h}: the panel {panel.worldBound} overlaps the minimap {root.Q("minimap").worldBound}");+ // The open decision card sits in the middle over a backdrop (decision cards, 2026-10-13): the panel may lie+ // under the card, and then it waits out of reach until the card is hidden or answered.+ if (panel.worldBound.Overlaps(root.Q("event-card").worldBound)+ && !(root.Q("root").ClassListContains(EventCardPresenter.ModalClass) && !panel.enabledInHierarchy))+ problems.Add($"{w}x{h}: the panel {panel.worldBound} overlaps the event card {root.Q("event-card").worldBound} with no backdrop over it");foreach (var l in panel.Query<Label>().ToList().Where(l => !string.IsNullOrEmpty(l.text) && Shown(l))){if (!Inside(l.worldBound, panel.worldBound)) problems.Add($"{w}x{h}: '{l.text}' {l.worldBound} leaves the panel {panel.worldBound}");diff --git a/unity/Assets/Tests/EditMode/MapLabelTests.cs b/unity/Assets/Tests/EditMode/MapLabelTests.csindex c44eab367..76966c041 100644--- a/unity/Assets/Tests/EditMode/MapLabelTests.cs+++ b/unity/Assets/Tests/EditMode/MapLabelTests.cs@@ -585,7 +585,7 @@ public class MapLabelTestsvar labels = new MapLabelsPresenter(hd.Root, map, cam);try{- Pose(34.43, 31.95, 90000f); // Tel Aviv on the right, where the event card opens+ Pose(34.78, 32.08, 90000f); // Tel Aviv in the middle, where the decision card opensyield return Settle(labels);var tlv = labels.Slots.Single(s => s.name == "slot-tel_aviv");var before = tlv.Q<Label>().worldBound;diff --git a/unity/Assets/Tests/EditMode/PromoHudTests.cs b/unity/Assets/Tests/EditMode/PromoHudTests.csindex 5246e530a..bd38a6c1f 100644--- a/unity/Assets/Tests/EditMode/PromoHudTests.cs+++ b/unity/Assets/Tests/EditMode/PromoHudTests.cs@@ -236,7 +236,7 @@ public class PromoHudTests}foreach (var e in new[] { root.Q("nav"), root.Q(className: "turn-box"), badge })Assert.LessOrEqual(e.worldBound.yMax, barRect.yMax + 0.5f, $"{where}: {e.name}{string.Join(".", e.GetClasses())} leaves the bar");- Assert.GreaterOrEqual(root.Q("right-column").worldBound.yMin, barRect.yMax, where + ": the event column starts under the bar");+ Assert.GreaterOrEqual(root.Q("right-column").worldBound.yMin, barRect.yMax, where + ": the minimap column starts under the bar");var screen = root.Q("screen-why");screen.style.display = DisplayStyle.Flex; // opened, as ScreenNav doesfor (int i = 0; i < 2; i++) yield return null;@@ -475,7 +475,7 @@ public class PromoHudTests}}- /// <summary>Integration bug B7: the toast is opaque and never covers an open screen or the event column.</summary>+ /// <summary>Integration bug B7: the toast is opaque and never covers an open screen or the minimap column.</summary>[UnityTest]public IEnumerator TheToastIsOpaqueAndClearOfTheScreens(){@@ -493,7 +493,7 @@ public class PromoHudTestsfor (int i = 0; i < 3; i++) yield return null;Assert.AreEqual(1f, toast.resolvedStyle.backgroundColor.a, 1e-3f, "opaque");Assert.IsFalse(toast.worldBound.Overlaps(ui.Q<VisualElement>("screen-" + s).worldBound), $"the toast {toast.worldBound} covers {s}");- Assert.IsFalse(toast.worldBound.Overlaps(ui.Q<VisualElement>("right-column").worldBound), "the toast covers the event column");+ Assert.IsFalse(toast.worldBound.Overlaps(ui.Q<VisualElement>("right-column").worldBound), "the toast covers the minimap column");Assert.GreaterOrEqual(toast.worldBound.yMin, ui.Q<VisualElement>("top-bar").worldBound.yMax, "the toast starts under the bar");}}diff --git a/unity/Assets/Tests/EditMode/PromoScreensTests.cs b/unity/Assets/Tests/EditMode/PromoScreensTests.csindex b173b3381..d121b5543 100644--- a/unity/Assets/Tests/EditMode/PromoScreensTests.cs+++ b/unity/Assets/Tests/EditMode/PromoScreensTests.cs@@ -434,7 +434,7 @@ public class PromoScreensTests}/// <summary>Both screens at the window shapes the HUD supports (16:9 at 1920x1080 and 1366x768, 16:10, 4:3, 5:4, the- /// wide-and-short browser, square and narrower): each opens under the top bar, clear of the event column and the+ /// wide-and-short browser, square and narrower): each opens under the top bar, clear of the minimap column and the/// minimap (over the info panel, which it is drawn above), and nothing on it leaves it or its panel sideways; every/// one-line text fits its box.</summary>[UnityTest]@@ -472,9 +472,9 @@ public class PromoScreensTestsvar screen = root.Q("screen-" + s); var sr = screen.worldBound;if (!(sr.width > 300)) { problems.Add($"{where}: the screen is {sr}"); continue; }if (sr.yMin < root.Q("top-bar").worldBound.yMax - 0.5f) problems.Add($"{where}: starts over the top bar");- // Clear of the event column, or (two-row HUD, #210) full width with the column hidden.+ // Clear of the minimap column, or (two-row HUD, #210) full width with the column hidden.var column = root.Q("right-column");- if (column.resolvedStyle.display != DisplayStyle.None && sr.Overlaps(column.worldBound)) problems.Add($"{where}: overlaps the event column {column.worldBound}");+ if (column.resolvedStyle.display != DisplayStyle.None && sr.Overlaps(column.worldBound)) problems.Add($"{where}: overlaps the minimap column {column.worldBound}");var parent = root.Q("root");if (parent.IndexOf(screen) < parent.IndexOf(root.Q("info-panel"))) problems.Add($"{where}: drawn under the info panel");// Everything shown stays inside the screen sideways, and inside its panel (a card, a Defence panel, the house).@@ -683,7 +683,7 @@ public class PromoScreensTests}/// <summary>#210: at a phone-shaped 390x844 and at 960x600 every screen is usable: at least 500 logical px wide and- /// 300 tall, under the top bar. In the two-row HUD (390x844) a screen takes the full width, the event column and the+ /// 300 tall, under the top bar. In the two-row HUD (390x844) a screen takes the full width, the minimap column and the/// info panel under it are hidden and ignore map clicks, and the toast sits below the screen.</summary>[UnityTest]public IEnumerator EveryScreenIsUsableInANarrowWindow()@@ -742,7 +742,7 @@ public class PromoScreensTestsinfo.Show(tlv.Q, tlv.R);if (info.Selected != before) problems.Add($"{where}: a map click changed the hidden info panel");}- else if (r.Overlaps(root.Q("right-column").worldBound)) problems.Add($"{where}: overlaps the event column");+ else if (r.Overlaps(root.Q("right-column").worldBound)) problems.Add($"{where}: overlaps the minimap column");}nav.Open(null);for (int i = 0; i < 3; i++) yield return null;diff --git a/unity/Assets/Tests/EditMode/StartScreenTests.cs b/unity/Assets/Tests/EditMode/StartScreenTests.csindex 427732a36..818c74f33 100644--- a/unity/Assets/Tests/EditMode/StartScreenTests.cs+++ b/unity/Assets/Tests/EditMode/StartScreenTests.cs@@ -346,7 +346,7 @@ public class StartScreenTestsowned.Add(new HudPresenter(ui.Root, bridge, Text));owned.Add(new ScreenNav(ui.Root));var info = new InfoPanelPresenter(ui.Root, bridge, Text, C.SettlementHexes.ToDictionary(x => x.Id, x => x.Id)); owned.Add(info);- owned.Add(new EventCardPresenter(ui.Root, bridge, Text, null));+ var card = new EventCardPresenter(ui.Root, bridge, Text, null); owned.Add(card);var toast = new ToastPresenter(ui.Root, bridge, Text); owned.Add(toast);var newGame = new NewGamePresenter(ui.Root, bridge, store, toast, Text, () => 5UL); owned.Add(newGame);var tlv = C.SettlementHexes.Single(x => x.Id == "tel_aviv");@@ -360,7 +360,7 @@ public class StartScreenTestsAssert.IsNotNull(ui.Root.Q("event-options").Q<Button>(), "precondition: an event's options are shown");void NoneReachable(string where){- foreach (var region in new[] { "top-bar", "right-column", "info-panel" })+ foreach (var region in new[] { "top-bar", "right-column", "info-panel", "event-layer" })foreach (var b in ui.Root.Q(region).Query<Button>().ToList()){Assert.IsFalse(b.canGrabFocus, $"{where}: {region} {b.name} cannot take the focus under the start screen");@@ -371,7 +371,15 @@ public class StartScreenTestsNoneReachable("under the start screen");ui.Press("start-continue");yield return null; yield return null;- Assert.IsTrue(build.canGrabFocus, "the build button is back once the screen closes");+ // The waiting event's card opens in the middle (decision cards) and takes the focus (review S1); its options are+ // in reach, the panels under its backdrop are not; Hide gives them back.+ yield return null;+ Assert.AreSame(ui.Root.Q("event-card"), ui.Root.panel.focusController.focusedElement, "the event card has the focus once the screen closes");+ Assert.IsTrue(ui.Root.Q("event-options").Q<Button>().canGrabFocus, "the event's options are in reach once the screen closes");+ Assert.IsFalse(build.canGrabFocus, "the info panel waits under the decision card's backdrop");+ card.Collapse();+ yield return null;+ Assert.IsTrue(build.canGrabFocus, "the build button is back once the card is hidden");}finally { for (int i = owned.Count - 1; i >= 0; i--) owned[i].Dispose(); }}diff --git a/unity/Assets/Tests/EditMode/UiLayoutTests.cs b/unity/Assets/Tests/EditMode/UiLayoutTests.csindex a7b289309..6817306db 100644--- a/unity/Assets/Tests/EditMode/UiLayoutTests.cs+++ b/unity/Assets/Tests/EditMode/UiLayoutTests.cs@@ -13,10 +13,11 @@ using UnityEngine.UIElements;/// <summary>The screen layout at 1920x1080 and 1280x720 (the panel scales with the screen against a 1080p reference,/// so both resolve to the same logical layout): no fixed region overlaps another, no centre screen covers a fixed region,-/// and the six top-bar meters fit before the screen buttons at their minimum width.</summary>+/// and the six top-bar meters fit before the screen buttons at their minimum width. The decision card is not a fixed+/// region: it opens in the middle over a backdrop that covers the others (DecisionCardTests).</summary>public class UiLayoutTests{- static readonly string[] Fixed = { "top-bar", "event-card", "info-panel", "minimap" };+ static readonly string[] Fixed = { "top-bar", "info-panel", "minimap" };static readonly string[] Screens = { "screen-cabinet", "screen-budget", "screen-defence", "screen-why" };[UnityTest]@@ -42,7 +43,7 @@ public class UiLayoutTestsforeach (var b in Fixed)if (string.CompareOrdinal(a, b) < 0) Assert.IsFalse(R(a).Overlaps(R(b)), $"{w}x{h}: {a} {R(a)} overlaps {b} {R(b)}");// A wide screen (Cabinet, Defence: promo 04 and 08) opens over the info panel, drawn above it; no screen- // covers the top bar, the event card or the minimap.+ // covers the top bar or the minimap.foreach (var s in Screens)foreach (var f in Fixed){@@ -135,11 +136,12 @@ public class UiLayoutTestsfinally { nav.Dispose(); info.Dispose(); Object.DestroyImmediate(go); Object.DestroyImmediate(ps); rt.Release(); Object.DestroyImmediate(rt); }}- /// <summary>#400: in the two-row HUD every open screen takes the full width, and the stylesheet hides the event column and- /// the info panel under it (.hud-two-row.screen-open). In August 1950, with a hex selected and an event waiting, their- /// buttons are live, and none may take the focus while hidden: when Budget opens in two rows, and when a window already- /// showing Budget beside the panels narrows into two rows (the tier changes under the open screen). Widening again, or- /// closing the screen, brings them back.</summary>+ /// <summary>#400: in the two-row HUD every open screen takes the full width, and the stylesheet hides the minimap column+ /// and the info panel under it (.hud-two-row.screen-open). In August 1950, with a hex selected and an event waiting (its+ /// card collapsed, so its backdrop covers nothing), their buttons are live, and none may take the focus while hidden:+ /// when Budget opens in two rows, and when a window already showing Budget beside the panels narrows into two rows (the+ /// tier changes under the open screen). Widening again, or closing the screen, brings them back. Any open screen covers+ /// the decision layer: its "Decision waiting" button is out of reach until the screen closes.</summary>[UnityTest]public IEnumerator TheTwoRowHudKeepsWhatAScreenCoversOutOfReach(){@@ -164,25 +166,32 @@ public class UiLayoutTestsowned.Add(new HudPresenter(root, bridge, Text));var nav = new ScreenNav(root); owned.Add(nav);var info = new InfoPanelPresenter(root, bridge, Text, C.SettlementHexes.ToDictionary(x => x.Id, x => x.Id)); owned.Add(info);- owned.Add(new EventCardPresenter(root, bridge, Text, null));+ var card = new EventCardPresenter(root, bridge, Text, null); owned.Add(card);var tlv = C.SettlementHexes.Single(x => x.Id == "tel_aviv");info.Show(tlv.Q, tlv.R);for (int i = 0; i < 4; i++) yield return null;+ Assert.IsNotNull(root.Q("event-options").Q<Button>(), "precondition: an event's options are shown");+ card.Collapse();+ for (int i = 0; i < 2; i++) yield return null;var build = root.Q<Button>("build-camp");+ var waiting = root.Q<Button>("event-reopen");Assert.IsTrue(build.enabledSelf && build.style.display.value == DisplayStyle.Flex, "precondition: build-camp is live: " + root.Q<Label>("info-reason").text);- Assert.IsNotNull(root.Q("event-options").Q<Button>(), "precondition: an event's options are shown");var covered = new[] { "right-column", "info-panel" };List<Button> Buttons() => covered.SelectMany(r => root.Q(r).Query<Button>().ToList()).ToList();+ void Out(Button b, string where)+ {+ Assert.IsFalse(b.canGrabFocus, $"{where}: {b.name} cannot take the focus");+ b.Focus();+ Assert.AreNotSame(b, b.focusController?.focusedElement, $"{where}: {b.name} is not focused");+ }void Reach(bool expected, string where){- // In reach: the two buttons known to be shown. Out of reach: every button in the covered panels.- foreach (var b in expected ? new[] { build, root.Q("event-options").Q<Button>() }.ToList() : Buttons())- {- Assert.AreEqual(expected, b.canGrabFocus, $"{where}: {b.name} can take the focus");- if (expected) continue;- b.Focus();- Assert.AreNotSame(b, b.focusController?.focusedElement, $"{where}: {b.name} is not focused");- }+ // In reach: the button known to be shown. Out of reach: every button in the covered panels.+ if (expected) Assert.IsTrue(build.canGrabFocus, $"{where}: {build.name} can take the focus");+ else foreach (var b in Buttons()) Out(b, where);+ // Under any open screen the decision layer is hidden and out of reach; with none, "Decision waiting" is live.+ if (nav.Current != null) Out(waiting, where);+ else Assert.IsTrue(waiting.canGrabFocus, $"{where}: Decision waiting can take the focus");}// Budget, a narrow screen, at 1080p: the panels stay beside it, in reach.@@ -390,7 +399,8 @@ public class UiLayoutTestsforeach (var l in bar.Query<VisualElement>().ToList().Where(e => e != bar && e.resolvedStyle.display == DisplayStyle.Flex))if (!Inside(R(l), R(bar))) problems.Add($"{w}x{h}: top bar child {l.name}/{(l as Label)?.text ?? l.GetClasses().FirstOrDefault()} {R(l)} leaves the bar {R(bar)}");var card = root.Q("event-card");- if (R(card).Overlaps(R(root.Q("minimap")))) problems.Add($"{w}x{h}: event card {R(card)} overlaps the minimap {R(root.Q("minimap"))}");+ if (!Inside(R(card), R(root.Q("event-layer")))) problems.Add($"{w}x{h}: event card {R(card)} leaves the decision layer {R(root.Q("event-layer"))}");+ if (R(card).yMin < R(bar).yMax - 0.5f) problems.Add($"{w}x{h}: event card {R(card)} starts over the top bar {R(bar)}");foreach (var s in ScreenNav.Screens){nav.Open(s);@@ -421,13 +431,24 @@ public class UiLayoutTestsreturn wrapped.y <= box.height + 1f;}- /// <summary>Task 24 review I2: every real event, the tallest included, fits its card above the minimap at every window- /// shape, wide and short ones included: the card never overlaps the minimap and its option buttons stay inside it.</summary>+ /// <summary>The window shapes the HUD supports (PromoHudTests.EveryWindowShapeFitsTheBarAfterATurn: one row, the+ /// stacked bar, two rows), a phone upright (three rows), a small laptop, the playtest's wide-and-short browser windows+ /// and 21:9.</summary>+ static readonly (int w, int h)[] CardWindows =+ {+ (1920, 1080), (1280, 720), (1366, 768), (1760, 1000), (1920, 1200), (1440, 900), (1024, 768), (1280, 1024),+ (1024, 1024), (960, 1080), (800, 1000), (390, 844), (960, 600), (1531, 784), (1568, 752), (2560, 1080), (1920, 900), (1366, 657),+ };++ /// <summary>Decision cards (2026-10-13), after Task 24 review I2: every real event, the tallest included, fits the+ /// decision layer at every window shape, the narrow two- and three-row HUDs included: the card is centred, at most+ /// 1040 px wide, below the top bar and inside the layer; its option buttons stay inside it with their text; and its+ /// media header is 16:9 whenever the card has the height for it (on a full card it gives way first, as before).</summary>[UnityTest]- public IEnumerator EveryEventCardStaysAboveTheMinimap()+ public IEnumerator EveryEventCardFitsTheDecisionLayer(){var problems = new List<string>();- foreach (var (w, h) in new[] { (1920, 1080), (1280, 720), (1531, 784), (1568, 752), (2560, 1080), (1920, 900), (1366, 657), (1280, 1024) })+ foreach (var (w, h) in CardWindows){var rt = new RenderTexture(w, h, 0);var ps = Object.Instantiate(AssetDatabase.LoadAssetAtPath<PanelSettings>(UiPaths.Panel));@@ -446,6 +467,7 @@ public class UiLayoutTests// And the real event photographs: a photograph card adds the 200 px header band and its credit line.var photos = AssetDatabase.LoadAssetAtPath<EventImageCatalog>("Assets/Resources/EventImageCatalog.asset");Assert.IsNotNull(photos);+ var hud = new HudPresenter(root, bridge, Text); // the bar's tier (one, two or three rows) sets the layer's topvar card = new EventCardPresenter(root, bridge, Text, portraits, photos);float tallest = 0; string tallestId = "";try@@ -459,11 +481,9 @@ public class UiLayoutTestsbridge.Replace(g);for (int i = 0; i < 4; i++) yield return null; // the fourth: a photograph dropped for height settlesCheckPhoto($"{w}x{h}: {e.Id}", root, card, problems);+ CheckCard($"{w}x{h}: {e.Id}", root, problems);var c = root.Q("event-card").worldBound;- var mini = root.Q("minimap").worldBound;if (c.height > tallest) { tallest = c.height; tallestId = e.Id; }- if (c.yMax > mini.yMin + 0.5f && c.xMax > mini.xMin && c.xMin < mini.xMax)- problems.Add($"{w}x{h}: {e.Id}: card {c} overlaps the minimap {mini}");foreach (var b in root.Q("event-options").Query<Button>().ToList()){if (b.worldBound.yMax > c.yMax + 0.5f || b.worldBound.yMin < c.yMin - 0.5f || b.worldBound.xMax > c.xMax + 0.5f || b.worldBound.xMin < c.xMin - 0.5f)@@ -480,17 +500,46 @@ public class UiLayoutTestsproblems.Add($"{w}x{h} (logical height {logicalHeight:0}): {e.Id}: the body scrolls ({scroll.contentContainer.layout.height:0} px of text in {scroll.contentViewport.layout.height:0} px)");}Debug.Log($"I2 {w}x{h}: tallest card {tallestId} {tallest:0} px");- Assert.Greater(tallest, 400f, $"{w}x{h}: the cards were laid out (a short window shrinks the tallest to fit)");+ Assert.Greater(tallest, 300f, $"{w}x{h}: the cards were laid out (a short window shrinks the tallest to fit)");}finally{- card.Dispose();+ card.Dispose(); hud.Dispose();Object.DestroyImmediate(go); Object.DestroyImmediate(ps); rt.Release(); Object.DestroyImmediate(rt);}}Assert.IsEmpty(problems, string.Join("\n", problems));}+ /// <summary>The decision card's place: in the decision layer, centred across it, at most CardMaxWidth logical px wide and+ /// below the top bar, Hide inside it; a shown media header is 16:9 unless the card is as tall as the layer (then it gave+ /// way first), and while it shows the body does not scroll.</summary>+ // Tolerances: whole pixels at the panel's scale (2/3 at 1280x720; about 2 logical px per pixel at 390x844).+ static void CheckCard(string where, VisualElement root, List<string> problems)+ {+ var card = root.Q("event-card"); var layer = root.Q("event-layer"); var bar = root.Q("top-bar");+ var c = card.worldBound; var l = layer.worldBound;+ if (!Inside(c, l)) problems.Add($"{where}: the card {c} leaves the decision layer {l}");+ if (Mathf.Abs((c.xMin - l.xMin) - (l.xMax - c.xMax)) > 1f) problems.Add($"{where}: the card {c} is not centred in the layer {l}");+ if (c.width > CardMaxWidth + 1.5f) problems.Add($"{where}: the card is {c.width:0} px wide, over {CardMaxWidth}");+ if (c.yMin < bar.worldBound.yMax - 0.5f) problems.Add($"{where}: the card {c} starts over the top bar {bar.worldBound}");+ var hide = root.Q("event-hide").worldBound;+ if (!Inside(hide, c)) problems.Add($"{where}: Hide {hide} is cut off by the card {c}");+ // The header gives way before the text on every window: while a photograph shows, the body never scrolls.+ var scroll = root.Q<ScrollView>("event-scroll");+ if (root.Q("event-photo").resolvedStyle.display == DisplayStyle.Flex && scroll.contentContainer.layout.height > scroll.contentViewport.layout.height + 1f)+ problems.Add($"{where}: the body scrolls ({scroll.contentContainer.layout.height:0} px of text in {scroll.contentViewport.layout.height:0} px) while the photograph shows");+ var band = root.Q("event-photo");+ if (band.resolvedStyle.display == DisplayStyle.Flex && c.height < l.height - 1f)+ {+ var want = band.layout.width / EventCardPresenter.MediaAspect;+ if (Mathf.Abs(band.layout.height - want) > 2.5f) problems.Add($"{where}: the media header is {band.layout.width:0}x{band.layout.height:0}, not 16:9 ({want:0} px tall), with room to spare");+ }+ }++ /// <summary>The card's largest width (Statecraft.uss .event-card), logical px.</summary>+ const float CardMaxWidth = 1040f;+/// <summary>Review I2 and I6: a shown photograph keeps at least MinPhotoHeight of picture above its whole credit line/// (CC BY 4.0 needs the credit), the credit's text fits the strip, and PhotoAlt says whether it is shown.</summary>static void CheckPhoto(string where, VisualElement root, EventCardPresenter card, List<string> problems)@@ -509,10 +558,11 @@ public class UiLayoutTestsif (!TextFits(credit)) problems.Add($"{where}: the credit '{credit.text}' does not fit its strip {credit.contentRect}");}- /// <summary>Review I6 and the re-review's ultrawide finding: on a short window (logically under- /// EventCardPresenter.ScrollFallbackHeight) a photograph is either shown whole with its credit, the body scrolling for- /// it as it may there, or dropped rather than squeezed (PhotoAlt is null); the credit is never cut and the card clears- /// the minimap with its options inside it. An ultrawide 2560x1080 window shows photographs.</summary>+ /// <summary>Review I6 and the re-review's ultrawide finding, for the 16:9 header: on a short window (logically under+ /// EventCardPresenter.ScrollFallbackHeight) a photograph is either shown with its whole credit (the header shorter,+ /// cropped, the body not scrolling) or dropped rather than squeezed (PhotoAlt is null); the credit is never cut and the+ /// card stays in the decision layer with its options and Hide inside it. An ultrawide 2560x1080 window shows+ /// photographs.</summary>[UnityTest]public IEnumerator AShortWindowShowsThePhotographWholeOrDropsIt(){@@ -546,10 +596,8 @@ public class UiLayoutTestsfor (int i = 0; i < 4; i++) yield return null;CheckPhoto($"{w}x{h}: {e.Id}", root, card, problems);if (card.PhotoAlt == null) dropped++; else shown++;+ CheckCard($"{w}x{h}: {e.Id}", root, problems);var c = root.Q("event-card").worldBound;- var mini = root.Q("minimap").worldBound;- if (c.yMax > mini.yMin + 0.5f && c.xMax > mini.xMin && c.xMin < mini.xMax)- problems.Add($"{w}x{h}: {e.Id}: card {c} overlaps the minimap {mini}");foreach (var b in root.Q("event-options").Query<Button>().ToList())if (!Inside(b.worldBound, c)) problems.Add($"{w}x{h}: {e.Id}: option '{b.text}' {b.worldBound} is cut off by the card {c}");}@@ -567,7 +615,7 @@ public class UiLayoutTests}/// <summary>Review I2: a photograph dropped because the window got shorter comes back when it grows again, without a- /// new event (the card listens to the right-hand column's size, which only the window changes).</summary>+ /// new event (the card listens to the decision layer's size, which only the window changes).</summary>[UnityTest]public IEnumerator ADroppedPhotographReturnsWhenTheWindowGrows(){@@ -586,13 +634,13 @@ public class UiLayoutTestsg.State.Date = C.Events.First(e => e.Id == "armistice_egypt").From;g.State.PendingEvents.Clear(); g.State.PendingEvents.Add("armistice_egypt");var card = new EventCardPresenter(root, new SimBridge(g, Text), Text, null, photos);- var column = root.Q("right-column");+ var column = root.Q("event-layer");try{for (int i = 0; i < 20 && float.IsNaN(root.Q("minimap").worldBound.width); i++) yield return null;for (int i = 0; i < 3; i++) yield return null;Assert.IsNotNull(card.PhotoAlt, "1080p has room for the photograph");- column.style.bottom = 560; // as a much shorter window would leave the column+ column.style.bottom = 700; // as a much shorter window would leave the layer (268 px)for (int i = 0; i < 4; i++) yield return null;Assert.IsNull(card.PhotoAlt, "a short column drops the photograph");Assert.AreEqual(DisplayStyle.None, root.Q("event-photo").resolvedStyle.display);diff --git a/unity/Assets/UI/EventImages/altalena.jpg b/unity/Assets/UI/EventImages/altalena.jpgindex 70a95971b..b1fe59a8d 100644Binary files a/unity/Assets/UI/EventImages/altalena.jpg and b/unity/Assets/UI/EventImages/altalena.jpg differdiff --git a/unity/Assets/UI/EventImages/armistice_egypt.jpg b/unity/Assets/UI/EventImages/armistice_egypt.jpgindex feb7dab7a..d1c9ffce9 100644Binary files a/unity/Assets/UI/EventImages/armistice_egypt.jpg and b/unity/Assets/UI/EventImages/armistice_egypt.jpg differdiff --git a/unity/Assets/UI/EventImages/armistice_jordan.jpg b/unity/Assets/UI/EventImages/armistice_jordan.jpgindex b7435a2dd..a9ca06b66 100644Binary files a/unity/Assets/UI/EventImages/armistice_jordan.jpg and b/unity/Assets/UI/EventImages/armistice_jordan.jpg differdiff --git a/unity/Assets/UI/EventImages/austerity_1949.jpg b/unity/Assets/UI/EventImages/austerity_1949.jpgindex 8010b0ead..a88cd6561 100644Binary files a/unity/Assets/UI/EventImages/austerity_1949.jpg and b/unity/Assets/UI/EventImages/austerity_1949.jpg differdiff --git a/unity/Assets/UI/EventImages/bernadotte_assassination.jpg b/unity/Assets/UI/EventImages/bernadotte_assassination.jpgindex cacf91f8c..34edde993 100644Binary files a/unity/Assets/UI/EventImages/bernadotte_assassination.jpg and b/unity/Assets/UI/EventImages/bernadotte_assassination.jpg differdiff --git a/unity/Assets/UI/EventImages/clothing_rationing_1950.jpg b/unity/Assets/UI/EventImages/clothing_rationing_1950.jpgindex 96177f715..a556d009c 100644Binary files a/unity/Assets/UI/EventImages/clothing_rationing_1950.jpg and b/unity/Assets/UI/EventImages/clothing_rationing_1950.jpg differdiff --git a/unity/Assets/UI/EventImages/elections_1949.jpg b/unity/Assets/UI/EventImages/elections_1949.jpgindex e7fb180ea..af3223c53 100644Binary files a/unity/Assets/UI/EventImages/elections_1949.jpg and b/unity/Assets/UI/EventImages/elections_1949.jpg differdiff --git a/unity/Assets/UI/EventImages/event-images.yaml b/unity/Assets/UI/EventImages/event-images.yamlindex 4359296d4..761721cc5 100644--- a/unity/Assets/UI/EventImages/event-images.yaml+++ b/unity/Assets/UI/EventImages/event-images.yaml@@ -4,7 +4,7 @@# Each row: the event id, the shipped file (in this folder), the Commons file page and original (with its SHA-1), the# licence (ALLOWED_LICENCES spelling), the artist, the credit line shown under the picture (for CC BY 4.0, the credit# line the licensor asks for on Commons, plus the licence and the adaptation), the alt text, the crop (centre x, centre y-# and width, as shares of the original; the height follows from the 9:4 header) and the sensitivity flags.+# and width, as shares of the original; the height follows from the 16:9 media header; re-cropped from 9:4 on 2026-10-13) and the sensitivity flags.# sensitive: true rows may not ship in a -shareable build until sensitivity_reviewed: true (an OWNER step; Build.cs).# Owner ruling 2026-10-11 (summarised in docs/CONTENT_POLICY.md section 4): CC BY 4.0 event photos allowed with a# credit line; shown in black and white with a subtle warm grade and the gold frame; no colourising, no change beyonddiff --git a/unity/Assets/UI/EventImages/first_truce.jpg b/unity/Assets/UI/EventImages/first_truce.jpgindex 8fe56e17f..a8bb1e087 100644Binary files a/unity/Assets/UI/EventImages/first_truce.jpg and b/unity/Assets/UI/EventImages/first_truce.jpg differdiff --git a/unity/Assets/UI/EventImages/frumkin_commission.jpg b/unity/Assets/UI/EventImages/frumkin_commission.jpgindex d73c19d96..efc6393bc 100644Binary files a/unity/Assets/UI/EventImages/frumkin_commission.jpg and b/unity/Assets/UI/EventImages/frumkin_commission.jpg differdiff --git a/unity/Assets/UI/EventImages/hula_drainage.jpg b/unity/Assets/UI/EventImages/hula_drainage.jpgindex ddc717d27..7fbc6851a 100644Binary files a/unity/Assets/UI/EventImages/hula_drainage.jpg and b/unity/Assets/UI/EventImages/hula_drainage.jpg differdiff --git a/unity/Assets/UI/EventImages/idf_founding.jpg b/unity/Assets/UI/EventImages/idf_founding.jpgindex 6dd68fb3b..56ff4b1d7 100644Binary files a/unity/Assets/UI/EventImages/idf_founding.jpg and b/unity/Assets/UI/EventImages/idf_founding.jpg differdiff --git a/unity/Assets/UI/EventImages/iraqi_exodus.jpg b/unity/Assets/UI/EventImages/iraqi_exodus.jpgindex a91292883..edde9c44a 100644Binary files a/unity/Assets/UI/EventImages/iraqi_exodus.jpg and b/unity/Assets/UI/EventImages/iraqi_exodus.jpg differdiff --git a/unity/Assets/UI/EventImages/israel_bonds.jpg b/unity/Assets/UI/EventImages/israel_bonds.jpgindex 0d92f841c..3a699005d 100644Binary files a/unity/Assets/UI/EventImages/israel_bonds.jpg and b/unity/Assets/UI/EventImages/israel_bonds.jpg differdiff --git a/unity/Assets/UI/EventImages/jerusalem_ceasefire.jpg b/unity/Assets/UI/EventImages/jerusalem_ceasefire.jpgindex 2a405d3bc..0c406d740 100644Binary files a/unity/Assets/UI/EventImages/jerusalem_ceasefire.jpg and b/unity/Assets/UI/EventImages/jerusalem_ceasefire.jpg differdiff --git a/unity/Assets/UI/EventImages/jerusalem_military_government.jpg b/unity/Assets/UI/EventImages/jerusalem_military_government.jpgindex b883ca153..85ddd9274 100644Binary files a/unity/Assets/UI/EventImages/jerusalem_military_government.jpg and b/unity/Assets/UI/EventImages/jerusalem_military_government.jpg differdiff --git a/unity/Assets/UI/EventImages/latrun_proposal.jpg b/unity/Assets/UI/EventImages/latrun_proposal.jpgindex 5a262a03b..002a80a62 100644Binary files a/unity/Assets/UI/EventImages/latrun_proposal.jpg and b/unity/Assets/UI/EventImages/latrun_proposal.jpg differdiff --git a/unity/Assets/UI/EventImages/law_of_return.jpg b/unity/Assets/UI/EventImages/law_of_return.jpgindex 6de16aac2..be4eeb82c 100644Binary files a/unity/Assets/UI/EventImages/law_of_return.jpg and b/unity/Assets/UI/EventImages/law_of_return.jpg differdiff --git a/unity/Assets/UI/EventImages/maabarot_policy.jpg b/unity/Assets/UI/EventImages/maabarot_policy.jpgindex eb2835d33..2a80d1674 100644Binary files a/unity/Assets/UI/EventImages/maabarot_policy.jpg and b/unity/Assets/UI/EventImages/maabarot_policy.jpg differdiff --git a/unity/Assets/UI/EventImages/ministry_supply_crisis.jpg b/unity/Assets/UI/EventImages/ministry_supply_crisis.jpgindex 8a0eeb576..1465ccb67 100644Binary files a/unity/Assets/UI/EventImages/ministry_supply_crisis.jpg and b/unity/Assets/UI/EventImages/ministry_supply_crisis.jpg differdiff --git a/unity/Assets/UI/EventImages/operation_hiram.jpg b/unity/Assets/UI/EventImages/operation_hiram.jpgindex fc03c0978..0eec09c20 100644Binary files a/unity/Assets/UI/EventImages/operation_hiram.jpg and b/unity/Assets/UI/EventImages/operation_hiram.jpg differdiff --git a/unity/Assets/UI/EventImages/operation_horev.jpg b/unity/Assets/UI/EventImages/operation_horev.jpgindex 5c500ddff..32ef11e85 100644Binary files a/unity/Assets/UI/EventImages/operation_horev.jpg and b/unity/Assets/UI/EventImages/operation_horev.jpg differdiff --git a/unity/Assets/UI/EventImages/operation_yoav.jpg b/unity/Assets/UI/EventImages/operation_yoav.jpgindex 244ddcef2..9a0a6f7ef 100644Binary files a/unity/Assets/UI/EventImages/operation_yoav.jpg and b/unity/Assets/UI/EventImages/operation_yoav.jpg differdiff --git a/unity/Assets/UI/EventImages/second_truce.jpg b/unity/Assets/UI/EventImages/second_truce.jpgindex 1ea0b3791..1492ffe85 100644Binary files a/unity/Assets/UI/EventImages/second_truce.jpg and b/unity/Assets/UI/EventImages/second_truce.jpg differdiff --git a/unity/Assets/UI/EventImages/ten_days.jpg b/unity/Assets/UI/EventImages/ten_days.jpgindex a62505f68..6020a23cd 100644Binary files a/unity/Assets/UI/EventImages/ten_days.jpg and b/unity/Assets/UI/EventImages/ten_days.jpg differdiff --git a/unity/Assets/UI/Game.uxml b/unity/Assets/UI/Game.uxmlindex c74709596..91ed22eb0 100644--- a/unity/Assets/UI/Game.uxml+++ b/unity/Assets/UI/Game.uxml@@ -75,29 +75,8 @@<ui:Button name="end-turn" text="End Turn" class="end-turn" /></ui:VisualElement></ui:VisualElement>- <!-- The right-hand column (Task 24 review I2): the event card above the minimap, so the two can never overlap; a tall- card shrinks its text, which scrolls, and keeps its option buttons. -->+ <!-- The right-hand column: the minimap, with the border layer's caption beside it. --><ui:VisualElement name="right-column" class="right-column" picking-mode="Ignore">- <ui:VisualElement name="event-card" class="panel event-card">- <!-- The promo's header picture: an archival photograph of the event (EventImageCatalog), framed in gold, with its- credit line as a caption strip along its bottom edge. Events without one show the minister's portrait in- the head instead. -->- <ui:VisualElement name="event-photo" class="event-photo"><ui:Label name="event-photo-credit" class="event-photo-credit" /></ui:VisualElement>- <!-- A portrait-shaped thumbnail beside the heading, framed on the face (playtest 2, P2-3 and P2-5). -->- <ui:VisualElement class="event-head">- <ui:VisualElement name="event-image" class="event-image" />- <ui:VisualElement class="event-heading">- <ui:Label name="event-draft" text="DRAFT" class="draft" />- <ui:Label name="event-title" class="title event-title" />- <ui:Label name="event-office" class="muted event-office" />- </ui:VisualElement>- </ui:VisualElement>- <ui:VisualElement class="gold-rule" />- <ui:ScrollView name="event-scroll" class="event-scroll"><ui:Label name="event-text" class="event-text" /></ui:ScrollView>- <ui:VisualElement name="event-options" />- <ui:Label name="event-count" class="muted" />- <Statecraft.Game.UI.UiFrame filigree="true" />- </ui:VisualElement><ui:VisualElement class="right-gap" picking-mode="Ignore" /><!-- What the map's region borders show while they are drawn (owner ruling 2026-10-11: "Mandate sub-districts, 1947"). --><ui:Label name="map-layer" class="map-layer" picking-mode="Ignore" />@@ -130,6 +109,38 @@</ui:VisualElement><Statecraft.Game.UI.UiFrame filigree="true" /></ui:VisualElement>+ <!-- The decision layer under the top bar (decision cards, 2026-10-13): while an event is open a dim backdrop blocks the+ map and the panels under it, and the card sits in the middle, up to 1040 px wide, with a 16:9 media header (the+ event's photograph). Hidden under the start screen and any open screen (ScreenNav.DisableCovered). -->+ <ui:VisualElement name="event-layer" class="event-layer" picking-mode="Ignore">+ <ui:VisualElement name="event-scrim" class="event-scrim" />+ <ui:VisualElement name="event-card" class="panel event-card">+ <!-- The 16:9 media header: an archival photograph of the event (EventImageCatalog), framed in gold, with its+ credit line as a caption strip along its bottom edge. Events without one show the minister's portrait in+ the head instead. -->+ <ui:VisualElement name="event-photo" class="event-photo"><ui:Label name="event-photo-credit" class="event-photo-credit" /></ui:VisualElement>+ <!-- A portrait-shaped thumbnail beside the heading, framed on the face (playtest 2, P2-3 and P2-5). -->+ <ui:VisualElement class="event-head">+ <ui:VisualElement name="event-image" class="event-image" />+ <ui:VisualElement class="event-heading">+ <ui:Label name="event-draft" text="DRAFT" class="draft" />+ <ui:Label name="event-title" class="title event-title" />+ <ui:Label name="event-office" class="muted event-office" />+ </ui:VisualElement>+ </ui:VisualElement>+ <ui:VisualElement class="gold-rule" />+ <ui:ScrollView name="event-scroll" class="event-scroll"><ui:Label name="event-text" class="event-text" /></ui:ScrollView>+ <ui:VisualElement name="event-options" />+ <!-- The count of other open decisions, and Hide: the card collapses to "Decision waiting" so the map can be+ inspected (EventCardPresenter.Collapse); focus order: the options, then Hide. -->+ <ui:VisualElement name="event-foot" class="event-foot">+ <ui:Label name="event-count" class="muted event-count" />+ <ui:Button name="event-hide" class="event-hide" />+ </ui:VisualElement>+ <Statecraft.Game.UI.UiFrame filigree="true" />+ </ui:VisualElement>+ <ui:Button name="event-reopen" class="event-reopen" />+ </ui:VisualElement><!-- The Cabinet as promo/final/04 (CabinetPresenter): a wide screen; the Prime Minister's card and the appointmentlist at the side; the legislature's seats (Hemicycle) with its legend above a grid of person cards. --><ui:VisualElement name="screen-cabinet" class="panel screen screen-wide">diff --git a/unity/Assets/UI/Statecraft.uss b/unity/Assets/UI/Statecraft.ussindex fcf11f1bd..952c4b5ba 100644--- a/unity/Assets/UI/Statecraft.uss+++ b/unity/Assets/UI/Statecraft.uss@@ -137,7 +137,7 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);/* The narrow HUD (HudPresenter sets hud-narrow on the root, with the compact bar): a taller bar whose meters put thechange under the value, so no change runs into its neighbour; the panels below the bar move down with it. */.hud-narrow .top-bar { height: 124px; }-.hud-narrow .right-column, .hud-narrow .screen, .hud-narrow .toast { top: 140px; }+.hud-narrow .right-column, .hud-narrow .event-layer, .hud-narrow .screen, .hud-narrow .toast { top: 140px; }.hud-narrow .meter { min-width: 96px; padding: 0 6px; }.hud-narrow .meter-row { flex-direction: column; align-items: flex-start; }.hud-narrow .meter-value { font-size: 22px; }@@ -146,12 +146,12 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);(78% of the bar, so they always take the first row) above, the screen buttons and End Turn below; the panels move down. */.hud-two-row .top-bar { height: 216px; padding-top: 6px; padding-bottom: 4px; flex-wrap: wrap; justify-content: space-between; align-content: space-around; }.hud-two-row .meters { width: 78%; flex-grow: 1; }-.hud-two-row .right-column, .hud-two-row .screen, .hud-two-row .toast { top: 232px; }+.hud-two-row .right-column, .hud-two-row .event-layer, .hud-two-row .screen, .hud-two-row .toast { top: 232px; }/* Narrower still (a phone upright; HudPresenter adds hud-three-row with hud-two-row): the badge, the meters and thescreen buttons with End Turn take a row each, and the panels move down under the taller bar (#210). */.hud-three-row .top-bar { height: 312px; }.hud-three-row .meters { width: 100%; }-.hud-three-row .right-column, .hud-three-row .screen, .hud-three-row .toast { top: 328px; }+.hud-three-row .right-column, .hud-three-row .event-layer, .hud-three-row .screen, .hud-three-row .toast { top: 328px; }.turn-box { width: 150px; flex-shrink: 1; min-width: 150px; align-items: flex-end; }#attention { font-size: 16px; }.end-turn {@@ -160,15 +160,37 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);}.end-turn:hover { border-color: var(--gold-light); }-/* Event card at the right, info panel at the bottom-left, minimap at the bottom-right. */-/* The event card and the minimap share one column (Task 24 review I2): the card can never reach the minimap; when the- window is short the portrait and then the text (it scrolls) give way, never the option buttons. */+/* The decision card in the middle (decision cards, 2026-10-13), the info panel at the bottom-left, the minimap at the+ bottom-right. The right-hand column keeps its 480 px width, so the screens and the border layer's caption stay where+ they were; it now holds only the minimap. */.right-column { position: absolute; right: 16px; top: 112px; bottom: 16px; width: 480px; }.right-gap { flex-grow: 1; flex-shrink: 0; min-height: 16px; }-.event-card { flex-shrink: 1; min-height: 0; max-height: 600px; overflow: hidden; } /* 600: room for a photograph card; the column still bounds it */+/* The decision layer: the room under the bar, top per HUD tier as the column's. While an event is open (event-open on the+ root) the map is blocked: the backdrop dims it and takes the pointer, so map clicks and drags stop at it, and+ ScreenNav.DisableCovered takes the panels under it out of Tab's reach; the top bar stays usable. The card sits in the+ middle. Hide collapses the card to the "Decision+ waiting" button at the layer's top right (EventCardPresenter), which takes no more room than itself. */+.event-layer { position: absolute; left: 16px; right: 16px; top: 112px; bottom: 16px; justify-content: center; align-items: center; }+.event-scrim { display: none; position: absolute; left: -16px; right: -16px; top: -16px; bottom: -16px; background-color: rgba(5, 9, 18, 0.55); }+.event-open .event-scrim { display: flex; }+.event-reopen {+ display: none; position: absolute; right: 0; top: 0; margin: 0; padding: 6px 18px; font-size: 20px; -unity-text-align: middle-center;+ background-color: var(--navy-solid); border-color: var(--gold); border-width: 1.5px; color: var(--gold-light);+}+.event-reopen:hover { border-color: var(--gold-light); }+/* Up to 1040 px wide, its 960 px content holding the 16:9 media header at 960x540 (the photographs' and the clips' size);+ the layer bounds its height. When the window is short the media header gives way first, then the text (it scrolls),+ never the option buttons. */+.event-card { width: 1040px; max-width: 100%; max-height: 100%; flex-shrink: 1; min-height: 0; overflow: hidden; padding: 16px 40px 10px 40px; }+.hud-two-row .event-card { padding-left: 16px; padding-right: 16px; }+/* The card takes the keyboard focus when an event opens (EventCardPresenter.FocusCard): a lighter gold edge says so. */+.event-card:focus { border-color: var(--gold-light); }.event-card > * { flex-shrink: 0; }.event-card > .event-scroll { flex-shrink: 1; min-height: 48px; }#event-options { flex-shrink: 0; }+.event-foot { flex-direction: row; align-items: center; justify-content: space-between; }+.event-count { flex-shrink: 1; white-space: normal; }+.event-hide { font-size: 17px; margin: 2px 0 0 12px; padding: 3px 16px; -unity-text-align: middle-center; }/* Hidden until EventCardPresenter shows an event (never visible while loading). */.event-card { display: none; }/* The card's head is its picture band: a dark plate holding the minister's framed portrait beside the title. */@@ -182,12 +204,13 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);width: 96px; height: 128px; flex-shrink: 0; margin-right: 12px; background-size: cover; background-color: var(--navy-deep);border-width: 1px; border-color: var(--gold);}-/* The header photograph (promo 03 and 05): full width, 9:4, a gold frame, its credit as a caption strip along the bottom- (so the credit costs the card no height). It gives way first on a short window (the large flex-shrink takes the- shortfall before the text); below its credit's height plus EventCardPresenter.MinPhotoHeight it is dropped until the- window grows again, so the body and the options never scroll for it and the credit (CC BY 4.0) is never cut. */+/* The media header (promo 03 and 05): full width, 16:9 (EventCardPresenter sets its height from the card's width; 540 px+ is the 960 px content's), a gold frame, its credit as a caption strip along the bottom (so the credit costs the card no+ height). It gives way first on a short window (the large flex-shrink takes the shortfall before the text); below its+ credit's height plus EventCardPresenter.MinPhotoHeight it is dropped until the window grows again, so the body and the+ options never scroll for it and the credit (CC BY 4.0) is never cut. */.event-card > .event-photo {- display: none; height: 200px; min-height: 0; flex-shrink: 1000; margin-bottom: 4px; overflow: hidden;+ display: none; height: 540px; min-height: 0; flex-shrink: 1000; margin-bottom: 4px; overflow: hidden;justify-content: flex-end; background-size: cover; background-color: var(--navy-deep); border-width: 1px; border-color: var(--gold);}.event-photo-credit {@@ -198,7 +221,7 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);/* Options wrap inside the card (playtest 2, P2-2); each has a round gold-rimmed sign at its left, as the promo's choices. */#event-options Button { white-space: normal; -unity-text-align: middle-left; }.event-option { min-height: 42px; padding: 5px 12px 5px 46px; margin: 3px 0; border-color: rgba(196, 160, 92, 0.6); }-.event-title { -unity-text-align: middle-center; margin-bottom: 4px; white-space: normal; font-size: 28px; } /* centred, as before, in its column */+.event-title { -unity-text-align: middle-center; margin-bottom: 4px; white-space: normal; font-size: 28px; } /* centred, as before, in the card */.event-text { white-space: normal; margin-bottom: 8px; }.draft { display: none; color: var(--down); -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf"); -unity-text-align: middle-center; }/* The info panel: the hex's terrain sign (UiIcon on the biome's map colour, InfoPanelPresenter) beside its facts. */@@ -250,12 +273,16 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);.screen .row.grow > .grow { min-height: 0; flex-shrink: 1; }/* The toast sits in the map's free top-left corner, above the info panel: opaque, and never over an open screen's title or- the event column (B7). */+ the minimap column (B7). */.toast {display: none; position: absolute; left: 16px; width: 520px; top: 112px; -unity-text-align: middle-center; white-space: normal;background-color: var(--navy-solid); border-color: var(--gold); border-width: 1.5px;}+/* While the decision card is open (ScreenNav.DisableCovered sets event-modal: the card shows and no screen is open) the+ toast's corner is under the card, so it moves to the middle, over the top of the media header, clear of the options. */+.event-modal .toast { left: 25%; right: 25%; width: auto; }+/* Scroll bars in the theme: a slim gold thumb on a faint track, no arrow buttons. */.unity-scroller--vertical { width: 10px; border-width: 0; background-color: rgba(0, 0, 0, 0); margin-left: 4px; }.unity-scroller--vertical > .unity-scroller__low-button, .unity-scroller--vertical > .unity-scroller__high-button { display: none; }@@ -266,12 +293,12 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);.why-group { -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf"); color: var(--gold); letter-spacing: 1px; margin-top: 10px; border-bottom-width: 1px; border-color: rgba(196, 160, 92, 0.25); }.why-line { white-space: normal; padding-left: 12px; }-/* Wide screens (Cabinet and Defence, laid out as promo/final/04 and 08): from the left edge to the event column, over the+/* Wide screens (Cabinet and Defence, laid out as promo/final/04 and 08): from the left edge to the minimap column, over theinfo panel (an opaque reading screen; the info panel is about a hex, not needed while reading a screen). The event cardand the minimap stay in view (UiLayoutTests). */.screen-wide { left: 16px; bottom: 100px; }/* While a wide screen is open the toast's corner (B7) is under it, so the toast moves to the strip the wide screen leaves- free at the bottom, between the window's left edge and the event column: opaque, clear of the screen and the column+ free at the bottom, between the window's left edge and the minimap column: opaque, clear of the screen and the column(PromoHudTests.TheToastIsOpaqueAndClearOfTheScreens). Two lines fit. */.wide-screen-open .toast { top: auto; bottom: 16px; left: 16px; right: 512px; width: auto; padding: 6px 12px; }/* The info panel under an open wide screen is hidden (ScreenNav sets wide-screen-open): no focus, no clicks, no updates. */@@ -390,10 +417,12 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);/* Square and narrower windows: a slimmer side column leaves room for two columns of cards. */.hud-two-row .cabinet-side { width: 250px; }.hud-two-row .pm-card .card-plate { height: 210px; }-/* #210: in the two-row (narrow) HUD every screen takes the full width under the bar. While one is open the event column+/* #210: in the two-row (narrow) HUD every screen takes the full width under the bar. While one is open the minimap columnand the info panel under it are hidden (no focus, no clicks), and the toast takes the strip below the screen. */.hud-two-row .screen { left: 16px; right: 16px; bottom: 100px; }.hud-two-row.screen-open .right-column, .hud-two-row.screen-open .info-panel { display: none; }+/* Any open screen sits where the decision card does: the card waits, hidden and out of reach, until the screen closes. */+.screen-open .event-layer { display: none; }.hud-two-row.screen-open .toast { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; padding: 6px 12px; }.hud-two-row .cabinet-house { justify-content: center; }@@ -402,7 +431,7 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);.loading-line { display: none; position: absolute; left: 0; right: 0; top: 45%; -unity-text-align: middle-center; font-size: 28px; color: var(--ink); }.loading .loading-line { display: flex; }.root.loading { background-color: var(--navy-solid); } /* the template's navy, not the default sky (final review M1) */-.loading .date-box, .loading .meters, .loading .nav, .loading .turn-box, .loading .info-panel, .loading .right-column { visibility: hidden; }+.loading .date-box, .loading .meters, .loading .nav, .loading .turn-box, .loading .info-panel, .loading .right-column, .loading .event-layer { visibility: hidden; }/* Map labels (visual v1 Task 9; promo HUD pass: rounder, a firmer gold edge): the promo's dark pill with a thin gold edge, in EB Garamond SemiBold. Each pill sits in azero-size slot that MapLabelsPresenter moves with an inline translate; the anchor class says which corner of the pill sits@@ -454,7 +483,7 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);whole painting, as a full-width band, over the panel (StartScreenPresenter.Fit). */.start-screen { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-color: var(--navy-deep); }.start-open .start-screen { display: flex; }-.start-open .top-bar, .start-open .right-column, .start-open .info-panel, .start-open .screen, .start-open .map-labels { display: none; }+.start-open .top-bar, .start-open .right-column, .start-open .event-layer, .start-open .info-panel, .start-open .screen, .start-open .map-labels { display: none; }.start-art {position: absolute; left: 0; top: 0; right: 0; bottom: 0;background-image: url("project://database/Assets/UI/StartScreen/declaration-hall.jpg");diff --git a/unity/Assets/UI/strings.en.yaml b/unity/Assets/UI/strings.en.yamlindex ff85af2fd..e5531072f 100644--- a/unity/Assets/UI/strings.en.yaml+++ b/unity/Assets/UI/strings.en.yaml@@ -12,6 +12,8 @@ hud.delta_people: "{0:+#,##0;-#,##0}"toast.refused: "Not done: {0}"event.office: "{0}: {1}"event.more: "{0} more decision(s) waiting"+event.hide: "Hide"+event.reopen: "Decision waiting"order.game_over: "The game is over"order.no_attention: "Not enough attention (need {0:0.0}, have {1:0.0})"order.unknown: "Unknown {0} '{1}'"diff --git a/unity/Assets/UI/strings.he.yaml b/unity/Assets/UI/strings.he.yamlindex ec9d17943..a95c84c72 100644--- a/unity/Assets/UI/strings.he.yaml+++ b/unity/Assets/UI/strings.he.yaml@@ -11,6 +11,8 @@ hud.delta_people: "{0:+#,##0;-#,##0}"toast.refused: "לא בוצע: {0}"event.office: "{0}: {1}"event.more: "החלטות ממתינות נוספות: {0}"+event.hide: "הסתר"+event.reopen: "החלטה ממתינה"order.game_over: "המשחק הסתיים"order.no_attention: "אין מספיק תשומת לב (נדרש {0:0.0}, יש {1:0.0})"order.unknown: "{0} לא מוכר: '{1}'"