rpg-engine 0.21.0 → 0.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/README.md +5 -5
  2. package/dist/campaign/create-campaign.d.ts +5 -0
  3. package/dist/campaign/create-campaign.js +40 -12
  4. package/dist/campaign/find-campaign.d.ts +5 -0
  5. package/dist/campaign/find-campaign.js +10 -5
  6. package/dist/campaign/host-files.d.ts +15 -4
  7. package/dist/campaign/host-files.js +134 -14
  8. package/dist/campaign/index.d.ts +4 -3
  9. package/dist/campaign/index.js +4 -3
  10. package/dist/campaign/port.d.ts +6 -0
  11. package/dist/campaign/port.js +24 -0
  12. package/dist/campaign/settings.d.ts +17 -0
  13. package/dist/campaign/settings.js +24 -1
  14. package/dist/cli/cli.js +33 -6
  15. package/dist/commands/config/config.js +15 -1
  16. package/dist/commands/config/dashboard.d.ts +4 -0
  17. package/dist/commands/config/dashboard.js +43 -7
  18. package/dist/commands/config/shown.js +4 -0
  19. package/dist/commands/config/words.d.ts +3 -1
  20. package/dist/commands/config/words.js +29 -2
  21. package/dist/commands/image.d.ts +3 -0
  22. package/dist/commands/image.js +31 -4
  23. package/dist/commands/import/import.d.ts +1 -1
  24. package/dist/commands/import/import.js +5 -0
  25. package/dist/commands/init.d.ts +2 -0
  26. package/dist/commands/init.js +21 -3
  27. package/dist/commands/mode.d.ts +1 -1
  28. package/dist/commands/package/data.js +27 -0
  29. package/dist/commands/package/theme.js +2 -1
  30. package/dist/commands/scene/scene.js +6 -1
  31. package/dist/commands/shared/books/adventures.d.ts +1 -0
  32. package/dist/commands/shared/books/adventures.js +1 -1
  33. package/dist/commands/shared/campaign/git.d.ts +25 -0
  34. package/dist/commands/shared/campaign/git.js +104 -0
  35. package/dist/commands/shared/campaign/images.js +5 -3
  36. package/dist/commands/shared/campaign/saves.js +5 -1
  37. package/dist/commands/shared/characters/voices.d.ts +2 -2
  38. package/dist/commands/shared/characters/voices.js +8 -5
  39. package/dist/commands/shared/packages/catalog.js +24 -5
  40. package/dist/commands/status.d.ts +1 -0
  41. package/dist/commands/status.js +8 -4
  42. package/dist/core/context.d.ts +17 -6
  43. package/dist/core/context.js +2 -1
  44. package/dist/core/version.d.ts +2 -0
  45. package/dist/core/version.js +5 -0
  46. package/dist/dashboard/guide/ar.md +12 -7
  47. package/dist/dashboard/guide/cs.md +11 -6
  48. package/dist/dashboard/guide/da.md +11 -6
  49. package/dist/dashboard/guide/de.md +13 -8
  50. package/dist/dashboard/guide/el.md +11 -6
  51. package/dist/dashboard/guide/en.md +10 -5
  52. package/dist/dashboard/guide/es.md +11 -6
  53. package/dist/dashboard/guide/fi.md +11 -6
  54. package/dist/dashboard/guide/fr.md +12 -7
  55. package/dist/dashboard/guide/he.md +11 -6
  56. package/dist/dashboard/guide/hi.md +11 -6
  57. package/dist/dashboard/guide/hu.md +11 -6
  58. package/dist/dashboard/guide/is.md +11 -6
  59. package/dist/dashboard/guide/it.md +42 -37
  60. package/dist/dashboard/guide/ja.md +12 -7
  61. package/dist/dashboard/guide/ko.md +11 -6
  62. package/dist/dashboard/guide/nb.md +12 -7
  63. package/dist/dashboard/guide/nl.md +13 -8
  64. package/dist/dashboard/guide/pl.md +11 -6
  65. package/dist/dashboard/guide/pt.md +11 -6
  66. package/dist/dashboard/guide/ro.md +11 -6
  67. package/dist/dashboard/guide/ru.md +12 -7
  68. package/dist/dashboard/guide/sv.md +11 -6
  69. package/dist/dashboard/guide/tr.md +12 -7
  70. package/dist/dashboard/guide/uk.md +12 -7
  71. package/dist/dashboard/guide/zh.md +11 -6
  72. package/dist/dashboard/i18n/ar.json +30 -2
  73. package/dist/dashboard/i18n/cs.json +30 -2
  74. package/dist/dashboard/i18n/da.json +30 -2
  75. package/dist/dashboard/i18n/de.json +30 -2
  76. package/dist/dashboard/i18n/el.json +30 -2
  77. package/dist/dashboard/i18n/es.json +30 -2
  78. package/dist/dashboard/i18n/fi.json +30 -2
  79. package/dist/dashboard/i18n/fr.json +30 -2
  80. package/dist/dashboard/i18n/he.json +30 -2
  81. package/dist/dashboard/i18n/hi.json +30 -2
  82. package/dist/dashboard/i18n/hu.json +30 -2
  83. package/dist/dashboard/i18n/is.json +30 -2
  84. package/dist/dashboard/i18n/it.json +30 -2
  85. package/dist/dashboard/i18n/ja.json +30 -2
  86. package/dist/dashboard/i18n/ko.json +30 -2
  87. package/dist/dashboard/i18n/nb.json +30 -2
  88. package/dist/dashboard/i18n/nl.json +30 -2
  89. package/dist/dashboard/i18n/pl.json +30 -2
  90. package/dist/dashboard/i18n/pt.json +30 -2
  91. package/dist/dashboard/i18n/ro.json +30 -2
  92. package/dist/dashboard/i18n/ru.json +30 -2
  93. package/dist/dashboard/i18n/sv.json +30 -2
  94. package/dist/dashboard/i18n/tr.json +30 -2
  95. package/dist/dashboard/i18n/uk.json +30 -2
  96. package/dist/dashboard/i18n/zh.json +30 -2
  97. package/dist/dashboard/packages/installed.js +2 -2
  98. package/dist/dashboard/packages/packages.js +1 -1
  99. package/dist/dashboard/parts/labels.js +7 -0
  100. package/dist/dashboard/settings/settings.js +45 -9
  101. package/dist/dashboard/shell/notices.js +1 -1
  102. package/dist/dashboard/shell/system-style.js +89 -5
  103. package/dist/dashboard/shell/tooltip.js +5 -4
  104. package/dist/dashboard/style.css +245 -84
  105. package/dist/git/git.d.ts +12 -0
  106. package/dist/git/git.js +175 -0
  107. package/dist/git/ignore.d.ts +2 -0
  108. package/dist/git/ignore.js +16 -0
  109. package/dist/git/index.d.ts +2 -0
  110. package/dist/git/index.js +2 -0
  111. package/dist/helpers/briefs.d.ts +4 -0
  112. package/dist/helpers/briefs.js +13 -0
  113. package/dist/helpers/chosen.d.ts +8 -4
  114. package/dist/helpers/chosen.js +38 -14
  115. package/dist/helpers/index.d.ts +3 -2
  116. package/dist/helpers/index.js +5 -3
  117. package/dist/helpers/opencode.d.ts +13 -0
  118. package/dist/helpers/opencode.js +202 -0
  119. package/dist/importer/index.d.ts +1 -1
  120. package/dist/importer/index.js +1 -1
  121. package/dist/instructions/index.d.ts +2 -2
  122. package/dist/instructions/index.js +3 -3
  123. package/dist/languages/pack.js +2 -1
  124. package/dist/server/approver.d.ts +4 -2
  125. package/dist/server/approver.js +27 -7
  126. package/dist/server/bell/antigravity.d.ts +10 -0
  127. package/dist/server/bell/antigravity.js +95 -0
  128. package/dist/server/bell/index.d.ts +2 -0
  129. package/dist/server/bell/index.js +2 -0
  130. package/dist/server/bell/listener.d.ts +43 -0
  131. package/dist/server/bell/listener.js +149 -0
  132. package/dist/server/dashboard/files.d.ts +3 -2
  133. package/dist/server/dashboard/files.js +44 -15
  134. package/dist/server/dashboard/index.d.ts +25 -3
  135. package/dist/server/dashboard/index.js +58 -23
  136. package/dist/server/dashboard/news.d.ts +5 -2
  137. package/dist/server/dashboard/news.js +82 -14
  138. package/dist/server/dashboard/ports.d.ts +17 -2
  139. package/dist/server/dashboard/ports.js +60 -4
  140. package/dist/server/mcp.d.ts +6 -4
  141. package/dist/server/mcp.js +66 -18
  142. package/dist/server/player-acts.d.ts +21 -1
  143. package/dist/server/player-acts.js +38 -2
  144. package/dist/server/route/front.d.ts +3 -0
  145. package/dist/server/route/front.js +97 -0
  146. package/dist/server/route/index.d.ts +3 -0
  147. package/dist/server/route/index.js +3 -0
  148. package/dist/server/route/notes.d.ts +8 -0
  149. package/dist/server/route/notes.js +50 -0
  150. package/dist/server/route/router.d.ts +31 -0
  151. package/dist/server/route/router.js +215 -0
  152. package/dist/themes/css.d.ts +1 -1
  153. package/dist/themes/css.js +101 -2
  154. package/dist/themes/index.d.ts +1 -1
  155. package/dist/themes/index.js +1 -1
  156. package/dist/themes/theme.d.ts +34 -3
  157. package/dist/themes/theme.js +176 -19
  158. package/instructions/core.md +1 -0
  159. package/instructions/dashboard-guide.md +1 -1
  160. package/instructions/start.md +1 -1
  161. package/instructions/voices-opencode.md +1 -0
  162. package/package.json +3 -2
  163. package/plugins/opencode.js +174 -0
  164. package/dist/server/bell-listener.d.ts +0 -9
  165. package/dist/server/bell-listener.js +0 -83
