/* ParlayDesk — the Player Research game chart (shared, v2.2.1 RC3).
   Drawn by /research-chart.js for full Player Research (/apps/research.js)
   and the public player pages' Quick Research (/pp-quick-research.js).
   Colours fall back to the app palette where a page has no tokens. */
.research-chart {
  width: 100%;
  min-width: 0;
  border-radius: 10px;
  touch-action: manipulation;
}
.research-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.research-chart .rc-axis { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }
.research-chart .rc-grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.research-chart .rc-tick { fill: var(--muted, #94a3b8); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.research-chart .rc-val { fill: var(--text, #e5e7eb); font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.research-chart .rc-bar { stroke-width: 1.25; }
.research-chart .rc-hit { fill: var(--hit, #22c55e); stroke: var(--hit, #22c55e); }
.research-chart .rc-miss { fill: rgba(239, 68, 68, 0.16); stroke: var(--missed, #ef4444); }
.research-chart .rc-push { fill: url(#researchPushHatch); stroke: var(--pending, #facc15); }
.research-chart .rc-push-bg { fill: rgba(250, 204, 21, 0.16); }
.research-chart .rc-push-line { stroke: var(--pending, #facc15); stroke-width: 2; }
.research-chart .rc-selected { stroke: #fff; stroke-width: 2; }
.research-chart .rc-narrow { fill: none; stroke: var(--text, #e5e7eb); stroke-width: 1.5; }
.research-chart .rc-line { stroke: var(--accent2, #60a5fa); stroke-width: 2; stroke-dasharray: 6 4; }
.research-chart .rc-line-label { fill: var(--accent2, #60a5fa); font-size: 11px; font-weight: 800; }
.research-chart .rc-hitbox { fill: transparent; cursor: pointer; }

/* Legend swatches */
.rl-item { display: inline-flex; align-items: center; gap: 6px; }
.rl-swatch { width: 11px; height: 11px; border-radius: 3px; border: 1.25px solid transparent; }
.rl-hit { background: var(--hit, #22c55e); border-color: var(--hit, #22c55e); }
.rl-miss { background: rgba(239, 68, 68, 0.16); border-color: var(--missed, #ef4444); }
.rl-push { border-color: var(--pending, #facc15); background: repeating-linear-gradient(45deg, rgba(250, 204, 21, 0.16) 0 2px, var(--pending, #facc15) 2px 3.5px); }
.rl-ring { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--text, #e5e7eb); }
.rl-dash { width: 16px; height: 0; border-top: 2px dashed var(--accent2, #60a5fa); }
