rpg-engine 0.20.0 → 0.22.0

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 (194) hide show
  1. package/dist/adventures/index.d.ts +1 -1
  2. package/dist/adventures/index.js +1 -1
  3. package/dist/adventures/source.d.ts +3 -0
  4. package/dist/adventures/source.js +11 -49
  5. package/dist/campaign/create-campaign.d.ts +1 -1
  6. package/dist/campaign/create-campaign.js +3 -2
  7. package/dist/campaign/find-campaign.d.ts +2 -0
  8. package/dist/campaign/find-campaign.js +2 -0
  9. package/dist/campaign/host-files.js +4 -1
  10. package/dist/campaign/index.d.ts +3 -2
  11. package/dist/campaign/index.js +3 -2
  12. package/dist/campaign/port.d.ts +6 -0
  13. package/dist/campaign/port.js +24 -0
  14. package/dist/campaign/settings.d.ts +17 -0
  15. package/dist/campaign/settings.js +26 -3
  16. package/dist/cli/cli.js +15 -0
  17. package/dist/commands/book.d.ts +16 -35
  18. package/dist/commands/book.js +86 -62
  19. package/dist/commands/config/config.js +16 -2
  20. package/dist/commands/config/dashboard.d.ts +6 -2
  21. package/dist/commands/config/dashboard.js +45 -8
  22. package/dist/commands/config/shown.js +4 -0
  23. package/dist/commands/config/words.d.ts +3 -1
  24. package/dist/commands/config/words.js +29 -2
  25. package/dist/commands/image.d.ts +5 -0
  26. package/dist/commands/image.js +6 -3
  27. package/dist/commands/mode.d.ts +1 -1
  28. package/dist/commands/package/data.d.ts +35 -0
  29. package/dist/commands/package/data.js +144 -0
  30. package/dist/commands/package/here.d.ts +7 -2
  31. package/dist/commands/package/here.js +23 -11
  32. package/dist/commands/package/install.js +14 -15
  33. package/dist/commands/package/language.d.ts +15 -0
  34. package/dist/commands/package/language.js +109 -0
  35. package/dist/commands/package/package.js +20 -10
  36. package/dist/commands/package/result.d.ts +19 -0
  37. package/dist/commands/package/theme.d.ts +13 -0
  38. package/dist/commands/package/theme.js +67 -0
  39. package/dist/commands/package/uninstall.d.ts +4 -1
  40. package/dist/commands/package/uninstall.js +29 -9
  41. package/dist/commands/scene/close.d.ts +1 -1
  42. package/dist/commands/scene/close.js +15 -8
  43. package/dist/commands/scene/scene.js +6 -1
  44. package/dist/commands/shared/books/adventures.d.ts +1 -4
  45. package/dist/commands/shared/books/adventures.js +3 -32
  46. package/dist/commands/shared/books/words.js +3 -2
  47. package/dist/commands/shared/campaign/book.d.ts +21 -8
  48. package/dist/commands/shared/campaign/book.js +65 -42
  49. package/dist/commands/shared/campaign/git.d.ts +25 -0
  50. package/dist/commands/shared/campaign/git.js +104 -0
  51. package/dist/commands/shared/campaign/saves.js +7 -3
  52. package/dist/commands/shared/campaign/world.js +2 -1
  53. package/dist/commands/shared/packages/catalog.d.ts +3 -3
  54. package/dist/commands/shared/packages/catalog.js +118 -43
  55. package/dist/commands/shared/packages/unpacked.d.ts +50 -0
  56. package/dist/commands/shared/packages/unpacked.js +146 -0
  57. package/dist/commands/status.d.ts +1 -0
  58. package/dist/commands/status.js +8 -4
  59. package/dist/core/archive.d.ts +13 -0
  60. package/dist/core/archive.js +76 -0
  61. package/dist/core/context.d.ts +4 -0
  62. package/dist/core/context.js +1 -0
  63. package/dist/core/store.d.ts +5 -1
  64. package/dist/core/store.js +15 -2
  65. package/dist/core/version.d.ts +2 -0
  66. package/dist/core/version.js +5 -0
  67. package/dist/dashboard/api.js +24 -1
  68. package/dist/dashboard/app.js +7 -2
  69. package/dist/dashboard/guide/ar.md +11 -9
  70. package/dist/dashboard/guide/cs.md +11 -9
  71. package/dist/dashboard/guide/da.md +12 -10
  72. package/dist/dashboard/guide/de.md +13 -11
  73. package/dist/dashboard/guide/el.md +11 -9
  74. package/dist/dashboard/guide/en.md +10 -8
  75. package/dist/dashboard/guide/es.md +11 -9
  76. package/dist/dashboard/guide/fi.md +11 -9
  77. package/dist/dashboard/guide/fr.md +11 -9
  78. package/dist/dashboard/guide/he.md +11 -9
  79. package/dist/dashboard/guide/hi.md +11 -9
  80. package/dist/dashboard/guide/hu.md +11 -9
  81. package/dist/dashboard/guide/is.md +11 -9
  82. package/dist/dashboard/guide/it.md +11 -9
  83. package/dist/dashboard/guide/ja.md +12 -10
  84. package/dist/dashboard/guide/ko.md +11 -9
  85. package/dist/dashboard/guide/nb.md +12 -10
  86. package/dist/dashboard/guide/nl.md +11 -9
  87. package/dist/dashboard/guide/pl.md +11 -9
  88. package/dist/dashboard/guide/pt.md +11 -9
  89. package/dist/dashboard/guide/ro.md +11 -9
  90. package/dist/dashboard/guide/ru.md +12 -10
  91. package/dist/dashboard/guide/sv.md +11 -9
  92. package/dist/dashboard/guide/tr.md +11 -9
  93. package/dist/dashboard/guide/uk.md +12 -10
  94. package/dist/dashboard/guide/zh.md +11 -9
  95. package/dist/dashboard/i18n/ar.json +58 -5
  96. package/dist/dashboard/i18n/cs.json +58 -5
  97. package/dist/dashboard/i18n/da.json +58 -5
  98. package/dist/dashboard/i18n/de.json +58 -5
  99. package/dist/dashboard/i18n/el.json +58 -5
  100. package/dist/dashboard/i18n/es.json +58 -5
  101. package/dist/dashboard/i18n/fi.json +58 -5
  102. package/dist/dashboard/i18n/fr.json +58 -5
  103. package/dist/dashboard/i18n/he.json +58 -5
  104. package/dist/dashboard/i18n/hi.json +58 -5
  105. package/dist/dashboard/i18n/hu.json +58 -5
  106. package/dist/dashboard/i18n/is.json +58 -5
  107. package/dist/dashboard/i18n/it.json +58 -5
  108. package/dist/dashboard/i18n/ja.json +58 -5
  109. package/dist/dashboard/i18n/ko.json +58 -5
  110. package/dist/dashboard/i18n/nb.json +58 -5
  111. package/dist/dashboard/i18n/nl.json +58 -5
  112. package/dist/dashboard/i18n/pl.json +58 -5
  113. package/dist/dashboard/i18n/pt.json +58 -5
  114. package/dist/dashboard/i18n/ro.json +58 -5
  115. package/dist/dashboard/i18n/ru.json +58 -5
  116. package/dist/dashboard/i18n/sv.json +58 -5
  117. package/dist/dashboard/i18n/tr.json +58 -5
  118. package/dist/dashboard/i18n/uk.json +58 -5
  119. package/dist/dashboard/i18n/zh.json +58 -5
  120. package/dist/dashboard/journal/book.js +3 -2
  121. package/dist/dashboard/journal/journal.js +8 -5
  122. package/dist/dashboard/kit.js +1 -1
  123. package/dist/dashboard/packages/catalog.js +31 -14
  124. package/dist/dashboard/packages/engine.js +46 -2
  125. package/dist/dashboard/packages/installed.js +13 -0
  126. package/dist/dashboard/packages/outcomes.js +21 -0
  127. package/dist/dashboard/packages/packages.js +41 -18
  128. package/dist/dashboard/packages/rows.js +3 -1
  129. package/dist/dashboard/parts/icons.js +3 -0
  130. package/dist/dashboard/parts/labels.js +7 -0
  131. package/dist/dashboard/parts/picture.js +89 -0
  132. package/dist/dashboard/parts/refusals.js +8 -1
  133. package/dist/dashboard/parts/widgets.js +2 -1
  134. package/dist/dashboard/play/scene.js +8 -5
  135. package/dist/dashboard/settings/settings.js +55 -18
  136. package/dist/dashboard/sheet/party.js +5 -2
  137. package/dist/dashboard/sheet/sheet.js +2 -1
  138. package/dist/dashboard/shell/notices.js +2 -2
  139. package/dist/dashboard/shell/system-style.js +132 -15
  140. package/dist/dashboard/shell/tooltip.js +224 -0
  141. package/dist/dashboard/style.css +497 -193
  142. package/dist/dashboard/world/lore.js +4 -3
  143. package/dist/dashboard/world/place-card.js +2 -1
  144. package/dist/git/git.d.ts +12 -0
  145. package/dist/git/git.js +175 -0
  146. package/dist/git/ignore.d.ts +2 -0
  147. package/dist/git/ignore.js +16 -0
  148. package/dist/git/index.d.ts +2 -0
  149. package/dist/git/index.js +2 -0
  150. package/dist/importer/index.d.ts +1 -1
  151. package/dist/importer/index.js +1 -1
  152. package/dist/languages/index.d.ts +1 -1
  153. package/dist/languages/index.js +1 -1
  154. package/dist/languages/pack.d.ts +4 -1
  155. package/dist/languages/pack.js +18 -6
  156. package/dist/packages/engine.d.ts +7 -0
  157. package/dist/packages/engine.js +32 -1
  158. package/dist/packages/index.d.ts +1 -1
  159. package/dist/packages/index.js +1 -1
  160. package/dist/server/bell-listener.d.ts +2 -1
  161. package/dist/server/bell-listener.js +10 -41
  162. package/dist/server/dashboard/engine.d.ts +18 -0
  163. package/dist/server/dashboard/engine.js +31 -0
  164. package/dist/server/dashboard/files.d.ts +11 -3
  165. package/dist/server/dashboard/files.js +66 -17
  166. package/dist/server/dashboard/index.d.ts +18 -2
  167. package/dist/server/dashboard/index.js +62 -23
  168. package/dist/server/dashboard/news.d.ts +3 -2
  169. package/dist/server/dashboard/news.js +19 -5
  170. package/dist/server/dashboard/pictures.d.ts +7 -0
  171. package/dist/server/dashboard/pictures.js +62 -0
  172. package/dist/server/dashboard/ports.d.ts +17 -2
  173. package/dist/server/dashboard/ports.js +60 -4
  174. package/dist/server/dashboard/writes.d.ts +5 -3
  175. package/dist/server/dashboard/writes.js +45 -14
  176. package/dist/server/mcp.d.ts +3 -2
  177. package/dist/server/mcp.js +55 -11
  178. package/dist/testing/index.js +1 -0
  179. package/dist/themes/css.d.ts +1 -1
  180. package/dist/themes/css.js +101 -2
  181. package/dist/themes/index.d.ts +2 -1
  182. package/dist/themes/index.js +4 -2
  183. package/dist/themes/installed.d.ts +14 -0
  184. package/dist/themes/installed.js +28 -0
  185. package/dist/themes/theme.d.ts +38 -0
  186. package/dist/themes/theme.js +192 -13
  187. package/instructions/core.md +4 -3
  188. package/instructions/dashboard-guide.md +2 -1
  189. package/instructions/mentor-hints.md +1 -1
  190. package/instructions/mentor-tutorial.md +1 -1
  191. package/instructions/party.md +1 -1
  192. package/instructions/play.md +2 -2
  193. package/package.json +1 -1
  194. package/systems/free/instructions/outcomes-told.md +1 -1