@@ -2,8 +2,9 @@
2
2
  The layers in their order, then the files, which the build joins in this order into one style.css: a layer later wins over one before it, whatever
3
3
  the selectors; a style sheet without a layer wins over them all, but never over the guarantees, all !important and first, as among !important
4
4
  declarations the first layer wins. The game's style, the theme of the campaign's system, is the layer theme, which the page adopts while the player keeps
5
- it on: custom properties alone, over the tokens (D-528). docs/dashboard-style.md says where a rule goes. */
6
- @layer guarantees, tokens, theme, base, parts, pages;
5
+ it on: custom properties alone, over the tokens (D-528). A theme's own style sheet, which the player may turn off, comes last, theme-style, over every
6
+ rule of the page but the guarantees (D-575). docs/dashboard-style.md says where a rule goes. */
7
+ @layer guarantees, tokens, theme, base, parts, pages, theme-style;
7
8
 
8
9
  /* The tokens: every colour, corner, shadow and length of time, as custom properties of :root, and the theme the player picked. */
9
10
  @layer tokens {
@@ -40,7 +41,8 @@
40
41
  /* Gold as text or a line, readable on the light page; text on the danger's colour. */
41
42
  --gold-ink: light-dark(#8a5a00, var(--gold));
42
43
  --on-low: light-dark(#ffffff, var(--on-gold));
43
- /* The land of the map's paper, the same in both themes: each biome's colour and the ink of its marks, on the map and wherever a biome is named. */
44
+ /* The land of the map's paper, the same in both themes: each biome's colour and the ink of its marks, on the map and wherever a biome is named. Its
45
+ inks, and the documents' below, are copied in themes/theme.ts (paperInks), which measures them on a theme's paper: change them there too. */
44
46
  --m-mark: #6b4a5c;
45
47
  --m-land: #f1e6cc;
46
48
  --m-ink: #3f2f1f;
@@ -141,8 +143,26 @@
141
143
  /* What no style sheet may take away, a package's either (D-523, D-528): the ring of the focus and the other rings drawn as outlines, no clip or mask on a
142
144
  control, and the tooltips. All !important. */
143
145
  @layer guarantees {
146
+ /* The colours they draw with, the page's; a theme gives its own here too (themes/css.ts). Set on every element and !important, so that no rule of a theme's
147
+ own style sheet changes them where they are read (D-575); the rules below read nothing else a sheet could change. */
148
+ :root[data-theme="light"],
149
+ :root[data-theme="light"] * {
150
+ --guard-accent: #254b83 !important;
151
+ --guard-ink: #182c4c !important;
152
+ --guard-paper: #f3ede2 !important;
153
+ --guard-gold: #f5c63e !important;
154
+ }
155
+
156
+ :root[data-theme="dark"],
157
+ :root[data-theme="dark"] * {
158
+ --guard-accent: #f5c63e !important;
159
+ --guard-ink: #eff0fa !important;
160
+ --guard-paper: #06132b !important;
161
+ --guard-gold: #f5c63e !important;
162
+ }
163
+
144
164
  :focus-visible {
145
- outline: 2px solid var(--accent) !important;
165
+ outline: 2px solid var(--guard-accent) !important;
146
166
  outline-offset: 2px !important;
147
167
  }
148
168
 
@@ -161,7 +181,14 @@
161
181
  }
162
182
 
163
183
  .quest-cover-top :focus-visible {
164
- outline-color: var(--on-veil) !important;
184
+ outline-color: #f3f4fa !important;
185
+ }
186
+
187
+ /* Over a place's picture, on its dark veil, the ring in gold as on the dark page; on a phone the name goes under the picture. */
188
+ @media (min-width: 601px) {
189
+ .place-band.over .place-caption :focus-visible {
190
+ outline-color: var(--guard-gold) !important;
191
+ }
165
192
  }
166
193
 
167
194
  .note-title:focus-visible,
@@ -174,7 +201,7 @@
174
201
  }
175
202
 
176
203
  .tracked-what:focus-visible {
177
- outline: 2px solid var(--accent) !important;
204
+ outline: 2px solid var(--guard-accent) !important;
178
205
  outline-offset: 3px !important;
179
206
  }
180
207
 
@@ -183,7 +210,7 @@
183
210
  }
184
211
 
185
212
  .setup-card h2:focus-visible {
186
- outline: 2px solid var(--accent) !important;
213
+ outline: 2px solid var(--guard-accent) !important;
187
214
  outline-offset: 4px !important;
188
215
  }
189
216
 
@@ -196,61 +223,87 @@
196
223
  }
