rpg-engine 0.19.1 → 0.21.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 (229) hide show
  1. package/README.md +9 -6
  2. package/dist/adventures/index.d.ts +1 -1
  3. package/dist/adventures/index.js +1 -1
  4. package/dist/adventures/source.d.ts +3 -0
  5. package/dist/adventures/source.js +11 -49
  6. package/dist/campaign/create-campaign.d.ts +1 -1
  7. package/dist/campaign/create-campaign.js +4 -3
  8. package/dist/campaign/find-campaign.d.ts +6 -0
  9. package/dist/campaign/find-campaign.js +7 -1
  10. package/dist/campaign/host-files.js +22 -0
  11. package/dist/campaign/index.d.ts +2 -2
  12. package/dist/campaign/index.js +2 -2
  13. package/dist/campaign/last-choices.d.ts +10 -4
  14. package/dist/campaign/last-choices.js +43 -17
  15. package/dist/campaign/settings.d.ts +10 -2
  16. package/dist/campaign/settings.js +32 -8
  17. package/dist/chats/chat.d.ts +33 -0
  18. package/dist/chats/chat.js +50 -0
  19. package/dist/chats/claude-code.d.ts +5 -0
  20. package/dist/chats/claude-code.js +39 -0
  21. package/dist/chats/codex.d.ts +3 -0
  22. package/dist/chats/codex.js +42 -0
  23. package/dist/chats/index.d.ts +5 -0
  24. package/dist/chats/index.js +12 -0
  25. package/dist/chats/keep.d.ts +10 -0
  26. package/dist/chats/keep.js +50 -0
  27. package/dist/chats/read.d.ts +8 -0
  28. package/dist/chats/read.js +46 -0
  29. package/dist/cli/cli.js +6 -1
  30. package/dist/cli/command-line.js +3 -2
  31. package/dist/commands/book.d.ts +36 -0
  32. package/dist/commands/book.js +129 -0
  33. package/dist/commands/chats.d.ts +38 -0
  34. package/dist/commands/chats.js +93 -0
  35. package/dist/commands/config/config.js +2 -2
  36. package/dist/commands/config/dashboard.d.ts +8 -1
  37. package/dist/commands/config/dashboard.js +70 -16
  38. package/dist/commands/config/words.d.ts +1 -1
  39. package/dist/commands/config/words.js +18 -5
  40. package/dist/commands/find.js +1 -1
  41. package/dist/commands/image.d.ts +14 -0
  42. package/dist/commands/image.js +100 -20
  43. package/dist/commands/index.js +4 -0
  44. package/dist/commands/init.js +3 -3
  45. package/dist/commands/package/data.d.ts +35 -0
  46. package/dist/commands/package/data.js +117 -0
  47. package/dist/commands/package/here.d.ts +7 -2
  48. package/dist/commands/package/here.js +23 -11
  49. package/dist/commands/package/install.js +14 -15
  50. package/dist/commands/package/language.d.ts +15 -0
  51. package/dist/commands/package/language.js +109 -0
  52. package/dist/commands/package/package.js +20 -10
  53. package/dist/commands/package/result.d.ts +19 -0
  54. package/dist/commands/package/theme.d.ts +13 -0
  55. package/dist/commands/package/theme.js +66 -0
  56. package/dist/commands/package/uninstall.d.ts +4 -1
  57. package/dist/commands/package/uninstall.js +29 -9
  58. package/dist/commands/scene/close.d.ts +2 -0
  59. package/dist/commands/scene/close.js +20 -2
  60. package/dist/commands/scene/result.d.ts +2 -0
  61. package/dist/commands/scene/scene.d.ts +2 -0
  62. package/dist/commands/shared/books/adventures.d.ts +0 -4
  63. package/dist/commands/shared/books/adventures.js +2 -31
  64. package/dist/commands/shared/books/words.js +3 -2
  65. package/dist/commands/shared/campaign/book.d.ts +42 -0
  66. package/dist/commands/shared/campaign/book.js +118 -0
  67. package/dist/commands/shared/campaign/chats.d.ts +11 -0
  68. package/dist/commands/shared/campaign/chats.js +29 -0
  69. package/dist/commands/shared/campaign/images.js +7 -1
  70. package/dist/commands/shared/campaign/mode.js +3 -1
  71. package/dist/commands/shared/campaign/saves.js +13 -5
  72. package/dist/commands/shared/campaign/world.js +2 -1
  73. package/dist/commands/shared/packages/catalog.d.ts +3 -3
  74. package/dist/commands/shared/packages/catalog.js +98 -42
  75. package/dist/commands/shared/packages/unpacked.d.ts +50 -0
  76. package/dist/commands/shared/packages/unpacked.js +146 -0
  77. package/dist/commands/shared/sheet/sheet.d.ts +7 -0
  78. package/dist/commands/shared/sheet/sheet.js +27 -0
  79. package/dist/commands/status.d.ts +1 -0
  80. package/dist/commands/status.js +4 -0
  81. package/dist/commands/view/page.js +4 -3
  82. package/dist/commands/view/result.d.ts +2 -0
  83. package/dist/commands/view/view.d.ts +1 -0
  84. package/dist/commands/view/view.js +4 -0
  85. package/dist/core/archive.d.ts +13 -0
  86. package/dist/core/archive.js +76 -0
  87. package/dist/core/consents.d.ts +2 -2
  88. package/dist/core/consents.js +3 -3
  89. package/dist/core/context.d.ts +40 -2
  90. package/dist/core/context.js +1 -0
  91. package/dist/core/download.js +1 -1
  92. package/dist/core/store.d.ts +5 -1
  93. package/dist/core/store.js +15 -2
  94. package/dist/dashboard/acts/names.js +10 -5
  95. package/dist/dashboard/acts/sending.js +5 -2
  96. package/dist/dashboard/acts/sheet.js +66 -15
  97. package/dist/dashboard/api.js +27 -4
  98. package/dist/dashboard/app.js +9 -4
  99. package/dist/dashboard/guide/ar.md +16 -15
  100. package/dist/dashboard/guide/cs.md +15 -14
  101. package/dist/dashboard/guide/da.md +17 -16
  102. package/dist/dashboard/guide/de.md +17 -16
  103. package/dist/dashboard/guide/el.md +17 -16
  104. package/dist/dashboard/guide/en.md +14 -13
  105. package/dist/dashboard/guide/es.md +15 -14
  106. package/dist/dashboard/guide/fi.md +15 -14
  107. package/dist/dashboard/guide/fr.md +20 -19
  108. package/dist/dashboard/guide/he.md +15 -14
  109. package/dist/dashboard/guide/hi.md +15 -14
  110. package/dist/dashboard/guide/hu.md +19 -18
  111. package/dist/dashboard/guide/is.md +15 -14
  112. package/dist/dashboard/guide/it.md +18 -17
  113. package/dist/dashboard/guide/ja.md +15 -14
  114. package/dist/dashboard/guide/ko.md +16 -15
  115. package/dist/dashboard/guide/nb.md +17 -16
  116. package/dist/dashboard/guide/nl.md +15 -14
  117. package/dist/dashboard/guide/pl.md +16 -15
  118. package/dist/dashboard/guide/pt.md +16 -15
  119. package/dist/dashboard/guide/ro.md +15 -14
  120. package/dist/dashboard/guide/ru.md +16 -15
  121. package/dist/dashboard/guide/sv.md +15 -14
  122. package/dist/dashboard/guide/tr.md +18 -17
  123. package/dist/dashboard/guide/uk.md +19 -18
  124. package/dist/dashboard/guide/zh.md +16 -15
  125. package/dist/dashboard/i18n/ar.json +63 -9
  126. package/dist/dashboard/i18n/cs.json +63 -9
  127. package/dist/dashboard/i18n/da.json +63 -9
  128. package/dist/dashboard/i18n/de.json +63 -9
  129. package/dist/dashboard/i18n/el.json +63 -9
  130. package/dist/dashboard/i18n/es.json +63 -9
  131. package/dist/dashboard/i18n/fi.json +63 -9
  132. package/dist/dashboard/i18n/fr.json +63 -9
  133. package/dist/dashboard/i18n/he.json +63 -9
  134. package/dist/dashboard/i18n/hi.json +63 -9
  135. package/dist/dashboard/i18n/hu.json +63 -9
  136. package/dist/dashboard/i18n/is.json +63 -9
  137. package/dist/dashboard/i18n/it.json +64 -10
  138. package/dist/dashboard/i18n/ja.json +63 -9
  139. package/dist/dashboard/i18n/ko.json +63 -9
  140. package/dist/dashboard/i18n/nb.json +63 -9
  141. package/dist/dashboard/i18n/nl.json +63 -9
  142. package/dist/dashboard/i18n/pl.json +63 -9
  143. package/dist/dashboard/i18n/pt.json +63 -9
  144. package/dist/dashboard/i18n/ro.json +63 -9
  145. package/dist/dashboard/i18n/ru.json +63 -9
  146. package/dist/dashboard/i18n/sv.json +63 -9
  147. package/dist/dashboard/i18n/tr.json +63 -9
  148. package/dist/dashboard/i18n/uk.json +63 -9
  149. package/dist/dashboard/i18n/zh.json +63 -9
  150. package/dist/dashboard/journal/book.js +107 -0
  151. package/dist/dashboard/journal/journal.js +16 -12
  152. package/dist/dashboard/kit.js +1 -1
  153. package/dist/dashboard/packages/catalog.js +31 -14
  154. package/dist/dashboard/packages/engine.js +46 -2
  155. package/dist/dashboard/packages/installed.js +13 -0
  156. package/dist/dashboard/packages/outcomes.js +21 -0
  157. package/dist/dashboard/packages/packages.js +41 -18
  158. package/dist/dashboard/packages/rows.js +3 -1
  159. package/dist/dashboard/parts/icons.js +3 -0
  160. package/dist/dashboard/parts/labels.js +6 -0
  161. package/dist/dashboard/parts/picture.js +89 -0
  162. package/dist/dashboard/parts/refusals.js +8 -1
  163. package/dist/dashboard/parts/widgets.js +3 -2
  164. package/dist/dashboard/place/view.js +1 -1
  165. package/dist/dashboard/play/scene.js +8 -5
  166. package/dist/dashboard/settings/settings.js +32 -16
  167. package/dist/dashboard/settings/setup.js +5 -3
  168. package/dist/dashboard/sheet/party.js +5 -2
  169. package/dist/dashboard/sheet/sheet.js +10 -6
  170. package/dist/dashboard/shell/notices.js +2 -2
  171. package/dist/dashboard/shell/system-style.js +45 -12
  172. package/dist/dashboard/shell/tooltip.js +223 -0
  173. package/dist/dashboard/style.css +775 -261
  174. package/dist/dashboard/world/calendar.js +1 -1
  175. package/dist/dashboard/world/lore.js +5 -4
  176. package/dist/dashboard/world/place-card.js +2 -1
  177. package/dist/helpers/briefs.d.ts +5 -0
  178. package/dist/helpers/briefs.js +8 -0
  179. package/dist/helpers/chosen.d.ts +8 -2
  180. package/dist/helpers/chosen.js +110 -6
  181. package/dist/helpers/codex.js +2 -1
  182. package/dist/helpers/index.d.ts +2 -2
  183. package/dist/helpers/index.js +2 -2
  184. package/dist/images/images.d.ts +2 -0
  185. package/dist/images/images.js +16 -2
  186. package/dist/images/index.d.ts +1 -1
  187. package/dist/images/index.js +1 -1
  188. package/dist/languages/index.d.ts +1 -1
  189. package/dist/languages/index.js +1 -1
  190. package/dist/languages/pack.d.ts +4 -1
  191. package/dist/languages/pack.js +16 -5
  192. package/dist/packages/engine.d.ts +7 -0
  193. package/dist/packages/engine.js +32 -1
  194. package/dist/packages/index.d.ts +1 -1
  195. package/dist/packages/index.js +1 -1
  196. package/dist/server/approver.d.ts +6 -0
  197. package/dist/server/approver.js +28 -0
  198. package/dist/server/chats.d.ts +3 -0
  199. package/dist/server/chats.js +27 -0
  200. package/dist/server/dashboard/engine.d.ts +18 -0
  201. package/dist/server/dashboard/engine.js +31 -0
  202. package/dist/server/dashboard/files.d.ts +8 -1
  203. package/dist/server/dashboard/files.js +30 -10
  204. package/dist/server/dashboard/index.d.ts +3 -0
  205. package/dist/server/dashboard/index.js +10 -1
  206. package/dist/server/dashboard/news.js +36 -5
  207. package/dist/server/dashboard/pictures.d.ts +7 -0
  208. package/dist/server/dashboard/pictures.js +62 -0
  209. package/dist/server/dashboard/writes.d.ts +5 -3
  210. package/dist/server/dashboard/writes.js +45 -14
  211. package/dist/server/mcp.js +37 -6
  212. package/dist/server/player-acts.d.ts +7 -2
  213. package/dist/server/player-acts.js +10 -3
  214. package/dist/testing/index.js +1 -0
  215. package/dist/themes/index.d.ts +2 -1
  216. package/dist/themes/index.js +4 -2
  217. package/dist/themes/installed.d.ts +14 -0
  218. package/dist/themes/installed.js +28 -0
  219. package/dist/themes/theme.d.ts +7 -0
  220. package/dist/themes/theme.js +22 -0
  221. package/instructions/core.md +3 -3
  222. package/instructions/dashboard-guide.md +1 -0
  223. package/instructions/mentor-hints.md +1 -1
  224. package/instructions/mentor-tutorial.md +1 -1
  225. package/instructions/party.md +1 -1
  226. package/instructions/play.md +2 -2
  227. package/instructions/start.md +1 -1
  228. package/package.json +2 -2
  229. package/systems/free/instructions/outcomes-told.md +1 -1
