" + live_text(event.at("headline")) + "
" + live_text(event.at("body")) + "
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index 0190308..78a6532 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -13,6 +13,8 @@ OpenBMH's own code and documentation use GPL-3.0-only. This does not replace the
| [RmlUi](https://github.com/mikke89/RmlUi/tree/6.3) | 6.3, Core and SDL2/OpenGL backend | MIT | [RmlUi.txt](docs/licenses/RmlUi.txt), [containers](docs/licenses/RmlUi-containers.txt), [Khronos notice](docs/licenses/RmlUi-Khronos.txt) |
| [FreeType](https://github.com/freetype/freetype/tree/VER-2-13-3) | 2.13.3 | FreeType License (FTL) | [license choices](docs/licenses/FreeType.txt), [FTL](docs/licenses/FreeType-FTL.txt), [BDF](docs/licenses/FreeType-BDF.txt), [PCF](docs/licenses/FreeType-PCF.txt), [internal gzip/zlib](docs/licenses/FreeType-zlib.txt) |
| LatoLatin Regular and Bold | Unmodified fonts included with RmlUi 6.3 | SIL Open Font License 1.1 | [font notices](docs/licenses/RmlUi-fonts.txt) |
+| [Source Serif 4](https://github.com/adobe-fonts/source-serif) Regular and Semibold | Unmodified static TrueType files of the `release` branch, in `assets/modern/fonts` | SIL Open Font License 1.1 | [license](docs/licenses/SourceSerif4.txt) |
+| [Cabin Sketch](https://github.com/google/fonts/tree/main/ofl/cabinsketch) Regular and Bold | Unmodified files, in `assets/modern/fonts` | SIL Open Font License 1.1 | [license](docs/licenses/CabinSketch.txt) |
| nlohmann/json (optional editor) | 3.12.0 | MIT | [notice](docs/licenses/nlohmann-json.txt) |
| cpp-httplib (optional editor) | 0.63.0, local HTTP without TLS | MIT | [notice](docs/licenses/cpp-httplib.txt) |
| SDL2_image (optional editor) | 2.8.8, selected static codecs | zlib | [notice](docs/licenses/SDL2_image.txt) |
diff --git a/assets/modern/fonts/CabinSketch-Bold.ttf b/assets/modern/fonts/CabinSketch-Bold.ttf
new file mode 100644
index 0000000..4fb6f10
Binary files /dev/null and b/assets/modern/fonts/CabinSketch-Bold.ttf differ
diff --git a/assets/modern/fonts/CabinSketch-OFL.txt b/assets/modern/fonts/CabinSketch-OFL.txt
new file mode 100644
index 0000000..9c21121
--- /dev/null
+++ b/assets/modern/fonts/CabinSketch-OFL.txt
@@ -0,0 +1,93 @@
+Copyright 2011 The Cabin Project Authors (impallari@gmail.com), with Reserved Font Name "Cabin", "Cabin Sketch".
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/assets/modern/fonts/CabinSketch-Regular.ttf b/assets/modern/fonts/CabinSketch-Regular.ttf
new file mode 100644
index 0000000..93fd6c0
Binary files /dev/null and b/assets/modern/fonts/CabinSketch-Regular.ttf differ
diff --git a/assets/modern/fonts/SourceSerif4-LICENSE.md b/assets/modern/fonts/SourceSerif4-LICENSE.md
new file mode 100644
index 0000000..5871e1f
--- /dev/null
+++ b/assets/modern/fonts/SourceSerif4-LICENSE.md
@@ -0,0 +1,93 @@
+Copyright 2014 - 2023 Adobe (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+
+This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/assets/modern/fonts/SourceSerif4-Regular.ttf b/assets/modern/fonts/SourceSerif4-Regular.ttf
new file mode 100644
index 0000000..964a2bf
Binary files /dev/null and b/assets/modern/fonts/SourceSerif4-Regular.ttf differ
diff --git a/assets/modern/fonts/SourceSerif4-Semibold.ttf b/assets/modern/fonts/SourceSerif4-Semibold.ttf
new file mode 100644
index 0000000..151e9a9
Binary files /dev/null and b/assets/modern/fonts/SourceSerif4-Semibold.ttf differ
diff --git a/assets/modern/live.rcss b/assets/modern/live.rcss
index b76d95e..d24a1f1 100644
--- a/assets/modern/live.rcss
+++ b/assets/modern/live.rcss
@@ -127,3 +127,111 @@ body.matchday {--live-bg:#242426;--live-surface:#302f34ec;--live-wash:#efc7ce0a;
.live-lineup-side h3 {display:block;font-size:34dp;font-weight:normal;color:var(--live-accent);margin-bottom:14dp;}
.live-lineup-side p {display:block;font-size:30dp;color:var(--live-muted);}
.live-lineup-row {height:62dp;display:flex;gap:16dp;align-items:center;border-bottom:2dp var(--live-line);font-size:32dp;}
+/* --- The match day as a sheet in the menus' 4:3 format: a stage of score boards on top
+ (one card per match of a human manager: 1, 2, or a 2 x 2 grid for 3-4), the ticker and
+ the manager's squad below, the controls at the foot. --- */
+.live-backdrop {position:absolute;left:0;top:0;width:3840dp;height:2160dp;background-color:#05090dc4;}
+.live-stage {left:560dp;top:60dp;width:2720dp;height:2040dp;overflow:hidden;border:2dp var(--paper-edge);border-radius:10dp;background-color:transparent;decorator:linear-gradient(175deg,var(--paper-top),var(--paper-bottom));box-shadow:0dp 18dp 54dp var(--paper-shadow);font-size:36dp;}
+.live-header {left:48dp;right:48dp;top:0;height:104dp;border-bottom:2dp var(--rule);}
+.live-header h1 {font-family:Display;font-size:54dp;flex:1;min-width:0;}
+.live-demo-tag {border-radius:10dp;padding:10dp 22dp;}
+.live-body {left:48dp;right:48dp;top:128dp;bottom:150dp;height:auto;flex-direction:column;gap:28dp;}
+.live-cards {padding:0;display:flex;flex-wrap:wrap;gap:16dp;flex-shrink:0;}
+.live-stage .live-game {position:relative;display:block;width:100%;height:600dp;flex-grow:0;flex-shrink:0;padding:18dp 40dp;border:2dp #00000090;border-radius:16dp;background-color:transparent;decorator:linear-gradient(180deg,#1d2832,#0f161d);color:#f1f4f6;overflow:hidden;}
+.live-stage .live-game:hover,.live-stage .live-game:focus-visible {background-color:transparent;border-color:#ffffff66;}
+.live-stage .live-game.duo {width:1296dp;}
+.live-stage .live-game.quad {width:1296dp;height:292dp;padding:10dp 28dp;}
+.live-stage .live-game.active {border-color:#00000090;}
+.live-stage .live-game.duo.active,.live-stage .live-game.quad.active {border-color:#f2c230;}
+.live-card-top {height:48dp;display:flex;align-items:center;justify-content:space-between;gap:24dp;}
+.live-game.quad .live-card-top {height:38dp;}
+.live-card-competition {display:block;font-size:30dp;letter-spacing:2dp;color:#c8d2da;white-space:nowrap;}
+.live-game .live-match-info {display:block;margin:0;font-size:28dp;color:#aab6c0;text-align:right;}
+.live-card-main {height:348dp;display:flex;align-items:center;gap:24dp;}
+.live-game.quad .live-card-main {height:146dp;}
+.live-side {flex:1;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14dp;}
+.live-game.quad .live-side {flex-direction:row;gap:20dp;}
+.live-game.quad .live-side.home {justify-content:flex-end;}
+.live-game.quad .live-side.away {flex-direction:row-reverse;justify-content:flex-end;}
+.live-game .live-team-name {display:block;flex:0 0 auto;width:100%;max-height:none;font-family:Display;font-size:46dp;line-height:1.15;text-align:center;color:#f4f6f8;white-space:nowrap;overflow:hidden;}
+.live-game.duo .live-team-name {font-size:36dp;}
+.live-game.quad .live-team-name {font-size:32dp;width:auto;min-width:0;flex:1;white-space:normal;}
+.live-game.quad .live-side.home .live-team-name {text-align:right;}
+.live-game.quad .live-side.away .live-team-name {text-align:left;}
+.live-centre {width:520dp;flex-shrink:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16dp;}
+.live-game.duo .live-centre {width:360dp;}
+.live-game.quad .live-centre {width:300dp;gap:4dp;}
+.live-clock {display:flex;align-items:center;justify-content:center;gap:22dp;width:100%;height:96dp;}
+.live-clock-text {display:block;font-family:Display;font-size:52dp;color:#f4f6f8;}
+.live-clock-inline {display:block;font-size:28dp;color:#c8d2da;}
+.live-plate {display:flex;width:420dp;height:150dp;border:3dp #ffffff30;border-radius:14dp;overflow:hidden;box-shadow:0dp 6dp 18dp #00000080;}
+.live-game.duo .live-plate {width:330dp;height:130dp;}
+.live-game.quad .live-plate {width:240dp;height:92dp;}
+.live-plate-half {flex:1;display:flex;align-items:center;justify-content:center;}
+.live-plate-half+.live-plate-half {border-left:3dp #ffffff40;}
+.live-plate-half span {display:block;font-size:112dp;font-weight:bold;color:#ffffff;}
+.live-game.duo .live-plate-half span {font-size:96dp;}
+.live-game.quad .live-plate-half span {font-size:66dp;}
+.live-press {display:flex;width:420dp;height:14dp;border-radius:7dp;overflow:hidden;background-color:#ffffff22;}
+.live-game.duo .live-press {width:330dp;}
+.live-press-home {height:100%;}
+.live-press-away {flex:1;height:100%;}
+.live-timeline {display:flex;justify-content:center;height:124dp;}
+.live-game.quad .live-timeline {height:84dp;}
+@keyframes live-moment-in {from {opacity:0;transform:translateX(-220dp);} to {opacity:1;transform:translateX(0dp);}}
+.live-moment {position:absolute;left:0;right:0;top:120dp;height:260dp;display:flex;align-items:center;justify-content:center;gap:48dp;border-top:4dp #ffffffb0;border-bottom:4dp #ffffffb0;box-shadow:0dp 10dp 40dp #000000a0;color:#ffffff;pointer-events:none;}
+.live-game.quad .live-moment {top:44dp;height:150dp;gap:28dp;}
+.live-moment.fresh {animation:0.45s cubic-out live-moment-in;}
+body.calm .live-moment.fresh {animation:none;}
+.live-moment>div {display:block;min-width:0;}
+.live-moment strong {display:block;font-family:Display;font-size:96dp;letter-spacing:6dp;}
+.live-game.quad .live-moment strong {font-size:56dp;}
+.live-moment-text {display:block;font-size:36dp;margin-top:6dp;}
+.live-game.quad .live-moment-text {font-size:28dp;}
+.live-moment-score {display:block;font-size:120dp;font-weight:bold;}
+.live-game.quad .live-moment-score {font-size:70dp;}
+.live-columns {flex:1;min-height:0;display:flex;gap:28dp;}
+.live-panel {border-radius:12dp;}
+.live-columns .live-ticker {flex:1.5;min-width:0;height:100%;}
+.live-columns .live-detail {flex:1;min-width:0;height:100%;}
+.live-panel-heading {height:96dp;padding:16dp 30dp;}
+.live-panel-heading h2 {font-family:Display;font-size:42dp;flex:0 0 auto;}
+.live-panel-heading .live-filters {flex:1;justify-content:flex-end;padding:0;border-bottom-width:0;}
+.live-filters button {height:60dp;padding:0 20dp;font-size:28dp;}
+.live-detail>.live-panel-heading {height:112dp;padding:14dp 30dp;}
+.live-detail-heading h2 {font-size:38dp;}
+.live-tabs {padding:16dp 20dp;gap:10dp;}
+.live-tabs button {height:62dp;font-size:28dp;padding:0 8dp;}
+.live-event {align-items:center;gap:18dp;padding:16dp 28dp;border-left:8dp transparent;}
+.live-event-time {width:78dp;font-size:30dp;text-align:right;}
+.live-event-mark {width:36dp;height:44dp;flex-shrink:0;display:flex;align-items:center;justify-content:center;}
+.live-event-mark .mark {width:16dp;height:16dp;border-radius:8dp;background-color:var(--live-muted);opacity:0.5;}
+.kind-goal .live-event-mark .mark {width:30dp;height:30dp;border-radius:15dp;background-color:var(--live-text);opacity:1;border:5dp var(--live-accent);}
+.kind-yellow .live-event-mark .mark,.kind-second_yellow .live-event-mark .mark {width:20dp;height:28dp;border-radius:3dp;background-color:#f2c230;opacity:1;}
+.kind-red .live-event-mark .mark {width:20dp;height:28dp;border-radius:3dp;background-color:#d6453d;opacity:1;}
+.kind-injury .live-event-mark .mark {width:26dp;height:26dp;border-radius:5dp;background-color:#d6453d;opacity:1;}
+.kind-chance .live-event-mark .mark,.kind-miss .live-event-mark .mark {width:20dp;height:20dp;border-radius:10dp;background-color:transparent;border:4dp var(--live-muted);opacity:1;}
+.is-whistle .live-event-mark .mark {width:28dp;height:6dp;border-radius:3dp;opacity:0.8;}
+.live-event-copy h3 {font-size:32dp;}
+.live-event-copy p {font-size:28dp;margin-top:4dp;line-height:1.3;}
+.live-event.is-whistle .live-event-copy h3 {font-family:Display;color:var(--live-muted);}
+.live-event-score {font-size:32dp;min-width:90dp;color:var(--live-text);}
+.live-ticker-footer {height:64dp;padding:10dp 30dp;}
+.live-detail-footer {height:96dp;padding:14dp 24dp;}
+.live-roster {padding:8dp 24dp;}
+.live-roster-row {height:58dp;font-size:30dp;}
+.live-lineups {padding:20dp 30dp;gap:40dp;}
+.live-lineup-side h3 {font-family:Display;font-size:34dp;}
+.live-lineup-row {height:54dp;font-size:30dp;}
+.live-bottom {left:48dp;right:48dp;height:150dp;gap:24dp;border-top:2dp var(--rule);}
+.live-bottom button {height:92dp;padding:0 34dp;font-size:32dp;}
+.live-speed {position:static;left:auto;top:auto;width:auto;flex-direction:row;align-items:center;gap:16dp;font-size:28dp;flex-shrink:0;}
+#live-speed {width:300dp;height:60dp;}
+#live-speed slidertrack {width:auto;height:8dp;margin:26dp 0;}
+#live-speed sliderbar {width:32dp;height:32dp;margin-top:14dp;border-radius:16dp;}
+.live-speed-value {font-size:28dp;min-width:90dp;text-align:left;}
+.live-halts {display:flex;gap:12dp;flex-shrink:0;}
+.live-halts button {height:70dp;padding:0 20dp;font-size:28dp;}
+.live-bottom-note {text-align:right;}
+.live-dialog-layer {border-radius:10dp;}
+.live-dialog {width:1900dp;border-radius:12dp;}
diff --git a/assets/modern/sports.rcss b/assets/modern/sports.rcss
index 8fb79cd..c953721 100644
--- a/assets/modern/sports.rcss
+++ b/assets/modern/sports.rcss
@@ -27,24 +27,26 @@
.training-roster select {display:block;width:310dp;height:62dp;padding:10dp 12dp;border:2dp var(--border);border-radius:8dp;font-size:32dp;}
.training-roster select selectbox {width:310dp;max-height:480dp;margin-top:8dp;padding:10dp;border-radius:16dp;}
.training-roster select option {min-height:72dp;padding:10dp 14dp;line-height:52dp;}
-.tactics-board {position:absolute;left:76dp;top:0;width:2300dp;height:100%;}
+.tactics-board {position:absolute;left:28dp;top:0;width:2560dp;height:100%;}
.tactics-surface {position:absolute;left:0;right:0;top:0;bottom:100dp;}
.tactic-hotspot {padding:0;border:0dp;background-color:transparent;}
.tactic-hotspot:hover,.tactic-hotspot:active {background-color:transparent;}
.tactic-hotspot:focus-visible {border:3dp var(--accent);}
-.tactic-effort {position:absolute;left:1021.188dp;top:1000dp;width:1012dp;height:316.875dp;color:#f1efe2;}
-.tactic-effort-label {display:flex;align-items:baseline;gap:18dp;font-family:Chalk;font-size:60dp;line-height:1.2;letter-spacing:4dp;}
-.tactic-chalk-name {display:flex;align-items:center;justify-content:center;font-family:Chalk;font-size:44dp;letter-spacing:3dp;color:#f1efe2;pointer-events:none;}
+.tactic-effort {position:absolute;left:160dp;top:1112dp;width:2240dp;height:300dp;color:#f1efe2;}
+.tactic-effort-label {display:flex;align-items:baseline;gap:18dp;font-family:Chalk;font-weight:bold;font-size:56dp;line-height:1.2;letter-spacing:4dp;}
+.tactic-chalk-name {display:flex;align-items:center;justify-content:center;font-family:Chalk;font-weight:bold;font-size:38dp;letter-spacing:2dp;color:#f1efe2;pointer-events:none;white-space:nowrap;}
.tactic-chalk-name.off {color:#f1efe2b0;}
.tactic-chalk-name span {display:block;}
+.tactic-effort-ends {position:absolute;left:0;right:90dp;top:216dp;display:flex;justify-content:space-between;font-family:Chalk;font-size:34dp;letter-spacing:2dp;color:#f1efe2c0;}
+.tactic-effort-ends span {display:block;}
.tactic-effort-marks {font-size:52dp;letter-spacing:1dp;line-height:1.2;}
.tactic-effort input {position:absolute;left:2dp;top:96dp;width:96%;height:20dp;}
.tactic-effort input slidertrack {margin:8dp 0;height:4dp;}
.tactic-effort input slidertrack {background-color:#f1efe240;}
.tactic-effort input sliderprogress {height:6dp;background-color:#f1efe2;border-radius:3dp;}
.tactic-effort input sliderbar {width:30dp;height:30dp;margin-top:-5dp;border:0dp;border-radius:15dp;background-color:#f3d977;}
-.tactic-hint {position:absolute;left:0;right:0;bottom:20dp;height:92dp;text-align:center;font-size:34dp;color:var(--text);}
+.tactic-hint {position:absolute;left:0;right:0;top:1584dp;height:96dp;text-align:center;font-size:34dp;color:var(--text);}
.tactic-hint strong {display:block;font-weight:normal;}
.tactic-hint span {display:block;font-size:28dp;line-height:1.4;color:var(--muted);}
body.midnight .training-skill {color:#c6d6df;}
diff --git a/assets/modern/theme.rcss b/assets/modern/theme.rcss
index d57d5e1..72f578f 100644
--- a/assets/modern/theme.rcss
+++ b/assets/modern/theme.rcss
@@ -162,3 +162,28 @@ label,input[type=checkbox],input[type=radio],input[type=range] {cursor:arrow;}
/* Native SDL names: game controls use arrow, editing retains the I-beam. */
input[type=text],input[type=search],input[type=number],input[type=password],textarea {cursor:text;}
a[href] {cursor:pointer;}
+/* --- Material: paper. Menu windows are sheets of paper lying on the desk: a warm surface,
+ an edge, two more sheets underneath, headings set in the display serif. The desk itself
+ stays glass. Spacing follows steps of 8dp: 8 16 24 32 48 64. --- */
+body {--paper-top:#2b3644;--paper-bottom:#1f2935;--paper-edge:#0a1018a0;--paper-under:#253040;--paper-shadow:#000000a0;--rule:#dfeaf52e;
+ --win:#8fd3ad;--draw:#c9cfd6;--loss:#f0a6a7;--club:#a5e2cf;--club-ink:#152a3a;}
+body.silver {--paper-top:#fbfaf6;--paper-bottom:#f1eee6;--paper-edge:#7b725f55;--paper-under:#e9e5db;--paper-shadow:#2a231680;--rule:#4a433438;
+ --win:#3f7d63;--draw:#6c7780;--loss:#a23f45;--club:#25617a;--club-ink:#f7fcff;}
+body.matchday {--paper-top:#333237;--paper-bottom:#252428;--paper-edge:#00000090;--paper-under:#2c2b30;--paper-shadow:#000000a8;--rule:#f0e2e42a;
+ --win:#9fd0a8;--draw:#c8c4c8;--loss:#f0a6a7;--club:#efb2aa;--club-ink:#2a2022;}
+body.silver .window {--text:#262b31;--muted:#666d74;--border:#7d76664d;--soft:#5c513a0d;--panel:#ffffff70;--input:#ffffffd0;--hover:#8ea9bd30;--selected:#9fbfd655;--strong:#f6f3ecfc;}
+.window {border:2dp var(--paper-edge);border-radius:10dp;decorator:linear-gradient(175deg,var(--paper-top),var(--paper-bottom));backdrop-filter:none;box-shadow:0dp 18dp 54dp var(--paper-shadow);}
+.sheet-under {position:absolute;left:560dp;top:60dp;width:2720dp;height:2040dp;border:2dp var(--paper-edge);border-radius:10dp;background-color:var(--paper-under);box-shadow:0dp 10dp 30dp var(--paper-shadow);}
+.sheet-under.first {transform:rotate(-0.7deg) translate(-14dp,10dp);}
+.sheet-under.second {transform:rotate(0.55deg) translate(16dp,14dp);}
+.titlebar {height:108dp;padding:0 28dp 0 20dp;border-bottom:2dp var(--rule);background-color:transparent;}
+.titlebar h1 {flex:1;text-align:left;margin:0 0 0 20dp;font-family:Display;font-size:54dp;font-weight:normal;}
+.window h2 {font-family:Display;}
+body.silver .titlebar {border-bottom-color:#4a433438;}
+@keyframes window-in {from {opacity:0;transform:translateY(28dp) scale(0.985);} to {opacity:1;transform:translateY(0dp) scale(1);}}
+@keyframes sheet-in {from {opacity:0;} to {opacity:1;}}
+.window.window-in {animation:0.18s cubic-out window-in;}
+.sheet-under.window-in {animation:0.3s cubic-out sheet-in;}
+body.calm .window.window-in,body.calm .sheet-under.window-in {animation:none;}
+button {transition:background-color border-color 0.12s cubic-out;}
+.desktop-button img,.desktop-card {transition:transform 0.14s cubic-out;}
diff --git a/docs/licenses/CabinSketch.txt b/docs/licenses/CabinSketch.txt
new file mode 100644
index 0000000..9c21121
--- /dev/null
+++ b/docs/licenses/CabinSketch.txt
@@ -0,0 +1,93 @@
+Copyright 2011 The Cabin Project Authors (impallari@gmail.com), with Reserved Font Name "Cabin", "Cabin Sketch".
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/docs/licenses/SourceSerif4.txt b/docs/licenses/SourceSerif4.txt
new file mode 100644
index 0000000..5871e1f
--- /dev/null
+++ b/docs/licenses/SourceSerif4.txt
@@ -0,0 +1,93 @@
+Copyright 2014 - 2023 Adobe (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+
+This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/src/modern/ui/CMakeLists.txt b/src/modern/ui/CMakeLists.txt
index 9cae906..ce93e4a 100644
--- a/src/modern/ui/CMakeLists.txt
+++ b/src/modern/ui/CMakeLists.txt
@@ -69,6 +69,13 @@ foreach(icon ${modern_icons})
get_filename_component(icon_name "${icon}" NAME)
configure_file("${icon}" "${modern_assets}/icons/${icon_name}" COPYONLY)
endforeach()
+# the display serif and the chalk hand (SIL Open Font License, THIRD_PARTY_NOTICES.md)
+file(GLOB modern_fonts CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/assets/modern/fonts/*")
+file(MAKE_DIRECTORY "${modern_assets}/fonts")
+foreach(font ${modern_fonts})
+ get_filename_component(font_name "${font}" NAME)
+ configure_file("${font}" "${modern_assets}/fonts/${font_name}" COPYONLY)
+endforeach()
foreach(weight Regular Bold Italic BoldItalic)
configure_file("${rmlui_SOURCE_DIR}/Samples/assets/LatoLatin-${weight}.ttf"
"${modern_assets}/LatoLatin-${weight}.ttf" COPYONLY)
diff --git a/src/modern/ui/controls.inc b/src/modern/ui/controls.inc
index e603c13..b78f78f 100644
--- a/src/modern/ui/controls.inc
+++ b/src/modern/ui/controls.inc
@@ -983,6 +983,25 @@ void App::script() {
frame();
SDL_Delay(5);
}
+ } else if (type == "demo-start") {
+ // QA: begin a demo career with `managers` human managers (1-4), each at a club of
+ // its own, so the match day can be looked at with several matches at once
+ if (engine_mode_ || !source_) throw editor::Error("demo-start braucht die UI-Demo.");
+ const int wanted = std::clamp(command.value("managers", 1), 1, 4);
+ Json managers = Json::array();
+ const int step = std::max(1, command.value("step", 2));
+ int skip = 0;
+ for (const auto *club : world_->clubs()) {
+ if (int(managers.size()) >= wanted) break;
+ const auto id = club->value("id", std::string());
+ if (!world_->manageable(id) || skip++ % step) continue;
+ managers.push_back({{"name", "Manager " + std::to_string(managers.size() + 1)}, {"club", id}, {"portrait", int(managers.size())},
+ {"portrait_style", "photo"}, {"strength_choice", 1}});
+ }
+ const auto result = source_->apply({source_->snapshot().revision, "start",
+ {{"setup", {{"duration", 5}, {"difficulty", 3}, {"players", managers.size()}, {"mode", 3}, {"league", true}, {"world", true}}}, {"managers", managers}}});
+ if (!result.ok) throw editor::Error("demo-start: " + result.error);
+ scene_ = "desktop"; menu_.clear(); refresh();
} else if (type == "screenshot")
screenshot(editor::path(command.at("path").get
" + live_text(event.at("body")) + "
" + live_text(event.at("body")) + "
" + live_text(fixture.at("source") == "engine-recording" ? "Noch keine Meldungen." : "Für diesen Filter liegt noch keine Demomeldung vor.") + "
"; + if (!shown) out += "" + live_text(recorded ? "Noch keine Meldungen." : "Für diesen Filter liegt noch keine Demomeldung vor.") + "
"; return out; } +std::array" + + "\"/>
" +
(engine_mode_
? "" + esc(names[size_t(last_tactic_)] + ": " + tactic_value_text(size_t(last_tactic_), t["values"][size_t(last_tactic_)].get