body.analytics-view{background:radial-gradient(ellipse at 45% 0,#37185455,transparent 60%),#0b0d1c;color:#f5f5ff}
.analytics-view .container{max-width:1660px;padding:18px 24px 40px}
.league-analytics{--an-border:#363458;--an-muted:#a5a8c5;--an-purple:#a78bfa;color:#f5f5ff;font-size:14px;line-height:1.5;font-variant-numeric:tabular-nums}
.league-analytics *{box-sizing:border-box;min-width:0}
.league-analytics :is(button,input,select){font:inherit;color:inherit}
.league-analytics button{cursor:pointer;background:#25213d;border:1px solid #4d4266;border-radius:7px;padding:6px 10px}
.league-analytics button:disabled{opacity:.5;cursor:wait}
.league-analytics :is(button,input,select,summary,[tabindex]):focus-visible{outline:2px solid #c4b5fd;outline-offset:3px}
.league-analytics :is(input,select){border:1px solid #53486d;background:#151628;border-radius:8px;padding:7px 9px;min-height:36px;max-width:100%}
.league-analytics select{background-color:#19172d}
.league-analytics .an-metric-select select{color-scheme:dark}
.league-analytics .an-metric-select option{background-color:#1B1B32;color:#F5F5FF}
.league-analytics small{font-size:12px;color:var(--an-muted)}
.an-top{display:grid;grid-template-columns:1.65fr 1fr;gap:18px;margin-bottom:14px;align-items:stretch}
.an-hero{min-height:180px;background:linear-gradient(90deg,#100d25f5,#160e2bc4 34%,#1c0d3820 70%),var(--panel-image, url('/panel/panel_1.png')) 75% 20%/cover,#19142c;border-radius:12px;overflow:hidden;position:relative}
.an-hero>div{padding:21px 25px;position:relative;z-index:1}.an-eyebrow{font-size:14px;color:#cc8cfa;font-weight:800;letter-spacing:.04em}.an-hero h1{font-size:44px;font-style:italic;margin:0 0 8px;letter-spacing:-.06em;line-height:1.2;color:#fff}.an-hero p{font-size:14px;line-height:1.65;margin:0;text-shadow:0 2px 6px #000;max-width:370px;color:#ebe5f5}
.an-filters{background:linear-gradient(150deg,#281b3d99,#111326);border:1px solid #5a3d7b;border-radius:13px;padding:14px 16px;align-self:center}.an-filters>summary{font-weight:700;cursor:pointer;margin-bottom:10px}.an-filters>summary>span{font-size:12px;font-weight:400;color:#bdb1d3;margin-left:10px}.an-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 10px}.an-filter-grid label{display:flex;flex-direction:column;gap:5px;font-size:14px;color:#dcd5ef}.an-filter-grid select{width:100%;font-size:14px}.an-filter-grid .an-search{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;background:#101225;border:1px solid #53486d;border-radius:8px;padding:0 10px;gap:10px}.an-search>span{font-size:26px;color:#c6b5e3}.an-search input{border:0;background:transparent;width:100%;padding:5px 0}.an-filter-grid .an-date{grid-column:span 2}
.league-analytics .analysis-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;border-radius:12px;border:1px solid #4e3b6a;background:linear-gradient(180deg,#29203b,#111327);padding:0;margin:0 0 10px;overflow:hidden}
.league-analytics .analysis-tabs .scope-btn{font-size:17px;font-weight:750;border:0;border-radius:0;padding:13px 10px;color:#e7e0f7;background:transparent;position:relative;white-space:nowrap}.league-analytics .analysis-tabs .scope-btn+.scope-btn:before{content:'';height:23px;width:1px;position:absolute;left:0;top:50%;transform:translateY(-50%);background:#4f3b69}.league-analytics .analysis-tabs .scope-btn.active{border-radius:11px;background:linear-gradient(180deg,#b067ee,#7429c3 60%,#a83bf4);box-shadow:inset 0 1px 8px #e7c4ff88,0 0 20px #8b36df44;color:white}
.an-status{font-size:12px;color:#bcb1ce;margin:8px 2px}.an-status button{padding:2px 7px}.an-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.an-kpi{display:flex;align-items:center;gap:20px;padding:16px 22px;background:linear-gradient(120deg,#322340,#1a192e 70%,#25203d);border:1px solid #50406b;border-radius:12px;box-shadow:inset 0 1px #e2b8ff15;min-height:103px}.an-kpi>span{color:#b97cf0;font-size:38px;text-shadow:0 0 15px #b26df77f;line-height:1}.an-kpi:first-child>span,.an-kpi:last-child>span{color:#f4c76a;text-shadow:0 0 15px #f4c76a66}.an-kpi h2{font-size:14px;font-weight:500;color:#d7cfea;margin:0}.an-kpi strong{font-size:28px;line-height:1.35;font-weight:800;letter-spacing:-.03em}.an-kpi strong small{font-size:21px;color:inherit;margin-left:2px}.an-kpi p{font-size:12px;color:#ada5c3;margin:2px 0 0}.an-scope-note{font-size:12px;color:#a5a0be;margin:7px 2px 12px}
.an-first-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:14px}.an-second-row{display:grid;grid-template-columns:1.5fr 1fr 1.25fr;gap:14px;align-items:start;margin-bottom:14px}.an-card{background:linear-gradient(150deg,#211b33,#131527 70%,#1d1a30);border:1px solid #4b3965;border-radius:13px;overflow:hidden;box-shadow:inset 0 1px #ca9cf511,0 8px 24px #0002;scroll-margin-top:100px}.an-card-head{padding:11px 13px;border-bottom:1px solid #57416e66;background:linear-gradient(100deg,#54256c44,transparent);display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px}.an-card-head h2{margin:0;font-size:17px;letter-spacing:-.04em;display:flex;align-items:center;gap:7px;font-weight:750;white-space:nowrap}.an-card-head h2>span{color:#c185f0;font-size:25px;line-height:1;text-shadow:0 0 12px #9853e666}.an-card-head h2 small{font-weight:400;font-size:12px;white-space:nowrap;color:#d8c7ed}.league-analytics .an-more{font-size:12px;background:transparent;border:0;color:#cbbbe0;padding:3px 0;white-space:nowrap}.an-more:hover{text-decoration:underline}.an-card-body{padding:12px}.an-note{font-size:12px;color:#b0a5c2;margin:10px 0 2px;line-height:1.65}.an-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:210px;text-align:center;color:#a89abf;padding:20px 12px}.an-empty>span{font-size:30px;color:#8c66aa}.an-empty p{font-size:14px;line-height:1.8;max-width:330px;margin:9px 0}.an-metric-select{display:block;margin-bottom:10px}.an-metric-select select{width:100%;background:linear-gradient(100deg,#663394,#2a2143);border-color:#7c4da4;color:#f3eaff;font-weight:700;min-height:33px;padding:4px 10px}
.an-leader-list,.an-champion-list{list-style:none;padding:0;margin:0}.an-leader-list li{display:flex;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid #6b547d30}.an-leader-list li:last-child,.an-champion-list li:last-child{border:0}.an-rank{color:#f4c76a;font-weight:800;min-width:15px;text-align:center}.league-analytics .champion-portrait{display:inline-flex;flex-shrink:0;width:30px;height:30px;border:1px solid #aa89be99;border-radius:50%;overflow:hidden;background:#342944}.league-analytics .champion-portrait img{object-fit:cover;width:100%;height:100%}.league-analytics .an-name{padding:0;background:transparent;border:0;color:#f2eefa;font-weight:700;text-align:left;white-space:nowrap}.an-name:hover{text-decoration:underline;color:#c4b5fd}.an-leader-list li>div{flex:1}.an-leader-list small{display:block;white-space:nowrap}.an-leader-list li>b{font-size:14px;min-width:34px;text-align:right}.an-track{width:50px;height:8px;background:#393047;border-radius:10px;overflow:hidden}.an-track i{display:block;height:100%;background:linear-gradient(90deg,#7136ba,#b34ef9);border-radius:inherit;box-shadow:0 0 8px #ae5cff}
.an-segments{display:flex;border:1px solid #423253;border-radius:8px;overflow:hidden;margin-bottom:8px;background:#252137}.league-analytics .an-segments button{font-size:13px;flex:1;border:0;border-radius:0;background:transparent;padding:6px 1px;white-space:nowrap}.league-analytics .an-segments button[aria-pressed=true]{background:linear-gradient(180deg,#9848e8,#572482);box-shadow:inset 0 0 10px #d390ff55;border-radius:7px}.an-champion-list li{display:flex;align-items:center;gap:7px;padding:8px 0;border-bottom:1px solid #6b547d30}.an-champion-list li>button{background:transparent;border:0;padding:0;display:flex;align-items:center;gap:8px;flex:1;text-align:left}.an-champion-list .champion-portrait{border-radius:7px;width:34px;height:34px}.an-champion-list small{display:block;white-space:nowrap}.an-champion-list li>span:last-child{text-align:right}.an-champion-list b{font-size:14px}
.an-chart{height:208px;display:flex;padding:17px 0 0;gap:6px}.an-chart-scale{font-size:11px;color:#aca3c2;display:flex;flex-direction:column;justify-content:space-between;min-width:37px;padding-bottom:46px;text-align:right}.an-columns{display:flex;flex:1;position:relative;gap:10px;background:repeating-linear-gradient(to top,transparent 0,transparent 34px,#62577530 35px,transparent 36px);background-size:100% calc(100% - 46px);background-repeat:no-repeat}.league-analytics .an-column{background:transparent;padding:0;border:0;flex:1;display:flex;flex-direction:column;border-radius:0;text-align:center}.an-column-space{display:block;position:relative;width:100%;flex:1;margin-bottom:8px;border-bottom:1px solid #82728e77}.an-column-space:before{content:'';position:absolute;left:0;right:0;top:var(--zero);border-top:1px solid #9887aa66}.an-column-space i{position:absolute;left:0;right:0;display:block;background:linear-gradient(180deg,#bd65f7,#782ac6);border-radius:5px 5px 0 0;min-height:0}.an-column-space b{position:absolute;top:-22px;left:50%;transform:translateX(-50%);font-size:13px;color:#f5f0ff;white-space:nowrap;z-index:1}.an-column strong{font-size:12px}.an-column small{font-size:11px}.an-won .an-column-space i{background:linear-gradient(180deg,#50c3ff,#307de6)}.an-lost .an-column-space i{background:linear-gradient(180deg,#c792ff,#8a4bd2)}.an-dot{display:inline-block;background:#48b6f7;width:9px;height:9px;border-radius:3px;margin:0 5px}.an-dot.lost{background:#b78aeb;margin-left:14px}
#an-scatter .an-card-body{padding:10px 12px}#an-scatter-plot .mvp-scatter{margin:0;padding:0;border:0;background:transparent}#an-scatter-plot figcaption,#an-scatter-plot .mvp-scatter-subtitle{display:none}#an-scatter-plot .small{font-size:12px;line-height:1.6;color:#b1a6c4}#an-scatter-plot .mvp-scatter-medians{margin-bottom:6px}#an-scatter-plot .mvp-scatter-scroll{overflow:auto}#an-scatter-plot .mvp-scatter-svg{width:100%;max-height:none}#an-scatter-plot.an-zoom .mvp-scatter-canvas{min-width:650px}#an-scatter-plot .mvp-scatter-point{fill:#2dd4bf;stroke:#073c3c;cursor:pointer}#an-scatter-plot .mvp-scatter-point:hover{fill:#99fff0}#an-scatter-plot .mvp-scatter-tooltip{pointer-events:auto;background:#211b35;border-color:#74548b}#an-scatter-plot .mvp-scatter-tooltip button{font-size:12px;margin-top:6px}#an-scatter .an-note{display:inline-block;margin:0 10px 3px 0}#an-scatter [data-an-zoom]{font-size:12px;padding:3px 7px;margin-bottom:3px}
.an-duo-labels,.an-duo{display:grid;grid-template-columns:minmax(0,1.6fr) .7fr .8fr;gap:8px;align-items:center}.an-duo-labels{font-size:12px;color:#e4c374;padding:6px 0 10px;border-bottom:1px solid #68547a44}.an-duo{padding:14px 0;border-bottom:1px solid #68547a44}.an-duo>div>b{display:flex;flex-wrap:wrap;column-gap:4px}.an-duo .an-name{font-size:14px}.an-duo small{display:block;font-size:12px;margin-top:4px}.an-duo>span{font-size:13px;text-align:right}.an-duo>b{font-size:17px}.an-positive{color:#2dd4bf!important}.an-negative{color:#fb7185!important}
.an-changes>div{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #68547a44;align-items:center}.an-changes>div>div{flex:1}.an-changes b{display:block;margin:5px 0;font-size:14px}.an-changes small{font-size:12px}.an-spark{width:82px;height:35px;flex-shrink:0;overflow:visible;background:linear-gradient(0deg,#2dd4bf12,transparent)}.an-spark path{fill:none;stroke:#2dd4bf;stroke-width:1.8}
.an-tools{display:grid;grid-template-columns:1.25fr repeat(6,minmax(0,1fr));gap:10px;border:1px solid #594078;border-radius:13px;padding:14px;background:linear-gradient(145deg,#241b37,#151527);align-items:stretch}.an-tools h2{font-size:20px;margin:0;white-space:nowrap}.an-tools h2>span{color:#c983ff;font-size:30px;line-height:1}.an-tools p{font-size:12px;color:#b7aaca;margin:5px 0 0}.an-tools>div{align-self:center}.an-tools>button{display:flex;gap:10px;align-items:center;padding:13px 10px;background:linear-gradient(145deg,#423152,#211d35);border:1px solid #685183;border-radius:11px;text-align:left;box-shadow:inset 0 1px #e6c4ff22}.an-tools>button:hover{border-color:#bf86f2;background:linear-gradient(145deg,#5b367b,#29203e)}.an-tools>button>span:first-child{font-size:28px;color:#d293fc;text-shadow:0 0 10px #a960c788}.an-tools b{display:block;font-size:14px;white-space:nowrap}.an-tools small{display:block;font-size:12px;margin-top:3px;line-height:1.5;color:#c1b5d1}
.an-tool-panel{border:1px solid #6a4989;background:#17192e;border-radius:12px;padding:20px;margin-top:16px;scroll-margin-top:100px}.an-tool-panel>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.an-tool-panel h2{margin:0;font-size:22px}.an-compare-players{display:flex;flex-wrap:wrap;gap:10px 20px;border:1px solid #423653;border-radius:8px;padding:16px;margin:16px 0}.an-compare-players label{display:flex;align-items:center;gap:6px}.an-compare-players input{min-height:0;accent-color:#a78bfa}.an-table-scroll{overflow:auto;max-width:100%;margin-top:14px}.an-table-scroll table{border-collapse:collapse;width:100%;font-size:14px;white-space:nowrap;min-width:480px}.an-table-scroll th,.an-table-scroll td{border-bottom:1px solid #443951;padding:10px 14px;text-align:right}.an-table-scroll th{color:#cbb6e2;background:#211b34}.an-table-scroll th:first-child,.an-table-scroll td:first-child{text-align:left}.an-table-scroll small{display:block}.an-tool-filters{display:flex;flex-wrap:wrap;gap:15px}.an-tool-filters label{display:flex;flex-direction:column;gap:5px}.an-tool-filters select{min-width:140px}.an-histogram{display:flex;gap:12px;height:220px;margin:28px 0 18px}.an-histogram>div{flex:1;display:flex;flex-direction:column;text-align:center}.an-histogram>div>div{flex:1;position:relative;border-bottom:1px solid #897097}.an-histogram i{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(#ad67ee,#572a88);border-radius:5px 5px 0 0}.an-histogram b{position:absolute;top:-24px;left:0;right:0}.an-histogram small{font-size:12px;margin-top:5px}.an-guide{margin-top:18px;font-size:14px;color:#ada2bd}.an-guide summary{cursor:pointer;color:#cabbde}.an-guide p{line-height:1.85;max-width:1100px}
@media(min-width:1500px){.an-card-head h2{font-size:18px}.an-track{width:60px}.an-leader-list li{gap:9px}}
@media(max-width:1399px){.an-first-row{grid-template-columns:repeat(2,minmax(0,1fr))}.an-second-row{grid-template-columns:1.3fr 1fr}.an-second-row #an-scatter{grid-row:span 2}.an-tools{grid-template-columns:repeat(3,minmax(0,1fr))}.an-tools>div{grid-column:1/-1;display:flex;align-items:center;gap:20px}.an-tools>button{justify-content:center}.an-top{grid-template-columns:1.2fr 1fr}.an-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.an-hero{min-height:210px}.an-kpi{padding:14px;gap:12px}.an-kpi strong{font-size:25px}.an-kpi strong small{font-size:18px}.an-kpi>span{font-size:30px}}
@media(min-width:1440px){.an-first-row .an-card{min-height:345px}}
@media(max-width:1023px){.analytics-view .container{padding:14px 16px 30px}.an-top{grid-template-columns:1fr 1fr}.an-hero{background-position:60% top}.an-hero>div{padding:24px 18px}.an-hero h1{font-size:38px}.an-hero p{max-width:245px}.an-kpis{grid-template-columns:1fr 1fr;gap:10px}.an-second-row{grid-template-columns:1fr 1fr}.an-second-row #an-scatter{grid-row:auto;grid-column:1/-1}#an-scatter-plot{max-width:720px;margin:auto}.league-analytics .analysis-tabs .scope-btn{font-size:14px;padding:12px 5px}.an-card-head h2{font-size:17px}}
@media(max-width:700px){.analytics-view .container{padding:12px 12px 28px}.an-top{grid-template-columns:1fr;gap:10px}.an-hero{min-height:174px;background-position:60% top}.an-hero>div{padding:20px}.an-hero h1{font-size:37px}.an-hero p{font-size:13px;max-width:240px}.an-eyebrow{font-size:12px}.an-filters{padding:12px}.an-filters summary{margin-bottom:0}.an-filters[open] summary{margin-bottom:12px}.an-filter-grid{gap:10px}.an-filter-grid label{font-size:14px}.league-analytics .analysis-tabs{display:flex;overflow-x:auto;scrollbar-width:thin}.league-analytics .analysis-tabs .scope-btn{flex:0 0 auto;font-size:14px;min-height:44px;padding:10px 16px}.an-status{font-size:12px;line-height:1.8}.an-kpi{gap:10px;padding:13px 10px;align-items:flex-start;min-height:112px}.an-kpi>span{font-size:26px;margin-top:5px}.an-kpi h2{font-size:13px}.an-kpi strong{font-size:24px}.an-kpi strong small{font-size:16px}.an-kpi p{font-size:11px;line-height:1.6}.an-first-row,.an-second-row{grid-template-columns:1fr;gap:12px;margin-bottom:12px}.an-second-row #an-scatter{grid-column:auto}.an-card-head{padding:12px}.an-card-head h2{font-size:18px}.an-card-body{padding:14px}.an-leader-list li{padding:11px 0}.an-track{width:70px}.an-chart{height:230px}.an-column strong{font-size:14px}.an-column-space b{font-size:14px}.an-tools{grid-template-columns:1fr 1fr;gap:8px;padding:12px}.an-tools>div{display:block;margin-bottom:5px}.an-tools>button{padding:12px 9px;justify-content:flex-start;gap:8px}.an-tools>button>span:first-child{font-size:24px}.an-tools small{font-size:11px}.an-tool-panel{padding:14px;scroll-margin-top:12px}.an-histogram{gap:6px}.an-histogram small{font-size:10px}.an-guide{font-size:13px}.an-duo{padding:16px 0}.an-card{scroll-margin-top:12px}#an-scatter-plot .mvp-scatter-canvas{min-width:320px}}
@media(max-width:360px){.an-kpi{gap:5px;padding:10px 7px}.an-kpi>span{font-size:20px}.an-kpi strong{font-size:21px}.an-kpi h2{font-size:12px}.an-kpi strong small{font-size:14px}.an-card-head h2{font-size:16px}.an-card-head h2 small{font-size:11px}.an-track{width:38px}.an-tools b{font-size:13px}.an-tools>button{gap:5px}.an-tools>button>span:first-child{font-size:20px}}
@media(prefers-reduced-motion:reduce){.analytics-view .page{animation:none}}
/* Compact desktop cards keep the overview scannable without reducing labels. */
.an-leader-list li{padding:6px 0}.an-leader-list small{line-height:1.35}.an-champion-list li{padding:6px 0}.an-champion-list small{line-height:1.35}
#an-scatter-plot .mvp-quadrant-label{fill:#d5b4f5}#an-scatter-plot .mvp-quadrant-stable{fill:#5eead4}#an-scatter-plot .mvp-quadrant-troublemaker{fill:#fda4af}#an-scatter-plot .mvp-quadrant-carry,#an-scatter-plot .mvp-quadrant-dice{fill:#f4c76a}
#an-scatter-plot .mvp-scatter-grid line{stroke:#514369}#an-scatter-plot .mvp-quadrant-description{fill:inherit;opacity:1}
@media(max-width:700px){.league-analytics .analysis-tabs{flex-wrap:nowrap}.an-leader-list li,.an-champion-list li{padding:10px 0}}
#an-scatter-plot .mvp-scatter-tooltip{max-height:280px;overflow-y:auto}
