@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ── Surfaces ──────────────────────────────── */
  --bg:             #FFFFFF;   /* Base – page background          */
  --surface:        #F7F6F1;   /* Accent 3 – controls bar, sidebars */
  --card:           #FFFFFF;   /* Base – player card background   */
  --border:         #e0e0e0;   /* dividers & outlines             */

  /* ── Brand / Accents ───────────────────────── */
  --accent:         #002B6A;   /* Accent 1 – navy (header, buttons) */
  --accent-2:       #007FE6;   /* Accent 2 – sky blue (links, highlights) */
  --gold:           #FFCD58;   /* Accent 4 – yellow gold (salary) */
  --filter-active:  #007FE6;   /* Accent 2 – active skill-filter tab */

  /* ── Data Colors ───────────────────────────── */
  --positive:       #22c55e;   /* positive strokes-gained  */
  --negative:       #ef4444;   /* negative strokes-gained  */

  /* ── Typography ────────────────────────────── */
  --text:           #11181F;   /* Contrast – body copy  */
  --muted:          #6b7c93;   /* muted labels, hints   */
  --label:          #3a4a5c;   /* section labels        */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  overflow-x: hidden;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.header {
  background: linear-gradient(135deg, #001540 0%, #002B6A 55%, #007FE6 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 32px 24px;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.course-label {
  color: rgba(255,255,255,0.8) !important;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.course-name {
  color: #ffffff !important;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.03em;
  line-height: 1;
}

.course-meta {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.meta-pill {
  color: rgba(255,255,255,0.7) !important;
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 4px;
  padding: 4px 10px;
}

.meta-pill span { color: #ffffff; font-weight: 600; }

/* ── INTRO CALLOUT ───────────────────────────────────────────── */
.intro-callout {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
}

.intro-callout--inline {
  background: transparent;
  border-bottom: none;
  padding: 0 32px;
  margin-bottom: 8px;
}

.intro-callout-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4px 0;
}

.callout-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
  text-align: left;
}

.callout-toggle:hover { color: var(--text); }

.callout-chevron {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.callout-body {
  padding-bottom: 14px;
}

.callout-body p {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: var(--label);
  max-width: 860px;
}

.callout-body li {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: var(--label);
  max-width: 860px;
}

.callout-body strong {
  color: var(--text);
  font-weight: 600;
}

/* ── CONTROLS ────────────────────────────────────────────────── */
.controls {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.controls.controls-inline {
  background: none;
  border-bottom: none;
  padding: 10px 0 0;
}

.controls-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.ctrl-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

select, input[type="file"] {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 6px;
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  padding: 7px 12px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

select:hover, select:focus { border-color: var(--accent); }

.sort-btn-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.sort-btn {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.sort-btn:hover { border-color: var(--accent); color: var(--accent); }
.sort-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.sort-dir-btn {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}

.sort-dir-btn:hover { border-color: var(--accent); color: var(--accent); }

.skill-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.skill-tab {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.skill-tab:hover { border-color: var(--filter-active); color: var(--filter-active); }
.skill-tab.active { background: var(--filter-active); border-color: var(--filter-active); color: var(--bg); font-weight: 600; }

.upload-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-label {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.file-label:hover { opacity: 0.85; }

/* ── GRID ────────────────────────────────────────────────────── */
.grid-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 32px;
}

.player-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── PLAYER CARD ─────────────────────────────────────────────── */
.player-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.4s ease both;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 320px;
  max-height: 320px;
}

.player-card:hover {
  border-color: rgba(0,127,230,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px 12px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  gap: 6px;
  overflow-y: auto;
  min-height: 0;
  height: 100%;
}

.player-name {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 26px;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.proj-stats {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 4px 0 2px;
}

.proj-label-ml {
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.proj-val-ml {
  color: var(--muted);
}

.proj-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.proj-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.proj-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.skill-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.skill-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.skill-summary-name {
  color: var(--muted);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skill-summary-val {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 15px;
  letter-spacing: 0.05em;
}

.skill-bar-wrap {
  flex: 1;
  height: 4px;
  background: #e8e8e8;
  border-radius: 2px;
  margin: 0 8px;
  overflow: visible;
  position: relative;
}

.skill-bar {
  position: absolute;
  height: 100%;
  border-radius: 2px;
  top: 0;
}

.skill-course-count {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  margin-top: -1px;
  margin-bottom: 2px;
  font-family: 'IBM Plex Sans', sans-serif;
  letter-spacing: 0.04em;
}

.limited-data-warn {
  color: #f0a500;
  font-style: normal;
}

/* ── SPLIT LAYOUT (single skill mode) ──────────────────────── */
.split-body {
  display: flex;
  width: 100%;
  height: 270px;
}

.split-radar {
  width: 50%;
  height: 270px;
  border-right: 1px solid var(--border);
  padding: 0 8px 0 0;
  display: flex;
  flex-direction: column;
}

.split-radar .radar-skill-label {
  height: 20px;
  flex-shrink: 0;
}

.split-radar .radar-single {
  width: 100%;
  height: 250px;
  position: relative;
}

.split-radar .radar-single canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 250px !important;
}

.split-table {
  width: 50%;
  height: 270px;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── COURSE TABLE (single skill mode) ───────────────────────── */
.course-table-wrap {
  width: 100%;
  height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  border-top: 1px solid var(--border);
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
}

.course-table thead tr {
  border-bottom: 2px solid var(--border);
}

.course-table th {
  text-align: left;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.course-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}

.course-table tbody tr:hover { background: #fafafa; }

.course-table td {
  padding: 6px 10px;
  white-space: nowrap;
}

.ct-course { color: var(--text); font-weight: 500; width: 100%; white-space: normal; text-transform: uppercase; }
.ct-val    { font-family: 'Archivo Narrow', sans-serif; font-size: 15px; text-align: right; }
.ct-r      { color: var(--muted); text-align: right; font-size: 12px; }
.ct-p      { color: var(--muted); text-align: right; font-size: 12px; }

.dk-salary {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}

.card-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  flex: 1;
}

/* ── SKILL TABS ON CARD — hidden, all 5 shown at once ──────── */
.card-skill-tabs {
  display: none;
}

.card-skill-btn {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.12s;
}

.card-skill-btn:hover { border-color: var(--accent); color: var(--accent); }
.card-skill-btn.active { background: rgba(204,31,31,0.15); border-color: var(--accent); color: var(--accent); }

.radar-wrap {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.radar-wrap::-webkit-scrollbar { height: 4px; }
.radar-wrap::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 2px; }
.radar-wrap::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 2px; }

.radar-slot {
  flex: 0 0 220px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.radar-single {
  position: relative;
  height: 200px;
  flex: 1;
}

.radar-skill-label {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 4px;
  white-space: nowrap;
}

.no-data {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  color: var(--muted);
  font-size: 12px;
  font-family: 'IBM Plex Sans', sans-serif;
  letter-spacing: 0.1em;
}

/* ── EMPTY / LOADING STATES ──────────────────────────────────── */
.state-msg {
  text-align: center;
  padding: 80px 32px;
  color: var(--muted);
}

.state-msg h2 {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 32px;
  letter-spacing: 0.05em;
  color: var(--label);
  margin-bottom: 10px;
}

.state-msg p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  margin: 48px auto;
  max-width: 480px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-area:hover { border-color: var(--accent); }

.upload-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.upload-cta {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
}

.grid-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  margin-bottom: 4px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.grid-section-title {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
  margin-right: 8px;
}
.grid-section-sub {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
}
.grid-section-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-count {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
  padding: 0 32px;
  margin-bottom: 8px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ── COURSE BREAKDOWN SECTION ────────────────────────────────── */
.breakdown-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 48px;
}

.breakdown-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0 14px;
  border-top: 2px solid var(--border);
}

.breakdown-title {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
  margin-right: 8px;
}

.breakdown-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.breakdown-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
}

.breakdown-table thead tr {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
}

.breakdown-table th {
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}

.breakdown-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}

.breakdown-table tbody tr:last-child { border-bottom: none; }
.breakdown-table tbody tr:hover { background: #fafafa; }

.bd-show-more-btn {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 0;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.03em;
}
.bd-show-more-btn:hover { background: #fafafa; color: var(--text); }

.breakdown-table td {
  padding: 9px 14px;
  vertical-align: middle;
}

.bd-course { color: var(--text); font-weight: 500; min-width: 180px; text-transform: uppercase; }
.bd-skill  { white-space: nowrap; }

.skill-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

.bd-cor, .bd-r, .bd-p, .bd-vintage, .bd-events {
  text-align: right;
  white-space: nowrap;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 15px;
}

.r-bar-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.r-bar-track {
  width: 60px;
  height: 5px;
  background: #e8e8e8;
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}

.r-bar-fill {
  position: absolute;
  height: 100%;
  border-radius: 3px;
  top: 0;
}

.p-sig   { color: #22c55e; font-weight: 600; }
.p-trend { color: #f59e0b; }
.p-ns    { color: var(--muted); }

.bd-vintage-val { color: var(--text); }

/* ── EMBED MODE ──────────────────────────────────────────────── */
/* header always visible */

/* ── PLAYER TOOLBAR (search + view toggle) ──────────────────── */
.player-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 12px;
  flex-wrap: wrap;
}

.player-search {
  flex: 1;
  min-width: 160px;
  max-width: 300px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  outline: none;
}
.player-search:focus { border-color: var(--accent-2); }
.player-search::placeholder { color: var(--muted); }

.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.view-btn {
  padding: 0 14px;
  height: 32px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.15s, color 0.15s;
}
.view-btn:first-child { border-left: none; }
.view-btn.active {
  background: var(--accent);
  color: #fff;
}
.view-btn:not(.active):hover { background: var(--border); color: var(--text); }

/* ── PLAYER TABLE VIEW ───────────────────────────────────────── */
.player-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.player-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
}
.player-table thead th {
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.player-table thead th.pt-skill,
.player-table thead th.pt-sg,
.player-table thead th.pt-fit,
.player-table thead th.pt-rank,
.player-table thead th.pt-salary { text-align: right; }

.player-table thead th.pt-skill-group {
  text-align: center;
  border-bottom: none;
  border-left: 2px solid var(--border);
  padding-bottom: 4px;
}
.player-table thead th.pt-skill-sub {
  text-align: right;
  border-top: 1px solid var(--border);
  border-left: none;
  padding-top: 4px;
}
.player-table thead th.pt-skill-sub:first-of-type {
  border-left: 2px solid var(--border);
}

.pt-row { border-bottom: 1px solid var(--border); }
.pt-row:last-child { border-bottom: none; }
.pt-row:hover { background: var(--surface); }

.pt-row td {
  padding: 9px 12px;
  color: var(--text);
  white-space: nowrap;
}
.pt-name { font-weight: 500; }
.pt-salary { text-align: right; color: var(--muted); }
.pt-rank   { text-align: right; color: var(--muted); }
.pt-sg, .pt-fit, .pt-skill { text-align: right; font-variant-numeric: tabular-nums; }
.pt-na { color: var(--muted) !important; }

/* ── MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .header { padding: 18px 16px 14px; }
  .controls { padding: 10px 16px; }
  .grid-wrap { padding: 16px; }
  .player-count { padding: 0 16px; }

  .player-card {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: 0;
  }

  .card-header {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .proj-stats { gap: 7px; }
  .proj-val { font-size: 12px; }

  .split-body {
    flex-direction: column;
    height: auto;
  }

  .split-radar {
    width: 100%;
    height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 8px 0;
  }

  .split-radar .radar-single { height: 200px; }
  .split-radar .radar-single canvas { height: 200px !important; }

  .split-table {
    width: 100%;
    height: auto;
    max-height: 200px;
    padding-left: 0;
  }

  .course-table {
    font-size: 11px;
  }

  .course-table th {
    font-size: 9px;
    padding: 5px 6px;
  }

  .course-table td {
    padding: 5px 6px;
    white-space: normal;
  }

  .ct-course {
    font-size: 11px;
  }

  .ct-val {
    font-size: 12px;
    white-space: nowrap;
  }

  .ct-r {
    font-size: 10px;
    white-space: nowrap;
  }

  .radar-slot { flex: 0 0 180px; }

  .breakdown-wrap { padding: 0 16px 32px; }
  .breakdown-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .breakdown-table th, .breakdown-table td { padding: 7px 8px; }
  .breakdown-table { font-size: 11px; }
  .bd-course { min-width: 120px; }
  .r-bar-track { width: 40px; }

  .grid-section-header { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 16px; }
  .grid-wrap { padding-top: 24px; }

  .grid-section-controls { flex-direction: column; align-items: flex-start; }
}
