rpg-engine 0.4.1 → 0.6.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 (231) hide show
  1. package/README.md +1 -1
  2. package/dist/campaign/settings.d.ts +1 -0
  3. package/dist/campaign/settings.js +6 -5
  4. package/dist/command-line.js +12 -5
  5. package/dist/commands/advance.js +1 -1
  6. package/dist/commands/ask.d.ts +37 -2
  7. package/dist/commands/ask.js +106 -35
  8. package/dist/commands/change.js +28 -17
  9. package/dist/commands/config.d.ts +1 -1
  10. package/dist/commands/config.js +69 -21
  11. package/dist/commands/effect.js +42 -23
  12. package/dist/commands/find.js +1 -1
  13. package/dist/commands/game-adventures.js +2 -2
  14. package/dist/commands/game-catalog.d.ts +13 -0
  15. package/dist/commands/game-catalog.js +26 -2
  16. package/dist/commands/game-checks.js +23 -21
  17. package/dist/commands/{game-hit-dice.d.ts → game-dice-pool.d.ts} +3 -3
  18. package/dist/commands/{game-hit-dice.js → game-dice-pool.js} +7 -7
  19. package/dist/commands/game-effects.d.ts +12 -4
  20. package/dist/commands/game-effects.js +21 -13
  21. package/dist/commands/game-examples.d.ts +22 -0
  22. package/dist/commands/game-examples.js +72 -0
  23. package/dist/commands/game-extension-list.d.ts +31 -3
  24. package/dist/commands/game-extension-list.js +94 -6
  25. package/dist/commands/game-images.d.ts +1 -1
  26. package/dist/commands/game-images.js +3 -2
  27. package/dist/commands/game-library.d.ts +3 -0
  28. package/dist/commands/game-library.js +2 -2
  29. package/dist/commands/game-mode.js +1 -1
  30. package/dist/commands/game-package-code.d.ts +87 -0
  31. package/dist/commands/game-package-code.js +648 -0
  32. package/dist/commands/game-package-hooks.d.ts +37 -0
  33. package/dist/commands/game-package-hooks.js +116 -0
  34. package/dist/commands/game-recipes.js +2 -2
  35. package/dist/commands/game-reminders.d.ts +5 -2
  36. package/dist/commands/game-reminders.js +7 -4
  37. package/dist/commands/game-rules.d.ts +4 -1
  38. package/dist/commands/game-rules.js +7 -1
  39. package/dist/commands/game-upkeep.js +3 -3
  40. package/dist/commands/game-view-place.d.ts +8 -20
  41. package/dist/commands/game-view-place.js +16 -35
  42. package/dist/commands/game-widgets.d.ts +42 -8
  43. package/dist/commands/game-widgets.js +182 -31
  44. package/dist/commands/game-world.d.ts +32 -3
  45. package/dist/commands/game-world.js +113 -24
  46. package/dist/commands/image.js +1 -1
  47. package/dist/commands/init.js +2 -2
  48. package/dist/commands/mode.d.ts +1 -1
  49. package/dist/commands/package.d.ts +15 -1
  50. package/dist/commands/package.js +96 -24
  51. package/dist/commands/progression.d.ts +2 -0
  52. package/dist/commands/progression.js +7 -2
  53. package/dist/commands/roll.d.ts +2 -0
  54. package/dist/commands/roll.js +50 -24
  55. package/dist/commands/rules.js +6 -4
  56. package/dist/commands/scene.d.ts +2 -2
  57. package/dist/commands/scene.js +13 -10
  58. package/dist/commands/sheet.js +10 -1
  59. package/dist/commands/status.d.ts +1 -0
  60. package/dist/commands/status.js +14 -4
  61. package/dist/commands/trade.js +6 -4
  62. package/dist/commands/translate.js +2 -2
  63. package/dist/commands/travel.js +1 -1
  64. package/dist/commands/validate.js +2 -2
  65. package/dist/commands/view.d.ts +12 -4
  66. package/dist/commands/view.js +11 -8
  67. package/dist/commands/worked-out.js +11 -5
  68. package/dist/commands/write.d.ts +8 -1
  69. package/dist/commands/write.js +84 -25
  70. package/dist/core/command-reference.js +3 -2
  71. package/dist/core/consents.d.ts +18 -0
  72. package/dist/core/consents.js +93 -0
  73. package/dist/core/context.d.ts +68 -27
  74. package/dist/core/context.js +3 -1
  75. package/dist/core/examples.d.ts +25 -0
  76. package/dist/core/examples.js +19 -0
  77. package/dist/core/files.d.ts +2 -0
  78. package/dist/core/files.js +10 -1
  79. package/dist/core/package-api.d.ts +388 -0
  80. package/dist/core/package-declarations.d.ts +102 -0
  81. package/dist/core/package-declarations.js +81 -0
  82. package/dist/core/registry.d.ts +4 -0
  83. package/dist/core/text.d.ts +5 -0
  84. package/dist/core/text.js +12 -0
  85. package/dist/dashboard/acts.js +31 -24
  86. package/dist/dashboard/address.js +4 -1
  87. package/dist/dashboard/api.js +65 -3
  88. package/dist/dashboard/app.js +222 -98
  89. package/dist/dashboard/ask-card.js +169 -0
  90. package/dist/dashboard/asked-dice.js +57 -0
  91. package/dist/dashboard/dice/tray.js +6 -4
  92. package/dist/dashboard/extension-widgets.js +136 -16
  93. package/dist/dashboard/faces.js +6 -4
  94. package/dist/dashboard/help.js +10 -3
  95. package/dist/dashboard/i18n/ar.json +34 -29
  96. package/dist/dashboard/i18n/cs.json +34 -29
  97. package/dist/dashboard/i18n/da.json +34 -29
  98. package/dist/dashboard/i18n/de.json +34 -29
  99. package/dist/dashboard/i18n/el.json +34 -29
  100. package/dist/dashboard/i18n/es.json +34 -29
  101. package/dist/dashboard/i18n/fi.json +34 -29
  102. package/dist/dashboard/i18n/fr.json +34 -29
  103. package/dist/dashboard/i18n/he.json +34 -29
  104. package/dist/dashboard/i18n/hi.json +34 -29
  105. package/dist/dashboard/i18n/hu.json +34 -29
  106. package/dist/dashboard/i18n/is.json +34 -29
  107. package/dist/dashboard/i18n/it.json +34 -29
  108. package/dist/dashboard/i18n/ja.json +34 -29
  109. package/dist/dashboard/i18n/ko.json +34 -29
  110. package/dist/dashboard/i18n/nb.json +34 -29
  111. package/dist/dashboard/i18n/nl.json +34 -29
  112. package/dist/dashboard/i18n/pl.json +34 -29
  113. package/dist/dashboard/i18n/pt.json +34 -29
  114. package/dist/dashboard/i18n/ro.json +34 -29
  115. package/dist/dashboard/i18n/ru.json +34 -29
  116. package/dist/dashboard/i18n/sv.json +34 -29
  117. package/dist/dashboard/i18n/tr.json +34 -29
  118. package/dist/dashboard/i18n/uk.json +34 -29
  119. package/dist/dashboard/i18n/zh.json +34 -29
  120. package/dist/dashboard/icons.js +4 -1
  121. package/dist/dashboard/kit.js +35 -0
  122. package/dist/dashboard/labels.js +1 -0
  123. package/dist/dashboard/pack-card.js +97 -0
  124. package/dist/dashboard/package-page.js +50 -0
  125. package/dist/dashboard/packages.js +180 -24
  126. package/dist/dashboard/page-code.js +248 -0
  127. package/dist/dashboard/party.js +13 -14
  128. package/dist/dashboard/people.js +4 -0
  129. package/dist/dashboard/person-panel.js +110 -0
  130. package/dist/dashboard/place-map-view.js +11 -6
  131. package/dist/dashboard/rolls.js +2 -2
  132. package/dist/dashboard/scene.js +12 -9
  133. package/dist/dashboard/settings.js +55 -9
  134. package/dist/dashboard/sheet.js +21 -13
  135. package/dist/dashboard/status.js +69 -15
  136. package/dist/dashboard/style.css +859 -574
  137. package/dist/dashboard/top.js +75 -25
  138. package/dist/dashboard/turns.js +34 -13
  139. package/dist/dashboard/widgets.js +9 -2
  140. package/dist/dashboard-server.js +246 -11
  141. package/dist/dice/roll-dice.js +1 -1
  142. package/dist/effects/effect.d.ts +7 -4
  143. package/dist/effects/effect.js +12 -9
  144. package/dist/extensions/engine.d.ts +4 -0
  145. package/dist/extensions/engine.js +74 -0
  146. package/dist/extensions/extension.d.ts +28 -33
  147. package/dist/extensions/extension.js +37 -46
  148. package/dist/extensions/index.d.ts +4 -3
  149. package/dist/extensions/index.js +5 -2
  150. package/dist/extensions/packages.d.ts +14 -0
  151. package/dist/extensions/packages.js +148 -12
  152. package/dist/extensions/words.d.ts +2 -1
  153. package/dist/extensions/words.js +5 -4
  154. package/dist/index.d.ts +1 -3
  155. package/dist/mcp-server.js +52 -15
  156. package/dist/page-words.d.ts +4 -0
  157. package/dist/page-words.js +4 -4
  158. package/dist/page.d.ts +218 -0
  159. package/dist/page.js +2 -0
  160. package/dist/pages/index.d.ts +1 -1
  161. package/dist/pages/index.js +1 -1
  162. package/dist/pages/load.d.ts +7 -1
  163. package/dist/pages/load.js +10 -5
  164. package/dist/pages/page-file.js +1 -1
  165. package/dist/pages/stack-writes.js +5 -4
  166. package/dist/pages/standard-fields.d.ts +2 -0
  167. package/dist/pages/standard-fields.js +8 -1
  168. package/dist/pages/world.d.ts +8 -0
  169. package/dist/pages/world.js +9 -2
  170. package/dist/systems/game-system.d.ts +61 -30
  171. package/dist/systems/game-system.js +159 -50
  172. package/dist/systems/index.d.ts +3 -3
  173. package/dist/systems/index.js +3 -3
  174. package/dist/systems/system-code.d.ts +29 -88
  175. package/dist/systems/system-code.js +68 -23
  176. package/dist/systems/words.d.ts +2 -0
  177. package/dist/systems/words.js +11 -0
  178. package/dist/testing.d.ts +76 -0
  179. package/dist/testing.js +197 -0
  180. package/instructions/combat.md +2 -2
  181. package/instructions/core.md +2 -2
  182. package/instructions/dashboard.md +1 -1
  183. package/instructions/mentor-tutorial.md +1 -1
  184. package/instructions/play.md +2 -2
  185. package/instructions/setup.md +1 -1
  186. package/package.json +15 -2
  187. package/systems/5e/LICENSE.md +13 -3
  188. package/systems/5e/dist/dying.js +83 -16
  189. package/systems/5e/dist/index.js +2 -2
  190. package/systems/5e/dist/page-style.js +634 -0
  191. package/systems/5e/dist/page.js +166 -0
  192. package/systems/5e/dist/shown.js +23 -0
  193. package/systems/5e/instructions/combat.md +1 -0
  194. package/systems/5e/package.json +4 -2
  195. package/systems/5e/system.yaml +35 -7
  196. package/systems/5e/versions/srd-5.1/system.yaml +2 -0
  197. package/systems/5e/words/ar.yaml +30 -0
  198. package/systems/5e/words/cs.yaml +30 -0
  199. package/systems/5e/words/da.yaml +30 -0
  200. package/systems/5e/words/de.yaml +30 -0
  201. package/systems/5e/words/el.yaml +30 -0
  202. package/systems/5e/words/es.yaml +30 -0
  203. package/systems/5e/words/fi.yaml +30 -0
  204. package/systems/5e/words/fr.yaml +30 -0
  205. package/systems/5e/words/he.yaml +30 -0
  206. package/systems/5e/words/hi.yaml +30 -0
  207. package/systems/5e/words/hu.yaml +30 -0
  208. package/systems/5e/words/is.yaml +30 -0
  209. package/systems/5e/words/it.yaml +30 -0
  210. package/systems/5e/words/ja.yaml +30 -0
  211. package/systems/5e/words/ko.yaml +30 -0
  212. package/systems/5e/words/nb.yaml +30 -0
  213. package/systems/5e/words/nl.yaml +30 -0
  214. package/systems/5e/words/pl.yaml +30 -0
  215. package/systems/5e/words/pt.yaml +30 -0
  216. package/systems/5e/words/ro.yaml +30 -0
  217. package/systems/5e/words/ru.yaml +30 -0
  218. package/systems/5e/words/sv.yaml +30 -0
  219. package/systems/5e/words/tr.yaml +30 -0
  220. package/systems/5e/words/uk.yaml +30 -0
  221. package/systems/5e/words/zh.yaml +30 -0
  222. package/dist/commands/game-extensions.d.ts +0 -34
  223. package/dist/commands/game-extensions.js +0 -182
  224. package/dist/commands/game-system-code.d.ts +0 -25
  225. package/dist/commands/game-system-code.js +0 -172
  226. package/dist/dashboard/death-save.js +0 -67
  227. package/dist/dashboard/dying.js +0 -46
  228. package/dist/dashboard/save-outcome.js +0 -42
  229. package/dist/dashboard/spend.js +0 -115
  230. package/dist/extensions/api.d.ts +0 -155
  231. /package/dist/{extensions/api.js → core/package-api.js} +0 -0