197
224
 
198
225
  .asked.folded:has(.asked-fold:focus-visible) {
199
- outline: 2px solid var(--accent) !important;
226
+ outline: 2px solid var(--guard-accent) !important;
200
227
  outline-offset: 3px !important;
201
228
  }
202
229
 
203
230
  .asked-buttons button.sent {
204
- outline: 2px solid var(--accent) !important;
231
+ outline: 2px solid var(--guard-accent) !important;
205
232
  outline-offset: 2px !important;
206
233
  }
207
234
 
208
235
  .ask-choices > .sent {
209
- outline: 2px solid var(--accent) !important;
236
+ outline: 2px solid var(--guard-accent) !important;
210
237
  outline-offset: 2px !important;
211
238
  }
212
239
 
213
240
  .requested {
214
- outline: 2px solid var(--gold) !important;
241
+ outline: 2px solid var(--guard-gold) !important;
215
242
  outline-offset: -1px !important;
216
243
  }
217
244
 
218
245
  :is(.asked-hand, .package-use) input:focus-visible {
219
- outline: 2px solid var(--accent) !important;
246
+ outline: 2px solid var(--guard-accent) !important;
220
247
  outline-offset: 2px !important;
221
248
  }
222
249
 
223
250
  .asked-own input:focus-visible {
224
- outline: 2px solid var(--accent) !important;
251
+ outline: 2px solid var(--guard-accent) !important;
225
252
  outline-offset: 1px !important;
226
253
  }
227
254
 
