rpg-engine 0.19.0 → 0.20.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 (152) hide show
  1. package/README.md +9 -6
  2. package/dist/campaign/create-campaign.js +2 -2
  3. package/dist/campaign/find-campaign.d.ts +4 -0
  4. package/dist/campaign/find-campaign.js +5 -1
  5. package/dist/campaign/host-files.js +22 -0
  6. package/dist/campaign/index.d.ts +2 -2
  7. package/dist/campaign/index.js +2 -2
  8. package/dist/campaign/last-choices.d.ts +10 -4
  9. package/dist/campaign/last-choices.js +43 -17
  10. package/dist/campaign/settings.d.ts +10 -2
  11. package/dist/campaign/settings.js +30 -6
  12. package/dist/chats/chat.d.ts +33 -0
  13. package/dist/chats/chat.js +50 -0
  14. package/dist/chats/claude-code.d.ts +5 -0
  15. package/dist/chats/claude-code.js +39 -0
  16. package/dist/chats/codex.d.ts +3 -0
  17. package/dist/chats/codex.js +42 -0
  18. package/dist/chats/index.d.ts +5 -0
  19. package/dist/chats/index.js +12 -0
  20. package/dist/chats/keep.d.ts +10 -0
  21. package/dist/chats/keep.js +50 -0
  22. package/dist/chats/read.d.ts +8 -0
  23. package/dist/chats/read.js +46 -0
  24. package/dist/cli/cli.js +6 -1
  25. package/dist/cli/command-line.js +3 -2
  26. package/dist/commands/book.d.ts +55 -0
  27. package/dist/commands/book.js +105 -0
  28. package/dist/commands/chats.d.ts +38 -0
  29. package/dist/commands/chats.js +93 -0
  30. package/dist/commands/config/config.js +1 -1
  31. package/dist/commands/config/dashboard.d.ts +8 -1
  32. package/dist/commands/config/dashboard.js +63 -15
  33. package/dist/commands/config/words.d.ts +1 -1
  34. package/dist/commands/config/words.js +17 -4
  35. package/dist/commands/find.js +1 -1
  36. package/dist/commands/image.d.ts +9 -0
  37. package/dist/commands/image.js +95 -18
  38. package/dist/commands/index.js +4 -0
  39. package/dist/commands/init.js +3 -3
  40. package/dist/commands/scene/close.d.ts +2 -0
  41. package/dist/commands/scene/close.js +13 -2
  42. package/dist/commands/scene/result.d.ts +2 -0
  43. package/dist/commands/scene/scene.d.ts +2 -0
  44. package/dist/commands/shared/campaign/book.d.ts +29 -0
  45. package/dist/commands/shared/campaign/book.js +95 -0
  46. package/dist/commands/shared/campaign/chats.d.ts +11 -0
  47. package/dist/commands/shared/campaign/chats.js +29 -0
  48. package/dist/commands/shared/campaign/images.js +7 -1
  49. package/dist/commands/shared/campaign/mode.js +3 -1
  50. package/dist/commands/shared/campaign/saves.js +13 -5
  51. package/dist/commands/shared/sheet/sheet.d.ts +7 -0
  52. package/dist/commands/shared/sheet/sheet.js +27 -0
  53. package/dist/commands/shared/time/dawn.d.ts +1 -1
  54. package/dist/commands/shared/time/dawn.js +19 -7
  55. package/dist/commands/status.d.ts +1 -0
  56. package/dist/commands/status.js +4 -0
  57. package/dist/commands/view/page.js +4 -3
  58. package/dist/commands/view/result.d.ts +2 -0
  59. package/dist/commands/view/view.d.ts +1 -0
  60. package/dist/commands/view/view.js +4 -0
  61. package/dist/core/consents.d.ts +2 -2
  62. package/dist/core/consents.js +3 -3
  63. package/dist/core/context.d.ts +38 -2
  64. package/dist/core/download.js +1 -1
  65. package/dist/dashboard/acts/names.js +10 -5
  66. package/dist/dashboard/acts/sending.js +5 -2
  67. package/dist/dashboard/acts/sheet.js +66 -15
  68. package/dist/dashboard/api.js +3 -3
  69. package/dist/dashboard/app.js +2 -2
  70. package/dist/dashboard/guide/ar.md +11 -10
  71. package/dist/dashboard/guide/cs.md +10 -9
  72. package/dist/dashboard/guide/da.md +12 -11
  73. package/dist/dashboard/guide/de.md +12 -11
  74. package/dist/dashboard/guide/el.md +12 -11
  75. package/dist/dashboard/guide/en.md +9 -8
  76. package/dist/dashboard/guide/es.md +10 -9
  77. package/dist/dashboard/guide/fi.md +10 -9
  78. package/dist/dashboard/guide/fr.md +16 -15
  79. package/dist/dashboard/guide/he.md +11 -10
  80. package/dist/dashboard/guide/hi.md +10 -9
  81. package/dist/dashboard/guide/hu.md +14 -13
  82. package/dist/dashboard/guide/is.md +10 -9
  83. package/dist/dashboard/guide/it.md +13 -12
  84. package/dist/dashboard/guide/ja.md +10 -9
  85. package/dist/dashboard/guide/ko.md +11 -10
  86. package/dist/dashboard/guide/nb.md +12 -11
  87. package/dist/dashboard/guide/nl.md +10 -9
  88. package/dist/dashboard/guide/pl.md +11 -10
  89. package/dist/dashboard/guide/pt.md +12 -11
  90. package/dist/dashboard/guide/ro.md +10 -9
  91. package/dist/dashboard/guide/ru.md +12 -11
  92. package/dist/dashboard/guide/sv.md +10 -9
  93. package/dist/dashboard/guide/tr.md +13 -12
  94. package/dist/dashboard/guide/uk.md +13 -12
  95. package/dist/dashboard/guide/zh.md +11 -10
  96. package/dist/dashboard/i18n/ar.json +31 -5
  97. package/dist/dashboard/i18n/cs.json +31 -5
  98. package/dist/dashboard/i18n/da.json +31 -5
  99. package/dist/dashboard/i18n/de.json +31 -5
  100. package/dist/dashboard/i18n/el.json +31 -5
  101. package/dist/dashboard/i18n/es.json +31 -5
  102. package/dist/dashboard/i18n/fi.json +31 -5
  103. package/dist/dashboard/i18n/fr.json +31 -5
  104. package/dist/dashboard/i18n/he.json +31 -5
  105. package/dist/dashboard/i18n/hi.json +31 -5
  106. package/dist/dashboard/i18n/hu.json +31 -5
  107. package/dist/dashboard/i18n/is.json +31 -5
  108. package/dist/dashboard/i18n/it.json +32 -6
  109. package/dist/dashboard/i18n/ja.json +31 -5
  110. package/dist/dashboard/i18n/ko.json +31 -5
  111. package/dist/dashboard/i18n/nb.json +31 -5
  112. package/dist/dashboard/i18n/nl.json +31 -5
  113. package/dist/dashboard/i18n/pl.json +31 -5
  114. package/dist/dashboard/i18n/pt.json +31 -5
  115. package/dist/dashboard/i18n/ro.json +31 -5
  116. package/dist/dashboard/i18n/ru.json +31 -5
  117. package/dist/dashboard/i18n/sv.json +31 -5
  118. package/dist/dashboard/i18n/tr.json +31 -5
  119. package/dist/dashboard/i18n/uk.json +31 -5
  120. package/dist/dashboard/i18n/zh.json +31 -5
  121. package/dist/dashboard/journal/book.js +106 -0
  122. package/dist/dashboard/journal/journal.js +9 -8
  123. package/dist/dashboard/parts/labels.js +6 -0
  124. package/dist/dashboard/parts/widgets.js +1 -1
  125. package/dist/dashboard/place/view.js +1 -1
  126. package/dist/dashboard/settings/settings.js +10 -4
  127. package/dist/dashboard/settings/setup.js +5 -3
  128. package/dist/dashboard/sheet/sheet.js +8 -5
  129. package/dist/dashboard/style.css +459 -96
  130. package/dist/dashboard/world/calendar.js +1 -1
  131. package/dist/dashboard/world/lore.js +1 -1
  132. package/dist/helpers/briefs.d.ts +5 -0
  133. package/dist/helpers/briefs.js +8 -0
  134. package/dist/helpers/chosen.d.ts +8 -2
  135. package/dist/helpers/chosen.js +110 -6
  136. package/dist/helpers/codex.js +2 -1
  137. package/dist/helpers/index.d.ts +2 -2
  138. package/dist/helpers/index.js +2 -2
  139. package/dist/images/images.d.ts +2 -0
  140. package/dist/images/images.js +16 -2
  141. package/dist/images/index.d.ts +1 -1
  142. package/dist/images/index.js +1 -1
  143. package/dist/server/approver.d.ts +6 -0
  144. package/dist/server/approver.js +28 -0
  145. package/dist/server/chats.d.ts +3 -0
  146. package/dist/server/chats.js +27 -0
  147. package/dist/server/dashboard/news.js +36 -5
  148. package/dist/server/mcp.js +37 -6
  149. package/dist/server/player-acts.d.ts +7 -2
  150. package/dist/server/player-acts.js +10 -3
  151. package/instructions/start.md +1 -1
  152. package/package.json +2 -2
