File size: 70,008 Bytes
64b3043
 
8c5bc54
 
 
 
64b3043
0d9b37b
1ea9131
 
 
0d9b37b
64b3043
0d9b37b
8c5bc54
0d9b37b
8c5bc54
 
0d9b37b
8c5bc54
0d9b37b
8c5bc54
0d9b37b
64b3043
8c5bc54
 
 
0d9b37b
 
8c5bc54
 
 
64b3043
8c5bc54
 
 
 
0d9b37b
 
8c5bc54
 
 
 
 
 
 
0d9b37b
 
8c5bc54
 
 
 
 
 
 
64b3043
8c5bc54
 
 
0d9b37b
8c5bc54
0d9b37b
 
 
 
93865a1
 
 
 
 
0d9b37b
 
 
 
64b3043
8c5bc54
 
0d9b37b
 
 
64b3043
0d9b37b
 
 
915fdd8
 
 
0d9b37b
 
 
64b3043
915fdd8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8c5bc54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64b3043
8c5bc54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64b3043
0d9b37b
 
 
 
 
 
8c5bc54
 
 
 
 
 
 
 
 
0d9b37b
 
64b3043
0d9b37b
 
8c5bc54
 
 
0d9b37b
 
8c5bc54
 
0d9b37b
 
 
 
8c5bc54
 
 
 
0d9b37b
 
8c5bc54
 
 
cc13281
0d9b37b
8c5bc54
 
0d9b37b
 
64b3043
8c5bc54
 
 
 
 
 
 
 
 
 
 
 
64b3043
8c5bc54
 
 
 
 
 
 
64b3043
0d9b37b
8c5bc54
 
0d9b37b
8c5bc54
 
0d9b37b
 
 
 
 
 
 
8c5bc54
 
 
 
0d9b37b
 
64b3043
0d9b37b
8c5bc54
 
 
 
0d9b37b
 
 
 
 
 
 
 
8c5bc54
0d9b37b
 
 
64b3043
0d9b37b
 
8c5bc54
 
 
 
0d9b37b
8c5bc54
 
0d9b37b
 
8c5bc54
 
 
 
 
 
 
 
0d9b37b
 
 
fa34b01
0d9b37b
 
 
fa34b01
 
 
 
64b3043
0d9b37b
 
8c5bc54
0d9b37b
8c5bc54
 
 
 
 
 
0d9b37b
 
 
8c5bc54
 
 
 
0d9b37b
 
64b3043
8c5bc54
 
 
 
 
0d9b37b
 
8c5bc54
 
 
 
 
0d9b37b
 
8c5bc54
 
 
 
 
 
0d9b37b
 
8c5bc54
 
 
 
59ec2ec
 
0d9b37b
 
8c5bc54
 
 
 
 
0d9b37b
 
8c5bc54
 
 
 
 
59ec2ec
8c5bc54
59ec2ec
8c5bc54
0d9b37b
 
8c5bc54
 
 
 
 
 
59ec2ec
8c5bc54
59ec2ec
8c5bc54
 
0d9b37b
8c5bc54
 
59ec2ec
 
 
 
 
0d9b37b
 
64b3043
8c5bc54
 
 
 
 
64b3043
8c5bc54
 
64b3043
8c5bc54
 
 
 
 
 
 
0d9b37b
d94e704
64b3043
9b82354
d94e704
 
9b82354
 
64b3043
9b82354
 
 
d94e704
4f0d1d2
 
 
9b82354
 
 
 
d5824f4
64b3043
d5824f4
 
 
 
 
 
 
 
 
 
 
 
 
9b82354
 
 
 
d5824f4
 
 
d94e704
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4f0d1d2
 
d94e704
 
 
4f0d1d2
 
 
d94e704
 
9b82354
 
 
d94e704
 
 
 
 
9b82354
d94e704
 
4f0d1d2
 
5161381
 
 
 
 
 
d94e704
9b82354
 
2822e77
d94e704
 
9b82354
2822e77
64b3043
 
9b82354
 
 
2822e77
9b82354
 
 
 
 
d94e704
9b82354
 
 
 
d94e704
9b82354
 
 
 
d94e704
9b82354
 
 
2822e77
 
64b3043
2822e77
 
 
 
 
 
 
 
9b82354
 
 
2822e77
 
 
9b82354
2822e77
 
 
 
 
9b82354
 
 
 
2822e77
 
 
 
 
9b82354
 
 
 
2822e77
 
 
d94e704
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64b3043
9b82354
 
2822e77
 
9b82354
 
ad4ce52
9b82354
 
 
 
2822e77
9b82354
 
2822e77
9b82354
2822e77
9b82354
2822e77
 
915fdd8
64b3043
915fdd8
d94e704
64b3043
9b82354
915fdd8
9b82354
 
64b3043
d5824f4
 
 
 
 
9b82354
d5824f4
 
 
 
 
 
 
 
 
 
 
 
 
9b82354
d5824f4
9b82354
 
 
 
d5824f4
9b82354
 
d5824f4
9b82354
d5824f4
 
9b82354
d5824f4
 
 
 
 
 
 
 
 
 
 
 
9b82354
d5824f4
9b82354
d5824f4
9b82354
 
d5824f4
9b82354
d5824f4
 
9b82354
 
64b3043
d5824f4
d207901
64b3043
d207901
64b3043
d207901
 
5161381
 
d207901
5161381
d207901
5161381
d207901
 
 
 
 
 
 
 
 
64b3043
d207901
64b3043
d207901
 
 
 
 
 
64b3043
 
d207901
0e68c4b
64b3043
0e68c4b
64b3043
0e68c4b
 
 
 
 
 
0d7507e
 
0e68c4b
2e78e50
 
 
64b3043
2e78e50
 
 
 
 
 
 
 
 
 
 
 
 
 
a24d989
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c440fa6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65d2e73
 
 
 
 
 
 
59ec2ec
 
65d2e73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dfded79
 
 
 
 
5161381
 
 
 
 
dfded79
 
 
 
 
 
 
 
0d7507e
 
 
 
dfded79
 
f635212
 
98232c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dfded79
f635212
 
 
dfded79
7676f37
dfded79
7676f37
 
 
9cdbd81
 
 
 
7676f37
9cdbd81
dfded79
 
7676f37
dfded79
7676f37
 
 
 
 
 
 
9cdbd81
 
 
 
7676f37
9cdbd81
7676f37
 
 
 
 
 
dfded79
fb01849
 
 
 
 
 
 
 
 
 
 
2aa7aa5
07067e7
 
8c9619e
 
 
8b06d36
 
 
8c9619e
 
 
1eee17c
8c9619e
 
 
8b06d36
8c9619e
 
1eee17c
 
 
 
 
 
8c9619e
1eee17c
8ce42a9
8c9619e
 
8ce42a9
 
 
 
 
 
 
 
 
 
 
559a3c2
8ce42a9
559a3c2
8ce42a9
 
 
 
f62c63b
 
559a3c2
 
8ce42a9
8c9619e
 
 
1eee17c
8c9619e
 
 
8ce42a9
8c9619e
 
 
1eee17c
8c9619e
 
 
 
 
 
 
 
1eee17c
8c9619e
 
 
 
 
 
3fb8d1b
66fea8f
 
 
 
8ce42a9
8c9619e
 
3fb8d1b
66fea8f
8c9619e
9d60123
 
 
dd3344f
9d60123
 
 
dd3344f
9d60123
8c9619e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9d60123
dd3344f
8c9619e
 
 
 
 
 
 
9d60123
dd3344f
8c9619e
8ce42a9
8c9619e
 
 
3fb8d1b
 
 
 
 
 
 
 
 
 
 
9d60123
 
3fb8d1b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5119140
 
 
dd3344f
 
5119140
 
dd3344f
5119140
3fb8d1b
 
8c9619e
3fb8d1b
8c9619e
 
 
 
 
 
 
 
dd3344f
 
8c9619e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1eee17c
 
 
 
8c9619e
 
 
 
 
 
 
 
 
 
 
1b4214e
 
 
 
 
 
 
8c9619e
1eee17c
8c9619e
 
 
 
5119140
8c9619e
5119140
8c9619e
 
 
 
 
5119140
8c9619e
 
 
5119140
 
8c9619e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c5038b8
9b0c13c
c5038b8
8b06d36
 
 
c5038b8
 
9b0c13c
8b06d36
 
c5038b8
 
 
 
 
 
f1e5910
c5038b8
 
9b0c13c
f1e5910
9b0c13c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
559a3c2
9b0c13c
559a3c2
9b0c13c
f62c63b
 
4b53186
c5038b8
 
 
 
9b0c13c
c5038b8
 
 
 
 
9b0c13c
559a3c2
 
c5038b8
9b0c13c
c5038b8
 
 
f333427
c5038b8
 
9b0c13c
c5038b8
 
 
f333427
c5038b8
9b0c13c
c5038b8
9b0c13c
c5038b8
f333427
 
 
 
c5038b8
 
 
9b0c13c
 
c5038b8
 
9b0c13c
c5038b8
 
7cad5a9
 
 
 
 
c5038b8
 
7cad5a9
 
 
 
 
c5038b8
7cad5a9
 
c5038b8
 
7cad5a9
 
 
 
 
 
 
 
 
c5038b8
7cad5a9
 
 
c5038b8
7cad5a9
 
 
 
 
 
 
 