@@ -146,7 +146,7 @@
146
146
  outline-offset: 2px !important;
147
147
  }
148
148
 
149
- /* A clip or a mask on a control would cut its focus ring and its tooltip (D-528). */
149
+ /* A clip or a mask on a control would cut its focus ring (D-528). */
150
150
  :is(button, a, summary, input, select, textarea, label, [role="tab"], [role="button"], [role="radio"], [tabindex], [data-tip]) {
151
151
  clip-path: none !important;
152
152
  mask: none !important;
@@ -160,19 +160,6 @@
160
160
  outline-offset: -2px !important;
161
161
  }
162
162
 
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;
168
- }
169
-
170
- @media (hover: hover) {
171
- .page-tabs > [role="tab"]:last-child .tab-mark[data-tip]:hover::before {
172
- translate: 0 0 !important;
173
- }
174
- }
175
-
176
163
  .quest-cover-top :focus-visible {
177
164
  outline-color: var(--on-veil) !important;
178
165
  }
@@ -200,65 +187,10 @@
200
187
  outline-offset: 4px !important;
201
188
  }
202
189
 
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
190
  .row:focus-visible {
225
191
  outline-offset: -2px !important;
226
192
  }
227
193
 
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
194
  .asked.folded .asked-fold:focus-visible {
263
195
  outline: none !important;
264
196
  }
