lanre-ds 0.0.0-stage → 0.2.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 (240) hide show
  1. package/LICENSE +21 -0
  2. package/components/buttons/Button.d.ts +28 -0
  3. package/components/buttons/Button.jsx +50 -0
  4. package/components/buttons/Button.prompt.md +16 -0
  5. package/components/buttons/IconButton.d.ts +23 -0
  6. package/components/buttons/IconButton.jsx +53 -0
  7. package/components/buttons/IconButton.prompt.md +12 -0
  8. package/components/buttons/SegmentedTabs.d.ts +21 -0
  9. package/components/buttons/SegmentedTabs.jsx +15 -0
  10. package/components/buttons/SegmentedTabs.prompt.md +10 -0
  11. package/components/contributor/AudioRecorder.d.ts +27 -0
  12. package/components/contributor/AudioRecorder.jsx +79 -0
  13. package/components/contributor/AudioRecorder.prompt.md +13 -0
  14. package/components/contributor/RadioCard.d.ts +17 -0
  15. package/components/contributor/RadioCard.jsx +30 -0
  16. package/components/contributor/RadioCard.prompt.md +12 -0
  17. package/components/contributor/RecorderPanel.d.ts +30 -0
  18. package/components/contributor/RecorderPanel.jsx +49 -0
  19. package/components/contributor/RecorderPanel.prompt.md +11 -0
  20. package/components/contributor/StepBar.d.ts +17 -0
  21. package/components/contributor/StepBar.jsx +55 -0
  22. package/components/contributor/StepBar.prompt.md +12 -0
  23. package/components/contributor/TextField.d.ts +25 -0
  24. package/components/contributor/TextField.jsx +29 -0
  25. package/components/contributor/TextField.prompt.md +7 -0
  26. package/components/contributor/UploadTile.d.ts +39 -0
  27. package/components/contributor/UploadTile.jsx +116 -0
  28. package/components/contributor/UploadTile.prompt.md +21 -0
  29. package/components/contributor/WorldChip.d.ts +18 -0
  30. package/components/contributor/WorldChip.jsx +16 -0
  31. package/components/contributor/WorldChip.prompt.md +9 -0
  32. package/components/contributor/WorldOption.d.ts +19 -0
  33. package/components/contributor/WorldOption.jsx +19 -0
  34. package/components/contributor/WorldOption.prompt.md +11 -0
  35. package/components/contributor/WorldSign.d.ts +25 -0
  36. package/components/contributor/WorldSign.jsx +32 -0
  37. package/components/contributor/WorldSign.prompt.md +14 -0
  38. package/components/contributor/WorldSigns.d.ts +13 -0
  39. package/components/contributor/WorldSigns.jsx +12 -0
  40. package/components/contributor/WorldSigns.prompt.md +8 -0
  41. package/components/effects/Confetti.d.ts +14 -0
  42. package/components/effects/Confetti.jsx +38 -0
  43. package/components/effects/Confetti.prompt.md +12 -0
  44. package/components/effects/Sparkles.d.ts +9 -0
  45. package/components/effects/Sparkles.jsx +13 -0
  46. package/components/effects/Sparkles.prompt.md +11 -0
  47. package/components/effects/Sunburst.d.ts +23 -0
  48. package/components/effects/Sunburst.jsx +26 -0
  49. package/components/effects/Sunburst.prompt.md +12 -0
  50. package/components/feedback/Badge.d.ts +17 -0
  51. package/components/feedback/Badge.jsx +16 -0
  52. package/components/feedback/Badge.prompt.md +10 -0
  53. package/components/feedback/ErrorText.d.ts +11 -0
  54. package/components/feedback/ErrorText.jsx +8 -0
  55. package/components/feedback/ErrorText.prompt.md +9 -0
  56. package/components/feedback/LoadingScreen.d.ts +14 -0
  57. package/components/feedback/LoadingScreen.jsx +24 -0
  58. package/components/feedback/LoadingScreen.prompt.md +9 -0
  59. package/components/feedback/Notice.d.ts +15 -0
  60. package/components/feedback/Notice.jsx +16 -0
  61. package/components/feedback/Notice.prompt.md +10 -0
  62. package/components/feedback/SaveAlert.d.ts +15 -0
  63. package/components/feedback/SaveAlert.jsx +24 -0
  64. package/components/feedback/SaveAlert.prompt.md +9 -0
  65. package/components/feedback/SavePill.d.ts +13 -0
  66. package/components/feedback/SavePill.jsx +29 -0
  67. package/components/feedback/SavePill.prompt.md +8 -0
  68. package/components/feedback/SoundToggle.d.ts +16 -0
  69. package/components/feedback/SoundToggle.jsx +15 -0
  70. package/components/feedback/SoundToggle.prompt.md +6 -0
  71. package/components/feedback/Sticker.d.ts +15 -0
  72. package/components/feedback/Sticker.jsx +12 -0
  73. package/components/feedback/Sticker.prompt.md +9 -0
  74. package/components/feedback/Tag.d.ts +15 -0
  75. package/components/feedback/Tag.jsx +15 -0
  76. package/components/feedback/Tag.prompt.md +10 -0
  77. package/components/feedback/Toast.d.ts +21 -0
  78. package/components/feedback/Toast.jsx +19 -0
  79. package/components/feedback/Toast.prompt.md +7 -0
  80. package/components/forms/Slider.d.ts +24 -0
  81. package/components/forms/Slider.jsx +28 -0
  82. package/components/forms/Slider.prompt.md +6 -0
  83. package/components/forms/Switch.d.ts +19 -0
  84. package/components/forms/Switch.jsx +20 -0
  85. package/components/forms/Switch.prompt.md +6 -0
  86. package/components/games/MatchCard.d.ts +18 -0
  87. package/components/games/MatchCard.jsx +27 -0
  88. package/components/games/MatchCard.prompt.md +11 -0
  89. package/components/hud/Countdown.d.ts +33 -0
  90. package/components/hud/Countdown.jsx +74 -0
  91. package/components/hud/Countdown.prompt.md +15 -0
  92. package/components/hud/CurrencyPill.d.ts +24 -0
  93. package/components/hud/CurrencyPill.jsx +34 -0
  94. package/components/hud/CurrencyPill.prompt.md +12 -0
  95. package/components/hud/HudBar.d.ts +18 -0
  96. package/components/hud/HudBar.jsx +14 -0
  97. package/components/hud/HudBar.prompt.md +15 -0
  98. package/components/hud/HudChip.d.ts +25 -0
  99. package/components/hud/HudChip.jsx +30 -0
  100. package/components/hud/HudChip.prompt.md +13 -0
  101. package/components/hud/ProgressBar.d.ts +27 -0
  102. package/components/hud/ProgressBar.jsx +39 -0
  103. package/components/hud/ProgressBar.prompt.md +11 -0
  104. package/components/hud/TimerChip.d.ts +19 -0
  105. package/components/hud/TimerChip.jsx +17 -0
  106. package/components/hud/TimerChip.prompt.md +7 -0
  107. package/components/icons/GameIcon.d.ts +25 -0
  108. package/components/icons/GameIcon.jsx +43 -0
  109. package/components/icons/GameIcon.prompt.md +13 -0
  110. package/components/identity/Avatar.d.ts +26 -0
  111. package/components/identity/Avatar.jsx +31 -0
  112. package/components/identity/Avatar.prompt.md +11 -0
  113. package/components/identity/AvatarButton.d.ts +19 -0
  114. package/components/identity/AvatarButton.jsx +13 -0
  115. package/components/identity/AvatarButton.prompt.md +8 -0
  116. package/components/identity/Gemstone.d.ts +28 -0
  117. package/components/identity/Gemstone.jsx +46 -0
  118. package/components/identity/Gemstone.prompt.md +15 -0
  119. package/components/identity/PersonTile.d.ts +22 -0
  120. package/components/identity/PersonTile.jsx +27 -0
  121. package/components/identity/PersonTile.prompt.md +10 -0
  122. package/components/levels/ChoiceButton.d.ts +20 -0
  123. package/components/levels/ChoiceButton.jsx +31 -0
  124. package/components/levels/ChoiceButton.prompt.md +10 -0
  125. package/components/map/DiscoveryMarker.d.ts +19 -0
  126. package/components/map/DiscoveryMarker.jsx +31 -0
  127. package/components/map/DiscoveryMarker.prompt.md +11 -0
  128. package/components/map/LevelNode.d.ts +19 -0
  129. package/components/map/LevelNode.jsx +37 -0
  130. package/components/map/LevelNode.prompt.md +11 -0
  131. package/components/map/PortraitMedallion.d.ts +27 -0
  132. package/components/map/PortraitMedallion.jsx +29 -0
  133. package/components/map/PortraitMedallion.prompt.md +14 -0
  134. package/components/map/StarRating.d.ts +22 -0
  135. package/components/map/StarRating.jsx +21 -0
  136. package/components/map/StarRating.prompt.md +6 -0
  137. package/components/map/Tile.d.ts +22 -0
  138. package/components/map/Tile.jsx +32 -0
  139. package/components/map/Tile.prompt.md +8 -0
  140. package/components/map/WorldGate.d.ts +21 -0
  141. package/components/map/WorldGate.jsx +27 -0
  142. package/components/map/WorldGate.prompt.md +13 -0
  143. package/components/map/worlds.d.ts +18 -0
  144. package/components/map/worlds.js +9 -0
  145. package/components/media/Album.d.ts +33 -0
  146. package/components/media/Album.jsx +157 -0
  147. package/components/media/Album.prompt.md +16 -0
  148. package/components/media/Cassette.d.ts +23 -0
  149. package/components/media/Cassette.jsx +64 -0
  150. package/components/media/Cassette.prompt.md +13 -0
  151. package/components/media/Film.d.ts +20 -0
  152. package/components/media/Film.jsx +39 -0
  153. package/components/media/Film.prompt.md +14 -0
  154. package/components/media/MemoryText.d.ts +20 -0
  155. package/components/media/MemoryText.jsx +14 -0
  156. package/components/media/MemoryText.prompt.md +9 -0
  157. package/components/media/Unavailable.d.ts +13 -0
  158. package/components/media/Unavailable.jsx +13 -0
  159. package/components/media/Unavailable.prompt.md +10 -0
  160. package/components/media/Words.d.ts +21 -0
  161. package/components/media/Words.jsx +57 -0
  162. package/components/media/Words.prompt.md +12 -0
  163. package/components/media/shared.js +19 -0
  164. package/components/panels/Modal.d.ts +25 -0
  165. package/components/panels/Modal.jsx +68 -0
  166. package/components/panels/Modal.prompt.md +20 -0
  167. package/components/panels/Panel.d.ts +29 -0
  168. package/components/panels/Panel.jsx +109 -0
  169. package/components/panels/Panel.prompt.md +13 -0
  170. package/components/quiz/LeaderboardRow.d.ts +26 -0
  171. package/components/quiz/LeaderboardRow.jsx +24 -0
  172. package/components/quiz/LeaderboardRow.prompt.md +10 -0
  173. package/components/rewards/ItemCell.d.ts +24 -0
  174. package/components/rewards/ItemCell.jsx +24 -0
  175. package/components/rewards/ItemCell.prompt.md +9 -0
  176. package/components/rewards/RewardCard.d.ts +24 -0
  177. package/components/rewards/RewardCard.jsx +34 -0
  178. package/components/rewards/RewardCard.prompt.md +8 -0
  179. package/components/rewards/ShopRow.d.ts +23 -0
  180. package/components/rewards/ShopRow.jsx +26 -0
  181. package/components/rewards/ShopRow.prompt.md +7 -0
  182. package/components/text/Heading.d.ts +19 -0
  183. package/components/text/Heading.jsx +15 -0
  184. package/components/text/Heading.prompt.md +10 -0
  185. package/components/text/OutlineText.d.ts +24 -0
  186. package/components/text/OutlineText.jsx +20 -0
  187. package/components/text/OutlineText.prompt.md +11 -0
  188. package/components/toolbar/FastTravelDock.d.ts +50 -0
  189. package/components/toolbar/FastTravelDock.jsx +36 -0
  190. package/components/toolbar/FastTravelDock.prompt.md +12 -0
  191. package/components/toolbar/Toolbar.d.ts +16 -0
  192. package/components/toolbar/Toolbar.jsx +8 -0
  193. package/components/toolbar/Toolbar.prompt.md +14 -0
  194. package/components/toolbar/ToolbarNext.d.ts +21 -0
  195. package/components/toolbar/ToolbarNext.jsx +21 -0
  196. package/components/toolbar/ToolbarNext.prompt.md +13 -0
  197. package/components/toolbar/ToolbarTab.d.ts +15 -0
  198. package/components/toolbar/ToolbarTab.jsx +12 -0
  199. package/components/toolbar/ToolbarTab.prompt.md +9 -0
  200. package/components/viewer/ClueCard.d.ts +18 -0
  201. package/components/viewer/ClueCard.jsx +14 -0
  202. package/components/viewer/ClueCard.prompt.md +9 -0
  203. package/components/viewer/ClueTab.d.ts +16 -0
  204. package/components/viewer/ClueTab.jsx +12 -0
  205. package/components/viewer/ClueTab.prompt.md +8 -0
  206. package/components/viewer/RevealTray.d.ts +54 -0
  207. package/components/viewer/RevealTray.jsx +58 -0
  208. package/components/viewer/RevealTray.prompt.md +21 -0
  209. package/components/viewer/RoadsideViewer.d.ts +60 -0
  210. package/components/viewer/RoadsideViewer.jsx +96 -0
  211. package/components/viewer/RoadsideViewer.prompt.md +20 -0
  212. package/components/viewer/ViewerKeys.d.ts +26 -0
  213. package/components/viewer/ViewerKeys.jsx +22 -0
  214. package/components/viewer/ViewerKeys.prompt.md +14 -0
  215. package/components/viewer/ViewerKnob.d.ts +20 -0
  216. package/components/viewer/ViewerKnob.jsx +12 -0
  217. package/components/viewer/ViewerKnob.prompt.md +11 -0
  218. package/components/viewer/WhoButton.d.ts +21 -0
  219. package/components/viewer/WhoButton.jsx +15 -0
  220. package/components/viewer/WhoButton.prompt.md +10 -0
  221. package/package.json +62 -4
  222. package/readme.md +145 -0
  223. package/styles.css +15 -0
  224. package/tokens/colors.css +140 -0
  225. package/tokens/effects.css +40 -0
  226. package/tokens/fonts.css +3 -0
  227. package/tokens/fx.css +186 -0
  228. package/tokens/gems.css +8 -0
  229. package/tokens/hud.css +510 -0
  230. package/tokens/icons.css +7 -0
  231. package/tokens/media.css +774 -0
  232. package/tokens/signs.css +459 -0
  233. package/tokens/spacing.css +38 -0
  234. package/tokens/typography.css +34 -0
  235. package/tokens/ui.css +432 -0
  236. package/tokens/utilities.css +34 -0
  237. package/tokens/viewer.css +1176 -0
  238. package/tokens/worlds.css +73 -0
  239. package/tools/ds-loader.js +60 -0
  240. package/README.md +0 -3