@@ -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,12 +143,30 @@
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
 
149
- /* A clip or a mask on a control would cut its focus ring and its tooltip (D-528). */
169
+ /* A clip or a mask on a control would cut its focus ring (D-528). */
150
170
  :is(button, a, summary, input, select, textarea, label, [role="tab"], [role="button"], [role="radio"], [tabindex], [data-tip]) {
151
171
  clip-path: none !important;
152
172
  mask: none !important;
@@ -160,23 +180,17 @@
160
180
  outline-offset: -2px !important;
161
181
  }
162
182
 
163
- /* The last tab's mark is near the page's edge: its tip ends at the mark, else on a phone the page grows wider. */
164
- .page-tabs > [role="tab"]:last-child .tab-mark[data-tip]::before {
165
- left: auto !important;
166
- inset-inline-end: 0 !important;
167
- translate: 0 4px !important;
183
+ .quest-cover-top :focus-visible {
184
+ outline-color: #f3f4fa !important;
168
185
  }
169
186
 
170
- @media (hover: hover) {
171
- .page-tabs > [role="tab"]:last-child .tab-mark[data-tip]:hover::before {
172
- translate: 0 0 !important;
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;
173
191
  }
174
192
  }
175
193
 
176
- .quest-cover-top :focus-visible {
177
- outline-color: var(--on-veil) !important;
178
- }
179
-
180
194
  .note-title:focus-visible,
181
195
  .note-text:focus-visible {
182
196
  outline: none !important;
@@ -187,7 +201,7 @@
187
201
  }
188
202
 
189
203
  .tracked-what:focus-visible {
190
- outline: 2px solid var(--accent) !important;
204
+ outline: 2px solid var(--guard-accent) !important;
191
205
  outline-offset: 3px !important;
192
206
  }
193
207
 
@@ -196,176 +210,129 @@
196
210
  }