@@ -380,7 +380,6 @@
380
380
  outline-offset: 4px !important;
381
381
  }
382
382
 
383
- .act-verb:has(input:focus-visible),
384
383
  .act-who-one:has(input:focus-visible) {
385
384
  outline: 2px solid var(--accent) !important;
386
385
  outline-offset: 2px !important;
@@ -2692,6 +2691,12 @@
2692
2691
  grid-column: auto;
2693
2692
  }
2694
2693
 
2694
+ /* The icon at the top of words that wrap, as every card's. */
2695
+ .widget-lead-icon,
2696
+ .widget-lead.figured > .ext-figure.small {
2697
+ align-self: start;
2698
+ }
2699
+
2695
2700
  .widget-lead-icon {
2696
2701
  width: 40px;
2697
2702
  height: 40px;
@@ -9553,6 +9558,268 @@
9553
9558
  [dir="rtl"] .quest-folded[open] summary::before {
9554
9559
  rotate: -90deg;
9555
9560
  }
9561
+
9562
+ /* 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. */
9563
+ .book {
9564
+ display: grid;
9565
+ grid-template-areas:
9566
+ "index page"
9567
+ ". export";
9568
+ grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
9569
+ gap: 1rem 1.5rem;
9570
+ align-items: start;
9571
+ }
9572
+
9573
+ .book.index-closed {
9574
+ grid-template-columns: auto minmax(0, 1fr);
9575
+ }
9576
+
9577
+ /* 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. */
9578
+ .book-index {
9579
+ position: sticky;
9580
+ top: calc(var(--gap) + var(--top-space) + var(--asked-space, 0px));
9581
+ max-height: calc(100vh - var(--top-space) - var(--asked-space, 0px) - 2 * var(--gap));
9582
+ margin: -4px;
9583
+ padding: 4px;
9584
+ overflow-y: auto;
9585
+ grid-area: index;
9586
+ }
9587
+
9588
+ .book-index ol {
9589
+ display: grid;
9590
+ gap: 2px;
9591
+ margin: 6px 0 0;
9592
+ padding: 0;
9593
+ list-style: none;
9594
+ }
9595
+
9596
+ .book-index li a {
9597
+ position: relative;
9598
+ display: grid;
9599
+ gap: 2px;
9600
+ padding-block: 8px;
9601
+ padding-inline: 10px 28px;
9602
+ border-radius: var(--radius-m);
9603
+ color: var(--ink);
9604
+ text-decoration: none;
9605
+ }
9606
+
9607
+ /* The one open: its row lit, a bar of the accent at its start, as a list's reader. */
9608
+ .book-index li a[aria-current="page"] {
9609
+ background: color-mix(in srgb, var(--accent) 12%, transparent);
9610
+ }
9611
+
9612
+ .book-index li a[aria-current="page"]::before {
9613
+ content: "";
9614
+ position: absolute;
9615
+ inset-block: 8px;
9616
+ inset-inline-start: 0;
9617
+ width: 3px;
9618
+ border-radius: var(--radius-xs);
9619
+ background: var(--accent);
9620
+ }
9621
+
9622
+ .book-index-title {
9623
+ font-family: var(--serif);
9624
+ font-size: 1rem;
9625
+ line-height: 1.3;
9626
+ }
9627
+
9628
+ .book-index-number {
9629
+ margin-inline-end: 6px;
9630
+ color: var(--muted);
9631
+ font-variant-numeric: oldstyle-nums;
9632
+ }
9633
+
9634
+ .book-index-line {
9635
+ color: var(--muted);
9636
+ font-family: var(--serif);
9637
+ font-size: 0.8rem;
9638
+ font-style: italic;
9639
+ line-height: 1.35;
9640
+ }
9641
+
9642
+ /* The bookmark: a ribbon on the last chapter, in the list and over its page. */
9643
+ .book-mark,
9644
+ .book-page.marked::before {
9645
+ content: "";
9646
+ position: absolute;
9647
+ background: var(--doc-seal);
9648
+ clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
9649
+ }
9650
+
9651
+ .book-mark {
9652
+ inset-block-start: 0;
9653
+ inset-inline-end: 9px;
9654
+ width: 9px;
9655
+ height: 18px;
9656
+ }
9657
+
9658
+ .book-page {
9659
+ position: relative;
9660
+ grid-area: page;
9661
+ padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 6vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
9662
+ border-radius: var(--radius-s);
9663
+ background: var(--doc-paper);
9664
+ 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);
9665
+ color: var(--doc-ink);
9666
+ scroll-margin-top: calc(var(--top-space) + var(--asked-space, 0px) + var(--gap));
9667
+ }
9668
+
9669
+ .book-page.marked::before {
9670
+ inset-block-start: -4px;
9671
+ inset-inline-end: 2.5rem;
9672
+ width: 16px;
9673
+ height: 52px;
9674
+ }
9675
+
9676
+ .book-head {
9677
+ margin-bottom: 1.75rem;
9678
+ text-align: center;
9679
+ }
9680
+
9681
+ .book-number {
9682
+ margin: 0;
9683
+ color: var(--doc-note);
9684
+ font-family: var(--serif);
9685
+ font-size: 0.8rem;
9686
+ letter-spacing: 0.16em;
9687
+ text-transform: uppercase;
9688
+ }
9689
+
9690
+ .book-head h3 {
9691
+ margin: 6px 0 0;
9692
+ color: var(--doc-ink);
9693
+ font-family: var(--serif);
9694
+ font-size: clamp(1.4rem, 3vw, 1.85rem);
9695
+ font-weight: 400;
9696
+ line-height: 1.25;
9697
+ text-wrap: balance;
9698
+ }
9699
+
9700
+ .book-ornament {
9701
+ display: block;
9702
+ margin-top: 8px;
9703
+ color: var(--doc-rule);
9704
+ font-size: 1.125rem;
9705
+ }
9706
+
9707
+ .book-text {
9708
+ max-width: 36rem;
9709
+ margin-inline: auto;
9710
+ font-family: var(--serif);
9711
+ font-size: 1.125rem;
9712
+ line-height: 1.65;
9713
+ }
9714
+
9715
+ .book-text p {
9716
+ margin: 0;
9717
+ overflow-wrap: break-word;
9718
+ text-align: justify;
9719
+ text-indent: 1.5em;
9720
+ text-wrap: pretty;
9721
+ hyphens: auto;
9722
+ }
9723
+
9724
+ .book-text p:first-child,
9725
+ .book-text .book-break + p {
9726
+ text-indent: 0;
9727
+ }
9728
+
9729
+ /* A script whose letters join (Arabic) or hang from one line (Devanagari) keeps its first word whole: no capital standing apart. */
9730
+ .book-text p:first-child:not(:lang(ar), :lang(hi), :lang(ja), :lang(zh), :lang(ko))::first-letter {
9731
+ float: inline-start;
9732
+ padding-block-start: 0.06em;
9733
+ padding-inline-end: 0.08em;
9734
+ color: var(--doc-link);
9735
+ font-size: 3.3em;
9736
+ line-height: 0.82;
9737
+ }
9738
+
9739
+ .book-text .book-break {
9740
+ margin: 0.9rem 0;
9741
+ color: var(--doc-rule);
9742
+ text-align: center;
9743
+ }
9744
+
9745
+ /* The page's foot: the chapter before at the start, the folio in the middle, the one after at the end. */
9746
+ .book-turn {
9747
+ display: grid;
9748
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
9749
+ align-items: baseline;
9750
+ gap: 1rem;
9751
+ max-width: 36rem;
9752
+ margin: 2.25rem auto 0;
9753
+ padding-top: 1rem;
9754
+ border-top: 1px solid color-mix(in srgb, var(--doc-rule) 50%, transparent);
9755
+ font-size: 0.85rem;
9756
+ }
9757
+
9758
+ .book-turn a {
9759
+ justify-self: start;
9760
+ padding-block: 4px;
9761
+ border-radius: var(--radius-xs);
9762
+ color: var(--doc-link);
9763
+ text-decoration: none;
9764
+ }
9765
+
9766
+ .book-turn .book-on {
9767
+ justify-self: end;
9768
+ text-align: end;
9769
+ }
9770
+
9771
+ .book-folio {
9772
+ color: var(--doc-note);
9773
+ font-family: var(--serif);
9774
+ white-space: nowrap;
9775
+ }
9776
+
9777
+ [dir="rtl"] .book-arrow {
9778
+ display: inline-block;
9779
+ scale: -1 1;
9780
+ }
9781
+
9782
+ .book-export {
9783
+ display: flex;
9784
+ flex-wrap: wrap;
9785
+ grid-area: export;
9786
+ justify-content: flex-end;
9787
+ gap: 8px;
9788
+ }
9789
+
9790
+ .book-empty {
9791
+ max-width: 36rem;
9792
+ color: var(--muted);
9793
+ font-family: var(--serif);
9794
+ font-size: 1.0625rem;
9795
+ }
9796
+
9797
+ @media (max-width: 760px) {
9798
+ .book,
9799
+ .book.index-closed {
9800
+ grid-template-areas:
9801
+ "index"
9802
+ "page"
9803
+ "export";
9804
+ grid-template-columns: minmax(0, 1fr);
9805
+ }
9806
+
9807
+ .book-index {
9808
+ position: static;
9809
+ }
9810
+
9811
+ /* On a narrow sheet justified lines open gaps: the text keeps its left edge. */
9812
+ .book-text p {
9813
+ text-align: start;
9814
+ }
9815
+ }
9816
+
9817
+ @media (pointer: coarse) {
9818
+ .book-index li a,
9819
+ .book-turn a {
9820
+ min-height: var(--target);
9821
+ }
9822
+ }
9556
9823
  }
