rpg-engine 0.13.0 → 0.14.1

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 (111) hide show
  1. package/README.md +2 -0
  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/index.js +2 -0
  20. package/dist/commands/init.d.ts +1 -0
  21. package/dist/commands/init.js +8 -4
  22. package/dist/commands/rename.js +8 -3
  23. package/dist/commands/save.d.ts +1 -1
  24. package/dist/commands/shared/experience.d.ts +9 -2
  25. package/dist/commands/shared/experience.js +42 -7
  26. package/dist/commands/shared/knowledge.d.ts +2 -0
  27. package/dist/commands/shared/knowledge.js +5 -0
  28. package/dist/commands/shared/mode.js +10 -3
  29. package/dist/commands/shared/offers.d.ts +3 -1
  30. package/dist/commands/shared/offers.js +6 -1
  31. package/dist/commands/shared/rules.js +5 -1
  32. package/dist/commands/shared/time.d.ts +6 -0
  33. package/dist/commands/shared/time.js +35 -3
  34. package/dist/commands/shared/upkeep.js +3 -3
  35. package/dist/commands/shared/world.js +7 -4
  36. package/dist/commands/status.d.ts +2 -0
  37. package/dist/commands/status.js +15 -7
  38. package/dist/commands/view/view.js +10 -7
  39. package/dist/commands/write/write.js +5 -2
  40. package/dist/dashboard/address.js +8 -1
  41. package/dist/dashboard/api.js +20 -0
  42. package/dist/dashboard/app.js +18 -6
  43. package/dist/dashboard/choices.js +343 -0
  44. package/dist/dashboard/guide/ar.md +12 -10
  45. package/dist/dashboard/guide/cs.md +12 -10
  46. package/dist/dashboard/guide/da.md +13 -11
  47. package/dist/dashboard/guide/de.md +12 -10
  48. package/dist/dashboard/guide/el.md +14 -12
  49. package/dist/dashboard/guide/en.md +11 -9
  50. package/dist/dashboard/guide/es.md +12 -10
  51. package/dist/dashboard/guide/fi.md +12 -10
  52. package/dist/dashboard/guide/fr.md +12 -10
  53. package/dist/dashboard/guide/he.md +12 -10
  54. package/dist/dashboard/guide/hi.md +12 -10
  55. package/dist/dashboard/guide/hu.md +12 -10
  56. package/dist/dashboard/guide/is.md +13 -11
  57. package/dist/dashboard/guide/it.md +12 -10
  58. package/dist/dashboard/guide/ja.md +12 -10
  59. package/dist/dashboard/guide/ko.md +14 -12
  60. package/dist/dashboard/guide/nb.md +13 -11
  61. package/dist/dashboard/guide/nl.md +12 -10
  62. package/dist/dashboard/guide/pl.md +12 -10
  63. package/dist/dashboard/guide/pt.md +12 -10
  64. package/dist/dashboard/guide/ro.md +12 -10
  65. package/dist/dashboard/guide/ru.md +12 -10
  66. package/dist/dashboard/guide/sv.md +12 -10
  67. package/dist/dashboard/guide/tr.md +12 -10
  68. package/dist/dashboard/guide/uk.md +13 -11
  69. package/dist/dashboard/guide/zh.md +12 -10
  70. package/dist/dashboard/i18n/ar.json +80 -0
  71. package/dist/dashboard/i18n/cs.json +80 -0
  72. package/dist/dashboard/i18n/da.json +80 -0
  73. package/dist/dashboard/i18n/de.json +80 -0
  74. package/dist/dashboard/i18n/el.json +80 -0
  75. package/dist/dashboard/i18n/es.json +80 -0
  76. package/dist/dashboard/i18n/fi.json +80 -0
  77. package/dist/dashboard/i18n/fr.json +80 -0
  78. package/dist/dashboard/i18n/he.json +80 -0
  79. package/dist/dashboard/i18n/hi.json +80 -0
  80. package/dist/dashboard/i18n/hu.json +80 -0
  81. package/dist/dashboard/i18n/is.json +80 -0
  82. package/dist/dashboard/i18n/it.json +80 -0
  83. package/dist/dashboard/i18n/ja.json +80 -0
  84. package/dist/dashboard/i18n/ko.json +80 -0
  85. package/dist/dashboard/i18n/nb.json +80 -0
  86. package/dist/dashboard/i18n/nl.json +80 -0
  87. package/dist/dashboard/i18n/pl.json +80 -0
  88. package/dist/dashboard/i18n/pt.json +80 -0
  89. package/dist/dashboard/i18n/ro.json +80 -0
  90. package/dist/dashboard/i18n/ru.json +80 -0
  91. package/dist/dashboard/i18n/sv.json +80 -0
  92. package/dist/dashboard/i18n/tr.json +80 -0
  93. package/dist/dashboard/i18n/uk.json +80 -0
  94. package/dist/dashboard/i18n/zh.json +80 -0
  95. package/dist/dashboard/icons.js +4 -0
  96. package/dist/dashboard/labels.js +32 -0
  97. package/dist/dashboard/party.js +13 -5
  98. package/dist/dashboard/settings.js +89 -40
  99. package/dist/dashboard/setup.js +1 -1
  100. package/dist/dashboard/sheet.js +3 -2
  101. package/dist/dashboard/style.css +744 -6
  102. package/dist/dashboard/top.js +8 -4
  103. package/dist/server/dashboard/choices.d.ts +41 -0
  104. package/dist/server/dashboard/choices.js +176 -0
  105. package/dist/server/dashboard/index.js +17 -1
  106. package/dist/time/game-date.d.ts +9 -0
  107. package/dist/time/game-date.js +9 -0
  108. package/dist/time/index.d.ts +1 -1
  109. package/dist/time/index.js +1 -1
  110. package/instructions/dashboard-guide.md +1 -1
  111. package/package.json +1 -1