197
211
 
198
212
  .setup-card h2:focus-visible {
199
- outline: 2px solid var(--accent) !important;
213
+ outline: 2px solid var(--guard-accent) !important;
200
214
  outline-offset: 4px !important;
201
215
  }
202
216
 
203
- /* Its tooltip from the pip toward the name, where there is room, in lines when it is long. */
204
- .token .status-pip[data-tip]::before {
205
- left: auto !important;
206
- inset-inline-start: 0 !important;
207
- width: max-content !important;
208
- max-width: 240px !important;
209
- white-space: normal !important;
210
- translate: 0 4px !important;
211
- }
212
-
213
- @media (hover: hover) {
214
- .token .status-pip[data-tip]:hover::before {
215
- translate: 0 0 !important;
216
- }
217
- }
218
-
219
- /* Over the pip, its tooltip alone: not the one of the class of whom it is on. */
220
- .token-holder:has(.status-pip:hover)::before {
221
- opacity: 0 !important;
222
- }
223
-
224
217
  .row:focus-visible {
225
218
  outline-offset: -2px !important;
226
219
  }
227
220
 
228
- :is(.effect.icon-only, .effect.more)[data-tip]::before {
229
- left: auto !important;
230
- inset-inline-start: 0 !important;
231
- width: max-content !important;
232
- max-width: 240px !important;
233
- white-space: normal !important;
234
- translate: 0 4px !important;
235
- }
236
-
237
- @media (hover: hover) {
238
- :is(.effect.icon-only, .effect.more)[data-tip]:hover::before {
239
- translate: 0 0 !important;
240
- }
241
- }
242
-
243
- :is(.effect.icon-only, .effect.more)[data-tip]:focus-visible::before {
244
- translate: 0 0 !important;
245
- }
246
-
247
- /* The asterisk of a changed page stands in narrow cards: its tooltip in lines, never wider than its card. */
248
- .changed-mark[data-tip]::before {
249
- width: max-content !important;
250
- max-width: 200px !important;
251
- white-space: normal !important;
252
- }
253
-
254
- /* How a number is made, in its tooltip (FOR-8): lines that wrap, its free roll on the last. */
255
- [data-tip].tip-wide::before {
256
- width: max-content !important;
257
- max-width: 260px !important;
258
- text-align: start !important;
259
- white-space: pre-line !important;
260
- }
261
-
262
221
  .asked.folded .asked-fold:focus-visible {
263
222
  outline: none !important;
264
223
  }
265
224
 
266
225
  .asked.folded:has(.asked-fold:focus-visible) {
267
- outline: 2px solid var(--accent) !important;
226
+ outline: 2px solid var(--guard-accent) !important;
268
227
  outline-offset: 3px !important;
269
228
  }
270
229
 
271
230
  .asked-buttons button.sent {
272
- outline: 2px solid var(--accent) !important;
231
+ outline: 2px solid var(--guard-accent) !important;
273
232
  outline-offset: 2px !important;
274
233
  }
275
234
 
276
235
  .ask-choices > .sent {
277
- outline: 2px solid var(--accent) !important;
236
+ outline: 2px solid var(--guard-accent) !important;
278
237
  outline-offset: 2px !important;
279
238
  }
280
239
 
281
240
  .requested {
282
- outline: 2px solid var(--gold) !important;
241
+ outline: 2px solid var(--guard-gold) !important;
283
242
  outline-offset: -1px !important;
284
243
  }
285
244
 
286
245
  :is(.asked-hand, .package-use) input:focus-visible {
287
- outline: 2px solid var(--accent) !important;
246
+ outline: 2px solid var(--guard-accent) !important;
288
247
  outline-offset: 2px !important;
289
248
  }
290
249
 
291
250
  .asked-own input:focus-visible {
292
- outline: 2px solid var(--accent) !important;
251
+ outline: 2px solid var(--guard-accent) !important;
293
252
  outline-offset: 1px !important;
294
253
  }
295
254
 
296
- /* A control without words says its name when hovered, after a moment, or reached by the keyboard; never at a touch, where it would stay lit. A name of
297
- several things, as a gathered spark's, has a line for each. */
298
- [data-tip]::before {
299
- content: attr(data-tip) !important;
300
- position: absolute !important;
301
- bottom: calc(100% + 8px) !important;
302
- left: 50% !important;
303
- z-index: 40 !important;
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
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
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;
263
+ position: fixed !important;
264
+ inset: 0 auto auto 0 !important;
265
+ box-sizing: border-box !important;
266
+ width: max-content !important;
267
+ max-width: min(max(20rem, 320px), calc(100vw - 16px)) !important;
304
268
  padding: 5px 8px !important;
305
- border-radius: var(--radius-xs) !important;
306
- background: var(--ink) !important;
307
- color: var(--paper) !important;
308
- font: 400 0.8rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif !important;
309
- letter-spacing: 0 !important;
310
- text-transform: none !important;
311
- white-space: pre !important;
312
- opacity: 0 !important;
313
- translate: -50% 4px !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;
274
+ text-align: start !important;
275
+ white-space: pre-line !important;
276
+ overflow-wrap: break-word !important;
314
277
  pointer-events: none !important;
315
- transition: opacity var(--quick) linear, translate var(--quick) var(--ease) !important;
278
+ opacity: 1 !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;
316
286
  }
317
287
 
