/* EdgeRush — card charts (pairs with assets/js/charts.js) */
.erc-svg { display: block; width: 100%; height: auto; overflow: visible; }
.erc-t { fill: var(--text); font-family: 'Archivo', system-ui, sans-serif; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.erc-xs { font-size: 11px; } .erc-sm { font-size: 12px; }
.erc-dim { fill: var(--dimmer); } .erc-hot { fill: var(--amber); }
.erc-good { fill: var(--green); } .erc-bad { fill: #5a6272; } .erc-push { fill: var(--amber); }
.erc-over { fill: var(--look); } .erc-under { fill: #a77bff; }
.erc-gap { opacity: .45; }
.erc-track { fill: var(--card-3); }
.erc-tix { fill: #6b7484; } .erc-cash { fill: var(--look); }
.erc-line { stroke: var(--red); stroke-width: 1.2; stroke-dasharray: 3 3; }
.erc-line.erc-solid { stroke-dasharray: none; stroke: var(--text); stroke-width: 1.5; }
.erc-axis { stroke: var(--border-2); stroke-width: 1; }
.erc-dot { fill: var(--green); stroke: var(--bg); stroke-width: 1.5; }
.erc-dot1 { fill: var(--look); } .erc-dot2 { fill: var(--amber); }
.erc-path { fill: none; stroke-width: 2; stroke-linejoin: round; }
.erc-path.good { stroke: var(--green); } .erc-path.bad { stroke: var(--red); }

/* tile strip */
.erc-strip { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 6px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm); }
.erc-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.erc-wins { display: flex; flex-direction: column; gap: 3px; flex: 1 1 120px; min-width: 0; }
.erc-win, .erc-sc { display: grid; grid-template-columns: 38px 1fr 34px; gap: 6px; align-items: center; font-size: 10px; font-weight: 800; }
.erc-win .k, .erc-sc .k { color: var(--dimmer); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erc-win .v, .erc-sc .v { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.erc-win .bar, .erc-sc .bar { height: 6px; border-radius: 3px; background: var(--card-3); overflow: hidden; }
.erc-win .bar i, .erc-sc .bar i { display: block; height: 100%; border-radius: 3px; }
i.good { background: var(--green); } i.mid { background: var(--amber); } i.bad { background: var(--red); }
.erc-move { font-size: 11px; font-weight: 800; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.erc-move .k { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--dimmer); }
.erc-move .n { font-size: 9px; letter-spacing: .04em; text-transform: uppercase; color: var(--dimmer); }
.erc-move.good b { color: var(--green); } .erc-move.bad b { color: var(--red); } .erc-move.mid b, .erc-move.flat b { color: var(--dim); }

/* leg card + game + record figures */
.erc-leg { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.erc-game { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 12px 16px 4px; }
.erc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.erc-fig { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 10px; min-width: 0; }
.erc-cap { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dimmer); margin-bottom: 6px; }
.erc-score { display: flex; flex-direction: column; gap: 4px; }
.erc-sc { grid-template-columns: 96px 1fr 40px; }
#er-record { margin: 0 0 26px; }
.erc-sc { grid-template-columns: 112px 1fr 40px; }
/* fix: game info row had no styling and ran together */
.gamedive .gd-info { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 16px; font-size: 12.5px; color: var(--dim);
  border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.erc-fig .erc-svg { max-width: 420px; }
#er-record > .erc-fig .erc-svg { max-width: none; }
.erc-dotbad { fill: var(--red); }

/* Nov 5: matchup ranks, line moves, opponent-rank gauge */
.erc-rk.good { fill: var(--green); } .erc-rk.mid { fill: var(--amber); } .erc-rk.bad { fill: var(--red); }
.erc-fig.erc-wide { grid-column: 1 / -1; }
.erc-fig.erc-wide .erc-svg { max-width: 520px; }
.erc-moves { display: flex; flex-direction: column; gap: 6px; padding: 2px 0 4px; }

/* ── Nov 5 v2: two-sided splits ── */
.er-tug { display: flex; gap: 2px; height: 8px; flex: 1 1 auto; min-width: 60px; border-radius: 4px; overflow: hidden; background: var(--card-3); }
.er-tug i { display: block; height: 100%; }
.ers { display: flex; flex-direction: column; gap: 12px; }
.ers-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 6px; font-size: 12px; margin-bottom: 4px; }
.ers-top b:last-child { text-align: right; }
.ers-mkt { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dimmer); }
.ers-line { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 3px 0; }
.ers-line .v { width: 32px; color: var(--text); } .ers-line .v + .er-tug + .v { text-align: right; }
.ers-line .k { width: 38px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--dimmer); text-align: right; }
.ers-flag { font-size: 11px; color: var(--amber); margin-top: 4px; } .ers-flag b { color: var(--text); }
/* ── the matchup board ── */
.erc-matchup { padding: 12px 14px; background: linear-gradient(180deg, rgba(77,163,255,.05), transparent 120px), var(--bg); }
.erm-tempo { font-size: 12.5px; color: var(--dim); margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); }
.erm-tempo b { color: var(--text); }
.erm-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.erm-tab { font: inherit; font-size: 12px; font-weight: 700; color: var(--dim); background: var(--card); border: 1px solid var(--border-2); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.erm-tab.on { color: var(--text); border-color: var(--text); background: var(--card-3); }
.erm-edges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.erm-k { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dimmer); margin-right: 4px; }
.erm-chip { font-size: 11.5px; color: var(--dim); border: 1px solid var(--border-2); border-radius: 999px; padding: 3px 10px; background: var(--card); }
.erm-head { display: grid; grid-template-columns: 1fr auto 1fr; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 2px; }
.erm-head span { font-size: 9px; color: var(--dimmer); align-self: center; } .erm-head b:last-child { text-align: right; }
.erm-grp { margin-top: 10px; }
.erm-gh { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dimmer); border-bottom: 1px solid var(--border); padding-bottom: 4px; margin-bottom: 4px; }
.erm-row { display: grid; grid-template-columns: 74px 1fr 74px; gap: 10px; align-items: center; padding: 5px 4px; border-radius: 6px; }
.erm-l, .erm-r { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.erm-r { justify-content: flex-end; }
.erm-l b, .erm-r b { font-size: 13.5px; color: var(--text); } .erm-l span, .erm-r span { font-size: 10.5px; color: var(--dimmer); font-weight: 700; }
.erm-stat { font-size: 12px; font-weight: 700; color: var(--text); text-align: center; margin-bottom: 4px; }
.erm-row.neutral .erm-stat { color: var(--dim); }
.erm-row.e-off { background: linear-gradient(90deg, rgba(47,214,122,.10), transparent 60%); }
.erm-row.e-off .erm-l span { color: var(--green); }
.erm-row.e-def { background: linear-gradient(270deg, rgba(255,176,32,.10), transparent 60%); }
.erm-row.e-def .erm-r span { color: var(--amber); }
@media (max-width: 520px) { .erm-row { grid-template-columns: 58px 1fr 58px; gap: 6px; } .erm-l b, .erm-r b { font-size: 12.5px; } }
