-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdagi_liga_natsu_2026.html
More file actions
844 lines (769 loc) · 48.5 KB
/
Copy pathdagi_liga_natsu_2026.html
File metadata and controls
844 lines (769 loc) · 48.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dagi Liga - Natsu Basho 2026 Analysis</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.1/chart.umd.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&family=Inter:wght@400;600;700&display=swap');
:root {
--bg: #0a0a12;
--card: #14142a;
--card-hover: #1e1e3a;
--accent: #ff6b6b;
--accent2: #4ecdc4;
--accent3: #ffe66d;
--gold: #ffd700;
--silver: #c0c0c0;
--bronze: #cd7f32;
--text: #eee;
--text-muted: #888;
--border: #2a2a4a;
--gradient1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--gradient2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Inter', 'Noto Sans JP', sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
}
.hero {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #e94560 100%);
padding: 60px 20px 40px;
text-align: center;
position: relative;
overflow: hidden;
}
.hero::before {
content: '夏場所';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 220px;
font-weight: 900;
opacity: 0.04;
font-family: 'Noto Sans JP', serif;
white-space: nowrap;
}
.hero h1 { font-size: 3em; font-weight: 900; letter-spacing: 2px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero h1 span { color: var(--accent3); }
.hero p { font-size: 1.2em; margin-top: 10px; opacity: 0.85; }
.hero .subtitle { font-family: 'Noto Sans JP', serif; font-size: 1.5em; margin-top: 5px; opacity: 0.6; }
.hero .badge {
display: inline-block;
background: rgba(255,255,255,0.15);
padding: 6px 18px;
border-radius: 20px;
margin-top: 15px;
font-size: 0.9em;
backdrop-filter: blur(10px);
}
.container { max-width: 1300px; margin: 0 auto; padding: 30px 20px; }
.section-title {
font-size: 1.8em;
font-weight: 700;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 3px solid var(--accent);
display: inline-block;
}
/* Podium */
.podium-section { text-align: center; margin-bottom: 50px; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 20px; margin: 30px auto; max-width: 700px; }
.podium-place { display: flex; flex-direction: column; align-items: center; flex: 1; }
.podium-bar {
width: 100%; border-radius: 10px 10px 0 0;
display: flex; flex-direction: column; justify-content: center; align-items: center;
padding: 20px 10px; font-weight: 700;
}
.podium-bar .rank { font-size: 2em; }
.podium-bar .pts { font-size: 1.3em; opacity: 0.85; margin-top: 5px; }
.podium-name { margin-top: 10px; font-size: 0.95em; text-align: center; }
.podium-owner { font-size: 0.8em; color: var(--text-muted); }
.p1 .podium-bar { background: linear-gradient(180deg, #ffd700, #b8860b); height: 200px; }
.p2 .podium-bar { background: linear-gradient(180deg, #c0c0c0, #808080); height: 160px; }
.p3 .podium-bar { background: linear-gradient(180deg, #cd7f32, #8b4513); height: 130px; }
/* Tables */
.standings-table {
width: 100%; border-collapse: collapse; margin: 20px 0;
background: var(--card); border-radius: 12px; overflow: hidden;
}
.standings-table th {
background: #1a1a3e; padding: 14px 16px; text-align: left;
font-weight: 700; font-size: 0.85em; text-transform: uppercase; letter-spacing: 1px;
}
.standings-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.standings-table tr:hover { background: var(--card-hover); }
.standings-table .rank-cell { font-weight: 700; font-size: 1.2em; width: 50px; text-align: center; }
.rank-1 { color: var(--gold); }
.rank-3 { color: var(--bronze); }
.day-cells { font-size: 0.85em; text-align: center; min-width: 38px; }
.day-best { background: rgba(78, 205, 196, 0.3); font-weight: 700; color: var(--accent2); border-radius: 4px; }
.day-worst { background: rgba(100, 100, 100, 0.2); color: var(--text-muted); }
.day-zero { background: rgba(255, 0, 0, 0.2); color: #f55; font-weight: 700; }
/* Charts */
.chart-container { background: var(--card); border-radius: 12px; padding: 25px; margin: 20px 0; }
.chart-wrapper { position: relative; height: 450px; }
/* Awards */
.awards-grid {
display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 20px; margin: 20px 0;
}
.award-card {
background: var(--card); border-radius: 16px; padding: 25px;
border-top: 4px solid var(--accent); transition: transform 0.2s; position: relative; overflow: hidden;
}
.award-card:hover { transform: translateY(-4px); }
.award-card::after {
content: ''; position: absolute; top: 0; right: 0; width: 100px; height: 100px;
background: radial-gradient(circle at top right, rgba(255,107,107,0.08), transparent 70%);
}
.award-card .award-icon { font-size: 2.5em; margin-bottom: 12px; }
.award-card .award-title { font-weight: 700; font-size: 1.15em; margin-bottom: 8px; color: var(--accent3); }
.award-card .award-winner { font-size: 1.3em; font-weight: 700; color: var(--accent2); margin-bottom: 8px; }
.award-card .award-body { color: var(--text-muted); line-height: 1.6; font-size: 0.95em; }
.award-card .award-stat { color: var(--text); font-weight: 600; }
.award-card.gold-border { border-top-color: var(--gold); }
.award-card.teal-border { border-top-color: var(--accent2); }
.award-card.pink-border { border-top-color: #f093fb; }
.award-card.red-border { border-top-color: #f5576c; }
/* Momentum sparklines */
.momentum-row { display: flex; gap: 3px; margin-top: 8px; flex-wrap: wrap; }
.momentum-block {
width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center;
justify-content: center; font-size: 0.65em; font-weight: 700;
}
/* H2H */
.h2h-controls { display: flex; gap: 15px; flex-wrap: wrap; margin: 20px 0; align-items: center; }
.h2h-controls select {
background: var(--card); color: var(--text); border: 1px solid var(--border);
padding: 10px 15px; border-radius: 8px; font-size: 1em; cursor: pointer;
}
.h2h-controls span { font-size: 1.2em; font-weight: 700; }
/* Rikishi */
.rikishi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 20px 0; }
.rikishi-card {
background: var(--card); border-radius: 8px; padding: 15px;
display: flex; justify-content: space-between; align-items: center;
}
.rikishi-card .name { font-weight: 600; font-size: 0.9em; }
.rikishi-card .rank-label { font-size: 0.75em; color: var(--text-muted); }
.rikishi-card .total { font-weight: 700; font-size: 1.3em; color: var(--accent); }
/* Yusho banner */
.yusho-banner {
background: linear-gradient(135deg, #4a0e0e 0%, #8b0000 35%, #d4af37 100%);
border-radius: 16px; padding: 30px; margin: 20px 0 35px;
border: 2px solid var(--gold); position: relative; overflow: hidden;
}
.yusho-banner::before {
content: '優勝'; position: absolute; top: -20px; right: -10px;
font-size: 140px; opacity: 0.12; font-family: 'Noto Sans JP', serif;
font-weight: 900;
}
.yusho-banner h2 { font-size: 1.6em; margin-bottom: 8px; color: var(--gold); }
.yusho-banner .winner-name { font-size: 2.2em; font-weight: 900; margin: 5px 0; }
.yusho-banner .winner-detail { font-size: 1em; opacity: 0.9; line-height: 1.7; margin-top: 10px; }
.yusho-banner .winner-detail strong { color: var(--accent3); }
/* Tabs */
.nav-tabs { display: flex; gap: 5px; margin-bottom: 25px; flex-wrap: wrap; }
.nav-tab {
padding: 10px 20px; background: var(--card); border: 1px solid var(--border);
border-radius: 8px; cursor: pointer; font-size: 0.95em; transition: all 0.2s;
}
.nav-tab:hover { background: var(--card-hover); }
.nav-tab.active { background: var(--accent); border-color: var(--accent); font-weight: 700; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.mini-bar {
display: inline-block; height: 18px; background: var(--accent);
border-radius: 3px; vertical-align: middle; margin-left: 5px; transition: width 0.3s;
}
.streak-badge {
display: inline-block; padding: 2px 8px; border-radius: 10px;
font-size: 0.75em; font-weight: 700; margin: 2px;
}
.streak-hot { background: rgba(255,107,107,0.2); color: #ff6b6b; }
.streak-cold { background: rgba(100,150,255,0.2); color: #6b9bff; }
@media (max-width: 768px) {
.hero h1 { font-size: 1.8em; }
.podium { gap: 10px; }
.chart-wrapper { height: 300px; }
.standings-table { font-size: 0.78em; }
.awards-grid { grid-template-columns: 1fr; }
.yusho-banner .winner-name { font-size: 1.6em; }
}
</style>
</head>
<body>
<div class="hero">
<a href="index.html" style="display:inline-flex; align-items:center; gap:6px; color:#eee; text-decoration:none; font-size:0.95em; opacity:0.7; transition:opacity 0.2s; margin-bottom:12px;" onmouseover="this.style.opacity='1'" onmouseout="this.style.opacity='0.7'">← Back to Season Overview</a>
<h1><span>Dagi Liga</span></h1>
<p>Fantasy Basho - Natsu 2026 Complete Analysis</p>
<div class="subtitle">夏場所 2026 - Tokyo · Ryōgoku Kokugikan</div>
<div class="badge">7 Teams | 15 Days | 42 Rikishi | 1 Champion | Yusho Playoff</div>
</div>
<div class="container">
<!-- YUSHO BANNER -->
<div class="yusho-banner">
<h2>🏆 Makuuchi Yusho — Wakatakakage (12-3)</h2>
<div class="winner-name">若隆景 Wakatakakage</div>
<div class="winner-detail">
East Komusubi · Arashio Stable · <strong>2nd career championship</strong> after a yusho-kettei-sen playoff against ozeki <strong>Kirishima</strong> (both finished 12-3). The 31-year-old completed his comeback arc from 2023 ACL surgery in a basho where <strong>both yokozuna sat out the entire tournament</strong>. Wakatakakage also took home the <strong>Ginosho (Technique Prize)</strong> — the 6th of his career.
<br><br>
<span style="opacity:0.85">Sansho special prizes: No Shukunsho awarded · Kantosho shared by <strong>Yoshinofuji (M2E, 11-4)</strong> and <strong>Hakunofuji (M10W, 11-4)</strong> · Ginosho to Wakatakakage.</span>
</div>
</div>
<div class="nav-tabs">
<div class="nav-tab active" onclick="showTab('overview',this)">Overview</div>
<div class="nav-tab" onclick="showTab('daily',this)">Day-by-Day</div>
<div class="nav-tab" onclick="showTab('cumulative',this)">The Race</div>
<div class="nav-tab" onclick="showTab('h2h',this)">Head-to-Head</div>
<div class="nav-tab" onclick="showTab('momentum',this)">Momentum</div>
<div class="nav-tab" onclick="showTab('rikishi',this)">Rikishi Stats</div>
<div class="nav-tab" onclick="showTab('awards',this)">Awards & Fun Facts</div>
</div>
<div id="tab-overview" class="tab-content active">
<div class="podium-section">
<div class="section-title">Final Standings</div>
<div class="podium">
<div class="podium-place p2">
<div class="podium-bar"><div class="rank">2</div><div class="pts">80 pts</div></div>
<div class="podium-name">Σούμο</div>
<div class="podium-owner">Márk Vrabély</div>
</div>
<div class="podium-place p1">
<div class="podium-bar"><div class="rank">1</div><div class="pts">83 pts</div></div>
<div class="podium-name">Tokazachi KSE</div>
<div class="podium-owner">Richard Fejes</div>
</div>
<div class="podium-place p3">
<div class="podium-bar"><div class="rank">T-3</div><div class="pts">70 pts</div></div>
<div class="podium-name">DigiDagi &<br>Kövér Uszoda</div>
<div class="podium-owner">Sándor / DJ_Pongo</div>
</div>
</div>
<p style="color:var(--accent3);margin-top:10px;font-weight:600">First yusho for Tokazachi KSE — wire-to-wire, after T-3 in Haru and 5th in Hatsu!</p>
</div>
<div id="standings-container"></div>
</div>
<div id="tab-daily" class="tab-content">
<div class="section-title">Daily Scores</div>
<div class="chart-container"><div class="chart-wrapper"><canvas id="dailyChart"></canvas></div></div>
<div id="daily-table-container"></div>
</div>
<div id="tab-cumulative" class="tab-content">
<div class="section-title">The Race - Cumulative Points</div>
<div class="chart-container"><div class="chart-wrapper"><canvas id="cumulativeChart"></canvas></div></div>
</div>
<div id="tab-h2h" class="tab-content">
<div class="section-title">Head-to-Head Comparison</div>
<div class="h2h-controls">
<select id="h2h-team1"></select><span>vs</span><select id="h2h-team2"></select>
</div>
<div class="chart-container"><div class="chart-wrapper"><canvas id="h2hChart"></canvas></div></div>
<div id="h2h-stats"></div>
</div>
<div id="tab-momentum" class="tab-content">
<div class="section-title">Momentum Tracker</div>
<p style="color:var(--text-muted);margin-bottom:20px">Each block shows a day's score. Green = above team average, red = below, dark = zero. Hover for details.</p>
<div id="momentum-container"></div>
<div class="chart-container" style="margin-top:25px"><div class="chart-wrapper"><canvas id="momentumChart"></canvas></div></div>
</div>
<div id="tab-rikishi" class="tab-content">
<div class="section-title">Rikishi Performance Rankings</div>
<div id="rikishi-container"></div>
</div>
<div id="tab-awards" class="tab-content">
<div class="section-title">Awards & Fun Facts</div>
<div id="awards-container" class="awards-grid"></div>
</div>
</div>
<script>
// ========== DATA ==========
const teams = [
{ name: "Tokazachi KSE", short: "Tokazachi KSE", owner: "Richard Fejes", daily: [8,8,4,8,4,4,6,4,4,8,2,6,4,6,7], color: "#f9c74f",
d15picks: ["Wakatakakage","Wakanosho","Kotoeiho","Fujiryoga"] },
{ name: "Σούμο", short: "Σούμο", owner: "Márk Vrabély", daily: [6,4,6,6,8,6,4,4,8,4,4,2,8,4,6], color: "#f8961e",
d15picks: ["Kirishima","Kotoshoho","Wakanosho","Fujiryoga"] },
{ name: "DigiDagi", short: "DigiDagi", owner: "Sándor Szilágyi", daily: [6,6,4,6,6,4,8,2,4,6,6,6,2,0,4], color: "#577590",
d15picks: ["Fujinokawa","Kirishima","Kotoeiho","Tobizaru"] },
{ name: "Kövér utcai Uszoda (szakvezető: Ferenczy Dzsákomó)", short: "Kövér Uszoda", owner: "DJ_Pongo_Pongo", daily: [6,4,6,6,8,4,6,2,6,4,4,4,4,2,4], color: "#43aa8b",
d15picks: ["Atamifuji","Shishi","Gonoyama","Asanoyama"] },
{ name: "Tokások", short: "Tokások", owner: "Dorka FJ", daily: [4,4,4,6,6,2,2,2,8,4,2,6,4,6,4], color: "#9b5de5",
d15picks: ["Takanosho","Atamifuji","Kotoeiho","Fujiryoga"] },
{ name: "Tokyo Töpörtyűk", short: "Töpörtyűk", owner: "Mátyás Fazakas", daily: [2,2,6,2,4,4,2,8,2,4,6,4,2,6,4], color: "#4ecdc4",
d15picks: ["Kotoshoho","Daieisho","Asahakuryu","Mitakeumi"] },
{ name: "best sumo team ever", short: "BSTE", owner: "Csilla Virág", daily: [2,4,2,4,4,4,2,2,6,4,4,8,2,2,4], color: "#ff6b6b",
d15picks: ["Takanosho","Hiradoumi","Shodai","Kotoeiho"] }
];
// Calculate derived stats
teams.forEach(t => {
t.total = t.daily.reduce((a,b) => a+b, 0);
t.cumulative = []; let sum = 0;
t.daily.forEach(d => { sum += d; t.cumulative.push(sum); });
t.avg = (t.total / 15);
t.best = Math.max(...t.daily);
t.worst = Math.min(...t.daily);
t.bestDay = t.daily.indexOf(t.best) + 1;
t.worstDay = t.daily.indexOf(t.worst) + 1;
t.stdev = Math.sqrt(t.daily.reduce((a,d) => a + Math.pow(d - t.avg, 2), 0) / 15);
// Streaks
t.hotStreak = 0; t.coldStreak = 0;
let hs = 0, cs = 0;
t.daily.forEach(d => {
if(d >= t.avg) { hs++; cs = 0; } else { cs++; hs = 0; }
t.hotStreak = Math.max(t.hotStreak, hs);
t.coldStreak = Math.max(t.coldStreak, cs);
});
// First half vs second half
t.firstHalf = t.daily.slice(0,7).reduce((a,b) => a+b, 0);
t.secondHalf = t.daily.slice(7).reduce((a,b) => a+b, 0);
t.winDays = 0;
});
const sorted = [...teams].sort((a,b) => b.total - a.total);
for(let d = 0; d < 15; d++) {
const maxD = Math.max(...teams.map(t => t.daily[d]));
teams.forEach(t => { if(t.daily[d] === maxD) t.winDays++; });
}
const dayLabels = ['D1','D2','D3','D4','D5','D6','D7','D8','D9','D10','D11','D12','D13','D14','D15'];
// Fantasy points by rikishi (raw from Fantasizr Stats page; "wins" counts ×1 per pick per actual win across all rosters)
const rikishiStats = [
{name:"Wakatakakage",rank:"KE",wins:26,kinboshi:0,prizes:1,total:27},
{name:"Kirishima",rank:"O2E",wins:24,kinboshi:0,prizes:0,total:24},
{name:"Yoshinofuji",rank:"M2E",wins:22,kinboshi:0,prizes:1,total:23},
{name:"Hakunofuji",rank:"M10W",wins:22,kinboshi:0,prizes:1,total:23},
{name:"Ura",rank:"M11E",wins:20,kinboshi:0,prizes:0,total:20},
{name:"Kotoeiho",rank:"M13E",wins:20,kinboshi:0,prizes:0,total:20},
{name:"Fujiryoga",rank:"M17E",wins:20,kinboshi:0,prizes:0,total:20},
{name:"Atamifuji",rank:"SE",wins:18,kinboshi:0,prizes:0,total:18},
{name:"Kotoshoho",rank:"SW",wins:18,kinboshi:0,prizes:0,total:18},
{name:"Churanoumi",rank:"M6E",wins:18,kinboshi:0,prizes:0,total:18},
{name:"Roga",rank:"M14W",wins:18,kinboshi:0,prizes:0,total:18},
{name:"Tobizaru",rank:"M15E",wins:18,kinboshi:0,prizes:0,total:18},
{name:"Wakanosho",rank:"M16E",wins:18,kinboshi:0,prizes:0,total:18},
{name:"Oho",rank:"M3W",wins:17,kinboshi:0,prizes:0,total:17},
{name:"Gonoyama",rank:"M4W",wins:16,kinboshi:0,prizes:0,total:16},
{name:"Oshoma",rank:"M8E",wins:16,kinboshi:0,prizes:0,total:16},
{name:"Mitakeumi",rank:"M14E",wins:16,kinboshi:0,prizes:0,total:16},
{name:"Fujinokawa",rank:"M1E",wins:14,kinboshi:0,prizes:0,total:14},
{name:"Takanosho",rank:"M1W",wins:14,kinboshi:0,prizes:0,total:14},
{name:"Hiradoumi",rank:"M3E",wins:14,kinboshi:0,prizes:0,total:14},
{name:"Daieisho",rank:"M4E",wins:14,kinboshi:0,prizes:0,total:14},
{name:"Fujiseiun",rank:"M6W",wins:14,kinboshi:0,prizes:0,total:14},
{name:"Asanoyama",rank:"M10E",wins:14,kinboshi:0,prizes:0,total:14},
{name:"Shodai",rank:"M5W",wins:12,kinboshi:0,prizes:0,total:12},
{name:"Ichiyamamoto",rank:"M2W",wins:12,kinboshi:0,prizes:0,total:12},
{name:"Kinbozan",rank:"M11W",wins:12,kinboshi:0,prizes:0,total:12},
{name:"Shishi",rank:"M12E",wins:12,kinboshi:0,prizes:0,total:12},
{name:"Asahakuryu",rank:"M8W",wins:10,kinboshi:0,prizes:0,total:10},
{name:"Abi",rank:"M9E",wins:10,kinboshi:0,prizes:0,total:10},
{name:"Nishikifuji",rank:"M9W",wins:10,kinboshi:0,prizes:0,total:10},
{name:"Wakamotoharu",rank:"M5E",wins:10,kinboshi:0,prizes:0,total:10},
{name:"Ryuden",rank:"M16W",wins:10,kinboshi:0,prizes:0,total:10},
{name:"Chiyoshoma",rank:"M7E",wins:8,kinboshi:0,prizes:0,total:8},
{name:"Tokihayate",rank:"M12W",wins:8,kinboshi:0,prizes:0,total:8},
{name:"Oshoumi",rank:"M15W",wins:8,kinboshi:0,prizes:0,total:8},
{name:"Kotozakura",rank:"O1E",wins:6,kinboshi:0,prizes:0,total:6},
{name:"Asakoryu",rank:"M7W",wins:6,kinboshi:0,prizes:0,total:6},
{name:"Takayasu",rank:"KW",wins:4,kinboshi:0,prizes:0,total:4},
{name:"Tamawashi",rank:"M13W",wins:4,kinboshi:0,prizes:0,total:4},
{name:"Hoshoryu",rank:"YE",wins:0,kinboshi:0,prizes:0,total:0},
{name:"Onosato",rank:"YW",wins:0,kinboshi:0,prizes:0,total:0},
{name:"Aonishiki",rank:"O1W",wins:0,kinboshi:0,prizes:0,total:0}
];
// ========== TAB SWITCHING ==========
function showTab(tab, el) {
document.querySelectorAll('.tab-content').forEach(t => t.classList.remove('active'));
document.querySelectorAll('.nav-tab').forEach(t => t.classList.remove('active'));
document.getElementById('tab-' + tab).classList.add('active');
el.classList.add('active');
}
// ========== STANDINGS ==========
function renderStandings() {
let html = '<table class="standings-table"><thead><tr><th>#</th><th>Team</th><th>Owner</th>';
for(let i=1;i<=15;i++) html += `<th class="day-cells">D${i}</th>`;
html += '<th>Total</th><th>Avg</th><th>σ</th></tr></thead><tbody>';
sorted.forEach((t, i) => {
const rc = i===0?'rank-1':i<3?'rank-3':'';
html += `<tr><td class="rank-cell ${rc}">${i+1}</td><td style="font-weight:600;color:${t.color}">${t.name}</td><td style="color:var(--text-muted)">${t.owner}</td>`;
t.daily.forEach((d, di) => {
const dayMax = Math.max(...teams.map(t2 => t2.daily[di]));
const dayMin = Math.min(...teams.map(t2 => t2.daily[di]));
let cls = 'day-cells';
if(d === dayMax && d > 0) cls += ' day-best';
else if(d === 0) cls += ' day-zero';
else if(d === dayMin) cls += ' day-worst';
html += `<td class="${cls}">${d}</td>`;
});
html += `<td style="font-weight:700;font-size:1.1em">${t.total}</td>`;
html += `<td>${t.avg.toFixed(1)}</td>`;
html += `<td style="color:var(--text-muted)">${t.stdev.toFixed(1)}</td>`;
html += '</tr>';
});
html += '</tbody></table>';
document.getElementById('standings-container').innerHTML = html;
}
// ========== DAILY CHART ==========
function renderDailyChart() {
new Chart(document.getElementById('dailyChart').getContext('2d'), {
type: 'bar',
data: { labels: dayLabels, datasets: sorted.slice(0,5).map(t => ({
label: t.short, data: t.daily, backgroundColor: t.color + '99', borderColor: t.color, borderWidth: 1
}))},
options: {
responsive: true, maintainAspectRatio: false,
plugins: { legend: { labels: { color: '#eee', font: { size: 12 } } },
title: { display: true, text: 'Daily Scores - Top 5', color: '#eee', font: { size: 16 } } },
scales: { x: { ticks: { color: '#aaa' }, grid: { color: '#2a2a4a' } },
y: { ticks: { color: '#aaa' }, grid: { color: '#2a2a4a' }, beginAtZero: true } }
}
});
let html = '<div style="margin-top:20px">';
for(let day=0;day<15;day++){
const dr=[...teams].sort((a,b)=>b.daily[day]-a.daily[day]);
const max=dr[0].daily[day];
html+=`<details style="margin:8px 0;background:var(--card);border-radius:8px"><summary style="padding:12px 16px;cursor:pointer;font-weight:600">Day ${day+1} — Winner: ${dr.filter(t=>t.daily[day]===max).map(t=>t.short).join(' & ')} (${max} pts)</summary><div style="padding:0 16px 12px">`;
dr.forEach((t,i)=>{
const pct=max>0?(t.daily[day]/max*100):0;
html+=`<div style="display:flex;align-items:center;gap:10px;padding:4px 0"><span style="width:20px;color:var(--text-muted)">${i+1}.</span><span style="width:180px;color:${t.color};font-weight:600;font-size:0.9em">${t.short}</span><div class="mini-bar" style="width:${pct}%;background:${t.color}"></div><span style="font-weight:700;min-width:30px">${t.daily[day]}</span></div>`;
});
html+='</div></details>';
}
html+='</div>';
document.getElementById('daily-table-container').innerHTML = html;
}
// ========== CUMULATIVE ==========
function renderCumulativeChart() {
new Chart(document.getElementById('cumulativeChart').getContext('2d'), {
type: 'line',
data: { labels: dayLabels, datasets: sorted.map(t => ({
label: t.short + ' (' + t.total + ')', data: t.cumulative,
borderColor: t.color, backgroundColor: t.color+'22', fill: false,
tension: 0.3, borderWidth: 2.5, pointRadius: 4, pointHoverRadius: 7
}))},
options: {
responsive: true, maintainAspectRatio: false,
interaction: { mode: 'index', intersect: false },
plugins: { legend: { labels: { color: '#eee', font: { size: 11 } } },
title: { display: true, text: 'Cumulative Points Race', color: '#eee', font: { size: 16 } },
tooltip: { callbacks: { afterBody: function(items) {
const di = items[0].dataIndex;
const ds = sorted.map(t=>({name:t.short,cum:t.cumulative[di]})).sort((a,b)=>b.cum-a.cum);
return '\nRankings:\n'+ds.map((s,i)=>`${i+1}. ${s.name}: ${s.cum}`).join('\n');
}}}},
scales: { x:{ticks:{color:'#aaa'},grid:{color:'#2a2a4a'}}, y:{ticks:{color:'#aaa'},grid:{color:'#2a2a4a'},beginAtZero:true}}
}
});
}
// ========== HEAD TO HEAD ==========
let h2hChart = null;
function renderH2H() {
const s1=document.getElementById('h2h-team1'),s2=document.getElementById('h2h-team2');
sorted.forEach((t,i)=>{
s1.innerHTML+=`<option value="${i}">${t.name}</option>`;
s2.innerHTML+=`<option value="${i}" ${i===1?'selected':''}>${t.name}</option>`;
});
s1.onchange=s2.onchange=updateH2H;
updateH2H();
}
function updateH2H() {
const t1=sorted[document.getElementById('h2h-team1').value];
const t2=sorted[document.getElementById('h2h-team2').value];
const ctx=document.getElementById('h2hChart').getContext('2d');
if(h2hChart) h2hChart.destroy();
h2hChart=new Chart(ctx,{type:'bar',data:{labels:dayLabels,datasets:[
{label:t1.short,data:t1.daily,backgroundColor:t1.color+'aa',borderColor:t1.color,borderWidth:1},
{label:t2.short,data:t2.daily,backgroundColor:t2.color+'aa',borderColor:t2.color,borderWidth:1}
]},options:{responsive:true,maintainAspectRatio:false,
plugins:{legend:{labels:{color:'#eee'}},title:{display:true,text:`${t1.short} vs ${t2.short}`,color:'#eee',font:{size:16}}},
scales:{x:{ticks:{color:'#aaa'},grid:{color:'#2a2a4a'}},y:{ticks:{color:'#aaa'},grid:{color:'#2a2a4a'},beginAtZero:true}}}});
const diff=t1.daily.map((d,i)=>d-t2.daily[i]);
let w1=0,w2=0,ties=0;
diff.forEach(d=>{if(d>0)w1++;else if(d<0)w2++;else ties++;});
let html=`<div style="display:flex;gap:20px;flex-wrap:wrap;margin-top:15px">`;
html+=`<div class="award-card" style="flex:1"><div class="award-title">Day Wins</div><div class="award-body"><span style="color:${t1.color};font-weight:700">${t1.short}: ${w1}</span> | <span style="color:${t2.color};font-weight:700">${t2.short}: ${w2}</span> | Ties: ${ties}</div></div>`;
html+=`<div class="award-card" style="flex:1"><div class="award-title">Totals</div><div class="award-body"><span style="color:${t1.color};font-weight:700">${t1.total}</span> vs <span style="color:${t2.color};font-weight:700">${t2.total}</span></div></div>`;
html+=`</div>`;
document.getElementById('h2h-stats').innerHTML=html;
}
// ========== MOMENTUM ==========
function renderMomentum() {
let html = '';
sorted.forEach(t => {
html += `<div style="background:var(--card);border-radius:12px;padding:20px;margin:12px 0">`;
html += `<div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;flex-wrap:wrap;gap:10px">`;
html += `<span style="font-weight:700;color:${t.color}">${t.name}</span>`;
html += `<span style="font-size:0.85em;color:var(--text-muted)">Hot streak: <span class="streak-badge streak-hot">${t.hotStreak}d</span> Cold streak: <span class="streak-badge streak-cold">${t.coldStreak}d</span></span>`;
html += `</div>`;
html += `<div class="momentum-row">`;
t.daily.forEach((d,i) => {
const isAbove = d >= t.avg;
const intensity = d === 0 ? 0 : Math.min(d / 10, 1);
const bg = d === 0 ? '#333' : isAbove ?
`rgba(78,205,196,${0.3 + intensity * 0.5})` :
`rgba(255,107,107,${0.2 + intensity * 0.3})`;
html += `<div class="momentum-block" style="background:${bg}" title="Day ${i+1}: ${d} pts (avg: ${t.avg.toFixed(1)})">${d}</div>`;
});
html += `</div>`;
html += `<div style="margin-top:8px;font-size:0.8em;color:var(--text-muted)">`;
html += `1st half (D1-7): ${t.firstHalf} pts | 2nd half (D8-15): ${t.secondHalf} pts | `;
html += t.secondHalf > t.firstHalf ? `<span style="color:#4ecdc4">↗ Getting stronger (+${t.secondHalf-t.firstHalf})</span>` :
t.secondHalf < t.firstHalf ? `<span style="color:#ff6b6b">↘ Fading (${t.secondHalf-t.firstHalf})</span>` :
`<span>→ Steady</span>`;
html += `</div></div>`;
});
document.getElementById('momentum-container').innerHTML = html;
new Chart(document.getElementById('momentumChart').getContext('2d'), {
type: 'line',
data: { labels: dayLabels.slice(2), datasets: sorted.slice(0,5).map(t => {
const ma = [];
for(let i=2;i<15;i++) ma.push(((t.daily[i-2]+t.daily[i-1]+t.daily[i])/3).toFixed(1));
return { label: t.short, data: ma, borderColor: t.color, borderWidth: 2.5, tension: 0.4, pointRadius: 3, fill: false };
})},
options: {
responsive: true, maintainAspectRatio: false,
plugins: { legend: { labels: { color: '#eee' } },
title: { display: true, text: '3-Day Moving Average (Top 5)', color: '#eee', font: { size: 16 } } },
scales: { x:{ticks:{color:'#aaa'},grid:{color:'#2a2a4a'}}, y:{ticks:{color:'#aaa'},grid:{color:'#2a2a4a'}} }
}
});
}
// ========== RIKISHI ==========
function renderRikishi() {
const topR = [...rikishiStats].sort((a,b) => b.total - a.total);
const maxT = topR[0].total;
let html = '<div class="rikishi-grid">';
topR.forEach((r,i) => {
const barW = (r.total / maxT * 100);
const medal = i===0?'🥇':i===1?'🥈':i===2?'🥉':'';
const extras = [];
if(r.kinboshi > 0) extras.push(`<span style="color:var(--gold);font-size:0.8em">+${r.kinboshi}K</span>`);
if(r.prizes > 0) extras.push(`<span style="color:var(--accent2);font-size:0.8em">+${r.prizes}P</span>`);
html += `<div class="rikishi-card"><div><div class="name">${medal} ${r.name} ${extras.join(' ')}</div><div class="rank-label">${r.rank} | W:${r.wins} | Total:${r.total}</div>
<div style="margin-top:5px;height:6px;background:#333;border-radius:3px;width:120px"><div style="height:100%;width:${barW}%;background:var(--accent2);border-radius:3px"></div></div>
</div><div class="total">${r.total}</div></div>`;
});
html += '</div>';
// Popularity
const pickCounts = {};
teams.forEach(t => t.d15picks.forEach(p => { pickCounts[p] = (pickCounts[p] || 0) + 1; }));
const mostPicked = Object.entries(pickCounts).sort((a,b) => b[1] - a[1]);
html += '<h3 style="margin-top:30px;margin-bottom:15px">Most Popular Rikishi (Day 15)</h3>';
html += '<div style="display:flex;gap:10px;flex-wrap:wrap">';
mostPicked.forEach(([name, count]) => {
html += `<div style="background:var(--card);padding:10px 16px;border-radius:8px;border-left:3px solid var(--accent2)"><strong>${name}</strong> <span style="color:var(--text-muted)">by ${count} team${count>1?'s':''}</span></div>`;
});
html += '</div>';
// Yokozuna disaster
html += `<div style="background:var(--card);border-radius:12px;padding:20px;margin-top:25px;border-left:4px solid #f55">
<div style="font-size:1.3em;margin-bottom:8px">💔 <strong style="color:#f55">Yokozuna Wipeout</strong></div>
<div style="color:var(--text-muted)">For the second basho running, <strong style="color:#f55">both yokozuna scored zero</strong>. Hoshoryu went down with a hamstring after Day 1 (0-1-14), Onosato missed the entire tournament from the opener (0-0-15). Aonishiki, the brand-new East Ozeki from Ukraine, also scored zero — he was kyujo for the whole basho. Anyone who picked a top-3 rank-and-file got punished for it.</div>
</div>`;
html += `<div style="background:var(--card);border-radius:12px;padding:20px;margin-top:15px;border-left:4px solid var(--gold)">
<div style="font-size:1.3em;margin-bottom:8px">🏆 <strong style="color:var(--gold)">Wakatakakage's Outlier Senshuraku</strong></div>
<div style="color:var(--text-muted)">Wakatakakage's <strong style="color:var(--accent3)">27 fantasy points</strong> top the rikishi rankings, and that includes a quirky Day 15 line: 4 win points + 1 prize point in a single day. That extra +2 over a normal senshuraku win is the <strong>yusho-kettei-sen playoff bout</strong> — he beat Kirishima head-to-head after both finished regulation at 12-3, taking the second top-division title of his career.</div>
</div>`;
document.getElementById('rikishi-container').innerHTML = html;
}
// ========== AWARDS ==========
function renderAwards() {
const awards = [];
// Champion
awards.push({ icon:'🏆', title:'Natsu Basho 2026 Champion', cls:'gold-border',
winner: 'Tokazachi KSE',
body: `<span class="award-stat">Richard Fejes</span> takes his first basho with <span class="award-stat">83 points</span>, a 3-point win over Σούμο. The truly poetic part: Richard scored <em>exactly</em> 83 in Hatsu too, where he finished <strong>5th</strong>. Same number, different league climate. Wire-to-wire control after grabbing the Day 1 lead and never relinquishing it for more than a single day.`
});
// Runner-up
awards.push({ icon:'🥈', title:'Runner-Up — Σούμο', cls:'pink-border',
winner: 'Σούμο (80 pts)',
body: `<span class="award-stat">Márk Vrabély</span> kept the pressure on all 15 days from his Greek-renamed team (formerly "Sumo" / "相撲"). 80 points is his best Dagi Liga finish so far, ahead of his 82 in Hatsu and 67 in Haru. Won the daily on 5 different days. Closest pursuer to Richard — never more than 5-6 points back at any point.`
});
// Yusho playoff
awards.push({ icon:'⚔️', title:'The Yusho Playoff (Real Sumo Edition)', cls:'gold-border',
winner: 'Wakatakakage def. Kirishima',
body: `Both finished regulation at <span class="award-stat">12-3</span>, forcing a yusho-kettei-sen playoff. <strong>Wakatakakage</strong> won the head-to-head bout, taking his second career top-division title — his first since Haru 2022 when he became the first newly-promoted sekiwake to yusho since Futabayama in 1936. A full comeback arc from his 2023 ACL surgery, in a basho with <strong>both yokozuna sidelined</strong>.`
});
// Three-way podium for Tokazachi
awards.push({ icon:'📈', title:'Richard\'s Season Arc', cls:'teal-border',
winner: 'Hatsu 5th → Haru T-3 → Natsu 1st',
body: `<span class="award-stat">Tokazachi KSE</span> has climbed every basho: <strong>5th (83)</strong> in Hatsu, <strong>T-3 (69)</strong> in Haru, now <strong>1st (83)</strong> in Natsu. The total never went up but the league came back to him. <span class="award-stat">Wakatakakage + Wakanosho on senshuraku</span> delivered the killing blow — 5 pts from Wakatakakage alone (including the prize-winning playoff bout).`
});
// Best single day
let bestDay = {team:'',day:0,pts:0};
teams.forEach(t => t.daily.forEach((d,i) => { if(d > bestDay.pts) bestDay = {team:t.name,day:i+1,pts:d,short:t.short,owner:t.owner}; }));
awards.push({ icon:'🔥', title:'Best Single Day', cls:'red-border',
winner: `${bestDay.short} — Day ${bestDay.day}`,
body: `<span class="award-stat">${bestDay.team}</span> erupted for <span class="award-stat">${bestDay.pts} points</span> on Day ${bestDay.day} — a perfect 4-for-4 lineup. The 8-point ceiling was reached <strong>12 times</strong> across the basho, and remarkably <strong>all seven teams</strong> hit a perfect day at least once (Richard's four was the most). Even Csilla, who finished last, briefly tasted the top with an 8-point Day 12 (her only daily win all basho).`
});
// Most consistent
const byConsistency = [...teams].sort((a,b) => a.stdev - b.stdev);
awards.push({ icon:'🎯', title:'The Rock — Most Consistent', cls:'teal-border',
winner: byConsistency[0].name,
body: `<span class="award-stat">${byConsistency[0].owner}</span> was the steadiest performer with σ = <span class="award-stat">${byConsistency[0].stdev.toFixed(2)}</span>. Daily scores ranged from ${byConsistency[0].worst} to ${byConsistency[0].best}. Reliable to a fault.`
});
// Rollercoaster
const wildest = byConsistency[byConsistency.length-1];
awards.push({ icon:'🎢', title:'The Rollercoaster — Most Volatile', cls:'pink-border',
winner: wildest.name,
body: `<span class="award-stat">${wildest.owner}</span> had the widest swings (σ = <span class="award-stat">${wildest.stdev.toFixed(2)}</span>). Bouncing between ${wildest.best} and ${wildest.worst} points on any given day. High-variance picks paid off some days and tanked others.`
});
// Goose eggs
const zeroDays = [];
teams.forEach(t => t.daily.forEach((d,i) => { if(d===0) zeroDays.push({team:t.short,day:i+1,owner:t.owner}); }));
if(zeroDays.length > 0) {
awards.push({ icon:'🥚', title:'The Goose Egg Club', cls:'red-border',
winner: zeroDays.map(z => `${z.team} (D${z.day})`).join(', '),
body: `${zeroDays.map(z => `<span class="award-stat">${z.team}</span> on Day ${z.day}`).join(', ')} scored <strong>zero</strong>. The only complete shutout of Natsu — all four picks lost the same day. ${zeroDays[0].owner === 'Sándor Szilágyi' ? 'And it came on Day 14, right when DigiDagi was making a late push.' : ''}`
});
}
// Strong finishers (last 5 days)
const byLast5 = [...teams].sort((a,b) => {
const aL = a.daily.slice(10).reduce((s,v)=>s+v,0);
const bL = b.daily.slice(10).reduce((s,v)=>s+v,0);
return bL - aL;
});
const l5pts = byLast5[0].daily.slice(10).reduce((s,v)=>s+v,0);
awards.push({ icon:'🚀', title:'Sprint Finish (Last 5 Days)', cls:'teal-border',
winner: byLast5[0].name,
body: `<span class="award-stat">${byLast5[0].owner}</span> closed with <span class="award-stat">${l5pts} points</span> in the final 5 days. ${byLast5[0].secondHalf > byLast5[0].firstHalf ? 'Built momentum at exactly the right moment.' : 'Held steady when others fell apart.'}`
});
// Fast starter
const byFirst5 = [...teams].sort((a,b) => {
const aF = a.daily.slice(0,5).reduce((s,v)=>s+v,0);
const bF = b.daily.slice(0,5).reduce((s,v)=>s+v,0);
return bF - aF;
});
const f5pts = byFirst5[0].daily.slice(0,5).reduce((s,v)=>s+v,0);
awards.push({ icon:'⚡', title:'Fast Starter (First 5 Days)', cls:'gold-border',
winner: byFirst5[0].name,
body: `<span class="award-stat">${byFirst5[0].owner}</span> came out blazing with <span class="award-stat">${f5pts} points</span> in the first 5 days. ${byFirst5[0].total === sorted[0].total ? 'And they kept the lead from Day 1 to senshuraku.' : "Strong opening — couldn't quite maintain pace."}`
});
// Lead changes
let leaders = [];
for(let d=0;d<15;d++){
const dc = teams.map(t=>({name:t.short,cum:t.cumulative[d]})).sort((a,b)=>b.cum-a.cum);
leaders.push(dc[0].name);
}
const uniqueLeaders = [...new Set(leaders)];
const leadChanges = leaders.filter((l,i)=>i>0&&l!==leaders[i-1]).length;
// Tokazachi KSE held the lead from Day 1 except for a single Day 9 blip where Σούμο took it.
const tkLeadDays = leaders.filter(l => l === 'Tokazachi KSE').length;
awards.push({ icon:'👑', title: 'Effectively Wire-to-Wire', cls:'gold-border',
winner: `Tokazachi KSE led ${tkLeadDays} of 15 days`,
body: `Tokazachi KSE grabbed the cumulative lead on <strong>Day 1 with 8 points</strong> and held it for <strong>${tkLeadDays} of the 15 days</strong>. The lead briefly slipped to <span class="award-stat">Σούμο</span> on Day 9 when Márk's 8-pt day overlapped with Richard's 4. Richard answered with his own 8 on Day 10 and reclaimed it. ${leadChanges} lead changes total · leaders: ${uniqueLeaders.join(', ')}.`
});
// Win day champion
const byWinDays = [...teams].sort((a,b) => b.winDays - a.winDays);
awards.push({ icon:'📅', title:'"Win The Day" Champion', cls:'teal-border',
winner: `${byWinDays[0].name} — ${byWinDays[0].winDays} days`,
body: `<span class="award-stat">${byWinDays[0].owner}</span> had the highest (or tied-highest) daily score on <span class="award-stat">${byWinDays[0].winDays} out of 15 days</span>. Winning small battles adds up — and Richard backed it up with the war.`
});
// MVP rikishi
awards.push({ icon:'⭐', title:'MVP Rikishi — Wakatakakage', cls:'gold-border',
winner: 'Wakatakakage (27 pts)',
body: `<span class="award-stat">Komusubi Wakatakakage</span> was the top fantasy scorer with <span class="award-stat">27 total points</span> (26 win points + 1 prize). He also won the actual yusho. Anyone who had him on senshuraku cashed in twice: the regulation win plus the playoff bout against Kirishima.`
});
// Yokozuna wipeout
awards.push({ icon:'😱', title:'The Yokozuna Wipeout', cls:'red-border',
winner: 'Hoshoryu + Onosato + Aonishiki = 0 pts',
body: `<strong>All three of the top two ranks scored ZERO.</strong> Hoshoryu lost his Day 1 bout to Takayasu then went kyujo. Onosato never made it to the dohyo. Aonishiki — the new ozeki from Ukraine in his first basho at the rank — was absent the entire tournament. Picking any of them was an automatic write-off. A historically empty top of the banzuke.`
});
// Sansho special prizes
awards.push({ icon:'🎖️', title:'Sansho — Three Prizes, Two Winners-and-a-Half', cls:'gold-border',
winner: 'Yoshinofuji · Hakunofuji · Wakatakakage',
body: `<strong>Shukunsho (Outstanding Performance):</strong> <em>not awarded</em> — with both yokozuna out, nobody had the upset wins it normally requires.<br><strong>Kantosho (Fighting Spirit):</strong> shared between <span class="award-stat">Yoshinofuji</span> (M2E, 11-4) and <span class="award-stat">Hakunofuji</span> (M10W, 11-4) — both from Isegahama stable.<br><strong>Ginosho (Technique):</strong> <span class="award-stat">Wakatakakage</span> (12-3) — the 6th technique prize of his career.`
});
// Biggest swing
let bigSwing = {team:'',from:0,to:0,fromDay:0,toDay:0,diff:0};
teams.forEach(t => {
for(let i=1;i<15;i++){
const swing = t.daily[i] - t.daily[i-1];
if(swing > bigSwing.diff) bigSwing = {team:t.short,from:t.daily[i-1],to:t.daily[i],fromDay:i,toDay:i+1,diff:swing,owner:t.owner};
}
});
awards.push({ icon:'📈', title:'Biggest Day-to-Day Swing', cls:'pink-border',
winner: `${bigSwing.team} — Day ${bigSwing.fromDay}→${bigSwing.toDay}`,
body: `<span class="award-stat">${bigSwing.owner}</span> went from <span class="award-stat">${bigSwing.from} pts</span> on Day ${bigSwing.fromDay} to <span class="award-stat">${bigSwing.to} pts</span> on Day ${bigSwing.toDay} — a +${bigSwing.diff} swing, the biggest single-day jump of the basho. The harshest crash went the other way: DigiDagi's senshuraku-eve goose egg (0 points on Day 14, all four picks losing) — the only complete shutout of Natsu.`
});
// Csilla's slide
awards.push({ icon:'📉', title:'Csilla\'s Three-Basho Slide', cls:'red-border',
winner: 'Hatsu T-1 (87) → Haru T-3 (69) → Natsu 7th (54)',
body: `<span class="award-stat">Csilla Virág</span> (renamed from "greatest sumo team ever" to <em>"best sumo team ever"</em>) has now dropped <strong>33 points</strong> over three bashos. T-1st with Márton in Hatsu, T-3rd in Haru, dead last in Natsu. The Day 12 explosion (8 pts) was the only bright spot — otherwise it was 2-4 point days throughout. A team in need of a strategy reset for Nagoya.`
});
// Tarján missing
awards.push({ icon:'👻', title:'Where Was Tarján?', cls:'pink-border',
winner: 'Szusizabálók — DNP',
body: `<span class="award-stat">Tarján Teréz</span> sat this one out. The Szusizabálók had finished 4th in both Hatsu and Haru and would have likely been a top-half contender. Natsu was the first basho with only 7 teams instead of the usual 8 (or 10 in Hatsu). The empty roster slot means Tarján takes a participation hit in the season Power Rankings.`
});
// Team name renaming chaos
awards.push({ icon:'✍️', title:'The Renaming Carnival', cls:'teal-border',
winner: '3 teams shape-shifted',
body: `Half the league showed up under new names: <span class="award-stat">"Sumo" → "相撲" → "Σούμο"</span> (Márk going full polyglot, now in Greek), <span class="award-stat">"greatest sumo team ever" → "best sumo team ever"</span> (Csilla downgrading her own ambition), and <span class="award-stat">"Kövér utcai Uszoda" → "Kövér utcai Uszoda (szakvezető: Ferenczy Dzsákomó)"</span> (DJ_Pongo appointing a head coach). The branding committee was busy.`
});
// League scoring trend
const totalNatsu = teams.reduce((s,t)=>s+t.total,0);
const avgNatsu = (totalNatsu / teams.length).toFixed(1);
awards.push({ icon:'📊', title:'League Scoring: Still Tight', cls:'teal-border',
winner: `Avg: ${avgNatsu} pts/team`,
body: `League average dropped again: Hatsu ~79 (5-man rosters) → Haru ~66 → Natsu <strong>${avgNatsu}</strong> (4-man rosters, 7 teams). The spread between 1st and last was <span class="award-stat">${sorted[0].total - sorted[sorted.length-1].total} points</span>. With the new ozeki Aonishiki and both yokozuna absent, there were just fewer reliable picks to spread around.`
});
// Day 15 popularity
const pickCounts = {};
teams.forEach(t => t.d15picks.forEach(p => { pickCounts[p] = (pickCounts[p] || 0) + 1; }));
const fav = Object.entries(pickCounts).sort((a,b) => b[1] - a[1]);
awards.push({ icon:'❤️', title:'Fan Favorite — Day 15 Lineup', cls:'pink-border',
winner: fav[0][0] + ` (×${fav[0][1]})`,
body: `<span class="award-stat">${fav[0][0]}</span> was the most-picked rikishi on senshuraku, on <span class="award-stat">${fav[0][1]} of 7 lineups</span>. Other popular calls: ${fav.slice(1,5).map(f => `<strong>${f[0]}</strong> (${f[1]})`).join(', ')}. The contrarian gold? Only Tokazachi KSE had <strong>Wakatakakage</strong> — the actual yusho winner — on the playoff day.`
});
// Hatsu vs Haru vs Natsu mini-table
const hatsuScores = { "Tokyo Töpörtyűk": 78, "Tokások": 70, "greatest sumo team ever": 87, "Kövér utcai Uszoda (szakvezető: Ferenczy Dzsákomó)": 70, "Tokazachi KSE": 83, "DigiDagi": 86, "Σούμο": 82, "best sumo team ever": 87 };
const haruScores = { "Tokyo Töpörtyűk": 73, "Tokások": 72, "greatest sumo team ever": 69, "Kövér utcai Uszoda (szakvezető: Ferenczy Dzsákomó)": 69, "Tokazachi KSE": 69, "DigiDagi": 57, "Σούμο": 67, "best sumo team ever": 69 };
let trio = '<table style="width:100%;font-size:0.85em;margin-top:8px"><tr><th style="text-align:left;color:var(--text-muted);padding:4px">Team</th><th style="text-align:right;color:var(--text-muted);padding:4px">Hatsu</th><th style="text-align:right;color:var(--text-muted);padding:4px">Haru</th><th style="text-align:right;color:var(--text-muted);padding:4px">Natsu</th><th style="text-align:right;color:var(--text-muted);padding:4px">Δ vs Haru</th></tr>';
sorted.forEach(t => {
const h = hatsuScores[t.name] !== undefined ? hatsuScores[t.name] : '—';
const r = haruScores[t.name] !== undefined ? haruScores[t.name] : '—';
const delta = (typeof r === 'number') ? t.total - r : null;
const deltaStr = delta === null ? '' : (delta > 0 ? `<span style="color:#4ecdc4">+${delta}</span>` : delta < 0 ? `<span style="color:#ff6b6b">${delta}</span>` : '—');
trio += `<tr><td style="padding:4px;color:${t.color}">${t.short}</td><td style="text-align:right;padding:4px">${h}</td><td style="text-align:right;padding:4px">${r}</td><td style="text-align:right;padding:4px;font-weight:700">${t.total}</td><td style="text-align:right;padding:4px">${deltaStr}</td></tr>`;
});
trio += '</table>';
awards.push({ icon:'🗓️', title:'Three-Basho Tracker', cls:'teal-border',
winner: 'Hatsu → Haru → Natsu',
body: trio
});
// Most-picked rikishi of the basho (from full daily-pick data)
awards.push({ icon:'🧸', title:'The Kotoeiho Security Blanket', cls:'teal-border',
winner: 'Kotoeiho — 69 of 420 pick-slots',
body: `Maegashira #13 <span class="award-stat">Kotoeiho</span> was the most-picked rikishi of the entire basho, filling <span class="award-stat">69 of the 420 lineup slots</span> — roughly <strong>1 in 6 of every pick</strong> made across all teams and all 15 days. He repaid the loyalty with a <span class="award-stat">10-5 record (20 fantasy points)</span>, 4th-most in the field. The league's comfort pick.`
});
// Half-by-half symmetry
awards.push({ icon:'⚖️', title:'Perfectly Balanced', cls:'teal-border',
winner: 'Σούμο — 40 + 40',
body: `Runner-up <span class="award-stat">Σούμο</span> scored <span class="award-stat">exactly 40 points in each half</span> of the basho — 40 across Days 1-7, 40 across Days 8-15. Flawless symmetry. Richard's title run was nearly as even at 42/41, while the bottom three (Dorka, Mátyás, Csilla) all did their best work in the second week.`
});
// Márk backed the playoff loser
awards.push({ icon:'🎭', title:'Backed the Runner-Up', cls:'pink-border',
winner: 'Σούμο rode Kirishima all 15 days',
body: `<span class="award-stat">Márk Vrabély</span> picked ozeki <span class="award-stat">Kirishima</span> on every single day — a 12-3 run worth <span class="award-stat">24 fantasy points</span>, the 2nd-highest rikishi haul of the basho. The cruel twist: Kirishima lost the yusho-kettei-sen playoff to <strong>Wakatakakage</strong> — the very rikishi anchoring champion Tokazachi KSE. Márk backed the runner-up in every sense.`
});
let html = '';
awards.forEach(a => {
html += `<div class="award-card ${a.cls||''}"><div class="award-icon">${a.icon}</div><div class="award-title">${a.title}</div><div class="award-winner">${a.winner}</div><div class="award-body">${a.body}</div></div>`;
});
document.getElementById('awards-container').innerHTML = html;
}
// ========== INIT ==========
renderStandings();
renderDailyChart();
renderCumulativeChart();
renderH2H();
renderMomentum();
renderRikishi();
renderAwards();
</script>
</body>
</html>