c5038b8
 
 
 
 
 
1b4214e
 
c5038b8
 
 
99158af
 
 
 
 
 
 
c5038b8
 
99158af
 
 
c5038b8
5154bf5
 
 
 
 
 
 
 
f3727a3
 
 
 
 
 
 
5154bf5
 
 
41c845f
0fa324f
 
1337168
41c845f
0fa324f
 
 
 
 
41c845f
 
 
 
 
 
 
1337168
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5154bf5
 
0fa324f
 
5154bf5
 
763dd63
 
5154bf5
 
 
11f53cb
 
 
 
 
 
 
 
 
 
 
38b902e
 
 
11f53cb
 
 
 
5154bf5
 
0fa324f
5154bf5
 
11f53cb
5154bf5
763dd63
 
5154bf5
 
 
 
0fa324f
1337168
5154bf5
11f53cb
38b902e
5154bf5
 
61cacfc
 
 
f3727a3
 
3fdca48
61cacfc
 
 
3fdca48
 
 
f3727a3
 
61cacfc
 
1337168
5154bf5
0fa324f
 
5154bf5
 
 
 
 
 
0fa324f
5154bf5
 
 
 
 
 
7676f37
5154bf5
 
7676f37
5154bf5
 
 
 
 
 
 
 
 
b828605
5154bf5
f3727a3
b828605
 
 
 
 
 
ad46c69
 
5154bf5
ad46c69
b828605
f3727a3
 
ad46c69
5154bf5
0fa324f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5154bf5
 
 
fa34b01
1337168
fa34b01
b828605
 
5154bf5
 
 
1337168
5154bf5
 
 
 
 
 
 
 
ea10768
 
 
 
 
 
03129db
 
 
 
 
 
 
 
 
5154bf5
 
0fa324f
5161381
 
 
f3727a3
5161381
5154bf5
f3727a3
 
 
5154bf5
 
 
 
 
 
0fa324f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5154bf5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0fa324f
 
 
 
 
 
 
bfa4c79
 
0fa324f
 
 
 
 
 
 
 
 
 
5154bf5
 
 
 
 
 
 
 
 
fa34b01
763dd63
 
5154bf5
763dd63
5154bf5
 
 
f3727a3
5154bf5
0fa324f
78eb62d
 
 
72bd421
f3727a3
5154bf5
f6f6542
 
 
b770513
 
f3727a3
 
 
 
 
 
9a2fcb4
 
f3727a3
 
5154bf5
 
 
78eb62d
aabc5db
78eb62d
 
 
 
 
 
aabc5db
5154bf5
c304ef4
 
 
 
a086c41
 
 
 
 
 
 
 
5ddbb4a
78eb62d
 
aabc5db
 
61c7d80
aabc5db
 
61c7d80
 
 
aabc5db
 
 
 
 
e659f31
78eb62d
aabc5db
e659f31
aabc5db
 
b770513
78eb62d
 
b770513
5ddbb4a
b770513
 
5ddbb4a
 
b770513
 
 
f6f6542
aabc5db
 
 
 
 
 
 
 
 
 
 
 
5154bf5
 
9a2fcb4
451fa6b
 
9a2fcb4
451fa6b
9a2fcb4
 
 
451fa6b
 
0564932
451fa6b
5154bf5
748d59d
451fa6b
 
9a2fcb4
5154bf5
451fa6b
748d59d
0564932
451fa6b
748d59d
5154bf5
ca3122d
 
 
 
 
 
 
41c845f
f3727a3
 
41c845f
 
 
 
 
 
 
 
e875da4
 
 
 
 
5154bf5
41c845f
 
5154bf5
e875da4
5154bf5
e875da4
5154bf5
e875da4
 
5154bf5
41c845f
 
5154bf5
e875da4
5154bf5
e875da4
41c845f
5154bf5
e875da4
5154bf5
41c845f
 
5154bf5
e875da4
41c845f
5154bf5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38eac0e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5154bf5
 
5161381
5154bf5
 
 
 
 
 
38eac0e
 
5154bf5
4aff8e4
759c1bd
4aff8e4
 
 
759c1bd
4aff8e4
 
 
 
759c1bd
 
 
 
 
 
 
 
4aff8e4
 
 
 
 
 
 
759c1bd
 
4aff8e4
 
759c1bd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4aff8e4
 
759c1bd
 
4aff8e4
759c1bd
4aff8e4
759c1bd
 
 
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
/* Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€
   HOLLOW Ò€” Horror CSS for Gradio 6.x
   Strategy: dissolve the Gradio "form" chrome into one
   continuous void, then layer atmosphere on top.
   No JS. @keyframes only (grain, vignette breath,
   title flicker, Bond heartbeat).
   Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€ */

/* Fonts are loaded via a <link> in <head> (app.py _HEAD_JS): an @import here is
   rejected on the Space ("@import rules are not allowed here") because Gradio
   injects this stylesheet after its own, so @import isn't the first rule. */

/* Ò”€Ò”€ 1. Theme variable overrides Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€ */
:root {
    /* Backgrounds */
    --body-background-fill:       #0a0810;
    --background-fill-primary:    #0c0a14;
    --background-fill-secondary:  transparent;  /* Hollow's words float */

    /* Accent drives the visitor bubble + focus */
    --color-accent:               #7a4f8a;
    --color-accent-soft:          #15101f;       /* visitor bubble bg */

    /* Borders Ò€” kept near-invisible; the void is continuous */
    --border-color-primary:        #14101f;
    --border-color-accent:         #2e2142;
    --border-color-accent-subdued: #14101f;

    /* Text */
    --body-text-color:          #c0b8ce;
    --body-text-color-subdued:  #5a5070;

    /* Labels Ò€” almost gone, like worn engraving */
    --block-label-text-color:        #352f4a;
    --block-title-text-color:        #352f4a;
    --block-label-background-fill:   transparent;
    --block-info-text-color:         #352f4a;

    /* Inputs */
    --input-background-fill:       transparent;
    --input-background-fill-focus: transparent;
    --input-border-color:          #221b34;
    --input-border-color-focus:    #5a3e72;
    --input-placeholder-color:     #38305a;
    --input-shadow:                none;
    --input-shadow-focus:          none;

    /* Buttons */
    --button-secondary-background-fill:       rgba(30,20,46,0.5);
    --button-secondary-background-fill-hover: rgba(44,26,64,0.6);
    --button-secondary-text-color:            #9a7caa;
    --button-shadow:        none;
    --button-shadow-active: none;
    --button-shadow-hover:  none;

    /* Blocks / panels Ò€” chrome dissolved */
    --block-background-fill: transparent;
    --block-border-color:    transparent;
    --block-border-width:    0px;
    --block-shadow:          none;
    --panel-background-fill:  transparent;

    /* Slider */
    --slider-color: #7a4f8a;

    /* memory/humanity accent (recall line, recovered items, feedback pulses) β€”
       distinct from the dried-blood red reserved for cruelty/bad-ending */
    --mem-accent: #e0b283;
    --mem-glow:   rgba(200,130,70,0.55);

    /* Typography */
    --font:      'Crimson Text', Georgia, 'Times New Roman', serif;
    --font-mono: 'Special Elite', 'Courier New', monospace;

    /* Shadows off Ò€” depth comes from atmosphere, not cards */
    --shadow-drop:    none;
    --shadow-drop-lg: none;
    --shadow-spread:  0;
}

/* Ò”€Ò”€ 2. The void + breathing fog Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€ */
body {
    background-color: #0a0810 !important;
    background-image:
        radial-gradient(ellipse at 14% -5%,  rgba(58,20,84,0.20) 0%, transparent 52%) !important,
        radial-gradient(ellipse at 86% 105%, rgba(24,8,44,0.26) 0%, transparent 52%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

/* Dried-blood stains Ò€” own fixed layer ABOVE the vignette so the corner
   darkening can't eat them. Painted over the scene like stains on glass.
   Kept off the deep edges; the breathing pulse comes from being in this
   layer's neighbourhood, not the vignette. */
.gradio-container::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    background:
        radial-gradient(ellipse 18% 13% at 70% 30%, rgba(112,70,74,0.26) 0%, transparent 66%),
        radial-gradient(ellipse 11% 17% at 18% 55%, rgba(104,64,68,0.22) 0%, transparent 66%),
        radial-gradient(ellipse 15% 10% at 52% 78%, rgba(108,66,70,0.20) 0%, transparent 66%),
        radial-gradient(ellipse 9%  12% at 38% 34%, rgba(100,62,66,0.18) 0%, transparent 66%),
        radial-gradient(ellipse 10% 8%  at 84% 64%, rgba(108,68,72,0.20) 0%, transparent 66%);
}

/* Vignette + top fog, breathing slowly like something asleep */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    background:
        radial-gradient(ellipse at 50% 36%, transparent 38%, rgba(4,3,8,0.58) 100%),
        linear-gradient(to bottom, rgba(6,4,12,0.62) 0%, transparent 13%);
    animation: dread-breath 11s ease-in-out infinite;
}

@keyframes dread-breath {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1.00; }
}

/* Film grain Ò€” fixed, jittering, very faint */
body::after {
    content: '';
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 1001;
    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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.1s steps(4) infinite;
}

