/* the player stats card on the player page (js/playerstats.js) */

.ps-card .panel-body { display: grid; gap: 14px; }

.ps-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ps-kpi { display: grid; align-content: start; gap: 1px; padding: 9px 10px; border-radius: var(--radius-sm); background: var(--tile); cursor: help; min-width: 0; }
.ps-kpi:first-child { background: var(--lime); color: var(--on-lime); }
.ps-kpi:first-child b { color: var(--on-lime); }
.ps-kpi:first-child small { color: color-mix(in srgb, var(--on-lime) 72%, var(--lime)); }
.ps-kpi b { font-size: 22px; font-weight: 800; font-style: italic; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ps-kpi span { font-size: 11px; font-weight: 600; }
.ps-kpi small { font-size: 10px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.ps-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.ps-group { min-width: 0; }
.ps-h { margin: 0 0 4px; font-size: 12px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.02em; }
.ps-rows { display: grid; }
.ps-stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); cursor: help; }
.ps-l { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ps-v { font-size: 15px; font-weight: 800; font-style: italic; font-variant-numeric: tabular-nums; text-align: right; }
.ps-d { grid-column: 1 / -1; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.ps-map-h { margin: 4px 0 -6px; }
.ps-shots { border-radius: var(--radius-sm); }

.ps-shot path, .ps-shot circle, .ps-shot rect { stroke-width: 0.35; }
.ps-shot.goal path { fill: var(--lime); stroke: #1a1a1a; }
.ps-shot.on circle { fill: #fff; stroke: #1a1a1a; }
.ps-shot.off circle { fill: none; stroke: #fff; stroke-width: 0.45; }
.ps-shot.blocked rect { fill: #1a1a1a; stroke: #fff; }

.ps-legend, .ps-thirds { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: -4px; font-size: 11px; color: var(--ink-2); }
.ps-legend b, .ps-thirds b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.ps-thirds span { cursor: help; }
.ps-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ps-k { width: 14px; height: 14px; flex: none; }
.ps-k .grass { fill: #2a8040; }

.ps-heat rect { fill: var(--lime); }

.ps-note, .ps-none { margin: -8px 0 0; font-size: 11px; color: var(--ink-3); }
.ps-note[title] { cursor: help; }
.ps-none { margin: 0; padding: 10px 0; }
.ps-from { margin: 0; font-size: 12px; color: var(--ink-2); }
.ps-from a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }
.ps-from a:hover { color: var(--ink); text-decoration-color: currentColor; }

@media screen and (max-width: 1240px) {
  .ps-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 760px) {
  .ps-groups { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 1080px) and (min-width: 761px) {
  .ps-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ps-from a { white-space: nowrap; }