318
- [data-tip].tip-left::before {
319
- inset-inline-start: auto !important;
320
- inset-inline-end: calc(100% + 8px) !important;
321
- bottom: 50% !important;
322
- translate: 4px 50% !important;
288
+ /* all leaves the direction out: the one tooltip.ts gives it, from its control. */
289
+ .page-tip[dir="ltr"] {
290
+ direction: ltr !important;
323
291
  }
324
292
 
325
- /* Under the control, where one over it would cover what is above, as the chips of the head over the row's icons (D-409). */
326
- [data-tip].tip-below::before {
327
- top: calc(100% + 8px) !important;
328
- bottom: auto !important;
329
- translate: -50% -4px !important;
293
+ .page-tip[dir="rtl"] {
294
+ direction: rtl !important;
330
295
  }
331
296
 
332
- @media (hover: hover) {
333
- [data-tip]:hover::before {
334
- opacity: 1 !important;
335
- translate: -50% 0 !important;
336
- transition-delay: var(--wait) !important;
337
- }
338
-
339
- [data-tip].tip-left:hover::before {
340
- translate: 0 50% !important;
341
- }
297
+ .page-tip::before,
298
+ .page-tip::after,
299
+ .page-tip::backdrop {
300
+ all: initial !important;
301
+ display: none !important;
342
302
  }
343
303
 
344
- [data-tip]:focus-visible::before {
345
- opacity: 1 !important;
346
- translate: -50% 0 !important;
304
+ .page-tip::first-line,
305
+ .page-tip::first-letter {
306
+ all: unset !important;
347
307
  }
348
308
 
349
- [data-tip].tip-left:focus-visible::before {
350
- translate: 0 50% !important;
309
+ @starting-style {
310
+ .page-tip.shown {
311
+ opacity: 0 !important;
312
+ }
351
313
  }
352
314
 
353
- /* On a phone a hidden tip takes no room, as one wider than the window would widen the page with the text zoomed; shown, it wraps in the window. */
354
- @media (max-width: 600px) {
355
- [data-tip]:not(:focus-visible)::before {
356
- display: none !important;
315
+ @media (prefers-reduced-motion: no-preference) {
316
+ .page-tip:is(:popover-open, :not([popover], [hidden])) {
317
+ transition: opacity 100ms linear, translate 100ms cubic-bezier(0.2, 0, 0, 1) !important;
357
318
  }
358
319
 
359
- [data-tip]::before {
360
- width: max-content !important;
361
- max-width: calc(100vw - 32px) !important;
362
- white-space: pre-line !important;
363
- }
364
- }
320
+ @starting-style {
321
+ .page-tip.shown[data-side="above"] {
322
+ translate: 0 4px !important;
323
+ }
324
+
325
+ .page-tip.shown[data-side="below"] {
326
+ translate: 0 -4px !important;
327
+ }
365
328
 
366
- @media (max-width: 600px) and (hover: hover) {
367
- [data-tip]:hover::before {
368
- display: block !important;
329
+ .page-tip.shown[data-side="start"] {
330
+ translate: 4px 0 !important;
331
+ }
332
+
333
+ .page-tip.shown[data-side="start"][dir="rtl"] {
334
+ translate: -4px 0 !important;
335
+ }
369
336
  }
370
337
  }
371
338
 
@@ -376,17 +343,17 @@
376
343
 
377
344
  /* A chapter the calendar led to, ringed while it has the focus. */
378
345
  .chapter:focus {
379
- outline: 2px solid var(--accent) !important;
346
+ outline: 2px solid var(--guard-accent) !important;
380
347
  outline-offset: 4px !important;
381
348
  }
382
349
 
383
350
  .act-who-one:has(input:focus-visible) {
384
- outline: 2px solid var(--accent) !important;
351
+ outline: 2px solid var(--guard-accent) !important;
385
352
  outline-offset: 2px !important;
386
353
  }
387
354
 
388
355
  .act-words:focus-visible {
389
- outline: 2px solid var(--accent) !important;
356
+ outline: 2px solid var(--guard-accent) !important;
390
357
  outline-offset: 1px !important;
391
358
  }
392
359
 
@@ -399,19 +366,19 @@
399
366
  }
400
367
 
401
368
  :is(.package-add-line, .package-credits, .search) input:focus-visible {
402
- outline: 2px solid var(--accent) !important;
369
+ outline: 2px solid var(--guard-accent) !important;
403
370
  outline-offset: 0 !important;
404
371
  }
405
372
 
406
373
  .filter-chips :is(button, a):focus-visible,
407
374
  .package-show:focus-visible,
408
375
  .package-row:focus-visible {
409
- outline: 2px solid var(--accent) !important;
376
+ outline: 2px solid var(--guard-accent) !important;
410
377
  outline-offset: 2px !important;
411
378
  }
412
379
 
413
380
  .package-bin:focus-visible {
414
- outline: 2px solid var(--accent) !important;
381
+ outline: 2px solid var(--guard-accent) !important;
415
382
  }
416
383
 
417
384
  .package-said:focus {
@@ -419,7 +386,7 @@
419
386
  }
420
387
 
421
388
  .package-said:focus-visible {
422
- outline: 2px solid var(--accent) !important;
389
+ outline: 2px solid var(--guard-accent) !important;
423
390
  outline-offset: 2px !important;
424
391
  }
425
392
  }
@@ -620,7 +587,7 @@
620
587
  }
621
588
  }
622
589
  }
623
- /* 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). */
624
591
  @layer parts {
625
592
  /* A card that is always open: its CardHead, then its body. */
626
593
  .card {
@@ -629,7 +596,7 @@
629
596
  min-width: 0;
630
597
  border: 1px solid var(--card-edge);
631
598
  border-radius: var(--radius-l);
632
- background: var(--card-ornament-layer), var(--panel);
599
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
633
600
  box-shadow: var(--lift), var(--raise);
634
601
  }
635
602
 
@@ -643,10 +610,15 @@
643
610
  padding: 0 16px;
644
611
  border: 1px solid var(--card-edge);
645
612
  border-radius: var(--radius-l);
646
- background: var(--card-ornament-layer), var(--panel);
613
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
647
614
  box-shadow: var(--lift), var(--raise);
648
615
  }
649
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
+
650
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. */
651
623
  :is(.group, .rolls-card, .table-card) > summary {
652
624
  display: flex;
@@ -657,6 +629,7 @@
657
629
  padding-block: 8px;
658
630
  padding-inline: 16px 12px;
659
631
  border-radius: calc(var(--radius-l) - 1px);
632
+ corner-shape: var(--card-corner, round);
660
633
  cursor: pointer;
661
634
  list-style: none;
662
635
  }
@@ -746,13 +719,16 @@
746
719
  padding-bottom: 14px;
747
720
  }
748
721
 
749
- /* 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. */
750
724
  :is(.card, .group, .band, .rolls-card, .turns-card, .settings-group, .scene-now, .quest-card, .note-card, .save-card, .chapter) {
751
725
  outline: 1px var(--card-inner-line) color-mix(in srgb, var(--card-edge) 70%, transparent);
752
726
  outline-offset: -5px;
727
+ corner-shape: var(--card-corner, round);
753
728
  }
754
729
  }
755
- /* 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. */
756
732
  @layer parts {
757
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. */
758
734
  .button {
@@ -763,7 +739,8 @@
763
739
  min-height: 38px;
764
740
  padding: 0 14px;
765
741
  border: 1px solid var(--rule);
766
- border-radius: var(--radius-m);
742
+ border-radius: var(--button-radius, var(--radius-m));
743
+ corner-shape: var(--button-corner, round);
767
744
  background: var(--float);
768
745
  color: var(--ink);
769
746
  font: inherit;
@@ -928,7 +905,8 @@
928
905
  inset: 0 0 auto;
929
906
  z-index: 21;
930
907
  display: grid;
931
- 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);
932
910
  grid-template-areas: "robot titles chips" "robot nav nav" "place place place";
933
911
  align-items: center;
934
912
  column-gap: 20px;
@@ -1029,9 +1007,15 @@
1029
1007
  display: none;
1030
1008
  }
1031
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. */
1032
1011
  .title-home {
1012
+ display: block;
1013
+ width: fit-content;
1014
+ max-width: 100%;
1015
+ overflow: hidden;
1033
1016
  color: inherit;
1034
1017
  text-decoration: none;
1018
+ text-overflow: ellipsis;
1035
1019
  }
1036
1020
 
1037
1021
  .top > .titles {
@@ -1042,6 +1026,7 @@
1042
1026
  /* The chips to the right edge, in line with what the master asks and the cards under them. */
1043
1027
  .top > .status-chips {
1044
1028
  grid-area: chips;
1029
+ min-width: min-content;
1045
1030
  margin: 0;
1046
1031
  /* Clear of the theme's corner, whose button is wider than its triangle. */
1047
1032
  margin-inline-end: 40px;
@@ -1052,6 +1037,35 @@
1052
1037
  margin-inline-start: -14px;
1053
1038
  }
1054
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
+
1055
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,
1056
1070
  for the page to measure it. */
1057
1071
  .nav-row {
@@ -1207,7 +1221,8 @@
1207
1221
  display: none;
1208
1222
  }
1209
1223
 
1210
- /* 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. */
1211
1226
  .sections {
1212
1227
  display: flex;
1213
1228
  gap: 2px;
@@ -1219,7 +1234,8 @@
1219
1234
  gap: 8px;
1220
1235
  height: 40px;
1221
1236
  padding: 0 14px;
1222
- 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);
1223
1239
  color: var(--muted);
1224
1240
  font-size: inherit;
1225
1241
  font-weight: 600;
@@ -1229,7 +1245,7 @@
1229
1245
 
1230
1246
  /* The section shown: in the accent, its tab lit as under a pointer, with a bar as wide as the tab. */
1231
1247
  .sections a[aria-current="page"] {
1232
- 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);
1233
1249
  color: var(--accent);
1234
1250
  }
1235
1251
 
@@ -1310,12 +1326,10 @@
1310
1326
  }