@keyframes grain {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-2%, 1%); }
    50%  { transform: translate(1%, -2%); }
    75%  { transform: translate(-1%, 2%); }
    100% { transform: translate(0, 0); }
}

/* Ò”€Ò”€ 3. Container Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€ */
.gradio-container {
    background: transparent !important;
    font-family: 'Crimson Text', Georgia, serif !important;
    font-size: 1.05rem !important;
}

/* Dissolve every panel into the void */
.block,
.form,
.panel,
.gr-box,
.gr-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ò”€Ò”€ 4. Title Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€ */
.gradio-container h2 {
    font-family: 'Special Elite', 'Courier New', monospace !important;
    color: #8a6a9a !important;
    letter-spacing: 0.18em !important;
    font-size: 1.75rem !important;
    font-weight: 400 !important;
    text-shadow:
        0 0 24px rgba(110,55,145,0.45),
        0 0 64px rgba(80,30,115,0.20);
    animation: title-flicker 8s ease-in-out infinite;
}

@keyframes title-flicker {
    0%, 91%, 96%, 100% { opacity: 1; }
    93%                 { opacity: 0.66; }
    94%                 { opacity: 1; }
    95%                 { opacity: 0.82; }
}

/* Subtitle whisper */
.gradio-container h2 + p,
.gradio-container h2 + p em {
    color: #6f5f88 !important;
    font-style: italic;
    font-size: 0.92rem;
    letter-spacing: 0.05em;
}

/* Ò”€Ò”€ 5. Kill Gradio chatbot chrome Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€ */
/* Toolbar (share / copy / fullscreen) breaks the fiction.
   Best killed via app.py flags too; this is the backstop. */
.icon-button-wrapper,
.chatbot .icon-button-wrapper,
button[aria-label="Share"],
button[aria-label="Copy"],
button[aria-label="Copy conversation"],
button[aria-label="Fullscreen"],
button[aria-label="Clear"] {
    display: none !important;
}

/* The message scroll area Ò€” let it bleed into the void */
.chatbot,
.bubble-wrap,
.message-wrap {
    background: transparent !important;
    border: none !important;
}

/* Ò”€Ò”€ 6. Hollow's words (bot) Ò€” formless, haunted Ò”€Ò”€ */
.bot {
    background: transparent !important;
    border: none !important;
    border-left: 2px solid #3a2a50 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.bot .prose,
.bot .message,
.bot p {
    font-family: 'Crimson Text', Georgia, serif !important;
    font-style: italic !important;
    font-size: 1.16rem !important;
    color: #b3aac4 !important;
    line-height: 1.7 !important;
    text-shadow: 0 0 18px rgba(120,70,160,0.18);
}

/* Ò”€Ò”€ 7. Visitor's words (user) Ò€” contained, human Ò”€Ò”€ */
.user {
    background: var(--color-accent-soft) !important;
    border: 1px solid #211a32 !important;
    border-radius: 7px !important;
    box-shadow: none !important;
}

.user .prose,
.user .message,
.user p {
    font-family: 'Crimson Text', Georgia, serif !important;
    font-style: normal !important;
    font-size: 1.05rem !important;
    color: #cec6dc !important;
    line-height: 1.6 !important;
}

/* Ò”€Ò”€ 8. Input Ò€” a line of confession, not a box Ò”€Ò”€ */
textarea,
.gradio-container input[type="text"] {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #2a2340 !important;
    border-radius: 0 !important;
    font-family: 'Crimson Text', Georgia, serif !important;
    font-size: 1.08rem !important;
    color: #c8c0d6 !important;
    caret-color: #7a4f8a;
    letter-spacing: 0.01em;
    box-shadow: none !important;
    transition: border-color 0.4s ease, box-shadow 0.4s ease !important;
}

textarea:focus,
.gradio-container input[type="text"]:focus {
    border-bottom-color: #6a4a82 !important;
    box-shadow: 0 8px 18px -14px rgba(120,70,160,0.7) !important;
}

textarea::placeholder {
    color: #5a5078 !important;
    font-style: italic;
}

#game-inputrow textarea::placeholder {
    color: #6a6090 !important;
}

/* Ò”€Ò”€ 9. Buttons (the Ò†’ send) Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€ */
.gradio-container button {
    font-family: 'Crimson Text', Georgia, serif !important;
    font-size: 1.25rem !important;
    letter-spacing: 0.05em;
    color: #9a7caa !important;
    background: rgba(30,20,46,0.45) !important;
    border: 1px solid #2a2040 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    transition: color 0.35s, border-color 0.35s, box-shadow 0.35s, background 0.35s !important;
}

.gradio-container button:hover {
    color: #d3bee2 !important;
    border-color: #5a3e72 !important;
    background: rgba(44,26,64,0.6) !important;
    box-shadow: 0 0 16px rgba(120,60,160,0.38) !important;
}

/* Ò”€Ò”€ 10. Bond meter Ò€” custom HTML, a pulsing thread Ò”€Ò”€ */
/* Rendered by _render_bond() in app.py. Full control:
   no Gradio orange, no track, no number box, no reset. */
.bond-meter {
    padding: 4px 2px 2px;
    user-select: none;
}

.bond-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 9px;
}

.bond-name {
    font-family: 'Special Elite', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #4a4063;
}

.bond-tier {
    font-family: 'Special Elite', monospace;
    font-size: 0.84rem;
    letter-spacing: 0.1em;
    color: #bcb4c8;
    text-shadow: 0 0 12px rgba(150,145,170,0.35);
}

.bond-track {
    position: relative;
    height: 2px;
    border-radius: 2px;
    background: #1a1428;
}

.bond-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(to right, #2b2832, #bcb4c8);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(180,174,196,0.35);
    transition: width 1.2s cubic-bezier(0.2,0.7,0.2,1);
}

.bond-beat {
    position: absolute;
    top: -8px;
    width: 8px;
    height: 18px;
    margin-left: -4px;
    background: #cdc6d8;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(190,184,206,0.6);
    animation: heartbeat 2.4s ease-in-out infinite;
    transition: left 1.2s cubic-bezier(0.2,0.7,0.2,1);
}

@keyframes heartbeat {
    0%,  100% { transform: scaleY(1.0);  box-shadow: 0 0 4px  rgba(180,174,196,0.40); }
    8%         { transform: scaleY(1.5);  box-shadow: 0 0 14px rgba(205,198,216,0.85); }
    18%        { transform: scaleY(1.0);  box-shadow: 0 0 4px  rgba(180,174,196,0.40); }
    30%        { transform: scaleY(1.25); box-shadow: 0 0 9px  rgba(195,188,208,0.62); }
    45%        { transform: scaleY(1.0);  box-shadow: 0 0 4px  rgba(180,174,196,0.35); }
}

/* Ò”€Ò”€ 12. Scrollbar Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a1f40; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3d2f58; }

/* Ò”€Ò”€ 13. Hide Gradio footer Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€ */
footer { display: none !important; }

/* Ò”€Ò”€ 14. Respect reduced motion Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€Ò”€ */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    .gradio-container h2,
    .bond-beat {
        animation: none !important;
    }
}

/* Ò”€Ò”€ 15. Entity panel Ò€” the child behind a gothic arch Ò”€Ò”€ */
.entity-portal {
    position: relative;
    aspect-ratio: 5 / 6;
}

/* the scene is masked to a pointed (lancet) arch Ò€” a cathedral window */
.entity-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    /* a faint ground mist behind the child: the portrait's dark lower half
       silhouettes against it instead of sinking into pure black */
    background: radial-gradient(ellipse 100% 55% at 50% 105%, #413d52, #0b0a10 78%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0,120 L0,52 A58,58 0 0 1 50,4 A58,58 0 0 1 100,52 L100,120 Z' fill='%23fff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0,120 L0,52 A58,58 0 0 1 50,4 A58,58 0 0 1 100,52 L100,120 Z' fill='%23fff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* carved-stone lancet arch: gradient bevel (light top-left, recessed bottom-
   right), dark inner groove, faint highlight. No keystone, no corner blocks Ò€”
   just worn stone tracing the masked edge so the child sits flush inside it. */
.entity-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background-image: var(--stone-grain);
    background-size: 130px;
    opacity: 0.10;
    mix-blend-mode: soft-light;
}

.entity-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%235a5560'/%3E%3Cstop offset='0.5' stop-color='%232a2632'/%3E%3Cstop offset='1' stop-color='%230c0a10'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2.5,120 L2.5,52 A55,55 0 0 1 50,6 A55,55 0 0 1 97.5,52 L97.5,120' fill='none' stroke='url(%23g)' stroke-width='6'/%3E%3Cpath d='M5,120 L5,53 A53,53 0 0 1 50,9 A53,53 0 0 1 95,53 L95,120' fill='none' stroke='%230c0a10' stroke-width='1.4'/%3E%3Cpath d='M6.2,120 L6.2,53 A52,52 0 0 1 50,10.4 A52,52 0 0 1 93.8,53 L93.8,120' fill='none' stroke='%2346424e' stroke-width='0.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    filter: drop-shadow(1px 1px 0 rgba(120,114,130,0.18))
            drop-shadow(-1px -1px 1px rgba(0,0,0,0.6));
}

.entity-figure {
    position: absolute;
    inset: 0;
}

.entity-sway {
    animation: entity-sway 9s ease-in-out infinite alternate;
    transform-origin: 50% 100%;
}