9557
9824
  /* The sheet of one of the party: the band, the columns of cards, the equipment and the money, the character's story. */
9558
9825
  @layer pages {
@@ -10287,7 +10554,14 @@
10287
10554
  text-transform: uppercase;
10288
10555
  }
10289
10556
 
10290
- .setup-choice[aria-checked="true"] span:not(.setup-suggested) {
10557
+ /* What the player chose in their last campaign: a note's mark beside the name, never a control, in the muted ink. */
10558
+ .setup-choice .setup-last {
10559
+ font-size: 0.75rem;
10560
+ font-style: italic;
10561
+ font-weight: 400;
10562
+ }
10563
+
10564
+ .setup-choice[aria-checked="true"] span:not(.setup-suggested, .setup-last) {
10291
10565
  color: var(--ink);
10292
10566
  }
10293
10567
 
@@ -10861,12 +11135,6 @@
10861
11135
  position: relative;
10862
11136
  }
10863
11137
 
10864
- .place-band.compact > .place-shot {
10865
- display: flex;
10866
- align-items: center;
10867
- gap: 18px;
10868
- }
10869
-
10870
11138
  /* The text under the picture starts where the name over it does. */
10871
11139
  .place-about {
10872
11140
  display: grid;
@@ -11134,14 +11402,27 @@
11134
11402
  font-weight: 400;
11135
11403
  }