@@ -293,79 +225,62 @@
293
225
  outline-offset: 1px !important;
294
226
  }
295
227
 
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;
228
+ /* 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
+ 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 {
232
+ position: fixed !important;
233
+ inset: var(--tip-top, 0) auto auto var(--tip-left, 0) !important;
234
+ box-sizing: border-box !important;
235
+ width: max-content !important;
236
+ max-width: min(20rem, calc(100vw - 16px)) !important;
237
+ height: auto !important;
238
+ margin: 0 !important;
304
239
  padding: 5px 8px !important;
240
+ border: 0 !important;
305
241
  border-radius: var(--radius-xs) !important;
242
+ overflow: visible !important;
306
243
  background: var(--ink) !important;
307
244
  color: var(--paper) !important;
308
245
  font: 400 0.8rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif !important;
309
246
  letter-spacing: 0 !important;
247
+ text-align: start !important;
310
248
  text-transform: none !important;
311
- white-space: pre !important;
312
- opacity: 0 !important;
313
- translate: -50% 4px !important;
249
+ white-space: pre-line !important;
250
+ overflow-wrap: break-word !important;
314
251
  pointer-events: none !important;
315
- transition: opacity var(--quick) linear, translate var(--quick) var(--ease) !important;
316
- }
317
-
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;
323
- }
324
-
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;
252
+ opacity: 1 !important;
253
+ transition: opacity var(--quick) linear !important;
330
254
  }
331
255
 
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;
256
+ @starting-style {
257
+ .page-tip.shown {
258
+ opacity: 0 !important;
341
259
  }
342
260
  }
343
261
 
344
- [data-tip]:focus-visible::before {
345
- opacity: 1 !important;
346
- translate: -50% 0 !important;
347
- }
262
+ @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;
266
+ }
348
267
 
349
- [data-tip].tip-left:focus-visible::before {
350
- translate: 0 50% !important;
351
- }
268
+ @starting-style {
269
+ .page-tip.shown[data-side="above"] {
270
+ translate: 0 4px !important;
271
+ }
352
272
 
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;
357
- }
273
+ .page-tip.shown[data-side="below"] {
274
+ translate: 0 -4px !important;
275
+ }
358
276
 
359
- [data-tip]::before {
360
- width: max-content !important;
361
- max-width: calc(100vw - 32px) !important;
362
- white-space: pre-line !important;
363
- }
364
- }
277
+ .page-tip.shown[data-side="start"] {
278
+ translate: 4px 0 !important;
279
+ }
365
280
 
366
- @media (max-width: 600px) and (hover: hover) {
367
- [data-tip]:hover::before {
368
- display: block !important;
281
+ .page-tip.shown[data-side="start"][dir="rtl"] {
282
+ translate: -4px 0 !important;
283
+ }
369
284
  }
370
285
  }
371
286
 
@@ -380,7 +295,6 @@
380
295
  outline-offset: 4px !important;
381
296
  }
382
297
 
383
- .act-verb:has(input:focus-visible),
384
298
  .act-who-one:has(input:focus-visible) {
385
299
  outline: 2px solid var(--accent) !important;
386
300
  outline-offset: 2px !important;
@@ -2050,11 +1964,6 @@
2050
1964
  height: 16px;
2051
1965
  }
2052
1966
 
2053
- /* Their tooltip over the chip, from its start toward the name, inside the party's strip, which scrolls and so cuts what leaves it. */
2054
- :is(.effect.icon-only, .effect.more) {
2055
- position: relative;
2056
- }
2057
-
2058
1967
  /* A package's small card among the values under a name (D-516): a lead's words and value on one line. */
2059
1968
  .person-box-lead {
2060
1969
  display: inline-flex;
@@ -2692,6 +2601,12 @@
2692
2601
  grid-column: auto;
2693
2602
  }
2694
2603
 
2604
+ /* The icon at the top of words that wrap, as every card's. */
2605
+ .widget-lead-icon,
2606
+ .widget-lead.figured > .ext-figure.small {
2607
+ align-self: start;
2608
+ }
2609
+
2695
2610
  .widget-lead-icon {
2696
2611
  width: 40px;
2697
2612
  height: 40px;
@@ -2827,6 +2742,32 @@
2827
2742
  .notice.away {
2828
2743
  --tone: var(--warn);
2829
2744
  }
2745
+
2746
+ /* 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. */
2747
+ .notice:has(.notice-hide) {
2748
+ padding-block: 4px;
2749
+ padding-inline-end: 4px;
2750
+ }
2751
+
2752
+ .notice-words {
2753
+ display: flex;
2754
+ flex-wrap: wrap;
2755
+ column-gap: 8px;
2756
+ }
2757
+
2758
+ .notice-link {
2759
+ color: var(--accent);
2760
+ font-weight: 650;
2761
+ }
2762
+
2763
+ .notice-hide {
2764
+ flex: none;
2765
+ margin-inline-start: auto;
2766
+ }
2767
+
2768
+ .notice-hide svg.icon {
2769
+ color: var(--muted);
2770
+ }
2830
2771
  }
2831
2772
  /* Tokens: a picture of someone as a coin under glass, with the pips of its side and state. */
2832
2773
  @layer parts {
@@ -7633,6 +7574,203 @@
7633
7574
  }
7634
7575
  }
7635
7576
  }