@keyframes entity-sway {
    from { transform: rotate(-0.5deg) translateX(-2px); }
    to   { transform: rotate(0.5deg)  translateX(2px); }
}

/* !important: Gradio's base img reset overrides plain height/width here β€”
   without it the square portrait leaves a dead band at the arch bottom */
.entity-img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* terror flicker: a fast subliminal convulsion through every face. Hard
   steps() cuts, ~0.55s total, too quick to read. The DOM is replaced each
   turn so the one-shot animations always restart. */
.entity-flash-wrap {
    position: absolute;
    inset: 0;
}

.entity-flick {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    /* match the base silhouette exactly (contain + bottom + same fade mask) so
       the flicker/convulse/settle faces never balloon past the standing child */
    object-fit: contain !important;
    object-position: bottom center !important;
    -webkit-mask: linear-gradient(#000 78%, transparent 99%);
    mask: linear-gradient(#000 78%, transparent 99%);
    opacity: 0;
    animation-duration: 0.55s;
    animation-timing-function: steps(1, end);
    animation-fill-mode: forwards;
}

.entity-flash-wrap.entity-flash-strong .entity-flick { animation-duration: 0.7s; }

/* each face blinks in its own scattered windows Ò€” they overlap into chaos */
.flick-0 { animation-name: flick-terror; }   /* terror Ò€” appears most */
.flick-1 { animation-name: flick-almost; }
.flick-2 { animation-name: flick-end; }
.flick-3 { animation-name: flick-base; }      /* settles back to the portrait */

@keyframes flick-terror {
    0%, 100% { opacity: 0; }
    4%  { opacity: 1; } 11% { opacity: 0; }
    34% { opacity: 1; } 42% { opacity: 0; }
    62% { opacity: 1; } 70% { opacity: 0; }
}
@keyframes flick-almost {
    0%, 100% { opacity: 0; }
    14% { opacity: 1; } 22% { opacity: 0; }
    50% { opacity: 1; } 57% { opacity: 0; }
}
@keyframes flick-end {
    0%, 100% { opacity: 0; }
    24% { opacity: 1; } 31% { opacity: 0; }
    76% { opacity: 1; } 82% { opacity: 0; }
}
@keyframes flick-base {
    0%, 86% { opacity: 0; }
    90%, 100% { opacity: 1; }
}

/* subliminal full-screen echo Ò€” recall turns and the finale only */
.entity-ghost {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 998;
    background-size: cover;
    background-position: center 25%;
    opacity: 0;
    filter: grayscale(1) blur(1px);
    animation-duration: 0.5s;
    animation-timing-function: steps(1, end);
    animation-fill-mode: forwards;
}

/* a real screamer: the face stabs the whole screen for a few frames, gone */
.entity-ghost.flash-0 { animation-name: entity-ghost-a; }
.entity-ghost.flash-1 { animation-name: entity-ghost-b; }

@keyframes entity-ghost-a {
    0%   { opacity: 0; }
    8%   { opacity: 0.55; }
    18%  { opacity: 0; }
    26%  { opacity: 0.4; }
    34%  { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes entity-ghost-b {
    0%   { opacity: 0; }
    8%   { opacity: 0.55; }
    18%  { opacity: 0; }
    26%  { opacity: 0.4; }
    34%  { opacity: 0; }
    100% { opacity: 0; }
}

/* atmosphere overlays, in front of the portrait */
.entity-fog {
    position: absolute;
    inset: -15%;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 25% at 30% 75%, rgba(150,140,165,0.14) 0%, transparent 70%),
        radial-gradient(ellipse 55% 30% at 75% 35%, rgba(120,110,140,0.10) 0%, transparent 70%);
    filter: blur(10px);
    animation: entity-fog-drift 16s ease-in-out infinite alternate;
}

@keyframes entity-fog-drift {
    from { transform: translateX(-3%) translateY(1%); }
    to   { transform: translateX(3%)  translateY(-1.5%); }
}

.entity-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.13;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.entity-vig {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 42%, transparent 42%, rgba(5,4,9,0.82) 100%);
}

/* Ò”€Ò”€ 16. Treasure Ò€” stone reliquary with inner scroll Ò”€Ò”€ */
/* the frame lives on the panel; the fade mask lives on the inner scroller,
   so the mask can't eat the border-image */
.treasure-panel {
    height: 500px;
    display: flex;
    flex-direction: column;
    margin-top: -36px;
}

.treasure-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    margin-top: 6px;
    -webkit-mask-image: linear-gradient(
        to bottom, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(
        to bottom, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%);
}

/* reduced motion: kill real MOTION (drift, sway, glitch translate) but keep
   the terror flash and echo Ò€” they are opacity fades, not movement, and they
   are the core horror beat. Strip only the glitch from the strong variant. */
@media (prefers-reduced-motion: reduce) {
    /* kill ambient drift only Ò€” the flicker and screamer are opacity, the core
       horror beat, and must always play */
    .entity-sway, .entity-fog { animation: none !important; }
}

/* Ò”€Ò”€ 17. Carved-stone frames Ò€” weathered tablet (Worn Tablet) Ò”€Ò”€ */
/* One reusable 9-slice border-image: directional bevel baked into an SVG
   gradient (light top-left, recessed bottom-right), a dark inner groove, a
   faint highlight, and rounded chipped corner blocks. Paired with an inset
   box-shadow (the recessed well) and a feTurbulence grain overlay. All driven
   by CSS variables so intensity retunes in one place. */
:root {
    --stone-base:   #14121c;
    --stone-frame:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%235a5560'/%3E%3Cstop offset='0.5' stop-color='%232a2632'/%3E%3Cstop offset='1' stop-color='%230c0a10'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='3' y='3' width='94' height='94' rx='2' fill='none' stroke='url(%23g)' stroke-width='5'/%3E%3Crect x='8' y='8' width='84' height='84' fill='none' stroke='%230c0a10' stroke-width='1.4'/%3E%3Crect x='10.5' y='10.5' width='79' height='79' fill='none' stroke='%2346424e' stroke-width='0.7' opacity='0.6'/%3E%3Cg fill='%23252230'%3E%3Crect x='1.5' y='1.5' width='15' height='15' rx='4' stroke='url(%23g)' stroke-width='1'/%3E%3Crect x='83.5' y='1.5' width='15' height='15' rx='4' stroke='url(%23g)' stroke-width='1'/%3E%3Crect x='1.5' y='83.5' width='15' height='15' rx='4' stroke='url(%23g)' stroke-width='1'/%3E%3Crect x='83.5' y='83.5' width='15' height='15' rx='4' stroke='url(%23g)' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
    --stone-grain:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --stone-bevel:  inset 1px 1px 0 rgba(120,114,130,0.30),
                    inset -1px -1px 0 rgba(8,6,12,0.85),
                    inset 0 0 16px rgba(0,0,0,0.5);
}

/* the reusable carved-stone frame */
.stone-frame,
.treasure-panel,
.user,
.gradio-container button {
    border: 11px solid transparent !important;
    border-image-source: var(--stone-frame) !important;
    border-image-slice: 30 !important;
    border-image-width: 11px !important;
    border-image-repeat: stretch !important;
    border-radius: 0 !important;
    box-shadow: var(--stone-bevel) !important;
}

/* Treasure: a stone reliquary, with eroded grain on the inner surface */
.treasure-panel {
    position: relative;
    background: var(--stone-base) !important;
}
.treasure-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: var(--stone-grain);
    background-size: 130px;
    opacity: 0.10;
    mix-blend-mode: soft-light;
}
.treasure-panel > * { position: relative; z-index: 1; }

/* Visitor's words: a carved confession slab */
.user {
    background: #120e1c !important;
}

/* Send rune + button: a smaller carved stud */
.gradio-container button {
    border-width: 9px !important;
    border-image-width: 9px !important;
}

/* Title Ò€” no underline rule */
.gradio-container h2 { border-bottom: none !important; }

/* Ò”€Ò”€ 18. Three endings Ò€” rage portrait & fog dissolve Ò”€Ò”€ */

/* bad ending: a low red breath pulsing over the rage portrait Ò€” the only
   color in the entire game, reserved for this moment */
.entity-rage-tint {
    /* widen well past the narrow silhouette so the red reads as atmosphere
       around the child, not a column-shaped block */
    position: absolute;
    inset: -40% -170%;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 42%, rgba(120, 20, 20, 0.22), transparent 72%);
    mix-blend-mode: screen;
    animation: rage-pulse 2.6s ease-in-out infinite;
}

@keyframes rage-pulse {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1; }
}

/* neutral ending: materialization in reverse Ò€” the child sinks back into
   the fog. One-shot on mount; the animation overrides the inline idle style
   and `forwards` holds the dissolved frame. Opacity/blur are the beat itself Ò€”
   do NOT add these to the prefers-reduced-motion kill lists. */
.entity-dissolve {
    animation: entity-dissolve 9s ease-in forwards;
}

@keyframes entity-dissolve {
    0%   { filter: blur(0px);  opacity: 1; }
    100% { filter: blur(10px); opacity: 0.18; }
}

/* bad finale frenzy: the capture-flash flicker but sustained Ò€” every face
   cycles over the body ~4 times (3.2s), then the animations die and the
   rage face beneath stays. Opacity only Ò€” must survive reduced-motion. */
.entity-frenzy-wrap {
    position: absolute;
    inset: 0;
}