228
255
  /* The page's one tooltip (T-228), what a control's data-tip says: in the top layer, over every card, list and dialog, nothing cuts it; shell/tooltip.ts
229
256
  shows it after a moment under a pointer or at once by the keyboard, never at a touch, and places it beside its control inside the window. Its lines
230
- wrap, a name of several things a line for each. It comes from its control's side. */
231
- .page-tip {
257
+ wrap, a name of several things a line for each. It comes from its control's side.
258
+ While it shows (where a browser has no popover, while it is not hidden), every property first to its initial value, then the page's: nothing a theme's
259
+ own style sheet says of it shows (D-575). tooltip.ts sets top and left inline; its sizes have a floor in pixels, whatever a sheet makes of the root's. */
260
+ .page-tip:is(:popover-open, :not([popover], [hidden])) {
261
+ all: initial !important;
262
+ display: block !important;
232
263
  position: fixed !important;
233
- inset: var(--tip-top, 0) auto auto var(--tip-left, 0) !important;
264
+ inset: 0 auto auto 0 !important;
234
265
  box-sizing: border-box !important;
235
266
  width: max-content !important;
236
- max-width: min(20rem, calc(100vw - 16px)) !important;
237
- height: auto !important;
238
- margin: 0 !important;
267
+ max-width: min(max(20rem, 320px), calc(100vw - 16px)) !important;
239
268
  padding: 5px 8px !important;
240
- border: 0 !important;
241
- border-radius: var(--radius-xs) !important;
242
- overflow: visible !important;
243
- background: var(--ink) !important;
244
- color: var(--paper) !important;
245
- font: 400 0.8rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif !important;
246
- letter-spacing: 0 !important;
269
+ border-radius: 4px !important;
270
+ background: var(--guard-ink) !important;
271
+ color: var(--guard-paper) !important;
272
+ font: 400 max(0.8rem, 12px)/1.2 system-ui, -apple-system, "Segoe UI", sans-serif !important;
273
+ unicode-bidi: isolate !important;
247
274
  text-align: start !important;
248
- text-transform: none !important;
249
275
  white-space: pre-line !important;
250
276
  overflow-wrap: break-word !important;
251
277
  pointer-events: none !important;
252
278
  opacity: 1 !important;
253
- transition: opacity var(--quick) linear !important;
279
+ transition: opacity 100ms linear !important;
280
+ transform: none !important;
281
+ scale: none !important;
282
+ translate: none !important;
283
+ rotate: none !important;
284
+ zoom: 1 !important;
285
+ -webkit-text-fill-color: currentcolor !important;
286
+ }
287
+
288
+ /* all leaves the direction out: the one tooltip.ts gives it, from its control. */
289
+ .page-tip[dir="ltr"] {
290
+ direction: ltr !important;
291
+ }
292
+
293
+ .page-tip[dir="rtl"] {
294
+ direction: rtl !important;
295
+ }
296
+
297
+ .page-tip::before,
298
+ .page-tip::after,
299
+ .page-tip::backdrop {
300
+ all: initial !important;
301
+ display: none !important;
302
+ }
303
+
304
+ .page-tip::first-line,
305
+ .page-tip::first-letter {
306
+ all: unset !important;
254
307
  }
255
308
 
256
309
  @starting-style {
@@ -260,9 +313,8 @@
260
313
  }
261
314
 
262
315
  @media (prefers-reduced-motion: no-preference) {
263
- .page-tip {
264
- translate: 0 0 !important;
265
- transition: opacity var(--quick) linear, translate var(--quick) var(--ease) !important;
316
+ .page-tip:is(:popover-open, :not([popover], [hidden])) {
317
+ transition: opacity 100ms linear, translate 100ms cubic-bezier(0.2, 0, 0, 1) !important;
266
318
  }
267
319
 
268
320
  @starting-style {
@@ -291,17 +343,17 @@
291
343
 
292
344
  /* A chapter the calendar led to, ringed while it has the focus. */
293
345
  .chapter:focus {
294
- outline: 2px solid var(--accent) !important;
346
+ outline: 2px solid var(--guard-accent) !important;
295
347
  outline-offset: 4px !important;
296
348
  }
297
349
 
298
350
  .act-who-one:has(input:focus-visible) {
299
- outline: 2px solid var(--accent) !important;
351
+ outline: 2px solid var(--guard-accent) !important;
300
352
  outline-offset: 2px !important;
301
353
  }
302
354
 
303
355
  .act-words:focus-visible {
304
- outline: 2px solid var(--accent) !important;
356
+ outline: 2px solid var(--guard-accent) !important;
305
357
  outline-offset: 1px !important;
306
358
  }
307
359
 
@@ -314,19 +366,19 @@
314
366
  }
315
367
 
316
368
  :is(.package-add-line, .package-credits, .search) input:focus-visible {
317
- outline: 2px solid var(--accent) !important;
369
+ outline: 2px solid var(--guard-accent) !important;
318
370
  outline-offset: 0 !important;
319
371
  }
320
372
 
321
373
  .filter-chips :is(button, a):focus-visible,
322
374
  .package-show:focus-visible,
323
375
  .package-row:focus-visible {
324
- outline: 2px solid var(--accent) !important;
376
+ outline: 2px solid var(--guard-accent) !important;
325
377
  outline-offset: 2px !important;
326
378
  }
327
379
 
328
380
  .package-bin:focus-visible {
329
- outline: 2px solid var(--accent) !important;
381
+ outline: 2px solid var(--guard-accent) !important;
330
382
  }
331
383
 
332
384
  .package-said:focus {
@@ -334,7 +386,7 @@
334
386
  }
335
387
 
336
388
  .package-said:focus-visible {
337
- outline: 2px solid var(--accent) !important;
389
+ outline: 2px solid var(--guard-accent) !important;
338
390
  outline-offset: 2px !important;
339
391
  }
340
392
  }
@@ -535,7 +587,7 @@
535
587
  }
536
588
  }
537
589
  }
538
- /* Card: a card that folds and one always open, their headers, icons, previews and chevrons; the game's edge, second line and ornament (D-528). */
590
+ /* Card: a card that folds and one always open, their headers, icons, previews and chevrons; the game's edge, second line, ornament, corners and texture (D-528). */
539
591
  @layer parts {
540
592
  /* A card that is always open: its CardHead, then its body. */
541
593
  .card {
@@ -544,7 +596,7 @@
544
596
  min-width: 0;
545
597
  border: 1px solid var(--card-edge);
546
598
  border-radius: var(--radius-l);
547
- background: var(--card-ornament-layer), var(--panel);
599
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
548
600
  box-shadow: var(--lift), var(--raise);
549
601
  }
550
602
 
@@ -558,10 +610,15 @@
558
610
  padding: 0 16px;
559
611
  border: 1px solid var(--card-edge);
560
612
  border-radius: var(--radius-l);
561
- background: var(--card-ornament-layer), var(--panel);
613
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
562
614
  box-shadow: var(--lift), var(--raise);
563
615
  }
564
616
 
617
+ /* A folded card is its header alone: the ornament's corner is its chevron's, so the ornament waits for it to open; its texture stays. */
618
+ :is(.group, .rolls-card, .table-card):not([open]) {
619
+ --card-ornament-layer: none;
620
+ }
621
+
565
622
  /* A card's header, all of it the toggle (D-284): its icon and title on the left, what it holds while closed, the chevron on the right. */
566
623
  :is(.group, .rolls-card, .table-card) > summary {
567
624
  display: flex;
@@ -572,6 +629,7 @@
572
629
  padding-block: 8px;
573
630
  padding-inline: 16px 12px;
574
631
  border-radius: calc(var(--radius-l) - 1px);
632
+ corner-shape: var(--card-corner, round);
575
633
  cursor: pointer;
576
634
  list-style: none;
577
635
  }
@@ -661,13 +719,16 @@
661
719
  padding-bottom: 14px;
662
720
  }
663
721
 
