rpg-engine 0.12.0 → 0.14.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 (146) hide show
  1. package/README.md +1 -1
  2. package/dist/campaign/choices.d.ts +30 -0
  3. package/dist/campaign/choices.js +84 -0
  4. package/dist/campaign/index.d.ts +4 -1
  5. package/dist/campaign/index.js +4 -1
  6. package/dist/campaign/last-choices.d.ts +6 -0
  7. package/dist/campaign/last-choices.js +34 -0
  8. package/dist/campaign/levels.d.ts +50 -0
  9. package/dist/campaign/levels.js +189 -0
  10. package/dist/campaign/settings.d.ts +35 -13
  11. package/dist/campaign/settings.js +20 -51
  12. package/dist/commands/ask.d.ts +8 -0
  13. package/dist/commands/ask.js +2 -1
  14. package/dist/commands/change/change.js +6 -4
  15. package/dist/commands/choices.d.ts +64 -0
  16. package/dist/commands/choices.js +216 -0
  17. package/dist/commands/config.d.ts +8 -1
  18. package/dist/commands/config.js +165 -21
  19. package/dist/commands/effect.d.ts +1 -1
  20. package/dist/commands/index.js +2 -0
  21. package/dist/commands/init.d.ts +1 -0
  22. package/dist/commands/init.js +8 -4
  23. package/dist/commands/rename.js +8 -3
  24. package/dist/commands/save.d.ts +1 -1
  25. package/dist/commands/shared/experience.d.ts +9 -2
  26. package/dist/commands/shared/experience.js +42 -7
  27. package/dist/commands/shared/inputs.d.ts +2 -2
  28. package/dist/commands/shared/inputs.js +15 -2
  29. package/dist/commands/shared/knowledge.d.ts +2 -0
  30. package/dist/commands/shared/knowledge.js +5 -0
  31. package/dist/commands/shared/mode.js +10 -3
  32. package/dist/commands/shared/offers.d.ts +3 -1
  33. package/dist/commands/shared/offers.js +6 -1
  34. package/dist/commands/shared/page-words.d.ts +4 -0
  35. package/dist/commands/shared/page-words.js +7 -7
  36. package/dist/commands/shared/rules.js +5 -1
  37. package/dist/commands/shared/system-texts.d.ts +11 -0
  38. package/dist/commands/shared/system-texts.js +203 -0
  39. package/dist/commands/shared/time.d.ts +6 -0
  40. package/dist/commands/shared/time.js +35 -3
  41. package/dist/commands/shared/upkeep.js +3 -3
  42. package/dist/commands/shared/world.d.ts +2 -0
  43. package/dist/commands/shared/world.js +20 -7
  44. package/dist/commands/status.d.ts +2 -0
  45. package/dist/commands/status.js +15 -7
  46. package/dist/commands/view/view.d.ts +4 -0
  47. package/dist/commands/view/view.js +24 -10
  48. package/dist/commands/write/write.d.ts +3 -3
  49. package/dist/commands/write/write.js +5 -2
  50. package/dist/core/context.d.ts +16 -0
  51. package/dist/core/files.js +2 -3
  52. package/dist/core/language.d.ts +2 -0
  53. package/dist/core/language.js +8 -0
  54. package/dist/core/text.d.ts +2 -0
  55. package/dist/core/text.js +5 -0
  56. package/dist/dashboard/address.js +8 -1
  57. package/dist/dashboard/api.js +20 -0
  58. package/dist/dashboard/app.js +20 -7
  59. package/dist/dashboard/choices.js +338 -0
  60. package/dist/dashboard/guide/ar.md +8 -8
  61. package/dist/dashboard/guide/cs.md +8 -8
  62. package/dist/dashboard/guide/da.md +9 -9
  63. package/dist/dashboard/guide/de.md +8 -8
  64. package/dist/dashboard/guide/el.md +10 -10
  65. package/dist/dashboard/guide/en.md +7 -7
  66. package/dist/dashboard/guide/es.md +8 -8
  67. package/dist/dashboard/guide/fi.md +8 -8
  68. package/dist/dashboard/guide/fr.md +8 -8
  69. package/dist/dashboard/guide/he.md +8 -8
  70. package/dist/dashboard/guide/hi.md +8 -8
  71. package/dist/dashboard/guide/hu.md +8 -8
  72. package/dist/dashboard/guide/is.md +9 -9
  73. package/dist/dashboard/guide/it.md +8 -8
  74. package/dist/dashboard/guide/ja.md +8 -8
  75. package/dist/dashboard/guide/ko.md +9 -9
  76. package/dist/dashboard/guide/nb.md +9 -9
  77. package/dist/dashboard/guide/nl.md +8 -8
  78. package/dist/dashboard/guide/pl.md +8 -8
  79. package/dist/dashboard/guide/pt.md +8 -8
  80. package/dist/dashboard/guide/ro.md +8 -8
  81. package/dist/dashboard/guide/ru.md +8 -8
  82. package/dist/dashboard/guide/sv.md +8 -8
  83. package/dist/dashboard/guide/tr.md +8 -8
  84. package/dist/dashboard/guide/uk.md +8 -8
  85. package/dist/dashboard/guide/zh.md +8 -8
  86. package/dist/dashboard/i18n/ar.json +81 -1
  87. package/dist/dashboard/i18n/cs.json +81 -1
  88. package/dist/dashboard/i18n/da.json +81 -1
  89. package/dist/dashboard/i18n/de.json +81 -1
  90. package/dist/dashboard/i18n/el.json +81 -1
  91. package/dist/dashboard/i18n/es.json +81 -1
  92. package/dist/dashboard/i18n/fi.json +81 -1
  93. package/dist/dashboard/i18n/fr.json +81 -1
  94. package/dist/dashboard/i18n/he.json +81 -1
  95. package/dist/dashboard/i18n/hi.json +81 -1
  96. package/dist/dashboard/i18n/hu.json +81 -1
  97. package/dist/dashboard/i18n/is.json +81 -1
  98. package/dist/dashboard/i18n/it.json +81 -1
  99. package/dist/dashboard/i18n/ja.json +81 -1
  100. package/dist/dashboard/i18n/ko.json +81 -1
  101. package/dist/dashboard/i18n/nb.json +81 -1
  102. package/dist/dashboard/i18n/nl.json +81 -1
  103. package/dist/dashboard/i18n/pl.json +81 -1
  104. package/dist/dashboard/i18n/pt.json +81 -1
  105. package/dist/dashboard/i18n/ro.json +81 -1
  106. package/dist/dashboard/i18n/ru.json +81 -1
  107. package/dist/dashboard/i18n/sv.json +81 -1
  108. package/dist/dashboard/i18n/tr.json +81 -1
  109. package/dist/dashboard/i18n/uk.json +81 -1
  110. package/dist/dashboard/i18n/zh.json +81 -1
  111. package/dist/dashboard/icons.js +4 -0
  112. package/dist/dashboard/labels.js +32 -0
  113. package/dist/dashboard/notices.js +9 -2
  114. package/dist/dashboard/party.js +13 -5
  115. package/dist/dashboard/saves.js +1 -1
  116. package/dist/dashboard/settings.js +89 -40
  117. package/dist/dashboard/setup.js +1 -1
  118. package/dist/dashboard/sheet.js +3 -2
  119. package/dist/dashboard/style.css +729 -1
  120. package/dist/dashboard/text.js +7 -2
  121. package/dist/dashboard/top.js +8 -4
  122. package/dist/documents/png.d.ts +2 -3
  123. package/dist/documents/png.js +6 -6
  124. package/dist/documents/read.js +2 -1
  125. package/dist/extensions/words.js +2 -1
  126. package/dist/languages/language-pack.js +2 -2
  127. package/dist/pages/index.d.ts +1 -1
  128. package/dist/pages/index.js +1 -1
  129. package/dist/pages/world.d.ts +5 -0
  130. package/dist/pages/world.js +22 -11
  131. package/dist/server/dashboard/choices.d.ts +38 -0
  132. package/dist/server/dashboard/choices.js +174 -0
  133. package/dist/server/dashboard/files.js +3 -2
  134. package/dist/server/dashboard/index.d.ts +3 -1
  135. package/dist/server/dashboard/index.js +20 -2
  136. package/dist/server/mcp.js +3 -1
  137. package/dist/systems/game-system.js +2 -1
  138. package/dist/systems/words.js +2 -1
  139. package/dist/testing/index.js +1 -1
  140. package/dist/time/game-date.d.ts +9 -0
  141. package/dist/time/game-date.js +9 -0
  142. package/dist/time/index.d.ts +1 -1
  143. package/dist/time/index.js +1 -1
  144. package/instructions/dashboard-guide.md +1 -1
  145. package/instructions/play.md +1 -1
  146. package/package.json +4 -4