.entity-frenzy-wrap .entity-flick {
    animation-duration: 0.55s;
    animation-iteration-count: 6;
}

/* frenzy ghost: the terror face stabs the FULL screen three times across the
   convulsion (vs the single half-second stab of capture flashes). No flash-0/1
   class here Ò€” fresh element on mount, plays once. Opacity only. */
.entity-ghost-frenzy {
    animation: ghost-frenzy 3.2s steps(1, end) forwards;
}

@keyframes ghost-frenzy {
    0%   { opacity: 0; }
    6%   { opacity: 0.6; }
    12%  { opacity: 0; }
    42%  { opacity: 0.65; }
    50%  { opacity: 0; }
    78%  { opacity: 0.75; }
    86%  { opacity: 0; }
    100% { opacity: 0; }
}

/* ── 19. Hide Gradio's per-component progress overlay ──
   The "processing | 9.0/5.0s" text, orange loader diamond, timer and bar that
   Gradio stamps on every output component during generation. The Chatbot's own
   "..." pending bubble is a separate element and is NOT affected. */
.progress-text,
.meta-text,
.meta-text-center,
.timer,
.eta-bar,
.progress-bar,
.progress-level,
.status-indicator,
.loader {
    display: none !important;
}

/* ── 20. Hollow's typing indicator ──
   Three dots that blink in sequence inside the pending chat bubble, so the
   wait reads as "thinking" not "frozen". Pure CSS, works in every browser. */
.hollow-typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 0;
}
.hollow-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.2;
    animation: hollow-blink 1.3s infinite both;
}
.hollow-typing i:nth-child(2) { animation-delay: 0.22s; }
.hollow-typing i:nth-child(3) { animation-delay: 0.44s; }

@keyframes hollow-blink {
    0%, 75%, 100% { opacity: 0.18; }
    35%           { opacity: 0.9; transform: translateY(-1px); }
}

/* ── 21. Send button press feedback ──
   The button had only :hover β€” a click gave no tactile response. On press it
   sinks into the stone (down + scale + inset shadow) and flares; while the
   turn processes it dims, reinforcing "sent, working". */
.gradio-container button:active {
    transform: translateY(2px) scale(0.96) !important;
    color: #ece9f2 !important;
    border-color: #6f6a80 !important;
    background: rgba(64,38,92,0.8) !important;
    box-shadow:
        inset 0 3px 9px rgba(0,0,0,0.65),
        0 0 24px rgba(150,80,200,0.6) !important;
    transition: transform 0.06s ease, box-shadow 0.06s ease,
                background 0.06s ease, color 0.06s ease !important;
}

.gradio-container button:disabled,
.gradio-container button[disabled] {
    opacity: 0.45 !important;
    color: #5a4f72 !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: default !important;
}

/* ── 22. Finale build pulse + soft convulse + restart ── */

/* red suspense pulse during the build of every ending (audio = heartbeat) */
.entity-redpulse {
  /* a wide, soft red breath CENTERED on the child that bleeds across the scene
     β€” not a hard rectangle confined to the narrow silhouette column */
  position: absolute; inset: -40% -170%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%,
              rgba(150, 0, 0, 0.4) 0%, rgba(120, 0, 0, 0.16) 46%, transparent 72%);
  mix-blend-mode: screen;
  animation: redpulse 1.15s ease-in-out infinite;
}
@keyframes redpulse {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.75; }
}

/* the redemption convulsion: the SAME fast cadence as the bad frenzy, but
   through the child's gentler possible faces (almost/base/peace) β€” no red
   tint, no full-screen stab. Settles on the smile + sigh. The flick keyframe
   names come from the global .flick-0/1/2 rules; we only set the tempo. */
.entity-convulse-soft { position: absolute; inset: 0; pointer-events: none; }
.entity-convulse-soft .entity-flick {
  animation-duration: 0.26s;          /* faster image-to-image (faces blur past) */
  animation-iteration-count: 8;       /* longer overall (~2s) before it settles */
}
/* loop convulsion: the same fast flicker as the frenzy but only 3 cycles, so
   the `end` face settles quickly (the bad frenzy keeps its longer 6-cycle build) */
.entity-convulse-loop.entity-frenzy-wrap .entity-flick {
  animation-duration: 0.55s;
  animation-iteration-count: 3;
}
/* the final face eases in over the convulsion and HOLDS at the end, so the
   settle render (same image) is seamless β€” the swap is never a visible pop.
   Must come AFTER the flick rules above (equal specificity, source order wins). */
.entity-convulse-soft .entity-settle-face,
.entity-convulse-loop.entity-frenzy-wrap .entity-settle-face {
  animation-name: convulse-settle;
  animation-duration: 1.65s;
  animation-iteration-count: 1;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}
@keyframes convulse-settle {
  0%, 60% { opacity: 0; }
  100%    { opacity: 1; }
}
/* the good convulsion runs longer (~2s) β€” its smile eases in to match, so the
   peace_settle render lands seamlessly as the relief sigh plays */
.entity-convulse-soft .entity-settle-face { animation-duration: 1.95s; }

/* restart + mute β€” minimal icon cluster, top-right, low-contrast */
.restart-btn {
  background: transparent !important;
  border: none !important;
  max-width: none; min-width: 0; width: auto !important;
  font-size: 1.4rem !important; letter-spacing: normal; text-transform: none;
  color: #c2b2dd !important;
  opacity: .92; box-shadow: none !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  padding: 4px 6px;
  margin-left: 12px;
}
.restart-btn:hover {
  color: #e0cdb0 !important;
  opacity: 1;
  background: transparent !important;
  border: none !important;
}
.voice-btn {
  background: transparent !important;
  border: none !important;
  max-width: none; min-width: 0; width: auto !important;
  font-size: 1.4rem !important;
  color: #c4b8dc !important;
  opacity: .92; box-shadow: none !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  padding: 4px 6px;
  margin-left: 12px;
}
.voice-btn:hover {
  color: #e0cdb0 !important;
  opacity: 1;
  background: transparent !important;
  border: none !important;
}

/* the voice channel: mounted in the DOM (so the <audio> plays) but collapsed
   to nothing β€” audio keeps playing in a zero-size element, no visual footprint */
.voice-channel {
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

/* idle trigger: mounted but invisible */
#idle-trigger, .idle-trigger { display: none !important; }

/* ── 23. Opening menu β€” Direction C ── */
#menu-view {
    position: fixed;
    inset: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   /* center title+buttons as one vertical group */
    overflow: hidden;
    border: none !important;
    background: #04040a;
    z-index: 50;
}

/* Gradio hides a visible=False column via a class; our id-level display:flex
   would otherwise win on specificity and the hidden menu keeps reserving its
   min-height (a black gap above the game). Force the collapse. */
#menu-view.hide, #menu-view.hidden,
#game-view.hide, #game-view.hidden { display: none !important; }

.menu-bg {
    position: fixed;
    inset: -6%;                /* overscan so blur edges never reveal a gap */
    background-size: cover;
    background-position: center 38%;
    filter: grayscale(1) blur(46px) brightness(0.34);
    transform: scale(1.08);
    z-index: 0;
}

/* sharp cinematic frame: the forest, contained like the intro cards */
#menu-frame {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1280px, 95vw);
    aspect-ratio: 16 / 10;
    max-height: 82vh;
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
    filter: grayscale(1) brightness(0.92);
    border-radius: 0;
    box-shadow: none;
    -webkit-mask-image: radial-gradient(ellipse 76% 78% at 50% 47%, #000 30%, transparent 86%);
    mask-image: radial-gradient(ellipse 76% 78% at 50% 47%, #000 30%, transparent 86%);
    z-index: 1;
}

.menu-scrim {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, transparent 25%, rgba(4,4,10,0.92) 100%);
    pointer-events: none;
    z-index: 2;
}

.menu-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.menu-vig {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    box-shadow: inset 0 0 120px rgba(0,0,0,0.75);
}

#menu-card {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    font-family: Georgia, serif;
    max-width: 560px;
    width: 92vw;
}
#menu-card::before {
    content: '';
    position: absolute;
    inset: -56px -90px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
                rgba(4,4,10,0.82) 0%, rgba(4,4,10,0.0) 70%);
}

.menu-title {
    font-variant: small-caps;
    letter-spacing: 0.18em;
    font-weight: 700;
    font-size: 78px;
    color: #ece6f4;
    text-shadow: 0 0 30px #000, 0 4px 12px #000;
}

.menu-eyebrow {
    font-family: 'Special Elite', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #c6bcda;
    text-shadow: 0 0 12px rgba(0,0,0,0.95), 0 1px 4px #000;
    margin-bottom: 8px;
}

.menu-tag {
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    color: #dad3e8;
    text-shadow: 0 0 14px rgba(0,0,0,0.9), 0 1px 6px #000;
    letter-spacing: 0.04em;
    margin: 14px auto 0;
    max-width: 420px;
}