1311
1327
 
1312
1328
  .titles h1 {
1313
- overflow: hidden;
1314
1329
  font-size: 2.4rem;
1315
1330
  line-height: 1.05;
1316
1331
  letter-spacing: var(--title-spacing, 0.04em);
1317
1332
  font-variant: small-caps;
1318
- text-overflow: ellipsis;
1319
1333
  white-space: nowrap;
1320
1334
  }
1321
1335
 
@@ -1720,7 +1734,8 @@
1720
1734
  .top .main-nav .section-mark {
1721
1735
  width: 52px;
1722
1736
  height: 30px;
1723
- border-radius: var(--radius-m);
1737
+ border-radius: var(--tab-radius, var(--radius-m));
1738
+ corner-shape: var(--tab-corner, round);
1724
1739
  }
1725
1740
 
1726
1741
  .top .main-nav a[aria-current="page"] .section-mark {
@@ -1815,7 +1830,8 @@
1815
1830
  gap: 2px;
1816
1831
  padding: 3px;
1817
1832
  border: 1px solid var(--rule);
1818
- border-radius: var(--radius-m);
1833
+ border-radius: var(--button-radius, var(--radius-m));
1834
+ corner-shape: var(--button-corner, round);
1819
1835
  background: var(--float);
1820
1836
  }
1821
1837
 
@@ -1823,7 +1839,8 @@
1823
1839
  min-height: 36px;
1824
1840
  padding: 0 12px;
1825
1841
  border: 0;
1826
- border-radius: var(--radius-s);
1842
+ border-radius: var(--button-radius, var(--radius-s));
1843
+ corner-shape: var(--button-corner, round);
1827
1844
  background: transparent;
1828
1845
  color: var(--muted);
1829
1846
  font: inherit;
@@ -2049,11 +2066,6 @@
2049
2066
  height: 16px;
2050
2067
  }
2051
2068
 
2052
- /* Their tooltip over the chip, from its start toward the name, inside the party's strip, which scrolls and so cuts what leaves it. */
2053
- :is(.effect.icon-only, .effect.more) {
2054
- position: relative;
2055
- }
2056
-
2057
2069
  /* A package's small card among the values under a name (D-516): a lead's words and value on one line. */
2058
2070
  .person-box-lead {
2059
2071
  display: inline-flex;
@@ -2184,7 +2196,7 @@
2184
2196
  margin-top: 18px;
2185
2197
  }
2186
2198
  }
2187
- /* 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). */
2188
2200
  @layer parts {
2189
2201
  .page-tabs {
2190
2202
  display: flex;
@@ -2202,6 +2214,8 @@
2202
2214
  padding: 0 16px;
2203
2215
  border: 0;
2204
2216
  border-bottom: 3px solid transparent;
2217
+ border-radius: var(--tab-radius, 0);
2218
+ corner-shape: var(--tab-corner, round);
2205
2219
  background: transparent;
2206
2220
  color: var(--muted);
2207
2221
  font: inherit;
@@ -2210,7 +2224,8 @@
2210
2224
  }
2211
2225
 
2212
2226
  .page-tabs button[aria-selected="true"] {
2213
- border-bottom-color: var(--accent);
2227
+ border-bottom-color: var(--tab-bar, var(--accent));
2228
+ background: var(--tab-chosen, transparent);
2214
2229
  color: var(--accent);
2215
2230
  }
2216
2231
 
@@ -2832,8 +2847,35 @@
2832
2847
  .notice.away {
2833
2848
  --tone: var(--warn);
2834
2849
  }
2850
+
2851
+ /* A notice with somewhere to go, as a newer RPG Engine's (T-219): its link after its words, its cross at the end, which hides it. */
2852
+ .notice:has(.notice-hide) {
2853
+ padding-block: 4px;
2854
+ padding-inline-end: 4px;
2855
+ }
2856
+
2857
+ .notice-words {
2858
+ display: flex;
2859
+ flex-wrap: wrap;
2860
+ column-gap: 8px;
2861
+ }
2862
+
2863
+ .notice-link {
2864
+ color: var(--accent);
2865
+ font-weight: 650;
2866
+ }
2867
+
2868
+ .notice-hide {
2869
+ flex: none;
2870
+ margin-inline-start: auto;
2871
+ }
2872
+
2873
+ .notice-hide svg.icon {
2874
+ color: var(--muted);
2875
+ }
2835
2876
  }
2836
- /* 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. */
2837
2879
  @layer parts {
2838
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
2839
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). */
@@ -2845,7 +2887,8 @@
2845
2887
  place-items: center;
2846
2888
  width: var(--size);
2847
2889
  height: var(--size);
2848
- border-radius: 50%;
2890
+ border-radius: var(--portrait-radius, 50%);
2891
+ corner-shape: var(--portrait-corner, round);
2849
2892
  background: var(--disc);
2850
2893
  box-shadow: var(--coin-shadow);
2851
2894
  flex: 0 0 auto;
@@ -2860,14 +2903,15 @@
2860
2903
  position: absolute;
2861
2904
  inset: 0;
2862
2905
  z-index: 1;
2863
- border-radius: 50%;
2906
+ border-radius: var(--portrait-radius, 50%);
2907
+ corner-shape: var(--portrait-corner, round);
2864
2908
  pointer-events: none;
