-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
1594 lines (1560 loc) · 52.5 KB
/
Copy pathstyle.css
File metadata and controls
1594 lines (1560 loc) · 52.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;900&family=Gowun+Batang:wght@400;700&family=Ma+Shan+Zheng&family=Noto+Serif+JP:wght@400&family=Noto+Serif+SC:wght@400&family=Noto+Serif+TC:wght@400&display=swap');
:root {
--ink: #2b2724;
--ink-soft: #4a443d;
--ink-read: #3a352f; /* 보조 텍스트 가독용 — ink-soft보다 진함 (고연령 사용자 대비) */
--paper: #e8ddc7;
--paper-deep: #ddcfb2;
--line: #6b5d48;
--red: #9e2b25;
--red-deep: #7a1f1a;
--blue: #1f4e5f;
--blue-deep: #15323d;
--gold: #b08d57;
--glow: rgba(176,141,87,0.55);
/* 모달(규칙·About) 문장형 텍스트의 한자 자형 — 언어별로 갈림(아래 html[lang]).
보드·기물·기보는 한국 장기 정체성이라 Noto Serif KR 고정, 여기서 안 건드림. */
--cjk-font: 'Noto Serif KR';
}
/* 언어별 CJK 자형 — <html lang>은 setLang()이 갱신. 문장형 모달에만 쓰임.
ko/en/de/fr은 기본값(KR) 사용: 라틴이 주이고 한자 섞이면 KR 자형이어도 무방. */
html[lang="ja"] { --cjk-font: 'Noto Serif JP'; }
html[lang="zh-Hans"] { --cjk-font: 'Noto Serif SC'; }
html[lang="zh-Hant"] { --cjk-font: 'Noto Serif TC'; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
background: #d8c9ab;
font-family: 'Gowun Batang', serif;
color: var(--ink);
min-height: 100vh;
padding: 18px;
}
.wrap {
width: 100%;
max-width: 1100px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 14px;
}
.game-area {
display: flex;
flex-direction: row;
gap: 20px;
align-items: flex-start;
}
.board-col {
flex: 2.7 1 0;
min-width: 0;
position: relative;
}
.side-panel {
flex: 1 1 0;
min-width: 232px; /* 버튼 3개가 한 줄 유지되는 하한 (루미: 폭 +20~30px) */
display: flex;
flex-direction: column;
gap: 12px;
/* 사이드 패널 UI 텍스트 — 언어별 한자 자형(--cjk-font, html[lang] 기준).
단, 잡은 기물 한자(.cap-chip)·기보 행마기호(.mv-piece)는 아래에서 KR 고정. */
font-family: 'Gowun Batang', var(--cjk-font), serif;
}
/* 좁은 화면(모바일/좁은 iframe): 세로로 접기 + 순서 재배치 */
@media (max-width: 720px) {
.game-area { flex-direction: column; align-items: stretch; }
.board-col, .side-panel { flex: 1 1 auto; }
/* 사이드 패널 내부 순서: 상태 → 버튼 → 항복확인 → 잡은기물 → 기보 */
.side-panel { display: flex; flex-direction: column; }
.lang-toggle-wrap { order: -1; } /* 설정버튼은 타이틀바에 있으므로 side-panel엔 없음 */
.status { order: 1; }
.controls { order: 2; }
.resign-confirm { order: 3; }
.captured-bar { order: 4; }
.movelog-wrap { order: 5; }
}
.title-bar {
text-align: center;
position: relative;
}
.title-bar h1 {
font-family: 'Noto Serif KR', serif;
font-weight: 900;
font-size: 1.5rem;
letter-spacing: 0.3em;
color: var(--ink);
text-indent: 0.3em;
}
.title-bar .sub {
font-size: 0.72rem;
letter-spacing: 0.4em;
color: var(--ink-soft);
margin-top: 2px;
text-indent: 0.4em;
}
/* 대국 시계 (timeMode != none일 때만 표시) */
.clock-bar {
display: flex;
gap: 8px;
}
.clock-bar .clock {
flex: 1;
text-align: center;
font-family: 'Gowun Batang', serif;
font-size: 0.84rem;
letter-spacing: 0.04em;
padding: 7px 6px;
background: rgba(43,39,36,0.04);
border: 1px solid rgba(107,93,72,0.3);
border-radius: 2px;
color: var(--ink-soft);
font-variant-numeric: tabular-nums;
transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.clock-bar .clock.active {
background: rgba(176,141,87,0.18);
border-color: var(--gold);
color: var(--ink);
font-weight: 700;
}
.clock-bar .clock.low { color: var(--red); }
.clock-bar .clock.active.low {
background: rgba(158,43,37,0.1);
border-color: var(--red);
color: var(--red-deep);
}
.status {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 6px;
padding: 16px 18px 15px;
background: rgba(43,39,36,0.04);
border: 1px solid rgba(107,93,72,0.3);
/* ★ 상단에 얇은 먹색 강조선 — 기보창과 시각적 무게를 분리 (루미 제안) */
border-top: 3px solid var(--ink-soft);
border-radius: 2px;
font-size: 0.86rem;
min-height: 64px;
}
/* 차례에 따라 상단선 색 (초=청록 / 한=인주) — 누구 차례인지 색으로도 */
.status.turn-r { border-top-color: var(--blue); }
.status.turn-b { border-top-color: var(--red); }
/* ★ 차례 줄: 우측 패널에서 가장 큰 정보 — 0.5초 안에 누구 차례인지. */
.status .turn-line {
white-space: nowrap;
font-size: 1.6rem;
font-weight: 800;
line-height: 1.1;
color: var(--ink);
}
.status .turn-line b { font-weight: 800; }
/* ★ 관점 줄: "당신이 둘 차례" / "상대가 생각 중" — 차례 줄 바로 아래, 또렷한 안내. */
.status .turn-persp {
font-size: 1.08rem;
font-weight: 600;
line-height: 1.3;
letter-spacing: 0.01em;
color: var(--ink);
}
.status .turn-persp:empty { display: none; } /* 문구 없으면 자리 안 차지 */
/* 내 차례면 강조색(청록 깊은 톤), 상대(AI) 차례면 차분하게 */
.status .turn-persp.mine { color: var(--blue-deep); }
.status .turn-persp.theirs { color: var(--ink-soft); font-weight: 500; }
/* AI 생각 중 점 세 개 — 수묵 점이 천천히 차오름 (스피너 대신, 루미 제안) */
.status .ai-dots { display: inline-block; margin-left: 2px; }
.status .ai-dots i {
font-style: normal;
opacity: 0.25;
animation: aiDot 1.4s ease-in-out infinite;
}
.status .ai-dots i:nth-child(2) { animation-delay: 0.25s; }
.status .ai-dots i:nth-child(3) { animation-delay: 0.5s; }
@keyframes aiDot {
0%, 60%, 100% { opacity: 0.2; }
30% { opacity: 0.85; }
}
.status .turn-dot {
display: inline-block;
width: 12px; height: 12px;
border-radius: 50%;
margin-right: 9px;
vertical-align: 1px;
box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}
.turn-r .turn-dot { background: var(--blue); }
.turn-b .turn-dot { background: var(--red); }
/* 보조 줄: 기물을 골라 두세요 등 — 작고 차분하게 (계층 맨 아래) */
.status .msg { color: var(--ink-read); font-size: 0.9rem; }
/* ── AI 생각 중 연출 (루미 톤: 보이지 않는 기객, 옅은 먹 번짐 + 느린 호흡) ──
번쩍임 없이, 보드 위에 아주 옅은 먹빛 베일이 느리게 숨쉬듯. */
.board-frame.ai-thinking::after {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
z-index: 3;
background: radial-gradient(ellipse at center, rgba(43,39,36,0.05), transparent 70%);
animation: aiBreath 3.2s ease-in-out infinite;
}
@keyframes aiBreath {
0%, 100% { opacity: 0.25; }
50% { opacity: 0.7; }
}
/* 보드: 9열 x 10행, 교차점에 기물. 높이는 JS가 폭 기준으로 고정. */
.board-frame {
position: relative;
width: 100%;
flex: 0 0 auto;
overflow: hidden;
background: #d8c9ab;
border: 1px solid #5a4a32;
border-radius: 4px;
box-shadow:
0 14px 36px rgba(43,39,36,0.33),
0 0 0 7px #cdb88f,
0 0 0 8px #5a4a32;
--pad: 6%;
touch-action: manipulation;
}
/* 배경 그림 전용 레이어 — 진영(flipped)에 따라 정방향/180도 배경 이미지 교체 */
.board-frame::before {
content: '';
position: absolute; inset: 0;
pointer-events: none;
border-radius: 3px;
background:
linear-gradient(rgba(248,240,224,0.06), rgba(248,240,224,0.06)),
url('assets/board/board-bg.png');
background-size: cover;
background-position: center;
z-index: 0;
}
.board-frame.flipped::before {
background:
linear-gradient(rgba(248,240,224,0.06), rgba(248,240,224,0.06)),
url('assets/board/board-bg-flip.png');
background-size: cover;
background-position: center;
}
svg.grid { position: absolute; overflow: visible; z-index: 1; }
.grid line { stroke: rgba(60,45,28,0.09); stroke-width: 1.2; stroke-linecap: round; }
.grid .palace { stroke: rgba(60,45,28,0.12); stroke-width: 1.2; }
/* 좌표축 라벨 — 오목에서 이식. 알파벳×숫자(가로 A~I·세로 1~10), 화면 고정·flip 무관.
장기 판은 담백하므로 오목보다 옅게. halo(밝은 stroke)로 산수화/원목/십장생/한지
배경 위에서도 읽히게. viewBox 100 스케일 기준 font-size. */
.grid .axis-label {
fill: rgba(50,38,22,0.50);
font-family: 'Gowun Batang', var(--cjk-font), serif;
font-size: 2.7px;
letter-spacing: 0;
user-select: none;
stroke: rgba(245,238,224,0.78);
stroke-width: 0.55px;
paint-order: stroke fill;
stroke-linejoin: round;
}
.pieces { position: absolute; z-index: 1; }
/* 마지막 둔 수 하이라이트 (출발/도착 교차점) */
.last-mark {
position: absolute;
width: 9.5%; aspect-ratio: 1;
transform: translate(-50%, -50%);
border-radius: 4px;
background: rgba(120,160,90,0.36);
box-shadow: inset 0 0 0 2px rgba(90,130,60,0.65);
pointer-events: none;
z-index: 0;
}
.piece {
position: absolute;
width: 15%;
aspect-ratio: 1;
transform: translate(-50%, -50%);
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-family: 'Noto Serif KR', serif;
font-weight: 900;
font-size: clamp(13px, 4vw, 25px);
cursor: pointer;
user-select: none;
transition: top 0.32s cubic-bezier(.34,1.3,.5,1), left 0.32s cubic-bezier(.34,1.3,.5,1), transform 0.18s, box-shadow 0.18s;
z-index: 2;
}
.piece-img {
width: 100%; height: 100%;
object-fit: contain;
pointer-events: none;
user-select: none;
filter: drop-shadow(0 3px 4px rgba(43,39,36,0.35));
}
.piece.sel { z-index: 5; }
.piece.sel .piece-img {
filter: drop-shadow(0 0 6px var(--gold)) drop-shadow(0 0 10px var(--glow)) drop-shadow(0 3px 4px rgba(43,39,36,0.4));
}
/* 선택 기물 링 — 기물 바깥에 은은한 청록 링. 금빛 glow와 겹쳐 "선택됨"을 또렷하게. */
.piece.sel::after {
content: '';
position: absolute;
inset: -18%;
border-radius: 50%;
border: 2px solid rgba(31,78,95,0.45);
box-shadow: 0 0 8px rgba(31,78,95,0.3);
pointer-events: none;
animation: selRing 1.8s ease-in-out infinite;
}
@keyframes selRing {
0%,100% { opacity: 0.6; transform: scale(1); }
50% { opacity: 1; transform: scale(1.06); }
}
/* 장군당한 궁(K) — 붉은 링 + 약한 금빛 glow, 아주 은은한 pulse */
.piece.in-check { z-index: 4; }
.piece.in-check .piece-img {
filter:
drop-shadow(0 0 4px rgba(158,43,37,0.9))
drop-shadow(0 0 9px rgba(158,43,37,0.55))
drop-shadow(0 0 13px var(--glow))
drop-shadow(0 3px 4px rgba(43,39,36,0.4));
animation: checkPulse 1.6s ease-in-out infinite;
}
/* sel + in-check 동시: 선택 glow에 붉은 링을 얹어 둘 다 보이게 */
.piece.in-check.sel .piece-img {
filter:
drop-shadow(0 0 5px rgba(158,43,37,0.95))
drop-shadow(0 0 10px rgba(158,43,37,0.6))
drop-shadow(0 0 12px var(--glow))
drop-shadow(0 3px 4px rgba(43,39,36,0.4));
}
@keyframes checkPulse {
0%,100% { opacity: 0.92; }
50% { opacity: 1; }
}
.piece:hover { transform: translate(-50%, -52%); }
/* ★ 이동 미끄럼 고스트 — render()가 그린 새 판 위에서 from→to로 미끄러지는 임시 기물.
기존 .piece의 top/left transition(끝에서 튕기는 곡선)을 차분한 ease-out으로 덮어쓴다.
클릭을 가로채지 않도록 pointer-events 차단(아래 실제 기물/점이 살아있게). */
.piece.move-ghost {
pointer-events: none;
z-index: 6; /* 일반 기물(2)·선택(5)보다 위로 — 미끄러지는 동안 가장 앞 */
transition: left 0.25s ease-out, top 0.25s ease-out;
}
/* 합법수 표시 — 히트박스(투명) + 시각 표시 */
/* 이동점 CSS 변수 — 테마별로 :root 또는 .board-frame.bg-* 에서 재정의 가능 */
:root {
--move-dot-color: rgba(176,141,87,0.88); /* 고금색 — 산수화 기본 */
--move-dot-outline: rgba(248,240,224,0.55); /* 한지빛 외곽 — 배경 분리 */
--move-dot-glow: rgba(176,141,87,0.45);
--cap-dot-color: rgba(176,141,87,0.90); /* 잡기 링 */
--cap-dot-glow: rgba(176,141,87,0.55);
--cap-dot-inset: rgba(176,141,87,0.22);
}
/* 심플 배경: 외곽선 더 진하게 (밝은 배경에서 금색 점 분리) */
.board-frame.bg-simple {
--move-dot-outline: rgba(160,130,70,0.7);
}
.dot {
position: absolute;
width: 8.2%; aspect-ratio: 1;
transform: translate(-50%, -50%);
z-index: 3;
cursor: pointer;
display: flex; align-items: center; justify-content: center;
}
/* 이동 가능: 50% 채워진 점 + 밝은 외곽선으로 배경과 분리 */
.dot::after {
content: '';
width: 50%; aspect-ratio: 1;
border-radius: 50%;
background: var(--move-dot-color);
border: 2px solid rgba(255,255,255,0.75);
box-shadow: 0 0 6px var(--move-dot-glow);
animation: pulse 1.3s ease-in-out infinite;
}
/* 잡기 가능: 링 유지 — 적 기물 위에 강조 */
.dot.capture::after {
width: 96%;
background: transparent;
border: 3.5px solid var(--cap-dot-color);
box-shadow: 0 0 14px var(--cap-dot-glow), inset 0 0 8px var(--cap-dot-inset);
}
@keyframes pulse { 0%,100%{opacity:0.82; transform: scale(0.94);} 50%{opacity:1; transform: scale(1.06);} }
/* 핀/장군 표식 — "원래 갈 수 있는 길이지만 지금은 둘 수 없는" 칸. (.dot과 같은 스케일)
2안(붉은 빈 링) + 선명도 강화: 링 두께·색을 조금 올리고, 한지빛 halo로 산수화/원목/
십장생/한지 4배경 위에서도 사라지지 않게. 속은 거의 비워 판 그림을 가리지 않음.
채운 점(.dot=이동 가능) ↔ 빈 링(.pinned-dot=막힘)이 한 쌍의 시각 언어. */
.pinned-dot {
position: absolute;
width: 8.2%; aspect-ratio: 1; /* 이동점과 동일 컨테이너 — 봉인진 방지 */
transform: translate(-50%, -50%);
z-index: 3;
pointer-events: none; /* 안내용 — 아래 기물 클릭 방해 안 함 */
display: flex; align-items: center; justify-content: center;
}
.pinned-dot::after {
content: '';
width: 46%; aspect-ratio: 1;
border-radius: 50%;
background: rgba(150,48,48,0.06); /* 속은 거의 비움 */
border: 2px solid rgba(150,48,48,0.72); /* 붉은 링 — "불가" */
box-shadow: 0 0 0 2px rgba(250,235,205,0.35), /* 한지빛 halo — 배경 분리 */
0 0 5px rgba(150,48,48,0.35);
animation: pinPulse 1.5s ease-in-out infinite;
}
@keyframes pinPulse { 0%,100%{opacity:0.82;} 50%{opacity:1;} }
/* (옛 .block-mark — 큰 ⊘ 멱 막힘 표식 — 은 .pinned-dot 붉은 빈 링으로 통일·폐기됨.
이동 가능(금색 채운 점 .dot) ↔ 이동 불가(붉은 빈 링 .pinned-dot) 한 쌍으로 일원화.) */
/* 잡기 연출: 먹 번짐 */
.ink-splat {
position: absolute;
width: 14%; aspect-ratio: 1;
transform: translate(-50%,-50%) scale(0.2);
border-radius: 50%;
background: radial-gradient(circle, rgba(43,39,36,0.85), rgba(43,39,36,0.35) 45%, transparent 72%);
pointer-events: none;
z-index: 4;
animation: splat 0.6s ease-out forwards;
}
@keyframes splat {
0% { transform: translate(-50%,-50%) scale(0.2); opacity: 0; }
35% { opacity: 0.9; }
100% { transform: translate(-50%,-50%) scale(1.8); opacity: 0; }
}
/* 장군 선언 — 궁에서 붉은 파동이 한 번 퍼짐 (일회성, doMove에서만 생성) */
.check-burst {
position: absolute;
width: 12%; aspect-ratio: 1;
transform: translate(-50%,-50%) scale(0.3);
border-radius: 50%;
border: 4px solid rgba(158,43,37,0.9);
box-shadow:
0 0 18px rgba(158,43,37,0.8),
0 0 36px var(--glow),
inset 0 0 16px rgba(158,43,37,0.45);
pointer-events: none;
z-index: 6;
animation: checkBurst 0.9s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes checkBurst {
0% { transform: translate(-50%,-50%) scale(0.3); opacity: 0; border-width: 5px; }
16% { opacity: 1; }
100% { transform: translate(-50%,-50%) scale(4.6); opacity: 0; border-width: 1px; }
}
/* 장군 선언 — 보드 중앙 글자. 시작 안개(mist)와 같은 결, 더 짧고(0.85s) 옅은 적먹 섞음 */
.check-announce {
position: absolute; inset: 0;
z-index: 9;
border-radius: 3px;
pointer-events: none;
display: flex; align-items: center; justify-content: center;
opacity: 0;
background:
radial-gradient(110% 80% at 50% 45%, rgba(158,43,37,0.16), rgba(158,43,37,0) 55%),
radial-gradient(120% 80% at 35% 30%, rgba(248,244,236,0.82), rgba(248,244,236,0) 62%),
linear-gradient(rgba(244,236,228,0.7), rgba(238,228,216,0.7));
backdrop-filter: blur(4px);
animation: checkMist 0.85s ease-out forwards;
}
.check-announce-text {
font-family: 'Noto Serif KR', serif;
font-weight: 900;
font-size: clamp(2rem, 8vw, 3.6rem);
letter-spacing: 0.3em;
text-indent: 0.3em;
color: var(--red-deep);
text-shadow: 0 2px 10px rgba(158,43,37,0.4), 0 0 20px var(--glow);
opacity: 0;
animation: checkMistText 0.85s ease-out forwards;
}
@keyframes checkMist {
0% { opacity: 1; backdrop-filter: blur(4px); }
100% { opacity: 0; backdrop-filter: blur(0px); }
}
@keyframes checkMistText {
0% { opacity: 0; transform: scale(1.25); letter-spacing: 0.5em; }
28% { opacity: 1; transform: scale(1); letter-spacing: 0.3em; }
65% { opacity: 1; }
100% { opacity: 0; transform: scale(0.96); }
}
/* ★ 멍군 연출 — 장군(붉은 공격)의 짝. 청록(--blue) 응수. 구조는 장군과 동일, 색만 다름.
버스트는 멍군을 둔 기물(to) 위에서 퍼진다("여기로 받았다"). */
.defend-burst {
position: absolute;
width: 12%; aspect-ratio: 1;
transform: translate(-50%,-50%) scale(0.3);
border-radius: 50%;
border: 4px solid rgba(31,78,95,0.9);
box-shadow:
0 0 18px rgba(31,78,95,0.8),
0 0 36px var(--glow),
inset 0 0 16px rgba(31,78,95,0.45);
pointer-events: none;
z-index: 6;
animation: checkBurst 0.9s cubic-bezier(.2,.7,.3,1) forwards;
}
.defend-announce {
position: absolute; inset: 0;
z-index: 9;
border-radius: 3px;
pointer-events: none;
display: flex; align-items: center; justify-content: center;
opacity: 0;
background:
radial-gradient(110% 80% at 50% 45%, rgba(31,78,95,0.16), rgba(31,78,95,0) 55%),
radial-gradient(120% 80% at 35% 30%, rgba(248,244,236,0.82), rgba(248,244,236,0) 62%),
linear-gradient(rgba(244,236,228,0.7), rgba(238,228,216,0.7));
backdrop-filter: blur(4px);
animation: checkMist 0.85s ease-out forwards;
}
.defend-announce-text {
font-family: 'Noto Serif KR', serif;
font-weight: 900;
font-size: clamp(2rem, 8vw, 3.6rem);
letter-spacing: 0.3em;
text-indent: 0.3em;
color: var(--blue-deep);
text-shadow: 0 2px 10px rgba(31,78,95,0.4), 0 0 20px var(--glow);
opacity: 0;
animation: checkMistText 0.85s ease-out forwards;
}
.controls { display: flex; gap: 10px; }
button {
flex: 1;
font-family: 'Gowun Batang', serif;
font-size: 0.86rem;
padding: 9px;
background: rgba(43,39,36,0.05);
border: 1px solid var(--line);
border-radius: 2px;
color: var(--ink);
cursor: pointer;
letter-spacing: 0.1em;
transition: background 0.15s, transform 0.1s;
}
button:hover { background: rgba(176,141,87,0.18); }
button:active { transform: translateY(1px); }
/* ── 하단 컨트롤 3개: 사용 빈도에 따라 시각 무게 차등 (루미 제안) ──
무르기=강조 / 처음부터=보통 / 돌 던지기=옅게+위험색 */
.controls button {
font-size: 0.96rem;
padding: 11px 6px;
letter-spacing: 0.04em;
white-space: nowrap;
transition: background 0.15s, transform 0.1s, border-color 0.15s, opacity 0.15s;
}
.controls button:hover { background: rgba(176,141,87,0.22); border-color: var(--gold); }
/* 무르기: 가장 자주 — 강조 (굵게 + 또렷한 배경/테두리) */
#undoBtn {
font-weight: 700;
background: rgba(43,39,36,0.09);
border-color: var(--line);
color: var(--ink);
}
/* 처음부터: 가끔 — 보통 톤 */
#resetBtn {
font-weight: 600;
background: rgba(43,39,36,0.05);
color: var(--ink-soft);
}
/* 돌 던지기: 특수·위험 동작 — 옅게 두되 인주빛으로 구분. 호버 때 또렷해짐. */
#resignBtn {
font-weight: 400;
background: transparent;
color: var(--red-deep);
border-color: rgba(122,31,26,0.35);
opacity: 0.8;
}
#resignBtn:hover {
background: rgba(158,43,37,0.12);
border-color: var(--red);
opacity: 1;
}
.captured-bar {
display: flex; flex-direction: column;
gap: 6px; padding: 8px 10px;
background: rgba(43,39,36,0.05);
border: 1px solid rgba(107,93,72,0.25);
border-radius: 2px;
}
.captured-bar .side-cap {
display: flex; flex-wrap: wrap; align-items: center;
gap: 3px; min-height: 26px;
}
.cap-label {
font-size: 0.78rem; color: var(--ink-read);
letter-spacing: 0.05em; margin-right: 4px;
white-space: nowrap; align-self: center;
}
.cap-chip {
width: 22px; height: 22px;
border-radius: 50%;
display: inline-flex; align-items: center; justify-content: center;
font-family: 'Noto Serif KR', serif; font-weight: 900;
font-size: 12px;
background: radial-gradient(circle at 34% 30%, rgba(255,255,255,0.4), transparent 55%), #e7cfa6;
border: 1px solid rgba(43,39,36,0.5);
box-shadow: 0 1px 2px rgba(43,39,36,0.3);
opacity: 0.55;
}
.cap-chip.r { color: var(--blue-deep); }
.cap-chip.b { color: var(--red-deep); }
/* 기보 */
.movelog-wrap {
background: rgba(43,39,36,0.05);
border: 1px solid rgba(107,93,72,0.25);
border-radius: 2px;
display: flex; flex-direction: column;
min-height: 0;
}
.movelog-title {
font-family: 'Gowun Batang', var(--cjk-font), serif;
font-size: 0.86rem; letter-spacing: 0.2em;
color: var(--ink-read);
padding: 8px 12px 6px;
border-bottom: 1px solid rgba(107,93,72,0.2);
text-indent: 0.2em;
}
.movelog {
list-style: none;
margin: 0; padding: 6px 8px;
max-height: 305px;
overflow-y: auto;
font-size: 0.88rem;
color: var(--ink);
counter-reset: mv;
}
.movelog li {
display: flex; align-items: baseline; gap: 6px;
padding: 3px 6px;
border-radius: 2px;
}
.movelog li:nth-child(odd) { background: rgba(176,141,87,0.07); }
.movelog li .num {
flex: 0 0 24px;
color: var(--ink-soft); font-size: 0.72rem;
text-align: right;
}
.movelog li .mv-cell {
flex: 1 1 0; min-width: 0;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.movelog li .mv-r { color: var(--blue-deep); }
.movelog li .mv-b { color: var(--red-deep); }
.movelog li .mv-piece { font-family: 'Noto Serif KR', serif; font-weight: 700; margin-right: 1px; }
.movelog .empty { color: var(--ink-read); font-size: 0.86rem; padding: 8px 6px; }
@media (max-width: 760px) {
.movelog { max-height: 150px; }
}
.win-overlay {
position: absolute; inset: 0;
background: rgba(43,39,36,0.78);
display: none;
align-items: center; justify-content: center;
flex-direction: column;
border-radius: 3px;
z-index: 10;
color: var(--paper);
text-align: center;
backdrop-filter: blur(2px);
}
.win-overlay.show { display: flex; animation: fadein 0.4s; }
@keyframes fadein { from{opacity:0;} to{opacity:1;} }
/* 대국 시작 — 수묵 안개가 걷히는 연출 */
.mist-overlay {
position: absolute; inset: 0;
z-index: 8;
border-radius: 3px;
pointer-events: none;
display: flex; align-items: center; justify-content: center;
opacity: 0;
background:
radial-gradient(120% 80% at 30% 20%, rgba(248,244,236,0.95), rgba(248,244,236,0) 60%),
radial-gradient(120% 80% at 75% 70%, rgba(244,238,228,0.92), rgba(244,238,228,0) 62%),
linear-gradient(rgba(246,240,230,0.9), rgba(240,232,218,0.9));
backdrop-filter: blur(7px);
}
.mist-overlay.run {
animation: mistClear 1.5s ease-out forwards;
}
.mist-text {
font-family: 'Noto Serif KR', serif;
font-weight: 900;
font-size: clamp(1.4rem, 5vw, 2.4rem);
letter-spacing: 0.35em;
text-indent: 0.35em;
color: var(--ink);
opacity: 0;
}
.mist-overlay.run .mist-text {
animation: mistText 1.5s ease-out forwards;
}
@keyframes mistClear {
0% { opacity: 1; backdrop-filter: blur(7px); }
100% { opacity: 0; backdrop-filter: blur(0px); }
}
@keyframes mistText {
0% { opacity: 0; transform: translateY(6px); letter-spacing: 0.55em; }
35% { opacity: 1; }
70% { opacity: 1; transform: translateY(0); letter-spacing: 0.35em; }
100% { opacity: 0; }
}
.win-overlay .win-faction {
font-family: 'Noto Serif KR', serif;
font-weight: 700;
font-size: 1rem;
letter-spacing: 0.15em;
margin-bottom: 6px;
opacity: 0.95;
}
.win-overlay .win-faction.chu { color: #7fd4cf; }
.win-overlay .win-faction.han { color: #f0918a; }
.win-overlay .win-faction.draw { color: #d8cdb2; }
.win-overlay h2 { font-family: 'Noto Serif KR'; font-size: 2.1rem; letter-spacing: 0.25em; margin-bottom: 8px; text-indent: 0.25em; }
.win-overlay h2.win { color: #f5ecdb; }
.win-overlay h2.lose { color: #c9bfae; }
.win-overlay h2.draw { color: #e8dcc0; }
/* [6-2 UI] 무승부 점수 보조 줄. 어두운 오버레이(rgba 43,39,36) 위라 밝은 종이톤 사용
— 루미가 제안한 --ink-read는 밝은 배경용 어두운 색이라 이 맥락엔 안 맞음.
위계: title(2.1rem) 아래, winHint(0.85/opacity .85)보다 또렷하게 — 무승부 승부를
가르는 핵심 정보라 너무 흐리면 안 됨(고연령 대비). 빈 텍스트면 margin도 0이 되게 :empty 처리.
★ 두 줄 구성: ws-row(점수, 한자 병기) / ws-lead(격차, 한자 없이 — "한 5.5점 우세").
한자 반복 제거 + 격차를 독립 줄로 올려 교육 효과("빅장은 점수로 가린다") 강조. */
.win-overlay .win-score {
font-family: 'Noto Serif KR', serif;
margin-bottom: 8px;
}
.win-overlay .win-score:empty { margin: 0; }
.win-overlay .win-score .ws-row {
display: block;
font-size: 0.96rem;
line-height: 1.5;
letter-spacing: 0.02em;
color: #ece1c8;
opacity: 0.94;
}
.win-overlay .win-score .ws-lead {
display: block;
font-size: 0.80rem;
line-height: 1.5;
letter-spacing: 0.02em;
color: #ddd0b4;
opacity: 0.85;
margin-top: 3px;
}
.win-overlay p { font-size: 0.85rem; opacity: 0.85; }
/* 상차림 선택 오버레이 — viewport 기준 중앙 (모바일 보드 높이 0 문제 해결) */
.setup-overlay {
position: fixed; inset: 0;
background: rgba(43,39,36,0.78);
display: none;
align-items: center; justify-content: center;
z-index: 200;
backdrop-filter: blur(3px);
padding: 16px;
overflow-y: auto; /* 패널이 viewport보다 길 때 overlay 자체가 스크롤 */
}
.setup-overlay.show { display: flex; animation: fadein 0.35s; }
.setup-panel {
width: 100%;
max-width: 500px;
max-height: calc(100vh - 32px); /* overlay padding(16px×2) 제외 */
overflow-y: auto;
background: linear-gradient(160deg, var(--paper), var(--paper-deep));
border: 2px solid var(--gold);
border-radius: 5px;
padding: 30px 28px;
box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
/* 가로 모드: 뷰포트 높이가 짧으므로 패널 padding 축소 + 제목 margin 축소 */
@media (orientation: landscape) and (max-height: 680px) {
.setup-panel { padding: 18px 22px; }
.setup-title { font-size: 1.1rem; margin-bottom: 14px; }
.mode-grid { gap: 6px; }
.mode-card { padding: 9px 14px; }
.level-play { margin-bottom: 10px; }
.level-grid { gap: 7px; }
.level-card { padding: 10px 14px; }
.level-note { margin-top: 10px; }
.faction-grid { gap: 9px; }
.faction-card { padding: 14px 10px 12px; }
.setup-grid { gap: 9px; }
.setup-card { padding: 9px 10px 8px; }
.setup-skip { margin-top: 12px; padding: 9px; }
}
.setup-title {
text-align: center;
font-family: 'Noto Serif KR', serif;
font-size: 1.32rem;
color: var(--ink);
margin-bottom: 24px;
letter-spacing: 0.05em;
}
.setup-title b { font-size: 1.42rem; }
.setup-title.r b { color: var(--blue-deep); }
.setup-title.b b { color: var(--red-deep); }
.setup-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 13px;
}
.setup-card {
background: rgba(255,255,255,0.4);
border: 1.5px solid var(--line);
border-radius: 4px;
padding: 13px 12px 11px;
cursor: pointer;
transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
text-align: center;
}
.setup-card:hover {
transform: translateY(-3px);
border-color: var(--gold);
box-shadow: 0 6px 16px rgba(176,141,87,0.45);
}
.setup-card .mini {
display: flex;
justify-content: center;
align-items: center;
gap: 4px;
margin-bottom: 6px;
}
.setup-card .mini .cell {
/* 카드 폭에 비례하되 하한·상한만 고정 (자동 반응형) */
width: clamp(40px, 25%, 80px);
aspect-ratio: 1;
display: flex; align-items: center; justify-content: center;
}
.setup-card .mini .cell img {
width: 100%; height: 100%;
object-fit: contain;
filter: drop-shadow(0 1px 2px rgba(43,39,36,0.3));
}
.setup-card .name {
font-family: 'Gowun Batang', serif;
font-size: 1.02rem; color: var(--ink);
letter-spacing: 0.04em; font-weight: 700;
}
.setup-skip {
width: 100%;
margin-top: 18px;
font-family: 'Gowun Batang', serif;
font-size: 0.9rem;
padding: 12px;
background: rgba(43,39,36,0.08);
border: 1px dashed var(--line);
border-radius: 3px;
color: var(--ink-soft);
cursor: pointer;
letter-spacing: 0.05em;
}
.setup-skip:hover { background: rgba(176,141,87,0.18); }
/* 진영 선택 */
.faction-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 13px;
}
.faction-card {
background: rgba(255,255,255,0.4);
border: 1.5px solid var(--line);
border-radius: 4px;
padding: 20px 14px 16px;
cursor: pointer;
transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
text-align: center;
}
.faction-card:hover {
transform: translateY(-3px);
border-color: var(--gold);
box-shadow: 0 6px 16px rgba(176,141,87,0.45);
}
.faction-card .fc-piece {
width: clamp(56px, 40%, 92px);
aspect-ratio: 1;
margin: 0 auto 10px;
}
.faction-card .fc-piece img { width: 100%; height: 100%; object-fit: contain;
filter: drop-shadow(0 2px 3px rgba(43,39,36,0.32)); }
.faction-card .fc-name {
font-family: 'Noto Serif KR', serif; font-weight: 900;
font-size: 1.15rem; letter-spacing: 0.04em;
}
.faction-card.chu .fc-name { color: var(--blue-deep); }
.faction-card.han .fc-name { color: var(--red-deep); }
.faction-card .fc-sub {
display: block; font-size: 0.76rem; color: var(--ink-soft);
margin-top: 3px; font-weight: 400; letter-spacing: 0.02em;
}
.faction-note {
margin-top: 16px; text-align: center;
font-size: 0.76rem; color: var(--ink-soft);
letter-spacing: 0.02em; line-height: 1.5;
}
/* 모드 메뉴 (대국 방식 선택 현관) */
.mode-grid {
display: flex;
flex-direction: column;
gap: 10px;
}
.mode-card {
display: flex;
flex-direction: column;
gap: 2px;
background: rgba(255,255,255,0.4);
border: 1.5px solid var(--line);
border-radius: 4px;
padding: 15px 20px;
cursor: pointer;
transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
text-align: left;
}
.mode-card:hover {
transform: translateY(-2px);
border-color: var(--gold);
box-shadow: 0 6px 16px rgba(176,141,87,0.45);
}
.mode-card.mode-coming {
opacity: 0.5;
cursor: default;
}
.mode-card.mode-coming:hover {
transform: none;
border-color: var(--line);
box-shadow: none;
}
.mode-text {
width: 100%;
display: flex;
flex-direction: column;
gap: 2px;
}
.mode-name {
font-family: 'Noto Serif KR', serif;
font-weight: 800;
font-size: 1.05rem;
color: var(--ink);
letter-spacing: 0.04em;
}
.mode-sub {
font-size: 0.78rem;
color: var(--ink-soft);
letter-spacing: 0.01em;
line-height: 1.4;
}
/* 강도 서브패널 — 모드 카드와 동일 스크롤 영역 안 */
.level-sub-panel { }
/* 강도 선택 (작은 현관 — "오늘은 어떻게 두실까요?") */
.level-play {
text-align: center;
margin-bottom: 18px;
}
.level-play-label {
display: inline-block;
font-family: 'Gowun Batang', serif;
font-size: 0.92rem;
letter-spacing: 0.06em;
color: var(--ink-soft);
padding: 6px 18px;
border: 1px solid var(--line);
border-radius: 3px;
background: rgba(255,255,255,0.28);
}
.level-grid {
display: flex;
flex-direction: column;
gap: 11px;
}
.level-card {
display: flex;
align-items: center;
gap: 15px;
background: rgba(255,255,255,0.4);
border: 1.5px solid var(--line);