.menu-opts {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;        /* rows shrink to content -> no full-width band */
    gap: 6px;
}
.menu-opt {
    font-family: Georgia, serif;
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    color: #ded8ec;
    text-shadow: 0 1px 6px #000;
    padding: 8px 26px;
    cursor: pointer;
    border-radius: 2px;
    transition: color 0.3s, letter-spacing 0.3s, text-shadow 0.3s, background 0.3s;
}
.menu-opt::before {
    content: '\203A\00a0\00a0';   /* "β€Ί  " */
    opacity: 0;
    transition: opacity 0.3s;
}
.menu-opt:hover {
    color: #f0ecfa;
    letter-spacing: 0.2em;
    text-shadow: 0 0 16px rgba(180,160,210,0.5);
    background: rgba(255,255,255,0.04);
}
.menu-opt:hover::before { opacity: 1; }

.menu-opt-muted {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #b8b0cc;
    text-shadow: 0 0 10px #000, 0 1px 3px #000;
    letter-spacing: 0.1em;
}
.menu-opt-muted:hover { color: #e0d9ee; }

#menu-proxy { display: none !important; }

.menu-credit {
    position: fixed;
    bottom: 18px;
    left: 0; right: 0;
    text-align: center;
    z-index: 4;
    font-family: 'Special Elite', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #8c84a4;
    text-shadow: 0 1px 6px #000;
}

.menu-btn {
    position: relative;
    z-index: 4;
    background: transparent !important;
    border: none !important;
    border-image-source: none !important;
    box-shadow: none !important;
    font-family: Georgia, serif !important;
    letter-spacing: 0.16em !important;
    color: #c4bede !important;
    font-size: 1.05rem !important;
    text-transform: none !important;
    margin: 8px 0 !important;
    padding: 8px 18px !important;
    transition: color 0.35s, letter-spacing 0.35s, text-shadow 0.35s, background 0.35s !important;
}

.menu-btn:hover {
    color: #f0ecfa !important;
    letter-spacing: 0.22em !important;
    text-shadow: 0 0 16px rgba(180,160,210,0.5) !important;
    background: rgba(255,255,255,0.04) !important;
    box-shadow: none !important;
}

.menu-btn::before {
    content: 'β–Έ ';
    opacity: 0;
    margin-right: 0;
    transition: opacity 0.35s, margin-right 0.35s;
}

.menu-btn:hover::before {
    opacity: 1;
    margin-right: 6px;
}

#btn-howto {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 6;
    font-size: 0.82rem !important;
    letter-spacing: 0.14em !important;
    color: #8a7aa2 !important;
    margin: 0 !important;
}

#btn-howto:hover {
    color: #d8d0ec !important;
    background: rgba(255,255,255,0.04) !important;
}

#btn-howto-close {
    display: block !important;
    width: fit-content !important;
    min-width: 0 !important;
    margin: 6px auto 0 !important;
}

#btn-tester, #btn-full {
    margin-top: 24px !important;
}

/* ── 24. How to Play overlay ── */
#howto-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 4, 10, 0.88);
}
#howto-overlay.hide, #howto-overlay.hidden { display: none !important; }

.howto-panel {
    max-width: 560px;
    width: 92vw;
    margin: 0 auto;
    border: 11px solid transparent;
    border-image: var(--stone-frame) 30;
    background: var(--stone-base);
    padding: 26px 30px;
    font-family: Georgia, serif;
    color: #c4bede;
    line-height: 1.6;
    box-shadow: var(--stone-bevel);
}

.howto-panel h3 {
    font-family: 'Special Elite', monospace;
    font-size: 1.15rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e0d8f0;
    margin: 0 0 18px;
    text-align: center;
}

.howto-panel p {
    margin: 0 0 12px;
}

.howto-controls {
    margin-top: 18px !important;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: #6a6088;
    text-align: center;
}

/* ── 25. Opening intro sequence (cinematic letterbox) ── */
#intro-view {
    position: fixed;
    inset: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000;
    overflow: hidden;
    z-index: 50;
}
#intro-view.hide, #intro-view.hidden { display: none !important; }

#intro-stage {
    position: relative;
    flex: 1;
    min-height: 100vh;
    cursor: pointer;            /* click anywhere to advance */
    overflow: hidden;
    display: flex;
    align-items: center;        /* center the frame -> symmetric letterbox bands */
    justify-content: center;
    background: #000;
}

/* blurred ambient backdrop: a ghost of the same card, fills the bands */
#intro-bg {
    position: absolute;
    inset: -6%;                 /* overscan so blur edges never show a gap */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: grayscale(1) blur(42px) brightness(0.32);
    transform: scale(1.08);
    z-index: 0;
}
#intro-bg::after {              /* darken so the framed card pops */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
                rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.80) 100%);
}

/* centered cinematic window (~16:10) */
#intro-frame {
    position: relative;
    z-index: 1;
    width: min(1280px, 95vw);
    aspect-ratio: 16 / 10;
    max-height: 82vh;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

#intro-image {
    position: absolute;
    inset: 0;
    background-position: center;   /* JS overrides with the card focal point */
    background-size: cover;
    background-repeat: no-repeat;
    /* fallback when a card image is missing/empty: */
    background-color: #04040a;
    background-image: radial-gradient(ellipse at 50% 35%, #16131c 0%, #04040a 80%);
    filter: grayscale(1) brightness(0.9);
    -webkit-mask-image: radial-gradient(ellipse 76% 78% at 50% 47%, #000 30%, transparent 86%);
    mask-image: radial-gradient(ellipse 76% 78% at 50% 47%, #000 30%, transparent 86%);
}
#intro-image::after {           /* soft bottom darkening so the subtitle reads */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(4,4,10,0.55) 98%);
}

/* subtitle panel: anchored to the bottom of the frame */
#intro-panel {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: min(680px, 88%);
    z-index: 2;
    border: 10px solid transparent;
    border-image: var(--stone-frame) 30;
    background: rgba(16,14,24,0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 13px 20px;
}
#intro-text {
    font-family: Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #d6d0e0;
    margin: 0;
    min-height: 3.2em;          /* reserve height so the panel doesn't grow while typing */
}

/* option rows, revealed inside the stone panel on the final card */
#intro-opts {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(120,110,140,0.18);
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}
#intro-opts.intro-opts-show {
    max-height: 220px;
    opacity: 1;
}
.intro-opt {
    font-family: Georgia, serif;
    font-size: 1.02rem;
    color: #b9b2cc;
    letter-spacing: 0.04em;
    padding: 7px 10px;
    cursor: pointer;
    border-radius: 2px;
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
}
.intro-opt::before {
    content: '\203A\00a0\00a0';   /* "β€Ί  " */
    color: #6a5a86;
}
.intro-opt:hover {
    color: #f0ecfa;
    background: rgba(120,90,140,0.12);
    padding-left: 16px;
}

/* the real choice buttons live hidden in the DOM; HTML rows proxy their clicks */
#intro-proxy { display: none !important; }

#intro-skip {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 4;
    width: fit-content !important;
    min-width: 0 !important;
    font-family: Georgia, serif !important;
    letter-spacing: 0.14em !important;
    font-size: 0.82rem !important;
    color: #cdc7da !important;
    background: rgba(8,6,14,0.55) !important;
    border: 1px solid rgba(150,142,170,0.35) !important;
    box-shadow: none !important;
    border-radius: 14px !important;
    padding: 5px 16px !important;
    text-shadow: 0 1px 4px #000 !important;
}
#intro-skip:hover {
    color: #f2eefa !important;
    background: rgba(30,24,42,0.82) !important;
    border-color: rgba(190,178,210,0.6) !important;
}

/* ── 26. Game scene β€” letterboxed foggy wood (Direction 3b) ── */
#game-view {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #04040a;
    z-index: 50;
    /* geometry of the centered 16:9 cinematic frame β€” every in-frame element
       (child, subtitle, drawers, fog) positions against these vars, so they sit
       INSIDE the frame instead of the full viewport */
    --fw: min(1180px, 94vw);
    --fh: min(calc(var(--fw) * 0.5625), 84vh);
    --band-v: calc((100vh - var(--fh)) / 2);   /* top & bottom letterbox band */
    --band-h: calc((100vw - var(--fw)) / 2);   /* left & right band */
}
#game-view.hide, #game-view.hidden { display: none !important; }

/* the letterboxed stage β€” absolute, centered, real height so children work */
/* passive full-cover container β€” NO transform/filter, so the fixed regions
   below resolve against the viewport (a transformed ancestor would trap them) */
#game-stage {
    position: absolute !important;
    inset: 0 !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}

/* Gradio wrappers inside the stage must not create their own boxes */
#game-stage > .gradio-html,
#game-stage > .gradio-column,
#game-stage > .gradio-row,
#game-stage .gradio-html,
#game-stage .gradio-column,
#game-stage .gradio-row {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}

/* blurred ambient forest backdrop, same treatment as intro/menu */
#game-bg {
    position: fixed;
    inset: -6%;
    background-size: cover;
    background-position: center 38%;
    filter: grayscale(1) blur(46px) brightness(0.3);
    transform: scale(1.1);
    z-index: 0;
}

/* sharp forest in a centered cinematic frame, feathered into the blur (depth) */
#game-scene {
    position: fixed;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: min(1180px, 94vw);
    aspect-ratio: 16 / 9;
    max-height: 84vh;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    filter: grayscale(1) brightness(0.46);
    -webkit-mask: radial-gradient(ellipse 80% 82% at 50% 46%, #000 18%, transparent 88%);
    mask: radial-gradient(ellipse 80% 82% at 50% 46%, #000 18%, transparent 88%);
    z-index: 1;
    pointer-events: none;
}

/* radial vignette β€” the scene breathes through this */
#game-vig {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background:
        radial-gradient(ellipse at 50% 46%, transparent 34%, rgba(6,5,12,0.88) 100%),
        linear-gradient(to bottom, rgba(6,4,12,0.5) 0%, transparent 13%);
}