@@ -0,0 +1,459 @@
1
+ /* World signposts: the signs that mark a world. WorldGate is the sign on the map, WorldSign is the selectable sign
2
+ on the theme screen (hung over a road by WorldSigns), WorldChip is the pill that shows the chosen world, and
3
+ WorldOption is a row in a picker. Used by the components in components/map and components/contributor. */
4
+
5
+ /* ---- The sign on the map (WorldGate) ---- */
6
+
7
+ .mp-gate {
8
+ position: absolute;
9
+ transform: translate(-50%, -100%);
10
+ display: grid;
11
+ justify-items: center;
12
+ gap: 10px;
13
+ z-index: 3;
14
+ pointer-events: none;
15
+ }
16
+
17
+ .mp-gate-sign {
18
+ position: relative;
19
+ width: 100%;
20
+ padding: 12px 18px 12px;
21
+ border-radius: var(--radius-lg);
22
+ border: 5px solid var(--wood-700);
23
+ background: linear-gradient(180deg, var(--world-accent), var(--world-accent-shade));
24
+ box-shadow: 0 6px 0 var(--wood-900), inset 0 3px 0 oklch(1 0 0 / 0.35), 0 14px 22px oklch(0.2 0.05 60 / 0.3);
25
+ display: grid;
26
+ justify-items: center;
27
+ gap: 8px;
28
+ text-align: center;
29
+ }
30
+
31
+ .mp-gate-post {
32
+ position: absolute;
33
+ top: 70%;
34
+ width: 16px;
35
+ height: 90px;
36
+ border-radius: 6px;
37
+ background: linear-gradient(90deg, var(--wood-300), var(--wood-500) 60%, var(--wood-700));
38
+ box-shadow: 0 4px 0 var(--wood-900);
39
+ z-index: -1;
40
+ }
41
+
42
+ .mp-gate-post:first-child { left: 10%; }
43
+
44
+ .mp-gate-post:nth-child(2) { right: 10%; }
45
+
46
+ .mp-gate-title {
47
+ margin: 0;
48
+ display: flex;
49
+ align-items: center;
50
+ gap: 10px;
51
+ font-family: var(--font-display);
52
+ font-weight: 400;
53
+ font-size: clamp(18px, 2.6vw, 25px);
54
+ line-height: 1.05;
55
+ letter-spacing: 0.02em;
56
+ text-transform: uppercase;
57
+ color: #fff;
58
+ -webkit-text-stroke: 0.16em var(--world-stroke);
59
+ paint-order: stroke fill;
60
+ text-shadow: 0 3px 0 oklch(0 0 0 / 0.25);
61
+ }
62
+
63
+ .mp-gate-count {
64
+ height: 24px;
65
+ padding: 0 12px;
66
+ border-radius: 6px;
67
+ background: var(--cream-100);
68
+ box-shadow: 0 2px 0 var(--cream-300);
69
+ font-family: var(--font-display);
70
+ font-size: 12px;
71
+ letter-spacing: 0.06em;
72
+ text-transform: uppercase;
73
+ color: var(--ink-700);
74
+ display: grid;
75
+ place-items: center;
76
+ }
77
+
78
+ .mp-gate-note {
79
+ pointer-events: auto;
80
+ appearance: none;
81
+ border: 3px solid var(--cream-300);
82
+ margin-top: 34px;
83
+ padding: 10px 16px;
84
+ border-radius: 14px;
85
+ background: linear-gradient(180deg, #fff, var(--cream-100));
86
+ box-shadow: 0 4px 0 var(--cream-300), 0 10px 16px oklch(0.2 0.05 60 / 0.25);
87
+ font-family: var(--font-ui);
88
+ font-weight: 700;
89
+ font-size: 15px;
90
+ color: var(--ink-900);
91
+ display: inline-flex;
92
+ align-items: center;
93
+ gap: 8px;
94
+ cursor: pointer;
95
+ rotate: -2deg;
96
+ transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), filter var(--dur-fast);
97
+ }
98
+
99
+ .mp-gate-note:hover {
100
+ filter: brightness(1.04);
101
+ }
102
+
103
+ .mp-gate-note:active {
104
+ transform: translateY(3px);
105
+ box-shadow: 0 1px 0 var(--cream-300), 0 4px 8px oklch(0.2 0.05 60 / 0.25);
106
+ }
107
+
108
+ .mp-gate-note i {
109
+ color: var(--coral-500);
110
+ font-size: 20px;
111
+ }
112
+
113
+ .mp-gate-note:focus-visible {
114
+ outline: 4px solid #fff;
115
+ outline-offset: 4px;
116
+ border-radius: 999px;
117
+ }
118
+
119
+ /* ---- Selectable signs on one road (WorldSign, WorldSigns) ---- */
120
+
121
+ .mp-signs {
122
+ display: flex;
123
+ flex-direction: column;
124
+ gap: 30px;
125
+ padding-top: 6px;
126
+ }
127
+
128
+ .mp-sign {
129
+ appearance: none;
130
+ position: relative;
131
+ display: block;
132
+ width: 100%;
133
+ padding: 8px 0 0;
134
+ border: 0;
135
+ background: none;
136
+ cursor: pointer;
137
+ font: inherit;
138
+ text-align: center;
139
+ -webkit-tap-highlight-color: transparent;
140
+ }
141
+
142
+ .mp-sign-post {
143
+ position: absolute;
144
+ top: 0;
145
+ bottom: -14px;
146
+ width: 14px;
147
+ border-radius: 6px;
148
+ background: linear-gradient(90deg, var(--wood-300), var(--wood-500) 60%, var(--wood-700));
149
+ box-shadow: 0 4px 0 var(--wood-900);
150
+ }
151
+
152
+ .mp-sign-post:first-child {
153
+ left: 12%;
154
+ }
155
+
156
+ .mp-sign-post:nth-child(2) {
157
+ right: 12%;
158
+ }
159
+
160
+ .mp-sign-plank {
161
+ position: relative;
162
+ margin: 0 4%;
163
+ min-height: 88px;
164
+ box-sizing: border-box;
165
+ border-radius: var(--radius-lg);
166
+ border: 5px solid var(--wood-700);
167
+ background: linear-gradient(180deg, var(--world-accent), var(--world-accent-shade));
168
+ box-shadow: 0 6px 0 var(--wood-900), inset 0 3px 0 oklch(1 0 0 / 0.35), 0 12px 20px oklch(0.2 0.05 60 / 0.3);
169
+ display: flex;
170
+ flex-direction: column;
171
+ align-items: center;
172
+ justify-content: center;
173
+ gap: 8px;
174
+ padding: 12px 18px;
175
+ transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
176
+ }
177
+
178
+ .mp-sign:active .mp-sign-plank {
179
+ transform: translateY(4px);
180
+ box-shadow: 0 2px 0 var(--wood-900), inset 0 3px 0 oklch(1 0 0 / 0.35);
181
+ }
182
+
183
+ .mp-sign[aria-pressed='true'] .mp-sign-plank {
184
+ box-shadow: 0 6px 0 var(--wood-900), inset 0 3px 0 oklch(1 0 0 / 0.35), 0 0 0 5px var(--teal-300), 0 0 30px oklch(0.76 0.13 180 / 0.85);
185
+ }
186
+
187
+ .mp-sign-plank-locked {
188
+ background: linear-gradient(180deg, var(--stone-300), var(--stone-500));
189
+ --world-stroke: var(--stone-700);
190
+ }
191
+
192
+ .mp-sign-title {
193
+ display: flex;
194
+ align-items: center;
195
+ justify-content: center;
196
+ gap: 10px;
197
+ font-family: var(--font-display);
198
+ font-size: 22px;
199
+ line-height: 1.05;
200
+ letter-spacing: 0.03em;
201
+ text-transform: uppercase;
202
+ color: #fff;
203
+ -webkit-text-stroke: 0.16em var(--world-stroke);
204
+ paint-order: stroke fill;
205
+ text-shadow: 0 3px 0 oklch(0 0 0 / 0.25);
206
+ text-wrap: balance;
207
+ }
208
+
209
+ .mp-sign-title i {
210
+ flex: none;
211
+ font-size: 26px;
212
+ -webkit-text-stroke: 2.5px var(--world-stroke);
213
+ }
214
+
215
+ .mp-sign-blurb {
216
+ padding: 4px 10px;
217
+ border-radius: 8px;
218
+ background: var(--cream-100);
219
+ box-shadow: 0 2px 0 var(--cream-300);
220
+ font-size: 13px;
221
+ font-weight: 700;
222
+ color: var(--ink-700);
223
+ }
224
+
225
+ .mp-sign-check {
226
+ position: absolute;
227
+ right: -12px;
228
+ top: -14px;
229
+ width: 36px;
230
+ height: 36px;
231
+ box-sizing: border-box;
232
+ border-radius: 50%;
233
+ display: grid;
234
+ place-items: center;
235
+ background: linear-gradient(180deg, var(--teal-300), var(--teal-500) 50%);
236
+ border: 3px solid #fff;
237
+ box-shadow: 0 3px 0 var(--teal-700);
238
+ color: #fff;
239
+ font-size: 16px;
240
+ }
241
+
242
+ .mp-world-pill-name {
243
+ min-width: 0;
244
+ overflow: hidden;
245
+ text-overflow: ellipsis;
246
+ white-space: nowrap;
247
+ }
248
+
249
+ /* The world pill: a button, so the world can be changed on the spot. It gives way first on narrow phones. */
250
+ .mp-world-pill {
251
+ appearance: none;
252
+ position: relative;
253
+ display: inline-flex;
254
+ align-items: center;
255
+ gap: 10px;
256
+ flex: 0 1 auto;
257
+ min-width: 0;
258
+ min-height: 52px;
259
+ box-sizing: border-box;
260
+ padding: 6px 22px 6px 8px;
261
+ border-radius: 999px;
262
+ border: 3px solid var(--world-accent);
263
+ background: linear-gradient(180deg, var(--world-accent), var(--world-accent-shade));
264
+ box-shadow: 0 4px 0 var(--world-stroke);
265
+ color: #fff;
266
+ text-shadow: 0 2px 0 var(--world-accent-shade);
267
+ font: inherit;
268
+ font-weight: 700;
269
+ font-size: 16px;
270
+ cursor: pointer;
271
+ -webkit-tap-highlight-color: transparent;
272
+ transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
273
+ }
274
+
275
+ .mp-world-pill:active {
276
+ transform: translateY(3px);
277
+ box-shadow: 0 1px 0 var(--world-stroke);
278
+ }
279
+
280
+ .mp-world-pill-name {
281
+ min-width: 0;
282
+ overflow: hidden;
283
+ text-overflow: ellipsis;
284
+ white-space: nowrap;
285
+ }
286
+
287
+ /* Small caret on a pill or badge: "tap to change" */
288
+ .mp-pill-mark {
289
+ position: absolute;
290
+ right: -6px;
291
+ bottom: -4px;
292
+ width: 20px;
293
+ height: 20px;
294
+ border-radius: 50%;
295
+ display: grid;
296
+ place-items: center;
297
+ background: var(--cream-50);
298
+ border: 2px solid var(--wood-700);
299
+ box-shadow: 0 2px 0 var(--wood-900);
300
+ color: var(--wood-900);
301
+ font-size: 11px;
302
+ text-shadow: none;
303
+ }
304
+
305
+ /* One world per row in the picker */
306
+ .mp-world-option {
307
+ appearance: none;
308
+ position: relative;
309
+ display: flex;
310
+ align-items: center;
311
+ gap: 12px;
312
+ width: 100%;
313
+ box-sizing: border-box;
314
+ padding: 10px 44px 10px 10px;
315
+ border-radius: var(--radius-md);
316
+ border: 3px solid var(--cream-300);
317
+ background: linear-gradient(180deg, #fff, var(--cream-100));
318
+ box-shadow: 0 3px 0 var(--cream-300);
319
+ font: inherit;
320
+ text-align: left;
321
+ cursor: pointer;
322
+ -webkit-tap-highlight-color: transparent;
323
+ }
324
+
325
+ .mp-world-option {
326
+ transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-fast);
327
+ }
328
+
329
+ .mp-world-option:active {
330
+ transform: translateY(3px);
331
+ box-shadow: 0 0 0 var(--cream-300);
332
+ }
333
+
334
+ .mp-world-option[aria-checked='true'] {
335
+ border-color: var(--teal-500);
336
+ background: linear-gradient(180deg, var(--teal-100), #fff);
337
+ box-shadow: 0 3px 0 var(--teal-700), 0 0 0 3px oklch(0.76 0.13 180 / 0.45);
338
+ }
339
+
340
+ .mp-world-option[aria-checked='true'] .mp-world-radio {
341
+ border-color: var(--teal-500);
342
+ background: var(--teal-500);
343
+ }
344
+
345
+ .mp-world-option .mp-world-radio {
346
+ top: 50%;
347
+ transform: translateY(-50%);
348
+ }
349
+
350
+ .mp-world-option-text {
351
+ display: flex;
352
+ flex-direction: column;
353
+ gap: 2px;
354
+ min-width: 0;
355
+ }
356
+
357
+ .mp-world-option-text strong {
358
+ font-size: 15px;
359
+ color: var(--ink-900);
360
+ }
361
+
362
+ .mp-world-option-text span {
363
+ font-size: 12px;
364
+ font-weight: 600;
365
+ color: var(--ink-500);
366
+ }
367
+
368
+ .mp-world-medal {
369
+ width: 36px;
370
+ height: 36px;
371
+ flex: none;
372
+ box-sizing: border-box;
373
+ border-radius: 50%;
374
+ display: grid;
375
+ place-items: center;
376
+ background: linear-gradient(180deg, var(--world-sky), var(--world-ground));
377
+ border: 2px solid #fff;
378
+ box-shadow: 0 2px 0 oklch(0 0 0 / 0.15);
379
+ font-size: 20px;
380
+ text-shadow: none;
381
+ }
382
+
383
+ .mp-world-medal i {
384
+ -webkit-text-stroke: 2px var(--world-stroke);
385
+ paint-order: stroke fill;
386
+ }
387
+
388
+ .mp-world-radio {
389
+ position: absolute;
390
+ right: 10px;
391
+ top: 10px;
392
+ width: 28px;
393
+ height: 28px;
394
+ box-sizing: border-box;
395
+ border-radius: 50%;
396
+ border: 3px solid var(--stone-500);
397
+ background: #fff;
398
+ box-shadow: inset 0 2px 3px oklch(0 0 0 / 0.1);
399
+ display: grid;
400
+ place-items: center;
401
+ color: #fff;
402
+ font-size: 14px;
403
+ }
404
+
405
+ /* Gates hang over one road: numbered markers and a straight stretch behind them */
406
+ .mp-signs-road {
407
+ position: relative;
408
+ }
409
+
410
+ .mp-signs-spine {
411
+ position: absolute;
412
+ left: 50%;
413
+ top: 0;
414
+ bottom: 40px;
415
+ width: 46px;
416
+ transform: translateX(-50%);
417
+ border-radius: 23px;
418
+ background: var(--world-path);
419
+ box-shadow: 0 0 0 5px var(--world-path-edge), 0 6px 0 5px oklch(0.25 0.05 60 / 0.2);
420
+ }
421
+
422
+ .mp-signs-spine::after {
423
+ content: '';
424
+ position: absolute;
425
+ left: 50%;
426
+ top: 12px;
427
+ bottom: 12px;
428
+ width: 3px;
429
+ transform: translateX(-50%);
430
+ background: repeating-linear-gradient(180deg, oklch(1 0 0 / 0.6) 0 10px, transparent 10px 26px);
431
+ }
432
+
433
+ .mp-sign-number {
434
+ position: absolute;
435
+ left: calc(12% - 12px);
436
+ top: -6px;
437
+ z-index: 2;
438
+ }
439
+
440
+ .mp-sign-badge {
441
+ position: absolute;
442
+ left: -6px;
443
+ bottom: -16px;
444
+ z-index: 2;
445
+ }
446
+
447
+ .mp-signs-road .mp-sign {
448
+ z-index: 1;
449
+ }
450
+
451
+ /* ---- Things that land ---- */
452
+
453
+ /* A chosen sign's check pops in, and so does a picked option's tick (on the scale property, so any centring transform stays put). */
454
+ .mp-sign-check {
455
+ animation: mp-pop var(--dur-base) var(--ease-bounce) both;
456
+ }
457
+ .mp-world-option[aria-checked='true'] .mp-world-radio {
458
+ animation: mp-radio-pop var(--dur-base) var(--ease-bounce) both;
459
+ }
@@ -0,0 +1,38 @@
1
+ /* Lanre spacing & sizing. 4px base. */
2
+ :root {
3
+ --space-1: 4px;
4
+ --space-2: 8px;
5
+ --space-3: 12px;
6
+ --space-4: 16px;
7
+ --space-5: 20px;
8
+ --space-6: 24px;
9
+ --space-8: 32px;
10
+ --space-10: 40px;
11
+ --space-12: 48px;
12
+ --space-16: 64px;
13
+
14
+ --size-touch: 48px; /* minimum tap target */
15
+ --size-touch-lg: 60px; /* primary CTA height */
16
+ --size-icon-sm: 20px;
17
+ --size-icon: 28px;
18
+ --size-icon-lg: 40px;
19
+ --size-icon-xl: 64px;
20
+ --size-node: 84px; /* level node width */
21
+ --size-cell: 72px; /* inventory / board cell */
22
+ --size-pill-h: 36px; /* HUD currency pill */
23
+
24
+ --layout-screen-w: 390px;
25
+ --layout-hud-top: 56px;
26
+ --layout-gutter: 16px;
27
+ --layout-panel-max: 340px;
28
+ --layout-bottom-bar: 88px;
29
+
30
+ /* The Birthday Adventure: the recipient’s experience is iPad-first, phones supported; contributor flow is phone-first.
31
+ Proposed defaults (exact iPad model/orientation is an open input): */
32
+ --layout-ipad-portrait-w: 820px;
33
+ --layout-ipad-landscape-w: 1180px;
34
+ --layout-phone-w: 390px;
35
+ --layout-reading-max: 640px; /* memory text / letter column */
36
+ --layout-panel-max-ipad: 560px; /* dialogs on iPad */
37
+ --layout-choice-h: 56px; /* guess / quiz option height (64 on iPad) */
38
+ }
@@ -0,0 +1,34 @@
1
+ /* Lanre type tokens. Display = chunky bubble face for titles, numerals, CTAs. UI = rounded sans for labels/body. */
2
+ :root {
3
+ --font-display: "Titan One", "Arial Rounded MT Bold", "Helvetica Neue", sans-serif;
4
+ --font-ui: "Quicksand", "Nunito", "Helvetica Neue", sans-serif;
5
+
6
+ --text-display-xl: 44px; /* screen titles, big numerals */
7
+ --text-display-lg: 32px; /* panel titles, level numbers */
8
+ --text-display-md: 24px; /* button labels (lg), reward amounts */
9
+ --text-display-sm: 18px; /* button labels (md), pill values */
10
+ --text-display-xs: 14px; /* button labels (sm), badge counts */
11
+
12
+ --text-title: 20px; /* UI, 700 */
13
+ --text-body-lg: 16px; /* UI, 600/700 */
14
+ --text-body: 14px; /* UI, 600 */
15
+ --text-label: 12px; /* UI, 700, uppercase, tracked */
16
+ --text-caption: 11px; /* UI, 600 */
17
+ --text-memory: 20px; /* UI 600, lh 1.6: contributor text on iPad; 17px on phones */
18
+ --text-letter: 22px; /* UI 600, lh 1.65: The author’s summit letter */
19
+
20
+ --weight-ui: 600;
21
+ --weight-ui-bold: 700;
22
+ --weight-ui-regular: 500;
23
+
24
+ --leading-tight: 1.0;
25
+ --leading-snug: 1.15;
26
+ --leading-normal: 1.35;
27
+
28
+ --tracking-display: 0.02em;
29
+ --tracking-caps: 0.08em;
30
+
31
+ /* Outlined display text: stroke width relative to font size */
32
+ --stroke-display: 0.16em;
33
+ --stroke-display-thin: 0.10em;
34
+ }