11136
11404
 
11137
- /* Without a picture, a compact band: the place's drawing on a disc where a token would be. */
11405
+ /* 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
11406
  .place-band.compact {
11139
- display: flex;
11140
- align-items: center;
11141
- gap: 18px;
11407
+ display: grid;
11408
+ grid-template-columns: auto minmax(0, 1fr);
11409
+ align-items: start;
11410
+ column-gap: 18px;
11142
11411
  padding: 16px 18px;
11143
11412
  }
11144
11413
 
11414
+ .place-band.compact > .place-shot {
11415
+ display: contents;
11416
+ }
11417
+
11418
+ .place-band.compact .place-disc {
11419
+ grid-row: 1 / span 2;
11420
+ }
11421
+
11422
+ .place-band.compact :is(.place-caption, .place-about) {
11423
+ grid-column: 2;
11424
+ }
11425
+
11145
11426
  .place-band.compact .place-caption {
11146
11427
  padding: 0;
11147
11428
  }
@@ -11359,8 +11640,7 @@
11359
11640
  }
11360
11641
 
11361
11642
  .place-band.compact {
11362
- align-items: flex-start;
11363
- gap: 14px;
11643
+ column-gap: 14px;
11364
11644
  }
11365
11645
 
11366
11646
  .place-disc {
@@ -11493,11 +11773,17 @@
11493
11773
  .turn-now {
11494
11774
  grid-area: now;
11495
11775
  display: flex;
11496
- align-items: center;
11776
+ align-items: flex-start;
11497
11777
  gap: 14px;
11498
11778
  min-width: 0;
11499
11779
  }
11500
11780
 
11781
+ /* The token at the top; the words beside its middle while they are shorter than it. */
11782
+ .turn-now > .turn-who,
11783
+ .turn-who > [aria-live] {
11784
+ align-self: center;
11785
+ }
11786
+
11501
11787
  .turn-now .token {
11502
11788
  --size: 64px;
11503
11789
  }
