File size: 91,994 Bytes
cca00cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>KJH-Judge-4B-ko ์‡ผ๋ฆด</title>
<!-- ์˜์ƒ ์ดฌ์˜์šฉ ์ž๋™ ์žฌ์ƒ ํŽ˜์ด์ง€ ยท KJH-Judge-4B-ko

     1920ร—1080 ๋ฌด๋Œ€๋ฅผ ์ฐฝ ํฌ๊ธฐ์— ๋งž์ถฐ ๋Š˜๋ฆฌ๊ณ , ์žฅ๋ฉด๋งˆ๋‹ค ์ €์žฅ๋œ '์‹ค์ œ ๋ชจ๋ธ ํŒ์ • ๊ฒฐ๊ณผ'๋งŒ ์žฌ์ƒํ•œ๋‹ค (์„œ๋ฒ„ ๋ถˆํ•„์š”).

     ์กฐ์ž‘: Space ์ผ์‹œ์ •์ง€ ยท โ†/โ†’ ์žฅ๋ฉด ์ด๋™ ยท 1~9,0 ์žฅ๋ฉด ๋ฐ”๋กœ๊ฐ€๊ธฐ ยท R ์ฒ˜์Œ๋ถ€ํ„ฐ ยท H ์กฐ์ž‘๋ฐ” ์ˆจ๊น€ ยท C ์ž๋ง‰ ยท F ์ „์ฒดํ™”๋ฉด

     ์ฃผ์†Œ ์˜ต์…˜: ?s=3 (3๋ฒˆ ์žฅ๋ฉด๋ถ€ํ„ฐ) ยท ?loop=1 (๋ฐ˜๋ณต) ยท ?cap=0 (์ž๋ง‰ ๋”) ยท ?clean=1 (์กฐ์ž‘๋ฐ” ์ˆจ๊ธฐ๊ณ  ์‹œ์ž‘) ยท ?hold=1 (์ž๋™ ๋„˜๊น€ ๋”) ยท ?at=4000 (์žฅ๋ฉด ์•ˆ 4์ดˆ ์ง€์ ๋ถ€ํ„ฐ) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap">
<style>

:root{

  --bg:#04060b;--ink:#f4f6fb;--ink2:#cdd3df;--muted:#8b94a7;--faint:#566074;

  --stroke:rgba(255,255,255,.085);--stroke2:rgba(255,255,255,.15);

  --grad:linear-gradient(100deg,#b9a6ff 0%,#72b8ff 48%,#5ff0d2 100%);

  --call:#6aa6ff;--ask:#ffb44d;--respond:#3ee0b0;--good:#4ade80;--bad:#ff6b5e;--hi:#ffd36b;

  --sans:"Pretendard Variable","Pretendard",-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;

  --mono:"JetBrains Mono","IBM Plex Mono",Consolas,monospace;

  --ease:cubic-bezier(.2,.8,.2,1);

}

*{box-sizing:border-box}

html,body{margin:0;height:100%;background:#000;overflow:hidden}

body{color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;word-break:keep-all;font-feature-settings:"tnum" 0}

body.idle{cursor:none}



/* โ”€โ”€ ๋ฌด๋Œ€ โ”€โ”€ */

#stage{position:absolute;left:50%;top:50%;width:1920px;height:1080px;transform-origin:center;overflow:hidden;background:var(--bg);isolation:isolate}

#aurora{position:absolute;inset:0;z-index:0;overflow:hidden}

#aurora .b{position:absolute;border-radius:50%;filter:blur(150px);opacity:.42;transition:background-color 1.8s ease}

#aurora .b1{width:1100px;height:900px;left:-320px;top:-380px;animation:d1 22s ease-in-out infinite alternate}

#aurora .b2{width:1000px;height:900px;right:-360px;top:-200px;animation:d2 26s ease-in-out infinite alternate}

#aurora .b3{width:1300px;height:700px;left:320px;bottom:-560px;opacity:.3;animation:d3 30s ease-in-out infinite alternate}

@keyframes d1{to{transform:translate(180px,120px) scale(1.1)}}

@keyframes d2{to{transform:translate(-160px,160px) scale(.92)}}

@keyframes d3{to{transform:translate(-200px,-60px) scale(1.08)}}

#grid{position:absolute;inset:0;z-index:0;background-image:linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px);background-size:80px 80px;-webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 45%,#000 20%,transparent 75%);mask-image:radial-gradient(ellipse 70% 60% at 50% 45%,#000 20%,transparent 75%)}

#grain{position:absolute;inset:0;z-index:30;pointer-events:none;opacity:.07;mix-blend-mode:overlay;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}

#vig{position:absolute;inset:0;z-index:29;pointer-events:none;background:radial-gradient(ellipse 85% 80% at 50% 48%,transparent 55%,rgba(0,0,0,.6))}

#fade{position:absolute;inset:0;z-index:40;background:#000;opacity:0;pointer-events:none}



/* โ”€โ”€ ์ƒ๋‹จยทํ•˜๋‹จ ๊ณ ์ • ์š”์†Œ โ”€โ”€ */

.chrome{position:absolute;left:80px;right:80px;top:52px;z-index:20;display:flex;align-items:center;gap:18px}

.brand{display:flex;align-items:center;gap:14px}

.brand svg{width:44px;height:44px}

.brand b{font:750 27px/1 var(--sans);letter-spacing:-.03em}

.brand .pl{padding:6px 11px;border-radius:99px;border:1px solid var(--stroke2);font:600 15px/1 var(--mono);color:var(--ink2);letter-spacing:.04em}

.chap{margin-left:auto;display:flex;align-items:center;gap:14px;font:500 17px/1 var(--mono);color:var(--muted);letter-spacing:.06em}

.chap #chapn{color:var(--ink);font-weight:700}

.chap #chapt{font-family:var(--sans);font-weight:600;letter-spacing:0;color:var(--ink2);min-width:96px}

.segs{display:flex;gap:5px}

.segs span{width:26px;height:3px;border-radius:2px;background:rgba(255,255,255,.12);overflow:hidden}

.segs span i{display:block;height:100%;width:0;background:var(--grad)}

.live{position:absolute;left:80px;bottom:44px;z-index:20;display:flex;align-items:center;gap:10px;font:500 15px/1 var(--mono);color:var(--faint);letter-spacing:.04em}

.live i{width:8px;height:8px;border-radius:50%;background:var(--good);box-shadow:0 0 0 4px rgba(74,222,128,.15),0 0 14px var(--good);animation:pulse 2s ease-in-out infinite}

@keyframes pulse{50%{opacity:.45}}



/* โ”€โ”€ ์žฅ๋ฉด ยท ๋“ฑ์žฅ โ”€โ”€ */

.scene{position:absolute;inset:0;z-index:10;animation:sIn 1s var(--ease)}

.scene.leaving{animation:sOut .55s ease forwards}

@keyframes sIn{from{opacity:0;filter:blur(16px);transform:scale(1.035)}}

@keyframes sOut{to{opacity:0;filter:blur(12px);transform:scale(.985)}}

.cam{position:absolute;inset:0;padding:156px 140px 200px;display:flex;flex-direction:column;transform-origin:50% 52%}

[data-in]{opacity:0;transform:translateY(34px);filter:blur(8px);transition:opacity .8s ease,transform .9s var(--ease),filter .8s ease}

[data-in].on{opacity:1;transform:none;filter:none}

.words[data-in]{opacity:1;transform:none;filter:none}

.words .w>span{display:inline-block;opacity:0;transform:translateY(.42em);filter:blur(12px);transition:opacity .8s ease,transform .9s var(--ease),filter .8s ease;transition-delay:calc(var(--d)*70ms)}

.words.on .w>span{opacity:1;transform:none;filter:none}

.acc{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}

.draw{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.3s cubic-bezier(.6,0,.2,1)}

.on .draw,.draw.on{stroke-dashoffset:0}

.dot{transform-box:fill-box;transform-origin:center;transform:scale(0);transition:transform .7s cubic-bezier(.3,1.7,.5,1) .9s}

.on .dot{transform:none}



/* โ”€โ”€ ์ž๋ง‰ โ”€โ”€ */

.cap{position:absolute;left:50%;bottom:92px;z-index:20;transform:translate(-50%,14px);width:max-content;max-width:1500px;padding:16px 34px;border-radius:18px;

  background:rgba(6,8,14,.62);border:1px solid var(--stroke);backdrop-filter:blur(18px);box-shadow:0 20px 50px -20px rgba(0,0,0,.8);

  font:600 34px/1.4 var(--sans);letter-spacing:-.02em;text-align:center;color:var(--ink);opacity:0;transition:opacity .7s,transform .7s var(--ease)}

.cap.on{opacity:1;transform:translate(-50%,0)}

body.nocap .cap{display:none}



/* โ”€โ”€ ๊ณตํ†ต ๋ถ€ํ’ˆ โ”€โ”€ */

.kicker{display:flex;align-items:center;gap:16px;font:500 19px/1 var(--mono);letter-spacing:.16em;color:var(--muted)}

.kicker b{font-weight:700;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}

.kicker i{width:46px;height:1px;background:var(--stroke2)}

.hl{margin:22px 0 0;font:800 80px/1.12 var(--sans);letter-spacing:-.045em}

.glass{position:relative;background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.018));border:1px solid var(--stroke);border-radius:28px;

  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 40px 90px -50px rgba(0,0,0,.95);backdrop-filter:blur(26px) saturate(1.25)}

.ic{width:1em;height:1em;flex:none}

.itile{flex:none;width:72px;height:72px;border-radius:20px;display:grid;place-items:center;color:var(--c);font-size:36px;

  background:linear-gradient(180deg,color-mix(in srgb,var(--c) 22%,transparent),color-mix(in srgb,var(--c) 8%,transparent));border:1px solid color-mix(in srgb,var(--c) 42%,transparent);box-shadow:0 10px 30px -12px color-mix(in srgb,var(--c) 60%,transparent)}

.k-call{--c:var(--call)}.k-ask{--c:var(--ask)}.k-respond{--c:var(--respond)}.k-good{--c:var(--good)}.k-bad{--c:var(--bad)}.k-hi{--c:var(--hi)}.k-mute{--c:#7d879b}

.bar{position:relative;height:10px;border-radius:99px;background:rgba(255,255,255,.07);overflow:hidden}

.bar i{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:inherit;background:linear-gradient(90deg,color-mix(in srgb,var(--c,var(--call)) 45%,transparent),var(--c,var(--call)));box-shadow:0 0 18px color-mix(in srgb,var(--c,var(--call)) 70%,transparent)}

.pct{font:600 34px/1 var(--mono);font-variant-numeric:tabular-nums;letter-spacing:-.03em}

.mono{font-family:var(--mono)}

mark{background:color-mix(in srgb,var(--hi) 18%,transparent);color:var(--hi);border-radius:8px;padding:0 8px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--hi) 35%,transparent)}

.conn{width:96px;height:30px;color:rgba(255,255,255,.28);justify-self:center}

.conn path{stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}

.chipk{display:inline-flex;align-items:center;gap:10px;padding:10px 18px;border-radius:99px;border:1px solid var(--stroke2);background:rgba(255,255,255,.04);font:500 21px/1 var(--mono);color:var(--ink2);letter-spacing:.02em}

.chipk b{color:var(--ink);font-weight:700}

.badge{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:99px;font:700 21px/1 var(--sans);color:var(--c);background:color-mix(in srgb,var(--c) 14%,transparent);border:1px solid color-mix(in srgb,var(--c) 35%,transparent)}

.badge .ic{font-size:22px}



/* 1ยท2 ยท ํƒ์‹œ */

.s-hook .who{font:500 20px/1 var(--mono);letter-spacing:.16em;color:var(--muted)}

.bubble{align-self:flex-start;margin-top:22px;padding:28px 44px;border-radius:44px 44px 44px 14px;font:650 62px/1.2 var(--sans);letter-spacing:-.035em}

.caret{display:inline-block;width:4px;height:.9em;margin-left:8px;border-radius:2px;background:var(--ink);vertical-align:-.08em;animation:blink 1s steps(2,start) infinite}

@keyframes blink{to{visibility:hidden}}

.s-hook .hl{margin-top:44px;font-size:76px}

.stats{display:flex;gap:14px;margin-top:26px}

.opts3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:auto}

.opt3{padding:34px 36px 32px;transition:opacity .8s ease,transform .9s var(--ease),filter .8s ease,box-shadow .8s,border-color .8s}

.opt3 .tt{margin-top:26px;font:700 42px/1.2 var(--sans);letter-spacing:-.03em}

.opt3 .ds{margin-top:8px;font:500 25px/1.4 var(--sans);color:var(--muted)}

.opt3 .meter{margin-top:28px;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}

.opt3 .vd{position:absolute;top:30px;right:30px;padding:9px 14px;border-radius:99px;background:var(--c);color:#090b10;font:700 16px/1 var(--mono);letter-spacing:.14em;opacity:0;transform:scale(.5);transition:opacity .4s,transform .6s cubic-bezier(.3,1.7,.5,1)}

.opt3.win{border-color:color-mix(in srgb,var(--c) 75%,transparent);transform:translateY(-14px) scale(1.025);box-shadow:0 0 0 1px var(--c),0 0 90px -20px var(--c),inset 0 1px 0 rgba(255,255,255,.12)}

.opt3.win .vd{opacity:1;transform:none}

.opt3.lose{opacity:.3;filter:saturate(.15) blur(1.5px)}

.opt3::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;background:linear-gradient(100deg,transparent 35%,rgba(255,255,255,.1) 50%,transparent 65%);background-size:260% 100%;background-position:130% 0}

.scan .opt3::after{opacity:1;animation:scan 1.1s linear infinite}

@keyframes scan{to{background-position:-130% 0}}



/* 3 ยท ๋Œ€ํ™” */

.turns{display:flex;flex-direction:column;gap:28px;margin-top:54px}

.turn{display:grid;grid-template-columns:minmax(0,.95fr) 120px minmax(0,1.1fr);align-items:center}

.turn .ub{justify-self:start;padding:22px 34px;border-radius:32px 32px 32px 10px;font:600 36px/1.3 var(--sans);letter-spacing:-.025em}

.dec{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:24px;row-gap:14px;align-items:center;padding:22px 30px 24px;border-color:color-mix(in srgb,var(--c) 38%,var(--stroke))}

.dec .itile{grid-row:1/3;width:68px;height:68px;font-size:34px}

.dec .lb{font:700 35px/1.2 var(--sans);letter-spacing:-.025em;display:flex;align-items:center;gap:14px}

.dec .lb small{padding:6px 10px;border-radius:8px;font:700 15px/1 var(--mono);letter-spacing:.12em;color:var(--c);background:color-mix(in srgb,var(--c) 16%,transparent)}

.dec .pct{font-size:31px}

.dec .bar{grid-column:2/4}

.dec .nt{grid-column:1/-1;font:500 21px/1.45 var(--sans);color:var(--muted)}



/* 4ยท11 ยท ํƒ€์ดํ‹€ */

.center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}

.markbig{width:148px;height:148px;filter:drop-shadow(0 20px 60px rgba(114,184,255,.35))}

.wm{margin-top:30px;font:820 170px/1 var(--sans);letter-spacing:-.06em;white-space:nowrap}