664
- /* The game's second line inside the cards (D-528): an outline that takes no room, in the colour of their edge. */
722
+ /* The game's second line inside the cards (D-528): an outline that takes no room, in the colour of their edge; and their corners, cut, notched or
723
+ scooped, where the browser draws them, else round. */
665
724
  :is(.card, .group, .band, .rolls-card, .turns-card, .settings-group, .scene-now, .quest-card, .note-card, .save-card, .chapter) {
666
725
  outline: 1px var(--card-inner-line) color-mix(in srgb, var(--card-edge) 70%, transparent);
667
726
  outline-offset: -5px;
727
+ corner-shape: var(--card-corner, round);
668
728
  }
669
729
  }
670
- /* Buttons: buttons of words and of icons, and the state layer of whatever is clicked. */
730
+ /* Buttons: buttons of words and of icons, and the state layer of whatever is clicked. A button of words, a segmented control's and the master's question's
731
+ take the game's shape (D-528): --button-radius and --button-corner, the page's corners while it gives none. */
671
732
  @layer parts {
672
733
  /* A button of words: gold for the one main action of a view, quiet for a secondary one, danger for one that loses something. */
673
734
  .button {
@@ -678,7 +739,8 @@
678
739
  min-height: 38px;
679
740
  padding: 0 14px;
680
741
  border: 1px solid var(--rule);
681
- border-radius: var(--radius-m);
742
+ border-radius: var(--button-radius, var(--radius-m));
743
+ corner-shape: var(--button-corner, round);
682
744
  background: var(--float);
683
745
  color: var(--ink);
684
746
  font: inherit;
@@ -843,7 +905,8 @@
843
905
  inset: 0 0 auto;
844
906
  z-index: 21;
845
907
  display: grid;
846
- grid-template-columns: auto minmax(0, max-content) minmax(0, 1fr);
908
+ /* A long name gives way to the chips' widest (their min-width), the rest of them wrapping out of sight, never running under them. */
909
+ grid-template-columns: auto minmax(0, max-content) minmax(auto, 1fr);
847
910
  grid-template-areas: "robot titles chips" "robot nav nav" "place place place";
848
911
  align-items: center;
849
912
  column-gap: 20px;
@@ -944,9 +1007,15 @@
944
1007
  display: none;
945
1008
  }
946
1009
 
1010
+ /* The name's link cuts the name, not its title: a cut by the title would cut the link's focus ring too. As wide as the name, the title's at most. */
947
1011
  .title-home {
1012
+ display: block;
1013
+ width: fit-content;
1014
+ max-width: 100%;
1015
+ overflow: hidden;
948
1016
  color: inherit;
949
1017
  text-decoration: none;
1018
+ text-overflow: ellipsis;
950
1019
  }
951
1020
 
952
1021
  .top > .titles {
@@ -957,6 +1026,7 @@
957
1026
  /* The chips to the right edge, in line with what the master asks and the cards under them. */
958
1027
  .top > .status-chips {
959
1028
  grid-area: chips;
1029
+ min-width: min-content;
960
1030
  margin: 0;
961
1031
  /* Clear of the theme's corner, whose button is wider than its triangle. */
962
1032
  margin-inline-end: 40px;
@@ -967,6 +1037,35 @@
967
1037
  margin-inline-start: -14px;
968
1038
  }
969
1039
 
1040
+ /* The game's picture at the head (D-528), only when it gives one: in the room the chips leave beside the campaign's name, to the window's top and end
1041
+ edges, fading into the top toward the name; under no words but the chips', which have their own ground. Not on a phone, whose top has no such room. */
1042
+ .top::before {
1043
+ content: var(--head-picture-shown, none);
1044
+ grid-area: chips;
1045
+ align-self: stretch;
1046
+ z-index: -1;
1047
+ margin-block-start: calc(-1 * var(--gap));
1048
+ margin-inline-end: calc(-1 * var(--gap));
1049
+ background: var(--head-picture, none) right center / var(--head-picture-size, cover) var(--head-picture-repeat, no-repeat);
1050
+ mask-image: linear-gradient(to right, transparent, #000 45%);
1051
+ pointer-events: none;
1052
+ }
1053
+
1054
+ .top.compact::before {
1055
+ margin-block-start: -8px;
1056
+ }
1057
+
1058
+ [dir="rtl"] .top::before {
1059
+ background-position: left center;
1060
+ mask-image: linear-gradient(to left, transparent, #000 45%);
1061
+ }
1062
+
1063
+ @media (max-width: 600px) {
1064
+ .top::before {
1065
+ content: none;
1066
+ }
1067
+ }
1068
+
970
1069
  /* The row of the sections (D-333): the sections, then the pages at its end, then the menu with what does not fit; what does not fit stays in the row unseen,
971
1070
  for the page to measure it. */
972
1071
  .nav-row {
@@ -1122,7 +1221,8 @@
1122
1221
  display: none;
1123
1222
  }
1124
1223
 
1125
- /* The sections (D-309): links with their pictures, the one shown in the accent with a bar under it, drawn as a background since ::after is the state layer. */
1224
+ /* The sections (D-309): links with their pictures, the one shown in the accent with a bar under it, drawn as a background since ::after is the state layer;
1225
+ or, in the game's shape of the tabs (D-528), on a tint of the accent, --tab-chosen, with the corners --tab-radius and --tab-corner. */
1126
1226
  .sections {
1127
1227
  display: flex;
1128
1228
  gap: 2px;
@@ -1134,7 +1234,8 @@
1134
1234
  gap: 8px;
1135
1235
  height: 40px;
1136
1236
  padding: 0 14px;
1137
- border-radius: var(--radius-m) var(--radius-m) 0 0;
1237
+ border-radius: var(--tab-radius, var(--radius-m) var(--radius-m) 0 0);
1238
+ corner-shape: var(--tab-corner, round);
1138
1239
  color: var(--muted);
1139
1240
  font-size: inherit;
1140
1241
  font-weight: 600;
@@ -1144,7 +1245,7 @@
1144
1245
 
1145
1246
  /* The section shown: in the accent, its tab lit as under a pointer, with a bar as wide as the tab. */
1146
1247
  .sections a[aria-current="page"] {
1147
- background: linear-gradient(var(--accent), var(--accent)) no-repeat center bottom / 100% 3px;
1248
+ background: var(--tab-chosen, linear-gradient(var(--accent), var(--accent)) no-repeat center bottom / 100% 3px);
1148
1249
  color: var(--accent);
1149
1250
  }
1150
1251
 
@@ -1225,12 +1326,10 @@
1225
1326
  }
1226
1327
 
1227
1328
  .titles h1 {
1228
- overflow: hidden;
1229
1329
  font-size: 2.4rem;
1230
1330
  line-height: 1.05;
1231
1331
  letter-spacing: var(--title-spacing, 0.04em);
1232
1332
  font-variant: small-caps;
1233
- text-overflow: ellipsis;
1234
1333
  white-space: nowrap;
1235
1334
  }
1236
1335
 
@@ -1635,7 +1734,8 @@
1635
1734
  .top .main-nav .section-mark {
1636
1735
  width: 52px;
1637
1736
  height: 30px;
1638
- border-radius: var(--radius-m);
1737
+ border-radius: var(--tab-radius, var(--radius-m));
1738
+ corner-shape: var(--tab-corner, round);
1639
1739
  }
1640
1740
 
1641
1741
  .top .main-nav a[aria-current="page"] .section-mark {
@@ -1730,7 +1830,8 @@
1730
1830
  gap: 2px;
1731
1831
  padding: 3px;
1732
1832
  border: 1px solid var(--rule);
1733
- border-radius: var(--radius-m);
1833
+ border-radius: var(--button-radius, var(--radius-m));
1834
+ corner-shape: var(--button-corner, round);
1734
1835
  background: var(--float);
1735
1836
  }
1736
1837
 
@@ -1738,7 +1839,8 @@
1738
1839
  min-height: 36px;
1739
1840
  padding: 0 12px;
1740
1841
  border: 0;
1741
- border-radius: var(--radius-s);
1842
+ border-radius: var(--button-radius, var(--radius-s));
1843
+ corner-shape: var(--button-corner, round);
1742
1844
  background: transparent;
1743
1845
  color: var(--muted);
1744
1846
  font: inherit;
@@ -2094,7 +2196,7 @@
2094
2196
  margin-top: 18px;
2095
2197
  }
2096
2198
  }
2097
- /* Tabs: a section's tabs and their marks. */
2199
+ /* Tabs: a section's tabs and their marks; the chosen one with a bar under it, or in the game's shape of the tabs on a tint of the accent (D-528). */
2098
2200
  @layer parts {
2099
2201
  .page-tabs {
2100
2202
  display: flex;
@@ -2112,6 +2214,8 @@
2112
2214
  padding: 0 16px;
2113
2215
  border: 0;
2114
2216
  border-bottom: 3px solid transparent;
2217
+ border-radius: var(--tab-radius, 0);
2218
+ corner-shape: var(--tab-corner, round);
2115
2219
  background: transparent;
2116
2220
  color: var(--muted);
2117
2221
  font: inherit;
@@ -2120,7 +2224,8 @@
2120
2224
  }
2121
2225
 
2122
2226
  .page-tabs button[aria-selected="true"] {
2123
- border-bottom-color: var(--accent);
2227
+ border-bottom-color: var(--tab-bar, var(--accent));
2228
+ background: var(--tab-chosen, transparent);
2124
2229
  color: var(--accent);
2125
2230
  }
2126
2231
 
@@ -2769,7 +2874,8 @@
2769
2874
  color: var(--muted);
2770
2875
  }
2771
2876
  }
2772
- /* Tokens: a picture of someone as a coin under glass, with the pips of its side and state. */
2877
+ /* Tokens: a picture of someone as a coin under glass, with the pips of its side and state; the game's shape and frame of the portraits (D-528):
2878
+ --portrait-radius and --portrait-corner, the glass's rim --portrait-rim, which only a round coin has, and --portrait-frame inside its edge. */
2773
2879
  @layer parts {
2774
2880
  /* Tokens as coins (D-409): a round picture on a dark disc, whatever the theme, its edge bevelled and its shadow low on the page; no colour of a side. The
2775
2881
  disc's dark edge is under the picture, seen only where there is none; the picture is round itself, so that the pip of the side may stand out of it (D-414). */
@@ -2781,7 +2887,8 @@
2781
2887
  place-items: center;
2782
2888
  width: var(--size);
2783
2889
  height: var(--size);
2784
- border-radius: 50%;
2890
+ border-radius: var(--portrait-radius, 50%);
2891
+ corner-shape: var(--portrait-corner, round);
2785
2892
  background: var(--disc);
2786
2893
  box-shadow: var(--coin-shadow);
2787
2894
  flex: 0 0 auto;
@@ -2796,14 +2903,15 @@
2796
2903
  position: absolute;
2797
2904
  inset: 0;
2798
2905
  z-index: 1;
2799
- border-radius: 50%;
2906
+ border-radius: var(--portrait-radius, 50%);
2907
+ corner-shape: var(--portrait-corner, round);
2800
2908
  pointer-events: none;
2801
2909
  }
2802
2910
 
2803
2911
  /* The glass's top, and the coin's bevel over its rim: lit above, shaded below. */
2804
2912
  .token::before {
2805
2913
  z-index: 2;
2806
- box-shadow: inset 0 1.5px 0 rgb(255 255 255 / 0.28), inset 0 -1.5px 0 rgb(0 0 0 / 0.35);
2914
+ box-shadow: var(--portrait-frame, 0 0 0 transparent), inset 0 1.5px 0 rgb(255 255 255 / 0.28), inset 0 -1.5px 0 rgb(0 0 0 / 0.35);
2807
2915
  background: linear-gradient(135deg, rgb(255 255 255 / 0.3) 0%, rgb(255 255 255 / 0.08) 44%, transparent 45%, transparent 60%, rgb(255 255 255 / 0.05) 61%, transparent 68%);
2808
2916
  }
2809
2917
 
@@ -2812,7 +2920,7 @@
2812
2920
  background:
2813
2921
  radial-gradient(circle at 27% 24%, rgb(255 255 255 / 0.6), transparent 40%),
2814
2922
  linear-gradient(135deg, rgb(255 255 255 / 0.3), transparent 45%, transparent 55%, rgb(0 0 0 / 0.24));
2815
- mask: radial-gradient(circle closest-side, transparent 78%, rgb(0 0 0 / 0.1) 84%, rgb(0 0 0 / 0.4) 90%, rgb(0 0 0 / 0.75) 95%, #000);
2923
+ mask: var(--portrait-rim, radial-gradient(circle closest-side, transparent 78%, rgb(0 0 0 / 0.1) 84%, rgb(0 0 0 / 0.4) 90%, rgb(0 0 0 / 0.75) 95%, #000));
2816
2924
  }
2817
2925
 
2818
2926
  /* A foe the master marked (D-415): a thin red ring close round the coin, a hair of the page between them so that it reads in grey too, and a breath of red past it. */
@@ -2846,7 +2954,8 @@
2846
2954
  display: block;
2847
2955
  width: 100%;
2848
2956
  height: 100%;
2849
- border-radius: 50%;
2957
+ border-radius: var(--portrait-radius, 50%);
2958
+ corner-shape: var(--portrait-corner, round);
2850
2959
  object-fit: cover;
2851
2960
  }
2852
2961
 
@@ -3042,7 +3151,8 @@
3042
3151
 
3043
3152
  .initials {
3044
3153
  display: grid;
3045
- border-radius: 50%;
3154
+ border-radius: var(--portrait-radius, 50%);
3155
+ corner-shape: var(--portrait-corner, round);
3046
3156
  place-items: center;
3047
3157
  width: 100%;
3048
3158
  height: 100%;
@@ -4133,7 +4243,8 @@
4133
4243
  min-height: 48px;
4134
4244
  padding: 8px 18px;
4135
4245
  border: 1px solid var(--rule);
4136
- border-radius: var(--radius-m);
4246
+ border-radius: var(--button-radius, var(--radius-m));
4247
+ corner-shape: var(--button-corner, round);
4137
4248
  background: var(--panel-2);
4138
4249
  cursor: pointer;
4139
4250
  }
@@ -4409,7 +4520,8 @@
4409
4520
  min-height: 48px;
4410
4521
  padding: 8px 20px;
4411
4522
  border: 0;
4412
- border-radius: var(--radius-m);
4523
+ border-radius: var(--button-radius, var(--radius-m));
4524
+ corner-shape: var(--button-corner, round);
4413
4525
  background: var(--gold);
4414
4526
  color: var(--on-gold);
4415
4527
  font: inherit;
@@ -5221,7 +5333,7 @@
5221
5333
  padding: 0 16px 6px;
5222
5334
  border: 1px solid var(--card-edge);
5223
5335
  border-radius: var(--radius-l);
5224
- background: var(--card-ornament-layer), var(--panel);
5336
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
5225
5337
  box-shadow: var(--lift), var(--raise);
5226
5338
  }
5227
5339
 
@@ -7798,7 +7910,7 @@
7798
7910
  padding: 14px 16px 6px;
7799
7911
  border: 1px solid var(--card-edge);
7800
7912
  border-radius: var(--radius-l);
7801
- background: var(--card-ornament-layer), var(--panel);
7913
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
7802
7914
  box-shadow: var(--lift), var(--raise);
7803
7915
  }