@@ -11869,8 +12155,11 @@
11869
12155
  column-gap: 12px;
11870
12156
  }
11871
12157
 
12158
+ /* The icon beside the name's line, at the top, not half way down what the character is. */
11872
12159
  .at-hand > .card-head > .card-icon {
11873
12160
  grid-row: 1 / 3;
12161
+ align-self: start;
12162
+ margin-block-start: 2px;
11874
12163
  }
11875
12164
 
11876
12165
  .at-hand > .card-head > h3 {
@@ -11955,7 +12244,7 @@
11955
12244
 
11956
12245
  .turn-notice {
11957
12246
  display: flex;
11958
- align-items: center;
12247
+ align-items: flex-start;
11959
12248
  gap: 12px;
11960
12249
  margin: 0 0 var(--gap);
11961
12250
  padding: 12px 16px;
@@ -11967,9 +12256,16 @@
11967
12256
  text-decoration: none;
11968
12257
  }
11969
12258
 
12259
+ /* The icon and the words' first line level with Go to the scene, however many lines the words take. */
11970
12260
  .turn-notice svg.icon {
12261
+ flex: none;
11971
12262
  width: 22px;
11972
12263
  height: 22px;
12264
+ margin-block-start: 5px;
12265
+ }
12266
+
12267
+ .turn-notice > span:not(.turn-notice-go) {
12268
+ padding-block: 4px;
11973
12269
  }
11974
12270
 
11975
12271
  .turn-notice-round,
@@ -13602,16 +13898,12 @@
13602
13898
  color: var(--muted);
13603
13899
  }