.wm .a{background:linear-gradient(180deg,#fff 25%,#c3ccff);-webkit-background-clip:text;background-clip:text;color:transparent}

.wm .b{font-weight:300;letter-spacing:-.04em;background:var(--grad);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:sheen 6s ease-in-out infinite alternate}

@keyframes sheen{to{background-position:100% 0}}

.tag{margin-top:26px;font:600 48px/1.3 var(--sans);letter-spacing:-.035em;color:var(--ink2)}

.facts{display:grid;grid-template-columns:repeat(3,400px);gap:24px;margin-top:58px}

.fact{display:grid;grid-template-columns:auto 1fr;column-gap:22px;align-items:center;padding:26px 30px;text-align:left}

.fact .itile{grid-row:1/3;width:64px;height:64px;font-size:31px}

.fact b{font:800 46px/1 var(--sans);letter-spacing:-.04em;font-variant-numeric:tabular-nums}

.fact span{margin-top:8px;font:500 20px/1.4 var(--sans);color:var(--muted)}

.try{margin-top:50px;display:flex;align-items:center;gap:14px;font:500 25px/1 var(--sans);color:var(--muted)}

.try b{color:var(--ink);font-weight:600}



/* 5 ยท ํ•™์Šต ์ „ํ›„ */

.vs{display:grid;grid-template-columns:1fr 130px 1fr;margin-top:44px;flex:1;min-height:0}

.side{padding:32px 38px;display:flex;flex-direction:column}

.side.after{border-color:rgba(114,184,255,.35);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 0 120px -40px rgba(114,184,255,.5)}

.lab{align-self:flex-start;padding:9px 16px;border-radius:99px;border:1px solid var(--stroke2);font:600 21px/1 var(--sans);color:var(--ink2)}

.tiles{display:grid;grid-template-columns:repeat(15,1fr);gap:6px;margin:26px 0 22px}

.tiles span{aspect-ratio:1;display:grid;place-items:center;border-radius:9px;font:700 19px/1 var(--mono);background:rgba(255,255,255,.045);color:#5d6678;opacity:0;transform:scale(.4);transition:opacity .4s,transform .5s cubic-bezier(.3,1.5,.5,1);transition-delay:calc(var(--i)*13ms)}

.tiles.on span{opacity:1;transform:none}

.after .tiles span{background:hsla(var(--h),90%,66%,.2);color:hsl(var(--h),95%,82%);box-shadow:inset 0 0 0 1px hsla(var(--h),90%,70%,.25)}

.side .note{font:500 23px/1.4 var(--sans);color:var(--muted)}

.side .note b{color:var(--ink)}

.bign{margin-top:auto;font:820 124px/1 var(--sans);letter-spacing:-.06em;font-variant-numeric:tabular-nums}

.before .bign{color:#8f97a8}

.after .bign{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}

.side .sub{margin-top:10px;font:500 23px/1.4 var(--sans);color:var(--muted)}

.mid{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;font:600 16px/1.3 var(--mono);color:var(--muted);text-align:center;letter-spacing:.06em}

.mid .ring{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;font-size:30px;color:var(--ink);background:rgba(255,255,255,.05);border:1px solid var(--stroke2)}



/* 6 ยท ํ•œ๊ตญ์–ด ๋ฌธ์ œ */

.qs{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:46px;flex:1;min-height:0}

.qc{padding:30px 32px 26px;display:flex;flex-direction:column}

.qtag{align-self:flex-start;display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border-radius:99px;font:700 19px/1 var(--sans);color:var(--hi);background:color-mix(in srgb,var(--hi) 12%,transparent);border:1px solid color-mix(in srgb,var(--hi) 30%,transparent)}

.qb{margin:22px 0 18px;font:600 30px/1.48 var(--sans);letter-spacing:-.025em}

.qb p{margin:0 0 10px}

.qb small{display:block;margin-top:6px;font:500 21px/1.45 var(--sans);color:var(--muted);letter-spacing:-.01em}

.op{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;align-items:center;padding:14px 0;border-top:1px solid var(--stroke);transition:opacity .6s}

.op .t{font:600 26px/1.3 var(--sans);letter-spacing:-.02em}

.op .pct{font-size:25px}

.op .bar{grid-column:1/-1;height:8px}

.op.dim{opacity:.4}

.qc .foot{margin-top:auto;padding-top:16px;display:flex;justify-content:space-between;align-items:center;font:500 19px/1 var(--mono);color:var(--muted)}



/* 7 ยท ๊ณ ๊ฐ ๋ฌธ์˜ */

.rows{display:flex;flex-direction:column;gap:28px;margin-top:50px}

.row{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 110px minmax(0,.62fr);align-items:center;gap:0 22px}

.msg{padding:24px 32px 28px}

.msg .h{display:flex;align-items:center;gap:10px;font:500 17px/1 var(--mono);letter-spacing:.12em;color:var(--muted)}

.msg .h i{width:8px;height:8px;border-radius:50%;background:var(--ask)}

.msg .t{margin-top:14px;font:600 31px/1.45 var(--sans);letter-spacing:-.025em}

.chips{display:flex;flex-direction:column;gap:12px}

.chip{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px 22px;border-radius:18px}

.chip .k{font:600 16px/1 var(--mono);letter-spacing:.1em;color:var(--muted)}

.chip .v{font:700 27px/1.25 var(--sans);letter-spacing:-.025em}

.chip .pct{font-size:24px;color:var(--ink2)}

.route{display:flex;flex-direction:column;align-items:center;gap:14px;padding:26px 22px;text-align:center;border-color:color-mix(in srgb,var(--c) 55%,transparent);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 0 80px -30px var(--c)}

.route .itile{width:62px;height:62px;font-size:30px}

.route .d{font:750 30px/1.2 var(--sans);letter-spacing:-.03em}

.route .u{padding:7px 18px;border-radius:99px;font:800 24px/1.1 var(--sans);background:var(--c);color:#090b10}

.route .s{font:500 15px/1 var(--mono);color:var(--muted);letter-spacing:.06em}



/* 8 ยท ํ™•์‹  */

.unsure{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:36px;margin-top:40px;flex:1;min-height:0}

.ucol{display:flex;flex-direction:column;gap:18px}

.s-unsure .msg .t{font-size:29px}

.cands{padding:6px 30px}

.cands .op:first-child{border-top:0}

.calib{display:flex;align-items:center;gap:28px;padding:20px 30px}

.calib .n{font:800 54px/1 var(--sans);letter-spacing:-.05em;font-variant-numeric:tabular-nums}

.calib .l{margin-top:8px;font:500 18px/1.3 var(--sans);color:var(--muted)}

.calib .eq{font:300 46px/1 var(--sans);color:var(--faint)}

.calib .say{margin-left:auto;font:600 22px/1.45 var(--sans);color:var(--ink2);text-align:right}

.gauge{display:flex;flex-direction:column;align-items:center;padding:28px 34px 28px}

.gauge .lab2{align-self:flex-start;font:600 22px/1 var(--sans);color:var(--muted)}

.gwrap{position:relative;width:440px;height:250px;margin-top:14px}

.gwrap svg{position:absolute;inset:0;overflow:visible}

.gwrap .gnum{position:absolute;left:0;right:0;bottom:-6px;text-align:center;font:820 96px/1 var(--sans);letter-spacing:-.06em;color:var(--ask);font-variant-numeric:tabular-nums;text-shadow:0 0 50px rgba(255,180,77,.35)}

.gth{font:600 17px var(--mono);fill:var(--ink2)}

.hold{margin-top:30px;align-self:stretch;display:flex;align-items:center;justify-content:center;gap:16px;padding:18px 22px;border-radius:18px;background:color-mix(in srgb,var(--ask) 12%,transparent);border:1px solid color-mix(in srgb,var(--ask) 55%,transparent);font:750 29px/1.2 var(--sans);letter-spacing:-.025em;color:var(--ask)}

.hold .ic{font-size:30px}

.truth{margin-top:18px;font:500 22px/1.5 var(--sans);color:var(--muted);text-align:center}

.truth b{color:var(--ink);font-weight:650}



/* 9 ยท ์ˆœ์œ„ */

.board{margin-top:24px;display:flex;flex-direction:column;gap:1px}

.lr{display:grid;grid-template-columns:46px 500px 92px minmax(0,1fr) 150px;gap:20px;align-items:center;padding:3px 20px;border-radius:14px;border:1px solid transparent}

.lr .rk{font:600 18px/1 var(--mono);color:var(--faint)}

.lr .nm{font:600 27px/1.2 var(--sans);letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink2)}

.lr .sz{justify-self:end;padding:5px 10px;border-radius:8px;font:600 16px/1 var(--mono);color:var(--muted);background:rgba(255,255,255,.05)}

.lr.small .sz{color:var(--ink);background:rgba(255,255,255,.1)}

.lr .bar{height:20px;border-radius:6px}

.lr .bar i{border-radius:6px;background:linear-gradient(90deg,#2a3243,#4a5468);box-shadow:none}

.lr .pct{font-size:27px;text-align:right;color:var(--ink2)}

.lr.me{background:linear-gradient(90deg,rgba(185,166,255,.13),rgba(95,240,210,.07));border-color:rgba(185,166,255,.38);box-shadow:0 0 70px -20px rgba(114,184,255,.45)}

.lr.me .nm{font-weight:750;color:var(--ink)}

.lr.me .rk,.lr.me .pct{color:var(--ink)}

.lr.me .bar i{background:var(--grad);box-shadow:0 0 22px rgba(114,184,255,.6)}

.fine{margin-top:16px;font:400 17px/1.5 var(--sans);color:var(--faint);max-width:1640px}



/* 10 ยท ์†๋„ */

.speed{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:36px;margin-top:40px;flex:1;min-height:0}

.ticker{overflow:hidden;padding:6px 0}

.ticker::after{content:"";position:absolute;left:0;right:0;bottom:0;height:140px;border-radius:0 0 28px 28px;background:linear-gradient(transparent,rgba(8,10,16,.92));pointer-events:none}

.tk{display:grid;grid-template-columns:44px minmax(0,1fr) 140px 36px;gap:16px;align-items:center;padding:14px 26px;border-bottom:1px solid var(--stroke);animation:tkIn .45s var(--ease)}

@keyframes tkIn{from{opacity:0;transform:translateY(-18px);filter:blur(6px)}}

.tk .tr{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:22px;color:var(--c);background:color-mix(in srgb,var(--c) 15%,transparent)}

.tk .ti{font:600 24px/1.3 var(--sans);letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.tk .tg{justify-self:start;font:700 21px/1 var(--sans);color:var(--c)}

.tk .ck{font-size:24px;display:grid;place-items:center}

.up{--c:#ff7a6b}.dn{--c:#6aa6ff}.nn{--c:#8b94a7}

.spr{display:flex;flex-direction:column;gap:24px}

.spbox{padding:32px 36px}

.spbox .big{display:flex;align-items:baseline;gap:6px;font:820 150px/1 var(--sans);letter-spacing:-.06em;font-variant-numeric:tabular-nums;background:linear-gradient(180deg,#fff,#7ff3d9);-webkit-background-clip:text;background-clip:text;color:transparent}

.spbox .big small{font-size:60px;font-weight:600;letter-spacing:-.03em}

.spbox .l{margin-top:14px;font:500 22px/1.45 var(--sans);color:var(--muted)}

.cnt{display:flex;gap:30px;padding:26px 36px}

.cnt div b{display:block;font:800 64px/1 var(--sans);letter-spacing:-.05em;font-variant-numeric:tabular-nums}

.cnt div span{display:block;margin-top:10px;font:500 19px/1.35 var(--sans);color:var(--muted)}

.cnt .g b{color:var(--good)}



/* โ”€โ”€ ์กฐ์ž‘๋ฐ” (๋ฌด๋Œ€ ๋ฐ–) โ”€โ”€ */

#hud{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:14px;background:rgba(18,22,32,.9);border:1px solid #2a3344;color:#cfd6e3;font:13px/1 var(--sans);z-index:50;transition:opacity .4s;backdrop-filter:blur(6px)}

#hud button{border:0;background:#222b3b;color:#e8edf5;border-radius:8px;padding:8px 12px;font:600 13px/1 var(--sans);cursor:pointer}

#hud button:hover{background:#2e3a50}

#hud .dots{display:flex;gap:6px}

#hud .dots button{width:26px;padding:7px 0;font:600 11px/1 var(--mono);background:#1b2230;color:#7d889c}

#hud .dots button.cur{background:#72b8ff;color:#0b0e14}

#hud .help{color:#7d889c;font-size:12px;white-space:nowrap}

body.clean #hud,body.idle #hud{opacity:0;pointer-events:none}

#pausebadge{position:fixed;top:16px;left:50%;transform:translateX(-50%);padding:8px 16px;border-radius:10px;background:rgba(255,180,77,.94);color:#111;font:700 14px/1 var(--sans);z-index:50}

@media (max-width:900px){#hud .help{display:none}}

</style>
</head>
<body>
<svg width="0" height="0" style="position:absolute" aria-hidden="true"><defs>
  <linearGradient id="gB" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="48" y2="48"><stop offset="0" stop-color="#b9a6ff"/><stop offset=".55" stop-color="#72b8ff"/><stop offset="1" stop-color="#5ff0d2"/></linearGradient>
  <linearGradient id="gA" gradientUnits="userSpaceOnUse" x1="20" y1="0" x2="420" y2="0"><stop offset="0" stop-color="#ff8a4d"/><stop offset="1" stop-color="#ffd36b"/></linearGradient>
</defs></svg>
<div id="stage" aria-live="polite">
  <div id="aurora"><div class="b b1"></div><div class="b b2"></div><div class="b b3"></div></div>
  <div id="grid"></div>
  <header class="chrome"><div class="brand" id="brand"></div>
    <div class="chap"><span id="chapn">01</span><span>/ <span id="chapall">11</span></span><span id="chapt"></span><div class="segs" id="segs"></div></div></header>
  <div class="live"><i></i>์‹ค์ œ ๋ชจ๋ธ ์ถœ๋ ฅ ยท ์ €์žฅ๋œ ํŒ์ • ๊ฒฐ๊ณผ ์žฌ์ƒ</div>
  <div class="cap" id="cap"></div>
  <div id="vig"></div><div id="grain"></div><div id="fade"></div>
</div>
<div id="hud" role="toolbar" aria-label="์žฌ์ƒ ์กฐ์ž‘">
  <button id="prev" title="์ด์ „ ์žฅ๋ฉด (โ†)">โ—€</button>
  <button id="play" title="์ผ์‹œ์ •์ง€ยท์žฌ์ƒ (Space)">โšโš</button>
  <button id="next" title="๋‹ค์Œ ์žฅ๋ฉด (โ†’)">โ–ถ</button>
  <div class="dots" id="dots"></div>
  <span class="help">Space ์ •์ง€ ยท โ†โ†’ ์žฅ๋ฉด ยท R ์ฒ˜์Œ ยท C ์ž๋ง‰ ยท H ์ˆจ๊น€ ยท F ์ „์ฒดํ™”๋ฉด</span>
</div>
<div id="pausebadge" hidden>์ผ์‹œ์ •์ง€</div>

<script>window.SHOW_TRY = "huggingface.co/coderecode95/KJH-Judge-4B-ko";</script>
<script>/* data.js */

window.JEV_DATA = {"pooled":{"n":25418,"acc":0.9037,"chance":0.2986,"mean_conf":0.8802,"ece":0.0265,"order_agree":0.9793},"base_pooled":{"n":25418,"acc":0.2956,"chance":0.2986,"mean_conf":0.9052,"ece":0.6096,"order_agree":0.0},"pred_letters":{"A":7553,"B":7618,"C":3284,"D":2113,"E":1645,"F":1529,"G":1544,"H":41,"I":34,"J":32,"K":25},"base_pred_letters":{"A":25349,"E":29,"I":40},"train":{"train_loss":0.2376677804889313,"eval_loss":0.1863497942686081,"steps":4430,"gpu_hours":3.483,"tokens":35464805.0}};

</script>
<script>/* live-example.js */

window.JEV_LIVE_EXAMPLE = {"meta":{"device":"cuda","temperature":1.7179,"made":"2026-11-09 11:31"},"state":{"enabled":["get_weather","call_taxi","create_event","send_money","track_parcel"],"log":[{"t":"user","text":"ํƒ์‹œ ์ข€ ๋ถˆ๋Ÿฌ์ค˜"},{"t":"decision","d":{"step":1,"kind":"ASK","tool":null,"text":"ASK: ๋ถ€์กฑํ•œ ํ•„์ˆ˜ ์ •๋ณด ์งˆ๋ฌธ","conf":0.9949,"ms":135,"choices":["CALL:get_weather","CALL:call_taxi","CALL:create_event","CALL:send_money","CALL:track_parcel","ASK: ๋ถ€์กฑํ•œ ํ•„์ˆ˜ ์ •๋ณด ์งˆ๋ฌธ","RESPOND: ์ง์ ‘ ์„ค๋ช…ยท์™„๋ฃŒยท๋ฏธ์ง€์› ์•ˆ๋‚ด"],"probs":[0.001,0.0022,0.0004,0.0001,0.0004,0.9949,0.001]}},{"t":"user","text":"๊ฐ•๋‚จ์—ญ์—์„œ ํŒ๊ต์—ญ๊นŒ์ง€ ๊ฐ€ ์ค˜"},{"t":"decision","d":{"step":1,"kind":"CALL","tool":"call_taxi","text":"CALL:call_taxi","conf":0.9962,"ms":140,"choices":["CALL:get_weather","CALL:call_taxi","CALL:create_event","CALL:send_money","CALL:track_parcel","ASK: ๋ถ€์กฑํ•œ ํ•„์ˆ˜ ์ •๋ณด ์งˆ๋ฌธ","RESPOND: ์ง์ ‘ ์„ค๋ช…ยท์™„๋ฃŒยท๋ฏธ์ง€์› ์•ˆ๋‚ด"],"probs":[0.0004,0.9962,0.0005,0.0001,0.0002,0.0019,0.0007]}},{"t":"decision","d":{"step":2,"kind":"RESPOND","tool":null,"text":"RESPOND: ์ง์ ‘ ์„ค๋ช…ยท์™„๋ฃŒยท๋ฏธ์ง€์› ์•ˆ๋‚ด","conf":0.9603,"ms":148,"choices":["CALL:get_weather","CALL:call_taxi","CALL:create_event","CALL:send_money","CALL:track_parcel","ASK: ๋ถ€์กฑํ•œ ํ•„์ˆ˜ ์ •๋ณด ์งˆ๋ฌธ","RESPOND: ์ง์ ‘ ์„ค๋ช…ยท์™„๋ฃŒยท๋ฏธ์ง€์› ์•ˆ๋‚ด"],"probs":[0.0028,0.0314,0.0014,0.0004,0.001,0.0026,0.9603]}},{"t":"user","text":"๋‚ด์ผ ๋ถ€์‚ฐ ๋‚ ์”จ ์–ด๋•Œ?"},{"t":"decision","d":{"step":1,"kind":"CALL","tool":"get_weather","text":"CALL:get_weather","conf":0.9824,"ms":156,"choices":["CALL:get_weather","CALL:call_taxi","CALL:create_event","CALL:send_money","CALL:track_parcel","ASK: ๋ถ€์กฑํ•œ ํ•„์ˆ˜ ์ •๋ณด ์งˆ๋ฌธ","RESPOND: ์ง์ ‘ ์„ค๋ช…ยท์™„๋ฃŒยท๋ฏธ์ง€์› ์•ˆ๋‚ด"],"probs":[0.9824,0.001,0.0007,0.0002,0.0002,0.0144,0.0011]}},{"t":"decision","d":{"step":2,"kind":"RESPOND","tool":null,"text":"RESPOND: ์ง์ ‘ ์„ค๋ช…ยท์™„๋ฃŒยท๋ฏธ์ง€์› ์•ˆ๋‚ด","conf":0.9688,"ms":163,"choices":["CALL:get_weather","CALL:call_taxi","CALL:create_event","CALL:send_money","CALL:track_parcel","ASK: ๋ถ€์กฑํ•œ ํ•„์ˆ˜ ์ •๋ณด ์งˆ๋ฌธ","RESPOND: ์ง์ ‘ ์„ค๋ช…ยท์™„๋ฃŒยท๋ฏธ์ง€์› ์•ˆ๋‚ด"],"probs":[0.0153,0.0027,0.0015,0.0008,0.0017,0.0092,0.9688]}},{"t":"user","text":"์‚ผ์„ฑ์ „์ž ์ฃผ์‹ 10์ฃผ ์‚ฌ ์ค˜"},{"t":"decision","d":{"step":1,"kind":"RESPOND","tool":null,"text":"RESPOND: ์ง์ ‘ ์„ค๋ช…ยท์™„๋ฃŒยท๋ฏธ์ง€์› ์•ˆ๋‚ด","conf":0.9865,"ms":168,"choices":["CALL:get_weather","CALL:call_taxi","CALL:create_event","CALL:send_money","CALL:track_parcel","ASK: ๋ถ€์กฑํ•œ ํ•„์ˆ˜ ์ •๋ณด ์งˆ๋ฌธ","RESPOND: ์ง์ ‘ ์„ค๋ช…ยท์™„๋ฃŒยท๋ฏธ์ง€์› ์•ˆ๋‚ด"],"probs":[0.0022,0.0011,0.0013,0.0011,0.0018,0.0061,0.9865]}}]}};

</script>
<script>/* quiz-data.js */

window.JEV_QUIZ = {"meta":{"made":"2026-11-09 13:27","device":"cuda","mode":"singleร—8","seconds":18},"pool":[{"id":"kobest_wic:512","area":"kobest_wic","instruction":"๋‘ ๋ฌธ๋งฅ์—์„œ ํ‘œ์‹œ๋œ ๋‹จ์–ด์˜ ์˜๋ฏธ๊ฐ€ ๊ฐ™์€์ง€ ํŒ๋‹จํ•œ๋‹ค.","item":{"word":"์ด์ƒ","context_1":"ํ‚ค 158cm [์ด์ƒ]๋งŒ ๋†€์ด๊ธฐ๊ตฌ๋ฅผ ํƒˆ ์ˆ˜ ์žˆ๋‹ค.","context_2":"์ด๊ฒƒ์ด ๋ฐ”๋กœ ๋‚˜์˜ [์ด์ƒ]์„ ํ–ฅํ•œ ์—ด์ •์ด๋‹ค."},"choices":["์„œ๋กœ ๋‹ค๋ฅธ ์˜๋ฏธ","๊ฐ™์€ ์˜๋ฏธ"],"gold":0,"jev":{"pick":0,"conf":0.9875,"probs":[0.9875,0.0125],"ms":103}},{"id":"kobest_copa:226","area":"kobest_copa","instruction":"์š”๊ตฌ๋œ ์›์ธ ๋˜๋Š” ๊ฒฐ๊ณผ ์ค‘ ๋” ์ž์—ฐ์Šค๋Ÿฝ๊ณ  ํƒ€๋‹นํ•œ ๊ฒƒ์„ ๊ณ ๋ฅธ๋‹ค.","item":{"premise":"๋น„ํ–‰๊ธฐ๊ฐ€ ๋‚œ๊ธฐ๋ฅ˜๋ฅผ ๋งŒ๋‚ฌ๋‹ค.","relation_to_select":"๊ฒฐ๊ณผ"},"choices":["๋น„ํ–‰๊ธฐ๊ฐ€ ํ”๋“ค๋ ธ๋‹ค.","๋น„ํ–‰๊ธฐ๊ฐ€ ์ˆœํ•ญํ–ˆ๋‹ค."],"gold":0,"jev":{"pick":0,"conf":0.9725,"probs":[0.9725,0.0275],"ms":104}},{"id":"klue_ynat:1810","area":"klue_ynat","instruction":"ํ•œ๊ตญ์–ด ๋‰ด์Šค ์ œ๋ชฉ์˜ ์ค‘์‹ฌ ์ฃผ์ œ๋ฅผ ๊ณ ๋ฅธ๋‹ค. ์—ฌ๋Ÿฌ ๋ถ„์•ผ๊ฐ€ ์–ธ๊ธ‰๋˜์–ด๋„ ๊ธฐ์‚ฌ์˜ ์ฃผ๋œ ์‚ฌ๊ฑด์„ ์šฐ์„ ํ•œ๋‹ค.","item":{"headline":"K๋ฆฌ๊ทธ ๋ ˆ๋“œ์นด๋“œ ์†์ถœโ€ฆVAR์€ ๋ชป์†์—ฌ"},"choices":["๊ฒฝ์ œ","IT๊ณผํ•™","์Šคํฌ์ธ ","์ƒํ™œ๋ฌธํ™”","์„ธ๊ณ„","์‚ฌํšŒ","์ •์น˜"],"gold":2,"jev":{"pick":2,"conf":0.9714,"probs":[0.002,0.0023,0.9714,0.0014,0.0023,0.0191,0.0015],"ms":107}}]};

</script>
<script>/* examples.js */

window.JEV_EXAMPLES = {"meta":{"device":"cuda","made":"2026-11-09 12:23"},"inbox":[{"text":"์ œ ๊ณ„์ •์— ์ œ๊ฐ€ ํ•˜์ง€ ์•Š์€ ์ฃผ๋ฌธ์ด 3๊ฑด ์žˆ์–ด์š”!! ํ•ดํ‚น๋‹นํ•œ ๊ฒƒ ๊ฐ™์•„์š” ๋นจ๋ฆฌ ํ™•์ธํ•ด์ฃผ์„ธ์š”","axes":{"case":{"pick":0,"conf":0.8839,"ms":89,"probs":[0.8839,0.013,0.005,0.005,0.036,0.0044,0.0054,0.0021,0.025,0.0028,0.013,0.002,0.0012,0.0006,0.0006]},"mood":{"pick":0,"conf":0.9617,"ms":78,"probs":[0.9617,0.0338,0.0044]},"info":{"pick":1,"conf":0.7203,"ms":91,"probs":[0.2797,0.7203]}},"wall":2143},{"text":"์ฃผ๋ฌธ๋ฒˆํ˜ธ 20261102-5531 ์•„์ง๋„ ๋ฐฐ์†ก ์ค€๋น„์ค‘์ด๋„ค์š”. ๋‹ค์Œ ์ฃผ ์ด์‚ฌ๋ผ ๊ทธ ์ „์— ๊ผญ ๋ฐ›์•„์•ผ ํ•ด์š”.","axes":{"case":{"pick":5,"conf":0.8972,"ms":91,"probs":[0.0051,0.0023,0.0029,0.0031,0.0018,0.8972,0.0236,0.0041,0.0009,0.0038,0.0422,0.0025,0.0068,0.0011,0.0025]},"mood":{"pick":0,"conf":0.8983,"ms":103,"probs":[0.8983,0.0875,0.0142]},"info":{"pick":0,"conf":0.9807,"ms":105,"probs":[0.9807,0.0193]}},"wall":319},{"text":"๋ฐฐ์†ก ์ฐธ ๋น ๋ฅด๋„ค์š”. ์ฃผ๋ฌธํ•˜๊ณ  2์ฃผ ๋งŒ์— ์™”์–ด์š”.","axes":{"case":{"pick":13,"conf":0.9321,"ms":85,"probs":[0.004,0.0022,0.0017,0.0014,0.0011,0.0147,0.0046,0.0037,0.0006,0.0007,0.0032,0.0013,0.0127,0.9321,0.0158]},"mood":{"pick":2,"conf":0.9636,"ms":90,"probs":[0.0092,0.0273,0.9636]},"info":{"pick":0,"conf":0.9274,"ms":93,"probs":[0.9274,0.0726]}},"wall":286},{"text":"์นด๋“œ์—์„œ 39,800์›์ด ๋‘ ๋ฒˆ ๊ฒฐ์ œ๋์–ด์š”. 11์›” 7์ผ ์˜คํ›„ 9์‹œ์ฏค์ด์—์š”.","axes":{"case":{"pick":1,"conf":0.8685,"ms":117,"probs":[0.0212,0.8685,0.0066,0.0024,0.0032,0.0034,0.044,0.003,0.0018,0.0184,0.005,0.0197,0.0013,0.0009,0.0006]},"mood":{"pick":1,"conf":0.6906,"ms":73,"probs":[0.2884,0.6906,0.021]},"info":{"pick":0,"conf":0.59,"ms":91,"probs":[0.59,0.41]}},"wall":812},{"text":"ํ™˜๋ถˆํ•ด ์ฃผ์„ธ์š”.","axes":{"case":{"pick":6,"conf":0.9599,"ms":88,"probs":[0.0059,0.0063,0.002,0.0025,0.001,0.0023,0.9599,0.0113,0.0007,0.0008,0.0028,0.0025,0.001,0.0005,0.0005]},"mood":{"pick":0,"conf":0.9095,"ms":77,"probs":[0.9095,0.0713,0.0192]},"info":{"pick":1,"conf":0.7994,"ms":75,"probs":[0.2006,0.7994]}},"wall":8234},{"text":"์ƒ๋‹ด์‚ฌ ๊น€์ง€์€๋‹˜ ๋•๋ถ„์— ๋ฌธ์ œ ์ž˜ ํ•ด๊ฒฐํ–ˆ์–ด์š”. ์ •๋ง ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!","axes":{"case":{"pick":13,"conf":0.9845,"ms":83,"probs":[0.0018,0.0008,0.0011,0.0004,0.0005,0.0008,0.0014,0.0008,0.0002,0.0004,0.0027,0.0007,0.0018,0.9845,0.0019]},"mood":{"pick":2,"conf":0.9913,"ms":72,"probs":[0.0034,0.0053,0.9913]},"info":{"pick":0,"conf":0.9683,"ms":94,"probs":[0.9683,0.0317]}},"wall":608},{"text":"์ด ์—์–ดํ”„๋ผ์ด์–ด ๋ฐ”์Šค์ผ“ ์‹๊ธฐ์„ธ์ฒ™๊ธฐ์— ๋„ฃ์–ด๋„ ๋˜๋‚˜์š”?","axes":{"case":{"pick":12,"conf":0.9481,"ms":85,"probs":[0.0035,0.0017,0.0017,0.0009,0.001,0.002,0.0173,0.0084,0.0012,0.0021,0.0043,0.0017,0.9481,0.0028,0.0033]},"mood":{"pick":1,"conf":0.9245,"ms":68,"probs":[0.035,0.9245,0.0405]},"info":{"pick":0,"conf":0.9635,"ms":97,"probs":[0.9635,0.0365]}},"wall":611},{"text":"์•ฑ ์—…๋ฐ์ดํŠธ ํ›„๋กœ ์žฅ๋ฐ”๊ตฌ๋‹ˆ๊ฐ€ ๊ณ„์† ๋น„์–ด ์žˆ์–ด์š”. ๋ช‡ ๋ฒˆ์„ ๋‹ด์•„๋„ ์‚ฌ๋ผ์ ธ์š”.","axes":{"case":{"pick":9,"conf":0.9538,"ms":84,"probs":[0.0035,0.0018,0.0073,0.0015,0.0013,0.002,0.0035,0.0014,0.0028,0.9538,0.0113,0.0015,0.002,0.0006,0.0059]},"mood":{"pick":0,"conf":0.9773,"ms":70,"probs":[0.9773,0.0207,0.002]},"info":{"pick":0,"conf":0.9169,"ms":94,"probs":[0.9169,0.0831]}},"wall":700},{"text":"์–ด์ œ ๋ฐ›์€ ๋‹ˆํŠธ์— ๊ตฌ๋ฉ์ด ๋‚˜ ์žˆ์–ด์š”. ๊ตํ™˜ ๋ง๊ณ  ํ™˜๋ถˆ๋กœ ํ•ด์ฃผ์„ธ์š”. ์ฃผ๋ฌธ๋ฒˆํ˜ธ 20261105-2210","axes":{"case":{"pick":6,"conf":0.664,"ms":90,"probs":[0.0021,0.0013,0.001,0.0006,0.0008,0.0023,0.664,0.3208,0.0006,0.0008,0.003,0.0007,0.0012,0.0004,0.0005]},"mood":{"pick":0,"conf":0.9697,"ms":88,"probs":[0.9697,0.0274,0.0029]},"info":{"pick":0,"conf":0.9744,"ms":91,"probs":[0.9744,0.0256]}},"wall":1657},{"text":"๋น„๋ฐ€๋ฒˆํ˜ธ ์žฌ์„ค์ • ๋ฉ”์ผ์ด ์•ˆ ์™€์š”. ์ŠคํŒธํ•จ๋„ ํ™•์ธํ–ˆ์–ด์š”.","axes":{"case":{"pick":8,"conf":0.8605,"ms":83,"probs":[0.0088,0.0022,0.0262,0.0012,0.0026,0.0019,0.0027,0.0018,0.8605,0.0405,0.0469,0.0015,0.0014,0.0008,0.001]},"mood":{"pick":0,"conf":0.9527,"ms":71,"probs":[0.9527,0.0448,0.0024]},"info":{"pick":0,"conf":0.7203,"ms":99,"probs":[0.7203,0.2797]}},"wall":610},{"text":"๋ฐ˜ํ’ˆ ์ ‘์ˆ˜ํ–ˆ๋Š”๋ฐ ํƒ๋ฐฐ ๊ธฐ์‚ฌ๋‹˜์ด ์ˆ˜๊ฑฐ๋ฅผ ์•ˆ ์˜ค์…จ์–ด์š”. 3์ผ์งธ ๋ฌธ ์•ž์— ๋‘๊ณ  ์žˆ์–ด์š”.","axes":{"case":{"pick":6,"conf":0.6592,"ms":85,"probs":[0.0063,0.0035,0.0024,0.0018,0.0016,0.0359,0.6592,0.0232,0.0012,0.0023,0.256,0.0021,0.0026,0.0008,0.0011]},"mood":{"pick":0,"conf":0.9445,"ms":96,"probs":[0.9445,0.0514,0.004]},"info":{"pick":1,"conf":0.5182,"ms":105,"probs":[0.4818,0.5182]}},"wall":307},{"text":"์˜ค๋Š˜ ๊ฒฐ์ œ๊ฐ€ ์•ˆ ๋˜๊ณ  '์ผ์‹œ์  ์˜ค๋ฅ˜'๋งŒ ๋– ์š”. ๋‹ค๋ฅธ ์นด๋“œ๋„ ๋งˆ์ฐฌ๊ฐ€์ง€์˜ˆ์š”.","axes":{"case":{"pick":11,"conf":0.4996,"ms":92,"probs":[0.0073,0.0055,0.0203,0.0031,0.0023,0.0047,0.0059,0.0019,0.0055,0.4016,0.0364,0.4996,0.0025,0.0011,0.0023]},"mood":{"pick":0,"conf":0.7949,"ms":70,"probs":[0.7949,0.1995,0.0056]},"info":{"pick":0,"conf":0.877,"ms":92,"probs":[0.877,0.123]}},"wall":1131}],"news":[{"pick":0,"conf":0.9867,"ms":84,"probs":[0.9867,0.0081,0.0052]},{"pick":1,"conf":0.9616,"ms":80,"probs":[0.0091,0.9616,0.0293]},{"pick":2,"conf":0.8396,"ms":76,"probs":[0.0658,0.0946,0.8396]},{"pick":1,"conf":0.4258,"ms":79,"probs":[0.3183,0.4258,0.2559]},{"pick":0,"conf":0.3664,"ms":76,"probs":[0.3664,0.3168,0.3168]},{"pick":1,"conf":0.9515,"ms":79,"probs":[0.0174,0.9515,0.0311]},{"pick":1,"conf":0.9418,"ms":77,"probs":[0.0199,0.9418,0.0383]},{"pick":2,"conf":0.9502,"ms":77,"probs":[0.0311,0.0187,0.9502]},{"pick":0,"conf":0.9804,"ms":79,"probs":[0.9804,0.008,0.0116]},{"pick":1,"conf":0.8716,"ms":76,"probs":[0.0148,0.8716,0.1136]},{"pick":1,"conf":0.9736,"ms":76,"probs":[0.0086,0.9736,0.0178]},{"pick":0,"conf":0.9776,"ms":75,"probs":[0.9776,0.0124,0.01]},{"pick":2,"conf":0.8414,"ms":75,"probs":[0.1365,0.0221,0.8414]},{"pick":1,"conf":0.8097,"ms":77,"probs":[0.0682,0.8097,0.1221]},{"pick":0,"conf":0.6767,"ms":83,"probs":[0.6767,0.1964,0.1269]},{"pick":0,"conf":0.9565,"ms":81,"probs":[0.9565,0.0217,0.0217]},{"pick":1,"conf":0.9347,"ms":83,"probs":[0.0213,0.9347,0.044]},{"pick":2,"conf":0.7985,"ms":77,"probs":[0.1611,0.0404,0.7985]},{"pick":0,"conf":0.9098,"ms":78,"probs":[0.9098,0.0663,0.0239]},{"pick":1,"conf":0.8737,"ms":80,"probs":[0.0411,0.8737,0.0851]},{"pick":0,"conf":0.9791,"ms":83,"probs":[0.9791,0.0075,0.0134]},{"pick":1,"conf":0.9256,"ms":81,"probs":[0.0118,0.9256,0.0627]},{"pick":1,"conf":0.9623,"ms":75,"probs":[0.0141,0.9623,0.0235]},{"pick":2,"conf":0.5631,"ms":76,"probs":[0.4209,0.0159,0.5631]},{"pick":0,"conf":0.9558,"ms":74,"probs":[0.9558,0.0151,0.0291]},{"pick":1,"conf":0.9525,"ms":75,"probs":[0.014,0.9525,0.0335]},{"pick":0,"conf":0.959,"ms":75,"probs":[0.959,0.0235,0.0175]},{"pick":2,"conf":0.8156,"ms":71,"probs":[0.0855,0.0989,0.8156]},{"pick":1,"conf":0.7738,"ms":73,"probs":[0.0701,0.7738,0.1561]},{"pick":1,"conf":0.8369,"ms":79,"probs":[0.0816,0.8369,0.0816]},{"pick":0,"conf":0.9865,"ms":78,"probs":[0.9865,0.007,0.0065]},{"pick":1,"conf":0.9551,"ms":79,"probs":[0.0113,0.9551,0.0336]},{"pick":0,"conf":0.5673,"ms":83,"probs":[0.5673,0.0384,0.3943]},{"pick":1,"conf":0.9218,"ms":78,"probs":[0.0242,0.9218,0.054]},{"pick":0,"conf":0.9849,"ms":81,"probs":[0.9849,0.0081,0.007]},{"pick":1,"conf":0.8862,"ms":76,"probs":[0.0335,0.8862,0.0803]},{"pick":0,"conf":0.9561,"ms":80,"probs":[0.9561,0.0188,0.0251]},{"pick":2,"conf":0.898,"ms":76,"probs":[0.0654,0.0365,0.898]},{"pick":1,"conf":0.9377,"ms":83,"probs":[0.0148,0.9377,0.0475]},{"pick":0,"conf":0.9289,"ms":78,"probs":[0.9289,0.0304,0.0407]}],"drive":[{"text":"๋Šฆ๊ฒ ๋‹ค ์ข€ ๋ฐŸ์•„๋ด","pick":0,"conf":0.8011,"ms":89,"probs":[0.8011,0.0583,0.0043,0.0057,0.0157,0.0034,0.0082,0.0406,0.0628]},{"text":"์ € ํŠธ๋Ÿญ ๋’ค์— ๊ณ„์† ์žˆ๊ธฐ ์‹ซ์–ด","pick":4,"conf":0.4401,"ms":89,"probs":[0.024,0.0461,0.0065,0.4092,0.4401,0.0048,0.0155,0.0167,0.0371]},{"text":"์•ž์ฐจ ๊ทธ๋ƒฅ ๋“ค์ด๋ฐ›์•„๋ฒ„๋ ค","pick":8,"conf":0.4951,"ms":94,"probs":[0.1242,0.1788,0.0335,0.0251,0.0417,0.0068,0.0201,0.0747,0.4951]},{"text":"๋ฉ€๋ฏธ ๋‚˜โ€ฆ ์ฒœ์ฒœํžˆ ๊ฐ€์ž","pick":1,"conf":0.8667,"ms":92,"probs":[0.0118,0.8667,0.0077,0.0071,0.0264,0.0032,0.0071,0.0472,0.0228]}]};

</script>
<script>/* scenarios.js */

/* ์‹œ๋‚˜๋ฆฌ์˜ค ์ •์˜ โ€” ํ™”๋ฉด(inbox.html ยท contract.html)๊ณผ Node(make_examples.js)๊ฐ€ ๊ฐ™์€ ์ •์˜๋ฅผ ์“ด๋‹ค.

 * decide(req): {instruction, item, choices:[๋ฌธ๊ตฌโ€ฆ]} โ†’ ์„œ๋ฒ„ /api/decide ์‘๋‹ต ({choice, probs{A:โ€ฆ}, confidence, ms})

 */

(function (root) {

  /* โ”€โ”€ ๋ฌธ์˜ ๋ถ„๋ฅ˜ํ•จ โ”€โ”€

   * ๋ชจ๋ธ์ด ํ•˜๋Š” ์ผ: ๋ฌธ์˜ ํ•œ ๊ฑด์„ ์„ธ ๊ฐ€์ง€๋กœ ๋™์‹œ์— ํŒ์ • (์‚ฌ์•ˆ 15๊ฐ€์ง€ ยท ๊ณ ๊ฐ ๊ฐ์ • ยท ์ฒ˜๋ฆฌ ์ •๋ณด).

   * ๊ทœ์น™์ด ํ•˜๋Š” ์ผ: ์‚ฌ์•ˆ โ†’ ๋‹ด๋‹น ๋ถ€์„œยท๊ธด๊ธ‰๋„ (CASES ํ‘œ), ํŒ์ • ์กฐํ•ฉ โ†’ ๋‹ค์Œ ์ฒ˜๋ฆฌ (route).

   * ๊ธด๊ธ‰๋„๋ฅผ ๋ชจ๋ธ์—๊ฒŒ ์ง์ ‘ ๋ฌป๋Š” ๊ฒƒ๋ณด๋‹ค ์‚ฌ์•ˆ์„ ๊ณ ๋ฅด๊ฒŒ ํ•˜๊ณ  ๊ทœ์น™์œผ๋กœ ๊ธด๊ธ‰๋„๋ฅผ ์ •ํ•˜๋Š” ์ชฝ์ด ์ •ํ™•ํ–ˆ๋‹ค

   * (์˜ˆ์‹œ 30๊ฑด: ์‚ฌ์•ˆ ๋ถ„๋ฅ˜ 24/30, ํ‹€๋ฆฐ 6๊ฑด ์ค‘ 5๊ฑด์ด ํ™•์‹  70% ๋ฏธ๋งŒ). */

  const CASES = [

    ["๊ณ„์ • ๋„์šฉยท๋ฌด๋‹จ ์ฃผ๋ฌธ ์˜์‹ฌ", "๊ณ„์ •ยท๋ณด์•ˆ", 0], ["์ด์ค‘ ๊ฒฐ์ œยท๋ˆ๋งŒ ๋น ์ ธ๋‚˜๊ฐ", "๊ฒฐ์ œยท์ฒญ๊ตฌ", 0], ["๊ฒฐ์ œ๋‚˜ ์ ‘์†์ด ์•„์˜ˆ ์•ˆ ๋˜๋Š” ์žฅ์• ", "๊ธฐ์ˆ  ์žฅ์• ", 0],

    ["์ถœ๊ณ  ์ „ ์ฃผ์†Œยท์ฃผ๋ฌธ ๋ณ€๊ฒฝ", "๋ฐฐ์†ก", 0], ["๊ฐœ์ธ์ •๋ณด ์œ ์ถœ ๋ฌธ์˜", "๊ณ„์ •ยท๋ณด์•ˆ", 0],

    ["๋ฐฐ์†ก ์ง€์—ฐยท๋ฐฐ์†ก ์œ„์น˜ ๋ฌธ์˜", "๋ฐฐ์†ก", 1], ["๋ฐ˜ํ’ˆยท๊ตํ™˜ยทํ™˜๋ถˆ ์š”์ฒญ", "ํ™˜๋ถˆยท๋ฐ˜ํ’ˆ", 1], ["๋ฐ›์€ ์ƒํ’ˆ ๋ถˆ๋Ÿ‰ยทํŒŒ์†ยท์˜ค๋ฐฐ์†ก", "ํ™˜๋ถˆยท๋ฐ˜ํ’ˆ", 1],

    ["๋กœ๊ทธ์ธยท๋น„๋ฐ€๋ฒˆํ˜ธยทํšŒ์› ์ •๋ณด", "๊ณ„์ •ยท๋ณด์•ˆ", 1], ["์•ฑยท์‚ฌ์ดํŠธ ์ผ๋ถ€ ๊ธฐ๋Šฅ ์˜ค๋ฅ˜", "๊ธฐ์ˆ  ์žฅ์• ", 1], ["์ƒ๋‹ด ์ง€์—ฐยท์‘๋Œ€ ๋ถˆ๋งŒ", "๊ณ ๊ฐ ๊ฒฝํ—˜", 1],

    ["์˜์ˆ˜์ฆยทํฌ์ธํŠธยท์ ๋ฆฝ๊ธˆยทํ• ๋ถ€ ๋“ฑ ๊ฒฐ์ œ ๋ฌธ์˜", "๊ฒฐ์ œยท์ฒญ๊ตฌ", 2], ["์ƒํ’ˆ ์‚ฌ์šฉ๋ฒ•ยท์žฌ๊ณ ยท๋ฐฐ์†ก ๊ฐ€๋Šฅ ์ง€์—ญ ๋“ฑ ์ด์šฉ ๋ฌธ์˜", "์ƒํ’ˆ ๋ฌธ์˜", 2],

    ["์นญ์ฐฌยท๊ฐ์‚ฌ", "๊ณ ๊ฐ ๊ฒฝํ—˜", 2], ["์„œ๋น„์Šค ๊ฐœ์„  ์ œ์•ˆ", "๊ณ ๊ฐ ๊ฒฝํ—˜", 2],

  ].map(([label, dept, urgency]) => ({ label, dept, urgency }));

  const URGENCY = ["๊ธด๊ธ‰", "๋ณดํ†ต", "๋‚ฎ์Œ"];

  const AXES = [

    { key: "case", label: "์‚ฌ์•ˆ", instruction: "๊ณ ๊ฐ ๋ฌธ์˜๊ฐ€ ์–ด๋–ค ์‚ฌ์•ˆ์ธ์ง€ ๊ณ ๋ฅธ๋‹ค. ์—ฌ๋Ÿฌ ๋‚ด์šฉ์ด ์„ž์—ฌ ์žˆ์œผ๋ฉด ๊ณ ๊ฐ์ด ์ง€๊ธˆ ๊ฐ€์žฅ ํ•ด๊ฒฐ๋ฐ›๊ณ  ์‹ถ์€ ์ผ์„ ๊ณ ๋ฅธ๋‹ค. ๋ฐ˜์–ด์™€ ๋ถˆ๋งŒ ํ‘œํ˜„์„ ๊ณ ๋ คํ•œ๋‹ค.",

      choices: CASES.map(c => c.label), short: CASES.map(c => c.label) },

    { key: "mood", label: "๊ณ ๊ฐ ๊ฐ์ •", instruction: "๊ณ ๊ฐ ๋ฌธ์˜์— ๋“œ๋Ÿฌ๋‚œ ๊ณ ๊ฐ์˜ ๊ฐ์ • ์ƒํƒœ๋ฅผ ๊ณ ๋ฅธ๋‹ค. ๋ฐ˜์–ด์™€ ๋ถ€์ • ํ‘œํ˜„์„ ๊ณ ๋ คํ•œ๋‹ค.",

      choices: ["ํ™”๋‚จยท๋ถˆ๋งŒ", "์ค‘๋ฆฝ", "๋งŒ์กฑยท๊ฐ์‚ฌ"], short: ["๋ถˆ๋งŒ", "์ค‘๋ฆฝ", "๋งŒ์กฑ"] },

    { key: "info", label: "์ฒ˜๋ฆฌ ์ •๋ณด", instruction: "๋ฌธ์˜๋ฅผ ์ฒ˜๋ฆฌํ•˜๋ ค๋ฉด ํŠน์ • ์ฃผ๋ฌธ์„ ์ฐพ์•„์•ผ ํ•˜๋Š”๋ฐ ์ฃผ๋ฌธ๋ฒˆํ˜ธยท์šด์†ก์žฅ ๋ฒˆํ˜ธยท๊ฒฐ์ œ ์ผ์‹œ ๊ฐ™์€ ์‹๋ณ„ ์ •๋ณด๊ฐ€ ๋น ์ ธ ์žˆ๋Š”์ง€ ํŒ๋‹จํ•œ๋‹ค. ์ผ๋ฐ˜์ ์ธ ์งˆ๋ฌธ์ด๋‚˜ ๊ณ„์ • ๋ฌธ์ œ์ฒ˜๋Ÿผ ์ฃผ๋ฌธ์„ ์ฐพ์„ ํ•„์š”๊ฐ€ ์—†์œผ๋ฉด ๋น ์ง„ ๊ฒƒ์ด ์—†๋‹ค.",

      choices: ["๋น ์ง„ ์ •๋ณด ์—†์Œ: ๋ฐ”๋กœ ์ฒ˜๋ฆฌ ๊ฐ€๋Šฅ", "์‹๋ณ„ ์ •๋ณด ๋ถ€์กฑ: ๊ณ ๊ฐ์—๊ฒŒ ๋˜๋ฌผ์–ด์•ผ ํ•จ"], short: ["์ •๋ณด ์ถฉ๋ถ„", "์ •๋ณด ๋ถ€์กฑ"] },

  ];

  /* ์˜ˆ์‹œ ๋ฌธ์˜ 30๊ฑด (์ง์ ‘ ๋งŒ๋“  ๊ฒƒ) ยท gold = ์‚ฌ๋žŒ์ด ๋ถ™์ธ ์‚ฌ์•ˆ ์ •๋‹ต (๋‘˜ ๋‹ค ๋งž๋‹ค๊ณ  ๋ณผ ์ˆ˜ ์žˆ์œผ๋ฉด ๋‘ ๊ฐœ) */

  const SAMPLES = [

    ["์ œ ๊ณ„์ •์— ์ œ๊ฐ€ ํ•˜์ง€ ์•Š์€ ์ฃผ๋ฌธ์ด 3๊ฑด ์žˆ์–ด์š”!! ํ•ดํ‚น๋‹นํ•œ ๊ฒƒ ๊ฐ™์•„์š” ๋นจ๋ฆฌ ํ™•์ธํ•ด์ฃผ์„ธ์š”", [0]],

    ["์ฃผ๋ฌธ๋ฒˆํ˜ธ 20261102-5531 ์•„์ง๋„ ๋ฐฐ์†ก ์ค€๋น„์ค‘์ด๋„ค์š”. ๋‹ค์Œ ์ฃผ ์ด์‚ฌ๋ผ ๊ทธ ์ „์— ๊ผญ ๋ฐ›์•„์•ผ ํ•ด์š”.", [5]],

    ["๋ฐฐ์†ก ์ฐธ ๋น ๋ฅด๋„ค์š”. ์ฃผ๋ฌธํ•˜๊ณ  2์ฃผ ๋งŒ์— ์™”์–ด์š”.", [5]],

    ["์นด๋“œ์—์„œ 39,800์›์ด ๋‘ ๋ฒˆ ๊ฒฐ์ œ๋์–ด์š”. 11์›” 7์ผ ์˜คํ›„ 9์‹œ์ฏค์ด์—์š”.", [1]],

    ["ํ™˜๋ถˆํ•ด ์ฃผ์„ธ์š”.", [6]],

    ["์ƒ๋‹ด์‚ฌ ๊น€์ง€์€๋‹˜ ๋•๋ถ„์— ๋ฌธ์ œ ์ž˜ ํ•ด๊ฒฐํ–ˆ์–ด์š”. ์ •๋ง ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!", [13]],

    ["์ด ์—์–ดํ”„๋ผ์ด์–ด ๋ฐ”์Šค์ผ“ ์‹๊ธฐ์„ธ์ฒ™๊ธฐ์— ๋„ฃ์–ด๋„ ๋˜๋‚˜์š”?", [12]],

    ["์•ฑ ์—…๋ฐ์ดํŠธ ํ›„๋กœ ์žฅ๋ฐ”๊ตฌ๋‹ˆ๊ฐ€ ๊ณ„์† ๋น„์–ด ์žˆ์–ด์š”. ๋ช‡ ๋ฒˆ์„ ๋‹ด์•„๋„ ์‚ฌ๋ผ์ ธ์š”.", [9]],

    ["์–ด์ œ ๋ฐ›์€ ๋‹ˆํŠธ์— ๊ตฌ๋ฉ์ด ๋‚˜ ์žˆ์–ด์š”. ๊ตํ™˜ ๋ง๊ณ  ํ™˜๋ถˆ๋กœ ํ•ด์ฃผ์„ธ์š”. ์ฃผ๋ฌธ๋ฒˆํ˜ธ 20261105-2210", [7, 6]],

    ["๋น„๋ฐ€๋ฒˆํ˜ธ ์žฌ์„ค์ • ๋ฉ”์ผ์ด ์•ˆ ์™€์š”. ์ŠคํŒธํ•จ๋„ ํ™•์ธํ–ˆ์–ด์š”.", [8]],

    ["๋ฐ˜ํ’ˆ ์ ‘์ˆ˜ํ–ˆ๋Š”๋ฐ ํƒ๋ฐฐ ๊ธฐ์‚ฌ๋‹˜์ด ์ˆ˜๊ฑฐ๋ฅผ ์•ˆ ์˜ค์…จ์–ด์š”. 3์ผ์งธ ๋ฌธ ์•ž์— ๋‘๊ณ  ์žˆ์–ด์š”.", [6]],

    ["์˜ค๋Š˜ ๊ฒฐ์ œ๊ฐ€ ์•ˆ ๋˜๊ณ  '์ผ์‹œ์  ์˜ค๋ฅ˜'๋งŒ ๋– ์š”. ๋‹ค๋ฅธ ์นด๋“œ๋„ ๋งˆ์ฐฌ๊ฐ€์ง€์˜ˆ์š”.", [2]],

    ["๋„๋Œ€์ฒด ๋ช‡ ๋ฒˆ์„ ๋ฌธ์˜ํ•ด์•ผ ๋‹ต์ด ์˜ค๋‚˜์š”? ์ผ์ฃผ์ผ์งธ ๋‹ต์ด ์—†๋„ค์š”. ์ •๋ง ์‹ค๋ง์ž…๋‹ˆ๋‹ค.", [10]],

    ["์‚ฌ์ด์ฆˆ 230 ์žฌ์ž…๊ณ  ์•Œ๋ฆผ ์‹ ์ฒญํ–ˆ๋Š”๋ฐ ์–ธ์ œ์ฏค ๋“ค์–ด์˜ค๋‚˜์š”?", [12]],

    ["์ฃผ์†Œ๋ฅผ ์ž˜๋ชป ์ž…๋ ฅํ–ˆ์–ด์š”. ์•„์ง ์ถœ๋ฐœ ์ „์ด๋ฉด ๋ฐ”๊ฟ”์ฃผ์„ธ์š”. ์ฃผ๋ฌธ๋ฒˆํ˜ธ 20261108-0912", [3]],

    ["ํ˜„๊ธˆ์˜์ˆ˜์ฆ ๋ฐœํ–‰ ๊ฐ€๋Šฅํ•œ๊ฐ€์š”? ์‚ฌ์—…์ž ๋ฒˆํ˜ธ๋กœ ๋ฐ›๊ณ  ์‹ถ์–ด์š”.", [11]],

    ["๊ฒฐ์ œ๋Š” ๋๋Š”๋ฐ ์ฃผ๋ฌธ ๋‚ด์—ญ์— ์•„๋ฌด๊ฒƒ๋„ ์—†์–ด์š”. ๋ˆ๋งŒ ๋น ์ ธ๋‚˜๊ฐ”์–ด์š”.", [1]],

    ["๊ฐœ์ธ์ •๋ณด๊ฐ€ ์œ ์ถœ๋๋‹ค๋Š” ๋ฌธ์ž๋ฅผ ๋ฐ›์•˜์–ด์š”. ์ง„์งœ์ธ๊ฐ€์š”? ์ œ ์ •๋ณด๋„ ํฌํ•จ๋๋Š”์ง€ ์•Œ๊ณ  ์‹ถ์–ด์š”.", [4]],

    ["๋ฐฐ์†ก ๊ธฐ์‚ฌ๋‹˜์ด ๋„ˆ๋ฌด ์นœ์ ˆํ•˜์…จ์–ด์š”. ๋น„ ์˜ค๋Š” ๋‚  ํ˜„๊ด€ ์•ˆ๊นŒ์ง€ ๋„ฃ์–ด ์ฃผ์…จ์–ด์š”.", [13]],

    ["๋ฐ›์€ ์ƒํ’ˆ์ด ์ฃผ๋ฌธํ•œ ์ƒ‰์ด๋ž‘ ๋‹ฌ๋ผ์š”. ๊ฒ€์ • ์‹œ์ผฐ๋Š”๋ฐ ๋‚จ์ƒ‰์ด ์™”์–ด์š”.", [7]],

    ["ํƒˆํ‡ดํ•˜๊ณ  ์‹ถ์€๋ฐ ๋ฉ”๋‰ด๋ฅผ ๋ชป ์ฐพ๊ฒ ์–ด์š”.", [8]],

    ["ํฌ์ธํŠธ๊ฐ€ ์†Œ๋ฉธ๋๋‹ค๊ณ  ๋‚˜์˜ค๋Š”๋ฐ ์œ ํšจ๊ธฐ๊ฐ„ ์•ˆ๋‚ด๋ฅผ ๋ฐ›์€ ์ ์ด ์—†์–ด์š”.", [11]],

    ["ํƒ๋ฐฐ ์ƒ์ž๊ฐ€ ๋‹ค ์ –์–ด์„œ ์™”์–ด์š”. ์•ˆ์— ๋“  ์ฑ…๋„ ์ –์—ˆ์–ด์š”.", [7]],

    ["๊ตํ™˜ ์‹ ์ฒญํ•œ ์ง€ ์—ดํ˜ ๋๋Š”๋ฐ ์•„๋ฌด ์—ฐ๋ฝ์ด ์—†๋„ค์š”. ๊ทธ๋ƒฅ ํ™˜๋ถˆํ•ด ์ฃผ์„ธ์š”.", [6, 10]],

    ["์•ฑ ๊ธ€์”จ๊ฐ€ ๋„ˆ๋ฌด ์ž‘์•„์„œ ๋ถ€๋ชจ๋‹˜์ด ์“ฐ๊ธฐ ํž˜๋“ค์–ดํ•˜์„ธ์š”. ํฌ๊ฒŒ ๋ณผ ์ˆ˜ ์žˆ๋Š” ๊ธฐ๋Šฅ์ด ์žˆ์œผ๋ฉด ์ข‹๊ฒ ์–ด์š”.", [14]],

    ["ํ• ๋ถ€๋กœ ๊ฒฐ์ œํ–ˆ๋Š”๋ฐ ์ผ์‹œ๋ถˆ๋กœ ๋ฐ”๊ฟ€ ์ˆ˜ ์žˆ๋‚˜์š”?", [11]],

    ["ํ•ด์™ธ ๋ฐฐ์†ก๋„ ๋˜๋‚˜์š”? ์ผ๋ณธ์— ์‚ฌ๋Š” ๋™์ƒํ•œํ…Œ ๋ณด๋‚ด๊ณ  ์‹ถ์–ด์š”.", [12]],

    ["์ฃผ๋ฌธ ์ทจ์†Œ ๋ฒ„ํŠผ์ด ์•ˆ ๋ˆŒ๋ ค์š”. ์•„์ง ๊ฒฐ์ œ ๋Œ€๊ธฐ ์ƒํƒœ์˜ˆ์š”.", [9, 3]],

    ["๋ฆฌ๋ทฐ ์“ฐ๋ฉด ์ ๋ฆฝ๊ธˆ ์ค€๋‹ค๊ณ  ํ–ˆ๋Š”๋ฐ ์•„์ง ์•ˆ ๋“ค์–ด์™”์–ด์š”.", [11]],

    ["๋กœ๊ทธ์ธํ•  ๋•Œ๋งˆ๋‹ค ์ธ์ฆ๋ฒˆํ˜ธ๋ฅผ ๋ฐ›์•„์•ผ ํ•˜๋‚˜์š”? ๋„ˆ๋ฌด ๋ฒˆ๊ฑฐ๋กœ์›Œ์š”.", [8, 14]],

  ].map(([text, gold]) => ({ text, gold }));

  async function classify(text, decide) {

    const t0 = Date.now();

    const res = await Promise.all(AXES.map(async ax => {

      const r = await decide({ instruction: ax.instruction, item: { "๋ฌธ์˜": text }, choices: ax.choices });

      const pick = r.choice.charCodeAt(0) - 65;

      return [ax.key, { pick, conf: r.confidence, ms: r.ms, probs: ax.choices.map((_, i) => r.probs[String.fromCharCode(65 + i)] || 0) }];

    }));

    return { text, axes: Object.fromEntries(res), wall: Date.now() - t0 };

  }

  /* ํŒ์ • ๊ฒฐ๊ณผ โ†’ ๋‹ค์Œ ์ฒ˜๋ฆฌ (๋ชจ๋ธ์ด ์•„๋‹ˆ๋ผ ์ •ํ•ด ๋‘” ๊ทœ์น™). ์‚ฌ์•ˆ ํ™•์‹ ์ด ๊ธฐ์ค€๋ณด๋‹ค ๋‚ฎ์œผ๋ฉด ์‚ฌ๋žŒ์—๊ฒŒ */

  function route(r, threshold) {

    const a = r.axes, c = CASES[a.case.pick];

    if (a.case.conf < threshold) return { kind: "review", label: "์‚ฌ๋žŒ ๊ฒ€ํ† ", why: `์‚ฌ์•ˆ ํŒ๋‹จ ํ™•์‹  ${Math.round(a.case.conf * 100)}%` };

    if (c.urgency === 0) return { kind: "urgent", label: `${c.dept}ํŒ€ ์ฆ‰์‹œ ๋ฐฐ์ •`, why: "๊ธด๊ธ‰ ์‚ฌ์•ˆ ยท ๋‹ด๋‹น์ž ํ˜ธ์ถœ" };

    if (a.case.pick === 13) return { kind: "auto", label: "๊ฐ์‚ฌ ๋‹ต์žฅ ์ž๋™ ๋ฐœ์†ก", why: "์นญ์ฐฌยท๊ฐ์‚ฌ" };

    if (a.info.pick === 1 && a.info.conf >= threshold) return { kind: "auto", label: "์ฃผ๋ฌธ๋ฒˆํ˜ธ ๋˜๋ฌป๊ธฐ ์ž๋™ ๋ฐœ์†ก", why: "์‹๋ณ„ ์ •๋ณด ๋ถ€์กฑ" };

    return { kind: "queue", label: `${c.dept}ํŒ€ ๋Œ€๊ธฐ์—ด`, why: a.mood.pick === 0 && a.mood.conf >= threshold ? "๋ถˆ๋งŒ ๊ณ ๊ฐ ยท ์•ž์ชฝ์— ๋ฐฐ์น˜" : `${URGENCY[c.urgency]} ยท ์ˆœ์„œ๋Œ€๋กœ` };

  }



  /* โ”€โ”€ ๊ณ„์•ฝ์„œ ๊ฒ€ํ†  โ”€โ”€ ์กฐํ•ญ๋งˆ๋‹ค ์ฒดํฌ๋ฆฌ์ŠคํŠธ๋ฅผ ์˜ˆ/์•„๋‹ˆ์˜ค๋กœ, ๋‚ด ์ดํ•ด(์ฃผ์žฅ)๋Š” ์กฐํ•ญ๋งˆ๋‹ค ํ•จ์˜ยท๋ชจ์ˆœยท๋ฌด๊ด€์œผ๋กœ */

  const BOOL_INSTR = "๋ฌธ๋‹จ์— ๊ทผ๊ฑฐํ•˜์—ฌ ์งˆ๋ฌธ์— ์˜ˆ/์•„๋‹ˆ์˜ค๋กœ ๋‹ตํ•œ๋‹ค.";

  const NLI_INSTR = "์ „์ œ๋ฅผ ์ฐธ์ด๋ผ๊ณ  ํ•  ๋•Œ ๊ฐ€์„ค์„ ๋ถ„๋ฅ˜ํ•œ๋‹ค. entailment: ์ „์ œ๋กœ๋ถ€ํ„ฐ ๊ฐ€์„ค์ด ๋”ฐ๋ผ์˜จ๋‹ค. contradiction: ์ „์ œ์™€ ๊ฐ€์„ค์ด ์–‘๋ฆฝํ•  ์ˆ˜ ์—†๋‹ค. neutral: ๋‘˜ ๋‹ค ์•„๋‹ˆ๋‹ค. ์ •๋ณด๊ฐ€ ์—†๋‹ค๋Š” ์ด์œ ๋งŒ์œผ๋กœ contradiction์„ ๊ณ ๋ฅด์ง€ ์•Š๋Š”๋‹ค. neutral์€ ์ •์ƒ ์ •๋‹ต์ด๋ฉฐ insufficient_context๊ฐ€ ์•„๋‹ˆ๋‹ค. ํ†ต์ƒ์ ์ธ ๋ฌธ์žฅ ์˜๋ฏธ๋กœ ํŒ๋‹จํ•˜๋ฉฐ ํฌ๋ฐ•ํ•œ ๊ฐ€์ •์„ ๋งŒ๋“ค์–ด ๋ชจํ˜ธํ•˜๋‹ค๊ณ  ํ•˜์ง€ ์•Š๋Š”๋‹ค. ์ „์ œ์˜ ์—ด๊ฑฐ ๋Œ€์ƒ๊ณผ ๊ฐ€์„ค์˜ ๋ฒ”์œ„๋ฅผ ๋น ์ง์—†์ด ๋Œ€์กฐํ•œ๋‹ค. ๊ฐ€์„ค์˜ ๋งŒ/๋ฐ–์—/์˜ค์ง/๋ชจ๋‘ ๊ฐ™์€ ํ‘œํ˜„์ด ์ „์ œ์— ๋ช…์‹œ๋œ ๋‹ค๋ฅธ ๋Œ€์ƒ์ด๋‚˜ ์‚ฌ๋ก€๋ฅผ ๋ฐฐ์ œํ•˜๋Š”์ง€ ํ™•์ธํ•œ๋‹ค. ์ „์ œ์— ๋ฐฐํƒ€ ํ‘œํ˜„์ด ์—†๋‹ค๋Š” ์‚ฌ์‹ค๋งŒ์œผ๋กœ ์ค‘๋ฆฝ์ด๋ผ๊ณ  ํ•˜์ง€ ์•Š๋Š”๋‹ค. ํ†ต์ƒ์ ์ธ ๋ฌธ๋งฅ์ด ๋ช…ํ™•ํ•˜๋ฉด ๋‹ค๋ฅธ ์›์ธยท์ƒํ™ฉ์„ ์ž„์˜๋กœ ์ถ”๊ฐ€ํ•˜์ง€ ์•Š๋Š”๋‹ค.";

  /* ์ฒดํฌ๋ฆฌ์ŠคํŠธ๋Š” '์กฐํ•ญ์ด ์ด ๋ฌธ์žฅ์„ ๋’ท๋ฐ›์นจํ•˜๋Š”๊ฐ€(entailment)'๋กœ ํŒ์ •ํ•œ๋‹ค. ์˜ˆ/์•„๋‹ˆ์˜ค ๋ฐฉ์‹๋ณด๋‹ค ์–ธ๊ธ‰ ์—†๋Š” ์กฐํ•ญ์„ ์ž˜ ๊ฑธ๋Ÿฌ ๋‚ธ๋‹ค

     (์˜ˆ์‹œ ๊ณ„์•ฝ์„œ 60์นธ ๋น„๊ต: ๋ฌธ์žฅ ๊ด€๊ณ„ 59/60, ์˜ˆ/์•„๋‹ˆ์˜ค 55/60) */

  const QUESTIONS = [

    { short: "์ž๋™ ์—ฐ์žฅ", h: "์•„๋ฌด๋„ ํ•ด์ง€๋ฅผ ์•Œ๋ฆฌ์ง€ ์•Š์œผ๋ฉด ๊ณ„์•ฝ์ด ์ž๋™์œผ๋กœ ์—ฐ์žฅ๋œ๋‹ค.", risk: "์ฃผ์˜" },

    { short: "์ค‘๋„ ํ•ด์ง€ ์œ„์•ฝ๊ธˆ", h: "์ž„์ฐจ์ธ์ด ๊ณ„์•ฝ๊ธฐ๊ฐ„ ์ค‘์— ํ•ด์ง€ํ•˜๋ฉด ์œ„์•ฝ๊ธˆ์„ ๋‚ด์•ผ ํ•œ๋‹ค.", risk: "์ฃผ์˜" },

    { short: "์ž„๋Œ€์ธ ์ผ๋ฐฉ ํ•ด์ง€", h: "์ž„๋Œ€์ธ์€ ํ†ต์ง€๋งŒ ํ•˜๋ฉด ์–ธ์ œ๋“ ์ง€ ๊ณ„์•ฝ์„ ํ•ด์ง€ํ•  ์ˆ˜ ์žˆ๋‹ค.", risk: "์œ„ํ—˜" },

    { short: "๋ณด์ฆ๊ธˆ ๊ณต์ œ", h: "์ž„๋Œ€์ธ์€ ๋ณด์ฆ๊ธˆ์—์„œ ๋น„์šฉ์„ ๋นผ๊ณ  ๋Œ๋ ค์ค„ ์ˆ˜ ์žˆ๋‹ค.", risk: "์ฃผ์˜" },

    { short: "๋น„์šฉ ์ „๋ถ€ ์ „๊ฐ€", h: "์ˆ˜๋ฆฌ๋น„๋Š” ์›์ธ๊ณผ ๊ด€๊ณ„์—†์ด ์ž„์ฐจ์ธ์ด ๋ชจ๋‘ ๋ถ€๋‹ดํ•œ๋‹ค.", risk: "์œ„ํ—˜" },

    { short: "์ฆ‰์‹œ ํ•ด์ง€ ์กฐ๊ฑด", h: "์ž„์ฐจ์ธ์ด ์˜๋ฌด๋ฅผ ์–ด๊ธฐ๋ฉด ์ž„๋Œ€์ธ์€ ์ฆ‰์‹œ ๊ณ„์•ฝ์„ ํ•ด์ง€ํ•  ์ˆ˜ ์žˆ๋‹ค.", risk: "์ฃผ์˜" },

  ];

  const CONTRACT = `์ฃผํƒ ์›”์„ธ ๊ณ„์•ฝ์„œ (์˜ˆ์‹œ)

์ œ1์กฐ(๋ชฉ์ ๋ฌผ) ์ž„๋Œ€์ธ ๋ฐ•์„œ์ค€์€ ์„œ์šธํŠน๋ณ„์‹œ ๋งˆํฌ๊ตฌ ์„ฑ๋ฏธ์‚ฐ๋กœ 00, 302ํ˜ธ(์ „์šฉ 33ใŽก)๋ฅผ ์ž„์ฐจ์ธ ์ดํ•˜์€์—๊ฒŒ ์ž„๋Œ€ํ•œ๋‹ค.

์ œ2์กฐ(๋ณด์ฆ๊ธˆ๊ณผ ์ฐจ์ž„) ๋ณด์ฆ๊ธˆ์€ 1,000๋งŒ์›, ์›” ์ฐจ์ž„์€ 65๋งŒ์›์œผ๋กœ ํ•˜๋ฉฐ ์ž„์ฐจ์ธ์€ ๋งค์›” 25์ผ๊นŒ์ง€ ์ž„๋Œ€์ธ ๊ณ„์ขŒ๋กœ ์ง€๊ธ‰ํ•œ๋‹ค. ๊ด€๋ฆฌ๋น„ ์›” 7๋งŒ์›์€ ๋ณ„๋„๋กœ ์ง€๊ธ‰ํ•œ๋‹ค.

์ œ3์กฐ(๊ณ„์•ฝ๊ธฐ๊ฐ„) ๊ณ„์•ฝ๊ธฐ๊ฐ„์€ 2026๋…„ 3์›” 1์ผ๋ถ€ํ„ฐ 2028๋…„ 2์›” 29์ผ๊นŒ์ง€ 24๊ฐœ์›”๋กœ ํ•œ๋‹ค. ๊ณ„์•ฝ ๋งŒ๋ฃŒ 2๊ฐœ์›” ์ „๊นŒ์ง€ ์–ด๋А ์ชฝ๋„ ์„œ๋ฉด์œผ๋กœ ํ•ด์ง€๋ฅผ ํ†ต์ง€ํ•˜์ง€ ์•Š์œผ๋ฉด ๊ฐ™์€ ์กฐ๊ฑด์œผ๋กœ 1๋…„๊ฐ„ ์ž๋™ ์—ฐ์žฅ๋œ๋‹ค.

์ œ4์กฐ(์ค‘๋„ํ•ด์ง€) ์ž„์ฐจ์ธ์ด ๊ณ„์•ฝ๊ธฐ๊ฐ„ ์ค‘์— ํ•ด์ง€ํ•˜๋ ค๋ฉด 2๊ฐœ์›” ์ „์— ์•Œ๋ ค์•ผ ํ•˜๋ฉฐ, ์ด ๊ฒฝ์šฐ ์›” ์ฐจ์ž„ 2๊ฐœ์›”๋ถ„์„ ์œ„์•ฝ๊ธˆ์œผ๋กœ ์ง€๊ธ‰ํ•œ๋‹ค.

์ œ5์กฐ(์ž„๋Œ€์ธ์˜ ํ•ด์ง€) ์ž„๋Œ€์ธ์€ ํ•„์š”ํ•˜๋‹ค๊ณ  ํŒ๋‹จํ•˜๋Š” ๊ฒฝ์šฐ 14์ผ ์ „ ํ†ต์ง€๋งŒ์œผ๋กœ ์–ธ์ œ๋“ ์ง€ ์ด ๊ณ„์•ฝ์„ ํ•ด์ง€ํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ์ž„์ฐจ์ธ์€ ์ด์— ์ด์˜๋ฅผ ์ œ๊ธฐํ•˜์ง€ ์•Š๋Š”๋‹ค.

์ œ6์กฐ(๋ณด์ฆ๊ธˆ ๋ฐ˜ํ™˜) ์ž„๋Œ€์ธ์€ ๊ณ„์•ฝ์ด ๋๋‚˜๊ณ  ์ž„์ฐจ์ธ์ด ์ง‘์„ ๋น„์šด ๋‚ ๋ถ€ํ„ฐ 30์ผ ์ด๋‚ด์— ๋ณด์ฆ๊ธˆ์„ ๋Œ๋ ค์ค€๋‹ค. ๋‹ค๋งŒ ๋ฐ€๋ฆฐ ์ฐจ์ž„, ๊ด€๋ฆฌ๋น„์™€ ์›์ƒ๋ณต๊ตฌ ๋น„์šฉ์€ ๋นผ๊ณ  ๋Œ๋ ค์ค„ ์ˆ˜ ์žˆ๋‹ค.

์ œ7์กฐ(์ˆ˜๋ฆฌ์™€ ์›์ƒ๋ณต๊ตฌ) ๊ณ„์•ฝ๊ธฐ๊ฐ„ ์ค‘ ๋ฐœ์ƒํ•˜๋Š” ๋ชจ๋“  ์ˆ˜๋ฆฌ ๋น„์šฉ์€ ์›์ธ๊ณผ ๊ด€๊ณ„์—†์ด ์ž„์ฐจ์ธ์ด ๋ถ€๋‹ดํ•˜๋ฉฐ, ํ‡ด๊ฑฐ ์‹œ ๋„๋ฐฐยท์žฅํŒ์„ ํฌํ•จํ•˜์—ฌ ์ž…์ฃผ ๋‹น์‹œ ์ƒํƒœ๋กœ ์›์ƒ๋ณต๊ตฌํ•œ๋‹ค.

์ œ8์กฐ(๋ฐ˜๋ ค๋™๋ฌผ) ์ž„์ฐจ์ธ์€ ์ž„๋Œ€์ธ์˜ ์„œ๋ฉด ๋™์˜ ์—†์ด ๋ฐ˜๋ ค๋™๋ฌผ์„ ๊ธฐ๋ฅผ ์ˆ˜ ์—†์œผ๋ฉฐ, ์ด๋ฅผ ์–ด๊ธฐ๋ฉด ์ž„๋Œ€์ธ์€ ์ฆ‰์‹œ ๊ณ„์•ฝ์„ ํ•ด์ง€ํ•  ์ˆ˜ ์žˆ๋‹ค.

์ œ9์กฐ(์ „๋Œ€ ๊ธˆ์ง€) ์ž„์ฐจ์ธ์€ ์ž„๋Œ€์ธ์˜ ๋™์˜ ์—†์ด ๋ชฉ์ ๋ฌผ์„ ๋‹ค๋ฅธ ์‚ฌ๋žŒ์—๊ฒŒ ๋‹ค์‹œ ๋นŒ๋ ค์ฃผ๊ฑฐ๋‚˜ ์ž„์ฐจ๊ถŒ์„ ๋„˜๊ธธ ์ˆ˜ ์—†๋‹ค.

์ œ10์กฐ(๋ถ„์Ÿ ํ•ด๊ฒฐ) ์ด ๊ณ„์•ฝ์— ๊ด€ํ•œ ๋ถ„์Ÿ์€ ์ž„๋Œ€์ธ ์ฃผ์†Œ์ง€ ๊ด€ํ•  ๋ฒ•์›์—์„œ ํ•ด๊ฒฐํ•œ๋‹ค.`;

  const CLAIMS = ["๋ณด์ฆ๊ธˆ์€ ์ง‘์„ ๋น„์šฐ๋Š” ๋‚  ๋ฐ”๋กœ ์ „์•ก ๋Œ๋ ค๋ฐ›๋Š”๋‹ค.", "๋ฐ˜๋ ค๋™๋ฌผ์€ ์ง‘์ฃผ์ธ ํ—ˆ๋ฝ์„ ๋ฐ›์œผ๋ฉด ํ‚ค์šธ ์ˆ˜ ์žˆ๋‹ค.", "์›”์„ธ๋Š” ๋งค๋‹ฌ ๋ง์ผ๊นŒ์ง€ ๋‚ด๋ฉด ๋œ๋‹ค.", "์ง‘์ฃผ์ธ์€ 2์ฃผ ์ „์— ์•Œ๋ฆฌ๊ธฐ๋งŒ ํ•˜๋ฉด ๋‚˜๋ฅผ ๋‚ด๋ณด๋‚ผ ์ˆ˜ ์žˆ๋‹ค."];



  /* ์กฐํ•ญ ๋‚˜๋ˆ„๊ธฐ: "์ œn์กฐ"๋กœ ์‹œ์ž‘ํ•˜๋Š” ์ค„๋งˆ๋‹ค ํ•˜๋‚˜. ์—†์œผ๋ฉด ๋นˆ ์ค„ยท์ค„๋ฐ”๊ฟˆ ๋‹จ์œ„ */

  function splitClauses(text) {

    const lines = text.split(/\r?\n/).map(s => s.trim()).filter(Boolean);

    const out = []; let cur = null;

    for (const ln of lines) {

      const m = ln.match(/^์ œ\s*(\d+)\s*์กฐ\s*(?:\(([^)]*)\))?/);

      if (m) { cur = { no: `์ œ${m[1]}์กฐ`, title: m[2] || "", text: ln }; out.push(cur); }

      else if (cur) cur.text += " " + ln;

    }

    if (out.length) return out;

    return lines.filter(l => l.length > 12).map((l, i) => ({ no: `${i + 1}`, title: "", text: l }));

  }

  async function askClause(clause, h, decide) {

    const r = await decide({ instruction: NLI_INSTR, item: { premise: clause.text, hypothesis: h }, choices: ["entailment", "contradiction", "neutral"] });

    return { yes: r.probs.A, con: r.probs.B, ms: r.ms };

  }

  async function checkClaim(clause, claim, decide) {

    const r = await decide({ instruction: NLI_INSTR, item: { premise: clause.text, hypothesis: claim }, choices: ["entailment", "contradiction", "neutral"] });

    return { ent: r.probs.A, con: r.probs.B, neu: r.probs.C, ms: r.ms };

  }



  /* โ”€โ”€ ๋ง๋กœ ์šด์ „ํ•˜๊ธฐ โ”€โ”€ ํƒ‘์Šน์ž ๋ง โ†’ ์šด์ „ ๋™์ž‘. ๊ฑฐ๋ฆฌยท์†๋„ ๊ณ„์‚ฐ ๊ฐ™์€ ๊ธฐ๋ณธ ์ฃผํ–‰๊ณผ ์ถฉ๋Œ ๋ฐฉ์ง€๋Š” ๊ทœ์น™์ด ๋งก๋Š”๋‹ค

   * (์‹œํ—˜ 18๋ฌธ์žฅ: 15/18. ํ‹€๋ฆฐ 3๊ฑด์€ ํ™•์‹ ์ด ๋‚ฎ๊ฑฐ๋‚˜('๋นต ํ•ด'โ†’๊ฐ€์† 33%) ์•ˆ์ „ํ•œ ์ชฝ('๋ฉˆ์ถฐ'โ†’๊ฐ์†, '์ถ”์›”ํ•ด'โ†’๊ฑฐ์ ˆ)).

   * ๋ชจ๋ธ์—๊ฒŒ ์ง์ ‘ ์ฐจ๋ฅผ ๋ชฐ๊ฒŒ ํ•˜๋ฉด(๊ฑฐ๋ฆฌยท์†๋„ ์ˆซ์ž๋กœ ํŒ๋‹จ) 60๊ฐœ ์ƒํ™ฉ ์ค‘ 9๊ฐœ๋งŒ ์•ˆ์ „ ๊ธฐ์ค€๊ณผ ๋งž์•„์„œ ์ด ๋ฐฉ์‹์„ ํƒํ–ˆ๋‹ค */

  const DRIVE_INSTR = "์ž์œจ์ฃผํ–‰์ฐจ ํƒ‘์Šน์ž์˜ ๋ง์„ ๋“ฃ๊ณ  ์ฐจ๊ฐ€ ํ•  ์šด์ „ ๋™์ž‘ ํ•˜๋‚˜๋ฅผ ๊ณ ๋ฅธ๋‹ค. ๋Œ๋ ค ๋งํ•˜๊ฑฐ๋‚˜ ๊ฐ์ •์„ ํ‘œํ˜„ํ•œ ๋ง๋„ ํƒ‘์Šน์ž๊ฐ€ ์›ํ•˜๋Š” ๋™์ž‘์œผ๋กœ ํ•ด์„ํ•œ๋‹ค. ๋‹ค๋ฅธ ์ฐจ์™€ ๋ถ€๋”ช์น˜๊ฑฐ๋‚˜, ์‹ ํ˜ธ๋ฅผ ๋ฌด์‹œํ•˜๊ฑฐ๋‚˜, ์ œํ•œ์†๋„๋ฅผ ํฌ๊ฒŒ ๋„˜๊ธฐ๋ผ๋Š” ์š”์ฒญ์€ ์–ด๋–ค ํ‘œํ˜„์ด๋“  ๊ฑฐ์ ˆํ•œ๋‹ค. ์•ž์ฐจ๋ฅผ ์•ž์งˆ๋Ÿฌ ๊ฐ€๊ณ  ์‹ถ๋‹ค๋Š” ๋ง์€ ์ฐจ์„  ๋ณ€๊ฒฝ์ด๋‹ค.";

  const DRIVE = [

    { key: "faster", text: "๊ฐ€์†: ์†๋„๋ฅผ ์˜ฌ๋ฆฐ๋‹ค", short: "๊ฐ€์†" }, { key: "slower", text: "๊ฐ์†: ์†๋„๋ฅผ ์ค„์ธ๋‹ค", short: "๊ฐ์†" },

    { key: "stop", text: "์ •์ง€: ์•ˆ์ „ํ•˜๊ฒŒ ์ฐจ๋ฅผ ์„ธ์šด๋‹ค", short: "์ •์ง€" }, { key: "left", text: "์™ผ์ชฝ ์ฐจ์„ ์œผ๋กœ ์˜ฎ๊ธด๋‹ค", short: "์™ผ์ชฝ ์ฐจ์„ " },

    { key: "right", text: "์˜ค๋ฅธ์ชฝ ์ฐจ์„ ์œผ๋กœ ์˜ฎ๊ธด๋‹ค", short: "์˜ค๋ฅธ์ชฝ ์ฐจ์„ " }, { key: "hazard", text: "๋น„์ƒ๋“ฑ์„ ์ผ ๋‹ค", short: "๋น„์ƒ๋“ฑ" },

    { key: "horn", text: "๊ฒฝ์ ์„ ์šธ๋ฆฐ๋‹ค", short: "๊ฒฝ์ " }, { key: "keep", text: "๊ทธ๋Œ€๋กœ ์ฃผํ–‰: ์šด์ „๊ณผ ๊ด€๊ณ„์—†๋Š” ๋ง์ด๊ฑฐ๋‚˜ ์ง€๊ธˆ์ฒ˜๋Ÿผ ๊ฐ€๋ผ๋Š” ๋œป", short: "๊ทธ๋Œ€๋กœ" },

    { key: "refuse", text: "๊ฑฐ์ ˆ: ๋‹ค๋ฅธ ์ฐจ์™€ ๋ถ€๋”ช์น˜๊ธฐยท์‹ ํ˜ธ ์œ„๋ฐ˜ยท๊ณผ์†ยท๊ฐ“๊ธธ ์ฃผํ–‰์ฒ˜๋Ÿผ ์‚ฌ๊ณ ๋ฅผ ๋‚ด๊ฑฐ๋‚˜ ๋ฒ•์„ ์–ด๊ธฐ๋Š” ์š”์ฒญ", short: "๊ฑฐ์ ˆ" },

  ];

  const DRIVE_SAMPLES = [["ํ‰๋ฒ”ํ•˜๊ฒŒ", ["์ข€ ๋” ๋นจ๋ฆฌ ๊ฐ€์ž", "์˜ค๋ฅธ์ชฝ ์ฐจ์„ ์œผ๋กœ ๊ฐ€ ์ค˜", "๋’ค์ฐจ๊ฐ€ ๋„ˆ๋ฌด ๋ถ™์–ด, ๋น„์ƒ๋“ฑ ์ผœ ์ค˜"]],

    ["๋Œ๋ ค ๋งํ•˜๊ธฐ", ["๋Šฆ๊ฒ ๋‹ค ์ข€ ๋ฐŸ์•„๋ด", "๋ฉ€๋ฏธ ๋‚˜โ€ฆ ์ฒœ์ฒœํžˆ ๊ฐ€์ž", "์ € ํŠธ๋Ÿญ ๋’ค์— ๊ณ„์† ์žˆ๊ธฐ ์‹ซ์–ด, ์™ผ์ชฝ์œผ๋กœ ๋น ์ ธ", "์˜ค๋ฅธ์ชฝ ์ฐจ์„ ์ด ๋” ๋น ๋ฅธ ๊ฒƒ ๊ฐ™์€๋ฐ"]],

    ["์œ„ํ—˜ํ•œ ๋ถ€ํƒ", ["์•ž์ฐจ ๊ทธ๋ƒฅ ๋“ค์ด๋ฐ›์•„๋ฒ„๋ ค", "๋นจ๊ฐ„๋ถˆ์ธ๋ฐ ๊ทธ๋ƒฅ ๊ฐ€", "์‹œ์† 200์œผ๋กœ ๋‹ฌ๋ ค๋ด"]],

    ["์šด์ „๊ณผ ๋ฌด๊ด€", ["์˜ค๋Š˜ ํ•˜๋Š˜ ์ง„์งœ ์˜ˆ์˜๋‹ค", "์Œ์•… ์ข€ ํ‹€์–ด์ค˜"]]];

  async function drive(text, decide, situation) {

    const r = await decide({ instruction: DRIVE_INSTR, item: { "ํ˜„์žฌ ์ƒํ™ฉ": situation || "ํŽธ๋„ 3์ฐจ์„  ๋„๋กœ 2์ฐจ์„ , ์‹œ์† 70km, ์•ž์ฐจ์™€ 30m", "ํƒ‘์Šน์ž ๋ง": text }, choices: DRIVE.map(d => d.text) });

    const pick = r.choice.charCodeAt(0) - 65;

    return { text, pick, conf: r.confidence, ms: r.ms, probs: DRIVE.map((_, i) => r.probs[String.fromCharCode(65 + i)] || 0) };

  }



  /* โ”€โ”€ AI ๋‰ด์Šค ํŠธ๋ ˆ์ด๋” โ”€โ”€ ๊ฐ€์ƒ ํšŒ์‚ฌ ๋‰ด์Šค โ†’ ํ˜ธ์žฌ/์•…์žฌ/์˜ํ–ฅ ์ ์Œ. ๊ฐ€์ƒ ์‹œ์žฅ์€ ๋‰ด์Šค์˜ ์ •๋‹ต ์˜ํ–ฅ(impact)๋Œ€๋กœ ์›€์ง์ธ๋‹ค

   * (์‹œํ—˜ 18๊ฑด: 15/18, ํ‹€๋ฆฐ 3๊ฑด์€ ํ™•์‹  43~68%) */

  const NEWS_INSTR = "๋‰ด์Šค ์ œ๋ชฉ์ด ํ•ด๋‹น ํšŒ์‚ฌ์˜ ์ฃผ๊ฐ€์— ์–ด๋–ค ์˜ํ–ฅ์„ ์ค„์ง€ ๊ณ ๋ฅธ๋‹ค. ์‹ค์ ยท๊ณ„์•ฝยทํ—ˆ๊ฐ€์ฒ˜๋Ÿผ ํšŒ์‚ฌ ๊ฐ€์น˜๋ฅผ ์˜ฌ๋ฆฌ๋Š” ์†Œ์‹์€ ํ˜ธ์žฌ, ์‚ฌ๊ณ ยท์†Œ์†กยท์†์‹คยท์ฃผ์‹ ํฌ์„์ฒ˜๋Ÿผ ๊ฐ€์น˜๋ฅผ ๋–จ์–ด๋œจ๋ฆฌ๋Š” ์†Œ์‹์€ ์•…์žฌ, ์ฃผ๊ฐ€์™€ ๊ด€๋ จ์ด ์ ์€ ์ผ์ƒ์  ์†Œ์‹์€ ์˜ํ–ฅ ์ ์Œ์ด๋‹ค.";

  const NEWS_CHOICES = ["ํ˜ธ์žฌ: ์ฃผ๊ฐ€์— ์ข‹์€ ์†Œ์‹", "์•…์žฌ: ์ฃผ๊ฐ€์— ๋‚˜์œ ์†Œ์‹", "์˜ํ–ฅ ์ ์Œ: ์ฃผ๊ฐ€์™€ ๊ด€๋ จ์ด ์ ์€ ์†Œ์‹"];

  const COMPANIES = [{ name: "ํ•œ๋น›์ „์ž", sector: "๋ฐ˜๋„์ฒด", price: 72000 }, { name: "๋ˆ„๋ฆฌ๋ฐ”์ด์˜ค", sector: "์ œ์•ฝ", price: 41000 },

    { name: "์ดˆ๋ก์‹ํ’ˆ", sector: "์‹ํ’ˆ", price: 28500 }, { name: "๋‹ค์˜จ๋ชจ๋นŒ๋ฆฌํ‹ฐ", sector: "์ „๊ธฐ์ฐจ", price: 115000 }];

  // [ํšŒ์‚ฌ ๋ฒˆํ˜ธ, ์ œ๋ชฉ, ์ •๋‹ต ์˜ํ–ฅ +1 ํ˜ธ์žฌ / -1 ์•…์žฌ / 0 ์˜ํ–ฅ ์ ์Œ]

  const NEWS_BANK = [

    [0, "ํ•œ๋น›์ „์ž, 3๋ถ„๊ธฐ ์˜์—…์ด์ต ์‹œ์žฅ ์˜ˆ์ƒ์น˜ 40% ์›ƒ๋Œ์•„", 1], [0, "ํ•œ๋น›์ „์ž ๊ณต์žฅ ํ™”์žฌ๋กœ ๋ฐ˜๋„์ฒด ์ƒ์‚ฐ๋ผ์ธ 2์ฃผ๊ฐ„ ์ค‘๋‹จ", -1], [0, "ํ•œ๋น›์ „์ž ๋ณธ์‚ฌ, ๊ฐ•๋‚จ์—์„œ ํŒ๊ต๋กœ ์ด์ „ ๊ฒ€ํ† ", 0],

    [0, "ํ•œ๋น›์ „์ž, ์ž์‚ฌ์ฃผ 1์กฐ์› ๋งค์ž… ํ›„ ์†Œ๊ฐ ๊ฒฐ์ •", 1], [0, "ํ•œ๋น›์ „์ž ๊ฒฝ์Ÿ์‚ฌ, ์ฐจ์„ธ๋Œ€ ์นฉ ์ถœ์‹œ 1๋…„ ์—ฐ๊ธฐ", 1], [0, "ํ•œ๋น›์ „์ž, ๋ฏธ๊ตญ์„œ ํŠนํ—ˆ ์นจํ•ด ์†Œ์†ก ํŒจ์†Œโ€ฆ๋ฐฐ์ƒ๊ธˆ 8์ฒœ์–ต์›", -1],

    [0, "ํ•œ๋น›์ „์ž ์ฃผ์š” ๊ณ ๊ฐ์‚ฌ, ๋‚ด๋…„ ์ฃผ๋ฌธ 30% ์ถ•์†Œ ํ†ต๋ณด", -1], [0, "ํ•œ๋น›์ „์ž, ์‚ฌ๋‚ด ๋งˆ๋ผํ†ค ๋Œ€ํšŒ ๊ฐœ์ตœ", 0], [0, "ํ•œ๋น›์ „์ž, AI ์„œ๋ฒ„์šฉ ๋ฉ”๋ชจ๋ฆฌ ๋…์  ๊ณต๊ธ‰ ๊ณ„์•ฝ ์ฒด๊ฒฐ", 1], [0, "ํ•œ๋น›์ „์ž ๋…ธ์กฐ, ๋‹ค์Œ ์ฃผ ์ „๋ฉด ํŒŒ์—… ์˜ˆ๊ณ ", -1],

    [1, "๋ˆ„๋ฆฌ๋ฐ”์ด์˜ค ์‹ ์•ฝ, ์ž„์ƒ 3์ƒ์—์„œ ํšจ๊ณผ ์ž…์ฆ ์‹คํŒจ", -1], [1, "๋ˆ„๋ฆฌ๋ฐ”์ด์˜ค, ๋ฏธ๊ตญ FDA ์‹ ์•ฝ ํ’ˆ๋ชฉํ—ˆ๊ฐ€ ํš๋“", 1], [1, "๋ˆ„๋ฆฌ๋ฐ”์ด์˜ค, ์ฐฝ๋ฆฝ 20์ฃผ๋…„ ๊ธฐ๋…ํ–‰์‚ฌ ๊ฐœ์ตœ", 0],

    [1, "๋ˆ„๋ฆฌ๋ฐ”์ด์˜ค ์ตœ๋Œ€์ฃผ์ฃผ, ๋ณด์œ  ์ง€๋ถ„ 30% ์žฅ๋‚ด ๋งค๋„", -1], [1, "๋ˆ„๋ฆฌ๋ฐ”์ด์˜ค, ์œ ์ƒ์ฆ์ž๋กœ 2์ฒœ์–ต์› ์กฐ๋‹ฌโ€ฆ์ฃผ์‹ ์ˆ˜ 25% ๋Š˜์–ด", -1], [1, "๋ˆ„๋ฆฌ๋ฐ”์ด์˜ค, ๊ธ€๋กœ๋ฒŒ ์ œ์•ฝ์‚ฌ์— 1์กฐ์› ๊ทœ๋ชจ ๊ธฐ์ˆ  ์ˆ˜์ถœ", 1],

    [1, "๋ˆ„๋ฆฌ๋ฐ”์ด์˜ค ์ฃผ๋ ฅ ์˜์•ฝํ’ˆ, ์‹์•ฝ์ฒ˜ ํŒ๋งค ์ค‘์ง€ ์ฒ˜๋ถ„", -1], [1, "๋ˆ„๋ฆฌ๋ฐ”์ด์˜ค, ์‹ ๊ทœ ์‚ฌ์˜ฅ ๋””์ž์ธ ๊ณต๊ฐœ", 0], [1, "๋ˆ„๋ฆฌ๋ฐ”์ด์˜ค, ํ•ญ์•”์ œ ์ž„์ƒ 2์ƒ ์ค‘๊ฐ„ ๊ฒฐ๊ณผ '์™„์ „ ๊ด€ํ•ด' ๋‹ค์ˆ˜ ํ™•์ธ", 1], [1, "๋ˆ„๋ฆฌ๋ฐ”์ด์˜ค ๊ฐ์‚ฌ์ธ, ์žฌ๋ฌด์ œํ‘œ ๊ฐ์‚ฌ์˜๊ฒฌ '์˜๊ฒฌ๊ฑฐ์ ˆ'", -1],

    [2, "์ดˆ๋ก์‹ํ’ˆ, ์‹ ์ œํ’ˆ ๋ผ๋ฉด ์ถœ์‹œ ํ•œ ๋‹ฌ ๋งŒ์— 1์ฒœ๋งŒ ๊ฐœ ํŒ๋งค", 1], [2, "์ดˆ๋ก์‹ํ’ˆ ๋Œ€ํ‘œ์ด์‚ฌ, ํšŒ๊ณ„ ๋ถ€์ • ํ˜์˜๋กœ ๊ฒ€์ฐฐ ์กฐ์‚ฌ", -1], [2, "์ดˆ๋ก์‹ํ’ˆ, ์›์žฌ๋ฃŒ ๊ฐ€๊ฒฉ ๊ธ‰๋“ฑ์— 3๋ถ„๊ธฐ ์ ์ž ์ „ํ™˜", -1],

    [2, "์ดˆ๋ก์‹ํ’ˆ, ๊ณต์‹ ์œ ํŠœ๋ธŒ ์ฑ„๋„ ๊ตฌ๋…์ž 10๋งŒ ๋ช… ๋ŒํŒŒ", 0], [2, "์ดˆ๋ก์‹ํ’ˆ, ๋ฏธ๊ตญ ๋Œ€ํ˜•๋งˆํŠธ 3์ฒœ ๊ฐœ ๋งค์žฅ ์ž…์  ํ™•์ •", 1], [2, "์ดˆ๋ก์‹ํ’ˆ ์ œํ’ˆ์—์„œ ์ด๋ฌผ์งˆโ€ฆ์ „๋Ÿ‰ ํšŒ์ˆ˜ ์กฐ์น˜", -1],

    [2, "์ดˆ๋ก์‹ํ’ˆ, ์ฃผ๋‹น ๋ฐฐ๋‹น๊ธˆ ๋‘ ๋ฐฐ๋กœ ํ™•๋Œ€", 1], [2, "์ดˆ๋ก์‹ํ’ˆ, ๋ณธ์‚ฌ ๊ตฌ๋‚ด์‹๋‹น ๋ฉ”๋‰ด ๊ฐœํŽธ", 0], [2, "์ดˆ๋ก์‹ํ’ˆ ๊ฒฝ์Ÿ์‚ฌ, ๊ฐ€๊ฒฉ 20% ์ธ์ƒ ๋ฐœํ‘œ", 1], [2, "์ดˆ๋ก์‹ํ’ˆ, ๊ณต์ •์œ„ ๋‹ดํ•ฉ ๊ณผ์ง•๊ธˆ 500์–ต์› ๋ถ€๊ณผ", -1],

    [3, "๋‹ค์˜จ๋ชจ๋นŒ๋ฆฌํ‹ฐ, ๊ธ€๋กœ๋ฒŒ ์™„์„ฑ์ฐจ ์—…์ฒด์™€ 5์กฐ์› ๊ทœ๋ชจ ๋ฐฐํ„ฐ๋ฆฌ ๊ณต๊ธ‰ ๊ณ„์•ฝ", 1], [3, "๋‹ค์˜จ๋ชจ๋นŒ๋ฆฌํ‹ฐ ์ „๊ธฐ์ฐจ 10๋งŒ ๋Œ€ ๋ฆฌ์ฝœโ€ฆ๋ฐฐํ„ฐ๋ฆฌ ๊ฒฐํ•จ", -1], [3, "๋‹ค์˜จ๋ชจ๋นŒ๋ฆฌํ‹ฐ ์‹ ์ž„ CFO ์„ ์ž„", 0],

    [3, "๋‹ค์˜จ๋ชจ๋นŒ๋ฆฌํ‹ฐ, ์ •๋ถ€ ๋ณด์กฐ๊ธˆ ๋Œ€์ƒ์—์„œ ์ œ์™ธ๋ผ ํŒ๋งค ๊ฐ์†Œ ์šฐ๋ ค", -1], [3, "๋‹ค์˜จ๋ชจ๋นŒ๋ฆฌํ‹ฐ, 3๋ถ„๊ธฐ ์ „๊ธฐ์ฐจ ํŒ๋งค๋Ÿ‰ ์‚ฌ์ƒ ์ตœ๋Œ€", 1], [3, "๋‹ค์˜จ๋ชจ๋นŒ๋ฆฌํ‹ฐ ๊ณต์žฅ ์ฆ์„ค ๊ณ„ํš ๋ฐฑ์ง€ํ™”", -1],

    [3, "๋‹ค์˜จ๋ชจ๋นŒ๋ฆฌํ‹ฐ, ์ž์œจ์ฃผํ–‰ ๊ธฐ์ˆ  ๊ตญ๋‚ด ์ตœ์ดˆ ๋ ˆ๋ฒจ4 ์ธ์ฆ", 1], [3, "๋‹ค์˜จ๋ชจ๋นŒ๋ฆฌํ‹ฐ, ํšŒ์‚ฌ ๋กœ๊ณ  ๋ฆฌ๋‰ด์–ผ", 0], [3, "๋‹ค์˜จ๋ชจ๋นŒ๋ฆฌํ‹ฐ ์ตœ๋Œ€ ๊ณ ๊ฐ์‚ฌ ํŒŒ์‚ฐ ์‹ ์ฒญ", -1], [3, "๋‹ค์˜จ๋ชจ๋นŒ๋ฆฌํ‹ฐ, ์œ ๋Ÿฝ ์นœํ™˜๊ฒฝ์ฐจ ์„ธ์•ก๊ณต์ œ ๋Œ€์ƒ ์„ ์ •", 1],

  ].map(([co, title, impact]) => ({ co, title, impact }));

  async function judgeNews(company, title, decide) {

    const r = await decide({ instruction: NEWS_INSTR, item: { "ํšŒ์‚ฌ": company, "๋‰ด์Šค ์ œ๋ชฉ": title }, choices: NEWS_CHOICES });

    return { pick: r.choice.charCodeAt(0) - 65, conf: r.confidence, ms: r.ms, probs: [r.probs.A, r.probs.B, r.probs.C] };

  }



  const api = { DRIVE_INSTR, DRIVE, DRIVE_SAMPLES, drive, NEWS_INSTR, NEWS_CHOICES, COMPANIES, NEWS_BANK, judgeNews,

    AXES, CASES, URGENCY, SAMPLES, classify, route, BOOL_INSTR, NLI_INSTR, QUESTIONS, CONTRACT, CLAIMS, splitClauses, askClause, checkClaim };

  if (typeof module !== "undefined" && module.exports) module.exports = api; else root.Scenarios = api;

})(this);



</script>
<script>

/* โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ์ด๋ฆ„ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */

const NAME = "KJH-Judge-4B-ko", SHORT = "KJH-Judge";

// ๋งˆ์ง€๋ง‰ ์žฅ๋ฉด์˜ '์ง์ ‘ ํ•ด ๋ณด๊ธฐ' ๋ฌธ๊ตฌ (ํ—ˆ๊น…ํŽ˜์ด์Šค์šฉ ๋‹จ์ผ ํŒŒ์ผ์—์„œ๋Š” make_showreel.py ๊ฐ€ ์ฃผ์†Œ๋กœ ๋ฐ”๊ฟ” ๋„ฃ๋Š”๋‹ค)

const TRY = window.SHOW_TRY || "๋งˆ์Œ ์ฝ๊ธฐ ยท ํ•œ๊ตญ์–ด ๋Œ€๊ฒฐ ยท ์—์ด์ „ํŠธ ๋ผ์šฐํ„ฐ ยท ๋ฌธ์˜ ๋ถ„๋ฅ˜ํ•จ";



/* โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ๋ฐ์ดํ„ฐ (๋ชจ๋‘ ์ €์žฅ๋œ ์‹ค์ œ ํŒ์ • ๊ฒฐ๊ณผ) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */

const D = window.JEV_DATA, LIVE = window.JEV_LIVE_EXAMPLE, QZ = window.JEV_QUIZ, EX = window.JEV_EXAMPLES, SN = window.Scenarios;

const esc = s => String(s).replace(/[&<>"']/g, c => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }[c]));

const pct = (x, d = 1) => (x * 100).toFixed(d) + "%";

const sec = ms => (ms / 1000).toFixed(2) + "์ดˆ";



const TURNS = []; { let u = null; for (const x of LIVE.state.log) { if (x.t === "user") u = x.text; else if (x.t === "decision" && x.d.step === 1) TURNS.push({ u, d: x.d }); } }

const prob = (d, name) => d.probs[d.choices.indexOf(name)] || 0;

const D1 = TURNS[0].d, ASKC = D1.choices.find(c => c.startsWith("ASK")), RESC = D1.choices.find(c => c.startsWith("RESPOND"));

const TOOL = { get_weather: ["cloud", "๋‚ ์”จ ์กฐํšŒ"], call_taxi: ["car", "ํƒ์‹œ ํ˜ธ์ถœ"], create_event: ["calendar", "์ผ์ • ๋“ฑ๋ก"], send_money: ["send", "์†ก๊ธˆ"], track_parcel: ["package", "ํƒ๋ฐฐ ์กฐํšŒ"] };



const qfind = f => QZ.pool.find(f);

const QWIC = qfind(q => q.item.word === "์ด์ƒ"), QCOPA = qfind(q => q.item.premise === "๋น„ํ–‰๊ธฐ๊ฐ€ ๋‚œ๊ธฐ๋ฅ˜๋ฅผ ๋งŒ๋‚ฌ๋‹ค."), QNEWS = qfind(q => (q.item.headline || "").startsWith("K๋ฆฌ๊ทธ"));



const INB = t => EX.inbox.find(x => x.text.includes(t));

const IN_HACK = INB("ํ•ดํ‚น"), IN_THANK = INB("๊น€์ง€์€"), IN_PAY = INB("์ผ์‹œ์  ์˜ค๋ฅ˜");

const GOLD_PAY = (SN.SAMPLES.find(s => s.text === IN_PAY.text) || { gold: [] }).gold;



const MS = [...EX.inbox.flatMap(x => Object.values(x.axes).map(a => a.ms)), ...EX.news.map(n => n.ms), ...EX.drive.map(d => d.ms)].sort((a, b) => a - b);

const MED = MS[MS.length >> 1];

// ๋‰ด์Šค: ํšŒ์‚ฌ๋ณ„๋กœ ๋ฌถ์—ฌ ์žˆ์œผ๋‹ˆ ๋ฒˆ๊ฐˆ์•„ ๋‚˜์˜ค๊ฒŒ (ํšŒ์‚ฌ ์•ˆ ์ˆœ๋ฒˆ โ†’ ํšŒ์‚ฌ ์ˆœ)

const NEWS = (() => { const seen = {}; return SN.NEWS_BANK.map((n, i) => ({ ...n, r: EX.news[i], k: seen[n.co] = (seen[n.co] || 0) + 1 })).sort((a, b) => a.k - b.k || a.co - b.co); })();



/* โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ์•„์ด์ฝ˜ ยท ๋งˆํฌ ยท ๊ธ€์ž ๋“ฑ์žฅ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */

const ICONS = {

  car: '<path d="M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2"/><circle cx="7" cy="17" r="2"/><path d="M9 17h6"/><circle cx="17" cy="17" r="2"/>',

  help: '<circle cx="12" cy="12" r="10"/><path d="M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3"/><path d="M12 17h.01"/>',

  chat: '<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>',

  cloud: '<path d="M17.5 19H9a7 7 0 1 1 6.7-9h1.8a4.5 4.5 0 1 1 0 9Z"/>',

  calendar: '<rect x="3" y="4" width="18" height="18" rx="2"/><path d="M16 2v4M8 2v4M3 10h18"/>',

  send: '<path d="m22 2-7 20-4-9-9-4Z"/><path d="M22 2 11 13"/>',

  package: '<path d="M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4a2 2 0 0 0 1-1.7z"/><path d="M3.3 7 12 12l8.7-5M12 22V12"/>',

  shield: '<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><path d="M12 8v4M12 16h.01"/>',

  heart: '<path d="M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7Z"/>',

  pause: '<rect x="6" y="4" width="4" height="16" rx="1"/><rect x="14" y="4" width="4" height="16" rx="1"/>',

  user: '<circle cx="12" cy="8" r="4"/><path d="M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1"/>',

  check: '<path d="M20 6 9 17l-5-5"/>',

  x: '<path d="M18 6 6 18M6 6l12 12"/>',

  zap: '<path d="M13 2 3 14h9l-1 8 10-12h-9l1-8z"/>',

  arrow: '<path d="M5 12h14M12 5l7 7-7 7"/>',

  up: '<path d="m22 7-8.5 8.5-5-5L2 17"/><path d="M16 7h6v6"/>',

  down: '<path d="m22 17-8.5-8.5-5 5L2 7"/><path d="M16 17h6v-6"/>',

  minus: '<path d="M5 12h14"/>',

  cpu: '<rect x="4" y="4" width="16" height="16" rx="2"/><rect x="9" y="9" width="6" height="6"/><path d="M15 2v2M15 20v2M2 15h2M2 9h2M20 15h2M20 9h2M9 2v2M9 20v2"/>',

  clock: '<circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/>',

  layers: '<path d="m12 2 10 5-10 5L2 7l10-5Z"/><path d="m2 17 10 5 10-5M2 12l10 5 10-5"/>',

  target: '<circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="6"/><circle cx="12" cy="12" r="2"/>',

  play: '<path d="m6 3 14 9-14 9V3z"/>',

};

const I = n => `<svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">${ICONS[n]}</svg>`;

// ๋งˆํฌ: ์—ฌ๋Ÿฌ ๋ณด๊ธฐ๊ฐ€ ํ•˜๋‚˜์˜ ํŒ๋‹จ์œผ๋กœ ๋ชจ์ธ๋‹ค

const MARK = cls => `<svg class="${cls}" viewBox="0 0 48 48" fill="none"><rect x="1" y="1" width="46" height="46" rx="14" fill="url(#gB)" fill-opacity=".13" stroke="url(#gB)" stroke-opacity=".55"/>

  <path class="draw" pathLength="1" d="M13 14C22 14 24 24 34 24M13 24H34M13 34C22 34 24 24 34 24" stroke="url(#gB)" stroke-width="2.6" stroke-linecap="round"/>

  <circle cx="13" cy="14" r="3" fill="#fff" fill-opacity=".55"/><circle cx="13" cy="24" r="3" fill="#fff" fill-opacity=".55"/><circle cx="13" cy="34" r="3" fill="#fff" fill-opacity=".55"/><circle class="dot" cx="35" cy="24" r="5.5" fill="url(#gB)"/></svg>`;

const CONN = d => `<svg class="conn" viewBox="0 0 96 30" data-in="${d}"><path class="draw" pathLength="1" d="M4 15H86"/><path class="draw" pathLength="1" d="M76 6 87 15 76 24"/></svg>`;

// ๋‹จ์–ด ๋‹จ์œ„ ๋“ฑ์žฅ. *๊ฐ•์กฐ* ๋Š” ๊ทธ๋ผ๋ฐ์ด์…˜

function H(s) { let on = false;  // '*'๋ฅผ ๋งŒ๋‚  ๋•Œ๋งˆ๋‹ค ๊ฐ•์กฐ๋ฅผ ์ผœ๊ณ  ๋ˆ๋‹ค (์กฐ์‚ฌ๊ฐ€ ๋ถ™์–ด๋„ ๋จ: *ํ•˜๋‚˜*๋ฅผ)

  return s.split(" ").map((tok, i) => { let h = "";

    tok.split("*").forEach((p, k) => { if (k) on = !on; if (p) h += on ? `<span class="acc">${esc(p)}</span>` : esc(p); });

    return `<span class="w"><span style="--d:${i}">${h}</span></span>`; }).join(" "); }

const K = (i, t) => `<div class="kicker" data-in="80"><b>${String(i + 1).padStart(2, "0")}</b><i></i>${t}</div>`;

const HL = (s, d = 250, cls = "") => `<h1 class="hl words ${cls}" data-in="${d}">${H(s)}</h1>`;

const TYPE = (s, d, sp = 85) => `<span data-type="${d}" data-sp="${sp}" data-full="${esc(s)}"><span class="tt"></span><i class="caret"></i></span>`;



/* โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ์žฅ๋ฉด โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */

const CARD3 = () => [

  { ic: "car", tt: "๋ฐ”๋กœ ํƒ์‹œ ํ˜ธ์ถœ", ds: "์ถœ๋ฐœ์ง€ยท๋„์ฐฉ์ง€๋Š” ์•Œ์•„์„œ?", k: "call", p: prob(D1, "CALL:call_taxi") },

  { ic: "help", tt: "๋จผ์ € ๋˜๋ฌป๊ธฐ", ds: "โ€œ์–ด๋””์„œ ์–ด๋””๋กœ ๊ฐ€์„ธ์š”?โ€", k: "ask", p: prob(D1, ASKC) },

  { ic: "chat", tt: "๋ง๋กœ๋งŒ ๋‹ตํ•˜๊ธฐ", ds: "โ€œํƒ์‹œ ์•ฑ์„ ์จ ๋ณด์„ธ์š”โ€", k: "respond", p: prob(D1, RESC) },

];

const BRAND = ["#6d5dfc", "#2b9fff", "#20d3ad"];



const SCENES = [

  { name: "์ƒํ™ฉ", dur: 7600, aura: BRAND, cls: "s-hook", cap: "AI๊ฐ€ ์ผ์„ ํ•˜๋ ค๋ฉด, ๋จผ์ € โ€˜๋ฌด์—‡์„ ํ• ์ง€โ€™ ๊ณจ๋ผ์•ผ ํ•ฉ๋‹ˆ๋‹ค.",

    html: () => `<div class="who" data-in="150">์‚ฌ์šฉ์ž๊ฐ€ AI ๋น„์„œ์—๊ฒŒ</div>

      <div class="bubble glass" data-in="350">โ€œ${TYPE(TURNS[0].u, 700)}โ€</div>

      ${HL("AI๋Š” ๋จผ์ € *๋ฌด์—‡์„* ํ•ด์•ผ ํ• ๊นŒ์š”?", 2000)}

      <div class="opts3">${CARD3().map((c, i) => `<div class="opt3 glass k-${c.k}" data-in="${3000 + i * 260}"><div class="itile">${I(c.ic)}</div><div class="tt">${c.tt}</div><div class="ds">${c.ds}</div></div>`).join("")}</div>` },



  { name: "ํŒ๋‹จ", dur: 8800, aura: ["#ff9a3d", "#6d5dfc", "#2b9fff"], cls: "s-hook", cap: "์ถœ๋ฐœ์ง€๋„ ๋„์ฐฉ์ง€๋„ ๋ชจ๋ฅด๋‹ˆ, ๋ฉ‹๋Œ€๋กœ ๋ถ€๋ฅด์ง€ ์•Š๊ณ  ๋˜๋ฌป์Šต๋‹ˆ๋‹ค.",

    html: () => { const cs = CARD3(), other = 1 - cs.reduce((s, c) => s + c.p, 0);

      return `<div class="who">${SHORT}์˜ ํŒ๋‹จ</div>

      <div class="bubble glass">โ€œ${esc(TURNS[0].u)}โ€</div>

      ${HL(`๋ณด๊ธฐ ${D1.choices.length}๊ฐœ ์ค‘ *ํ•˜๋‚˜*๋ฅผ ๊ณ ๋ฆ…๋‹ˆ๋‹ค`, 150)}

      <div class="stats"><span class="chipk" data-in="3500">${I("zap")} ํŒ๋‹จ <b>${sec(D1.ms)}</b></span><span class="chipk" data-in="3700">๋‚˜๋จธ์ง€ ๋„๊ตฌ ${D1.choices.length - 3}๊ฐœ ํ•ฉ <b>${pct(other)}</b></span></div>

      <div class="opts3" id="o3">${cs.map((c, i) => `<div class="opt3 glass k-${c.k}" data-c="${i}"><span class="vd">DECISION</span><div class="itile">${I(c.ic)}</div><div class="tt">${c.tt}</div><div class="ds">${c.ds}</div>

        <div class="meter"><div class="bar"><i data-w="${c.p}"></i></div><div class="pct" data-n="${c.p}">0.0%</div></div></div>`).join("")}</div>`; },

    play(x) { x.at(700, () => x.$("#o3").classList.add("scan")); x.at(1800, () => x.$("#o3").classList.remove("scan"));

      x.bars(1800, 1300); x.counts(1800, 1300, v => pct(v));

      const cs = CARD3(), w = cs.reduce((b, c, i) => c.p > cs[b].p ? i : b, 0);

      x.at(3200, () => x.$$("[data-c]").forEach((el, i) => el.classList.add(i === w ? "win" : "lose"))); } },



  { name: "๋Œ€ํ™”", dur: 10800, aura: ["#3f7dff", "#20d3ad", "#6d5dfc"], cap: "ํ•„์š”ํ•œ ๋„๊ตฌ๋ฅผ ๊ณ ๋ฅด๊ณ , ์—†๋Š” ๊ธฐ๋Šฅ์€ ์ง€์–ด๋‚ด์ง€ ์•Š์Šต๋‹ˆ๋‹ค.",

    html: i => `${K(i, "๋Œ€ํ™”๊ฐ€ ์ด์–ด์ง€๋ฉด")}${HL("ํ•  ์ผ์ด๋ฉด ํ•˜๊ณ , *๋ชป ํ•˜๋ฉด ๋ชป ํ•œ๋‹ค๊ณ *")}

      <div class="turns">${TURNS.slice(1, 4).map((t, j) => { const d = t.d, b = 900 + j * 2900;

        const [ic, lb, k] = d.kind === "CALL" ? [...TOOL[d.tool], "call"] : d.kind === "ASK" ? ["help", "๋˜๋ฌป๊ธฐ", "ask"] : ["chat", "ํ•  ์ˆ˜ ์—†๋‹ค๊ณ  ์•ˆ๋‚ด", "respond"];

        const note = d.kind === "RESPOND" ? `<div class="nt">์—ฐ๊ฒฐ๋œ ๋„๊ตฌ: ${LIVE.state.enabled.map(n => TOOL[n][1]).join(" ยท ")} โ€” ์ฃผ์‹ ๋งค๋งค ๋„๊ตฌ๋Š” ์—†์Œ</div>` : "";

        return `<div class="turn"><div class="ub glass" data-in="${b}">โ€œ${esc(t.u)}โ€</div>${CONN(b + 500)}

          <div class="dec glass k-${k}" data-in="${b + 900}"><div class="itile">${I(ic)}</div><div class="lb"><small>${d.kind}</small>${lb}</div><span class="pct" data-n="${d.conf}" data-t="${b + 1100}">0%</span>

          <div class="bar"><i data-w="${d.conf}" data-t="${b + 1100}"></i></div>${note}</div></div>`; }).join("")}</div>`,

    play(x) { x.bars(null, 1000); x.counts(null, 1000, v => pct(v)); } },



  { name: "์†Œ๊ฐœ", dur: 8200, aura: BRAND, cap: "๊ธด ๊ธ€์„ ์“ฐ๋Š” ๋Œ€์‹ , ์ฃผ์–ด์ง„ ๋ณด๊ธฐ ์ค‘ ํ•˜๋‚˜๋ฅผ ๋น ๋ฅด๊ณ  ์ •ํ™•ํ•˜๊ฒŒ ๊ณ ๋ฆ…๋‹ˆ๋‹ค.",

    html: () => `<div class="center">

      <div data-in="200">${MARK("markbig")}</div>

      <div class="wm" data-in="900"><span class="a">KJH-Judge</span><span class="b">-4B-ko</span></div>

      <div class="tag words" data-in="1700">${H("ํ•œ๊ตญ์–ด๋กœ *ํŒ๋‹จ*๋งŒ ํ•˜๋Š” ์ž‘์€ ๋ชจ๋ธ")}</div>

      <div class="facts">

        <div class="fact glass k-call" data-in="2600"><div class="itile">${I("cpu")}</div><b>4B</b><span>40์–ต ํŒŒ๋ผ๋ฏธํ„ฐ ยท Qwen3-4B ๊ธฐ๋ฐ˜</span></div>

        <div class="fact glass k-respond" data-in="2850"><div class="itile">${I("clock")}</div><b>${D.train.gpu_hours.toFixed(1)}์‹œ๊ฐ„</b><span>GPU ํ•™์Šต ยท ${D.train.steps.toLocaleString()}์Šคํ…</span></div>

        <div class="fact glass k-hi" data-in="3100"><div class="itile">${I("target")}</div><b>2~26๊ฐœ</b><span>๋ณด๊ธฐ ์ค‘ ํ•˜๋‚˜ + ํ™•๋ฅ </span></div>

      </div></div>` },



  { name: "ํ•™์Šต ์ „ํ›„", dur: 11200, aura: ["#ff6b5e", "#3f7dff", "#6d5dfc"], cap: "ํ•™์Šต ์ „์—” ๊ฑฐ์˜ โ€˜Aโ€™๋งŒ ์ฐ๋˜ ๋ชจ๋ธ์ด, ์—ด ๋ฌธ์ œ ์ค‘ ์•„ํ™‰์„ ๋งžํž™๋‹ˆ๋‹ค.",

    html: i => { const N = 60, aShare = D.base_pred_letters.A / D.base_pooled.n, tot = D.pooled.n, L = Object.entries(D.pred_letters).sort((a, b) => b[1] - a[1]);

      let cells = []; L.forEach(([l, c]) => { for (let k = 0; k < Math.round(c / tot * N); k++) cells.push(l); }); cells = cells.slice(0, N); while (cells.length < N) cells.push(L[0][0]);

      cells = cells.map((c, j) => [c, (j * 37) % N]).sort((a, b) => a[1] - b[1]).map(c => c[0]);

      return `${K(i, `๊ฐ™์€ ํ•œ๊ตญ์–ด ๋ฌธ์ œ ${D.pooled.n.toLocaleString()}๊ฐœ ยท 22๊ฐœ ๊ณผ๋ชฉ`)}${HL("โ€˜Aโ€™๋งŒ ์ฐ๋˜ ๋ชจ๋ธ์ด, *์—ด์— ์•„ํ™‰*์„ ๋งžํžˆ๊ธฐ๊นŒ์ง€")}

      <div class="vs">

        <div class="side glass before" data-in="500"><span class="lab">ํ•™์Šต ์ „ ยท Qwen3-4B ๊ทธ๋Œ€๋กœ</span>

          <div class="tiles" data-tiles="1000">${Array.from({ length: N }, (_, j) => `<span style="--i:${j}">A</span>`).join("")}</div>

          <div class="note">๋‹ต์˜ <b>${pct(aShare)}</b>๊ฐ€ ๊ทธ๋ƒฅ โ€˜Aโ€™</div>

          <div class="bign" data-n="${D.base_pooled.acc}" data-t="2000" data-d="900">0%</div><div class="sub">์ •๋‹ต๋ฅ  ยท ๋ฌด์ž‘์œ„๋กœ ์ฐ๊ธฐ(${pct(D.pooled.chance)})์™€ ๊ฐ™์€ ์ˆ˜์ค€</div></div>

        <div class="mid" data-in="3300"><div class="ring">${I("arrow")}</div>๋ฏธ์„ธ์กฐ์ •<br>${D.train.steps.toLocaleString()}์Šคํ…</div>

        <div class="side glass after" data-in="3700"><span class="lab">ํ•™์Šต ํ›„ ยท ${NAME}</span>

          <div class="tiles" data-tiles="4200">${cells.map((c, j) => `<span style="--i:${j};--h:${255 - (c.charCodeAt(0) - 65) * 11}">${c}</span>`).join("")}</div>

          <div class="note">๋ฌธ์ œ๋งˆ๋‹ค ๋‚ด์šฉ์„ ์ฝ๊ณ  <b>A~K</b>๋ฅผ ๊ณ ๋ฃจ ๊ณ ๋ฆ„</div>

          <div class="bign" data-n="${D.pooled.acc}" data-t="5300" data-d="1900">0%</div><div class="sub">์ •๋‹ต๋ฅ  ยท ์—ด ๋ฌธ์ œ ์ค‘ ์•„ํ™‰</div></div>

      </div>`; },

    play(x) { x.$$("[data-tiles]").forEach(el => x.at(+el.dataset.tiles, () => el.classList.add("on"))); x.counts(null, null, v => pct(v)); } },



  { name: "ํ•œ๊ตญ์–ด", dur: 15200, aura: ["#ffd36b", "#20d3ad", "#3f7dff"], cap: "๋™์Œ์ด์˜์–ด, ์›์ธ๊ณผ ๊ฒฐ๊ณผ, ๋‰ด์Šค ๋ถ„์•ผ๊นŒ์ง€ โ€” ๋งฅ๋ฝ์„ ์ฝ๊ณ  ํŒ๋‹จํ•ฉ๋‹ˆ๋‹ค.",

    html: i => { const hl = s => esc(s).replace(/\[(.+?)\]/g, "<mark>$1</mark>");

      const opts = (q, b, top) => { let idx = q.choices.map((_, j) => j); if (top) idx = idx.sort((a, c) => q.jev.probs[c] - q.jev.probs[a]).slice(0, top);

        let h = idx.map(j => `<div class="op" data-op="${j === q.jev.pick ? "pick" : "rest"}" data-r="${b + 2700}"><span class="t">${esc(q.choices[j])}</span><span class="pct" data-n="${q.jev.probs[j]}" data-t="${b + 1300}">0%</span><div class="bar"><i data-w="${q.jev.probs[j]}" data-t="${b + 1300}" style="--c:${j === q.jev.pick ? "var(--good)" : "#59637a"}"></i></div></div>`).join("");

        if (top && q.choices.length > top) { const rest = 1 - idx.reduce((s, j) => s + q.jev.probs[j], 0); h += `<div class="op" data-op="rest" data-r="${b + 2700}"><span class="t" style="color:var(--muted)">๊ทธ ์™ธ ${q.choices.length - top}๊ฐœ ๋ถ„์•ผ</span><span class="pct" style="color:var(--muted)" data-n="${rest}" data-t="${b + 1300}">0%</span></div>`; }

        return h; };

      const foot = (q, b) => `<div class="foot" data-in="${b + 2800}">${q.jev.pick === q.gold ? `<span class="badge k-good">${I("check")} ์ •๋‹ต</span>` : `<span class="badge k-bad">${I("x")} ์˜ค๋‹ต</span>`}<span>${I("zap")} ${sec(q.jev.ms)}</span></div>`;

      const B = [700, 5300, 9900];

      return `${K(i, "ํ•œ๊ตญ์–ด, ์–ผ๋งˆ๋‚˜ ์•Œ์•„๋“ค์„๊นŒ? ยท ๋ฌธ์ œ ์ถœ์ฒ˜ KoBESTยทKLUE (CC BY-SA 4.0)")}${HL("์‚ฌ๋žŒ๋„ *์ž ๊น ๋ฉˆ์นซํ•˜๋Š”* ๋ฌธ์ œ๋“ค")}

      <div class="qs">

        <div class="qc glass" data-in="${B[0]}"><span class="qtag">๊ฐ™์€ ๋‹จ์–ด, ๊ฐ™์€ ๋œป์ผ๊นŒ?</span><div class="qb"><p>โ‘  ${hl(QWIC.item.context_1)}</p><p>โ‘ก ${hl(QWIC.item.context_2)}</p></div>${opts(QWIC, B[0])}${foot(QWIC, B[0])}</div>

        <div class="qc glass" data-in="${B[1]}"><span class="qtag">๊ทธ ${esc(QCOPA.item.relation_to_select)}๋Š”?</span><div class="qb"><p>${esc(QCOPA.item.premise)}</p><small>๋” ๊ทธ๋Ÿด๋“ฏํ•œ ${esc(QCOPA.item.relation_to_select)}๋ฅผ ๊ณ ๋ฅด์„ธ์š”</small></div>${opts(QCOPA, B[1])}${foot(QCOPA, B[1])}</div>

        <div class="qc glass" data-in="${B[2]}"><span class="qtag">์–ด๋А ๋ถ„์•ผ ๋‰ด์Šค์ผ๊นŒ?</span><div class="qb"><p>โ€œ${esc(QNEWS.item.headline)}โ€</p><small>๋ณด๊ธฐ ${QNEWS.choices.length}๊ฐœ ยท ${QNEWS.choices.map(esc).join(" ยท ")}</small></div>${opts(QNEWS, B[2], 2)}${foot(QNEWS, B[2])}</div>

      </div>`; },

    play(x) { x.bars(null, 1000); x.counts(null, 1000, v => pct(v)); x.$$("[data-op=rest]").forEach(el => x.at(+el.dataset.r, () => el.classList.add("dim"))); } },



  { name: "๊ณ ๊ฐ์„ผํ„ฐ", dur: 12200, aura: ["#ff6b5e", "#20d3ad", "#6d5dfc"], cap: "AI๋Š” ์‚ฌ์•ˆ๊ณผ ๊ฐ์ •์„ ๊ณ ๋ฅด๊ณ , ๋‹ด๋‹น ๋ถ€์„œ์™€ ๊ธด๊ธ‰๋„๋Š” ๊ณต๊ฐœ๋œ ๊ทœ์น™ํ‘œ๊ฐ€ ์ •ํ•ฉ๋‹ˆ๋‹ค.",

    html: i => { const MOOD = SN.AXES.find(a => a.key === "mood").choices, UK = ["bad", "ask", "good"];

      const row = (it, b, ic) => { const c = SN.CASES[it.axes.case.pick], m = it.axes.mood;

        return `<div class="row"><div class="msg glass" data-in="${b}"><div class="h"><i></i>๊ณ ๊ฐ ๋ฌธ์˜</div><div class="t">โ€œ${esc(it.text)}โ€</div></div>

          <div class="chips"><div class="chip glass" data-in="${b + 1100}"><span class="k">์‚ฌ์•ˆ</span><span class="v">${esc(c.label)}</span><span class="pct" data-n="${it.axes.case.conf}" data-t="${b + 1200}">0%</span></div>

            <div class="chip glass" data-in="${b + 1500}"><span class="k">๊ฐ์ •</span><span class="v">${esc(MOOD[m.pick])}</span><span class="pct" data-n="${m.conf}" data-t="${b + 1600}">0%</span></div></div>

          ${CONN(b + 2200)}

          <div class="route glass k-${UK[c.urgency]}" data-in="${b + 2700}"><div class="itile">${I(ic)}</div><div class="d">${esc(c.dept)}ํŒ€</div><div class="u">${SN.URGENCY[c.urgency]}</div><div class="s">๊ทœ์น™ํ‘œ๋กœ ๊ฒฐ์ •</div></div></div>`; };

      return `${K(i, "๊ณ ๊ฐ์„ผํ„ฐ๋ผ๋ฉด")}${HL("๋ฌธ์˜๋ฅผ ์ฝ๊ณ , ๋‚˜๋ˆ„๊ณ , *๋ฐ”๋กœ ๋ณด๋ƒ…๋‹ˆ๋‹ค*")}

        <div class="rows">${row(IN_HACK, 800, "shield")}${row(IN_THANK, 5600, "heart")}</div>`; },

    play(x) { x.counts(null, 800, v => pct(v, 0)); } },



  { name: "ํ™•์‹ ", dur: 13200, aura: ["#ffb44d", "#ff6b5e", "#6d5dfc"], cls: "s-unsure", cap: "ํ™•์‹  ์ˆซ์ž๋ฅผ ๋ฏฟ์„ ์ˆ˜ ์žˆ์œผ๋‹ˆ, ๋‚ฎ์„ ๋•Œ๋งŒ ์‚ฌ๋žŒ์ด ๋ณด๋ฉด ๋ฉ๋‹ˆ๋‹ค.",

    html: i => { const pr = IN_PAY.axes.case.probs, top = pr.map((p, j) => [p, j]).sort((a, b) => b[0] - a[0]).slice(0, 3), conf = IN_PAY.axes.case.conf, TH = 0.7;

      const gold = GOLD_PAY.length ? SN.CASES[GOLD_PAY[0]].label : null, right = GOLD_PAY.includes(IN_PAY.axes.case.pick);

      // ๋ฐ˜์› ๊ฒŒ์ด์ง€: ์ค‘์‹ฌ (220,230), ๋ฐ˜์ง€๋ฆ„ 190

      const cx = 220, cy = 230, R = 190, ang = p => Math.PI * (1 - p), pt = (p, r) => [cx + r * Math.cos(ang(p)), cy - r * Math.sin(ang(p))];

      const [t1x, t1y] = pt(TH, R - 26), [t2x, t2y] = pt(TH, R + 26), [lx, ly] = pt(TH, R + 52);

      const arc = `M${cx - R} ${cy} A${R} ${R} 0 0 1 ${cx + R} ${cy}`;

      return `${K(i, `${SHORT}๋„ ํ—ท๊ฐˆ๋ฆด ๋•Œ`)}${HL("๋ชจ๋ฅด๋ฉด, *๋ชจ๋ฅธ๋‹ค๊ณ * ๋งํ•ฉ๋‹ˆ๋‹ค")}

      <div class="unsure">

        <div class="ucol"><div class="msg glass" data-in="500"><div class="h"><i></i>๊ณ ๊ฐ ๋ฌธ์˜</div><div class="t">โ€œ${esc(IN_PAY.text)}โ€</div></div>

          <div class="cands glass" data-in="1100">${top.map(([p, j], k) => `<div class="op"><span class="t">${esc(SN.CASES[j].label)}</span><span class="pct" data-n="${p}" data-t="1300">0%</span><div class="bar"><i data-w="${p}" data-t="1300" style="--c:${k === 0 ? "var(--ask)" : "#59637a"}"></i></div></div>`).join("")}</div>

          <div class="calib glass" data-in="7600"><div><div class="n" data-n="${D.pooled.mean_conf}" data-t="7800">0%</div><div class="l">๋ชจ๋ธ์ด ๋งํ•œ ํ‰๊ท  ํ™•์‹ </div></div><div class="eq">โ‰ˆ</div>

            <div><div class="n" data-n="${D.pooled.acc}" data-t="7800">0%</div><div class="l">์‹ค์ œ ์ •๋‹ต๋ฅ  ยท ${D.pooled.n.toLocaleString()}๋ฌธํ•ญ</div></div>

            <div class="say">ํ™•์‹  ์ˆซ์ž๊ฐ€ ์‹ค์ œ์™€ ๊ฑฐ์˜ ๊ฐ™์•„<br>๊ธฐ์ค€์„ ์„ ๊ฑธ์–ด ๋‘๊ณ  ์“ธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค</div></div></div>

        <div class="gauge glass" data-in="2200"><div class="lab2">1์ˆœ์œ„ ํŒ๋‹จ์˜ ํ™•์‹ </div>

          <div class="gwrap"><svg viewBox="0 0 440 250"><path d="${arc}" stroke="rgba(255,255,255,.08)" stroke-width="30" fill="none" stroke-linecap="round"/>

            <path id="arcv" d="${arc}" pathLength="100" stroke="url(#gA)" stroke-width="30" fill="none" stroke-linecap="round" stroke-dasharray="100" stroke-dashoffset="100" style="filter:drop-shadow(0 0 14px rgba(255,170,70,.55))"/>

            <line x1="${t1x}" y1="${t1y}" x2="${t2x}" y2="${t2y}" stroke="#fff" stroke-width="3.5" stroke-linecap="round"/>

            <text class="gth" x="${lx}" y="${ly}" text-anchor="middle">์ž๋™ ์ฒ˜๋ฆฌ ๊ธฐ์ค€ ${pct(TH, 0)}</text></svg>

            <div class="gnum" data-n="${conf}" data-t="2500" data-d="1200">0%</div></div>

          <div class="hold" data-in="4100">${I("pause")} ์ž๋™ ์ฒ˜๋ฆฌ ๋ณด๋ฅ˜ ${I("arrow")} ${I("user")} ์‚ฌ๋žŒ ์ƒ๋‹ด์‚ฌ</div>

          ${gold ? `<div class="truth" data-in="5600">${right ? "์ด๋ฒˆ 1์ˆœ์œ„๋Š” ๋งž์•˜์ง€๋งŒ, ์Šค์Šค๋กœ ํ™•์‹ ์ด ๋‚ฎ๋‹ค๊ณ  ์•Œ๋ ธ์Šต๋‹ˆ๋‹ค." : `์‹ค์ œ ์ •๋‹ต์€ <b>โ€˜${esc(gold)}โ€™</b>.<br>1์ˆœ์œ„๋Š” ํ‹€๋ ธ๊ณ , <b>๊ทธ๋ž˜์„œ ๋„˜๊ธด ๊ฒŒ ๋งž์•˜์Šต๋‹ˆ๋‹ค.</b>`}</div>` : ""}</div>

      </div>`; },

    play(x) { x.bars(null, 1000); x.counts(null, 1000, v => pct(v)); const a = x.$("#arcv"), c = IN_PAY.axes.case.conf; x.tween(2500, 1200, p => a.setAttribute("stroke-dashoffset", 100 - c * 100 * p)); } },



  { name: "์ˆœ์œ„", dur: 12200, aura: ["#ffd36b", "#6d5dfc", "#2b9fff"], cap: "๊ณต๊ฐœ ๋ฒค์น˜๋งˆํฌ ํ‘œ์˜ 4B ๋ชจ๋ธ ์ค‘ ๊ฐ€์žฅ ๋†’๊ณ , 27B๊ธ‰ ๋ชจ๋ธ๊ณผ ๋‚˜๋ž€ํžˆ ์„ญ๋‹ˆ๋‹ค.",

    html: i => { const rows = [["Gemma 4 31B", "31B", 94.40], ["Decision 2.0 Vega 27B", "27B", 92.38], ["Gemma 4 26B-A4B", "26B", 90.37], ["Gemma 4 12B", "12B", 89.58], ["Cygnet ยท Gemma 12B", "12B", 89.18],

        ["Qwen3.8 27B", "27B", 89.02], ["JEV 1.13 ยท hosted API", "API", 88.93], ["K-Decision 4B", "4B", 85.41], ["Mica v0.1 4B", "4B", 81.47], ["Qwen3.5 4B", "4B", 78.77]];

      rows.push([`${NAME} (์ด ๋ชจ๋ธ)`, "4B", D.pooled.acc * 100, true]); rows.sort((a, b) => b[2] - a[2] || (a[3] ? 1 : 0) - (b[3] ? 1 : 0));  // ๋™์ ์ด๋ฉด ์ด ๋ชจ๋ธ์„ ์•„๋ž˜์—

      return `${K(i, `๊ณต๊ฐœ ํ•œ๊ตญ์–ด ํŒ๋‹จ ๋ฒค์น˜๋งˆํฌ ยท ${D.pooled.n.toLocaleString()}๋ฌธํ•ญ`)}${HL("๋ฉ์น˜ *7๋ฐฐ* ๋ชจ๋ธ๋“ค๊ณผ ๊ฐ™์€ ์ค„์—")}

      <div class="board">${rows.map((r, j) => `<div class="lr ${r[3] ? "me" : ""} ${r[1] === "4B" ? "small" : ""}" data-in="${600 + j * 110}"><span class="rk">${String(j + 1).padStart(2, "0")}</span><span class="nm">${esc(r[0])}</span><span class="sz">${r[1]}</span>

        <div class="bar"><i data-w="${(r[2] - 70) / 30}" data-t="${1000 + j * 110}"></i></div><span class="pct" data-n="${r[2] / 100}" data-t="${1000 + j * 110}">0%</span></div>`).join("")}</div>

      <div class="fine" data-in="2800">์ถœ์ฒ˜: Korean JEV Benchmark ๊ณต๊ฐœ ํ‘œ(2026-10-09)์˜ ํ•œ๊ตญ์–ด ์ •ํ™•๋„, ๋ง‰๋Œ€๋Š” 70~100% ๊ตฌ๊ฐ„. ๋‹ค๋ฅธ ๋ชจ๋ธ์€ ์ถ”๊ฐ€ ํ•™์Šต ์—†๋Š” ์ œ๋กœ์ƒท์ด๊ณ , ${NAME}์€ ๊ฐ™์€ ์ถœ์ฒ˜ ๋ฐ์ดํ„ฐ์˜ ํ•™์Šต ๋ถ„ํ• ๋กœ ๋ฏธ์„ธ์กฐ์ •ํ–ˆ์Šต๋‹ˆ๋‹ค โ€” ๊ฐ™์€ ์กฐ๊ฑด์˜ ๋น„๊ต๊ฐ€ ์•„๋‹ˆ๋ฉฐ, ์˜์–ด ์„ฑ๋Šฅ์€ ์ธก์ •ํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.</div>`; },

    play(x) { x.bars(null, 1300); x.counts(null, 1300, v => (v * 100).toFixed(2) + "%"); } },



  { name: "์†๋„", dur: 11200, aura: ["#20d3ad", "#2b9fff", "#6d5dfc"], cap: "๋‰ด์Šค ์ œ๋ชฉ์ด ๋œจ์ž๋งˆ์ž, ํ˜ธ์žฌ์ธ์ง€ ์•…์žฌ์ธ์ง€ ํŒ๋‹จํ•ฉ๋‹ˆ๋‹ค.",

    html: i => `${K(i, "์†๋„")}${HL(`ํŒ๋‹จ ํ•œ ๋ฒˆ, *${(MED / 1000).toFixed(2)}์ดˆ*`)}

      <div class="speed"><div class="ticker glass" id="tick" data-in="400"></div>

        <div class="spr"><div class="spbox glass" data-in="700"><div class="big"><span data-n="${MED}" data-t="900" data-d="1000">0</span><small>ms</small></div><div class="l">ํŒ๋‹จ 1๋ฒˆ ๊ณ„์‚ฐ ์‹œ๊ฐ„ (๋„คํŠธ์›Œํฌ ์™•๋ณต ์ œ์™ธ)<br>GPU 1์žฅ ยท ์ €์žฅ๋œ ์˜ˆ์‹œ ํŒ์ • ${MS.length}๊ฑด์˜ ์ค‘์•™๊ฐ’</div></div>

          <div class="cnt glass" data-in="1100"><div><b id="tkn">0</b><span>๊ฐ€์ƒ ํšŒ์‚ฌ ๋‰ด์Šค<br>ํŒ์ • ๊ฑด์ˆ˜</span></div><div class="g"><b id="tkh">0</b><span>๋ฏธ๋ฆฌ ์ •ํ•ด ๋‘”<br>๋‹ต๊ณผ ์ผ์น˜</span></div></div></div></div>`,

    play(x) { const box = x.$("#tick"), LAB = [["ํ˜ธ์žฌ", "up", "up"], ["์•…์žฌ", "dn", "down"], ["์˜ํ–ฅ ์ ์Œ", "nn", "minus"]]; let hit = 0;

      x.counts(null, null, v => Math.round(v));

      NEWS.forEach((n, j) => x.at(1000 + j * 210, () => { const ok = [1, -1, 0][n.r.pick] === n.impact; if (ok) hit++; const L = LAB[n.r.pick];

        const el = document.createElement("div"); el.className = "tk " + L[1];

        el.innerHTML = `<span class="tr">${I(L[2])}</span><span class="ti">${esc(n.title)}</span><span class="tg">${L[0]}</span><span class="ck" style="color:var(--${ok ? "good" : "bad"})">${I(ok ? "check" : "x")}</span>`;

        box.prepend(el); while (box.children.length > 10) box.lastChild.remove();

        x.$("#tkn").textContent = j + 1; x.$("#tkh").textContent = hit; })); } },



  { name: "๋งˆ๋ฌด๋ฆฌ", dur: 9500, aura: BRAND, cap: "",

    html: () => `<div class="center">

      <div data-in="200">${MARK("markbig")}</div>

      <div class="wm" data-in="900"><span class="a">KJH-Judge</span><span class="b">-4B-ko</span></div>

      <div class="tag words" data-in="1700">${H("๊ณ ๋ฅด๋Š” ์ผ์€, *KJH-Judge*์—๊ฒŒ.")}</div>

      <div class="facts">

        <div class="fact glass k-call" data-in="2600"><div class="itile">${I("target")}</div><b>${pct(D.pooled.acc)}</b><span>ํ•œ๊ตญ์–ด ํŒ๋‹จ ์ •ํ™•๋„ ยท ${D.pooled.n.toLocaleString()}๋ฌธํ•ญ</span></div>

        <div class="fact glass k-respond" data-in="2850"><div class="itile">${I("zap")}</div><b>${(MED / 1000).toFixed(2)}์ดˆ</b><span>ํŒ๋‹จ 1๋ฒˆ ๊ณ„์‚ฐ ยท GPU 1์žฅ</span></div>

        <div class="fact glass k-hi" data-in="3100"><div class="itile">${I("cpu")}</div><b>4B</b><span>์ž‘์•„์„œ ๋‚ด ์„œ๋ฒ„์—์„œ ์ง์ ‘ ์šด์˜</span></div>

      </div>

      <div class="try" data-in="3900">${I("play")} ์ง์ ‘ ํ•ด ๋ณด๊ธฐ ยท <b>${esc(TRY)}</b></div></div>` },

];



/* โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ์žฌ์ƒ ์—”์ง„ (์ž์ฒด ์‹œ๊ณ„: ์ผ์‹œ์ •์ง€ยท์žฅ๋ฉด ์ด๋™์ด ์ •ํ™•) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */

const $ = s => document.querySelector(s), stage = $("#stage");

const P = new URLSearchParams(location.search);

const LOOP = P.get("loop") === "1", HOLD = P.get("hold") === "1";

if (P.get("cap") === "0") document.body.classList.add("nocap");

if (P.get("clean") === "1") document.body.classList.add("clean");

let cur = 0, t = 0, paused = false, cues = [], tweens = [], sceneEl = null, camEl = null, last = performance.now();

const easeOut = p => 1 - Math.pow(1 - p, 3), lin = p => p;



$("#brand").innerHTML = MARK("on") + `<b>${SHORT}</b><span class="pl">4B ยท ko</span>`;

$("#chapall").textContent = String(SCENES.length).padStart(2, "0");

$("#segs").innerHTML = SCENES.map(() => "<span><i></i></span>").join("");



function makeCtx(root) {

  const x = {

    $: s => root.querySelector(s), $$: s => [...root.querySelectorAll(s)],

    at(ms, fn) { cues.push({ ms, fn, done: false }); },

    tween(ms, dur, fn, ease = easeOut) { tweens.push({ ms, dur, fn, ease, done: false }); },

    bars(start, dur) { x.$$("[data-w]").forEach(el => { const s = el.dataset.t ? +el.dataset.t : start, d = el.dataset.d ? +el.dataset.d : dur, w = Math.max(0, Math.min(1, +el.dataset.w));

      x.tween(s, d, p => el.style.width = w * p * 100 + "%"); }); },

    counts(start, dur, fmt) { x.$$("[data-n]").forEach(el => { const s = el.dataset.t ? +el.dataset.t : start, d = el.dataset.d ? +el.dataset.d : dur, n = +el.dataset.n;

      x.tween(s, d, p => el.textContent = fmt(n * p)); }); },

  };

  return x;

}

function go(i) {

  cur = (i + SCENES.length) % SCENES.length; t = 0; cues = []; tweens = [];

  if (sceneEl) { const old = sceneEl; old.classList.add("leaving"); setTimeout(() => old.remove(), 560); }

  const sc = SCENES[cur], el = document.createElement("div"); el.className = "scene";

  el.innerHTML = `<div class="cam ${sc.cls || ""}">${sc.html(cur)}</div>`;

  stage.insertBefore(el, $("#cap")); sceneEl = el; camEl = el.firstChild;

  const x = makeCtx(el);

  x.$$("[data-in]").forEach(n => x.at(+n.dataset.in, () => n.classList.add("on")));

  x.$$("[data-type]").forEach(n => { const full = n.dataset.full, tt = n.querySelector(".tt"), sp = +n.dataset.sp;

    x.tween(+n.dataset.type, full.length * sp, p => tt.textContent = full.slice(0, Math.round(full.length * p)), lin); });

  if (sc.play) sc.play(x);

  const cap = $("#cap"); cap.classList.remove("on"); cap.textContent = sc.cap || ""; if (sc.cap) x.at(900, () => cap.classList.add("on"));

  (sc.aura || BRAND).forEach((c, k) => $("#aurora .b" + (k + 1)).style.backgroundColor = c);

  $("#chapn").textContent = String(cur + 1).padStart(2, "0"); $("#chapt").textContent = sc.name;

  cues.sort((a, b) => a.ms - b.ms);

  tick(0); renderHud();

}

function tick(dt) {

  if (!paused) t += dt;

  for (const c of cues) if (!c.done && t >= c.ms) { c.done = true; c.fn(); }

  for (const w of tweens) if (!w.done && t >= w.ms) { const p = Math.min(1, (t - w.ms) / w.dur); w.fn(w.ease(p)); if (p >= 1) w.done = true; }

  const dur = SCENES[cur].dur, prog = Math.min(1, t / dur);

  if (camEl) camEl.style.transform = `scale(${1 + 0.022 * prog})`;  // ์ฒœ์ฒœํžˆ ๋‹ค๊ฐ€๊ฐ€๋Š” ์นด๋ฉ”๋ผ

  document.querySelectorAll("#segs i").forEach((s, k) => s.style.width = (k < cur ? 100 : k === cur ? prog * 100 : 0) + "%");

  const lastScene = cur === SCENES.length - 1 && !LOOP && !HOLD;

  $("#fade").style.opacity = lastScene ? Math.max(0, Math.min(1, (t - (dur - 1500)) / 1300)) : 0;

  if (!paused && !HOLD && t >= dur) { if (cur < SCENES.length - 1) go(cur + 1); else if (LOOP) go(0); else t = dur; }

}

function loop(now) { const dt = Math.min(100, now - last); last = now; tick(dt); requestAnimationFrame(loop); }



function fit() { const s = Math.min(innerWidth / 1920, innerHeight / 1080); stage.style.transform = `translate(-50%,-50%) scale(${s})`; }

addEventListener("resize", fit); fit();



function setPause(v) { paused = v; $("#play").textContent = paused ? "โ–ถ๏ธŽ ์žฌ์ƒ" : "โšโš"; $("#pausebadge").hidden = !paused || document.body.classList.contains("clean"); }

function renderHud() { $("#dots").innerHTML = SCENES.map((s, i) => `<button class="${i === cur ? "cur" : ""}" data-g="${i}" title="${i + 1}. ${s.name}">${i + 1}</button>`).join(""); }

$("#dots").onclick = e => { const b = e.target.closest("[data-g]"); if (b) go(+b.dataset.g); };

$("#prev").onclick = () => go(cur - 1); $("#next").onclick = () => go(cur + 1); $("#play").onclick = () => setPause(!paused);

addEventListener("keydown", e => {

  if (e.ctrlKey || e.metaKey || e.altKey) return;

  const k = e.key;

  if (k === " ") { e.preventDefault(); setPause(!paused); }

  else if (k === "ArrowRight" || k === "PageDown") go(cur + 1);

  else if (k === "ArrowLeft" || k === "PageUp") go(cur - 1);

  else if (k === "r" || k === "R") { setPause(false); go(0); }

  else if (k === "h" || k === "H") { document.body.classList.toggle("clean"); setPause(paused); }

  else if (k === "c" || k === "C") document.body.classList.toggle("nocap");

  else if (k === "f" || k === "F") { document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen().catch(() => {}); }

  else if (/^[0-9]$/.test(k)) { const n = k === "0" ? 9 : +k - 1; if (n < SCENES.length) go(n); }

});

let idleT; addEventListener("mousemove", () => { document.body.classList.remove("idle"); clearTimeout(idleT); idleT = setTimeout(() => document.body.classList.add("idle"), 2200); });

idleT = setTimeout(() => document.body.classList.add("idle"), 2200);



const start = Math.max(0, Math.min(SCENES.length - 1, (+P.get("s") || 1) - 1));

(document.fonts ? Promise.race([document.fonts.ready, new Promise(r => setTimeout(r, 1800))]) : Promise.resolve()).then(() => { go(start);

  const at = +P.get("at") || 0; for (let k = 0; k < at; k += 50) tick(Math.min(50, at - k));  // ?at=ms : ์žฅ๋ฉด ์•ˆ์˜ ๊ทธ ์‹œ์ ์œผ๋กœ ์ด๋™

  last = performance.now(); requestAnimationFrame(loop); });

</script>
</body>
</html>