/* Official LVL standings, in ARMADA's existing visual language. */
.league-section{min-width:0}
.league-section .cab-eyebrow{font-size:12px;letter-spacing:.12em}
.league-top{align-items:flex-end;margin-bottom:22px}
.league-top p{max-width:640px;font-size:14px;line-height:1.7}
.league-actions{display:flex;flex-wrap:wrap;gap:8px}
.league-actions .cab-btn{font-size:12px;letter-spacing:.04em;min-height:44px}
@media(min-width:561px){.league-actions .league-reload-btn{min-width:190px;white-space:nowrap}}
.league-summary{display:grid;grid-template-columns:1.15fr repeat(4,1fr);margin-bottom:26px;border:1px solid var(--line);background:linear-gradient(110deg,#69132c,#3a091b);border-left:4px solid var(--red)}
.league-summary[hidden],.league-section [hidden]{display:none!important}
.league-team-label{display:flex;flex-direction:column;justify-content:center;padding:22px;font:600 34px/1.1 var(--display);letter-spacing:-.025em}
.league-team-label span{margin-top:9px;color:var(--muted);font:800 12px/1.5 var(--body);letter-spacing:.1em}
.league-metric{padding:22px 18px;border-left:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;gap:8px}
.league-metric b{font:500 42px/1 var(--display);font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.league-metric>span{font:700 12px/1.5 var(--body);color:var(--muted);letter-spacing:.04em}
.league-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px 24px;flex-wrap:wrap;margin-bottom:14px}
.league-groups{display:flex;gap:6px;border-bottom:1px solid var(--line)}
.league-groups button{min-height:46px;padding:10px 17px;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);font:800 13px/1.4 var(--body);letter-spacing:.05em;cursor:pointer}
.league-groups button[aria-pressed=true]{color:var(--cream);border-bottom-color:var(--red)}
.league-groups button:hover{color:var(--cream);background:#fff0d306}
.league-groups button:focus-visible,.league-table a:focus-visible,.league-table-wrap:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.league-updated{font-size:13px;line-height:1.6;color:var(--muted);margin:0;max-width:460px}
.league-updated.is-snapshot{color:#f0c6ab}
.league-table-wrap{max-width:100%;background:#290712;border-color:#fff0d334;scrollbar-color:#a55065 #290712;overscroll-behavior-x:contain}
.league-table{min-width:1090px;font-size:15px}
.league-table caption{text-align:left;padding:16px 18px;font:600 21px/1.3 var(--display);letter-spacing:.01em;background:#400b20;color:var(--cream);caption-side:top}
.league-table thead th{background:#240610;padding:14px 12px;font-size:11px;line-height:1.6;letter-spacing:.04em;color:#dcc3b6;vertical-align:middle}
.league-table tbody td,.league-table tbody th{padding:16px 12px;border-bottom:1px solid #fff0d31a;line-height:1.5;font-size:15px}
.league-table .league-team{position:sticky;left:0;z-index:1;background:#290712;color:var(--cream);min-width:230px;max-width:320px;white-space:normal;font:700 15px/1.5 var(--body);letter-spacing:0;text-align:left;text-transform:none}
.league-table .league-team a{display:inline-block;border-bottom:1px solid transparent;overflow-wrap:anywhere}
.league-table .league-team a:hover{color:#fff;border-bottom-color:var(--red)}
.league-table .league-place{font:500 22px/1 var(--display);color:var(--muted);width:58px;text-align:center}
.league-table .league-armada td,.league-table .league-armada th{background:#64172d;color:var(--cream);font-weight:800;border-bottom-color:#a44259}
.league-table .league-armada .league-team{box-shadow:inset 4px 0 var(--red)}
.league-own-label{display:block;margin-top:3px;font:800 10px/1.5 var(--body);letter-spacing:.08em;color:#ffb2a4}
.league-table .league-points{font-weight:800;font-size:18px}
.league-legend{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 24px;margin-top:14px;color:var(--muted);font-size:13px;line-height:1.7}
.league-legend p{margin:0;max-width:740px}
.league-scroll-hint{font-weight:700;color:var(--cream)}
.league-empty{padding:42px 22px;border:1px solid var(--line);color:var(--muted);text-align:center;font-size:15px;line-height:1.7;background:#2a071399}
@media(max-width:800px){.league-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.league-team-label{grid-column:1/-1;padding:15px 18px;flex-direction:row;justify-content:space-between;align-items:center;font-size:28px;border-bottom:1px solid var(--line)}.league-team-label span{margin-top:0}.league-metric:first-of-type{border-left:0}.league-metric{padding:18px 12px}.league-metric b{font-size:34px}.league-metric>span{font-size:11px}}
@media(max-width:560px){.league-top{gap:16px}.league-actions{width:100%}.league-actions .cab-btn{flex:1;padding:10px 8px;font-size:11px}.league-summary{margin-bottom:20px;grid-template-columns:repeat(2,minmax(0,1fr))}.league-metric{padding:15px 16px;border-top:1px solid var(--line)}.league-team-label{border-bottom:0}.league-metric:nth-child(even){border-left:0}.league-groups{width:100%;gap:0}.league-groups button{flex:1;padding:10px 8px;font-size:12px}.league-toolbar{gap:10px}.league-updated{font-size:12px}.league-table .league-team{min-width:190px;max-width:225px}.league-table tbody td,.league-table tbody th{padding:14px 11px;font-size:14px}.league-table caption{font-size:20px}.league-table .league-place{font-size:20px}.league-table .league-points{font-size:17px}.league-legend{font-size:12px}}
/* Match matrix: LVL's numbered grid in ARMADA colours. */
.league-results{margin-top:42px;padding-top:32px;border-top:1px solid var(--line);min-width:0}
.league-results-head{margin:0 0 16px}
.league-results-head h2{font:600 clamp(27px,3vw,40px)/1.08 var(--display);letter-spacing:-.025em;margin:0}
.league-results-head p{max-width:800px;color:var(--muted);font-size:15px;line-height:1.65;margin:12px 0 16px}
.league-results-key{display:flex;flex-wrap:wrap;gap:10px 24px;margin:0 0 20px}
.league-key{display:inline-flex;align-items:baseline;gap:7px;color:var(--muted);font:500 14px/1.5 var(--body)}
.league-key b{font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}
.league-key-score b{color:var(--cream)}
.league-key-date b{color:#d0b9af;font-weight:500}
.league-results-wrap{--matrix-paper:#fff7e8;--matrix-alt:#faf0df;--matrix-grid:#d9c6b7;--matrix-ink:#500f25;--matrix-loss:#b1223a;--matrix-muted:#7d686a;--matrix-own:#f5e0df;--matrix-hover:#f2dfd0;background:var(--matrix-paper);border:1px solid #bda18d;box-shadow:none;scrollbar-color:#9b6470 #f3e5d2;overscroll-behavior-x:contain}
.league-results-table{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0;color:var(--matrix-ink);font-size:15px}
.league-results-table caption{text-align:left;padding:16px 18px;background:#550d21;color:var(--cream);font:600 22px/1.25 var(--display);letter-spacing:0;caption-side:top;border-bottom:1px solid #91616b}
.league-results-table thead th{height:48px;padding:10px 8px;background:#550d21;color:var(--cream);border:0;border-right:1px solid #91616b;border-bottom:1px solid #91616b;text-align:center;vertical-align:middle;font:700 16px/1.4 var(--body);letter-spacing:0;text-transform:none}
.league-results-table thead .league-results-col{font-size:17px;font-weight:700}
.league-results-table thead .league-results-col.is-armada-col{background:#762039;box-shadow:inset 0 -3px #ff8e7d}
.league-results-table tbody td,.league-results-table tbody th{height:44px;padding:0 8px;border:0;border-right:1px solid var(--matrix-grid);border-bottom:1px solid var(--matrix-grid);background:var(--matrix-paper);font:500 15px/1.4 var(--body);letter-spacing:0;vertical-align:middle}
.league-results-table tbody tr:nth-child(even) td,.league-results-table tbody tr:nth-child(even) th{background:var(--matrix-alt)}
.league-results-table tr>*:last-child{border-right:0}
.league-results-table tbody tr:last-child>*{border-bottom:0}
.league-results-table .league-results-rank{position:sticky;left:0;z-index:2;width:44px;min-width:44px;text-align:center;font:600 14px/1.4 var(--body);color:var(--matrix-muted)}
.league-results-table .league-results-team{position:sticky;left:44px;z-index:2;width:240px;min-width:240px;max-width:240px;text-align:left;white-space:normal;overflow-wrap:anywhere;color:var(--matrix-ink);font:600 15px/1.4 var(--body);text-transform:none}
.league-results-table thead .league-results-rank,.league-results-table thead .league-results-team{z-index:3;color:var(--cream)}
.league-results-team a{display:flex;align-items:center;min-height:44px;padding:7px 4px;color:inherit;text-decoration:none;border:0}
.league-results-team a:hover{text-decoration:underline;text-underline-offset:3px}
.league-results-table .league-result{padding:0;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.league-result-chip{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:0;box-sizing:border-box;margin:0 auto;border:0;border-radius:0;background:none;color:var(--matrix-ink);font:800 16px/1.4 var(--body);font-variant-numeric:tabular-nums;text-align:center;text-decoration:none;transition:color .12s}
.league-result-played .league-result-chip{text-decoration:underline;text-decoration-color:#ad8c8c;text-decoration-thickness:1px;text-underline-offset:3px}
.league-result-chip:hover{color:#9b193a;text-decoration-thickness:2px;text-decoration-color:#9b193a}
.league-result-scheduled .league-result-chip.is-date{color:var(--matrix-muted);font-size:14px;font-weight:500;letter-spacing:.02em}
.league-result-empty{color:#9e8c82;font-weight:400}
.league-results-table .is-self{background:#e9dbd0!important;color:#9e8c82}
.league-results-table .league-results-armada td,.league-results-table .league-results-armada th{background:var(--matrix-own);border-bottom-color:#c5949c}
.league-results-table .league-results-armada .league-results-team,.league-results-table .league-results-armada .league-results-rank{background:#762039;color:#fff0d3;font-weight:800}
.league-results-table .league-results-armada .league-results-team{box-shadow:inset 3px 0 #ff8e7d}
.league-results-table .league-results-armada .is-self{background:#dac3c3!important}
.league-results-table .is-armada-col{border-left:1px solid #c5949c;border-right:1px solid #c5949c}
.league-results-table .is-hover-row td,.league-results-table .is-hover-row th,.league-results-table tbody .is-hover-col{background:var(--matrix-hover)}
.league-results-table .is-hover-row .is-hover-col{background:#e9c6b9;box-shadow:inset 0 0 0 2px #8e3b50}
.league-results-table thead .is-hover-col{background:#8a354b;color:#fff7e8}
.league-results-table .league-results-armada.is-hover-row .league-results-team,.league-results-table .league-results-armada.is-hover-row .league-results-rank{background:#762039;color:#fff0d3}
.league-results-table :focus-visible,.league-results-wrap:focus-visible{outline:3px solid #c25b48;outline-offset:-3px}
.league-results-note{margin:13px 0 0;color:var(--muted);font-size:14px;line-height:1.65;max-width:900px}
@media(min-width:1101px){.league-results-wrap{overflow-x:hidden}}
@media(max-width:1100px){.league-results-table{min-width:930px}}
@media(max-width:560px){
 .league-results{margin-top:30px;padding-top:24px}
 .league-results-head h2{font-size:28px}
 .league-results-head p{font-size:14px}
 .league-results-key{gap:7px 15px;margin-bottom:16px}
 .league-key{font-size:13px}
 .league-results-table{min-width:870px}
 .league-results-table caption{padding:14px;font-size:21px}
 .league-results-table .league-results-rank{width:36px;min-width:36px;padding:0 4px}
 .league-results-table .league-results-team{left:36px;width:186px;min-width:186px;max-width:186px;font-size:14px}
 .league-results-table thead th{font-size:15px}
 .league-results-note{font-size:13px}
}
.league-table th.num,.league-table td.num{text-align:center}
.league-results-table thead th,.league-results-table .league-results-rank,.league-results-table .league-result{text-align:center}
.league-results-table thead .league-results-team{text-align:left}
.league-result-chip{justify-content:center;text-align:center}
/* Fit the full tables into the cabinet width: no horizontal scrolling. */
.league-table-wrap,.league-results-wrap{overflow-x:hidden}
.league-table{width:100%;min-width:0;table-layout:fixed;font-size:13px}
.league-table thead th{padding:9px 5px;font-size:9px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.league-table tbody td,.league-table tbody th{padding:9px 5px;font-size:12px;line-height:1.35}
.league-table th:first-child,.league-table td:first-child{width:48px}
.league-table th:nth-child(2),.league-table td:nth-child(2){width:210px}
.league-table .league-place{width:48px;font-size:18px}
.league-table .league-team{width:210px;min-width:0;max-width:none;font-size:12px;line-height:1.35;white-space:normal}
.league-table .league-points{font-size:15px}
.league-results-table{width:100%;min-width:0;table-layout:fixed;font-size:13px}
.league-results-table .league-results-rank,.league-results-table thead .league-results-rank{width:44px;min-width:0}
.league-results-table .league-results-team,.league-results-table thead .league-results-team{width:210px;min-width:0;max-width:none}
.league-results-table thead th{padding:8px 4px;font-size:10px}
.league-results-table tbody td,.league-results-table tbody th{padding:0 4px}
.league-results-table .league-result{min-width:0}
.league-result-chip{min-width:0;font-size:14px}
@media(max-width:900px){
 .league-table{font-size:11px}
 .league-table thead th{padding:7px 3px;font-size:8px}
 .league-table tbody td,.league-table tbody th{padding:7px 3px;font-size:10px}
 .league-table th:first-child,.league-table td:first-child{width:42px}
 .league-table th:nth-child(2),.league-table td:nth-child(2){width:170px}
 .league-table .league-place{width:42px;font-size:16px}
 .league-table .league-team{width:170px;font-size:10px}
 .league-table .league-points{font-size:13px}
 .league-results-table .league-results-rank,.league-results-table thead .league-results-rank{width:40px}
 .league-results-table .league-results-team,.league-results-table thead .league-results-team{width:170px}
 .league-results-table thead th{padding:7px 2px;font-size:9px}
 .league-results-table tbody td,.league-results-table tbody th{padding:0 2px}
 .league-result-chip{font-size:12px}
}
@media(max-width:620px){
 .league-table{font-size:9px}
 .league-table thead th{padding:5px 2px;font-size:7px;line-height:1.25}
 .league-table tbody td,.league-table tbody th{padding:5px 2px;font-size:8px}
 .league-table th:first-child,.league-table td:first-child{width:30px}
 .league-table th:nth-child(2),.league-table td:nth-child(2){width:96px}
 .league-table .league-place{width:30px;font-size:12px}
 .league-table .league-team{width:96px;font-size:9px;line-height:1.25}
 .league-table .league-points{font-size:10px}
 .league-results-table .league-results-rank,.league-results-table thead .league-results-rank{width:28px}
 .league-results-table .league-results-team,.league-results-table thead .league-results-team{width:92px}
 .league-results-table thead th{padding:5px 1px;font-size:8px}
 .league-results-table tbody td,.league-results-table tbody th{padding:0 1px}
 .league-result-chip{font-size:9px;min-height:36px}
}
.league-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}
.league-main-column{min-width:0}
.league-calc{position:sticky;top:96px;background:linear-gradient(155deg,#380b1d,#22050e);border:1px solid var(--line);padding:20px;color:var(--cream);box-shadow:0 18px 36px #12030a33}
.league-calc-head h2{font:600 28px/1.05 var(--display);letter-spacing:-.02em;margin:0}
.league-calc-head p{color:var(--muted);font-size:12px;line-height:1.6;margin:8px 0 0}
.league-calc-field{display:grid;gap:7px;margin:18px 0}
.league-calc-field>span{font:800 9px/1.4 var(--body);letter-spacing:.12em;color:var(--muted)}
.league-calc-select{width:100%;min-height:44px;border:1px solid #fff0d32e;background:#1e050e;color:var(--cream);padding:0 10px;font:700 13px/1.4 var(--body);cursor:pointer}
.league-calc-select:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.league-calc-current{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px 10px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.league-calc-current>span{font:800 8px/1.3 var(--body);letter-spacing:.12em;color:var(--muted);width:100%}
.league-calc-current b{font:600 23px/1.1 var(--display);letter-spacing:-.01em}
.league-calc-current small{font-size:11px;line-height:1.5;color:var(--muted)}
.league-calc-answer{margin:16px 0 0;padding:13px 14px;border-left:3px solid var(--red);background:#fff0d308}
.league-calc-answer.is-impossible{border-left-color:#d98b79}
.league-calc-answer>span{display:block;font:800 8px/1.4 var(--body);letter-spacing:.12em;color:var(--muted)}
.league-calc-answer strong{display:block;margin-top:5px;font:600 21px/1.15 var(--display);color:var(--cream)}
.league-calc-answer p{margin:7px 0 0;font-size:12px;line-height:1.55;color:var(--muted)}
.league-calc-subtitle{display:block;margin:18px 0 8px;font:800 8px/1.4 var(--body);letter-spacing:.12em;color:var(--muted)}
.league-calc-scenarios{display:grid;gap:8px}
.league-calc-scenario{border:1px solid #fff0d31f;background:#fff0d306;padding:10px 11px}
.league-calc-scenario-title{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.league-calc-scenario-title b{font:800 10px/1.4 var(--body);letter-spacing:.03em;color:var(--cream)}
.league-calc-scenario-title span{font:700 10px/1.4 var(--body);color:#ffc4b8;white-space:nowrap}
.league-calc-scenario p{margin:6px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}
.league-calc-key{display:grid;gap:5px;margin:0 0 16px}
.league-calc-key p{margin:0;font-size:11px;line-height:1.5;color:var(--muted)}
.league-calc-key p::before{content:'• ';color:var(--red)}
.league-calc-rules,.league-calc-note{margin:14px 0 0;font-size:10px;line-height:1.55;color:var(--muted)}
.league-calc-note{color:#cfa9a0}
.league-calc-muted{margin:14px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
.league-result-editor{display:grid;gap:11px;margin:0 0 16px;padding:14px;border:1px solid #fff0d32e;background:#2a0713}
.league-result-editor-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:5px 14px}
.league-result-editor-head b{font:800 9px/1.4 var(--body);letter-spacing:.12em;color:var(--cream)}
.league-result-editor-head span{font-size:10px;line-height:1.4;color:var(--muted)}
.league-result-editor-form{display:flex;flex-wrap:wrap;align-items:end;gap:9px}
.league-result-editor-field{display:grid;gap:5px;flex:1 1 260px;min-width:0}
.league-result-editor-field>span{font:800 8px/1.4 var(--body);letter-spacing:.1em;color:var(--muted)}
.league-result-editor-select{width:100%;min-height:42px;border:1px solid #fff0d32e;background:#1e050e;color:var(--cream);padding:0 9px;font:700 12px/1.4 var(--body)}
.league-result-editor-score{flex:0 1 110px}
.league-result-editor-form .cab-btn{min-height:42px}
.league-result-editor-feedback{flex:1 1 100%;font-size:10px;line-height:1.4;color:#ff9c9b}
.league-result-editor-list{display:grid;gap:5px;border-top:1px solid var(--line);padding-top:9px}
.league-result-editor-item{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;line-height:1.4;color:var(--muted)}
.league-result-editor-item button{border:0;background:transparent;color:#ff9c9b;font:800 8px/1.4 var(--body);letter-spacing:.06em;padding:4px 0;cursor:pointer}
.league-result-editor-note{margin:0;font-size:10px;line-height:1.5;color:var(--muted)}
.league-result.is-manual{box-shadow:inset 0 0 0 2px #d79b3f66}
.league-result.is-manual .league-result-chip{text-decoration-style:dotted;text-decoration-color:#a51f2b}
@media(max-width:620px){.league-result-editor{padding:11px}.league-result-editor-form{gap:7px}.league-result-editor-field{flex-basis:100%}.league-result-editor-score{flex:1 1 100%}.league-result-editor-head{gap:3px}.league-result-editor-form .cab-btn{width:100%}}
@media(max-width:1100px){.league-layout{grid-template-columns:1fr}.league-calc{position:static;order:-1}}
@media(min-width:1900px){
 .league-layout{display:block}
 .league-calc{position:fixed;left:calc(50% + 616px);top:110px;width:300px;max-height:calc(100vh - 130px);overflow:auto;box-sizing:border-box;z-index:20;padding:18px}
}