@@ -7649,6 +7649,37 @@
7649
7649
  font-weight: 400;
7650
7650
  }
7651
7651
 
7652
+ /* A custom difficulty or rigor (T-132): its parts under its row, set in by a rule on the start side, each a smaller row with its levels. */
7653
+ .setting-parts {
7654
+ display: grid;
7655
+ grid-column: 1 / -1;
7656
+ margin-inline-start: 4px;
7657
+ padding-inline-start: 14px;
7658
+ border-inline-start: 2px solid var(--rule);
7659
+ }
7660
+
7661
+ .setting-part {
7662
+ display: grid;
7663
+ grid-template-columns: minmax(0, 1fr) auto;
7664
+ align-items: center;
7665
+ column-gap: 16px;
7666
+ padding: 6px 0;
7667
+ }
7668
+
7669
+ .setting-part .setting-name {
7670
+ font-weight: 600;
7671
+ }
7672
+
7673
+ .setting-part > .setting-said {
7674
+ grid-column: 1 / -1;
7675
+ margin: 4px 0 0;
7676
+ font-size: 0.85rem;
7677
+ }
7678
+
7679
+ .setting-part > .setting-said:empty {
7680
+ margin: 0;
7681
+ }
7682
+
7652
7683
  /* What the player should know of a setting on this computer; in ink, with its edge, when it says how to have what is missing. */