13604
13900
 
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));
13901
+ /* 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.
13902
+ A card in the middle, wider with the map; on a phone a sheet from the foot. */
13903
+ .map-sheet.act-sheet {
13904
+ width: min(520px, calc(100% - 24px));
13613
13905
  height: fit-content;
13614
- max-height: calc(100% - 24px);
13906
+ max-height: calc(100% - 48px);
13615
13907
  margin: auto;
13616
13908
  overflow: hidden;
13617
13909
  border: 1px solid var(--rule);
@@ -13619,78 +13911,124 @@
13619
13911
  box-shadow: var(--overlay);
13620
13912
  }
13621
13913
 
13622
- .act-verbs {
13914
+ .map-sheet.act-sheet.wide {
13915
+ width: min(960px, calc(100% - 24px));
13916
+ }
13917
+
13918
+ .act-sheet[open] {
13623
13919
  display: flex;
13624
- flex-wrap: wrap;
13625
- gap: 8px;
13920
+ flex-direction: column;
13921
+ }
13922
+
13923
+ @media (max-width: 599px) {
13924
+ .map-sheet.act-sheet,
13925
+ .map-sheet.act-sheet.wide {
13926
+ width: 100%;
13927
+ max-height: calc(100% - 24px);
13928
+ margin: auto 0 0;
13929
+ border-width: 1px 0 0;
13930
+ border-radius: var(--radius-xl) var(--radius-xl) 0 0;
13931
+ }
13932
+ }
13933
+
13934
+ .act-head {
13935
+ align-items: flex-start;
13936
+ background: none;
13937
+ }
13938
+
13939
+ .act-heading {
13940
+ flex: 1;
13941
+ min-width: 0;
13942
+ }
13943
+
13944
+ .act-facts {
13945
+ margin: 2px 0 0;
13946
+ color: var(--muted);
13947
+ font-size: 0.85rem;
13948
+ }
13949
+
13950
+ .act-back svg.icon {
13951
+ scale: -1 1;
13952
+ }
13953
+
13954
+ [dir="rtl"] .act-back svg.icon {
13955
+ scale: 1;
13956
+ }
13957
+
13958
+ /* The thing's own page, as much as fits; the rest scrolls. */
13959
+ .act-about {
13960
+ flex: 0 1 auto;
13961
+ min-height: 0;
13962
+ max-height: 50vh;
13963
+ overflow: auto;
13964
+ padding: 14px 16px 4px;
13965
+ line-height: 1.5;
13966
+ }
13967
+
13968
+ /* The thing's data, as damage and weight: label and value in two columns, as a stat block. */
13969
+ .act-data {
13970
+ display: grid;
13971
+ grid-template-columns: max-content 1fr;
13972
+ gap: 6px 16px;
13626
13973
  margin: 0;
13627
- padding: 12px 16px 0;
13628
- border: 0;
13974
+ padding: 14px 16px 0;
13629
13975
  }
13630
13976
 
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;
13977
+ .act-data > div {
13978
+ display: contents;
13640
13979
  }
13641
13980
 
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);
13981
+ .act-data dt {
13982
+ color: var(--muted);
13983
+ font-size: 0.85rem;
13646
13984
  }