7804
7916
 
@@ -7834,7 +7946,18 @@
7834
7946
  }
7835
7947
  }
7836
7948
 
7949
+ /* What a whole group asks of the player, as keeping the repository private: a setting's note in ink with its edge, its icon saying what it is about. Not
7950
+ the accent's tint, which on the light page fades to grey and on the dark one is the gold of what is chosen; not the warning's colour, for nothing is wrong. */
7951
+ .settings-group-note {
7952
+ margin: 4px 0 8px;
7953
+ }
7954
+
7955
+ .settings-group-note > p {
7956
+ margin: 0;
7957
+ }
7958
+
7837
7959
  .settings-group h3 + .setting,
7960
+ .settings-group .settings-group-note + .setting,
7838
7961
  .settings-group .setting-about + .setting {
7839
7962
  border-top: 0;
7840
7963
  }
@@ -8057,10 +8180,16 @@
8057
8180
  gap: 6px;
8058
8181
  }
8059
8182
 
8060
- /* A setting that counts for nothing now, as the prose while an author is written: its values faded, still to choose. */
8061
- .setting.off > .segmented,
8183
+ /* A setting that counts for nothing now, as the prose while an author is written or what goes into the repository without commits: the chosen value's
8184
+ gold paled and what it means in the muted ink, still to choose. Colours, not opacity: the values stay at 4.5:1, as they can still be chosen. */
8185
+ .setting.off > .segmented button[aria-checked="true"] {
8186
+ background: color-mix(in srgb, var(--gold) 35%, var(--float));
8187
+ color: var(--ink);
8188
+ }
8189
+
8062
8190
  .setting.off .setting-means {
8063
- opacity: 0.55;
8191
+ border-inline-start-color: color-mix(in srgb, var(--gold) 45%, var(--rule));
8192
+ color: var(--muted);
8064
8193
  }