@@ -500,12 +500,70 @@ a {
500
500
  padding: 0 10px;
501
501
  }
502
502
 
503
- .sections a.away {
503
+ .sections :is(a, .packages-menu).away {
504
504
  position: absolute;
505
505
  visibility: hidden;
506
506
  pointer-events: none;
507
507
  }
508
508
 
509
+ /* A package's page as a tab (D-512): its title as long as a section's at most, cut short beyond. */
510
+ .sections a.own-tab .section-name {
511
+ max-width: 12em;
512
+ overflow: hidden;
513
+ text-overflow: ellipsis;
514
+ }
515
+
516
+ /* The packages' icon as the menu of their other pages (D-512): a page's icon that opens, lit while one of them or Packages is shown. */
517
+ .sections .packages-menu {
518
+ position: relative;
519
+ display: inline-flex;
520
+ }
521
+
522
+ .packages-menu-button {
523
+ display: inline-flex;
524
+ align-items: center;
525
+ height: 40px;
526
+ padding: 0 10px;
527
+ border: 0;
528
+ border-radius: var(--radius-m) var(--radius-m) 0 0;
529
+ background: transparent;
530
+ color: var(--muted);
531
+ font: inherit;
532
+ cursor: pointer;
533
+ }
534
+
535
+ .packages-menu-button.shown {
536
+ background: linear-gradient(var(--accent), var(--accent)) no-repeat center bottom / 100% 3px;
537
+ color: var(--accent);
538
+ }
539
+
540
+ .packages-menu-button svg.icon {
541
+ width: 20px;
542
+ height: 20px;
543
+ }
544
+
545
+ .packages-menu .menu-pop {
546
+ min-width: 220px;
547
+ }
548
+
549
+ /* Packages, where they are added and taken away, under their pages; in the menu of a phone their pages under Packages, set in. */
550
+ .menu-pop .menu-manage {
551
+ margin-top: 4px;
552
+ border-top: 1px solid var(--rule);
553
+ border-radius: 0 0 var(--radius-m) var(--radius-m);
554
+ }
555
+
556
+ .menu-sub {
557
+ display: grid;
558
+ padding-inline-start: 20px;
559
+ }
560
+
561
+ .menu-pop :is(.menu-sub, .packages-menu .menu-pop) a {
562
+ height: auto;
563
+ min-height: 40px;
564
+ padding-block: 6px;
565
+ }
566
+
509
567
  /* Where the party is (D-333): from the largest place to its own, which stays whole while the others give way; it leads to Scene. */
510
568
  .top-place {
511
569
  grid-area: place;
@@ -3475,6 +3533,22 @@ a {
3475
3533
  margin: 0;
3476
3534
  }
3477
3535
 
3536
+ /* At the guide's end, how to tell us what went wrong: two lines and the link to GitHub. */
3537
+ .help-report .card-body p {
3538
+ max-width: 64ch;
3539
+ margin: 0 0 8px;
3540
+ line-height: 1.55;
3541
+ }
3542
+
3543
+ .help-report .help-report-note {
3544
+ color: var(--muted);
3545
+ font-size: 0.85rem;
3546
+ }
3547
+
3548
+ .help-report .about-link {
3549
+ margin-top: 4px;
3550
+ }
3551
+
3478
3552
  /* The guide's text in its cards (D-413): its headings in the accent, its tables scrolling inside their card, its commands to copy, the chat's lines quoted. */
3479
3553
  .guide p,
3480
3554
  .guide ul,
@@ -3861,13 +3935,85 @@ a.status-chip.widget-chip {
3861
3935
  gap: var(--gap);
3862
3936
  }
3863
3937
 
3938
+ /* Two columns that the tracks share, so that the pips of each start in one line; the labels take at most half, and wrap. */
3864
3939
  .widget-body {
3865
3940
  display: grid;
3941
+ grid-template-columns: fit-content(50%) minmax(0, 1fr);
3866
3942
  gap: 12px;
3867
3943
  }
3868
3944
 
3869
3945
  .widget-body > * {
3946
+ grid-column: 1 / -1;
3947
+ margin: 0;
3948
+ }
3949
+
3950
+ /* A package's drawing (D-510): its place in the page, a shadow root that takes this style sheet. A figure keeps its room while its module comes, its declared
3951
+ width at most and its shape; in the top, as tall as an icon. Turned right to left when it holds no words. What broke says so, and whose it is. */
3952
+ .ext-root {
3953
+ display: block;
3954
+ min-width: 0;
3955
+ }
3956
+
3957
+ .ext-figure {
3958
+ width: var(--figure-width, 100%);
3959
+ max-width: 100%;
3960
+ aspect-ratio: var(--figure-ratio, auto);
3961
+ }
3962
+
3963
+ .ext-figure.at-top {
3964
+ width: auto;
3965
+ height: 20px;
3966
+ aspect-ratio: var(--figure-ratio, 1);
3967
+ }
3968
+
3969
+ [dir="rtl"] .ext-root.mirrored {
3970
+ transform: scaleX(-1);
3971
+ }
3972
+
3973
+ /* A count drawn as a figure takes the width of its place, the figure its own in it. */
3974
+ .ask-track.figured {
3975
+ grid-template-columns: minmax(0, 1fr);
3976
+ justify-self: stretch;
3977
+ justify-items: center;
3978
+ }
3979
+
3980
+ .track-figure {
3981
+ display: grid;
3982
+ grid-template-columns: minmax(0, 1fr);
3983
+ justify-items: center;
3984
+ width: 100%;
3985
+ min-width: 0;
3986
+ }
3987
+
3988
+ .figure-count > [dir] {
3989
+ font-weight: 400;
3990
+ }
3991
+
3992
+ .widget-track.figured {
3993
+ display: grid;
3994
+ grid-template-columns: minmax(0, 1fr);
3995
+ justify-items: center;
3996
+ gap: 4px;
3997
+ }
3998
+
3999
+ .widget-track.figured > .figure-count {
4000
+ display: block;
4001
+ }
4002
+
4003
+ /* The packages' cards in a page, after its widgets' own: none drawn, no room. */
4004
+ .package-cards:empty {
4005
+ display: none;
4006
+ }
4007
+
4008
+ .ext-broken {
3870
4009
  margin: 0;
4010
+ padding: 8px 12px;
4011
+ border: 1px solid var(--low);
4012
+ border-radius: var(--radius-s);
4013
+ color: var(--low);
4014
+ font-size: 0.85rem;
4015
+ text-align: start;
4016
+ overflow-wrap: anywhere;
3871
4017
  }
3872
4018
 
3873
4019
  /* One thing large: its icon, its words, its value, as the sky and the temperature. */
@@ -3878,6 +4024,17 @@ a.status-chip.widget-chip {
3878
4024
  gap: 12px;
3879
4025
  }
3880
4026
 
4027
+ /* Its figure, its extension's drawing, over its words and value. */
4028
+ .widget-lead.figured {
4029
+ grid-template-columns: minmax(0, 1fr) auto;
4030
+ row-gap: 8px;
4031
+ }
4032
+
4033
+ .widget-lead.figured > .ext-figure {
4034
+ grid-column: 1 / -1;
4035
+ justify-self: center;
4036
+ }
4037
+
3881
4038
  .widget-lead-icon {
3882
4039
  width: 40px;
3883
4040
  height: 40px;
@@ -3902,10 +4059,13 @@ a.status-chip.widget-chip {
3902
4059
  }
3903
4060
 
3904
4061
  .widget-track {
3905
- display: flex;
3906
- flex-wrap: wrap;
4062
+ display: grid;
4063
+ grid-template-columns: subgrid;
3907
4064
  align-items: center;
3908
- gap: 8px 12px;
4065
+ }
4066
+
4067
+ .widget-track > .pips {
4068
+ flex-wrap: wrap;
3909
4069
  }
3910
4070
 
3911
4071
  .widget-track-label {
@@ -4651,7 +4811,7 @@ a.status-chip.widget-chip {
4651
4811
  direction: rtl;
4652
4812
  }
4653
4813
 
4654
- [dir="rtl"] :is(span.num:not([dir]), .asked-dice, .die-modifier, .tray-die-name, .tray-modifier-value, .spend-gain, .spend-chip-adds) {
4814
+ [dir="rtl"] :is(span.num:not([dir]), .asked-dice, .die-modifier, .tray-die-name, .tray-modifier-value) {
4655
4815
  direction: ltr;
4656
4816
  unicode-bidi: isolate;
4657
4817
  }
@@ -5265,6 +5425,84 @@ button.row,
5265
5425
  background: var(--accent);
5266
5426
  }
5267
5427
 
5428
+ /* A count of a widget (D-507): good ones circles in the allies' green, bad ones squares in the red of what goes against, by shape as well as colour, as
5429
+ the marks of the dying; a progress as tall steps. After those lit: held ones half full, a failed one crossed, those this roll may light dashed. */
5430
+ .pips.good {
5431
+ --mark: var(--ally);
5432
+ }
5433
+
5434
+ .pips.bad {
5435
+ --mark: var(--low);
5436
+ }
5437
+
5438
+ .pips:is(.good, .bad, .steps) .pip {
5439
+ position: relative;
5440
+ border-color: var(--mark, var(--accent));
5441
+ }
5442
+
5443
+ .pips:is(.good, .bad, .steps) .pip.on {
5444
+ background: var(--mark, var(--accent));
5445
+ }
5446
+
5447
+ .pips.bad .pip {
5448
+ border-radius: 18%;
5449
+ }
5450
+
5451
+ .pips.steps {
5452
+ align-items: flex-end;
5453
+ gap: 4px;
5454
+ }
5455
+
5456
+ .pips.steps .pip {
5457
+ width: 10px;
5458
+ height: 22px;
5459
+ border-radius: 3px;
5460
+ }
5461
+
5462
+ .pip.held {
5463
+ background: color-mix(in srgb, var(--mark, var(--accent)) 35%, var(--float));
5464
+ }
5465
+
5466
+ .pip.marked {
5467
+ position: relative;
5468
+ border-color: var(--low);
5469
+ background: color-mix(in srgb, var(--low) 12%, var(--float));
5470
+ }
5471
+
5472
+ .pip.marked::before,
5473
+ .pip.marked::after {
5474
+ content: "";
5475
+ position: absolute;
5476
+ top: 50%;
5477
+ left: 50%;
5478
+ width: 80%;
5479
+ max-width: 14px;
5480
+ height: 2px;
5481
+ border-radius: 2px;
5482
+ background: var(--low);
5483
+ transform: translate(-50%, -50%) rotate(45deg);
5484
+ }
5485
+
5486
+ .pip.marked::after {
5487
+ transform: translate(-50%, -50%) rotate(-45deg);
5488
+ }
5489
+
5490
+ .pip.coming {
5491
+ border-style: dashed;
5492
+ background: color-mix(in srgb, var(--mark, var(--accent)) 10%, transparent);
5493
+ }
5494
+
5495
+ /* The count of steps, under them in a question's card; beside the page its marks say it. */
5496
+ .track-count {
5497
+ color: var(--muted);
5498
+ font-size: 0.8rem;
5499
+ font-weight: 700;
5500
+ }
5501
+
5502
+ .widget-track > .track-count {
5503
+ display: none;
5504
+ }
5505
+
5268
5506
  /* Bars and tracks: the track's edge stands out of the page enough to see (WCAG 1.4.11). */
5269
5507
  .bar-line {
5270
5508
  display: inline-flex;
@@ -5473,6 +5711,70 @@ button.row,
5473
5711
  color: var(--muted);
5474
5712
  }
5475
5713
 
5714
+ /* An effect with its drawing (D-516): the icon inside the chip before its word; where few fit, the icon alone, its word in its tooltip. */
5715
+ .effect.with-icon {
5716
+ display: inline-flex;
5717
+ align-items: center;
5718
+ gap: 4px;
5719
+ padding-inline-start: 5px;
5720
+ }
5721
+
5722
+ .effect-icon {
5723
+ flex: none;
5724
+ width: 15px;
5725
+ height: 15px;
5726
+ fill: none;
5727
+ stroke: currentColor;
5728
+ stroke-width: 2;
5729
+ stroke-linecap: round;
5730
+ stroke-linejoin: round;
5731
+ }
5732
+
5733
+ .effect.icon-only {
5734
+ display: inline-grid;
5735
+ place-items: center;
5736
+ width: 24px;
5737
+ height: 24px;
5738
+ padding: 0;
5739
+ }
5740
+
5741
+ .effect.icon-only .effect-icon {
5742
+ width: 16px;
5743
+ height: 16px;
5744
+ }
5745
+
5746
+ /* Their tooltip over the chip, from its start toward the name, inside the party's strip, which scrolls and so cuts what leaves it. */
5747
+ :is(.effect.icon-only, .effect.more) {
5748
+ position: relative;
5749
+ }
5750
+
5751
+ :is(.effect.icon-only, .effect.more)[data-tip]::before {
5752
+ left: auto;
5753
+ inset-inline-start: 0;
5754
+ width: max-content;
5755
+ max-width: 240px;
5756
+ white-space: normal;
5757
+ translate: 0 4px;
5758
+ }
5759
+
5760
+ @media (hover: hover) {
5761
+ :is(.effect.icon-only, .effect.more)[data-tip]:hover::before {
5762
+ translate: 0 0;
5763
+ }
5764
+ }
5765
+
5766
+ :is(.effect.icon-only, .effect.more)[data-tip]:focus-visible::before {
5767
+ translate: 0 0;
5768
+ }
5769
+
5770
+ /* A package's small card among the values under a name (D-516): a lead's words and value on one line. */
5771
+ .person-box-lead {
5772
+ display: inline-flex;
5773
+ align-items: baseline;
5774
+ gap: 6px;
5775
+ font-weight: 700;
5776
+ }
5777
+
5476
5778
  /* The items of a list, as the attacks. */
5477
5779
  .items {
5478
5780
  width: 100%;
@@ -6232,677 +6534,579 @@ button.row,
6232
6534
  outline-offset: 2px;
6233
6535
  }
6234
6536
 
6235
- /* The death save asked of the player (D-460, D-461): a card of its own where the question stands, in the tint of danger, until the outcome is told. The
6236
- portrait greyed in a ring that beats, the line of the heart behind it, the successes on one side and the failures on the other, the one button under them.
6237
- The outcome sets its tint: gold back on their feet, green stable, grey at the last failure, the line flat. */
6238
- .dying-card {
6239
- --tint: var(--low);
6240
- position: sticky;
6241
- top: calc(var(--top-space) + var(--gap));
6242
- z-index: 15;
6537
+ /* The marks of a panel on someone of the party (D-461, D-516): good ones as circles on one side, bad ones as squares on the other, by shape as well as
6538
+ colour, each side under its word. */
6539
+ .person-side {
6540
+ position: relative;
6243
6541
  display: grid;
6244
- gap: 12px;
6245
- margin: 0 0 var(--gap);
6246
- padding: 16px 20px 18px;
6247
- border: 1px solid color-mix(in srgb, var(--tint) 60%, transparent);
6248
- border-radius: var(--radius-xl);
6249
- background: radial-gradient(120% 90% at 50% 45%, color-mix(in srgb, var(--tint) 4%, var(--float)), color-mix(in srgb, var(--tint) 16%, var(--float)));
6250
- box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 35%, transparent), var(--overlay);
6251
- transition: border-color var(--long) var(--ease), box-shadow var(--long) var(--ease);
6542
+ min-width: 0;
6543
+ gap: 6px;
6544
+ justify-items: start;
6252
6545
  }
6253
6546
 
6254
- .dying-card.back {
6255
- --tint: var(--gold);
6547
+ .person-side.bad {
6548
+ justify-items: end;
6256
6549
  }
6257
6550
 
6258
- .dying-card.stable {
6259
- --tint: var(--ally);
6551
+ /* A system's word, which may be long in a language: it breaks rather than leave its card. */
6552
+ .person-label {
6553
+ color: var(--ally);
6554
+ overflow-wrap: anywhere;
6555
+ hyphens: auto;
6260
6556
  }
6261
6557
 
6262
- .dying-card.dead {
6263
- --tint: var(--muted);
6558
+ .person-side.bad .person-label {
6559
+ color: var(--low);
6560
+ text-align: end;
6264
6561
  }
6265
6562
 
6266
- .dying-card :is(.asked-turn, .asked-question) {
6267
- margin: 0;
6268
- padding-inline-end: 36px;
6563
+ .person-marks {
6564
+ display: inline-flex;
6565
+ gap: 8px;
6269
6566
  }
6270
6567
 
6271
- .dying-close {
6272
- position: absolute;
6273
- top: 8px;
6274
- inset-inline-end: 8px;
6568
+ .person-mark {
6569
+ --mark: var(--ally);
6570
+ position: relative;
6571
+ width: 26px;
6572
+ height: 26px;
6573
+ border: 2px solid var(--mark);
6574
+ border-radius: 50%;
6275
6575
  }
6276
6576
 
6277
- .dying-life {
6278
- position: relative;
6279
- display: grid;
6280
- grid-template-columns: 1fr auto 1fr;
6281
- align-items: center;
6282
- gap: 12px;
6283
- min-height: 112px;
6284
- }
6285
-
6286
- /* The line runs between the two sides, behind the portrait. */
6287
- .dying-line {
6288
- position: absolute;
6289
- top: calc(50% - 30px);
6290
- inset-inline-start: 120px;
6291
- width: calc(100% - 240px);
6292
- height: 60px;
6293
- overflow: visible;
6294
- color: var(--tint);
6295
- opacity: 0.6;
6296
- pointer-events: none;
6297
- }
6298
-
6299
- .dying-line path {
6300
- fill: none;
6301
- stroke: currentColor;
6302
- stroke-width: 2;
6303
- stroke-linejoin: round;
6304
- vector-effect: non-scaling-stroke;
6305
- }
6306
-
6307
- .dying-side {
6308
- position: relative;
6309
- display: grid;
6310
- min-width: 0;
6311
- gap: 6px;
6312
- justify-items: start;
6313
- }
6314
-
6315
- .dying-side.dying-failures {
6316
- justify-items: end;
6317
- }
6318
-
6319
- /* A system's word, which may be long in a language: it breaks rather than leave its card. */
6320
- .dying-label {
6321
- color: var(--ally);
6322
- overflow-wrap: anywhere;
6323
- hyphens: auto;
6324
- }
6325
-
6326
- .dying-failures .dying-label {
6327
- color: var(--low);
6328
- text-align: end;
6329
- }
6330
-
6331
- .dying-marks {
6332
- display: inline-flex;
6333
- gap: 8px;
6334
- }
6335
-
6336
- /* Successes as circles, failures as squares, as the panel of the dying: by shape as well as colour. */
6337
- .dying-mark {
6338
- --mark: var(--ally);
6339
- position: relative;
6340
- width: 26px;
6341
- height: 26px;
6342
- border: 2px solid var(--mark);
6343
- border-radius: 50%;
6344
- }
6345
-
6346
- .dying-failures .dying-mark {
6577
+ .person-side.bad .person-mark {
6347
6578
  --mark: var(--low);
6348
6579
  border-radius: var(--radius-xs);
6349
6580
  }
6350
6581
 
6351
- .dying-mark.marked {
6582
+ .person-mark.marked {
6352
6583
  background: var(--mark);
6353
6584
  }
6354
6585
 
6355
- .dying-mark.new {
6356
- box-shadow: 0 0 0 4px color-mix(in srgb, var(--mark) 30%, transparent);
6357
- }
6358
-
6359
- .dying-mark::after {
6360
- content: "";
6361
- position: absolute;
6362
- inset: -7px;
6363
- border: 2px solid var(--mark);
6364
- border-radius: inherit;
6365
- opacity: 0;
6366
- }
6586
+ /* What the cards of the packages' questions move with: a mark that pops as it lights, a ring that leaves it, an outcome that comes up. */
6587
+ @keyframes mark-pop {
6588
+ 0% {
6589
+ transform: scale(0.4);
6590
+ }
6367
6591
 
6368
- /* The portrait in its ring, greyed while dying: in colour again on the highest face, darker at the last failure. */
6369
- .dying-token {
6370
- position: relative;
6371
- z-index: 1;
6372
- display: grid;
6373
- place-items: center;
6374
- width: 102px;
6375
- height: 102px;
6376
- border: 3px solid var(--tint);
6377
- border-radius: 50%;
6378
- background: var(--float);
6379
- transition: border-color var(--long) var(--ease);
6380
- }
6592
+ 60% {
6593
+ transform: scale(1.25);
6594
+ }
6381
6595
 
6382
- .dying-token .token {
6383
- --size: 90px;
6596
+ 100% {
6597
+ transform: scale(1);
6598
+ }
6384
6599
  }
6385
6600
 
6386
- .dying-token .token > :is(img, .initials) {
6387
- filter: grayscale(0.85) brightness(0.8);
6388
- transition: filter var(--long) var(--ease);
6389
- }
6601
+ @keyframes mark-ring {
6602
+ from {
6603
+ opacity: 0.9;
6604
+ transform: scale(0.8);
6605
+ }
6390
6606
 
6391
- .dying-card.back .dying-token .token > :is(img, .initials) {
6392
- filter: none;
6607
+ to {
6608
+ opacity: 0;
6609
+ transform: scale(1.6);
6610
+ }
6393
6611
  }
6394
6612
 
6395
- .dying-card.dead .dying-token .token > :is(img, .initials) {
6396
- filter: grayscale(1) brightness(0.5);
6613
+ @keyframes word-rise {
6614
+ from {
6615
+ opacity: 0;
6616
+ transform: translateY(6px);
6617
+ }
6397
6618
  }
6398
6619
 
6399
- .dying-token::after {
6400
- content: "";
6401
- position: absolute;
6402
- inset: -3px;
6403
- border: 3px solid var(--tint);
6404
- border-radius: 50%;
6405
- opacity: 0;
6406
- pointer-events: none;
6620
+ /* The card of a package's question (D-507, D-509): its widget's parts in the frame of the master's question, through the questions of one attempt. Who acts on
6621
+ the left, the middle count large, the others one over the other on the right with the facts under them; under them the roll's button or the choices a die
6622
+ asks for, and the rule; the outcome where they were. On a phone who acts over the middle, the others side by side under it, and once told the card scrolls
6623
+ with the page. No colour of the moment, unless its package gives one (below). */
6624
+ .ask-card .asked-question {
6625
+ margin-bottom: 4px;
6407
6626
  }
6408
6627
 
6409
- .dying-foot {
6410
- display: grid;
6411
- justify-items: center;
6412
- gap: 8px;
6413
- text-align: center;
6628
+ /* Told, the button that closes it in its corner, beside the question. */
6629
+ .ask-card.ended .asked-question {
6630
+ padding-inline-end: 36px;
6414
6631
  }
6415
6632
 
6416
- .dying-roll {
6417
- /* The die in front hides the lines of the one behind it with the button's gold, as a check's button. */
6418
- --die-ground: var(--gold);
6419
- display: inline-flex;
6420
- align-items: center;
6421
- justify-content: center;
6422
- gap: 8px;
6423
- min-width: min(320px, 100%);
6424
- min-height: 48px;
6425
- padding: 8px 20px;
6426
- border: 0;
6427
- border-radius: var(--radius-m);
6428
- background: var(--gold);
6429
- color: var(--on-gold);
6430
- font: inherit;
6431
- font-weight: 600;
6432
- box-shadow: var(--raise);
6433
- cursor: pointer;
6633
+ .ask-close {
6634
+ position: absolute;
6635
+ top: 10px;
6636
+ inset-inline-end: 10px;
6434
6637
  }
6435
6638
 
6436
- .dying-roll:disabled {
6437
- cursor: default;
6438
- opacity: 0.55;
6639
+ /* A card its package tints with the colour of its moment (D-517), as the 5e's death save: a frame of that tint, deeper at the edges, without the robot; the
6640
+ question, the inside and the foot one under the other. The lock's card has none (D-509). */
6641
+ .ask-card.tinted {
6642
+ --tint: var(--low);
6643
+ display: block;
6644
+ padding: 16px 20px 18px;
6645
+ border-color: color-mix(in srgb, var(--tint) 60%, transparent);
6646
+ background: radial-gradient(120% 90% at 50% 45%, color-mix(in srgb, var(--tint) 4%, var(--float)), color-mix(in srgb, var(--tint) 16%, var(--float)));
6647
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 35%, transparent), var(--overlay);
6648
+ transition: border-color var(--long) var(--ease), box-shadow var(--long) var(--ease);
6649
+ animation: none;
6439
6650
  }
6440
6651
 
6441
- .dying-roll.sent {
6442
- opacity: 1;
6443
- outline: 2px solid var(--accent);
6444
- outline-offset: 2px;
6652
+ .ask-card.tint-ally {
6653
+ --tint: var(--ally);
6445
6654
  }
6446
6655
 
6447
- .dying-stakes {
6448
- margin: 0;
6449
- color: var(--muted);
6450
- font-size: 0.85rem;
6656
+ .ask-card.tint-gold {
6657
+ --tint: var(--gold);
6451
6658
  }
6452
6659
 
6453
- /* The outcome, large where the button was and as tall: the total, then the word, green for a success, red for a failure, gold on its feet. */
6454
- .dying-word {
6455
- display: grid;
6456
- place-items: center;
6457
- min-height: 48px;
6458
- margin: 0;
6459
- color: var(--low);
6460
- font-size: 1.6rem;
6461
- font-weight: 800;
6462
- line-height: 1.2;
6660
+ .ask-card.tint-muted {
6661
+ --tint: var(--muted);
6463
6662
  }
6464
6663
 
6465
- .dying-word:empty {
6664
+ .ask-card.tinted .asked-robot {
6466
6665
  display: none;
6467
6666
  }
6468
6667
 
6469
- .dying-card:is(.success, .stable) .dying-word {
6470
- color: var(--ally);
6471
- }
6472
-
6473
- /* A total the system's code wrote nothing of: no outcome, so no colour of one. */
6474
- .dying-card.told:not(.success, .stable, .failure, .failures, .dead, .back) .dying-word {
6475
- color: var(--ink);
6476
- }
6477
-
6478
- .dying-card.back .dying-word {
6479
- color: var(--gold-ink);
6480
- }
6481
-
6482
- /* Motion only for who wants it: the ring beats while dying, slower once stable, bursts on the highest face; the new mark pops. Reduced, the states alone. */
6483
- @media (prefers-reduced-motion: no-preference) {
6484
- .dying-card:is(.asking, .rolling, .success, .failure, .failures) .dying-token::after {
6485
- animation: dying-beat 1.6s var(--ease-out) infinite;
6486
- }
6487
-
6488
- .dying-card.stable .dying-token::after {
6489
- animation: dying-beat 2.6s var(--ease-out) infinite;
6490
- }
6491
-
6492
- .dying-card.back .dying-token::after {
6493
- animation: dying-burst var(--linger) var(--ease-out) both;
6494
- }
6495
-
6496
- .dying-mark.new {
6497
- animation: dying-pop var(--flight) var(--ease-bounce) both;
6498
- }
6499
-
6500
- .dying-mark.new::after {
6501
- animation: dying-ring var(--long) var(--ease-out) var(--quick) both;
6502
- }
6503
-
6504
- .dying-card.told .dying-word {
6505
- animation: dying-word var(--medium) var(--ease-out) both;
6506
- }
6668
+ .ask-card.tinted .asked-body {
6669
+ display: grid;
6670
+ gap: 12px;
6507
6671
  }
6508
6672
 
6509
- @keyframes dying-beat {
6510
- 0%,
6511
- 30% {
6512
- opacity: 0.8;
6513
- transform: scale(1);
6514
- }
6515
-
6516
- 60%,
6517
- 100% {
6518
- opacity: 0;
6519
- transform: scale(1.35);
6520
- }
6673
+ .ask-card.tinted :is(.asked-turn, .asked-question) {
6674
+ margin: 0;
6675
+ padding-inline-end: 36px;
6521
6676
  }
6522
6677
 
6523
- @keyframes dying-burst {
6524
- from {
6525
- opacity: 1;
6526
- transform: scale(1);
6527
- }
6528
-
6529
- to {
6530
- opacity: 0;
6531
- transform: scale(1.9);
6532
- }
6678
+ .ask-card.tinted .ask-close {
6679
+ top: 8px;
6680
+ inset-inline-end: 8px;
6533
6681
  }
6534
6682
 
6535
- @keyframes dying-pop {
6536
- 0% {
6537
- transform: scale(0.4);
6538
- }
6539
-
6540
- 60% {
6541
- transform: scale(1.25);
6542
- }
6543
-
6544
- 100% {
6545
- transform: scale(1);
6546
- }
6683
+ .ask-stage {
6684
+ display: grid;
6685
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
6686
+ grid-template-areas: "who center side";
6687
+ align-items: center;
6688
+ gap: 14px 24px;
6689
+ margin: 12px 0 14px;
6547
6690
  }
6548
6691
 
6549
- @keyframes dying-ring {
6550
- from {
6551
- opacity: 0.9;
6552
- transform: scale(0.8);
6553
- }
6554
-
6555
- to {
6556
- opacity: 0;
6557
- transform: scale(1.6);
6558
- }
6692
+ .ask-place {
6693
+ display: grid;
6694
+ align-content: start;
6695
+ justify-items: start;
6696
+ gap: 10px;
6697
+ min-width: 0;
6559
6698
  }
6560
6699
 
6561
- @keyframes dying-word {
6562
- from {
6563
- opacity: 0;
6564
- transform: translateY(6px);
6565
- }
6700
+ .ask-place.at-who {
6701
+ grid-area: who;
6566
6702
  }
6567
6703
 
6568
- /* The dice of a rest the master asks the player to spend (D-492, ASK-14): a card in the frame of the master's question, which stays while they roll. Who rests
6569
- and the points the dice give, as a bar that keeps where the rest began; a row for each kind of die with its pips and its button; the dice rolled as chips;
6570
- the one button that ends it. Wide, the points and the dice side by side; narrow, one under the other. */
6571
- .spend-card .asked-question {
6572
- margin-bottom: 12px;
6704
+ .ask-place.at-center {
6705
+ grid-area: center;
6706
+ justify-items: center;
6573
6707
  }
6574
6708
 
6575
- .spend-play {
6576
- display: grid;
6577
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
6578
- align-items: start;
6579
- gap: 12px 24px;
6580
- max-width: 880px;
6581
- margin-bottom: 12px;
6709
+ /* The counts at the side, each its label before its marks on one line, ending at the card's edge. */
6710
+ .ask-place.at-side {
6711
+ grid-area: side;
6712
+ justify-items: end;
6713
+ gap: 8px;
6582
6714
  }
6583
6715
 
6584
- .spend-life {
6585
- display: grid;
6586
- grid-template-columns: auto minmax(0, 1fr);
6716
+ .ask-place.at-side .ask-track {
6717
+ grid-auto-flow: column;
6587
6718
  align-items: center;
6588
- gap: 14px;
6719
+ gap: 10px;
6589
6720
  }
6590
6721
 
6591
- .spend-token .token {
6592
- --size: 56px;
6722
+ .ask-place.at-side .widget-track-label {
6723
+ text-align: end;
6593
6724
  }
6594
6725
 
6595
- .spend-points {
6726
+ .ask-track {
6596
6727
  display: grid;
6728
+ justify-items: inherit;
6597
6729
  gap: 6px;
6598
6730
  min-width: 0;
6599
6731
  }
6600
6732
 
6601
- .spend-points-head {
6733
+ /* A label in the colour of its marks, and long in some languages: it breaks rather than leave its place. */
6734
+ .ask-track .widget-track-label {
6735
+ overflow-wrap: anywhere;
6736
+ hyphens: auto;
6737
+ }
6738
+
6739
+ /* Who acts (D-509): their coin, their name over what they do. */
6740
+ .who-acts {
6602
6741
  display: flex;
6603
- flex-wrap: wrap;
6604
- align-items: baseline;
6605
- gap: 4px 10px;
6742
+ align-items: center;
6743
+ gap: 12px;
6744
+ min-width: 0;
6606
6745
  }
6607
6746
 
6608
- .spend-points-number {
6609
- font-variant-numeric: tabular-nums;
6747
+ .who-acts .token {
6748
+ --size: 64px;
6610
6749
  }
6611
6750
 
6612
- .spend-points-number b {
6613
- font-size: 1.6rem;
6614
- font-weight: 700;
6615
- line-height: 1;
6751
+ /* In a widget's card beside the page, a coin as the strip's. */
6752
+ .widget-body .who-acts .token {
6753
+ --size: 44px;
6616
6754
  }
6617
6755
 
6618
- .spend-points-max {
6619
- color: var(--muted);
6620
- font-weight: 700;
6756
+ .who-acts-words {
6757
+ display: grid;
6758
+ min-width: 0;
6759
+ margin: 0;
6760
+ line-height: 1.25;
6761
+ overflow-wrap: anywhere;
6621
6762
  }
6622
6763
 
6623
- .spend-gain {
6624
- color: var(--ally);
6764
+ .who-acts-name {
6765
+ font-size: 1.05rem;
6625
6766
  font-weight: 700;
6626
- font-variant-numeric: tabular-nums;
6627
6767
  }
6628
6768
 
6629
- .spend-full {
6630
- display: inline-flex;
6631
- align-items: center;
6632
- gap: 3px;
6769
+ .who-acts-does {
6633
6770
  color: var(--muted);
6634
- font-size: 0.85rem;
6635
- font-weight: 600;
6771
+ font-size: 0.9rem;
6636
6772
  }
6637
6773
 
6638
- .spend-full svg.icon {
6639
- width: 16px;
6640
- height: 16px;
6774
+ .ask-track.good .widget-track-label {
6641
6775
  color: var(--ally);
6642
- stroke-width: 2.5;
6643
- }
6644
-
6645
- /* Where the rest began, solid; what it gave, the same green lighter in both themes, a notch between them on the side the bar grows to. */
6646
- .bar.spend-bar {
6647
- width: 100%;
6648
- height: 12px;
6649
- border-radius: var(--radius-s);
6650
6776
  }
6651
6777
 
6652
- .spend-bar .spend-now {
6653
- background: light-dark(color-mix(in srgb, var(--ally) 50%, var(--float)), color-mix(in srgb, var(--ally) 55%, white));
6778
+ .ask-track.bad .widget-track-label {
6779
+ color: var(--low);
6654
6780
  }
6655
6781
 
6656
- .spend-bar .spend-before {
6657
- border-inline-end: 2px solid var(--float);
6658
- background: var(--ally);
6782
+ .ask-track .pips {
6783
+ gap: 6px;
6659
6784
  }
6660
6785
 
6661
- .spend-rows {
6662
- display: grid;
6663
- gap: 8px;
6664
- margin: 0;
6665
- padding: 0;
6666
- list-style: none;
6786
+ .ask-track .pip {
6787
+ width: 20px;
6788
+ height: 20px;
6789
+ border-width: 2px;
6667
6790
  }
6668
6791
 
6669
- .spend-row {
6670
- display: grid;
6671
- grid-template-columns: minmax(0, 1fr) auto auto;
6672
- align-items: center;
6673
- gap: 4px 12px;
6674
- padding-block: 6px;
6675
- padding-inline: 12px 6px;
6676
- border-radius: var(--radius-m);
6677
- background: var(--panel-2);
6792
+ .ask-track .pips.steps {
6793
+ gap: 7px;
6678
6794
  }
6679
6795
 
6680
- .spend-row-name {
6681
- font-weight: 700;
6796
+ .ask-track .pips.steps .pip {
6797
+ width: 16px;
6798
+ height: 34px;
6799
+ border-radius: 5px;
6682
6800
  }
6683
6801
 
6684
- .spend-row.out .spend-row-name {
6685
- color: var(--muted);
6802
+ .ask-facts {
6803
+ justify-content: flex-end;
6686
6804
  }
6687
6805
 
6688
- .spend-pips {
6689
- gap: 6px;
6806
+ .ask-others {
6807
+ display: grid;
6808
+ gap: 10px;
6809
+ margin-bottom: 14px;
6690
6810
  }
6691
6811
 
6692
- .spend-pips .pip {
6693
- width: 16px;
6694
- height: 16px;
6695
- border-width: 2px;
6812
+ .ask-foot {
6813
+ display: grid;
6814
+ justify-items: center;
6815
+ gap: 8px;
6816
+ text-align: center;
6696
6817
  }
6697
6818
 
6698
- /* The die just spent: a ring around its pip. */
6699
- .spend-pips .pip.fresh {
6700
- box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
6819
+ /* The question of a die that asks a choice, as "A 1 came up: reroll?", over its two buttons: the card's title stays the attempt's. */
6820
+ .ask-prompt {
6821
+ margin: 0;
6822
+ font-weight: 650;
6701
6823
  }
6702
6824
 
6703
- .spend-count {
6704
- color: var(--muted);
6705
- font-weight: 700;
6706
- font-variant-numeric: tabular-nums;
6825
+ .ask-choices {
6826
+ display: flex;
6827
+ flex-wrap: wrap;
6828
+ justify-content: center;
6829
+ gap: 10px;
6830
+ width: 100%;
6707
6831
  }
6708
6832
 
6709
- .spend-roll {
6710
- /* The die in front hides its lines with the button's gold. */
6833
+ .ask-roll {
6834
+ /* The die in front hides the lines of the one behind it with the button's gold, as a check's button. */
6711
6835
  --die-ground: var(--gold);
6712
6836
  display: inline-flex;
6713
6837
  align-items: center;
6714
6838
  justify-content: center;
6715
6839
  gap: 8px;
6716
- min-width: 116px;
6717
- min-height: 44px;
6718
- padding-block: 6px;
6719
- padding-inline: 12px 16px;
6840
+ min-width: min(320px, 100%);
6841
+ min-height: 48px;
6842
+ padding: 8px 20px;
6720
6843
  border: 0;
6721
6844
  border-radius: var(--radius-m);
6722
6845
  background: var(--gold);
6723
6846
  color: var(--on-gold);
6724
6847
  font: inherit;
6725
- font-weight: 600;
6848
+ font-weight: 650;
6726
6849
  box-shadow: var(--raise);
6727
6850
  cursor: pointer;
6728
6851
  }
6729
6852
 
6730
- .spend-roll[aria-disabled="true"] {
6731
- cursor: default;
6732
- opacity: 0.55;
6853
+ .ask-leave {
6854
+ gap: 8px;
6855
+ min-height: 48px;
6856
+ padding: 8px 20px;
6733
6857
  }
6734
6858
 
6735
- .spend-roll.sent {
6736
- opacity: 1;
6737
- outline: 2px solid var(--accent);
6738
- outline-offset: 2px;
6859
+ .ask-choices:has(> :nth-child(2)) > :is(.ask-roll, .ask-leave) {
6860
+ min-width: min(220px, 100%);
6739
6861
  }
6740
6862
 
6741
- .spend-row.out .spend-roll {
6742
- --die-ground: transparent;
6743
- background: transparent;
6744
- color: var(--muted);
6745
- box-shadow: inset 0 0 0 1px var(--rule);
6746
- opacity: 1;
6747
- }
6748
-
6749
- .spend-foot {
6750
- display: flex;
6751
- flex-wrap: wrap;
6752
- align-items: center;
6753
- justify-content: space-between;
6754
- gap: 10px 16px;
6755
- max-width: 880px;
6863
+ /* What the button costs or leaves, as "3 left", after its name. */
6864
+ .ask-note {
6865
+ font-weight: 400;
6756
6866
  }
6757
6867
 
6758
- .spend-hint {
6759
- margin: 0;
6760
- color: var(--muted);
6761
- font-size: 0.85rem;
6868
+ .ask-choices > [aria-disabled="true"] {
6869
+ cursor: default;
6870
+ opacity: 0.55;
6762
6871
  }
6763
6872
 
6764
- .spend-chips {
6765
- display: flex;
6766
- flex-wrap: wrap;
6767
- gap: 6px 10px;
6768
- margin: 0;
6769
- padding: 0;
6770
- list-style: none;
6873
+ .ask-choices > .sent {
6874
+ opacity: 1;
6875
+ outline: 2px solid var(--accent);
6876
+ outline-offset: 2px;
6771
6877
  }
6772
6878
 
6773
- .spend-chip {
6879
+ /* The outcome, large where the buttons were and as tall: green when it went well, red when not, with the widget's icon. */
6880
+ .ask-outcome {
6774
6881
  display: inline-flex;
6775
6882
  align-items: center;
6776
- gap: 4px;
6777
- font-variant-numeric: tabular-nums;
6778
- }
6779
-
6780
- .spend-chip .die-chip {
6781
- box-shadow: inset 0 0 0 1px var(--rule);
6883
+ justify-content: center;
6884
+ gap: 8px;
6885
+ min-height: 48px;
6886
+ margin: 0;
6887
+ color: var(--ink);
6888
+ font-size: 1.6rem;
6889
+ font-weight: 800;
6890
+ line-height: 1.2;
6782
6891
  }
6783
6892
 
6784
- .spend-chip.fresh .die-chip {
6785
- box-shadow: inset 0 0 0 2px var(--accent);
6893
+ .ask-outcome.good {
6894
+ color: var(--ally);
6786
6895
  }
6787
6896
 
6788
- .spend-chip-adds {
6789
- color: var(--muted);
6790
- font-size: 0.85rem;
6791
- font-weight: 600;
6897
+ .ask-outcome.bad {
6898
+ color: var(--low);
6792
6899
  }
6793
6900
 
6794
- .spend-chip-total {
6795
- font-weight: 700;
6901
+ .ask-outcome-icon {
6902
+ flex: 0 0 auto;
6903
+ width: 30px;
6904
+ height: 30px;
6905
+ fill: none;
6906
+ stroke: currentColor;
6907
+ stroke-width: 2;
6908
+ stroke-linecap: round;
6909
+ stroke-linejoin: round;
6796
6910
  }
6797
6911
 
6798
- .spend-done {
6799
- min-height: 44px;
6800
- margin-inline-start: auto;
6801
- padding: 8px 18px;
6802
- border: 1px solid var(--rule);
6803
- border-radius: var(--radius-m);
6804
- background: var(--panel-2);
6805
- color: var(--ink);
6806
- font: inherit;
6912
+ .ask-then {
6913
+ margin: -6px 0 0;
6807
6914
  font-weight: 600;
6808
- cursor: pointer;
6809
6915
  }
6810
6916
 
6811
- .spend-done[aria-disabled="true"] {
6812
- cursor: default;
6813
- opacity: 0.55;
6917
+ /* The player's own words, as in the master's question, the whole width it may take under the rule. */
6918
+ .ask-own {
6919
+ width: 100%;
6920
+ margin-top: 2px;
6814
6921
  }
6815
6922
 
6816
- /* Wide, the button keeps its width as its words change at the first die. */
6817
- @media (min-width: 601px) {
6818
- .spend-done {
6819
- min-width: 8.5em;
6820
- }
6923
+ .ask-own input {
6924
+ text-align: start;
6821
6925
  }
6822
6926
 
6823
- /* With no die left, ending it is all there is to do. */
6824
- .spend-done.last {
6825
- border-color: transparent;
6826
- background: var(--gold);
6827
- color: var(--on-gold);
6828
- box-shadow: var(--raise);
6927
+ .ask-rule {
6928
+ margin: 0;
6929
+ color: var(--muted);
6930
+ font-size: 0.85rem;
6931
+ text-wrap: balance;
6829
6932
  }
6830
6933
 
6831
- @media (prefers-reduced-motion: no-preference) {
6832
- .spend-chip.fresh {
6833
- animation: spend-pop var(--medium) var(--ease-bounce) both;
6934
+ @media (max-width: 600px) {
6935
+ /* Told, the card scrolls away with the page: the player reads on. */
6936
+ .ask-card.ended {
6937
+ position: relative;
6938
+ top: auto;
6834
6939
  }
6835
6940
 
6836
- .spend-pips .pip {
6837
- transition: background-color var(--short) var(--ease), box-shadow var(--short) var(--ease);
6941
+ /* A tinted card stays in sight until the player closes it, closer to its edges. */
6942
+ .ask-card.tinted,
6943
+ .ask-card.tinted.ended {
6944
+ position: sticky;
6945
+ top: calc(var(--top-space) + var(--gap));
6946
+ padding: 12px 14px 14px;
6838
6947
  }
6839
- }
6840
6948
 
6841
- @keyframes spend-pop {
6842
- from {
6843
- opacity: 0;
6844
- transform: scale(0.6);
6949
+ .ask-card.tinted .asked-body {
6950
+ gap: 10px;
6845
6951
  }
6846
- }
6847
6952
 
6848
- @media (max-width: 600px) {
6849
- .spend-play {
6953
+ .ask-stage {
6850
6954
  grid-template-columns: minmax(0, 1fr);
6955
+ grid-template-areas: "who" "center" "side";
6851
6956
  gap: 10px;
6852
- margin-bottom: 10px;
6957
+ margin: 8px 0 10px;
6853
6958
  }
6854
6959
 
6855
- .spend-life {
6856
- gap: 10px;
6960
+ .who-acts .token {
6961
+ --size: 40px;
6857
6962
  }
6858
6963
 
6859
- .spend-token .token {
6860
- --size: 44px;
6964
+ .who-acts-words {
6965
+ display: block;
6861
6966
  }
6862
6967
 
6863
- .spend-points-number b {
6864
- font-size: 1.35rem;
6968
+ .who-acts-does::before {
6969
+ content: " ";
6865
6970
  }
6866
6971
 
6867
- .spend-row {
6868
- grid-template-columns: minmax(0, 1fr) auto;
6869
- padding-inline: 10px 6px;
6972
+ /* The counts at the side in a row under the middle, from edge to edge; the facts under them. */
6973
+ .ask-place.at-side {
6974
+ display: flex;
6975
+ flex-wrap: wrap;
6976
+ justify-content: space-between;
6977
+ align-items: center;
6978
+ gap: 8px 12px;
6870
6979
  }
6871
6980
 
6872
- .spend-row-name {
6873
- grid-column: 1;
6874
- grid-row: 1;
6875
- font-size: 0.85rem;
6981
+ .ask-place.at-side .ask-facts {
6982
+ flex-basis: 100%;
6876
6983
  }
6877
6984
 
6878
- .spend-pips,
6879
- .spend-count {
6880
- grid-column: 1;
6881
- grid-row: 2;
6985
+ .ask-track .pip {
6986
+ width: 18px;
6987
+ height: 18px;
6882
6988
  }
6883
6989
 
6884
- .spend-pips .pip {
6990
+ .ask-track .pips.steps {
6991
+ gap: 6px;
6992
+ }
6993
+
6994
+ .ask-track .pips.steps .pip {
6885
6995
  width: 14px;
6886
- height: 14px;
6996
+ height: 30px;
6887
6997
  }
6888
6998
 
6889
- .spend-roll {
6890
- grid-column: 2;
6891
- grid-row: 1 / span 2;
6892
- min-width: 104px;
6999
+ .ask-roll {
7000
+ width: 100%;
7001
+ min-width: 0;
6893
7002
  }
6894
7003
 
6895
- .spend-foot {
7004
+ /* Two choices side by side, their names over their notes. */
7005
+ .ask-choices:has(> :nth-child(2)) {
7006
+ display: grid;
7007
+ grid-auto-flow: column;
7008
+ grid-auto-columns: minmax(0, 1fr);
6896
7009
  gap: 8px;
6897
7010
  }
6898
7011
 
6899
- .spend-done {
6900
- flex: 1 1 100%;
7012
+ .ask-choices:has(> :nth-child(2)) > :is(.ask-roll, .ask-leave) {
7013
+ display: grid;
7014
+ justify-items: center;
7015
+ align-content: center;
7016
+ gap: 0;
7017
+ min-width: 0;
7018
+ min-height: 56px;
7019
+ padding: 6px 8px;
7020
+ line-height: 1.2;
7021
+ }
7022
+
7023
+ .ask-choices:has(> :nth-child(2)) .die-icons {
7024
+ display: none;
6901
7025
  }
6902
7026
 
6903
- .spend-hint {
7027
+ .ask-choices:has(> :nth-child(2)) .ask-note {
6904
7028
  font-size: 0.85rem;
6905
7029
  }
7030
+
7031
+ .ask-outcome {
7032
+ font-size: 1.4rem;
7033
+ }
7034
+ }
7035
+
7036
+ /* The marks move only for who wants it, and never make the player wait: the choices can be pressed as they come. While the roll is asked, the marks it may
7037
+ light breathe; lit by the dice, one after the other in their order; gone out from the last, falling a little; a failed one struck with a shake; a pip
7038
+ spent leaves a ring. Reduced, the states are simply there. */
7039
+ @media (prefers-reduced-motion: no-preference) {
7040
+ .ask-card.asking .pip.coming {
7041
+ animation: ask-breathe 1.6s var(--ease) infinite alternate;
7042
+ }
7043
+
7044
+ .ask-track .pip.lit {
7045
+ animation: mark-pop var(--short) var(--ease-bounce) calc(var(--step, 0) * var(--quick) / 2) both;
7046
+ }
7047
+
7048
+ .ask-track .pip.out {
7049
+ animation: ask-out var(--short) var(--ease-in) calc(var(--step, 0) * var(--quick) / 3) both;
7050
+ }
7051
+
7052
+ .ask-track .pip.struck {
7053
+ animation: ask-struck var(--short) var(--ease-out) both;
7054
+ }
7055
+
7056
+ .ask-track .pips:not(.steps) .pip.out::after {
7057
+ content: "";
7058
+ position: absolute;
7059
+ inset: -6px;
7060
+ border: 2px solid var(--mark, var(--accent));
7061
+ border-radius: inherit;
7062
+ animation: mark-ring var(--long) var(--ease-out) both;
7063
+ }
7064
+
7065
+ .ask-card .ask-outcome {
7066
+ animation: word-rise var(--medium) var(--ease-out) both;
7067
+ }
7068
+ }
7069
+
7070
+ @keyframes ask-breathe {
7071
+ from {
7072
+ opacity: 0.5;
7073
+ }
7074
+
7075
+ to {
7076
+ opacity: 1;
7077
+ }
7078
+ }
7079
+
7080
+ @keyframes ask-out {
7081
+ from {
7082
+ background-color: var(--mark, var(--accent));
7083
+ }
7084
+
7085
+ 50% {
7086
+ opacity: 0.7;
7087
+ transform: translateY(3px);
7088
+ }
7089
+ }
7090
+
7091
+ @keyframes ask-struck {
7092
+ 0% {
7093
+ transform: scale(0.6);
7094
+ }
7095
+
7096
+ 50% {
7097
+ transform: scale(1.15) translateX(2px);
7098
+ }
7099
+
7100
+ 75% {
7101
+ transform: translateX(-2px);
7102
+ }
7103
+ }
7104
+
7105
+ /* The dice of a rest asked with no package's card (ASK-14): what they give, over a button for each counter of dice. */
7106
+ .asked-gives {
7107
+ margin: 0 0 8px;
7108
+ font-weight: 600;
7109
+ font-variant-numeric: tabular-nums;
6906
7110
  }
6907
7111
 
6908
7112
  /* A number of the sheet the master asks a check of (D-330, ASK-12): lit in gold, breathing unless motion is reduced; a click answers the check. */
@@ -7281,7 +7485,6 @@ summary.fixed {
7281
7485
  cursor: pointer;
7282
7486
  }
7283
7487
 
7284
-
7285
7488
  .rolls-none {
7286
7489
  margin: 0 0 8px;
7287
7490
  color: var(--muted);
@@ -7438,6 +7641,14 @@ summary.fixed {
7438
7641
  color: var(--ink);
7439
7642
  }
7440
7643
 
7644
+ /* What an extension's roll says in place of a total that means nothing: words, smaller, at most two lines. */
7645
+ .roll-total.roll-says {
7646
+ max-width: 12ch;
7647
+ font-size: 0.95rem;
7648
+ font-weight: 600;
7649
+ text-wrap: balance;
7650
+ }
7651
+
7441
7652
  .roll-dice {
7442
7653
  grid-column: 2;
7443
7654
  margin-top: 4px;
@@ -7562,7 +7773,6 @@ summary.fixed {
7562
7773
  gap: 2px 8px;
7563
7774
  }
7564
7775
 
7565
-
7566
7776
  .plate-tag {
7567
7777
  padding: 1px 6px;
7568
7778
  border: 1px dashed var(--muted);
@@ -7604,6 +7814,21 @@ summary.fixed {
7604
7814
  color: var(--accent);
7605
7815
  }
7606
7816
 
7817
+ /* A die of a package's roll that went well or badly for who rolled it, by its colour beside its face (D-507). */
7818
+ .die-chip.tone-good {
7819
+ box-shadow: inset 0 0 0 1.5px var(--ally);
7820
+ color: var(--ally);
7821
+ }
7822
+
7823
+ .die-chip.tone-bad {
7824
+ box-shadow: inset 0 0 0 1.5px var(--low);
7825
+ color: var(--low);
7826
+ }
7827
+
7828
+ .die-chip:is(.tone-good, .tone-bad) svg.die {
7829
+ color: currentColor;
7830
+ }
7831
+
7607
7832
  .die-chip.dropped {
7608
7833
  background: transparent;
7609
7834
  box-shadow: inset 0 0 0 1px var(--rule);
@@ -7814,6 +8039,18 @@ summary.fixed {
7814
8039
  box-shadow: var(--plate-shadow);
7815
8040
  }
7816
8041
 
8042
+ /* What the faces of a package's roll mean, in place of the total: words, smaller (D-507). */
8043
+ .plate-total.plate-says {
8044
+ max-width: 9em;
8045
+ color: var(--ink);
8046
+ font-size: 1.15rem;
8047
+ font-weight: 700;
8048
+ line-height: 1.2;
8049
+ letter-spacing: normal;
8050
+ text-align: center;
8051
+ text-wrap: balance;
8052
+ }
8053
+
7817
8054
  .dice-result.free .plate-total {
7818
8055
  color: var(--ink);
7819
8056
  }
@@ -8151,7 +8388,6 @@ svg.icon {
8151
8388
  font-size: 0.8rem;
8152
8389
  }
8153
8390
 
8154
-
8155
8391
  .tray-note .icon-button {
8156
8392
  width: 36px;
8157
8393
  height: 36px;
@@ -8468,7 +8704,7 @@ svg.icon {
8468
8704
  }
8469
8705
 
8470
8706
  .top-place,
8471
- .top .sections a.page-link,
8707
+ .top .sections .page-link,
8472
8708
  .theme-corner {
8473
8709
  display: none;
8474
8710
  }
@@ -8508,6 +8744,18 @@ svg.icon {
8508
8744
  color: var(--ink);
8509
8745
  }
8510
8746
 
8747
+ /* A package's tab in the bar as a section, its title cut short to its share of the bar. */
8748
+ .top .main-nav a {
8749
+ min-width: 0;
8750
+ }
8751
+
8752
+ .top .main-nav .section-name {
8753
+ max-width: 100%;
8754
+ overflow: hidden;
8755
+ text-overflow: ellipsis;
8756
+ padding-inline: 2px;
8757
+ }
8758
+
8511
8759
  .top .main-nav .section-mark {
8512
8760
  width: 52px;
8513
8761
  height: 30px;
@@ -8540,7 +8788,6 @@ svg.icon {
8540
8788
  display: block;
8541
8789
  }
8542
8790
 
8543
-
8544
8791
  .line-value {
8545
8792
  min-width: 0;
8546
8793
  height: auto;
@@ -9601,7 +9848,7 @@ svg.icon {
9601
9848
  justify-content: end;
9602
9849
  }
9603
9850
 
9604
- .turns-card.on-table .turn-main > :is(.keeping, .death-saves) {
9851
+ .turns-card.on-table .turn-main > :is(.keeping, .person-panel) {
9605
9852
  grid-column: 1 / -1;
9606
9853
  }
9607
9854
 
@@ -9674,9 +9921,9 @@ svg.icon {
9674
9921
  font-size: 0.8rem;
9675
9922
  }
9676
9923
 
9677
- /* The panel of the dying (D-310 (7), D-314, D-461), in the language of the death save's card: the successes on one side, the failures on the other, the line
9678
- of the heart and the word between them, tinted by where they stand: red dying, green stable, grey dead with the line flat. */
9679
- .death-saves {
9924
+ /* The panel of a package's widget on one of the party at 0 (D-461, D-516), as the 5e's death saves: the good counts on one side, the bad ones on the other,
9925
+ the package's figure and the word between them, tinted by where they stand: red by a bad tone, green by a good one, grey dead. */
9926
+ .person-panel {
9680
9927
  --tint: var(--low);
9681
9928
  display: grid;
9682
9929
  grid-template-columns: auto minmax(0, 1fr) auto;
@@ -9689,72 +9936,100 @@ svg.icon {
9689
9936
  background: color-mix(in srgb, var(--tint) 9%, transparent);
9690
9937
  }
9691
9938
 
9692
- .death-saves.stable {
9939
+ .person-panel.stable {
9693
9940
  --tint: var(--ally);
9694
9941
  }
9695
9942
 
9696
- .death-saves.dead {
9943
+ .person-panel.dead {
9944
+ --tint: var(--muted);
9945
+ }
9946
+
9947
+ /* Its lead's word at a lead's size without a figure, quiet without a tone; with one side only, the word beside it, the two in the middle. */
9948
+ .person-panel.quiet {
9697
9949
  --tint: var(--muted);
9698
9950
  }
9699
9951
 
9700
- .band .death-saves {
9952
+ .person-panel:not(.compact, .figured) .person-word {
9953
+ font-size: 1.25rem;
9954
+ }
9955
+
9956
+ .person-panel.quiet .person-word,
9957
+ .member-state.quiet {
9958
+ color: var(--ink);
9959
+ }
9960
+
9961
+ .person-panel.one-side:not(.compact) {
9962
+ display: flex;
9963
+ flex-wrap: wrap;
9964
+ justify-content: center;
9965
+ align-items: center;
9966
+ gap: 12px 32px;
9967
+ }
9968
+
9969
+ /* A package's figure over the word, as the 5e's line of the heart: a band the width of the middle and as tall as a line; short in a row of the turns. */
9970
+ .person-panel .ext-figure {
9971
+ width: 100%;
9972
+ height: 34px;
9973
+ aspect-ratio: auto;
9974
+ }
9975
+
9976
+ .person-panel.compact .ext-figure {
9977
+ width: 34px;
9978
+ height: 14px;
9979
+ }
9980
+
9981
+ .band .person-panel {
9701
9982
  flex-basis: 100%;
9702
9983
  }
9703
9984
 
9704
- .death-middle {
9985
+ .person-middle {
9705
9986
  display: grid;
9706
9987
  justify-items: center;
9707
9988
  gap: 2px;
9708
9989
  min-width: 0;
9709
9990
  }
9710
9991
 
9711
- .death-saves .dying-line {
9712
- position: static;
9713
- width: 100%;
9714
- height: 34px;
9715
- }
9716
-
9717
- .death-word {
9992
+ .person-word {
9718
9993
  color: var(--low);
9719
9994
  font-weight: 700;
9720
9995
  }
9721
9996
 
9722
- .death-saves.stable .death-word {
9997
+ .person-panel.stable .person-word {
9723
9998
  color: var(--ally);
9724
9999
  }
9725
10000
 
9726
- .death-saves .dying-mark {
10001
+ .person-panel .person-mark {
9727
10002
  width: 22px;
9728
10003
  height: 22px;
9729
10004
  }
9730
10005
 
9731
- .death-saves.dead .dying-mark {
10006
+ .person-panel.dead .person-mark {
9732
10007
  opacity: 0.55;
9733
10008
  }
9734
10009
 
9735
10010
  /* Narrow, in the card at hand beside the map or on a phone: the two sides above, the line and the word under them. */
9736
- .at-hand .death-saves {
10011
+ .at-hand .person-panel {
9737
10012
  grid-template-columns: 1fr 1fr;
9738
10013
  }
9739
10014
 
9740
- .at-hand .death-middle {
10015
+ .at-hand .person-middle {
9741
10016
  grid-row: 2;
9742
10017
  grid-column: 1 / -1;
9743
10018
  }
9744
10019
 
9745
10020
  @media (max-width: 600px) {
9746
- .band .death-saves {
10021
+ .band .person-panel {
9747
10022
  grid-template-columns: 1fr 1fr;
9748
10023
  }
9749
10024
 
9750
- .band .death-middle {
10025
+ .band .person-middle {
9751
10026
  grid-row: 2;
9752
10027
  grid-column: 1 / -1;
9753
10028
  }
9754
10029
  }
9755
10030
 
9756
10031
  /* In a row of the turns, one line: the marks small, the line short, the word after them. */
9757
- .death-saves.compact {
10032
+ .person-panel.compact {
9758
10033
  display: flex;
9759
10034
  flex-wrap: wrap;
9760
10035
  gap: 6px 8px;
@@ -9763,32 +10038,27 @@ svg.icon {
9763
10038
  background: none;
9764
10039
  }
9765
10040
 
9766
- .death-saves.compact .dying-label {
10041
+ .person-panel.compact .person-label {
9767
10042
  display: none;
9768
10043
  }
9769
10044
 
9770
- .death-saves.compact .dying-marks {
10045
+ .person-panel.compact .person-marks {
9771
10046
  gap: 4px;
9772
10047
  }
9773
10048
 
9774
- .death-saves.compact .dying-mark {
10049
+ .person-panel.compact .person-mark {
9775
10050
  width: 14px;
9776
10051
  height: 14px;
9777
10052
  }
9778
10053
 
9779
- .death-saves.compact .death-middle {
10054
+ .person-panel.compact .person-middle {
9780
10055
  display: flex;
9781
10056
  align-items: center;
9782
10057
  gap: 8px;
9783
10058
  order: 3;
9784
10059
  }
9785
10060
 
9786
- .death-saves.compact .dying-line {
9787
- width: 34px;
9788
- height: 14px;
9789
- }
9790
-
9791
- .death-saves.compact .death-word {
10061
+ .person-panel.compact .person-word {
9792
10062
  font-size: 0.8rem;
9793
10063
  }
9794
10064
 
@@ -9816,7 +10086,7 @@ svg.icon {
9816
10086
  /* The skull is drawn filled, its eyes, nose and teeth holes in it, to read at 12 pixels. */
9817
10087
  .token .status-pip svg path.filled,
9818
10088
  .status-icon svg path.filled,
9819
- .dying-skull path {
10089
+ .person-skull path {
9820
10090
  fill: currentColor;
9821
10091
  stroke: none;
9822
10092
  fill-rule: evenodd;
@@ -9826,7 +10096,7 @@ svg.icon {
9826
10096
  fill: var(--pip-ink);
9827
10097
  }
9828
10098
 
9829
- .dying-skull {
10099
+ .person-skull {
9830
10100
  width: 1em;
9831
10101
  height: 1em;
9832
10102
  margin-inline-end: 0.3em;
@@ -9848,7 +10118,7 @@ svg.icon {
9848
10118
  --tint: var(--ally);
9849
10119
  }
9850
10120
 
9851
- .member-dying {
10121
+ .member-state {
9852
10122
  display: grid;
9853
10123
  gap: 2px;
9854
10124
  color: var(--low);
@@ -9856,7 +10126,7 @@ svg.icon {
9856
10126
  font-weight: 700;
9857
10127
  }
9858
10128
 
9859
- .member-dying.stable {
10129
+ .member-state.stable {
9860
10130
  color: var(--ally);
9861
10131
  }
9862
10132
 
@@ -9903,7 +10173,7 @@ svg.icon {
9903
10173
  align-self: stretch;
9904
10174
  }
9905
10175
 
9906
- .at-hand:has(.death-saves) {
10176
+ .at-hand:has(.person-panel) {
9907
10177
  padding-bottom: 14px;
9908
10178
  }
9909
10179
 
@@ -12000,7 +12270,6 @@ svg.icon {
12000
12270
  stroke-width: 3;
12001
12271
  }
12002
12272
 
12003
-
12004
12273
  .lm-wall-under {
12005
12274
  fill: #dccfb6;
12006
12275
  }
@@ -13125,47 +13394,6 @@ svg.icon {
13125
13394
  border-top: 0;
13126
13395
  }
13127
13396
 
13128
- /* The death save's card on a phone (D-461): the portrait over the two sides, the line left out, the button the whole width. */
13129
- @media (max-width: 600px) {
13130
- .dying-card {
13131
- gap: 10px;
13132
- padding: 12px 14px 14px;
13133
- }
13134
-
13135
- .dying-card .dying-life {
13136
- grid-template-columns: 1fr 1fr;
13137
- min-height: 0;
13138
- }
13139
-
13140
- .dying-card .dying-line {
13141
- display: none;
13142
- }
13143
-
13144
- .dying-card .dying-token {
13145
- grid-column: 1 / -1;
13146
- grid-row: 1;
13147
- justify-self: center;
13148
- width: 84px;
13149
- height: 84px;
13150
- }
13151
-
13152
- .dying-card .dying-token .token {
13153
- --size: 74px;
13154
- }
13155
-
13156
- .dying-card .dying-side {
13157
- grid-row: 2;
13158
- }
13159
-
13160
- .dying-card .dying-roll {
13161
- width: 100%;
13162
- }
13163
-
13164
- .dying-card .dying-word {
13165
- font-size: 1.35rem;
13166
- }
13167
- }
13168
-
13169
13397
  /* The Packages section (D-485, D-486): Add with the catalog under it, then what is here by kind; a row for each package. */
13170
13398
  .packages-lead {
13171
13399
  margin: -6px 0 0;
@@ -13528,6 +13756,28 @@ svg.icon {
13528
13756
  height: 14px;
13529
13757
  }
13530
13758
 
13759
+ /* Where a package's problems are reported: a link of words in its meta, never broken in two. */
13760
+ .package-report {
13761
+ color: var(--accent);
13762
+ font-weight: 600;
13763
+ white-space: nowrap;
13764
+ text-decoration: underline;
13765
+ text-decoration-thickness: 1px;
13766
+ text-underline-offset: 2px;
13767
+ }
13768
+
13769
+ /* On a phone the meta wraps: the link goes under it, never a dot left at a line's end. */
13770
+ @media (max-width: 600px) {
13771
+ .package-report-gap {
13772
+ display: none;
13773
+ }
13774
+
13775
+ .package-report {
13776
+ display: block;
13777
+ width: fit-content;
13778
+ }
13779
+ }
13780
+
13531
13781
  /* Where a package is already, the system in use, an adventure in the story: words, never a button. */
13532
13782
  .package-here,
13533
13783
  .package-lock {
@@ -13743,6 +13993,41 @@ svg.icon {
13743
13993
  color: var(--ink);
13744
13994
  }
13745
13995
 
13996
+ /* What a package's latest needs of the engine (D-515 (2)), under its meta: the words in --muted, the way to the engine's card in the accent. */
13997
+ .package-needs {
13998
+ display: flex;
13999
+ flex-wrap: wrap;
14000
+ align-items: center;
14001
+ gap: 0 8px;
14002
+ color: var(--muted);
14003
+ font-size: 0.8rem;
14004
+ overflow-wrap: anywhere;
14005
+ }
14006
+
14007
+ .package-needs .package-see {
14008
+ min-height: 28px;
14009
+ }
14010
+
14011
+ /* The engine installed (D-515 (3)): what to do for the master to use it, framed in the accent as what to know, its steps numbered. */
14012
+ .package-restart {
14013
+ padding: 10px 12px;
14014
+ border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--rule));
14015
+ border-radius: var(--radius-m);
14016
+ background: color-mix(in srgb, var(--accent) 10%, var(--panel));
14017
+ }
14018
+
14019
+ .package-restart p + p {
14020
+ font-weight: 400;
14021
+ }
14022
+
14023
+ .package-restart ol {
14024
+ display: grid;
14025
+ gap: 2px;
14026
+ margin: 2px 0 0;
14027
+ padding-inline-start: 1.4em;
14028
+ font-weight: 400;
14029
+ }
14030
+
13746
14031
  /* The library (D-491 (13)): first, in the accent, that a folder is added once to the computer and turned on in each campaign. */
13747
14032
  .library-scope {
13748
14033
  display: flex;