7653
7684
  .setting-note {
7654
7685
  display: flex;
@@ -7950,10 +7981,26 @@
7950
7981
  }
7951
7982
 
7952
7983
  @media (max-width: 600px) {
7953
- .setting {
7984
+ .setting,
7985
+ .setting-part {
7954
7986
  grid-template-columns: minmax(0, 1fr);
7955
7987
  }
7956
7988
 
7989
+ .setting-part {
7990
+ row-gap: 6px;
7991
+ }
7992
+
7993
+ /* Five levels on one row at 360 in Italian and German: the parts set in less, their values closer. */
7994
+ .setting-parts {
7995
+ margin-inline-start: 0;
7996
+ padding-inline-start: 8px;
7997
+ }
7998
+
7999
+ .setting-parts .segmented button {
8000
+ padding: 0 4px;
8001
+ font-size: 0.8rem;
8002
+ }
8003
+
7957
8004
  .language-choice {
7958
8005
  width: 100%;
7959
8006
  }
@@ -14660,3 +14707,684 @@
14660
14707
  }
14661
14708
  }
14662
14709
  }
14710
+ /* The choices the master prepares for one of the party (D-556): their notice in the sheet's band, the mark on the party's token and on the Party's tab, and
14711
+ their page, with each choice's options as cards and the page of one read beside them. */
14712
+ @layer pages {
14713
+ /* The notice: one link beside the identity on a wide band, under it on a phone; the accent's tint, as a word to know, never the gold of the turn. */
14714
+ .choices-notice {
14715
+ display: flex;
14716
+ flex: 1 1 260px;
14717
+ align-self: center;
14718
+ align-items: center;
14719
+ gap: 10px;
14720
+ min-width: 0;
14721
+ min-height: 48px;
14722
+ padding: 8px 12px;
14723
+ border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--rule));
14724
+ border-radius: var(--radius-l);
14725
+ background: color-mix(in srgb, var(--accent) 10%, var(--panel));
14726
+ color: var(--ink);
14727
+ font-weight: 600;
14728
+ text-decoration: none;
14729
+ }
14730
+
14731
+ .choices-notice.confirmed {
14732
+ border-color: color-mix(in srgb, var(--ally) 45%, var(--rule));
14733
+ background: color-mix(in srgb, var(--ally) 10%, var(--panel));
14734
+ }
14735
+
14736
+ .choices-notice > svg.icon {
14737
+ flex: none;
14738
+ width: 24px;
14739
+ height: 24px;
14740
+ color: var(--accent);
14741
+ }
14742
+
14743
+ .choices-notice.confirmed > svg.icon {
14744
+ color: var(--ally);
14745
+ }
14746
+
14747
+ .choices-notice-words {
14748
+ display: grid;
14749
+ flex: 1;
14750
+ min-width: 0;
14751
+ line-height: 1.25;
14752
+ overflow-wrap: anywhere;
14753
+ }
14754
+
14755
+ .choices-notice-words small {
14756
+ color: var(--muted);
14757
+ font-size: 0.85rem;
14758
+ font-weight: 400;
14759
+ }
14760
+
14761
+ .choices-notice-go {
14762
+ display: inline-flex;
14763
+ flex: none;
14764
+ align-items: center;
14765
+ color: var(--accent);
14766
+ font-weight: 650;
14767
+ white-space: nowrap;
14768
+ }
14769
+
14770
+ .choices-notice-go svg.icon {
14771
+ width: 18px;
14772
+ height: 18px;
14773
+ }
14774
+
14775
+ /* The mark on the token in the party's strip, at the end of its upper edge, and the dot on the Party's tab: the accent, their words in the link's name. */
14776
+ .choices-pip {
14777
+ position: absolute;
14778
+ top: -3px;
14779
+ inset-inline-end: -3px;
14780
+ display: grid;
14781
+ place-items: center;
14782
+ width: 18px;
14783
+ height: 18px;
14784
+ border: 2px solid var(--panel);
14785
+ border-radius: 50%;
14786
+ background: var(--accent);
14787
+ color: var(--paper);
14788
+ }
14789
+
14790
+ .choices-pip svg.icon {
14791
+ width: 12px;
14792
+ height: 12px;
14793
+ stroke-width: 3;
14794
+ }
14795
+
14796
+ .section-mark:has(.choices-dot) {
14797
+ position: relative;
14798
+ }
14799
+
14800
+ .choices-dot {
14801
+ position: absolute;
14802
+ top: -2px;
14803
+ inset-inline-end: -4px;
14804
+ width: 8px;
14805
+ height: 8px;
14806
+ border-radius: 50%;
14807
+ background: var(--accent);
14808
+ box-shadow: 0 0 0 2px var(--paper);
14809
+ }
14810
+
14811
+ /* The page: the way back to the sheet, then each set with its head, its steps, its choices and its end. */
14812
+ .choices-page,
14813
+ .choices {
14814
+ display: grid;
14815
+ gap: var(--gap);
14816
+ min-width: 0;
14817
+ }
14818
+
14819
+ .choices-page + .choices-page,
14820
+ .choices + .choices {
14821
+ margin-top: 24px;
14822
+ }
14823
+
14824
+ .choices-back {
14825
+ display: inline-flex;
14826
+ align-items: center;
14827
+ gap: 4px;
14828
+ justify-self: start;
14829
+ padding-inline: 6px 12px;
14830
+ }
14831
+
14832
+ .choices-back svg.icon {
14833
+ width: 18px;
14834
+ height: 18px;
14835
+ scale: -1 1;
14836
+ }
14837
+
14838
+ [dir="rtl"] .choices-back svg.icon {
14839
+ scale: 1;
14840
+ }
14841
+
14842
+ .choices-none {
14843
+ margin: 0;
14844
+ color: var(--muted);
14845
+ }
14846
+
14847
+ .choices-none .button {
14848
+ margin-inline-start: 4px;
14849
+ }
14850
+
14851
+ .choices-head {
14852
+ display: flex;
14853
+ align-items: center;
14854
+ gap: 16px;
14855
+ }
14856
+
14857
+ .choices-head .token {
14858
+ --size: 64px;
14859
+ }
14860
+
14861
+ .choices-head > div {
14862
+ min-width: 0;
14863
+ }
14864
+
14865
+ .choices-head .eyebrow {
14866
+ margin: 0;
14867
+ }
14868
+
14869
+ .choices-head h2 {
14870
+ margin: 2px 0 4px;
14871
+ font-size: 1.4rem;
14872
+ overflow-wrap: anywhere;
14873
+ }
14874
+
14875
+ .choices-lead {
14876
+ max-width: 62ch;
14877
+ margin: 0;
14878
+ color: var(--muted);
14879
+ }
14880
+
14881
+ /* The steps: what is done and what is not, each a way to its choice. */
14882
+ .choices-steps {
14883
+ display: flex;
14884
+ flex-wrap: wrap;
14885
+ gap: 6px;
14886
+ margin: 0;
14887
+ padding: 0;
14888
+ list-style: none;
14889
+ }
14890
+
14891
+ .choices-steps button {
14892
+ display: inline-flex;
14893
+ align-items: center;
14894
+ gap: 6px;
14895
+ max-width: 100%;
14896
+ min-height: 32px;
14897
+ padding-block: 2px;
14898
+ padding-inline: 6px 12px;
14899
+ border: 1px solid var(--rule);
14900
+ border-radius: var(--radius-m);
14901
+ background: var(--float);
14902
+ color: var(--ink);
14903
+ font: inherit;
14904
+ font-size: 0.85rem;
14905
+ font-weight: 600;
14906
+ text-align: start;
14907
+ cursor: pointer;
14908
+ }
14909
+
14910
+ .step-dot {
14911
+ display: inline-grid;
14912
+ flex: none;
14913
+ place-items: center;
14914
+ min-width: 22px;
14915
+ height: 22px;
14916
+ padding: 0 4px;
14917
+ border: 1.5px solid var(--muted);
14918
+ border-radius: 999px;
14919
+ font-size: 0.75rem;
14920
+ font-weight: 700;
14921
+ }
14922
+
14923
+ .step-dot svg.icon {
14924
+ width: 14px;
14925
+ height: 14px;
14926
+ stroke-width: 3;
14927
+ }
14928
+
14929
+ .choices-steps .done .step-dot {
14930
+ border-color: var(--ally);
14931
+ background: var(--ally);
14932
+ color: var(--panel);
14933
+ }
14934
+
14935
+ .choices-steps .now button {
14936
+ border-color: var(--accent);
14937
+ }
14938
+
14939
+ .choices-steps .now .step-dot {
14940
+ border-color: var(--accent);
14941
+ color: var(--accent);
14942
+ }
14943
+
14944
+ /* The choices, and the page of an option read beside them from 900 px, as a list and its reader. */
14945
+ .choices-body {
14946
+ display: grid;
14947
+ grid-template-columns: minmax(0, 1fr);
14948
+ gap: var(--gap);
14949
+ align-items: start;
14950
+ }
14951
+
14952
+ @media (min-width: 900px) {
14953
+ .choices-body.reading {
14954
+ grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
14955
+ }
14956
+
14957
+ .choices-body.reading .choices-reader {
14958
+ position: sticky;
14959
+ top: calc(var(--gap) + var(--top-space) + var(--asked-space, 0px));
14960
+ max-height: calc(100vh - var(--top-space) - var(--asked-space, 0px) - 2 * var(--gap));
14961
+ overflow: auto;
14962
+ }
14963
+ }
14964
+
14965
+ .choices-items {
14966
+ display: grid;
14967
+ gap: var(--gap);
14968
+ min-width: 0;
14969
+ }
14970
+
14971
+ .choice-item {
14972
+ display: grid;
14973
+ gap: 12px;
14974
+ min-width: 0;
14975
+ padding: 16px;
14976
+ border: 1px solid var(--card-edge, var(--rule));
14977
+ border-radius: var(--radius-l);
14978
+ background: var(--panel);
14979
+ box-shadow: var(--lift), var(--raise);
14980
+ scroll-margin-top: calc(var(--top-space) + var(--asked-space, 0px) + var(--gap));
14981
+ }
14982
+
14983
+ .choice-item-head {
14984
+ display: flex;
14985
+ flex-wrap: wrap;
14986
+ align-items: baseline;
14987
+ gap: 2px 10px;
14988
+ }
14989
+
14990
+ .choice-item-head .eyebrow {
14991
+ flex-basis: 100%;
14992
+ margin: 0;
14993
+ }
14994
+
14995
+ .choice-item-head h3 {
14996
+ min-width: 0;
14997
+ margin: 0;
14998
+ font-size: 1.125rem;
14999
+ overflow-wrap: anywhere;
15000
+ }
15001
+
15002
+ .choice-state {
15003
+ display: inline-flex;
15004
+ align-items: center;
15005
+ gap: 3px;
15006
+ min-height: 22px;
15007
+ padding: 0 8px;
15008
+ border-radius: 999px;
15009
+ background: color-mix(in srgb, var(--accent) 14%, transparent);
15010
+ color: var(--accent);
15011
+ font-size: 0.8rem;
15012
+ font-weight: 700;
15013
+ }
15014
+
15015
+ .choice-state.done {
15016
+ background: color-mix(in srgb, var(--ally) 16%, transparent);
15017
+ color: var(--ally);
15018
+ }
15019
+
15020
+ .choice-state.optional {
15021
+ background: color-mix(in srgb, var(--muted) 14%, transparent);
15022
+ color: var(--muted);
15023
+ }
15024
+
15025
+ .choice-state svg.icon {
15026
+ width: 13px;
15027
+ height: 13px;
15028
+ stroke-width: 3;
15029
+ }
15030
+
15031
+ .choice-note {
15032
+ margin: -2px 0 0;
15033
+ color: var(--muted);
15034
+ font-size: 0.85rem;
15035
+ }
15036
+
15037
+ .choices-problem {
15038
+ margin: 0;
15039
+ color: var(--low);
15040
+ font-size: 0.85rem;
15041
+ font-weight: 600;
15042
+ }
15043
+
15044
+ /* The options: cards in a grid, one column on a phone and while a page is read beside them. */
15045
+ .choice-options {
15046
+ display: grid;
15047
+ grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
15048
+ gap: 8px;
15049
+ }
15050
+
15051
+ .choices-body.reading .choice-options {
15052
+ grid-template-columns: minmax(0, 1fr);
15053
+ }
15054
+
15055
+ .choice-card {
15056
+ position: relative;
15057
+ display: grid;
15058
+ grid-template-columns: minmax(0, 1fr) auto;
15059
+ align-items: start;
15060
+ min-width: 0;
15061
+ border: 1px solid var(--rule);
15062
+ border-radius: var(--radius-l);
15063
+ background: var(--float);
15064
+ }
15065
+
15066
+ .choice-pick {
15067
+ display: grid;
15068
+ grid-template-columns: auto minmax(0, 1fr) auto;
15069
+ align-items: start;
15070
+ gap: 10px;
15071
+ min-width: 0;
15072
+ min-height: 100%;
15073
+ padding-block: 12px;
15074
+ padding-inline: 12px 4px;
15075
+ border: 0;
15076
+ border-radius: var(--radius-l);
15077
+ background: transparent;
15078
+ color: var(--ink);
15079
+ font: inherit;
15080
+ text-align: start;
15081
+ cursor: pointer;
15082
+ }
15083
+
15084
+ .choice-card.alone .choice-pick {
15085
+ grid-column: 1 / -1;
15086
+ padding-inline-end: 12px;
15087
+ }
15088
+
15089
+ .choice-words {
15090
+ display: grid;
15091
+ gap: 2px;
15092
+ min-width: 0;
15093
+ }
15094
+
15095
+ .choice-words strong {
15096
+ overflow-wrap: anywhere;
15097
+ }
15098
+
15099
+ .choice-about {
15100
+ display: -webkit-box;
15101
+ overflow: hidden;
15102
+ color: var(--muted);
15103
+ font-size: 0.85rem;
15104
+ -webkit-box-orient: vertical;
15105
+ -webkit-line-clamp: 2;
15106
+ }
15107
+
15108
+ /* The mark: a ring for one among them, a square for several, filled in gold once chosen, as the setup's chosen card. */
15109
+ .choice-mark {
15110
+ display: grid;
15111
+ place-items: center;
15112
+ width: 20px;
15113
+ height: 20px;
15114
+ margin-top: 1px;
15115
+ border: 2px solid var(--muted);
15116
+ border-radius: 50%;
15117
+ color: var(--on-gold);
15118
+ }
15119
+
15120
+ .choice-mark.square {
15121
+ border-radius: calc(var(--radius-xs) / 2);
15122
+ }
15123
+
15124
+ .choice-mark svg.icon {
15125
+ width: 14px;
15126
+ height: 14px;
15127
+ stroke-width: 3;
15128
+ visibility: hidden;
15129
+ }
15130
+
15131
+ .choice-card.chosen {
15132
+ border-color: var(--gold);
15133
+ box-shadow: inset 0 0 0 1px var(--gold);
15134
+ }
15135
+
15136
+ .choice-card.chosen .choice-mark {
15137
+ border-color: var(--gold);
15138
+ background: var(--gold);
15139
+ }
15140
+
15141
+ .choice-card.chosen .choice-mark svg.icon {
15142
+ visibility: visible;
15143
+ }
15144
+
15145
+ .choice-card.chosen .choice-about {
15146
+ color: var(--ink);
15147
+ }
15148
+
15149
+ .choice-card.closed {
15150
+ border-style: dashed;
15151
+ background: transparent;
15152
+ }
15153
+
15154
+ .choice-card.closed .choice-pick {
15155
+ color: var(--muted);
15156
+ cursor: default;
15157
+ }
15158
+
15159
+ .choice-pick[aria-disabled="true"] {
15160
+ cursor: default;
15161
+ }
15162
+
15163
+ /* The one read beside: a bar of the accent at its start, as the open row of a list; chosen is the gold edge and the filled mark. */
15164
+ .choice-card:has(.choice-read[aria-current="true"])::before {
15165
+ position: absolute;
15166
+ inset-block: 10px;
15167
+ inset-inline-start: -1px;
15168
+ width: 4px;
15169
+ border-start-end-radius: var(--radius-xs);
15170
+ border-end-end-radius: var(--radius-xs);
15171
+ background: var(--accent);
15172
+ content: "";
15173
+ }
15174
+
15175
+ .choices-body.reading .choice-about {
15176
+ -webkit-line-clamp: 1;
15177
+ }
15178
+
15179
+ .choice-read {
15180
+ margin-block-start: 6px;
15181
+ margin-inline-end: 6px;
15182
+ color: var(--accent);
15183
+ }
15184
+
15185
+ /* A roll: its dice drawn before its words; once rolled, its total large, as a roll's. */
15186
+ .choice-card.choice-roll .choice-pick {
15187
+ align-items: center;
15188
+ }
15189
+
15190
+ .choice-dice {
15191
+ display: inline-flex;
15192
+ flex-wrap: wrap;
15193
+ align-items: center;
15194
+ gap: 6px;
15195
+ }
15196
+
15197
+ .choice-dice .die-icons svg.die {
15198
+ width: 22px;
15199
+ height: 22px;
15200
+ }
15201
+
15202
+ .choice-total {
15203
+ align-self: center;
15204
+ margin-inline-end: 10px;
15205
+ color: var(--gold-ink);
15206
+ font-family: var(--number-font, inherit);
15207
+ font-size: 1.6rem;
15208
+ font-weight: 800;
15209
+ line-height: 1;
15210
+ }
15211
+
15212
+ /* The player's own dice: a number for each, then Write. */
15213
+ .choice-hand {
15214
+ display: flex;
15215
+ flex-wrap: wrap;
15216
+ align-items: center;
15217
+ gap: 6px;
15218
+ grid-column: 1 / -1;
15219
+ padding-block: 0 12px;
15220
+ padding-inline: 42px 12px;
15221
+ }
15222
+
15223
+ .choice-hand label {
15224
+ flex-basis: 100%;
15225
+ color: var(--muted);
15226
+ font-size: 0.85rem;
15227
+ }
15228
+
15229
+ .choice-hand input {
15230
+ width: 64px;
15231
+ height: 38px;
15232
+ padding: 0 10px;
15233
+ border: 1px solid var(--rule);
15234
+ border-radius: var(--radius-m);
15235
+ background: var(--panel-2);
15236
+ color: var(--ink);
15237
+ font: inherit;
15238
+ font-weight: 700;
15239
+ text-align: center;
15240
+ }
15241
+
15242
+ .choice-hand input[aria-invalid="true"] {
15243
+ border-color: var(--low);
15244
+ }
15245
+
15246
+ .choice-hand .choices-problem {
15247
+ flex-basis: 100%;
15248
+ }
15249
+
15250
+ /* The chosen ones of a long list, over its search: each a chip to take off. */
15251
+ .choice-chosen {
15252
+ display: flex;
15253
+ flex-wrap: wrap;
15254
+ align-items: center;
15255
+ gap: 6px 10px;
15256
+ }
15257
+
15258
+ .choice-chosen .eyebrow {
15259
+ margin: 0;
15260
+ }
15261
+
15262
+ .choice-chosen ul {
15263
+ display: flex;
15264
+ flex-wrap: wrap;
15265
+ gap: 6px;
15266
+ margin: 0;
15267
+ padding: 0;
15268
+ list-style: none;
15269
+ }
15270
+
15271
+ .choice-chosen li.chip {
15272
+ display: inline-flex;
15273
+ align-items: center;
15274
+ gap: 2px;
15275
+ min-height: 32px;
15276
+ padding-inline: 10px 0;
15277
+ border: 1px solid var(--gold);
15278
+ border-radius: var(--radius-m);
15279
+ background: var(--float);
15280
+ font-size: 0.85rem;
15281
+ font-weight: 600;
15282
+ }
15283
+
15284
+ .choice-chosen li.chip:not(:has(button)) {
15285
+ padding-inline-end: 10px;
15286
+ }
15287
+
15288
+ .choice-chosen .icon-button {
15289
+ width: 32px;
15290
+ height: 32px;
15291
+ }
15292
+
15293
+ .choice-find .search {
15294
+ width: 100%;
15295
+ }
15296
+
15297
+ .choice-find .search input {
15298
+ height: 40px;
15299
+ }
15300
+
15301
+ /* The page of an option: what it is for, its title, the way to choose it, its text. */
15302
+ .choices-reader .reader-head {
15303
+ align-items: flex-start;
15304
+ justify-content: space-between;
15305
+ }
15306
+
15307
+ .choice-picked {
15308
+ display: inline-flex;
15309
+ align-items: center;
15310
+ gap: 6px;
15311
+ min-height: 38px;
15312
+ color: var(--gold-ink);
15313
+ font-weight: 650;
15314
+ }
15315
+
15316
+ .choice-picked svg.icon {
15317
+ width: 18px;
15318
+ height: 18px;
15319
+ }
15320
+
15321
+ /* The end: what is still to choose, and the one main action. */
15322
+ .choices-foot {
15323
+ display: grid;
15324
+ gap: 10px;
15325
+ justify-items: start;
15326
+ padding: 16px;
15327
+ border: 1px solid var(--rule);
15328
+ border-radius: var(--radius-l);
15329
+ background: color-mix(in srgb, var(--gold) 6%, var(--panel));
15330
+ }
15331
+
15332
+ .choices-foot p {
15333
+ margin: 0;
15334
+ }
15335
+
15336
+ .choices-missing {
15337
+ display: flex;
15338
+ flex-wrap: wrap;
15339
+ align-items: center;
15340
+ gap: 6px;
15341
+ }
15342
+
15343
+ .choices-missing .eyebrow {
15344
+ margin-inline-end: 4px;
15345
+ }
15346
+
15347
+ .choices-after {
15348
+ color: var(--muted);
15349
+ font-size: 0.85rem;
15350
+ }
15351
+
15352
+ .choices-done {
15353
+ display: flex;
15354
+ align-items: flex-start;
15355
+ gap: 8px;
15356
+ font-weight: 600;
15357
+ }
15358
+
15359
+ .choices-done svg.icon {
15360
+ flex: none;
15361
+ width: 20px;
15362
+ height: 20px;
15363
+ color: var(--ally);
15364
+ }
15365
+
15366
+ @media (pointer: coarse) {
15367
+ .choices-steps button,
15368
+ .choice-chosen li.chip,
15369
+ .choice-chosen .icon-button,
15370
+ .choice-hand input {
15371
+ min-height: var(--target);
15372
+ }
15373
+
15374
+ .choice-chosen .icon-button {
15375
+ width: var(--target);
15376
+ }
15377
+ }
15378
+
15379
+ /* On a phone the notice's words take the room; the chevron says where it leads. */
15380
+ @media (max-width: 600px) {
15381
+ .choices-notice-word {
15382
+ position: absolute;
15383
+ width: 1px;
15384
+ height: 1px;
15385
+ overflow: hidden;
15386
+ clip-path: inset(50%);
15387
+ white-space: nowrap;
15388
+ }
15389
+ }
15390
+ }