@@ -378,7 +378,7 @@
378
378
  outline-offset: 0 !important;
379
379
  }
380
380
 
381
- .filter-chips button:focus-visible,
381
+ .filter-chips :is(button, a):focus-visible,
382
382
  .package-show:focus-visible,
383
383
  .package-row:focus-visible {
384
384
  outline: 2px solid var(--accent) !important;
@@ -2064,7 +2064,7 @@
2064
2064
  margin: 6px 0 4px;
2065
2065
  }
2066
2066
 
2067
- .filter-chips button {
2067
+ .filter-chips :is(button, a) {
2068
2068
  display: inline-flex;
2069
2069
  align-items: center;
2070
2070
  gap: 6px;
@@ -2080,18 +2080,18 @@
2080
2080
  cursor: pointer;
2081
2081
  }
2082
2082
 
2083
- .filter-chips button:hover {
2083
+ .filter-chips :is(button, a):hover {
2084
2084
  background: color-mix(in srgb, var(--ink) 5%, transparent);
2085
2085
  }
2086
2086
 
2087
- .filter-chips button[aria-pressed="true"] {
2087
+ .filter-chips :is(button[aria-pressed="true"], a[aria-current="page"]) {
2088
2088
  border-color: var(--accent);
2089
2089
  background: color-mix(in srgb, var(--accent) 14%, transparent);
2090
2090
  }
2091
2091
 
2092
2092
  /* A finger needs the room of a target, after the chip's own height. */
2093
2093
  @media (pointer: coarse) {
2094
- .filter-chips button {
2094
+ .filter-chips :is(button, a) {
2095
2095
  min-height: var(--target);
2096
2096
  }
2097
2097
  }
@@ -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,694 @@
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
+ /* The other pages an option names, each a chip that opens it in the reader. */
15308
+ .choices-pages {
15309
+ margin: 0;
15310
+ padding: 2px 16px 8px;
15311
+ }
15312
+
15313
+ .choices-pages a {
15314
+ text-decoration: none;
15315
+ }
15316
+
15317
+ .choice-picked {
15318
+ display: inline-flex;
15319
+ align-items: center;
15320
+ gap: 6px;
15321
+ min-height: 38px;
15322
+ color: var(--gold-ink);
15323
+ font-weight: 650;
15324
+ }
15325
+
15326
+ .choice-picked svg.icon {
15327
+ width: 18px;
15328
+ height: 18px;
15329
+ }
15330
+
15331
+ /* The end: what is still to choose, and the one main action. */
15332
+ .choices-foot {
15333
+ display: grid;
15334
+ gap: 10px;
15335
+ justify-items: start;
15336
+ padding: 16px;
15337
+ border: 1px solid var(--rule);
15338
+ border-radius: var(--radius-l);
15339
+ background: color-mix(in srgb, var(--gold) 6%, var(--panel));
15340
+ }
15341
+
15342
+ .choices-foot p {
15343
+ margin: 0;
15344
+ }
15345
+
15346
+ .choices-missing {
15347
+ display: flex;
15348
+ flex-wrap: wrap;
15349
+ align-items: center;
15350
+ gap: 6px;
15351
+ }
15352
+
15353
+ .choices-missing .eyebrow {
15354
+ margin-inline-end: 4px;
15355
+ }
15356
+
15357
+ .choices-after {
15358
+ color: var(--muted);
15359
+ font-size: 0.85rem;
15360
+ }
15361
+
15362
+ .choices-done {
15363
+ display: flex;
15364
+ align-items: flex-start;
15365
+ gap: 8px;
15366
+ font-weight: 600;
15367
+ }
15368
+
15369
+ .choices-done svg.icon {
15370
+ flex: none;
15371
+ width: 20px;
15372
+ height: 20px;
15373
+ color: var(--ally);
15374
+ }
15375
+
15376
+ @media (pointer: coarse) {
15377
+ .choices-steps button,
15378
+ .choice-chosen li.chip,
15379
+ .choice-chosen .icon-button,
15380
+ .choice-hand input {
15381
+ min-height: var(--target);
15382
+ }
15383
+
15384
+ .choice-chosen .icon-button {
15385
+ width: var(--target);
15386
+ }
15387
+ }
15388
+
15389
+ /* On a phone the notice's words take the room; the chevron says where it leads. */
15390
+ @media (max-width: 600px) {
15391
+ .choices-notice-word {
15392
+ position: absolute;
15393
+ width: 1px;
15394
+ height: 1px;
15395
+ overflow: hidden;
15396
+ clip-path: inset(50%);
15397
+ white-space: nowrap;
15398
+ }
15399
+ }
15400
+ }