2865
2909
  }
2866
2910
 
2867
2911
  /* The glass's top, and the coin's bevel over its rim: lit above, shaded below. */
2868
2912
  .token::before {
2869
2913
  z-index: 2;
2870
- 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);
2871
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%);
2872
2916
  }
2873
2917
 
@@ -2876,7 +2920,7 @@
2876
2920
  background:
2877
2921
  radial-gradient(circle at 27% 24%, rgb(255 255 255 / 0.6), transparent 40%),
2878
2922
  linear-gradient(135deg, rgb(255 255 255 / 0.3), transparent 45%, transparent 55%, rgb(0 0 0 / 0.24));
2879
- 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));
2880
2924
  }
2881
2925
 
2882
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. */
@@ -2910,7 +2954,8 @@
2910
2954
  display: block;
2911
2955
  width: 100%;
2912
2956
  height: 100%;
2913
- border-radius: 50%;
2957
+ border-radius: var(--portrait-radius, 50%);
2958
+ corner-shape: var(--portrait-corner, round);
2914
2959
  object-fit: cover;
2915
2960
  }
2916
2961
 
@@ -3106,7 +3151,8 @@
3106
3151
 
3107
3152
  .initials {
3108
3153
  display: grid;
3109
- border-radius: 50%;
3154
+ border-radius: var(--portrait-radius, 50%);
3155
+ corner-shape: var(--portrait-corner, round);
3110
3156
  place-items: center;
3111
3157
  width: 100%;
3112
3158
  height: 100%;
@@ -4197,7 +4243,8 @@
4197
4243
  min-height: 48px;
4198
4244
  padding: 8px 18px;
4199
4245
  border: 1px solid var(--rule);
4200
- border-radius: var(--radius-m);
4246
+ border-radius: var(--button-radius, var(--radius-m));
4247
+ corner-shape: var(--button-corner, round);
4201
4248
  background: var(--panel-2);
4202
4249
  cursor: pointer;
4203
4250
  }
@@ -4473,7 +4520,8 @@
4473
4520
  min-height: 48px;
4474
4521
  padding: 8px 20px;
4475
4522
  border: 0;
4476
- border-radius: var(--radius-m);
4523
+ border-radius: var(--button-radius, var(--radius-m));
4524
+ corner-shape: var(--button-corner, round);
4477
4525
  background: var(--gold);
4478
4526
  color: var(--on-gold);
4479
4527
  font: inherit;
@@ -5285,7 +5333,7 @@
5285
5333
  padding: 0 16px 6px;
5286
5334
  border: 1px solid var(--card-edge);
5287
5335
  border-radius: var(--radius-l);
5288
- background: var(--card-ornament-layer), var(--panel);
5336
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
5289
5337
  box-shadow: var(--lift), var(--raise);
5290
5338
  }
5291
5339
 
@@ -7638,6 +7686,203 @@
7638
7686
  }
7639
7687
  }
7640
7688
  }
7689
+ /* A picture of the player's own for a page (D-572 (3)): over a picture's corner a small square on the veil, seen under the pointer and with the keyboard, always
7690
+ on touch; as words in the open page of the World; the picture darkened while it is sent, and why the game did not take it under the control. */
7691
+ @layer parts {
7692
+ .picture-give {
7693
+ position: relative;
7694
+ display: inline-flex;
7695
+ flex-wrap: wrap;
7696
+ align-items: center;
7697
+ gap: 8px;
7698
+ }
7699
+
7700
+ .picture-host {
7701
+ position: relative;
7702
+ }
7703
+
7704
+ /* A coin keeps its own box, no line's room under a picture: the control sits on its rim. */
7705
+ .picture-spot {
7706
+ position: relative;
7707
+ display: inline-flex;
7708
+ flex: none;
7709
+ }
7710
+
7711
+ /* Over a picture that fills its box, at its lower corner at the end; on the Scene's band at its upper one, as the lower has the place's name. */
7712
+ :is(.picture-spot, .picture-host) > .picture-give {
7713
+ position: absolute;
7714
+ inset-block-end: 8px;
7715
+ inset-inline-end: 8px;
7716
+ z-index: 3;
7717
+ }
7718
+
7719
+ .place-shot.picture-host > .picture-give {
7720
+ inset-block: 8px auto;
7721
+ }
7722
+
7723
+ /* The button is what is hit, the plate what is seen: one size under a pointer, the plate within 44 px on touch. */
7724
+ .picture-give.icon .icon-button {
7725
+ --plate: 32px;
7726
+ width: var(--plate);
7727
+ height: var(--plate);
7728
+ border-radius: var(--radius-m);
7729
+ color: var(--on-veil);
7730
+ }
7731
+
7732
+ .picture-plate {
7733
+ display: grid;
7734
+ flex: none;
7735
+ place-items: center;
7736
+ width: var(--plate);
7737
+ height: var(--plate);
7738
+ border: 1px solid color-mix(in srgb, var(--on-veil) 22%, transparent);
7739
+ border-radius: var(--radius-m);
7740
+ background: color-mix(in srgb, var(--veil) 72%, transparent);
7741
+ backdrop-filter: blur(3px);
7742
+ }
7743
+
7744
+ .picture-plate svg.icon {
7745
+ width: 18px;
7746
+ height: 18px;
7747
+ }
7748
+
7749
+ /* On a coin, smaller, on its rim at the upper end, across from the pip of its side, as the lower end has the pip of its state; ringed by the panel to stand
7750
+ apart from the picture. */
7751
+ .picture-spot > .picture-give {
7752
+ inset-block: -3px auto;
7753
+ inset-inline-end: -3px;
7754
+ }
7755
+
7756
+ :is(.picture-spot, li.picture-host) > .picture-give .icon-button {
7757
+ --plate: 24px;
7758
+ border-radius: var(--radius-s);
7759
+ }
7760
+
7761
+ :is(.picture-spot, li.picture-host) > .picture-give .picture-plate {
7762
+ border: 2px solid var(--panel);
7763
+ border-radius: var(--radius-s);
7764
+ }
7765
+
7766
+ :is(.picture-spot, li.picture-host) > .picture-give .picture-plate svg.icon {
7767
+ width: 13px;
7768
+ height: 13px;
7769
+ }
7770
+
7771
+ .picture-spot:has(.token.large) > .picture-give .icon-button {
7772
+ --plate: 30px;
7773
+ }
7774
+
7775
+ .picture-spot:has(.token.large) > .picture-give .picture-plate svg.icon {
7776
+ width: 17px;
7777
+ height: 17px;
7778
+ }
7779
+
7780
+ /* In a row of a list, on the rim of its thumb as on a coin: the thumb is 44 px at the row's start past its padding, in the row's middle. */
7781
+ li.picture-host > .picture-give {
7782
+ inset-block: calc(50% - 25px) auto;
7783
+ inset-inline: 33px auto;
7784
+ }
7785
+
7786
+ /* Under a pointer: seen over the picture or the row under it, with the keyboard, while it sends and after a refusal. */
7787
+ @media (hover: hover) {
7788
+ :is(.picture-spot, .picture-host) > .picture-give:not(.sending, .refused, :has(:focus-visible)) {
7789
+ opacity: 0;
7790
+ }
7791
+
7792
+ :is(.picture-spot, .picture-host):hover > .picture-give {
7793
+ opacity: 1;
7794
+ }
7795
+ }
7796
+
7797
+ /* On touch: always there, the plate as it is and the target 44 px around it; none on a list's rows, as the page they open has the button. */
7798
+ @media (pointer: coarse) {
7799
+ .picture-give.icon .icon-button {
7800
+ width: 44px;
7801
+ height: 44px;
7802
+ margin: calc((var(--plate) - 44px) / 2);
7803
+ }
7804
+ }
7805
+
7806
+ @media (hover: none) {
7807
+ li.picture-host > .picture-give {
7808
+ display: none;
7809
+ }
7810
+ }
7811
+
7812
+ /* While it sends: the picture darkened, a turning ring in the plate, gold over the veil, in the accent in the words; the new picture clears in. */
7813
+ :is(.picture-spot, .picture-host):has(> .picture-give.sending) :is(img, .initials) {
7814
+ filter: brightness(0.55) saturate(0.6);
7815
+ }
7816
+
7817
+ .picture-wait {
7818
+ width: 16px;
7819
+ height: 16px;
7820
+ border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
7821
+ border-block-start-color: var(--accent);
7822
+ border-radius: 50%;
7823
+ }
7824
+
7825
+ .picture-plate .picture-wait {
7826
+ border-block-start-color: var(--gold);
7827
+ }
7828
+
7829
+ .picture-spot .picture-plate .picture-wait {
7830
+ width: 12px;
7831
+ height: 12px;
7832
+ }
7833
+
7834
+ /* Refused: the plate ringed in the colour of what went wrong, why under it, until the next try. */
7835
+ .picture-give.refused .picture-plate {
7836
+ box-shadow: 0 0 0 2px var(--low);
7837
+ }
7838
+
7839
+ .picture-problem {
7840
+ color: var(--low);
7841
+ font-size: 0.85rem;
7842
+ font-weight: 600;
7843
+ }
7844
+
7845
+ .picture-give.icon .picture-problem {
7846
+ position: absolute;
7847
+ inset-block-start: calc(100% + 6px);
7848
+ inset-inline-end: 0;
7849
+ z-index: 5;
7850
+ width: max-content;
7851
+ max-width: min(280px, 80vw);
7852
+ padding: 8px 10px;
7853
+ border: 1px solid color-mix(in srgb, var(--low) 45%, var(--rule));
7854
+ border-radius: var(--radius-m);
7855
+ background: var(--panel);
7856
+ box-shadow: var(--overlay);
7857
+ line-height: 1.35;
7858
+ white-space: normal;
7859
+ }
7860
+
7861
+ /* From a coin or a row's thumb the words run into the page, at the start of the control. */
7862
+ :is(.picture-spot, li.picture-host) > .picture-give .picture-problem {
7863
+ inset-inline: 0 auto;
7864
+ }
7865
+
7866
+ @media (prefers-reduced-motion: no-preference) {
7867
+ :is(.picture-spot, .picture-host) > .picture-give {
7868
+ transition: opacity var(--quick) var(--ease);
7869
+ }
7870
+
7871
+ :is(.picture-spot, .picture-host) :is(img, .initials) {
7872
+ transition: filter var(--short) var(--ease);
7873
+ }
7874
+
7875
+ .picture-wait {
7876
+ animation: picture-turn 0.8s linear infinite;
7877
+ }
7878
+ }
7879
+
7880
+ @keyframes picture-turn {
7881
+ to {
7882
+ rotate: 1turn;
7883
+ }
7884
+ }
7885
+ }
7641
7886
  /* Settings. */