8065
8194
 
8066
8195
  .setting-off {
@@ -8361,7 +8490,7 @@
8361
8490
  overflow: hidden;
8362
8491
  border: 1px solid var(--card-edge);
8363
8492
  border-radius: var(--radius-l);
8364
- background: var(--card-ornament-layer), var(--panel);
8493
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
8365
8494
  box-shadow: var(--lift), var(--raise);
8366
8495
  }
8367
8496
 
@@ -8696,7 +8825,7 @@
8696
8825
  padding: 14px 16px;
8697
8826
  border: 1px solid var(--card-edge);
8698
8827
  border-radius: var(--radius-l);
8699
- background: var(--card-ornament-layer), var(--panel);
8828
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
8700
8829
  box-shadow: var(--lift), var(--raise);
8701
8830
  }
8702
8831
 
@@ -9145,7 +9274,7 @@
9145
9274
  padding: 12px 14px 8px;
9146
9275
  border: 1px solid var(--card-edge);
9147
9276
  border-radius: var(--radius-l);
9148
- background: var(--card-ornament-layer), var(--panel);
9277
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
9149
9278
  box-shadow: var(--lift), var(--raise);
9150
9279
  }
9151
9280
 
@@ -9503,7 +9632,7 @@
9503
9632
  grid-template-columns: 168px minmax(0, 1fr);