13647
13985
 
13648
- .act-verb input,
13649
- .act-who-one input[type="radio"] {
13650
- position: absolute;
13651
- opacity: 0;
13652
- pointer-events: none;
13986
+ .act-data dd {
13987
+ margin: 0;
13988
+ font-weight: 600;
13989
+ }
13990
+
13991
+ .act-about .markdown > :first-child {
13992
+ margin-top: 0;
13993
+ }
13994
+
13995
+ .act-verbs {
13996
+ flex-wrap: wrap;
13997
+ padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
13653
13998
  }
13654
13999
 
13655
14000
  .act-body {
13656
14001
  flex: 1 1 auto;
13657
14002
  min-height: 0;
14003
+ overflow: auto;
13658
14004
  padding: 12px 16px;
13659
14005
  }
13660
14006
 
13661
- .act-sheet:not(.full) .act-body {
13662
- padding-top: 4px;
14007
+ /* The map under the chips, only the paper: as high as leaves the sentence in view, the rest scrolls. */
14008
+ .act-body .lm {
14009
+ max-width: none;
14010
+ margin: 12px 0 0;
14011
+ box-shadow: none;
13663
14012
  }
13664
14013
 
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
- }
14014
+ .act-body .lm-frame {
14015
+ max-height: 44vh;
14016
+ overflow: auto;
14017
+ border: 0;
13676
14018
  }
13677
14019
 
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;
14020
+ /* On a phone the map would be a slit inside a scrolling card: the chips, which name the squares, are enough (desktop first). */
14021
+ @media (max-width: 599px) {
14022
+ .act-body .lm {
14023
+ display: none;
13688
14024
  }
13689
14025
  }
13690
14026
 
14027
+ /* 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
14028
  .act-who {
13692
- display: grid;
13693
- gap: 6px;
14029
+ display: flex;
14030
+ flex-wrap: wrap;
14031
+ gap: 8px;
13694
14032
  margin: 0;
13695
14033
  padding: 0;
13696
14034
  border: 0;
@@ -13701,47 +14039,55 @@
13701
14039
  padding: 0;
13702
14040
  }
13703
14041
 
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
14042
  .act-who-one {
13706
14043
  position: relative;
13707
- display: flex;
13708
- flex-wrap: wrap;
14044
+ display: inline-flex;
13709
14045
  align-items: center;
13710
- gap: 6px 8px;
13711
- min-height: 44px;
13712
- padding: 6px 12px;
14046
+ gap: 6px;
14047
+ min-height: 40px;
14048
+ padding: 0 14px;
13713
14049
  border: 1px solid var(--rule);
13714
- border-radius: var(--radius-m);
14050
+ border-radius: 999px;
13715
14051
  background: var(--panel);
13716
- box-shadow: inset 3px 0 0 var(--ally);
14052
+ color: var(--ink);
14053
+ font: inherit;
13717
14054
  cursor: pointer;
13718
14055
  }
13719
14056
 
13720
- .act-who-one.other {
13721
- box-shadow: inset 3px 0 0 color-mix(in srgb, var(--muted) 45%, transparent);
14057
+ .act-who-one::before {
14058
+ content: "";
14059
+ width: 8px;
14060
+ height: 8px;
14061
+ border-radius: 50%;
14062
+ background: var(--ally);
13722
14063
  }
13723
14064
 
13724
- .act-who-one.hostile {
13725
- box-shadow: inset 3px 0 0 var(--low);
14065
+ .act-who-one.other::before {
14066
+ background: color-mix(in srgb, var(--muted) 60%, transparent);
13726
14067
  }
13727
14068
 
13728
- .act-who-one.plain {
13729
- box-shadow: none;
14069
+ .act-who-one.hostile::before {
14070
+ background: var(--low);
14071
+ }
14072
+
14073
+ .act-who-one.plain::before {
14074
+ content: none;
13730
14075
  }
13731
14076
 
13732
14077
  .act-who-one:has(input:checked) {
13733
14078
  border-color: var(--accent);
13734
- background: color-mix(in srgb, var(--accent) 12%, var(--panel));
14079
+ background: color-mix(in srgb, var(--accent) 14%, var(--panel));
14080
+ box-shadow: inset 0 0 0 1px var(--accent);
13735
14081
  }
13736
14082
 
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);
14083
+ .act-who-one input[type="radio"] {
14084
+ position: absolute;
14085
+ opacity: 0;
14086
+ pointer-events: none;
14087
+ }
14088
+
14089
+ .act-who-one .lm-key-square {
14090
+ margin: 0;
13745
14091
  }
13746
14092
 
13747
14093
  .act-who-name {
@@ -13781,6 +14127,23 @@
13781
14127
  resize: vertical;
13782
14128
  }
13783
14129
 
14130
+ .act-words-label {
14131
+ display: inline-flex;
14132
+ align-items: center;
14133
+ gap: 6px;
14134
+ margin: 0;
14135
+ }
14136
+
14137
+ .act-words-label svg.icon {
14138
+ width: 14px;
14139
+ height: 14px;
14140
+ }
14141
+
14142
+ .act-answer {
14143
+ color: var(--ink);
14144
+ font-weight: 600;
14145
+ }
14146
+
13784
14147
  .act-note {
13785
14148
  display: flex;
13786
14149
  align-items: center;