-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
1539 lines (1444 loc) · 42.8 KB
/
Copy pathstyle.css
File metadata and controls
1539 lines (1444 loc) · 42.8 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
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
body, html {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
overflow: hidden;
/* Prevents the whole page from rubber-banding on Mac/Mobile */
overscroll-behavior: none;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#map {
height: 100%;
width: 100%;
/* TRICK: Change this color to match your map's ocean color!
If your ocean is dark blue, put that hex code here.
This makes the "black borders" invisible.
#6d746b is the median ocean colour sampled from the exported map, so the
area outside the tiles reads as more ocean instead of a grey void. This
matters at minZoom, where the whole map fits on screen and there is
necessarily empty space above and below it.
*/
background: #6d746b;
/* If you are using the texture: */
/* background-image: url('assets/ocean.png'); */
/* background-repeat: repeat; */
}
/* --- THE SIDEBAR ENCYCLOPEDIA --- */
#sidebar {
position: fixed;
top: 0;
right: -450px; /* Hidden off-screen */
width: 450px; /* Nice wide reading area */
height: 100%;
background: #fdf6e3; /* Parchment color */
box-shadow: -5px 0 15px rgba(0,0,0,0.5);
transition: right 0.3s ease-in-out;
z-index: 2000;
box-sizing: border-box;
/* The scroll lives on #sidebar-content, so the read-aloud bar can sit
against the bottom edge instead of scrolling away with the prose. */
display: flex;
flex-direction: column;
}
#sidebar-content {
flex: 1 1 auto;
overflow-y: auto;
padding: 30px;
box-sizing: border-box;
}
#sidebar.active {
right: 0; /* Slide in */
}
/* An entry the map cannot pan out from under a right-hand panel gets a
left-hand one instead -- see MapFocus.preferredSide. Everything inside the
panel is unchanged; only which edge it is docked to moves. */
#sidebar.side-left {
right: auto;
left: -450px;
box-shadow: 5px 0 15px rgba(0,0,0,0.5);
transition: left 0.3s ease-in-out;
}
#sidebar.side-left.active {
left: 0;
}
#sidebar h2 {
margin-top: 0;
border-bottom: 2px solid #93403c;
color: #2c3e50;
padding-bottom: 10px;
}
/* Ribbon-style hero image (the entry's main `image` field, inserted as the first <img>) */
#sidebar img.ribbon {
/* 1. FORCE FULL WIDTH (Ribbon Style) */
display: block;
width: calc(100% + 60px); /* Width of sidebar + left padding + right padding */
max-width: none; /* Allow it to break the container */
/* 2. PULL IT TO THE EDGES */
/* We pull it -30px Up, Left, and Right to counteract the sidebar padding */
margin: -30px -30px 20px -30px;
/* 3. STYLING */
border-bottom: 4px solid #93403c; /* A divider line below the art */
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
/* 4. INTERACTION */
cursor: zoom-in; /* Tells user they can click to see details */
}
/* Inline images inside the entry body (e.g. maps, diagrams pasted into content HTML) */
#sidebar img:not(.ribbon) {
display: block;
max-width: 100%;
height: auto;
margin: 16px auto;
border: 2px solid #93403c;
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
cursor: zoom-in;
}
#sidebar p {
line-height: 1.6;
color: #333;
font-size: 16px;
}
/* Close Button (The X) */
.close-btn {
/* Absolute inside the panel, not fixed to the window: it then rides along
whichever edge the panel is docked to, and needs no off-screen parking
trick of its own. #sidebar does not scroll, so it stays put over the
ribbon image. */
position: absolute;
top: 10px;
right: 30px;
display: grid;
place-items: center;
/* Make it a circle */
width: 32px;
height: 32px;
border-radius: 50%;
/* The Contrast Fix: Semi-transparent parchment background */
background: rgba(253, 246, 227, 0.85);
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
box-sizing: border-box;
font-size: 24px;
font-weight: bold;
line-height: 1;
cursor: pointer;
color: #8b0000; /* Dark Red X */
z-index: 2001; /* Sit on top of the ribbon image */
transition: all 0.2s ease;
}
.close-x {
display: block;
/* The × glyph sits high in its font box; nudge it down to look centered */
transform: translateY(-3px);
}
.close-btn:hover {
background: #8b0000; /* Turn solid red on hover */
color: #fdf6e3; /* Turn text parchment color */
transform: scale(1.1);
}
/* Back: the close button's twin on the other corner. Same circle, same
parchment, so the pair reads as one set of panel controls. Absolute inside
the panel like .close-btn, so it rides whichever edge the panel docks to. */
#entry-back {
position: absolute;
top: 10px;
left: 30px;
display: grid;
place-items: center;
width: 32px;
height: 32px;
padding: 0;
border: none;
border-radius: 50%;
box-sizing: border-box;
background: rgba(253, 246, 227, 0.85);
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
font-family: inherit;
font-size: 26px;
font-weight: bold;
line-height: 1;
color: #8b0000;
cursor: pointer;
z-index: 2001;
transition: all 0.2s ease;
}
/* The browser's own [hidden] rule is the same weight as the id-less display
above but loses to it on order, so say it explicitly -- as #entry-bar does. */
#entry-back[hidden] { display: none; }
#entry-back:hover {
background: #8b0000;
color: #fdf6e3;
transform: scale(1.1);
}
.entry-back-glyph {
display: block;
/* Matches .close-x: the glyph sits high in its font box. */
transform: translateY(-2px);
}
/* --- CUSTOM MARKERS --- */
.marker-pin {
border-radius: 50%;
/* THE CHANGE: New Border Color */
border: 2px solid #f6dfbf;
box-shadow: 0 0 5px rgba(0,0,0,0.5);
cursor: pointer;
transition: all 0.2s ease;
opacity: 0.9;
z-index: 500;
}
/* Hover Effect: Pop out and turn Gold */
.marker-pin:hover {
transform: scale(1.2);
opacity: 1.0;
/* optional: Change border color on hover */
border-color: #ffec00;
z-index: 1000 !important;
}
/* 1. REGION */
.type-region {
background: #93403c;
width: 30px;
height: 30px;
border-width: 3px; /* Keep regions looking "heavy" */
}
/* 2. CITY */
.type-city {
background: #d9a958;
width: 22px;
height: 22px;
}
/* 3. TOWN */
.type-town {
background: #6A5D7B;
width: 16px;
height: 16px;
}
/* 4. POI */
.type-poi {
background: #4A6D7C;
width: 10px;
height: 10px;
}
/* --- LEAFLET UI OVERRIDES --- */
.leaflet-control-layers {
background: #fdf6e3 !important;
border: 2px solid #93403c !important;
border-radius: 4px !important;
box-shadow: 0 2px 5px rgba(0,0,0,0.5) !important;
color: #2c3e50;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight: bold;
padding: 5px !important;
}
.leaflet-control-layers-expanded { padding: 10px !important; }
.leaflet-control-layers label { font-size: 14px; cursor: pointer; }
/* --- EDIT MODE --- */
#edit-toolbar {
position: fixed;
top: 10px;
left: 50%;
transform: translateX(-50%);
z-index: 2500;
background: #fdf6e3;
border: 2px solid #93403c;
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0,0,0,0.4);
padding: 8px 14px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #2c3e50;
display: flex;
align-items: center;
gap: 14px;
white-space: nowrap;
}
.edit-toolbar-label {
font-size: 11px;
font-weight: bold;
letter-spacing: 1px;
color: #93403c;
border-right: 1px solid #93403c;
padding-right: 12px;
}
.edit-type-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
background: #fff;
border: 1px solid #93403c;
border-radius: 4px;
font-size: 12px;
font-weight: bold;
color: #2c3e50;
cursor: pointer;
flex: 0 0 auto;
width: auto;
min-width: max-content;
white-space: nowrap;
line-height: 1;
font-family: inherit;
}
.edit-type-btn:hover { background: #f6dfbf; }
.edit-type-btn.armed {
background: #93403c;
color: #fdf6e3;
}
.edit-type-swatch {
display: inline-block;
border-radius: 50%;
border: 2px solid #f6dfbf;
box-shadow: 0 0 3px rgba(0,0,0,0.5);
flex-shrink: 0;
}
.edit-type-swatch.type-region { width: 14px; height: 14px; }
.edit-type-swatch.type-city { width: 12px; height: 12px; }
.edit-type-swatch.type-town { width: 10px; height: 10px; }
.edit-type-swatch.type-poi { width: 8px; height: 8px; }
#edit-hint {
font-size: 11px;
color: #555;
font-style: italic;
border-left: 1px solid #ccc;
padding-left: 12px;
max-width: 260px;
white-space: normal;
}
#edit-panel {
position: fixed;
top: 0;
left: 0;
width: 380px;
height: 100%;
background: #fdf6e3;
border-right: 2px solid #93403c;
box-shadow: 5px 0 15px rgba(0,0,0,0.4);
z-index: 2400;
overflow-y: auto;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #2c3e50;
}
.edit-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background: #93403c;
color: #fdf6e3;
font-weight: bold;
}
.edit-panel-close {
cursor: pointer;
font-size: 22px;
line-height: 1;
}
.edit-panel-body {
padding: 14px 16px;
}
.edit-panel-body label {
display: block;
font-size: 12px;
font-weight: bold;
margin: 10px 0 4px;
color: #555;
}
.edit-panel-body label small {
font-weight: normal;
color: #888;
}
.edit-panel-body input[type="text"],
.edit-panel-body select,
.edit-panel-body textarea {
width: 100%;
box-sizing: border-box;
padding: 6px 8px;
border: 1px solid #ccc;
border-radius: 3px;
font-family: inherit;
font-size: 13px;
background: #fff;
}
.edit-panel-body textarea {
font-family: 'Consolas', 'Courier New', monospace;
font-size: 12px;
resize: vertical;
}
.edit-content-toolbar {
margin: 4px 0;
}
.edit-content-toolbar button {
padding: 4px 10px;
border: 1px solid #93403c;
border-radius: 3px;
background: #fff;
color: #2c3e50;
font-size: 11px;
font-weight: bold;
cursor: pointer;
}
.edit-content-toolbar button:hover { background: #f6dfbf; }
#edit-image-current {
font-size: 11px;
color: #888;
margin-top: 4px;
font-style: italic;
}
.edit-panel-actions {
margin-top: 16px;
display: flex;
gap: 8px;
}
.edit-panel-actions button {
padding: 8px 14px;
border: 1px solid #93403c;
border-radius: 4px;
background: #fff;
color: #2c3e50;
font-weight: bold;
cursor: pointer;
}
.edit-btn-primary { background: #93403c !important; color: #fdf6e3 !important; }
.edit-btn-danger { background: #fff !important; color: #8b0000 !important; border-color: #8b0000 !important; }
.edit-panel-actions button:hover { opacity: 0.85; }
#edit-status {
margin-top: 10px;
font-size: 12px;
min-height: 16px;
}
/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 600px) {
/* Make sidebar fill the whole screen on phones */
#sidebar {
width: 100%;
right: -100%;
/* `100%` can include browser chrome on mobile Safari. Dynamic viewport
units keep the close and audio controls inside the visible screen. */
height: 100dvh;
}
#sidebar-content {
/* FIX: Prevent horizontal scrolling/swiping off-screen.
The scroll container is #sidebar-content, so the rule belongs here
and not on #sidebar. */
overflow-x: hidden;
/* FIX: Reduce padding to give text more room on small screens */
padding: 20px;
}
/* Make Close Button bigger for thumbs */
.close-btn {
width: 40px;
height: 40px;
font-size: 28px;
/* Adjust position to match new 20px padding */
top: 10px;
right: 10px;
}
/* Back keeps pace with its twin. */
#entry-back {
width: 40px;
height: 40px;
font-size: 30px;
top: 10px;
left: 10px;
}
/* Adjust ribbon images to match new padding.
This has to be `img.ribbon`, not `img`: the desktop rule above is
`#sidebar img.ribbon`, which outranks a plain `#sidebar img` even from
inside a media query, so a less specific selector here loses and the
ribbon keeps its 30px desktop margins -- overflowing a phone by 10px
each side. */
#sidebar img.ribbon {
/* Recalculate width: 100% + Left Pad (20) + Right Pad (20) */
width: calc(100% + 40px);
/* Update negative margins to pull to the new edge */
margin: -20px -20px 20px -20px;
}
/* Keep the map actions as proper thumb-sized targets. The layer switcher
moves below them in the rule near the map controls, where Leaflet's
positioning is defined. */
.map-button, .map-menu-item {
min-height: 44px;
box-sizing: border-box;
padding: 8px 11px;
}
}
/* --- GENERATED ENTRY CONTENT ---------------------------------------------
Markup produced by scripts/build-wiki.mjs. The older hand-written entries
carry their colours inline; these rules give the generated prose the same
look without repeating a style attribute on every element. */
.entry-body {
line-height: 1.6;
color: #333;
font-size: 16px;
}
.entry-body .entry-section {
color: #8B0000;
font-size: 1.15em;
margin: 24px 0 6px;
}
.entry-epigraph {
margin: 0 0 20px;
padding: 0 0 0 14px;
border-left: 3px solid #93403c;
}
.entry-epigraph p {
font-style: italic;
color: #555 !important;
margin: 0 0 6px;
}
.entry-epigraph .entry-cite,
.entry-epigraph .entry-tagline {
font-style: normal;
font-size: 0.85em;
font-weight: bold;
color: #7a6a55 !important;
}
.entry-epigraph .entry-cite::before { content: "\2014\00a0"; }
.entry-rumor { margin: 10px 0; }
.entry-rumor strong { color: #8B0000; }
.entry-table-wrap {
/* A four-column guild roster is wider than a 450px sidebar; let the table
scroll inside its own box rather than pushing the page sideways. */
overflow-x: auto;
margin: 16px 0;
}
.entry-table {
border-collapse: collapse;
font-size: 0.88em;
min-width: 100%;
}
.entry-table th,
.entry-table td {
border: 1px solid #d8cbb0;
padding: 6px 9px;
text-align: left;
vertical-align: top;
}
.entry-table th {
background: #efe3c8;
color: #2c3e50;
}
.entry-table tbody tr:nth-child(even) { background: rgba(147, 64, 60, 0.05); }
.entry-appendix {
margin: 1.5rem 0 0;
border-top: 1px solid rgba(147, 64, 60, 0.35);
padding-top: 0.7rem;
}
.entry-appendix summary {
cursor: pointer;
color: #8b0000;
font-weight: 700;
}
.entry-appendix-body { margin-top: 0.8rem; }
/* Images imported from the .docx (scripts/import-docx-images.py). width and
height are on the tag so the text does not reflow as they load. */
.entry-figure {
margin: 18px 0;
}
.entry-figure img {
display: block;
/* Never upscale. The width/height attributes now carry the size the .docx
places the picture at, not the size of the file, so this scales down
when the column is narrower and leaves it alone when it is not. */
max-width: 100%;
height: auto;
margin: 0 auto;
border: 2px solid #93403c;
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
cursor: zoom-in;
background: #fdf6e3;
}
/* Sigils and runes -- marked by the importer as pictures the document sets
well inside its column and no taller than they are wide.
The .docx places them between 131px and 363px, which standardises them
against each other but still reads as large here: its column is 554px and
the reading panel's is nearer 390px, so the same picture occupies far more
of the page. The cap is what makes a symbol look like a symbol; the ones
the document already sets smaller than it keep their own size. */
.entry-symbol img {
max-width: min(100%, 220px);
border-width: 1px;
box-shadow: none;
background: transparent;
}
/* --- CROSS-LINKS --- */
a.wiki-link {
color: #93403c;
text-decoration: none;
border-bottom: 1px dotted #93403c;
cursor: pointer;
}
a.wiki-link:hover,
a.wiki-link:focus {
background: rgba(147, 64, 60, 0.12);
border-bottom-style: solid;
}
/* --- READ-ALONG HIGHLIGHT --- */
.seg-active {
background: rgba(227, 181, 77, 0.32);
border-radius: 2px;
box-shadow: inset 0 -2px 0 rgba(159, 89, 32, 0.62);
transition: background-color 160ms ease, box-shadow 160ms ease;
}
h2.seg-active { box-shadow: none; }
/* --- ENTRY BAR (back + read aloud) --- */
#entry-bar {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
background: #f2e7cf;
border-top: 2px solid #93403c;
flex-wrap: wrap;
/* Anchors .narration-status, which floats above the bar instead of
taking a row inside it. */
position: relative;
}
/* The browser's built-in `[hidden] { display: none }` has lower specificity
than `#entry-bar`, so declare it explicitly. Without this, map-only entries
that have no narration still show an enabled-looking stale player. */
#entry-bar[hidden] { display: none; }
/* The controls, wrapped so the whole set can fold away and leave the toggle
behind. */
.entry-bar-controls {
/* Basis 0, not auto: with auto the controls ask for their natural width,
take the whole line, and push the toggle onto a second row -- undoing
the very thing that got this bar down to one. At 0 they take what is
left after the toggle, which is more than they need. */
flex: 1 1 0;
min-width: 0;
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
#entry-bar.is-collapsed .entry-bar-controls { display: none; }
/* Folded away means gone, not shorter. The bar collapses to no height at all
and the button floats up out of it into the corner of the reading area --
the same trick the close and back controls use over the ribbon image. In
the sidebar that is the bottom corner of the panel; in the wiki the bar
sits between the prose and the chapter pager, so zero height puts the
button just above the pager without having to know how tall it is. */
#entry-bar.is-collapsed {
height: 0;
min-height: 0;
padding: 0 14px;
border-top: none;
background: transparent;
overflow: visible;
justify-content: flex-end;
align-items: flex-start;
}
#entry-bar.is-collapsed .narration-toggle {
position: relative;
top: -44px;
width: 34px;
height: 34px;
border-radius: 50%;
background: rgba(253, 246, 227, 0.9);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
z-index: 5;
}
#entry-bar.is-collapsed .narration-toggle:hover {
background: #93403c;
color: #fdf6e3;
}
.narration-toggle {
flex: 0 0 auto;
display: grid;
place-items: center;
width: 30px;
height: 30px;
padding: 0;
border: 1px solid #93403c;
border-radius: 4px;
background: #fff;
color: #93403c;
cursor: pointer;
transition: all 0.2s ease;
}
.narration-toggle svg { width: 16px; height: 16px; }
.narration-toggle:hover { background: #f6dfbf; }
/* Filled while the player is open, so the button reads as a state and not
merely as another control. */
.narration-toggle[aria-expanded="true"] { background: #93403c; color: #fdf6e3; }
.entry-bar-btn {
padding: 6px 10px;
border: 1px solid #93403c;
border-radius: 4px;
background: #fff;
color: #2c3e50;
font-family: inherit;
font-size: 13px;
font-weight: bold;
cursor: pointer;
max-width: 160px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.entry-bar-btn:hover:not(:disabled) { background: #f6dfbf; }
.entry-bar-btn:disabled { opacity: 0.4; cursor: default; }
.narration-play { min-width: 40px; font-size: 15px; }
.narration-jump { min-width: 32px; font-size: 18px; line-height: 1; }
.narration-play.is-playing { background: #93403c; color: #fdf6e3; }
#narration-seek { flex: 1 1 90px; min-width: 80px; accent-color: #93403c; }
.narration-time {
font-size: 11px;
color: #6b5c46;
font-variant-numeric: tabular-nums;
/* Without these the flex line squeezes this to ~50px and "0:00 / --:--"
breaks across two lines, taking the speed control down with it. It is
the one item here whose width is known, so it should never be the one
that gives. */
white-space: nowrap;
flex: 0 0 auto;
}
/* The button costs a third of what the slider did, which is what let this row
collapse to one line. The slider still exists -- it opens above the button,
where it has room to be the vertical control a rate wants to be. */
.narration-speed-wrap { position: relative; display: inline-flex; }
.narration-speed {
/* Fixed, not min-: "1x" and "1.6x" are different widths, and letting the
button size to its label made the whole row shuffle every time the rate
crossed a decimal. Wide enough for the longest value it can show. */
width: 52px;
padding-left: 0;
padding-right: 0;
box-sizing: border-box;
text-align: center;
font-variant-numeric: tabular-nums;
}
.narration-speed[aria-expanded="true"] { background: #93403c; color: #fdf6e3; }
.narration-speed-popover {
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%);
z-index: 10;
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 10px 8px;
background: #fdf6e3;
border: 1px solid #93403c;
border-radius: 5px;
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}
.narration-speed-popover[hidden] { display: none; }
#narration-speed-value {
font-size: 11px;
font-weight: bold;
color: #6b5c46;
font-variant-numeric: tabular-nums;
}
#narration-speed-range {
/* Bottom-to-top. `writing-mode` plus rtl is the standard spelling; the
-webkit rule is what older WebKit understood, and is ignored where the
standard one lands. */
writing-mode: vertical-lr;
direction: rtl;
-webkit-appearance: slider-vertical;
width: 20px;
height: 104px;
margin: 0;
accent-color: #93403c;
cursor: pointer;
}
/* Lifted out of the bar's flex flow. As a full-width flex item it took a row
of its own the instant it had text, growing the bar and shoving the seek
slider and every button upward -- a visible jolt for a message that is
usually gone again immediately. Floating just above the bar, it can appear
and go without anything else moving. */
.narration-status {
position: absolute;
left: 14px;
right: 14px;
bottom: 100%;
margin-bottom: 6px;
padding: 6px 9px;
background: #f2e7cf;
border: 1px solid #d8cbb0;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
font-size: 11px;
line-height: 1.4;
color: #6b5c46;
}
.narration-status:empty { display: none; }
.narration-status.is-error { color: #8b0000; font-weight: bold; }
/* --- MAP FOCUS --- */
/* Selection is drawn in the map's own parchment rather than a saturated
yellow. The map is a muted painting, and a pure hue sits on top of it
instead of in it. A parchment ring set off from the pin, with a hairline
so it still reads on pale ground, says "this one" without shouting. */
.marker-pin.marker-active {
opacity: 1;
border-color: #fdf6e3;
box-shadow:
0 0 0 3px rgba(253, 246, 227, 0.7),
0 0 0 4px rgba(44, 62, 80, 0.3),
0 2px 5px rgba(0, 0, 0, 0.35);
}
/* The pulse is a real element with its own fade-out, so turning animations
off leaves a visible ring rather than nothing at all. */
.map-pulse {
border-radius: 50%;
border: 2px solid rgba(253, 246, 227, 0.85);
background: rgba(253, 246, 227, 0.08);
box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
animation: map-pulse 1.6s ease-out forwards;
pointer-events: none;
}
.map-pulse.is-static { animation: none; opacity: 0.6; }
/* Opens closer to its final size than it used to: a ring that expands from
almost nothing reads as an effect, one that just settles reads as a place. */
@keyframes map-pulse {
0% { transform: scale(0.6); opacity: 0.7; }
100% { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.map-pulse { animation: none; opacity: 0.6; }
}
.region-outline { pointer-events: none; }
/* Photoshop's Regions group uses Linear Burn. CSS has no exact equivalent;
Multiply gives the same restrained darkening for this pale overlay source. */
.region-photoshop-overlay { mix-blend-mode: multiply; }
/* --- MAP BUTTONS --- */
.map-buttons {
position: fixed;
top: 10px;
left: 10px;
z-index: 1200;
display: flex;
gap: 8px;
}
/* The sprite itself is never drawn; only its symbols are, through <use>. */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.map-button {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 8px 14px 8px 11px;
background: #fdf6e3;
border: 2px solid #93403c;
border-radius: 4px;
box-shadow: 0 2px 5px rgba(0,0,0,0.4);
font-family: inherit;
font-size: 13px;
font-weight: bold;
color: #2c3e50;
cursor: pointer;
transition: all 0.2s ease;
}
/* The mark is the red of the map's own labels; the word stays ink-coloured,
so the icon leads and the label follows. */
.map-button-icon {
width: 16px;
height: 16px;
flex: 0 0 auto;
color: #93403c;
}
.map-button:hover { background: #f6dfbf; }
.map-button[hidden] { display:none; }
#offline-dialog { position:fixed; inset:0; z-index:5500; display:grid; place-items:center; padding:20px; background:rgba(20,16,10,.55); }
#offline-dialog[hidden] { display:none; }
.offline-card { position:relative; width:min(440px,100%); box-sizing:border-box; padding:24px; border:2px solid #93403c; border-radius:10px; background:#fdf6e3; box-shadow:0 16px 48px rgba(0,0,0,.5); color:#2c3e50; }
.offline-message { padding-right:34px; font-size:18px; line-height:1.45; }.offline-bottom { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:22px; }.offline-size-label { margin:0; color:#6b5c46; font-size:14px; white-space:nowrap; }.offline-size-label strong { color:#2c3e50; font-variant-numeric:tabular-nums; }.offline-card #offline-progress { margin:0 0 16px; color:#6b5c46; font-size:14px; }.offline-actions { display:flex; align-items:center; gap:8px; }.offline-card button { padding:8px 13px; border:1px solid #93403c; border-radius:5px; background:#93403c; color:#fdf6e3; font:inherit; font-weight:bold; cursor:pointer; }.offline-card #offline-cancel { background:transparent; color:#6b5c46; font-weight:normal; border-color:#b9aa8c; }.offline-card .offline-close { position:absolute; top:18px; right:18px; display:grid; place-items:center; width:28px; height:28px; padding:0; border:0; background:transparent; color:#8b0000; font-size:24px; line-height:1; }.offline-card .offline-close span { display:block; transform:translateY(-2px); }
@media (max-width: 420px) { .offline-bottom { align-items:flex-start; flex-direction:column; gap:14px; }.offline-actions { align-self:flex-end; } }
.map-button:hover .map-button-icon { color: #8b0000; }
body.edit-mode-active .map-buttons { display: none; }
/* The burger carries no word, so it drops the label's extra right padding
and comes out square beside Search. */
.map-menu { position: relative; }
.map-menu-toggle { padding: 8px 10px; }
.map-menu-toggle[aria-expanded="true"] { background: #f6dfbf; }
.map-menu-panel {
position: absolute;
top: calc(100% + 6px);
left: 0;
display: flex;
flex-direction: column;
width: max-content;
padding: 4px;
background: #fdf6e3;
border: 2px solid #93403c;
border-radius: 4px;
box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.map-menu-panel[hidden] { display: none; }
.map-menu-item {
display: flex;
align-items: center;
gap: 9px;
padding: 9px 12px 9px 10px;
border: 0;
border-radius: 3px;
background: transparent;
font-family: inherit;
font-size: 13px;
font-weight: bold;
color: #2c3e50;
text-align: left;
cursor: pointer;
}
.map-menu-item[hidden] { display: none; }
.map-menu-item:hover, .map-menu-item:focus-visible { background: #f6dfbf; }
.map-menu-item:hover .map-button-icon { color: #8b0000; }
@media (max-width: 600px) {
/* Leaflet starts this control in the top-right corner, which is also where
the last map action ends on a phone. Giving it its own row prevents the
labels and radio buttons from sitting on top of each other. */
.leaflet-top.leaflet-right { top: 54px; }
}
/* These stay pinned to their corner and let a left-docked panel cover them,
exactly as the layer control lets a right-docked one cover it. A control
that slides out of the way draws more attention than one that simply goes
behind the thing you opened. */
/* --- BUILD ERRORS --- */
/* Only ever visible when the generated data and the map metadata disagree. */
#build-error {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 6000;
background: #8b0000;
color: #fdf6e3;
font-size: 13px;
padding: 10px 14px;
box-shadow: 0 -2px 8px rgba(0,0,0,0.5);
}
/* --- THE WIKI AND THE BOOK OVERLAYS --- */
/* The book reuses the wiki's frame and header so the two read as one pair. */
#reader,
#book {
position: fixed;
inset: 0;
z-index: 4000;
background: rgba(20, 16, 10, 0.6);
display: flex;
padding: 24px;
box-sizing: border-box;