9504
9633
  border: 1px solid var(--card-edge);
9505
9634
  border-radius: var(--radius-l);
9506
- background: var(--card-ornament-layer), var(--panel);
9635
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
9507
9636
  box-shadow: var(--lift);
9508
9637
  }
9509
9638
 
@@ -10060,7 +10189,7 @@
10060
10189
  margin-bottom: var(--gap);
10061
10190
  border: 1px solid var(--card-edge);
10062
10191
  border-radius: var(--radius-l);
10063
- background: var(--card-ornament-layer), linear-gradient(180deg, var(--panel-2), var(--panel));
10192
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), linear-gradient(180deg, var(--panel-2), var(--panel));
10064
10193
  box-shadow: var(--lift), var(--raise);
10065
10194
  }
10066
10195
 
@@ -11600,7 +11729,7 @@
11600
11729
  border: 1px solid var(--card-edge);
11601
11730
  border-inline-start: 4px solid var(--accent);
11602
11731
  border-radius: var(--radius-l);
11603
- background: var(--card-ornament-layer), var(--panel);
11732
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
11604
11733
  box-shadow: var(--lift), var(--raise);
11605
11734
  }
11606
11735
 
@@ -12028,7 +12157,7 @@
12028
12157
  min-width: 0;
12029
12158
  border: 1px solid var(--card-edge);
12030
12159
  border-radius: var(--radius-l);
12031
- background: var(--card-ornament-layer), var(--panel);
12160
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
12032
12161
  box-shadow: var(--lift), var(--raise);
12033
12162
  }
12034
12163
 
@@ -12438,7 +12567,8 @@
12438
12567
  .turn-notice-go {
12439
12568
  margin-inline-start: auto;
12440
12569
  padding: 4px 12px;
12441
- border-radius: var(--radius-m);
12570
+ border-radius: var(--button-radius, var(--radius-m));
12571
+ corner-shape: var(--button-corner, round);
12442
12572
  background: color-mix(in srgb, var(--on-gold) 12%, transparent);
12443
12573
  }
12444
12574
 
@@ -12576,9 +12706,11 @@
12576
12706
  overflow: hidden;
12577
12707
  }
12578
12708
 
12709
+ /* The fog where the map is not known and the halo of its words: of the game's paper of the maps, when it gives one (D-528). The rivers', the trail's and
12710
+ the regions' inks are copied in themes/theme.ts (paperInks), which measures them on a theme's paper: change them there too. */
12579
12711
  .map-card {
12580
- --m-fog: #dccaa2;
12581
- --m-halo: #f1e6cc;
12712
+ --m-fog: var(--map-fog, #dccaa2);
12713
+ --m-halo: var(--map-paper, #f1e6cc);
12582
12714
  --m-river: #3a6d96;
12583
12715
  --m-trail: #b2361f;
12584
12716
  --m-region-ink: #5a3f4f;
@@ -13410,9 +13542,10 @@
13410
13542
  /* The paper's colours, fixed: the map is a sheet, not a screen. */
13411
13543
  /* The map of the place (GRD-6, D-323, D-325): ink and washes on paper that stays light in both themes, as the world map's; the ground by the place's look; in Combat beside the order of the turns. */
13412
13544
  .lm {
13413
- --l-paper: #f1e6cc;
13414
- --l-floor: #f6ecd6;
13415
- --l-grid: #cdb98f;
13545
+ /* The game's paper of the maps, its floor and grid drawn of it (D-528), when it gives one. */
13546
+ --l-paper: var(--map-paper, #f1e6cc);
13547
+ --l-floor: var(--map-floor, #f6ecd6);
13548
+ --l-grid: var(--map-grid, #cdb98f);
13416
13549
  --l-ink: #3f2f1f;
13417
13550
  --l-wood: #dcb47c;
13418
13551
  --l-wood-dark: #bb8a52;
@@ -14038,7 +14171,8 @@
14038
14171
  flex: 1;
14039
14172
  min-height: 44px;
14040
14173
  border: 0;
14041
- border-radius: var(--radius-m);
14174
+ border-radius: var(--button-radius, var(--radius-m));
14175
+ corner-shape: var(--button-corner, round);
14042
14176
  background: var(--gold);
14043
14177
  color: var(--on-gold);
14044
14178
  font-weight: 700;
@@ -14327,7 +14461,8 @@
14327
14461
  min-height: 44px;
14328
14462
  padding: 0 16px;
14329
14463
  border: 1px solid var(--rule);
14330
- border-radius: var(--radius-m);
14464
+ border-radius: var(--button-radius, var(--radius-m));
14465
+ corner-shape: var(--button-corner, round);
14331
14466
  background: none;
14332
14467
  }
14333
14468
 
@@ -16206,3 +16341,29 @@
16206
16341
  }
16207
16342
  }
16208
16343
  }
16344
+
16345
+ /* The colours the guarantees draw with, registered here, outside every layer, as among @property rules the last layer wins and a style sheet without a layer
16346
+ over them all: no @property of a theme's own style sheet gives them another syntax, which would make them invalid and put out the ring and the tooltip. */
16347
+ @property --guard-accent {
16348
+ syntax: "<color>";
16349
+ inherits: true;
16350
+ initial-value: #254b83;
16351
+ }
16352
+
16353
+ @property --guard-ink {
16354
+ syntax: "<color>";
16355
+ inherits: true;
16356
+ initial-value: #182c4c;
16357
+ }
16358
+
16359
+ @property --guard-paper {
16360
+ syntax: "<color>";
16361
+ inherits: true;
16362
+ initial-value: #f3ede2;
16363
+ }
16364
+
16365
+ @property --guard-gold {
16366
+ syntax: "<color>";
16367
+ inherits: true;
16368
+ initial-value: #f5c63e;
16369
+ }