7642
7887
  @layer pages {
7643
7888
  /* The Settings section (D-341): the player's settings of the campaign in groups, each with what it is and its values, the chosen one in gold and what it
@@ -7665,7 +7910,7 @@
7665
7910
  padding: 14px 16px 6px;
7666
7911
  border: 1px solid var(--card-edge);
7667
7912
  border-radius: var(--radius-l);
7668
- background: var(--card-ornament-layer), var(--panel);
7913
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
7669
7914
  box-shadow: var(--lift), var(--raise);
7670
7915
  }
7671
7916
 
@@ -7701,7 +7946,16 @@
7701
7946
  }
7702
7947
  }
7703
7948
 
7949
+ .settings-group-note {
7950
+ margin: 4px 0 8px;
7951
+ padding: 8px 12px;
7952
+ border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--rule));
7953
+ border-radius: var(--radius-l);
7954
+ background: color-mix(in srgb, var(--accent) 10%, var(--panel));
7955
+ }
7956
+
7704
7957
  .settings-group h3 + .setting,
7958
+ .settings-group .settings-group-note + .setting,
7705
7959
  .settings-group .setting-about + .setting {
7706
7960
  border-top: 0;
7707
7961
  }
@@ -8228,7 +8482,7 @@
8228
8482
  overflow: hidden;
8229
8483
  border: 1px solid var(--card-edge);
8230
8484
  border-radius: var(--radius-l);
8231
- background: var(--card-ornament-layer), var(--panel);
8485
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
8232
8486
  box-shadow: var(--lift), var(--raise);
8233
8487
  }
8234
8488
 
@@ -8563,7 +8817,7 @@
8563
8817
  padding: 14px 16px;
8564
8818
  border: 1px solid var(--card-edge);
8565
8819
  border-radius: var(--radius-l);
8566
- background: var(--card-ornament-layer), var(--panel);
8820
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
8567
8821
  box-shadow: var(--lift), var(--raise);
8568
8822
  }
8569
8823
 
@@ -8684,13 +8938,19 @@
8684
8938
  margin-inline-start: auto;
8685
8939
  }
8686
8940
 
8941
+ /* Why the cover's picture was refused floats over its control, as the cover clips what is under it. */
8942
+ .quest-cover > .picture-give .picture-problem {
8943
+ inset-block: auto calc(100% + 6px);
8944
+ }
8945
+
8687
8946
  .quest-cover .quest-name {
8688
8947
  position: relative;
8689
8948
  z-index: 2;
8690
8949
  display: -webkit-box;
8691
8950
  grid-row: 3;
8692
8951
  margin: 0 0 12px;
8693
- padding: 0 16px;
8952
+ padding-block: 0;
8953
+ padding-inline: 16px 56px;
8694
8954
  overflow: hidden;
8695
8955
  color: var(--on-veil);
8696
8956
  font-size: 1.3rem;
@@ -9006,7 +9266,7 @@
9006
9266
  padding: 12px 14px 8px;
9007
9267
  border: 1px solid var(--card-edge);
9008
9268
  border-radius: var(--radius-l);
9009
- background: var(--card-ornament-layer), var(--panel);
9269
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
9010
9270
  box-shadow: var(--lift), var(--raise);
9011
9271
  }
9012
9272
 
@@ -9364,7 +9624,7 @@
9364
9624
  grid-template-columns: 168px minmax(0, 1fr);
9365
9625
  border: 1px solid var(--card-edge);
9366
9626
  border-radius: var(--radius-l);
9367
- background: var(--card-ornament-layer), var(--panel);
9627
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
9368
9628
  box-shadow: var(--lift);
9369
9629
  }
