BlueGit

projects-timfalken-com microchess

Files

microchess / web / assets / app.css

app.css

app.css 23.5 KiB Download Raw
1:root {
2 --bg: #f5f3ed;
3 --paper: #fffefb;
4 --ink: #24352d;
5 --muted: #7a8178;
6 --green: #365d45;
7 --line: #dedfd5;
8 --lime: #d6e6a4;
9 --dark-square: #8caa8c;
10 --light-square: #e9edde
11}
12
13* {
14 box-sizing: border-box
15}
16
17body {
18 margin: 0;
19 background: var(--bg);
20 color: var(--ink);
21 font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
22}
23
24button,
25a,
26input {
27 -webkit-tap-highlight-color: transparent
28}
29
30button,
31.button {
32 font: inherit;
33 cursor: pointer;
34 border: 0;
35 border-radius: 8px;
36 padding: 11px 16px;
37 font-weight: 600;
38 transition: background .15s, transform .15s
39}
40
41button:hover,
42.button:hover {
43 filter: brightness(.95)
44}
45
46button:disabled {
47 cursor: default;
48 opacity: .55
49}
50
51button:focus-visible,
52a:focus-visible,
53input:focus-visible {
54 outline: 3px solid #c19042;
55 outline-offset: 3px
56}
57
58a {
59 color: inherit
60}
61
62h1,
63h2,
64h3,
65p {
66 margin: 0
67}
68
69h1 {
70 font-size: 44px;
71 letter-spacing: -2px;
72 font-weight: 650;
73 line-height: 1.2
74}
75
76h2 {
77 font-size: 18px;
78 letter-spacing: -.4px
79}
80
81h3 {
82 font-size: 18px
83}
84
85.brand-dot {
86 color: #789254
87}
88
89.topbar {
90 height: 88px;
91 border-bottom: 1px solid var(--line);
92 display: flex;
93 align-items: center;
94 padding: 0 44px;
95 gap: 38px;
96 background: var(--paper)
97}
98
99.brand {
100 display: flex;
101 align-items: center;
102 text-decoration: none;
103 font-size: 25px;
104 font-weight: 750;
105 letter-spacing: -1.2px
106}
107
108.brandmark {
109 background: var(--green);
110 color: #fff;
111 border-radius: 10px;
112 width: 38px;
113 height: 38px;
114 line-height: 34px;
115 text-align: center;
116 margin-right: 12px;
117 font-family: Georgia, serif;
118 font-size: 30px;
119 font-weight: 700;
120 position: relative
121}
122
123.brandmark span {
124 font: 14px system-ui;
125 position: absolute;
126 right: 2px;
127 top: 0;
128 color: var(--lime)
129}
130
131.tagline {
132 font-size: 13px;
133 color: var(--muted)
134}
135
136.account-nav {
137 margin-left: auto;
138 display: flex;
139 align-items: center;
140 gap: 8px
141}
142
143.quiet {
144 background: transparent;
145 color: var(--muted)
146}
147
148.layout {
149 display: grid;
150 grid-template-columns: minmax(0, 1fr) 300px;
151 min-height: calc(100vh - 88px)
152}
153
154main {
155 padding: 44px;
156 min-width: 0
157}
158
159.page-heading {
160 display: flex;
161 justify-content: space-between;
162 align-items: center;
163 gap: 20px;
164 margin-bottom: 43px
165}
166
167.eyebrow {
168 font-size: 10px;
169 font-weight: 750;
170 letter-spacing: 2px;
171 color: var(--green);
172 display: block;
173 margin-bottom: 12px
174}
175
176.page-heading p {
177 color: var(--muted);
178 margin-top: 11px;
179 font-size: 14px
180}
181
182.primary,
183.button.primary {
184 background: var(--green);
185 color: white;
186 box-shadow: 0 2px 3px #24352d12;
187 text-decoration: none;
188 white-space: nowrap
189}
190
191.section-heading {
192 display: flex;
193 justify-content: space-between;
194 align-items: center;
195 margin: 0 0 19px;
196 gap: 12px
197}
198
199.section-heading h2 {
200 display: flex;
201 align-items: center;
202 gap: 10px
203}
204
205.section-heading>span {
206 font-size: 11px;
207 color: var(--muted)
208}
209
210.status-dot {
211 width: 7px;
212 height: 7px;
213 border-radius: 50%;
214 background: #688447;
215 box-shadow: 0 0 0 4px #6884470c
216}
217
218.muted-dot {
219 background: #a7ada1
220}
221
222.count {
223 font-size: 11px;
224 border: 1px solid var(--line);
225 border-radius: 6px;
226 padding: 1px 7px;
227 color: var(--muted);
228 font-weight: 500
229}
230
231.game-grid {
232 display: grid;
233 grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
234 gap: 22px
235}
236
237.game-card {
238 background: var(--paper);
239 border: 1px solid #dbdfd3;
240 border-radius: 13px;
241 overflow: hidden;
242 box-shadow: 0 3px 5px #24352d04;
243 min-width: 0
244}
245
246.card-header {
247 display: flex;
248 align-items: center;
249 gap: 9px;
250 padding: 14px 16px;
251 border-bottom: 1px solid #e4e6dc
252}
253
254.avatar {
255 width: 31px;
256 height: 31px;
257 display: grid;
258 place-items: center;
259 border-radius: 50%;
260 background: #e8ecdf;
261 color: #56634b;
262 font-size: 11px;
263 font-weight: 750;
264 flex-shrink: 0
265}
266
267.card-header strong {
268 font-size: 13px;
269 overflow: hidden;
270 text-overflow: ellipsis;
271 white-space: nowrap
272}
273
274.rating {
275 font-size: 11px;
276 font-weight: 500;
277 color: #56634b;
278}
279
280.color-tag {
281 margin-left: auto;
282 font-size: 10px;
283 display: flex;
284 align-items: center;
285 gap: 5px;
286 color: var(--muted)
287}
288
289.color-disc {
290 width: 9px;
291 height: 9px;
292 border-radius: 50%;
293 background: white;
294 border: 1px solid #8d978b
295}
296
297.color-disc.black {
298 background: #28382e;
299 border-color: #28382e
300}
301
302.board-wrap {
303 padding: 15px;
304 position: relative
305}
306
307.board {
308 display: grid;
309 grid-template-columns: repeat(4, 1fr);
310 border-radius: 5px;
311 overflow: hidden;
312 aspect-ratio: 4/5;
313 touch-action: pan-y
314}
315
316.square {
317 position: relative;
318 aspect-ratio: 1;
319 background: var(--light-square);
320 display: grid;
321 place-items: center;
322 border: 0;
323 border-radius: 0;
324 padding: 0;
325 min-width: 0;
326 touch-action: none
327}
328
329.square.dark {
330 background: var(--dark-square)
331}
332
333.square:disabled {
334 opacity: 1;
335 cursor: default
336}
337
338.square:hover {
339 filter: none
340}
341
342.square img {
343 width: 82%;
344 height: 82%;
345 pointer-events: none;
346 user-select: none;
347 filter: drop-shadow(0 2px 1px #00000016)
348}
349
350.square.selected {
351 background: #d6d98b
352}
353
354.square.last:after {
355 content: "";
356 position: absolute;
357 inset: 0;
358 background: #e6df5350;
359 pointer-events: none
360}
361
362.square.selected:after {
363 background: transparent
364}
365
366.square.legal:before {
367 content: "";
368 width: 23%;
369 height: 23%;
370 background: #294d4560;
371 border-radius: 50%;
372 position: absolute;
373 z-index: 2;
374 pointer-events: none
375}
376
377.square.legal.occupied:before {
378 width: 90%;
379 height: 90%;
380 border: 5px solid #294d4560;
381 background: transparent
382}
383
384.square.checked {
385 background: #ce8e77
386}
387
388.coordinate {
389 position: absolute;
390 bottom: 2px;
391 right: 4px;
392 font-size: 9px;
393 font-weight: 600;
394 color: #38543c;
395 z-index: 1;
396 line-height: 1
397}
398
399.rank {
400 top: 4px;
401 left: 4px;
402 bottom: auto;
403 right: auto
404}
405
406.card-footer {
407 padding: 0 16px 14px;
408 display: flex;
409 justify-content: space-between;
410 align-items: center;
411 gap: 5px;
412 color: var(--muted);
413 font-size: 11px
414}
415
416.card-footer .turn-label {
417 color: var(--green);
418 font-weight: 600
419}
420
421.text-button {
422 background: transparent;
423 color: var(--green);
424 padding: 3px 0;
425 font-size: 12px
426}
427
428.waiting-heading {
429 border-top: 1px solid var(--line);
430 padding-top: 30px;
431 margin-top: 34px
432}
433
434.waiting .board {
435 filter: saturate(.62)
436}
437
438.empty {
439 grid-column: 1/-1;
440 min-height: 200px;
441 border: 1px dashed #ced4c5;
442 border-radius: 12px;
443 display: flex;
444 flex-direction: column;
445 align-items: center;
446 justify-content: center;
447 text-align: center;
448 padding: 28px;
449 color: var(--muted);
450 gap: 10px
451}
452
453.empty .empty-icon {
454 font: 40px Georgia;
455 color: #859673
456}
457
458.empty h3 {
459 color: var(--ink);
460 font-size: 16px
461}
462
463.empty p {
464 font-size: 13px;
465 max-width: 340px
466}
467
468.pending-content,
469.end-content {
470 display: flex;
471 flex-direction: column;
472 align-items: center;
473 justify-content: center;
474 text-align: center;
475 gap: 15px;
476 min-height: 300px;
477 padding: 24px
478}
479
480.pending-content .big-icon,
481.end-content .big-icon {
482 font-size: 48px;
483 font-family: Georgia;
484 color: #759160
485}
486
487.pending-content p,
488.end-content p {
489 font-size: 13px;
490 color: var(--muted)
491}
492
493.actions {
494 display: flex;
495 gap: 10px;
496 flex-wrap: wrap;
497 justify-content: center
498}
499
500.secondary {
501 background: #eaece3;
502 color: var(--ink)
503}
504
505.danger {
506 color: #9c4c3a;
507 background: #f4e9e2
508}
509
510.end-content {
511 min-height: 0;
512 aspect-ratio: 4/5
513}
514
515.rematch-note {
516 background: #edf2df;
517 padding: 8px;
518 border-radius: 7px
519}
520
521.promotion {
522 position: absolute;
523 inset: 0;
524 background: #fffefbf5;
525 z-index: 4;
526 display: flex;
527 align-items: center;
528 justify-content: center;
529 flex-direction: column;
530 text-align: center;
531 padding: 18px;
532 gap: 15px
533}
534
535.promotion-options {
536 display: grid;
537 grid-template-columns: repeat(2, 1fr);
538 gap: 10px;
539 width: 100%
540}
541
542.promotion-options button {
543 background: #edf0e5;
544 display: flex;
545 align-items: center;
546 flex-direction: column;
547 font-size: 11px
548}
549
550.promotion-options img {
551 height: 54px;
552 width: 54px
553}
554
555.promotion p {
556 font-size: 12px;
557 color: var(--muted)
558}
559
560aside {
561 border-left: 1px solid var(--line);
562 padding: 39px 25px;
563 display: flex;
564 flex-direction: column;
565 background: #f0f0e8
566}
567
568.sidebar-heading {
569 display: flex;
570 align-items: center;
571 justify-content: space-between
572}
573
574.sidebar-heading h2 {
575 font-size: 22px;
576 letter-spacing: -.8px
577}
578
579.sidebar-intro {
580 font-size: 12px;
581 color: var(--muted);
582 margin: 8px 0 23px
583}
584
585.invite-friend {
586 background: transparent;
587 border: 1px solid #cbd1bf;
588 color: var(--green);
589 text-align: left;
590 font-size: 12px;
591 width: 100%
592}
593
594.invite-friend span {
595 float: right
596}
597
598.friends-label {
599 font-size: 10px;
600 font-weight: 700;
601 letter-spacing: 1.5px;
602 margin: 30px 0 15px;
603 color: #858c7f;
604 display: flex;
605 justify-content: space-between
606}
607
608.friend {
609 display: flex;
610 gap: 10px;
611 align-items: center;
612 width: 100%;
613 background: transparent;
614 padding: 11px 0;
615 text-align: left;
616 border-radius: 6px
617}
618
619.friend .avatar {
620 width: 35px;
621 height: 35px
622}
623
624.friend strong {
625 font-size: 12px;
626 display: block;
627 max-width: 165px;
628 overflow: hidden;
629 text-overflow: ellipsis
630}
631
632.friend small {
633 display: block;
634 font-size: 10px;
635 color: var(--muted);
636 font-weight: 400;
637 margin-top: 2px
638}
639
640.friend>span:last-child {
641 margin-left: auto;
642 color: #9aa38d
643}
644
645.sidebar-note {
646 margin: auto 0 0;
647 padding: 65px 0 35px;
648 text-align: center
649}
650
651.sidebar-note>span {
652 font-size: 46px;
653 color: #879777
654}
655
656.sidebar-note h3 {
657 font-size: 14px;
658 margin: 9px 0
659}
660
661.sidebar-note p {
662 font-size: 12px;
663 color: var(--muted);
664 line-height: 1.8
665}
666
667#account-summary {
668 border-top: 1px solid var(--line);
669 padding-top: 18px;
670 display: flex;
671 align-items: center;
672 gap: 10px;
673 font-size: 12px
674}
675
676#account-summary small {
677 display: block;
678 font-size: 10px;
679 color: var(--muted)
680}
681
682footer {
683 display: flex;
684 align-items: center;
685 gap: 10px;
686 color: #969b8f;
687 font-size: 10px;
688 margin-top: 40px
689}
690
691footer button {
692 margin-left: auto
693}
694
695.mobile-friends,
696#friends-close {
697 display: none
698}
699
700dialog {
701 border: 1px solid var(--line);
702 border-radius: 16px;
703 background: var(--paper);
704 color: var(--ink);
705 padding: 36px;
706 width: min(460px, calc(100% - 32px));
707 box-shadow: 0 25px 80px #15231830
708}
709
710dialog::backdrop {
711 background: #25352c66;
712 backdrop-filter: blur(3px)
713}
714
715dialog h2 {
716 font-size: 25px;
717 margin-bottom: 13px;
718 letter-spacing: -1px
719}
720
721dialog p {
722 font-size: 14px;
723 color: var(--muted);
724 margin-bottom: 20px
725}
726
727dialog .actions {
728 justify-content: flex-start;
729 margin-top: 20px
730}
731
732.modal-close {
733 position: absolute;
734 right: 8px;
735 top: 6px
736}
737
738dialog input {
739 width: 100%;
740 border: 1px solid var(--line);
741 border-radius: 6px;
742 padding: 12px;
743 background: #f5f5ee;
744 color: var(--ink)
745}
746
747.stats {
748 display: grid;
749 grid-template-columns: repeat(3, 1fr);
750 background: #eff1e7;
751 border-radius: 10px;
752 padding: 20px;
753 margin: 22px 0;
754 text-align: center
755}
756
757.stats strong {
758 display: block;
759 font-size: 27px
760}
761
762.stats span {
763 font-size: 11px;
764 color: var(--muted)
765}
766
767.settings-actions {
768 display: flex;
769 flex-direction: column;
770 gap: 10px
771}
772
773.settings-actions a {
774 text-align: center;
775 text-decoration: none
776}
777
778#toast {
779 position: fixed;
780 bottom: 22px;
781 left: 50%;
782 transform: translateX(-50%);
783 background: var(--ink);
784 color: white;
785 padding: 13px 20px;
786 border-radius: 9px;
787 z-index: 20;
788 max-width: calc(100% - 30px);
789 font-size: 13px;
790 box-shadow: 0 5px 25px #0002;
791 display: none
792}
793
794#toast.visible {
795 display: block
796}
797
798.login {
799 max-width: 900px;
800 margin: 10vh auto
801}
802
803.login h1 {
804 font-size: 70px;
805 line-height: 1.05;
806 margin: 20px 0
807}
808
809.login p {
810 font-size: 18px;
811 color: var(--muted);
812 max-width: 500px;
813 margin-bottom: 32px
814}
815
816.login .button {
817 display: inline-flex;
818 gap: 25px
819}
820
821.login small {
822 display: block;
823 margin-top: 16px;
824 color: var(--muted)
825}
826
827.drag-ghost {
828 position: fixed;
829 width: 65px;
830 height: 65px;
831 pointer-events: none;
832 z-index: 50;
833 transform: translate(-50%, -50%)
834}
835
836.rules-list {
837 padding-left: 20px;
838 font-size: 14px;
839 color: var(--muted)
840}
841
842.rules-list li {
843 margin-bottom: 8px
844}
845
846.inline-note {
847 font-size: 11px;
848 color: var(--muted)
849}
850
851@media(min-width:1450px) {
852 .layout {
853 grid-template-columns: minmax(0, 1fr) 330px
854 }
855
856 main {
857 padding: 48px 60px
858 }
859
860 .game-grid {
861 grid-template-columns: repeat(auto-fill, minmax(260px, 1fr))
862 }
863}
864
865@media(max-width:1050px) {
866 main {
867 padding: 30px 25px
868 }
869
870 .topbar {
871 padding: 0 25px
872 }
873
874 .layout {
875 grid-template-columns: minmax(0, 1fr) 260px
876 }
877
878 aside {
879 padding: 30px 20px
880 }
881
882 .game-grid {
883 gap: 16px;
884 grid-template-columns: repeat(auto-fill, minmax(210px, 1fr))
885 }
886
887 .section-heading>span {
888 display: none
889 }
890}
891
892@media(max-width:760px) {
893 .topbar {
894 height: 70px;
895 padding: 0 20px;
896 position: sticky;
897 top: 0;
898 z-index: 7
899 }
900
901 .brand {
902 font-size: 22px
903 }
904
905 .brandmark {
906 width: 32px;
907 height: 32px;
908 font-size: 26px;
909 line-height: 29px;
910 margin-right: 9px
911 }
912
913 .tagline {
914 display: none
915 }
916
917 .account-nav>.quiet {
918 font-size: 11px;
919 padding: 8px
920 }
921
922 .mobile-friends {
923 display: block;
924 background: #e7ecde;
925 color: var(--green);
926 font-size: 12px;
927 padding: 9px 10px
928 }
929
930 .mobile-friends span {
931 margin-left: 5px
932 }
933
934 .layout {
935 display: block
936 }
937
938 main {
939 padding: 30px 20px
940 }
941
942 h1 {
943 font-size: 36px
944 }
945
946 .page-heading {
947 align-items: flex-start;
948 margin-bottom: 30px;
949 gap: 10px
950 }
951
952 .page-heading>.primary {
953 font-size: 12px;
954 padding: 10px 12px;
955 margin-top: 27px
956 }
957
958 .page-heading p {
959 font-size: 12px;
960 max-width: 200px
961 }
962
963 .eyebrow {
964 font-size: 9px;
965 letter-spacing: 1.6px
966 }
967
968 .game-grid {
969 grid-template-columns: minmax(0, 1fr);
970 gap: 20px
971 }
972
973 .game-card {
974 max-width: 460px;
975 width: 100%;
976 justify-self: center
977 }
978
979 .board-wrap {
980 padding: 18px
981 }
982
983 .card-header {
984 padding: 15px 18px
985 }
986
987 .card-header strong {
988 font-size: 14px
989 }
990
991 .card-footer {
992 padding: 0 18px 16px
993 }
994
995 .layout aside {
996 position: fixed;
997 right: 0;
998 top: 0;
999 bottom: 0;
1000 width: min(320px, 90vw);
1001 z-index: 12;
1002 transform: translateX(100%);
1003 transition: transform .2s;
1004 overflow-y: auto
1005 }
1006
1007 .layout aside.open {
1008 transform: translateX(0)
1009 }
1010
1011 #friends-close {
1012 display: block
1013 }
1014
1015 #sidebar-backdrop:not([hidden]) {
1016 display: block;
1017 position: fixed;
1018 inset: 0;
1019 background: #25352c66;
1020 z-index: 11
1021 }
1022
1023 footer {
1024 flex-wrap: wrap;
1025 font-size: 9px
1026 }
1027
1028 .login {
1029 padding: 45px 25px;
1030 margin: 4vh auto
1031 }
1032
1033 .login h1 {
1034 font-size: 52px
1035 }
1036
1037 .login p {
1038 font-size: 16px
1039 }
1040
1041 .sidebar-note {
1042 padding-top: 40px
1043 }
1044
1045 .section-heading h2 {
1046 font-size: 16px
1047 }
1048
1049 .square img {
1050 max-width: 90px
1051 }
1052
1053 .end-content {
1054 aspect-ratio: auto;
1055 min-height: 340px
1056 }
1057}
1058
1059@media(prefers-reduced-motion:reduce) {
1060 * {
1061 transition: none !important
1062 }
1063}
1064
1065@media(max-width:760px) {
1066 body.sidebar-open {
1067 overflow: hidden
1068 }
1069}
1070
1071.avatar img {
1072 width: 90%;
1073 height: 90%;
1074 object-fit: contain
1075}
1076
1077#avatar-button {
1078 padding: 0;
1079 color: inherit;
1080 outline-offset: 4px;
1081 flex-shrink: 0
1082}
1083
1084#avatar-button:hover {
1085 background: #dce6cb;
1086 box-shadow: 0 0 0 3px #dce6cb
1087}
1088
1089dialog.avatar-picker {
1090 width: min(700px, calc(100% - 28px));
1091 max-height: calc(100dvh - 32px);
1092 overflow-y: auto
1093}
1094
1095.avatar-filters {
1096 display: flex;
1097 align-items: center;
1098 justify-content: space-between;
1099 gap: 12px;
1100 flex-wrap: wrap;
1101 margin: 20px 0
1102}
1103
1104.avatar-tabs {
1105 display: flex;
1106 gap: 5px
1107}
1108
1109.avatar-tabs button {
1110 font-size: 12px;
1111 padding: 8px 12px
1112}
1113
1114.avatar-tabs button[aria-pressed=true] {
1115 background: var(--green);
1116 color: white
1117}
1118
1119#avatar-color {
1120 font: inherit;
1121 font-size: 12px;
1122 color: var(--ink);
1123 background: var(--paper);
1124 border: 1px solid var(--line);
1125 border-radius: 7px;
1126 padding: 8px;
1127 max-width: 100%
1128}
1129
1130.avatar-choices {
1131 display: grid;
1132 grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
1133 gap: 10px;
1134 max-height: 390px;
1135 overflow-y: auto;
1136 padding: 4px
1137}
1138
1139.avatar-choice {
1140 display: flex;
1141 align-items: center;
1142 flex-direction: column;
1143 justify-content: center;
1144 gap: 7px;
1145 min-height: 108px;
1146 padding: 9px 5px;
1147 background: #eff1e7;
1148 border: 2px solid transparent;
1149 font-size: 10px;
1150 line-height: 1.3;
1151 font-weight: 500
1152}
1153
1154.avatar-choice img {
1155 width: 54px;
1156 height: 54px;
1157 object-fit: contain
1158}
1159
1160.avatar-choice[aria-pressed=true] {
1161 border-color: var(--green);
1162 background: #dde8cc
1163}
1164
1165.avatar-picker-footer {
1166 display: flex;
1167 justify-content: space-between;
1168 align-items: center;
1169 gap: 15px;
1170 margin-top: 18px
1171}
1172
1173dialog .avatar-credits {
1174 font-size: 10px;
1175 margin: 16px 0 0;
1176 line-height: 1.6
1177}
1178
1179.avatar-no-results {
1180 grid-column: 1/-1;
1181 padding: 25px 10px;
1182 text-align: center
1183}
1184
1185#avatar-color:focus-visible {
1186 outline: 3px solid #c19042;
1187 outline-offset: 3px
1188}
1189
1190@media(max-width:760px) {
1191 dialog.avatar-picker {
1192 padding: 30px 20px 22px
1193 }
1194
1195 .avatar-choices {
1196 grid-template-columns: repeat(3, minmax(0, 1fr));
1197 max-height: 42dvh
1198 }
1199
1200 .avatar-tabs button {
1201 padding: 8px 10px;
1202 font-size: 11px
1203 }
1204}
1205
1206.ended-board {
1207 position: relative
1208}
1209
1210.ended-board .end-content {
1211 position: absolute;
1212 left: 15px;
1213 right: 15px;
1214 top: 50%;
1215 transform: translateY(-50%);
1216 min-height: 0;
1217 aspect-ratio: auto;
1218 padding: 12px 8px;
1219 display: flex;
1220 flex-direction: row;
1221 justify-content: space-between;
1222 gap: 8px;
1223 text-align: left;
1224 background: rgb(255 254 251 / 82%);
1225 opacity: .72;
1226 transition: opacity .72s, background .18s
1227}
1228
1229.end-content:hover,
1230.end-content:focus-within {
1231 background: rgb(255 254 251 / 94%);
1232 opacity: 1
1233}
1234
1235.end-status {
1236 min-width: 0
1237}
1238
1239.end-status h3 {
1240 font-size: 13px;
1241 line-height: 1.3
1242}
1243
1244.end-status small {
1245 display: block;
1246 font-size: 10px
1247}
1248
1249.end-content .actions {
1250 flex-wrap: nowrap;
1251 gap: 4px
1252}
1253
1254.end-content button {
1255 font-size: 10px;
1256 padding: 8px 6px
1257}
1258
1259.stop-inactive {
1260 margin-left: auto;
1261 background: #b73535;
1262 color: white;
1263 font-size: 22px;
1264 line-height: 1;
1265 padding: 3px 7px;
1266 flex-shrink: 0
1267}
1268
1269.card-header:has(.stop-inactive) .color-tag {
1270 margin-left: auto
1271}
1272
1273.card-header:has(.stop-inactive) {
1274 gap: 6px
1275}
1276
1277@media(hover:none) {
1278 .ended-board .end-content {
1279 opacity: 1;
1280 background: rgb(255 254 251 / 82%)
1281 }
1282}
1283
1284@media(min-width:761px) {
1285 #sidebar {
1286 position: sticky;
1287 top: 0;
1288 align-self: start;
1289 height: 100dvh;
1290 overflow-y: auto;
1291 padding-top: 24px;
1292 padding-bottom: 105px
1293 }
1294
1295 #sidebar>* {
1296 flex-shrink: 0
1297 }
1298
1299 #friend-list {
1300 flex: 1 1 auto;
1301 min-height: 60px;
1302 overflow-y: auto
1303 }
1304
1305 .sidebar-note {
1306 padding: 18px 0
1307 }
1308
1309 .sidebar-note>span {
1310 font-size: 30px
1311 }
1312}
1313
1314/* One-time tactical move feedback. */
1315.game-card {
1316 position: relative
1317}
1318
1319.move-feedback {
1320 position: absolute;
1321 inset: 0;
1322 z-index: 5;
1323 pointer-events: none;
1324 border-radius: 12px;
1325 border: 3px solid var(--feedback);
1326 box-shadow: inset 0 0 38px var(--feedback-glow);
1327 background: var(--feedback-tint);
1328 opacity: 0
1329}
1330
1331.move-feedback.good {
1332 --feedback: #3188ea;
1333 --feedback-glow: #3188ea77;
1334 --feedback-tint: #3188ea16
1335}
1336
1337.move-feedback.poor {
1338 --feedback: #d94a48;
1339 --feedback-glow: #d94a4890;
1340 --feedback-tint: #d94a4818
1341}
1342
1343.move-quality {
1344 position: absolute;
1345 bottom: 38px;
1346 right: 10px;
1347 padding: 6px 10px;
1348 border-radius: 7px;
1349 background: var(--paper);
1350 border-left: 4px solid var(--feedback);
1351 color: var(--ink);
1352 font-size: 12px;
1353 font-weight: 700;
1354 box-shadow: 0 2px 12px #0002
1355}
1356
1357.move-quality small {
1358 display: block;
1359 font-size: 9px;
1360 font-weight: 400;
1361 color: var(--muted)
1362}
1363
1364/* Remaining material, with White always on the left. */
1365.opponent-info {
1366 flex: 1;
1367 min-width: 0
1368}
1369
1370.opponent-info strong {
1371 display: block
1372}
1373
1374.material-bar {
1375 height: 7px;
1376 max-width: 160px;
1377 margin-top: 5px;
1378 border: 1px solid #879187;
1379 border-radius: 5px;
1380 background: #202823;
1381 overflow: hidden;
1382 direction: ltr
1383}
1384
1385.material-white {
1386 display: block;
1387 width: 100%;
1388 height: 100%;
1389 background: #fffefb;
1390 transform: scaleX(.5);
1391 transform-origin: left center
1392}
1393
1394.material-bar:focus-visible {
1395 outline: 2px solid #c19042;
1396 outline-offset: 3px
1397}
1398
1399.opponent-name {
1400 padding: 0;
1401 border: 0;
1402 background: transparent;
1403 color: inherit;
1404 font: inherit;
1405 cursor: pointer;
1406}
1407.opponent-name:hover { text-decoration: underline; }
1408.friend-request {
1409 display: flex;
1410 align-items: center;
1411 gap: 10px;
1412 margin: 12px 0;
1413}
1414.friend-request > div { min-width: 0; }
1415.friend-request strong { overflow-wrap: anywhere; font-size: 13px; }
1416.friend-request .actions { margin-top: 8px; flex-wrap: wrap; }
1417.friend-request button { padding: 7px 10px; font-size: 12px; }
1418
1419#history-button { margin-left: auto; flex-shrink: 0; font-size: 22px; }
1420.history-list { display: grid; gap: 8px; max-height: 65vh; overflow-y: auto; }
1421.history-entry { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; text-align: left; }
1422.history-entry strong { overflow-wrap: anywhere; }
1423dialog.replay-modal { width: min(400px, calc(100vw - 24px)); }
1424.replay-controls { display: flex; justify-content: space-between; gap: 6px; margin-top: 18px; }
1425#replay-progress { font-size: 12px; text-align: center; }
1426.saved-hourglass { position: fixed; z-index: 100; pointer-events: none; font-size: 24px; }
1427
1428.replay-players { justify-content: center; gap: 8px; font-size: 12px; }
1429.replay-players span { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
1430.replay-players img { width: 24px; height: 24px; flex-shrink: 0; }
1431.replay-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
1432#replay-share { margin-left: auto; font-size: 22px; }
1433.replay-controls button { font-size: 18px; min-width: 0; flex: 1; padding-inline: 8px; }
1434
1435body.replay-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px 12px; }
1436#replay-page { width: min(360px, 100%); }