/* a subtle inner frame edge so the scene feels contained like the intro */
#game-frame-edge {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    box-shadow: inset 0 0 210px 90px rgba(5,4,10,0.92);
}

/* rising ground fog β€” dissolves the child's lower half */
#game-groundfog {
    position: fixed;
    left: var(--band-h); right: var(--band-h);   /* confined to the frame width */
    bottom: var(--band-v);                        /* rises from the frame's base */
    height: calc(var(--fh) * 0.55);
    z-index: 5;                 /* above the child (z-index 4) so it veils the legs */
    pointer-events: none;
    background: linear-gradient(transparent,
                rgba(150,150,168,0.10) 50%,
                rgba(170,170,190,0.18) 80%,
                rgba(180,180,200,0.26));
    -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* top bar: title + controls β€” sits just above the stage */
#game-topbar {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}
#game-topbar > * { pointer-events: auto; }

#game-title {
    font-family: 'Special Elite', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #7d7596;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 0 12px rgba(120,90,160,0.35);
}
#game-title .named {
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.08em;
    color: #e2dcf0;
}

/* corner drawers β€” compact chips that expand downward */
.game-drawer {
    position: fixed; top: calc(var(--band-v) + 16px); z-index: 8;
    width: max-content; max-width: 280px; min-width: 0 !important;
    max-height: 34px;                 /* collapsed = just the chip */
    overflow: hidden; cursor: pointer;
    background: rgba(10,8,16,0.5);
    border: 1px solid rgba(120,110,140,0.22); border-radius: 3px;
    padding: 6px 12px;
    transition: max-height 0.4s ease, background 0.3s, opacity 0.2s, border-color 0.2s;
    opacity: 0.82;
}
.game-drawer:hover { opacity: 1; border-color: rgba(180,160,210,.4); }
.game-drawer.open { max-height: 56vh; width: min(300px, 24vw); background: rgba(12,10,18,0.92); }
#drawer-left { left: calc(var(--band-h) + 16px); }
#drawer-right { right: calc(var(--band-h) + 16px); }
.drawer-count { color: var(--mem-accent, #e0b283); font-weight: 600; }

/* Gradio wraps drawer contents in .block/.html-container/.prose; force them
   to fill the drawer so the scroll list and header line up correctly. */
.game-drawer > .block,
.game-drawer > .gradio-html,
.game-drawer .html-container,
.game-drawer .prose,
.game-drawer .treasure-panel,
.game-drawer .recovered-panel {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: hidden !important;
}

.game-drawer .treasure-panel,
.game-drawer .recovered-panel {
    display: flex;
    flex-direction: column;
}

.game-drawer .treasure-panel {
    margin-top: 0 !important;
    height: auto !important;
    flex: 1;
}

.game-drawer .treasure-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.drawer-head {
    cursor: pointer;
    user-select: none;
    padding-bottom: 4px !important;
    border-bottom: 1px solid rgba(90,75,115,0.50);
    margin-bottom: 6px;
    font-family: 'Special Elite', monospace; font-size: 0.66rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: #9a93ac; white-space: nowrap;
}
.drawer-head::after {
    content: ' β€Ί';
    opacity: 0.70;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.3s ease;
}
.game-drawer.open .drawer-head::after {
    transform: rotate(90deg);
}

/* the child's recovered memories read in the warm memory accent */
.game-drawer .recovered-item {
    color: var(--mem-accent) !important;
    border-left-color: rgba(200,130,70,0.5) !important;
}

/* a memory the child has taken from you, worn as its own */
.game-drawer .recovered-item.stolen {
    border-left-style: dashed !important;
    opacity: 0.92;
}
.game-drawer .recovered-item.stolen::before {
    content: '"'; color: var(--mem-accent); margin-right: 2px;
}

/* the child silhouette zone β€” center, bottom-weighted */
#game-entity {
    position: fixed;
    /* centered WITHOUT a transform β€” a transformed ancestor would trap the
       full-screen .entity-ghost stab into this narrow column */
    left: calc(50% - var(--fw) * 0.15);
    bottom: var(--band-v);          /* feet rest on the frame's bottom edge */
    transform: none;
    z-index: 4;
    width: calc(var(--fw) * 0.30);  /* ~30% of the frame, like the mockup */
    min-width: 200px;
    height: calc(var(--fh) * 0.88);
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Gradio wraps the injected HTML in .html-container and .prose; without
   explicit fill they collapse to the prose's line box and the silhouette
   (and its image) end up 0Γ—0. Force every wrapper to fill the entity panel. */
#game-entity > .html-container,
#game-entity .html-container,
#game-entity .prose {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
}

.entity-scene {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.entity-silhouette {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.entity-silhouette img {
    position: relative;
    width: 100% !important;
    height: auto !important;
    max-height: 100%;
    object-fit: contain !important;
    object-position: bottom center !important;
    flex-shrink: 0;
    -webkit-mask: linear-gradient(#000 78%, transparent 99%);
    mask: linear-gradient(#000 78%, transparent 99%);
}

/* when the "Almost" face overlays the base, it must remain absolutely
   positioned so the two portraits stack instead of sitting side-by-side */
.entity-silhouette .entity-almost {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: 100%;
    object-fit: contain !important;
    object-position: bottom center !important;
}

.entity-glow {
    position: absolute;
    inset: 5% -10% 0 -10%;
    background: radial-gradient(ellipse 55% 70% at 50% 78%,
                rgba(150,140,175,0.14) 0%, transparent 64%);
    pointer-events: none;
    opacity: 0.85;
    mix-blend-mode: screen;
}

/* subtitle: the conversation, sat just inside the frame's bottom edge */
#game-dialogue {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: max(86px, calc(var(--band-v) - 96px));   /* dropped into the lower letterbox band: clear of the child's body, still above the input line. max() keeps it above the input on short viewports where the band is thin */
    width: min(calc(var(--fw) * 0.82), 860px);
    z-index: 9;
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    pointer-events: none;
}
/* (no scrim behind the dialogue: it read as a dark rectangle over the scene.
   The .bot text-shadow already carries legibility over the fog.) */

/* input bar: a thin line at the very bottom of the viewport, below the frame */
#game-inputbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    width: min(560px, 60vw);
    z-index: 9;
    display: flex; flex-direction: column; align-items: center; gap: 0;
}

#game-dialogue .chatbot {
    width: 100% !important;
    max-height: 160px !important;
    background: transparent !important;
    border: none !important;
    border-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    overflow: hidden;            /* old lines fade out, no scrollbar */
}
/* kill the inner scroll thumb Gradio shows on the message area (the stray
   purple vertical bar to the right of the subtitle) */
#game-dialogue, #game-dialogue * { scrollbar-width: none !important; }
#game-dialogue ::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
/* the opening greeting is the chat's lone first message. Gradio's .message-wrap
   (auto-height) sits at the TOP of the fixed-height scroll area (.bubble-wrap),
   so a single message floats up onto the child. Make .bubble-wrap a flex column
   and push .message-wrap to its bottom β€” but ONLY while there's a single message
   (:not(:has(row ~ row))). The moment you reply (2+ rows) the rule drops out, so
   the running dialogue (which already sits low via autoscroll) is untouched. */
#game-dialogue .bubble-wrap { display: flex !important; flex-direction: column !important; }
#game-dialogue .message-wrap:not(:has(.message-row ~ .message-row)) { margin-top: auto !important; }
/* transparent rows, centered text β€” kill Gradio's bubble chrome */
#game-dialogue .message-row,
#game-dialogue .message,
#game-dialogue .bubble {
    background: transparent !important; border: none !important;
    box-shadow: none !important; text-align: center !important;
    padding: 2px 0 !important; margin: 0 !important;
}
/* fade-by-recency: newest crisp, older dimmer, 4th-back and beyond hidden.
   (Gradio wraps each message in a .message-row β€” verify this selector against
   the running app; if rows are .message instead, swap the selector.) */
#game-dialogue .message-row { opacity: 0.38; transition: opacity 0.4s ease; }
#game-dialogue .message-row:nth-last-child(2) { opacity: 0.6; }
#game-dialogue .message-row:nth-last-child(1) { opacity: 1; }
#game-dialogue .message-row:nth-last-child(n+4) { display: none; }

/* the child β€” italic, bright, unlabeled (it owns the scene) */
#game-dialogue .bot, #game-dialogue .bot .prose, #game-dialogue .bot p {
    font-style: italic !important; font-size: 1.2rem !important; line-height: 1.55 !important;
    color: #ece6f4 !important; text-align: center !important;
    text-shadow: 0 2px 16px #000 !important;
}
/* you β€” upright, muted, centered like the bot (distinguished by label + color) */
#game-dialogue .user, #game-dialogue .user .prose, #game-dialogue .user p {
    font-style: normal !important; font-size: 1.0rem !important;
    color: #aaa2be !important; text-align: center !important; background: transparent !important;
}
/* center the user line so Gradio's narrow right bubble doesn't collapse the
   text into a 1-character vertical column at the frame edge. */
#game-dialogue .user {
    display: block !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}
