Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
670 lines (634 loc) · 27 KB
/
Copy pathstyle.css
File metadata and controls
670 lines (634 loc) · 27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
/*
The shell wears the same arcane-night skin as the game: deep indigo
surfaces, aged-gold accents, engraved Cinzel capitals for titles, glass
panels with gold corner brackets over a slowly breathing topographic
backdrop (topo.js). Values mirror the server's globals.css so the shell
and the world it opens read as one app.
*/
/* The interface face and the story face, the same two the server loads
through next/font (scripts/font-files.mjs lists the files). */
@font-face { font-family: "Ysabeau Office"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("./fonts/ysabeau-office-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Ysabeau Office"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("./fonts/ysabeau-office-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("./fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 600; font-display: swap; src: url("./fonts/source-serif-4-latin-600-italic.woff2") format("woff2"); }
@font-face {
font-family: "Cinzel";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("./fonts/cinzel-latin-400-normal.woff2") format("woff2");
}
@font-face {
font-family: "Cinzel";
font-style: normal;
font-weight: 600;
font-display: swap;
src: url("./fonts/cinzel-latin-600-normal.woff2") format("woff2");
}
@font-face {
font-family: "Cinzel";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("./fonts/cinzel-latin-700-normal.woff2") format("woff2");
}
:root {
--night-950: var(--theme-night-stone-950, #0d0b1c);
--night-900: var(--theme-night-stone-900, #151229);
--night-800: var(--theme-night-stone-800, #211b3a);
--night-700: var(--theme-night-stone-700, #302853);
--ink-600: var(--theme-night-stone-600, #575170);
--ink-500: var(--theme-night-stone-500, #8f8aab);
--ink-400: var(--theme-night-stone-400, #aeaac6);
--ink-300: var(--theme-night-stone-300, #c9c6db);
--ink-200: var(--theme-night-stone-200, #dedbec);
--ink-100: var(--theme-night-stone-100, #edeaf7);
--ink-50: var(--theme-night-stone-50, #f7f6fc);
--gold-950: var(--theme-night-amber-950, #2b2008);
--gold-900: var(--theme-night-amber-900, #4a390f);
--gold-500: var(--theme-night-amber-500, #d4ab3a);
--gold-400: var(--theme-night-amber-400, #e3c15c);
--gold-300: var(--theme-night-amber-300, #ecd287);
--gold-200: var(--theme-night-amber-200, #f4e0a6);
--gold-100: var(--theme-night-amber-100, #f9ecc8);
--gold-50: var(--theme-night-amber-50, #fdf7e7);
--ember-400: #ff9d5c;
--danger: #f87171;
--background: var(--theme-night-background, #0a0817);
--foreground: var(--theme-night-foreground, #e9e6f4);
--font-display: "Cinzel", Georgia, "Times New Roman", serif;
--font-sans: "Ysabeau Office", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
--ease-snap: cubic-bezier(0.2, 0.9, 0.25, 1);
--shadow-elev-2: 0 2px 6px rgba(4, 2, 12, 0.55), 0 12px 32px rgba(4, 2, 12, 0.45);
--glow-gold: 0 0 20px color-mix(in srgb, var(--theme-night-amber-500, #d4ab3a) 16%, transparent);
--safe-top: env(safe-area-inset-top, 0px);
--safe-bottom: env(safe-area-inset-bottom, 0px);
--safe-left: env(safe-area-inset-left, 0px);
--safe-right: env(safe-area-inset-right, 0px);
}
* {
box-sizing: border-box;
scrollbar-width: thin;
scrollbar-color: var(--night-700) transparent;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--night-700); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: var(--theme-night-amber-800, #6d5517); color: var(--gold-50); }
html {
height: 100%;
color-scheme: dark;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
min-height: 100%;
background: var(--background);
color: var(--foreground);
font: 15px/1.5 var(--font-sans);
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
overscroll-behavior-y: none;
}
/* Night sky under everything: the glow of the sky, star specks and film
grain, no requests. One fixed layer, so scrolling never repaints it (a
fixed background-attachment on the body did, on every scroll). The
gradients sit last, under the stars and the grain. */
body::before {
content: "";
position: fixed;
inset: 0;
z-index: -1;
pointer-events: none;
background-image:
radial-gradient(1px 1px at 11% 24%, color-mix(in srgb, var(--theme-night-amber-200, #f4e0a6) 50%, transparent), transparent 60%),
radial-gradient(1.5px 1.5px at 27% 68%, color-mix(in srgb, var(--theme-night-foreground, #e9e6f4) 32%, transparent), transparent 60%),
radial-gradient(1px 1px at 38% 12%, color-mix(in srgb, var(--theme-night-amber-200, #f4e0a6) 35%, transparent), transparent 60%),
radial-gradient(1px 1px at 52% 44%, color-mix(in srgb, var(--theme-night-foreground, #e9e6f4) 30%, transparent), transparent 60%),
radial-gradient(1.5px 1.5px at 64% 80%, color-mix(in srgb, var(--theme-night-amber-200, #f4e0a6) 40%, transparent), transparent 60%),
radial-gradient(1px 1px at 71% 27%, color-mix(in srgb, var(--theme-night-foreground, #e9e6f4) 35%, transparent), transparent 60%),
radial-gradient(1px 1px at 83% 57%, color-mix(in srgb, var(--theme-night-amber-200, #f4e0a6) 32%, transparent), transparent 60%),
radial-gradient(1.5px 1.5px at 92% 16%, color-mix(in srgb, var(--theme-night-foreground, #e9e6f4) 32%, transparent), transparent 60%),
radial-gradient(1px 1px at 18% 88%, color-mix(in srgb, var(--theme-night-amber-200, #f4e0a6) 30%, transparent), transparent 60%),
radial-gradient(1px 1px at 45% 93%, color-mix(in srgb, var(--theme-night-foreground, #e9e6f4) 26%, transparent), transparent 60%),
radial-gradient(1px 1px at 6% 42%, color-mix(in srgb, var(--theme-night-amber-200, #f4e0a6) 30%, transparent), transparent 60%),
radial-gradient(1px 1px at 96% 84%, color-mix(in srgb, var(--theme-night-foreground, #e9e6f4) 30%, transparent), transparent 60%),
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E"),
radial-gradient(ellipse 80% 50% at 50% -10%, rgba(76, 60, 130, 0.28), transparent 65%),
radial-gradient(ellipse 60% 45% at 85% 110%, rgba(48, 32, 90, 0.22), transparent 60%),
radial-gradient(ellipse 40% 35% at 8% 65%, rgba(60, 38, 110, 0.14), transparent 60%);
}
/* Drifting dust, the server's own layer (src/app/styles/furniture.css): it
sits UNDER the stars and the topographic lines so it is texture beneath
them and never a haze over them. One layer for the whole app, the shell's
screens and the host's pages alike. The painting ships with the game
sheet's furniture (scripts/build-renderer.mjs copies public/assets/ui). */
.ambient-dust {
position: fixed;
inset: 0;
z-index: -2;
overflow: hidden;
pointer-events: none;
mix-blend-mode: screen;
opacity: 0.16;
}
.ambient-dust::before {
content: "";
position: absolute;
inset: 0 -360px -720px 0;
background: url("./game/ui-art/dust-motes.webp") 0 0 / 360px;
filter: contrast(9) brightness(0.42) grayscale(1) sepia(1) saturate(2.2);
animation: dust-drift 90s linear infinite;
will-change: transform;
}
html[data-theme="light"] .ambient-dust { display: none; }
[data-effects="low"] .ambient-dust { opacity: 0.1; }
[data-effects="low"] .ambient-dust::before { animation: none; }
@keyframes dust-drift {
from { transform: translate3d(0, 0, 0); }
to { transform: translate3d(-360px, -720px, 0); }
}
@media (prefers-reduced-motion: reduce) {
.ambient-dust::before { animation: none; }
}
#topo {
position: fixed;
inset: 0;
z-index: -1;
width: 100%;
height: 100%;
pointer-events: none;
}
/* ---------- layout ---------- */
/* #app holds the drawer, its scrim and the page column; home.css turns the
drawer into a fixed rail on wide screens. Screens render into .page. */
#app {
min-height: 100vh;
min-height: 100dvh;
display: flex;
align-items: stretch;
}
.page {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
padding: calc(var(--safe-top) + 1rem) calc(var(--safe-right) + 1.25rem)
calc(var(--safe-bottom) + 2rem) calc(var(--safe-left) + 1.25rem);
}
.topbar {
width: 100%;
max-width: 1080px;
margin: 0 auto 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
min-height: 44px;
}
/* The mark the title screen wears, on every screen: the closed book and
the spaced-caps wordmark in the theme's gold. */
.brand {
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 0;
color: var(--gold-400);
background: none;
border: 0;
padding: 0;
cursor: default;
font: inherit;
border-radius: 0.4rem;
}
.brand.link { cursor: pointer; }
.brand.link:hover .wordmark,
.brand.link:focus-visible .wordmark { color: var(--gold-200); text-shadow: 0 0 14px color-mix(in srgb, var(--theme-night-amber-500, #d4ab3a) 35%, transparent); }
.brand-mark {
width: 34px;
height: 34px;
flex-shrink: 0;
object-fit: contain;
filter: drop-shadow(0 4px 8px rgba(4, 2, 12, 0.6));
transition: transform 260ms var(--ease-snap);
}
.brand.link:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
/* The d20 is gold lines only: by day a thin dark rim and a soft shadow keep
it from melting into parchment (the server's headers do the same). */
html[data-theme="light"] .brand-mark {
filter: drop-shadow(0 0 0.6px rgba(40, 26, 4, 0.9)) drop-shadow(0 0 1.5px rgba(40, 26, 4, 0.55)) drop-shadow(0 2px 4px rgba(40, 26, 4, 0.35));
}
html[data-theme="light"] .brand-mark.big {
filter: drop-shadow(0 0 0.6px rgba(40, 26, 4, 0.9)) drop-shadow(0 0 1.5px rgba(40, 26, 4, 0.55)) drop-shadow(0 2px 4px rgba(40, 26, 4, 0.35)) drop-shadow(0 0 24px color-mix(in srgb, var(--theme-night-amber-500, #d4ab3a) 18%, transparent));
}
.brand-mark.big {
width: 84px;
height: 84px;
filter: drop-shadow(0 8px 18px rgba(4, 2, 12, 0.7)) drop-shadow(0 0 24px color-mix(in srgb, var(--theme-night-amber-500, #d4ab3a) 18%, transparent));
animation: book-float 6s ease-in-out infinite;
}
@keyframes book-float {
0%, 100% { transform: translateY(0) rotate(-2deg); }
50% { transform: translateY(-6px) rotate(2deg); }
}
.wordmark {
font-family: var(--font-display);
font-weight: 600;
font-size: 13px;
letter-spacing: 0.32em;
text-transform: uppercase;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
transition: color 150ms var(--ease-snap), text-shadow 260ms var(--ease-snap);
}
@media (max-width: 639px) { .wordmark { font-size: 10.5px; letter-spacing: 0.2em; } }
/* The narrowest phones: the book carries the brand beside four instruments. */
@media (max-width: 379px) { .wordmark { display: none; } }
.tile {
display: inline-flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
overflow: hidden;
width: 36px;
height: 36px;
border-radius: 0.6rem;
border: 1px solid color-mix(in srgb, var(--theme-night-amber-400, #e3c15c) 25%, transparent);
background: var(--night-950);
box-shadow: var(--glow-gold);
}
.tile img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.tile.big { width: 72px; height: 72px; border-radius: 0.9rem; }
.topbar .meta {
display: flex;
align-items: center;
gap: 0.6rem;
font-size: 0.8rem;
color: var(--ink-500);
}
.screen {
width: 100%;
max-width: 1080px;
margin: 0 auto;
animation: fade-up 320ms var(--ease-snap) both;
}
.screen.narrow {
max-width: 440px;
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
padding-bottom: 4rem;
}
.screen.mid { max-width: 640px; }
/* Stagger children so a screen assembles rather than pops. */
.screen > * { animation: fade-up 360ms var(--ease-snap) both; }
.screen > *:nth-child(2) { animation-delay: 40ms; }
.screen > *:nth-child(3) { animation-delay: 80ms; }
.screen > *:nth-child(4) { animation-delay: 120ms; }
.screen > *:nth-child(5) { animation-delay: 160ms; }
.screen > *:nth-child(n + 6) { animation-delay: 200ms; }
/* ---------- type ---------- */
/* Element rules stop at the game root: the host's pages bring their own
(scripts/scope-css.mjs confines theirs; this confines ours). :where keeps
the weight of a bare element selector. */
h1:where(:not(.game-root *)), h2:where(:not(.game-root *)), h3:where(:not(.game-root *)) {
font-family: var(--font-display);
font-weight: 600;
color: var(--gold-50);
margin: 0;
letter-spacing: 0.03em;
text-wrap: balance;
}
h1:where(:not(.game-root *)) { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.1; font-weight: 700; }
h2:where(:not(.game-root *)) { font-size: 1.25rem; line-height: 1.3; }
h3:where(:not(.game-root *)) { font-size: 1rem; }
/* Class names the host's sheet also uses stop at the game root the same way.
These rules are unlayered and the host's are layered, so ours won over its
utilities: `.panel`'s position beat `fixed` on the new campaign wizard,
which then sat in the page under its own backdrop instead of over it. */
.eyebrow:where(:not(.game-root *)) {
font-family: var(--font-display);
font-weight: 600;
font-size: 11px;
letter-spacing: 0.3em;
text-transform: uppercase;
color: var(--gold-400);
margin: 0 0 0.75rem;
display: flex;
align-items: center;
gap: 0.75rem;
}
.eyebrow:where(:not(.game-root *))::after {
content: "";
flex: 1;
height: 1px;
background: linear-gradient(90deg, color-mix(in srgb, var(--theme-night-amber-500, #d4ab3a) 35%, transparent), transparent);
}
p:where(:not(.game-root *)) { margin: 0; }
p.sub { color: var(--ink-400); font-size: 0.95rem; margin: 0.4rem 0 1.25rem; text-wrap: pretty; }
p.hint { color: var(--ink-500); font-size: 0.82rem; margin: 0.75rem 0 0; line-height: 1.5; }
p.hint.warn { color: #fcd34d; margin: 0 0 0.75rem; animation: fade-up 320ms var(--ease-snap) both; }
p.error { color: var(--danger); font-size: 0.88rem; min-height: 1.3rem; margin: 0.3rem 0 0; }
p.error:empty { display: none; }
.center { text-align: center; }
.intro {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.1rem;
text-align: center;
margin-bottom: 1.5rem;
}
.intro h1 { letter-spacing: 0.02em; }
/* ---------- surfaces ---------- */
/* The raised night panel of the title screen: indigo gradient, hairline,
top-edge light. */
.panel:where(:not(.game-root *)) {
position: relative;
border-radius: 10px;
background: linear-gradient(180deg, color-mix(in srgb, var(--theme-night-stone-700, #302853) 55%, transparent), color-mix(in srgb, var(--theme-night-stone-950, #0d0b1c) 90%, transparent));
border: 1px solid color-mix(in srgb, color-mix(in srgb, var(--theme-night-stone-500, #8f8aab) 45%, var(--theme-night-stone-600, #575170)) 35%, transparent);
box-shadow:
0 1px 0 color-mix(in srgb, var(--theme-night-foreground, #e9e6f4) 8%, transparent) inset,
0 -1px 0 rgba(4, 2, 12, 0.6) inset,
0 14px 36px rgba(4, 2, 12, 0.5);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.glass:where(:not(.game-root *)) {
position: relative;
border-radius: 0.9rem;
background: linear-gradient(180deg, color-mix(in srgb, var(--theme-night-stone-800, #211b3a) 55%, transparent), color-mix(in srgb, var(--theme-night-stone-900, #151229) 65%, transparent));
border: 1px solid color-mix(in srgb, color-mix(in srgb, var(--theme-night-stone-500, #8f8aab) 45%, var(--theme-night-stone-600, #575170)) 22%, transparent);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: var(--shadow-elev-2);
}
.grain::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
border-radius: inherit;
opacity: 0.05;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ornate:where(:not(.game-root *))::before,
.ornate:where(:not(.game-root *))::after {
content: "";
position: absolute;
width: 14px;
height: 14px;
pointer-events: none;
border-color: color-mix(in srgb, var(--theme-night-amber-500, #d4ab3a) 60%, transparent);
border-style: solid;
}
.ornate:where(:not(.game-root *))::before { top: 7px; left: 7px; border-width: 1px 0 0 1px; }
.ornate:where(:not(.game-root *))::after { bottom: 7px; right: 7px; border-width: 0 1px 1px 0; }
/* A card that is also .grain (a Settings section, a guide section, the tour
card) shares ::after with the grain. The grain's inset pinned the
bottom-right bracket to the top left, and its 5% opacity, noise and
rounded corners all but hid it. The bracket wins, as the server's
.ornate.texture-noise::before does for its top-left one. */
.ornate.grain:where(:not(.game-root *))::after { top: auto; left: auto; opacity: 1; background-image: none; border-radius: 0; }
.hero {
padding: 1.5rem 1.6rem;
margin-bottom: 1.75rem;
display: grid;
grid-template-columns: auto 1fr;
gap: 1.25rem 1.4rem;
align-items: center;
}
.hero .hero-body { min-width: 0; }
.hero .hero-actions {
grid-column: 1 / -1;
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
align-items: center;
}
.hero .who {
color: var(--ink-400);
font-size: 0.95rem;
margin-top: 0.3rem;
text-wrap: pretty;
}
.hero .who strong { color: var(--gold-200); font-weight: 600; }
.hero .origin {
font-family: var(--font-mono);
font-size: 0.78rem;
color: var(--ink-500);
margin-top: 0.3rem;
overflow-wrap: anywhere;
}
.hero.muted .hero-body h2 { color: var(--ink-300); }
.cards {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 0.8rem;
margin-bottom: 1.5rem;
}
/* Text on top, actions on their own row underneath: names and addresses
get the full card width on a phone and in a three-column desktop grid. */
.card {
padding: 1rem 1.1rem;
display: flex;
flex-direction: column;
gap: 0.85rem;
min-width: 0;
transition:
transform 200ms var(--ease-snap),
border-color 200ms var(--ease-snap),
box-shadow 200ms var(--ease-snap);
}
.card.hoverable:hover {
transform: translateY(-2px);
border-color: color-mix(in srgb, var(--theme-night-amber-500, #d4ab3a) 40%, transparent);
box-shadow:
0 1px 0 color-mix(in srgb, var(--theme-night-foreground, #e9e6f4) 8%, transparent) inset,
0 8px 28px rgba(4, 2, 12, 0.55),
0 0 24px color-mix(in srgb, var(--theme-night-amber-500, #d4ab3a) 12%, transparent);
}
.card .head { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.card .grow { flex: 1; min-width: 0; }
.card .name { font-weight: 600; color: var(--ink-100); }
.card .detail {
color: var(--ink-500);
font-size: 0.82rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.card .detail.mono { font-family: var(--font-mono); letter-spacing: 0.01em; }
.card .actions {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
align-items: center;
justify-content: flex-end;
}
.card .actions .btn.primary { flex: 1 1 auto; max-width: 14rem; }
.chip {
display: inline-flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 0.75rem;
border: 1px solid color-mix(in srgb, var(--theme-night-amber-300, #ecd287) 25%, transparent);
background: color-mix(in srgb, var(--theme-night-amber-300, #ecd287) 10%, transparent);
box-shadow: var(--glow-gold);
color: var(--gold-200);
}
.chip svg { width: 18px; height: 18px; }
.banner {
padding: 0.9rem 1.1rem;
margin-bottom: 1.25rem;
display: flex;
align-items: center;
gap: 0.9rem;
border-color: color-mix(in srgb, var(--theme-night-amber-500, #d4ab3a) 35%, transparent);
}
.banner .code {
font-family: var(--font-mono);
letter-spacing: 0.25em;
color: var(--gold-300);
font-size: 1.05rem;
}
.banner .detail { color: var(--ink-400); font-size: 0.85rem; }
.foot {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 0.4rem 1rem;
margin-top: auto;
padding-top: 1rem;
border-top: 1px solid var(--night-900);
font-size: 12px;
color: var(--ink-600);
text-align: center;
}
.foot button { font-size: 12px; }
.foot-link { color: var(--ink-600); text-decoration: none; transition: color 180ms var(--ease-snap); }
.foot-link:hover { color: var(--ink-400); }
/* Parchment day (docs/vtt-parity-implementation-plan.md section 14): the
server screens set data-theme on <html>; the shell's own chrome reads
the same attribute so the topbar, the drawer and the home agree. */
html[data-theme="light"] {
--night-950: var(--color-stone-950, #fbf8f1);
--night-900: var(--color-stone-900, #f1ebde);
--night-800: var(--color-stone-800, #e4dccb);
--night-700: var(--color-stone-700, #cbc0a8);
--ink-600: var(--color-stone-600, #8f8468);
--ink-500: var(--color-stone-500, #6d6350);
--ink-400: var(--color-stone-400, #55493a);
--ink-300: var(--color-stone-300, #3f3427);
--ink-200: var(--color-stone-200, #2d2419);
--ink-100: var(--color-stone-100, #201a12);
--ink-50: var(--color-stone-50, #15100a);
--gold-950: var(--color-amber-950, #fbf1d6);
--gold-900: var(--color-amber-900, #f3e2ad);
--gold-500: var(--color-amber-500, #8a6b1c);
--gold-400: var(--color-amber-400, #705615);
--gold-300: var(--color-amber-300, #5a4410);
--gold-200: var(--color-amber-200, #47350c);
--gold-100: var(--color-amber-100, #352808);
--gold-50: var(--color-amber-50, #241a05);
--background: #f4efe4;
--foreground: #221a10;
--shadow-elev-2: 0 2px 6px rgba(60, 40, 10, 0.14), 0 12px 32px rgba(60, 40, 10, 0.12);
--glow-gold: 0 0 20px color-mix(in srgb, var(--color-amber-600, #a6842a) 18%, transparent);
color-scheme: light;
}
/* The shell's sheets write their night colours as the theme's night tokens
(--theme-night-*, game/themes.css), so they follow the visual theme. By
day every screen but the title screen turns those tokens to the day
palette: a card, a chip or a button that was written in night colours
reads as part of the parchment instead of a dark patch on it. The title
screen keeps the night (its painting is night by day too, as on the
server), from the copy saved on <html> before the swap. */
html {
--shell-night-background: var(--theme-night-background, #0a0817);
--shell-night-foreground: var(--theme-night-foreground, #e9e6f4);
--shell-night-stone-950: var(--theme-night-stone-950, #0d0b1c);
--shell-night-stone-900: var(--theme-night-stone-900, #151229);
--shell-night-stone-800: var(--theme-night-stone-800, #211b3a);
--shell-night-stone-700: var(--theme-night-stone-700, #302853);
--shell-night-stone-600: var(--theme-night-stone-600, #575170);
--shell-night-stone-500: var(--theme-night-stone-500, #8f8aab);
--shell-night-stone-400: var(--theme-night-stone-400, #aeaac6);
--shell-night-stone-300: var(--theme-night-stone-300, #c9c6db);
--shell-night-stone-200: var(--theme-night-stone-200, #dedbec);
--shell-night-stone-100: var(--theme-night-stone-100, #edeaf7);
--shell-night-stone-50: var(--theme-night-stone-50, #f7f6fc);
--shell-night-amber-950: var(--theme-night-amber-950, #2b2008);
--shell-night-amber-900: var(--theme-night-amber-900, #4a390f);
--shell-night-amber-800: var(--theme-night-amber-800, #6d5517);
--shell-night-amber-700: var(--theme-night-amber-700, #95761f);
--shell-night-amber-600: var(--theme-night-amber-600, #b8922a);
--shell-night-amber-500: var(--theme-night-amber-500, #d4ab3a);
--shell-night-amber-400: var(--theme-night-amber-400, #e3c15c);
--shell-night-amber-300: var(--theme-night-amber-300, #ecd287);
--shell-night-amber-200: var(--theme-night-amber-200, #f4e0a6);
--shell-night-amber-100: var(--theme-night-amber-100, #f9ecc8);
--shell-night-amber-50: var(--theme-night-amber-50, #fdf7e7);
}
html[data-theme="light"] body {
--theme-night-background: var(--background, #f4efe4);
--theme-night-foreground: var(--foreground, #221a10);
--theme-night-stone-950: var(--color-stone-950, #fbf8f1);
--theme-night-stone-900: var(--color-stone-900, #f1ebde);
--theme-night-stone-800: var(--color-stone-800, #e4dccb);
--theme-night-stone-700: var(--color-stone-700, #cbc0a8);
--theme-night-stone-600: var(--color-stone-600, #8f8468);
--theme-night-stone-500: var(--color-stone-500, #655b49);
--theme-night-stone-400: var(--color-stone-400, #55493a);
--theme-night-stone-300: var(--color-stone-300, #3f3427);
--theme-night-stone-200: var(--color-stone-200, #2d2419);
--theme-night-stone-100: var(--color-stone-100, #201a12);
--theme-night-stone-50: var(--color-stone-50, #15100a);
--theme-night-amber-950: var(--color-amber-950, #fbf1d6);
--theme-night-amber-900: var(--color-amber-900, #f3e2ad);
--theme-night-amber-800: var(--color-amber-800, #e6c877);
--theme-night-amber-700: var(--color-amber-700, #c9a444);
--theme-night-amber-600: var(--color-amber-600, #a6842a);
--theme-night-amber-500: var(--color-amber-500, #8a6b1c);
--theme-night-amber-400: var(--color-amber-400, #705615);
--theme-night-amber-300: var(--color-amber-300, #5a4410);
--theme-night-amber-200: var(--color-amber-200, #47350c);
--theme-night-amber-100: var(--color-amber-100, #352808);
--theme-night-amber-50: var(--color-amber-50, #241a05);
}
html[data-theme="light"] .screen.title {
--theme-night-background: var(--shell-night-background);
--theme-night-foreground: var(--shell-night-foreground);
--theme-night-stone-950: var(--shell-night-stone-950);
--theme-night-stone-900: var(--shell-night-stone-900);
--theme-night-stone-800: var(--shell-night-stone-800);
--theme-night-stone-700: var(--shell-night-stone-700);
--theme-night-stone-600: var(--shell-night-stone-600);
--theme-night-stone-500: var(--shell-night-stone-500);
--theme-night-stone-400: var(--shell-night-stone-400);
--theme-night-stone-300: var(--shell-night-stone-300);
--theme-night-stone-200: var(--shell-night-stone-200);
--theme-night-stone-100: var(--shell-night-stone-100);
--theme-night-stone-50: var(--shell-night-stone-50);
--theme-night-amber-950: var(--shell-night-amber-950);
--theme-night-amber-900: var(--shell-night-amber-900);
--theme-night-amber-800: var(--shell-night-amber-800);
--theme-night-amber-700: var(--shell-night-amber-700);
--theme-night-amber-600: var(--shell-night-amber-600);
--theme-night-amber-500: var(--shell-night-amber-500);
--theme-night-amber-400: var(--shell-night-amber-400);
--theme-night-amber-300: var(--shell-night-amber-300);
--theme-night-amber-200: var(--shell-night-amber-200);
--theme-night-amber-100: var(--shell-night-amber-100);
--theme-night-amber-50: var(--shell-night-amber-50);
}