7577
+ /* 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
7578
+ 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. */
7579
+ @layer parts {
7580
+ .picture-give {
7581
+ position: relative;
7582
+ display: inline-flex;
7583
+ flex-wrap: wrap;
7584
+ align-items: center;
7585
+ gap: 8px;
7586
+ }
7587
+
7588
+ .picture-host {
7589
+ position: relative;
7590
+ }
7591
+
7592
+ /* A coin keeps its own box, no line's room under a picture: the control sits on its rim. */
7593
+ .picture-spot {
7594
+ position: relative;
7595
+ display: inline-flex;
7596
+ flex: none;
7597
+ }
7598
+
7599
+ /* 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. */
7600
+ :is(.picture-spot, .picture-host) > .picture-give {
7601
+ position: absolute;
7602
+ inset-block-end: 8px;
7603
+ inset-inline-end: 8px;
7604
+ z-index: 3;
7605
+ }
7606
+
7607
+ .place-shot.picture-host > .picture-give {
7608
+ inset-block: 8px auto;
7609
+ }
7610
+
7611
+ /* The button is what is hit, the plate what is seen: one size under a pointer, the plate within 44 px on touch. */
7612
+ .picture-give.icon .icon-button {
7613
+ --plate: 32px;
7614
+ width: var(--plate);
7615
+ height: var(--plate);
7616
+ border-radius: var(--radius-m);
7617
+ color: var(--on-veil);
7618
+ }
7619
+
7620
+ .picture-plate {
7621
+ display: grid;
7622
+ flex: none;
7623
+ place-items: center;
7624
+ width: var(--plate);
7625
+ height: var(--plate);
7626
+ border: 1px solid color-mix(in srgb, var(--on-veil) 22%, transparent);
7627
+ border-radius: var(--radius-m);
7628
+ background: color-mix(in srgb, var(--veil) 72%, transparent);
7629
+ backdrop-filter: blur(3px);
7630
+ }
7631
+
7632
+ .picture-plate svg.icon {
7633
+ width: 18px;
7634
+ height: 18px;
7635
+ }
7636
+
7637
+ /* 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
7638
+ apart from the picture. */
7639
+ .picture-spot > .picture-give {
7640
+ inset-block: -3px auto;
7641
+ inset-inline-end: -3px;
7642
+ }
7643
+
7644
+ :is(.picture-spot, li.picture-host) > .picture-give .icon-button {
7645
+ --plate: 24px;
7646
+ border-radius: var(--radius-s);
7647
+ }
7648
+
7649
+ :is(.picture-spot, li.picture-host) > .picture-give .picture-plate {
7650
+ border: 2px solid var(--panel);
7651
+ border-radius: var(--radius-s);
7652
+ }
7653
+
7654
+ :is(.picture-spot, li.picture-host) > .picture-give .picture-plate svg.icon {
7655
+ width: 13px;
7656
+ height: 13px;
7657
+ }
7658
+
7659
+ .picture-spot:has(.token.large) > .picture-give .icon-button {
7660
+ --plate: 30px;
7661
+ }
7662
+
7663
+ .picture-spot:has(.token.large) > .picture-give .picture-plate svg.icon {
7664
+ width: 17px;
7665
+ height: 17px;
7666
+ }
7667
+
7668
+ /* 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. */
7669
+ li.picture-host > .picture-give {
7670
+ inset-block: calc(50% - 25px) auto;
7671
+ inset-inline: 33px auto;
7672
+ }
7673
+
7674
+ /* Under a pointer: seen over the picture or the row under it, with the keyboard, while it sends and after a refusal. */
7675
+ @media (hover: hover) {
7676
+ :is(.picture-spot, .picture-host) > .picture-give:not(.sending, .refused, :has(:focus-visible)) {
7677
+ opacity: 0;
7678
+ }
7679
+
7680
+ :is(.picture-spot, .picture-host):hover > .picture-give {
7681
+ opacity: 1;
7682
+ }
7683
+ }
7684
+
7685
+ /* 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. */
7686
+ @media (pointer: coarse) {
7687
+ .picture-give.icon .icon-button {
7688
+ width: 44px;
7689
+ height: 44px;
7690
+ margin: calc((var(--plate) - 44px) / 2);
7691
+ }
7692
+ }
7693
+
7694
+ @media (hover: none) {
7695
+ li.picture-host > .picture-give {
7696
+ display: none;
7697
+ }
7698
+ }
7699
+
7700
+ /* 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. */
7701
+ :is(.picture-spot, .picture-host):has(> .picture-give.sending) :is(img, .initials) {
7702
+ filter: brightness(0.55) saturate(0.6);
7703
+ }
7704
+
7705
+ .picture-wait {
7706
+ width: 16px;
7707
+ height: 16px;
7708
+ border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
7709
+ border-block-start-color: var(--accent);
7710
+ border-radius: 50%;
7711
+ }
7712
+
7713
+ .picture-plate .picture-wait {
7714
+ border-block-start-color: var(--gold);
7715
+ }
7716
+
7717
+ .picture-spot .picture-plate .picture-wait {
7718
+ width: 12px;
7719
+ height: 12px;
7720
+ }
7721
+
7722
+ /* Refused: the plate ringed in the colour of what went wrong, why under it, until the next try. */
7723
+ .picture-give.refused .picture-plate {
7724
+ box-shadow: 0 0 0 2px var(--low);
7725
+ }
7726
+
7727
+ .picture-problem {
7728
+ color: var(--low);
7729
+ font-size: 0.85rem;
7730
+ font-weight: 600;
7731
+ }
7732
+
7733
+ .picture-give.icon .picture-problem {
7734
+ position: absolute;
7735
+ inset-block-start: calc(100% + 6px);
7736
+ inset-inline-end: 0;
7737
+ z-index: 5;
7738
+ width: max-content;
7739
+ max-width: min(280px, 80vw);
7740
+ padding: 8px 10px;
7741
+ border: 1px solid color-mix(in srgb, var(--low) 45%, var(--rule));
7742
+ border-radius: var(--radius-m);
7743
+ background: var(--panel);
7744
+ box-shadow: var(--overlay);
7745
+ line-height: 1.35;
7746
+ white-space: normal;
7747
+ }
7748
+
7749
+ /* From a coin or a row's thumb the words run into the page, at the start of the control. */
7750
+ :is(.picture-spot, li.picture-host) > .picture-give .picture-problem {
7751
+ inset-inline: 0 auto;
7752
+ }
7753
+
7754
+ @media (prefers-reduced-motion: no-preference) {
7755
+ :is(.picture-spot, .picture-host) > .picture-give {
7756
+ transition: opacity var(--quick) var(--ease);
7757
+ }
7758
+
7759
+ :is(.picture-spot, .picture-host) :is(img, .initials) {
7760
+ transition: filter var(--short) var(--ease);
7761
+ }
7762
+
7763
+ .picture-wait {
7764
+ animation: picture-turn 0.8s linear infinite;
7765
+ }
7766
+ }
7767
+
7768
+ @keyframes picture-turn {
7769
+ to {
7770
+ rotate: 1turn;
7771
+ }
7772
+ }
7773
+ }
7636
7774
  /* Settings. */