9370
9630
 
@@ -9736,6 +9996,18 @@
9736
9996
  line-height: 0.82;
9737
9997
  }
9738
9998
 
9999
+ /* Where the browser sets a capital by the lines it drops, three of them: its top on the first line's capitals, its foot on the third's baseline. */
10000
+ @supports (initial-letter: 3) {
10001
+ .book-text p:first-child:not(:lang(ar), :lang(hi), :lang(ja), :lang(zh), :lang(ko))::first-letter {
10002
+ float: none;
10003
+ margin-inline-end: 0.22em;
10004
+ padding: 0;
10005
+ font-size: 1em;
10006
+ line-height: inherit;
10007
+ initial-letter: 3;
10008
+ }
10009
+ }
10010
+
9739
10011
  .book-text .book-break {
9740
10012
  margin: 0.9rem 0;
9741
10013
  color: var(--doc-rule);
@@ -9909,7 +10181,7 @@
9909
10181
  margin-bottom: var(--gap);
9910
10182
  border: 1px solid var(--card-edge);
9911
10183
  border-radius: var(--radius-l);
9912
- background: var(--card-ornament-layer), linear-gradient(180deg, var(--panel-2), var(--panel));
10184
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), linear-gradient(180deg, var(--panel-2), var(--panel));
9913
10185
  box-shadow: var(--lift), var(--raise);
9914
10186
  }
9915
10187
 
@@ -11415,7 +11687,7 @@
11415
11687
  display: contents;
11416
11688
  }
11417
11689
 
11418
- .place-band.compact .place-disc {
11690
+ .place-band.compact .place-disc-spot {
11419
11691
  grid-row: 1 / span 2;
11420
11692
  }
11421
11693
 
@@ -11449,7 +11721,7 @@
11449
11721
  border: 1px solid var(--card-edge);
11450
11722
  border-inline-start: 4px solid var(--accent);
11451
11723
  border-radius: var(--radius-l);
11452
- background: var(--card-ornament-layer), var(--panel);
11724
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
11453
11725
  box-shadow: var(--lift), var(--raise);
11454
11726
  }
11455
11727
 
@@ -11877,7 +12149,7 @@
11877
12149
  min-width: 0;
11878
12150
  border: 1px solid var(--card-edge);
11879
12151
  border-radius: var(--radius-l);
11880
- background: var(--card-ornament-layer), var(--panel);
12152
+ background: var(--card-ornament-layer), var(--card-texture-layer, none), var(--panel);
11881
12153
  box-shadow: var(--lift), var(--raise);
11882
12154
  }
11883
12155
 
@@ -12287,7 +12559,8 @@
12287
12559
  .turn-notice-go {
12288
12560
  margin-inline-start: auto;
12289
12561
  padding: 4px 12px;
12290
- border-radius: var(--radius-m);
12562
+ border-radius: var(--button-radius, var(--radius-m));
12563
+ corner-shape: var(--button-corner, round);
12291
12564
  background: color-mix(in srgb, var(--on-gold) 12%, transparent);
12292
12565
  }
12293
12566
 
@@ -12425,9 +12698,11 @@
12425
12698
  overflow: hidden;
12426
12699
  }
12427
12700
 
12701
+ /* 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
12702
+ the regions' inks are copied in themes/theme.ts (paperInks), which measures them on a theme's paper: change them there too. */
12428
12703
  .map-card {
12429
- --m-fog: #dccaa2;
12430
- --m-halo: #f1e6cc;
12704
+ --m-fog: var(--map-fog, #dccaa2);
12705
+ --m-halo: var(--map-paper, #f1e6cc);
12431
12706
  --m-river: #3a6d96;
12432
12707
  --m-trail: #b2361f;
12433
12708
  --m-region-ink: #5a3f4f;
@@ -13259,9 +13534,10 @@
13259
13534
  /* The paper's colours, fixed: the map is a sheet, not a screen. */
13260
13535
  /* 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. */
13261
13536
  .lm {
13262
- --l-paper: #f1e6cc;
13263
- --l-floor: #f6ecd6;
13264
- --l-grid: #cdb98f;
13537
+ /* The game's paper of the maps, its floor and grid drawn of it (D-528), when it gives one. */
13538
+ --l-paper: var(--map-paper, #f1e6cc);
13539
+ --l-floor: var(--map-floor, #f6ecd6);
13540
+ --l-grid: var(--map-grid, #cdb98f);
13265
13541
  --l-ink: #3f2f1f;
13266
13542
  --l-wood: #dcb47c;
13267
13543
  --l-wood-dark: #bb8a52;
@@ -13887,7 +14163,8 @@
13887
14163
  flex: 1;
13888
14164
  min-height: 44px;
13889
14165
  border: 0;
13890
- border-radius: var(--radius-m);
14166
+ border-radius: var(--button-radius, var(--radius-m));
14167
+ corner-shape: var(--button-corner, round);
13891
14168
  background: var(--gold);
13892
14169
  color: var(--on-gold);
13893
14170
  font-weight: 700;
@@ -14176,7 +14453,8 @@
14176
14453
  min-height: 44px;
14177
14454
  padding: 0 16px;
14178
14455
  border: 1px solid var(--rule);
14179
- border-radius: var(--radius-m);
14456
+ border-radius: var(--button-radius, var(--radius-m));
14457
+ corner-shape: var(--button-corner, round);
14180
14458
  background: none;
14181
14459
  }
14182
14460
 
@@ -16055,3 +16333,29 @@
16055
16333
  }
16056
16334
  }
16057
16335
  }
16336
+
16337
+ /* 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
16338
+ 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. */
16339
+ @property --guard-accent {
16340
+ syntax: "<color>";
16341
+ inherits: true;
16342
+ initial-value: #254b83;
16343
+ }
16344
+
16345
+ @property --guard-ink {
16346
+ syntax: "<color>";
16347
+ inherits: true;
16348
+ initial-value: #182c4c;
16349
+ }
16350
+
16351
+ @property --guard-paper {
16352
+ syntax: "<color>";
16353
+ inherits: true;
16354
+ initial-value: #f3ede2;
16355
+ }
16356
+
16357
+ @property --guard-gold {
16358
+ syntax: "<color>";
16359
+ inherits: true;
16360
+ initial-value: #f5c63e;
16361
+ }