#game-dialogue .user .prose::before {
    content: 'you ';
    font-family: 'Special Elite', monospace;
    font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: #6f6590; margin-right: 7px;
}
/* a recall line (it claims your memory) β€” JS tags the last .bot row .recall-line */
#game-dialogue .bot.recall-line, #game-dialogue .bot.recall-line .prose,
#game-dialogue .bot.recall-line p {
    color: var(--mem-accent) !important;
    text-shadow: 0 0 20px var(--mem-glow) !important;
}

#game-inputrow {
    display: flex; align-items: center; gap: 8px;
    width: 100%; margin: 0 auto;
    background: rgba(12,9,18,0.82);
    border: 7px solid transparent;
    border-image: var(--stone-frame) 30;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.7), inset 0 0 20px rgba(0,0,0,0.55),
                0 8px 24px rgba(0,0,0,0.55), inset 0 1px 0 rgba(150,140,175,0.16);
    padding: 2px 11px;
}
#game-inputrow::before {
    content: '❯'; color: #6f6590; font-size: 0.92rem; flex: 0 0 auto;
    font-family: 'Special Elite', monospace;
}
#game-inputrow textarea, #game-inputrow input[type="text"] {
    background: transparent !important; border: none !important; border-radius: 0 !important;
    text-align: left !important; font-style: italic !important;
    color: #d6d0e0 !important; box-shadow: none !important; padding: 5px 4px !important;
}
#game-inputrow button {
    background: transparent !important; border: none !important; box-shadow: none !important;
    color: #8a82a0 !important; font-size: 1.1rem !important; min-width: 0 !important;
}
#game-inputrow button:hover { color: #e4dff0 !important; }

#game-dialogue .bond-panel { width: auto !important; margin: 0 auto !important; opacity: 0.55; }
#game-dialogue .bond-panel .bond-track,
#game-dialogue .bond-panel .bond-fill,
#game-dialogue .bond-panel .bond-beat,
#game-dialogue .bond-panel .bond-name { display: none !important; }
#game-dialogue .bond-panel .bond-tier {
    font-size: 0.66rem !important; letter-spacing: 0.24em !important; color: #7a7290 !important; }

#game-inputbar .voice-channel,
#game-inputbar .voice-channel * {
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

/* tone classes β€” the world blooms or rots. Scoped under #game-view: the
   tone token is lifted onto #game-view by the head JS (applyTone), so #game-bg
   /#game-vig (siblings of #game-entity) actually tint. */
#game-view.tone-warm #game-bg { filter: grayscale(1) blur(38px) brightness(0.62); }
#game-view.tone-warm #game-vig {
    background:
        radial-gradient(ellipse at 50% 42%, transparent 52%, rgba(4,3,8,0.45) 100%),
        linear-gradient(to bottom, rgba(6,4,12,0.28) 0%, transparent 13%);
}
#game-view.tone-warm .entity-img { filter: brightness(1.12) drop-shadow(0 0 18px rgba(190,170,220,0.30)) !important; }

#game-view.tone-neutral #game-bg { filter: grayscale(1) blur(38px) brightness(0.52); }

#game-view.tone-wounded #game-bg { filter: grayscale(1) blur(38px) brightness(0.38); }
#game-view.tone-wounded #game-vig {
    background:
        radial-gradient(ellipse at 50% 42%, transparent 38%, rgba(4,3,8,0.78) 100%),
        linear-gradient(to bottom, rgba(6,4,12,0.65) 0%, transparent 13%);
}
#game-view.tone-wounded .entity-img { opacity: 0.85 !important; }

#game-view.tone-hostile #game-bg {
    filter: grayscale(1) blur(38px) brightness(0.30);
}
#game-view.tone-hostile #game-vig {
    background:
        radial-gradient(ellipse at 50% 42%, transparent 32%, rgba(30,4,8,0.80) 100%),
        linear-gradient(to bottom, rgba(40,6,12,0.52) 0%, transparent 20%);
}
#game-view.tone-hostile .entity-img {
    filter: sepia(0.22) saturate(1.35) brightness(0.95) drop-shadow(0 0 18px rgba(120,40,40,0.35)) !important;
}

/* recall migration β€” the claimed memory drifts toward the child */
.treasure-item { transition: opacity 0.6s ease; }
.treasure-item.claiming {
    animation: claim-migrate 1.4s ease-out forwards;
}

@keyframes claim-migrate {
    0%   { transform: translateX(0); opacity: 1; }
    45%  { transform: translateX(60%); opacity: 0.6; }
    100% { transform: translateX(120%); opacity: 0.25; }
}

/* keep existing entity animations working inside the new scene */
.entity-flash-wrap,
.entity-frenzy-wrap,
.entity-convulse-soft {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ensure the global body stains intensify under hostile tone */
.tone-hostile ~ .gradio-container::after,
.tone-hostile + .gradio-container::after {
    opacity: 1.35;
}

/* feedback: the drawer chip breathes amber when its collection changes */
.game-drawer.pulse {
    border-color: rgba(200,150,80,0.6) !important;
    box-shadow: 0 0 18px rgba(200,150,80,0.45) !important;
    animation: chip-pulse 1.1s ease-in-out 2;
}
.game-drawer.pulse .drawer-head { color: var(--mem-accent) !important; }
@keyframes chip-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(200,150,80,0.25); }
    50%      { box-shadow: 0 0 22px rgba(200,150,80,0.55); }
}

/* the in-voice whisper that breathes next to the chip, then fades */
.cue-whisper {
    position: fixed; z-index: 60; pointer-events: none;
    font-family: 'Special Elite', monospace;
    font-size: 0.62rem; letter-spacing: 0.14em;
    color: var(--mem-accent); text-shadow: 0 0 10px var(--mem-glow);
    opacity: 0; transform: translateY(-3px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.cue-whisper.out { opacity: 0; transform: translateY(-8px); }
.cue-whisper { animation: whisper-in 0.5s ease forwards; }
@keyframes whisper-in { from { opacity: 0; } 40% { opacity: 0.9; } to { opacity: 0.9; } }

@media (max-width: 900px) {
    .game-drawer { width: 150px; min-width: 140px; }
    #game-entity { width: 42vw; min-width: 160px; left: calc(50% - 21vw); }
    #game-dialogue { width: 92vw; }
}

@media (prefers-reduced-motion: reduce) {
    .entity-sway { animation: none !important; }
    .treasure-item.claiming { animation: none !important; opacity: 0.4; }
    .game-drawer.pulse { animation: none !important; }
    .cue-whisper { animation: none !important; opacity: 0.9 !important; }
}

/* ── 27. End screen β€” epitaph hero + quiet footer credits over the fog (layout B) ── */
#end-overlay {
    position: fixed; inset: 0; z-index: 80;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 30px;
    opacity: 0; pointer-events: none;
    transition: opacity 1.6s ease;
}
#end-overlay.shown { opacity: 1; pointer-events: auto; }

/* neutralize Gradio's full-width block wrappers so the inner content truly centers */
#end-overlay > * {
    width: auto !important; max-width: 90vw !important; min-width: 0 !important;
    background: transparent !important; border: none !important; box-shadow: none !important;
    display: flex; flex-direction: column; align-items: center;
}

#end-bg {
    position: fixed; inset: -6%; z-index: -2;
    background-size: cover; background-position: center 40%; background-repeat: no-repeat;
    filter: grayscale(1) blur(30px) brightness(0.26);
}
#end-scrim { position: fixed; inset: 0; z-index: -1;
    background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(4,3,8,0.92) 100%); }

/* the hero line */
#end-epitaph {
    font-family: 'Crimson Text', Georgia, serif; font-style: italic;
    font-size: 1.95rem; color: #e6dff2; text-shadow: 0 2px 18px #000;
    text-align: center; max-width: min(820px, 88vw); margin: 0;
}

/* the two actions β€” grouped, centered, understated text links */
#end-actions {
    flex-direction: row !important; justify-content: center; gap: 34px;
}
#end-actions .end-btn {
    background: none !important; border: none !important; box-shadow: none !important;
    width: auto !important; min-width: 0 !important; flex: 0 0 auto !important;
    font-family: 'Special Elite', monospace; letter-spacing: 0.2em; font-size: 0.92rem;
    color: #d7cfe6 !important; opacity: 0.85;
    transition: opacity 0.25s ease, color 0.25s ease;
}
#end-actions .end-btn:hover { opacity: 1; color: #f0eaff !important; }
#end-actions .end-btn-dim { color: #7d7498 !important; font-size: 0.82rem; opacity: 0.7; }

/* credits β€” a quiet footer pinned to the bottom (fixed β†’ out of the centered flow) */
#end-credits {
    position: fixed; left: 0; right: 0; bottom: 26px;
    display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center;
    animation: end-rise 2.2s ease 0.4s both;
}
#end-credits .ec-title {
    font-family: 'Special Elite', monospace; letter-spacing: 0.4em; font-size: 0.95rem;
    color: #c4bcd8; }
#end-credits .ec-line {
    font-family: 'Crimson Text', serif; font-style: italic; color: #9a90b2; font-size: 0.86rem; }
#end-credits .ec-meta {
    font-family: 'Special Elite', monospace; font-size: 0.64rem; letter-spacing: 0.18em;
    color: #6f6590; }
@keyframes end-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 0.82; transform: none; } }