7637
7775
  @layer pages {
7638
7776
  /* 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
@@ -8679,13 +8817,19 @@
8679
8817
  margin-inline-start: auto;
8680
8818
  }
8681
8819
 
8820
+ /* Why the cover's picture was refused floats over its control, as the cover clips what is under it. */
8821
+ .quest-cover > .picture-give .picture-problem {
8822
+ inset-block: auto calc(100% + 6px);
8823
+ }
8824
+
8682
8825
  .quest-cover .quest-name {
8683
8826
  position: relative;
8684
8827
  z-index: 2;
8685
8828
  display: -webkit-box;
8686
8829
  grid-row: 3;
8687
8830
  margin: 0 0 12px;
8688
- padding: 0 16px;
8831
+ padding-block: 0;
8832
+ padding-inline: 16px 56px;
8689
8833
  overflow: hidden;
8690
8834
  color: var(--on-veil);
8691
8835
  font-size: 1.3rem;
@@ -9553,50 +9697,324 @@
9553
9697
  [dir="rtl"] .quest-folded[open] summary::before {
9554
9698
  rotate: -90deg;
9555
9699
  }
9556
- }
9557
- /* The sheet of one of the party: the band, the columns of cards, the equipment and the money, the character's story. */
9558
- @layer pages {
9559
- /* The player character's story, written by the player in Description (D-373). */
9560
- .story-box {
9561
- display: flex;
9562
- flex-wrap: wrap;
9563
- align-items: center;
9564
- gap: 8px 12px;
9565
- margin-top: 10px;
9566
- }
9567
9700
 
9568
- .story-box.editing {
9701
+ /* The story told as a book (T-227): the chapters listed beside a sheet of paper, one chapter on it, set as a book's page, the last with its bookmark. */
9702
+ .book {
9569
9703
  display: grid;
9704
+ grid-template-areas:
9705
+ "index page"
9706
+ ". export";
9707
+ grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
9708
+ gap: 1rem 1.5rem;
9709
+ align-items: start;
9570
9710
  }
9571
9711
 
9572
- .story-box svg.icon {
9573
- width: 18px;
9574
- height: 18px;
9575
- }
9576
-
9577
- .story-sent {
9578
- display: flex;
9579
- flex-basis: 100%;
9580
- align-items: center;
9581
- gap: 6px;
9582
- margin: 0;
9583
- color: var(--accent);
9584
- font-size: 0.85rem;
9585
- font-weight: 600;
9712
+ .book.index-closed {
9713
+ grid-template-columns: auto minmax(0, 1fr);
9586
9714
  }
9587
9715
 
9588
- .story-sent svg.icon {
9589
- width: 16px;
9590
- height: 16px;
9716
+ /* Under the top and the master's question while the page scrolls, a long list scrolling by itself; its room around keeps the rows' focus ring. */
9717
+ .book-index {
9718
+ position: sticky;
9719
+ top: calc(var(--gap) + var(--top-space) + var(--asked-space, 0px));
9720
+ max-height: calc(100vh - var(--top-space) - var(--asked-space, 0px) - 2 * var(--gap));
9721
+ margin: -4px;
9722
+ padding: 4px;
9723
+ overflow-y: auto;
9724
+ grid-area: index;
9591
9725
  }
9592
9726
 
9593
- .story-box label {
9594
- color: var(--muted);
9595
- font-size: 0.85rem;
9727
+ .book-index ol {
9728
+ display: grid;
9729
+ gap: 2px;
9730
+ margin: 6px 0 0;
9731
+ padding: 0;
9732
+ list-style: none;
9596
9733
  }
9597
9734
 
9598
- .story-box textarea {
9599
- width: 100%;
9735
+ .book-index li a {
9736
+ position: relative;
9737
+ display: grid;
9738
+ gap: 2px;
9739
+ padding-block: 8px;
9740
+ padding-inline: 10px 28px;
9741
+ border-radius: var(--radius-m);
9742
+ color: var(--ink);
9743
+ text-decoration: none;
9744
+ }
9745
+
9746
+ /* The one open: its row lit, a bar of the accent at its start, as a list's reader. */
9747
+ .book-index li a[aria-current="page"] {
9748
+ background: color-mix(in srgb, var(--accent) 12%, transparent);
9749
+ }
9750
+
9751
+ .book-index li a[aria-current="page"]::before {
9752
+ content: "";
9753
+ position: absolute;
9754
+ inset-block: 8px;
9755
+ inset-inline-start: 0;
9756
+ width: 3px;
9757
+ border-radius: var(--radius-xs);
9758
+ background: var(--accent);
9759
+ }
9760
+
9761
+ .book-index-title {
9762
+ font-family: var(--serif);
9763
+ font-size: 1rem;
9764
+ line-height: 1.3;
9765
+ }
9766
+
9767
+ .book-index-number {
9768
+ margin-inline-end: 6px;
9769
+ color: var(--muted);
9770
+ font-variant-numeric: oldstyle-nums;
9771
+ }
9772
+
9773
+ .book-index-line {
9774
+ color: var(--muted);
9775
+ font-family: var(--serif);
9776
+ font-size: 0.8rem;
9777
+ font-style: italic;
9778
+ line-height: 1.35;
9779
+ }
9780
+
9781
+ /* The bookmark: a ribbon on the last chapter, in the list and over its page. */
9782
+ .book-mark,
9783
+ .book-page.marked::before {
9784
+ content: "";
9785
+ position: absolute;
9786
+ background: var(--doc-seal);
9787
+ clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
9788
+ }
9789
+
9790
+ .book-mark {
9791
+ inset-block-start: 0;
9792
+ inset-inline-end: 9px;
9793
+ width: 9px;
9794
+ height: 18px;
9795
+ }
9796
+
9797
+ .book-page {
9798
+ position: relative;
9799
+ grid-area: page;
9800
+ padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 6vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
9801
+ border-radius: var(--radius-s);
9802
+ background: var(--doc-paper);
9803
+ box-shadow: 0 1px 2px color-mix(in srgb, var(--doc-ink) 20%, transparent), 0 10px 24px -14px color-mix(in srgb, var(--doc-ink) 60%, transparent);
9804
+ color: var(--doc-ink);
9805
+ scroll-margin-top: calc(var(--top-space) + var(--asked-space, 0px) + var(--gap));
9806
+ }
9807
+
9808
+ .book-page.marked::before {
9809
+ inset-block-start: -4px;
9810
+ inset-inline-end: 2.5rem;
9811
+ width: 16px;
9812
+ height: 52px;
9813
+ }
9814
+
9815
+ .book-head {
9816
+ margin-bottom: 1.75rem;
9817
+ text-align: center;
9818
+ }
9819
+
9820
+ .book-number {
9821
+ margin: 0;
9822
+ color: var(--doc-note);
9823
+ font-family: var(--serif);
9824
+ font-size: 0.8rem;
9825
+ letter-spacing: 0.16em;
9826
+ text-transform: uppercase;
9827
+ }
9828
+
9829
+ .book-head h3 {
9830
+ margin: 6px 0 0;
9831
+ color: var(--doc-ink);
9832
+ font-family: var(--serif);
9833
+ font-size: clamp(1.4rem, 3vw, 1.85rem);
9834
+ font-weight: 400;
9835
+ line-height: 1.25;
9836
+ text-wrap: balance;
9837
+ }
9838
+
9839
+ .book-ornament {
9840
+ display: block;
9841
+ margin-top: 8px;
9842
+ color: var(--doc-rule);
9843
+ font-size: 1.125rem;
9844
+ }
9845
+
9846
+ .book-text {
9847
+ max-width: 36rem;
9848
+ margin-inline: auto;
9849
+ font-family: var(--serif);
9850
+ font-size: 1.125rem;
9851
+ line-height: 1.65;
9852
+ }
9853
+
9854
+ .book-text p {
9855
+ margin: 0;
9856
+ overflow-wrap: break-word;
9857
+ text-align: justify;
9858
+ text-indent: 1.5em;
9859
+ text-wrap: pretty;
9860
+ hyphens: auto;
9861
+ }
9862
+
9863
+ .book-text p:first-child,
9864
+ .book-text .book-break + p {
9865
+ text-indent: 0;
9866
+ }
9867
+
9868
+ /* A script whose letters join (Arabic) or hang from one line (Devanagari) keeps its first word whole: no capital standing apart. */
9869
+ .book-text p:first-child:not(:lang(ar), :lang(hi), :lang(ja), :lang(zh), :lang(ko))::first-letter {
9870
+ float: inline-start;
9871
+ padding-block-start: 0.06em;
9872
+ padding-inline-end: 0.08em;
9873
+ color: var(--doc-link);
9874
+ font-size: 3.3em;
9875
+ line-height: 0.82;
9876
+ }
9877
+
9878
+ /* 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. */
9879
+ @supports (initial-letter: 3) {
9880
+ .book-text p:first-child:not(:lang(ar), :lang(hi), :lang(ja), :lang(zh), :lang(ko))::first-letter {
9881
+ float: none;
9882
+ margin-inline-end: 0.22em;
9883
+ padding: 0;
9884
+ font-size: 1em;
9885
+ line-height: inherit;
9886
+ initial-letter: 3;
9887
+ }
9888
+ }
9889
+
9890
+ .book-text .book-break {
9891
+ margin: 0.9rem 0;
9892
+ color: var(--doc-rule);
9893
+ text-align: center;
9894
+ }
9895
+
9896
+ /* The page's foot: the chapter before at the start, the folio in the middle, the one after at the end. */
9897
+ .book-turn {
9898
+ display: grid;
9899
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
9900
+ align-items: baseline;
9901
+ gap: 1rem;
9902
+ max-width: 36rem;
9903
+ margin: 2.25rem auto 0;
9904
+ padding-top: 1rem;
9905
+ border-top: 1px solid color-mix(in srgb, var(--doc-rule) 50%, transparent);
9906
+ font-size: 0.85rem;
9907
+ }
9908
+
9909
+ .book-turn a {
9910
+ justify-self: start;
9911
+ padding-block: 4px;
9912
+ border-radius: var(--radius-xs);
9913
+ color: var(--doc-link);
9914
+ text-decoration: none;
9915
+ }
9916
+
9917
+ .book-turn .book-on {
9918
+ justify-self: end;
9919
+ text-align: end;
9920
+ }
9921
+
9922
+ .book-folio {
9923
+ color: var(--doc-note);
9924
+ font-family: var(--serif);
9925
+ white-space: nowrap;
9926
+ }
9927
+
9928
+ [dir="rtl"] .book-arrow {
9929
+ display: inline-block;
9930
+ scale: -1 1;
9931
+ }
9932
+
9933
+ .book-export {
9934
+ display: flex;
9935
+ flex-wrap: wrap;
9936
+ grid-area: export;
9937
+ justify-content: flex-end;
9938
+ gap: 8px;
9939
+ }
9940
+
9941
+ .book-empty {
9942
+ max-width: 36rem;
9943
+ color: var(--muted);
9944
+ font-family: var(--serif);
9945
+ font-size: 1.0625rem;
9946
+ }
9947
+
9948
+ @media (max-width: 760px) {
9949
+ .book,
9950
+ .book.index-closed {
9951
+ grid-template-areas:
9952
+ "index"
9953
+ "page"
9954
+ "export";
9955
+ grid-template-columns: minmax(0, 1fr);
9956
+ }
9957
+
9958
+ .book-index {
9959
+ position: static;
9960
+ }
9961
+
9962
+ /* On a narrow sheet justified lines open gaps: the text keeps its left edge. */
9963
+ .book-text p {
9964
+ text-align: start;
9965
+ }
9966
+ }
9967
+
9968
+ @media (pointer: coarse) {
9969
+ .book-index li a,
9970
+ .book-turn a {
9971
+ min-height: var(--target);
9972
+ }
9973
+ }
9974
+ }
9975
+ /* The sheet of one of the party: the band, the columns of cards, the equipment and the money, the character's story. */
9976
+ @layer pages {
9977
+ /* The player character's story, written by the player in Description (D-373). */
9978
+ .story-box {
9979
+ display: flex;
9980
+ flex-wrap: wrap;
9981
+ align-items: center;
9982
+ gap: 8px 12px;
9983
+ margin-top: 10px;
9984
+ }
9985
+
9986
+ .story-box.editing {
9987
+ display: grid;
9988
+ }
9989
+
9990
+ .story-box svg.icon {
9991
+ width: 18px;
9992
+ height: 18px;
9993
+ }
9994
+
9995
+ .story-sent {
9996
+ display: flex;
9997
+ flex-basis: 100%;
9998
+ align-items: center;
9999
+ gap: 6px;
10000
+ margin: 0;
10001
+ color: var(--accent);
10002
+ font-size: 0.85rem;
10003
+ font-weight: 600;
10004
+ }
10005
+
10006
+ .story-sent svg.icon {
10007
+ width: 16px;
10008
+ height: 16px;
10009
+ }
10010
+
10011
+ .story-box label {
10012
+ color: var(--muted);
10013
+ font-size: 0.85rem;
10014
+ }
10015
+
10016
+ .story-box textarea {
10017
+ width: 100%;
9600
10018
  min-height: 10lh;
9601
10019
  padding: 8px 10px;
9602
10020
  border: 1px solid var(--rule);
@@ -10287,7 +10705,14 @@
10287
10705
  text-transform: uppercase;
10288
10706
  }
10289
10707
 
10290
- .setup-choice[aria-checked="true"] span:not(.setup-suggested) {
10708
+ /* What the player chose in their last campaign: a note's mark beside the name, never a control, in the muted ink. */
10709
+ .setup-choice .setup-last {
10710
+ font-size: 0.75rem;
10711
+ font-style: italic;
10712
+ font-weight: 400;
10713
+ }
10714
+
10715
+ .setup-choice[aria-checked="true"] span:not(.setup-suggested, .setup-last) {
10291
10716
  color: var(--ink);
10292
10717
  }
10293
10718
 
@@ -10861,12 +11286,6 @@
10861
11286
  position: relative;
10862
11287
  }
10863
11288
 
10864
- .place-band.compact > .place-shot {
10865
- display: flex;
10866
- align-items: center;
10867
- gap: 18px;
10868
- }
10869
-
10870
11289
  /* The text under the picture starts where the name over it does. */
10871
11290
  .place-about {
10872
11291
  display: grid;
@@ -11134,14 +11553,27 @@
11134
11553
  font-weight: 400;
11135
11554
  }
11136
11555
 
11137
- /* Without a picture, a compact band: the place's drawing on a disc where a token would be. */
11556
+ /* Without a picture, a compact band: the place's drawing on a disc at its top corner, where a token would be; beside it one column, the name over the text. */
11138
11557
  .place-band.compact {
11139
- display: flex;
11140
- align-items: center;
11141
- gap: 18px;
11558
+ display: grid;
11559
+ grid-template-columns: auto minmax(0, 1fr);
11560
+ align-items: start;
11561
+ column-gap: 18px;
11142
11562
  padding: 16px 18px;
11143
11563
  }
11144
11564
 
11565
+ .place-band.compact > .place-shot {
11566
+ display: contents;
11567
+ }
11568
+
11569
+ .place-band.compact .place-disc-spot {
11570
+ grid-row: 1 / span 2;
11571
+ }
11572
+
11573
+ .place-band.compact :is(.place-caption, .place-about) {
11574
+ grid-column: 2;
11575
+ }
11576
+
11145
11577
  .place-band.compact .place-caption {
11146
11578
  padding: 0;
11147
11579
  }
@@ -11359,8 +11791,7 @@
11359
11791
  }
11360
11792
 
11361
11793
  .place-band.compact {
11362
- align-items: flex-start;
11363
- gap: 14px;
11794
+ column-gap: 14px;
11364
11795
  }
11365
11796
 
11366
11797
  .place-disc {
@@ -11493,11 +11924,17 @@
11493
11924
  .turn-now {
11494
11925
  grid-area: now;
11495
11926
  display: flex;
11496
- align-items: center;
11927
+ align-items: flex-start;
11497
11928
  gap: 14px;
11498
11929
  min-width: 0;
11499
11930
  }
11500
11931
 
11932
+ /* The token at the top; the words beside its middle while they are shorter than it. */
11933
+ .turn-now > .turn-who,
11934
+ .turn-who > [aria-live] {
11935
+ align-self: center;
11936
+ }
11937
+
11501
11938
  .turn-now .token {
11502
11939
  --size: 64px;
11503
11940
  }
@@ -11869,8 +12306,11 @@
11869
12306
  column-gap: 12px;
11870
12307
  }
11871
12308
 
12309
+ /* The icon beside the name's line, at the top, not half way down what the character is. */
11872
12310
  .at-hand > .card-head > .card-icon {
11873
12311
  grid-row: 1 / 3;
12312
+ align-self: start;
12313
+ margin-block-start: 2px;
11874
12314
  }
11875
12315
 
11876
12316
  .at-hand > .card-head > h3 {
@@ -11955,7 +12395,7 @@
11955
12395
 
11956
12396
  .turn-notice {
11957
12397
  display: flex;
11958
- align-items: center;
12398
+ align-items: flex-start;
11959
12399
  gap: 12px;
11960
12400
  margin: 0 0 var(--gap);
11961
12401
  padding: 12px 16px;
@@ -11967,9 +12407,16 @@
11967
12407
  text-decoration: none;
11968
12408
  }
11969
12409
 
12410
+ /* The icon and the words' first line level with Go to the scene, however many lines the words take. */
11970
12411
  .turn-notice svg.icon {
12412
+ flex: none;
11971
12413
  width: 22px;
11972
12414
  height: 22px;
12415
+ margin-block-start: 5px;
12416
+ }
12417
+
12418
+ .turn-notice > span:not(.turn-notice-go) {
12419
+ padding-block: 4px;
11973
12420
  }
11974
12421
 
11975
12422
  .turn-notice-round,
@@ -13602,16 +14049,12 @@
13602
14049
  color: var(--muted);
13603
14050
  }
13604
14051
 
13605
- /* The sheet of an action (D-495): over the whole page with the map, else a card in the middle; the verbs, on whom, then the sentence and its buttons. */
13606
- .act-sheet[open] {
13607
- display: flex;
13608
- flex-direction: column;
13609
- }
13610
-
13611
- .act-sheet:not(.full) {
13612
- width: min(560px, calc(100% - 24px));
14052
+ /* The card of an action (D-495): a thing, its text and its verbs; then on whom as chips and on the place's map, the sentence and its buttons.
14053
+ A card in the middle, wider with the map; on a phone a sheet from the foot. */
14054
+ .map-sheet.act-sheet {
14055
+ width: min(520px, calc(100% - 24px));
13613
14056
  height: fit-content;
13614
- max-height: calc(100% - 24px);
14057
+ max-height: calc(100% - 48px);
13615
14058
  margin: auto;
13616
14059
  overflow: hidden;
13617
14060
  border: 1px solid var(--rule);
@@ -13619,78 +14062,124 @@
13619
14062
  box-shadow: var(--overlay);
13620
14063
  }
13621
14064
 
13622
- .act-verbs {
14065
+ .map-sheet.act-sheet.wide {
14066
+ width: min(960px, calc(100% - 24px));
14067
+ }
14068
+
14069
+ .act-sheet[open] {
13623
14070
  display: flex;
13624
- flex-wrap: wrap;
13625
- gap: 8px;
14071
+ flex-direction: column;
14072
+ }
14073
+
14074
+ @media (max-width: 599px) {
14075
+ .map-sheet.act-sheet,
14076
+ .map-sheet.act-sheet.wide {
14077
+ width: 100%;
14078
+ max-height: calc(100% - 24px);
14079
+ margin: auto 0 0;
14080
+ border-width: 1px 0 0;
14081
+ border-radius: var(--radius-xl) var(--radius-xl) 0 0;
14082
+ }
14083
+ }
14084
+
14085
+ .act-head {
14086
+ align-items: flex-start;
14087
+ background: none;
14088
+ }
14089
+
14090
+ .act-heading {
14091
+ flex: 1;
14092
+ min-width: 0;
14093
+ }
14094
+
14095
+ .act-facts {
14096
+ margin: 2px 0 0;
14097
+ color: var(--muted);
14098
+ font-size: 0.85rem;
14099
+ }
14100
+
14101
+ .act-back svg.icon {
14102
+ scale: -1 1;
14103
+ }
14104
+
14105
+ [dir="rtl"] .act-back svg.icon {
14106
+ scale: 1;
14107
+ }
14108
+
14109
+ /* The thing's own page, as much as fits; the rest scrolls. */
14110
+ .act-about {
14111
+ flex: 0 1 auto;
14112
+ min-height: 0;
14113
+ max-height: 50vh;
14114
+ overflow: auto;
14115
+ padding: 14px 16px 4px;
14116
+ line-height: 1.5;
14117
+ }
14118
+
14119
+ /* The thing's data, as damage and weight: label and value in two columns, as a stat block. */
14120
+ .act-data {
14121
+ display: grid;
14122
+ grid-template-columns: max-content 1fr;
14123
+ gap: 6px 16px;
13626
14124
  margin: 0;
13627
- padding: 12px 16px 0;
13628
- border: 0;
14125
+ padding: 14px 16px 0;
13629
14126
  }
13630
14127
 
13631
- .act-verb {
13632
- display: inline-flex;
13633
- align-items: center;
13634
- min-height: 40px;
13635
- padding: 0 16px;
13636
- border: 1px solid var(--rule);
13637
- border-radius: 999px;
13638
- font-weight: 650;
13639
- cursor: pointer;
14128
+ .act-data > div {
14129
+ display: contents;
13640
14130
  }
13641
14131
 
13642
- .act-verb:has(input:checked) {
13643
- border-color: var(--accent);
13644
- background: color-mix(in srgb, var(--accent) 14%, var(--panel));
13645
- box-shadow: inset 0 0 0 1px var(--accent);
14132
+ .act-data dt {
14133
+ color: var(--muted);
14134
+ font-size: 0.85rem;
13646
14135
  }
13647
14136
 
13648
- .act-verb input,
13649
- .act-who-one input[type="radio"] {
13650
- position: absolute;
13651
- opacity: 0;
13652
- pointer-events: none;
14137
+ .act-data dd {
14138
+ margin: 0;
14139
+ font-weight: 600;
14140
+ }
14141
+
14142
+ .act-about .markdown > :first-child {
14143
+ margin-top: 0;
14144
+ }
14145
+
14146
+ .act-verbs {
14147
+ flex-wrap: wrap;
14148
+ padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
13653
14149
  }
13654
14150
 
13655
14151
  .act-body {
13656
14152
  flex: 1 1 auto;
13657
14153
  min-height: 0;
14154
+ overflow: auto;
13658
14155
  padding: 12px 16px;
13659
14156
  }
13660
14157
 
13661
- .act-sheet:not(.full) .act-body {
13662
- padding-top: 4px;
14158
+ /* The map under the chips, only the paper: as high as leaves the sentence in view, the rest scrolls. */
14159
+ .act-body .lm {
14160
+ max-width: none;
14161
+ margin: 12px 0 0;
14162
+ box-shadow: none;
13663
14163
  }
13664
14164
 
13665
- /* On a narrow screen the list first, the names at hand; the map under it, which scrolls to keep its tokens large enough to touch. */
13666
- @media (max-width: 899px) {
13667
- .act-sheet.full .act-body {
13668
- display: flex;
13669
- flex-direction: column;
13670
- gap: 16px;
13671
- }
13672
-
13673
- .act-sheet.full .act-who {
13674
- order: -1;
13675
- }
14165
+ .act-body .lm-frame {
14166
+ max-height: 44vh;
14167
+ overflow: auto;
14168
+ border: 0;
13676
14169
  }
13677
14170
 
13678
- @media (min-width: 900px) {
13679
- .act-sheet.full .act-body {
13680
- display: grid;
13681
- grid-template-columns: minmax(0, 1fr) 320px;
13682
- gap: 16px;
13683
- align-items: start;
13684
- }
13685
-
13686
- .act-sheet.full .act-body .lm {
13687
- margin: 0;
14171
+ /* On a phone the map would be a slit inside a scrolling card: the chips, which name the squares, are enough (desktop first). */
14172
+ @media (max-width: 599px) {
14173
+ .act-body .lm {
14174
+ display: none;
13688
14175
  }
13689
14176
  }
13690
14177
 
14178
+ /* On whom, as chips among peers: the side's colour as a dot before the name, red for a foe the master marked; chosen, in the accent. */
13691
14179
  .act-who {
13692
- display: grid;
13693
- gap: 6px;
14180
+ display: flex;
14181
+ flex-wrap: wrap;
14182
+ gap: 8px;
13694
14183
  margin: 0;
13695
14184
  padding: 0;
13696
14185
  border: 0;
@@ -13701,47 +14190,55 @@
13701
14190
  padding: 0;
13702
14191
  }
13703
14192
 
13704
- /* One to choose, as on the map's list of who is where: a line in the side's colour, red for a foe the master marked; chosen, ringed in the accent. */
13705
14193
  .act-who-one {
13706
14194
  position: relative;
13707
- display: flex;
13708
- flex-wrap: wrap;
14195
+ display: inline-flex;
13709
14196
  align-items: center;
13710
- gap: 6px 8px;
13711
- min-height: 44px;
13712
- padding: 6px 12px;
14197
+ gap: 6px;
14198
+ min-height: 40px;
14199
+ padding: 0 14px;
13713
14200
  border: 1px solid var(--rule);
13714
- border-radius: var(--radius-m);
14201
+ border-radius: 999px;
13715
14202
  background: var(--panel);
13716
- box-shadow: inset 3px 0 0 var(--ally);
14203
+ color: var(--ink);
14204
+ font: inherit;
13717
14205
  cursor: pointer;
13718
14206
  }
13719
14207
 
13720
- .act-who-one.other {
13721
- box-shadow: inset 3px 0 0 color-mix(in srgb, var(--muted) 45%, transparent);
14208
+ .act-who-one::before {
14209
+ content: "";
14210
+ width: 8px;
14211
+ height: 8px;
14212
+ border-radius: 50%;
14213
+ background: var(--ally);
13722
14214
  }
13723
14215
 
13724
- .act-who-one.hostile {
13725
- box-shadow: inset 3px 0 0 var(--low);
14216
+ .act-who-one.other::before {
14217
+ background: color-mix(in srgb, var(--muted) 60%, transparent);
13726
14218
  }
13727
14219
 
13728
- .act-who-one.plain {
13729
- box-shadow: none;
14220
+ .act-who-one.hostile::before {
14221
+ background: var(--low);
14222
+ }
14223
+
14224
+ .act-who-one.plain::before {
14225
+ content: none;
13730
14226
  }
13731
14227
 
13732
14228
  .act-who-one:has(input:checked) {
13733
14229
  border-color: var(--accent);
13734
- background: color-mix(in srgb, var(--accent) 12%, var(--panel));
14230
+ background: color-mix(in srgb, var(--accent) 14%, var(--panel));
14231
+ box-shadow: inset 0 0 0 1px var(--accent);
13735
14232
  }
13736
14233
 
13737
- /* A sign beside the one chosen, not only the colour. */
13738
- .act-who-one:has(input:checked)::after {
13739
- content: "";
13740
- width: 9px;
13741
- height: 9px;
13742
- margin-inline-start: auto;
13743
- border-radius: 50%;
13744
- background: var(--accent);
14234
+ .act-who-one input[type="radio"] {
14235
+ position: absolute;
14236
+ opacity: 0;
14237
+ pointer-events: none;
14238
+ }
14239
+
14240
+ .act-who-one .lm-key-square {
14241
+ margin: 0;
13745
14242
  }
13746
14243
 
13747
14244
  .act-who-name {
@@ -13781,6 +14278,23 @@
13781
14278
  resize: vertical;
13782
14279
  }
13783
14280
 
14281
+ .act-words-label {
14282
+ display: inline-flex;
14283
+ align-items: center;
14284
+ gap: 6px;
14285
+ margin: 0;
14286
+ }
14287
+
14288
+ .act-words-label svg.icon {
14289
+ width: 14px;
14290
+ height: 14px;
14291
+ }
14292
+
14293
+ .act-answer {
14294
+ color: var(--ink);
14295
+ font-weight: 600;
14296
+ }
14297
+
13784
14298
  .act-note {
13785
14299
  display: flex;
13786
14300
  align-items: center;