:root {
  --ink: #03101d;
  --ink-2: #071827;
  --panel: rgba(6, 24, 40, .92);
  --panel-2: rgba(9, 30, 50, .88);
  --line: rgba(207, 151, 48, .28);
  --line-cool: rgba(91, 137, 174, .28);
  --gold: #e5a93d;
  --gold-2: #f3c76c;
  --cream: #f3e7d4;
  --text: #c8d1dc;
  --muted: #7f91a5;
  --blue: #7bb5e8;
  --green: #46d66b;
  --red: #ff505c;
  --amber: #ffb228;
  --mono: "DM Mono", ui-monospace, monospace;
  --sans: "Syne", system-ui, sans-serif;
  --serif: "Cinzel", Georgia, serif;
  --radius: 9px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 7%, rgba(18, 81, 119, .18), transparent 30rem),
    radial-gradient(circle at 15% 62%, rgba(186, 119, 18, .06), transparent 34rem),
    var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 999;
  background: var(--gold); color: #07111d; padding: 10px 14px;
}
.skip-link:focus { top: 12px; }
.boot-state {
  min-height: 100vh; display: grid; place-content: center; gap: 14px;
  text-align: center; color: var(--gold); font-family: var(--mono);
}
.boot-state img { width: 70px; margin: auto; }

.ares-shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: 62px; display: flex; align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 13, 24, .96);
  backdrop-filter: blur(14px);
}
.topbar-inner {
  width: min(100%, 1400px); margin: 0 auto; padding: 0 18px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 145px; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-word { color: var(--gold-2); font: 600 23px/1 var(--serif); letter-spacing: .05em; }
.nav { display: flex; align-self: stretch; align-items: stretch; gap: 2px; flex: 1; }
.nav a {
  position: relative; display: flex; align-items: center; padding: 0 13px;
  color: #aeb8c6; font: 500 10px/1 var(--mono); text-transform: uppercase;
}
.nav a:hover, .nav a.active { color: var(--cream); }
.nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 2px; background: var(--gold);
}
.header-tools { display: flex; align-items: center; gap: 10px; }
.global-search {
  width: 225px; height: 36px; padding: 0 12px 0 34px;
  border: 1px solid var(--line-cool); border-radius: var(--radius);
  color: var(--text); background: #061524;
}
.search-wrap { position: relative; }
.search-wrap::before { content: "⌕"; position: absolute; left: 12px; top: 8px; color: var(--gold); }
.pro-button, .account-button {
  display: grid; place-items: center; height: 36px; border: 1px solid var(--line);
  border-radius: var(--radius); font: 500 10px/1 var(--mono); text-transform: uppercase;
}
.pro-button { min-width: 54px; background: linear-gradient(135deg, var(--gold-2), #b77920); color: #09111a; }
.account-button { width: 36px; border-radius: 50%; color: var(--gold); }
.menu-button { display: none; border: 1px solid var(--line); background: transparent; color: var(--gold); padding: 9px; }

.ticker {
  height: 30px; overflow: hidden; border-bottom: 1px solid var(--line-cool);
  background: #020c16; font: 500 9px/30px var(--mono); text-transform: uppercase;
}
.ticker-track {
  width: min(100%, 1400px); margin: auto; padding: 0 18px;
  display: flex; white-space: nowrap; gap: 0;
}
.tick { padding: 0 16px; border-right: 1px solid var(--line-cool); color: #aeb8c3; }
.tick:first-child { padding-left: 0; }
.up { color: var(--green) !important; }
.down { color: var(--red) !important; }
.gold { color: var(--gold-2) !important; }
.blue { color: var(--blue) !important; }
.muted { color: var(--muted) !important; }

.page {
  width: min(100%, 1500px); margin: 0 auto; padding: 16px 20px 0;
}
.panel, .hero, .stat-strip, .trust-strip {
  border: 1px solid var(--line-cool); border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(5, 23, 39, .94), rgba(3, 15, 27, .96));
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.12);
}
.panel, .content-grid > *, .stack { min-width: 0; }
.hero {
  position: relative; overflow: hidden; min-height: 236px;
  padding: 28px 30px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px;
}
.hero::before, .network-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .52;
  background-image:
    linear-gradient(29deg, transparent 47%, rgba(226, 162, 46, .12) 48%, transparent 49%),
    linear-gradient(151deg, transparent 47%, rgba(84, 142, 180, .11) 48%, transparent 49%),
    radial-gradient(circle at 76% 43%, rgba(236, 174, 60, .7) 0 1px, transparent 2px);
  background-size: 120px 80px, 150px 110px, 34px 34px;
  mask-image: linear-gradient(90deg, transparent 25%, black 67%);
}
.hero-copy, .hero-card { position: relative; z-index: 1; }
.eyebrow, .panel-title, .section-kicker {
  color: var(--gold); font: 500 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 720px; margin-bottom: 12px; color: var(--cream);
  font: 500 clamp(32px, 4vw, 52px)/1.05 var(--serif); letter-spacing: -.035em;
}
h1 em { color: var(--gold); font-style: normal; }
h2 { color: var(--cream); font: 500 22px/1.15 var(--serif); }
h3 { color: var(--cream); font: 600 14px/1.3 var(--sans); }
.lead { max-width: 650px; color: #b5c0cd; font-size: 14px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.btn {
  min-height: 36px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background: transparent;
  color: var(--gold-2); font: 500 10px/1 var(--mono); text-transform: uppercase; cursor: pointer;
}
.btn.primary { background: linear-gradient(135deg, #efc567, #ba7d23); color: #07111d; border-color: #dba94a; }
.btn:hover { filter: brightness(1.12); }
.hero-card {
  align-self: stretch; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: rgba(3, 15, 27, .78);
}
.identity { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.identity-mark {
  width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: #0a1a2b;
  color: var(--gold); font: 600 18px/1 var(--serif); overflow: hidden;
}
.identity-mark img { width: 100%; height: 100%; object-fit: cover; }
.player-cell,
.league-cell { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.player-cell img {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  border: 1px solid rgba(229, 171, 55, .38); background: #0a1a2b; object-fit: cover;
}
.league-cell img {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 5px;
  background: rgba(255, 255, 255, .94); padding: 2px; object-fit: contain;
}
.league-profile-photo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.identity-name { color: var(--cream); font: 500 20px/1.1 var(--serif); }
.identity-meta { margin-top: 5px; color: var(--muted); font: 400 9px/1.5 var(--mono); text-transform: uppercase; }
.score-row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; border-top: 1px solid var(--line-cool); }
.score { padding: 14px 10px; border-right: 1px solid var(--line-cool); }
.score:last-child { border: 0; }
.label { color: var(--muted); font: 400 8px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.value { margin-top: 6px; color: var(--gold-2); font: 500 24px/1 var(--mono); }
.subvalue { margin-top: 5px; color: var(--muted); font: 400 8px/1.4 var(--mono); text-transform: uppercase; }

.stat-strip {
  margin-top: 10px; display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden;
}
.stat { min-height: 78px; padding: 14px 18px; border-right: 1px solid var(--line-cool); }
.stat:last-child { border: 0; }
.stat strong { display: block; margin-top: 8px; color: var(--gold-2); font: 500 22px/1 var(--mono); }
.stat small { display: block; margin-top: 7px; color: var(--muted); font: 400 8px/1.3 var(--mono); text-transform: uppercase; }

.toolbar {
  margin-top: 10px; padding: 12px; display: flex; gap: 8px; flex-wrap: wrap;
}
.toolbar input, .toolbar select {
  min-height: 36px; border: 1px solid var(--line-cool); border-radius: var(--radius);
  background: #061524; color: var(--text); padding: 0 12px; outline: none;
}
.toolbar input { min-width: 240px; flex: 1; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--gold); }
.data-mode {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px;
  border: 1px solid rgba(69, 214, 107, .27); border-radius: 3px;
  color: var(--green); font: 500 8px/1 var(--mono); text-transform: uppercase; white-space: nowrap;
}
.data-mode::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.historical { color: var(--amber); border-color: rgba(255,178,40,.3); }

.content-grid { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr); gap: 10px; }
.report-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); align-items: start; }
.report-layout > aside { position: static; width: auto; }
.stack { display: grid; gap: 10px; align-content: start; }
.panel-head {
  min-height: 40px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid var(--line-cool);
}
.panel-head h2, .panel-head h3 { margin: 0; color: var(--gold); font: 500 10px/1 var(--mono); text-transform: uppercase; }
.panel-link { color: var(--gold); font: 500 8px/1 var(--mono); text-transform: uppercase; }
.panel-body { padding: 14px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  position: sticky; top: 0; z-index: 2; padding: 11px 12px; text-align: left; color: #93a8bc;
  border-bottom: 1px solid var(--line-cool); background: #071827;
  font: 500 9px/1.25 var(--mono); text-transform: uppercase; white-space: nowrap;
}
td {
  padding: 10px 12px; border-bottom: 1px solid rgba(71, 116, 151, .16);
  color: #c7d1dc; font: 400 10px/1.4 var(--mono); white-space: nowrap;
}
tbody tr { transition: background .16s ease, transform .16s ease; }
tbody tr:hover td { background: rgba(36, 82, 111, .24); }
td.entity { color: var(--cream); font-family: var(--sans); font-weight: 600; }
.rank { color: var(--gold); }
.trend { font-weight: 500; }
.table-footer {
  min-height: 38px; padding: 0 14px; display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font: 400 8px/1 var(--mono); text-transform: uppercase;
}

.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-card { padding: 14px; min-height: 105px; border: 1px solid var(--line-cool); border-radius: var(--radius); background: var(--panel); }
.mini-card strong { display: block; margin: 8px 0; color: var(--gold-2); font: 500 20px/1.1 var(--serif); }
.mini-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.list { display: grid; }
.list-row {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  min-height: 42px; padding: 8px 12px; border-bottom: 1px solid rgba(71,116,151,.16);
}
.list-row:last-child { border-bottom: 0; }
.list-rank { color: var(--gold); font: 500 10px/1 var(--mono); }
.list-name { display: block; color: var(--cream); font-size: 11px; font-weight: 600; }
.list-meta { display: block; margin-top: 3px; color: var(--muted); font: 400 8px/1.4 var(--mono); }
.list-score { color: var(--green); font: 500 12px/1 var(--mono); }

.premium-card {
  position: relative; overflow: hidden; padding: 16px; border-color: var(--line);
}
.premium-card::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -70px;
  border: 1px solid rgba(230,170,60,.17); border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(230,170,60,.03), 0 0 0 48px rgba(230,170,60,.025);
}
.lock { width: 64px; height: 64px; margin: 12px auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 26px; }
.premium-card ul { margin: 14px 0; padding: 0; list-style: none; }
.premium-card li { margin: 7px 0; color: #b9c3ce; font-size: 10px; }
.premium-card li::before { content: "●"; margin-right: 8px; color: var(--gold); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.metric-card { padding: 13px; border: 1px solid var(--line-cool); border-radius: var(--radius); background: rgba(5,22,37,.75); min-height: 80px; }
.metric-card strong { display: block; margin: 8px 0 4px; color: var(--green); font: 500 20px/1 var(--mono); }
.metric-card small { color: var(--muted); font: 400 8px/1.35 var(--mono); text-transform: uppercase; }
.field-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line-cool); border-left: 1px solid var(--line-cool); }
.field {
  min-height: 62px; padding: 10px; border-right: 1px solid var(--line-cool); border-bottom: 1px solid var(--line-cool);
}
.field dt { color: var(--muted); font: 400 7px/1.3 var(--mono); text-transform: uppercase; overflow-wrap: anywhere; }
.field dd { margin: 6px 0 0; color: var(--cream); font: 500 9px/1.4 var(--mono); overflow-wrap: anywhere; white-space: normal; }
.empty-note { padding: 18px; color: var(--muted); line-height: 1.6; }

.profile-hero { grid-template-columns: 155px minmax(0,1fr) 230px; min-height: 210px; }
.profile-photo {
  width: 145px; height: 176px; align-self: end; display: grid; place-items: center;
  border: 1px solid var(--line); background: radial-gradient(circle at 50% 35%, #28445c, #071725 65%);
  overflow: hidden; color: var(--gold); font: 600 48px/1 var(--serif);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-title h1 { font-size: 42px; margin-bottom: 10px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--muted); font: 400 9px/1.4 var(--mono); }
.profile-score { padding: 18px; align-self: center; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(4,16,28,.8); }
.profile-score strong { display: block; margin: 12px 0; color: var(--gold-2); font: 500 38px/1 var(--mono); }

.profile-breadcrumb {
  display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 4px;
  color: var(--muted); font: 500 9px/1 var(--mono); text-transform: uppercase;
}
.profile-breadcrumb a { color: var(--gold); }
.player-intelligence-hero {
  grid-template-columns: 210px minmax(0,1fr) 250px;
  min-height: 270px; padding: 24px 28px 0;
}
.player-intelligence-hero .profile-photo {
  width: 200px; height: 238px; margin-top: auto; border-bottom: 0;
  border-radius: 8px 8px 0 0; box-shadow: 0 0 50px rgba(38,100,139,.18);
}
.player-intelligence-hero .profile-title { align-self: center; }
.player-intelligence-hero .profile-title h1 {
  margin: 10px 0 12px; font-size: clamp(40px,4vw,58px);
}
.profile-club-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  color: var(--cream); font-size: 15px; font-weight: 600;
}
.profile-club-line img {
  width: 28px; height: 28px; object-fit: contain; border-radius: 5px;
  background: rgba(255,255,255,.94); padding: 2px;
}
.profile-kpi-strip {
  display: grid; grid-template-columns: repeat(var(--profile-kpi-count,6),minmax(0,1fr)); margin-top: 10px;
  overflow: hidden; border: 1px solid var(--line-cool); border-radius: var(--radius);
  background: linear-gradient(145deg,rgba(7,26,43,.97),rgba(3,15,27,.97));
}
.profile-kpi {
  min-height: 102px; padding: 17px 16px; border-right: 1px solid var(--line-cool);
}
.profile-kpi:last-child { border-right: 0; }
.profile-kpi strong {
  display: block; margin: 10px 0 8px; color: var(--gold-2);
  font: 500 clamp(17px,1.6vw,25px)/1.1 var(--mono); white-space: normal;
}
.profile-kpi:first-child strong, .profile-kpi:nth-child(2) strong { color: var(--green); }
.profile-kpi small { color: var(--muted); font: 400 8px/1.4 var(--mono); text-transform: uppercase; }
.profile-disclaimer, .profile-access-note {
  margin-top: 8px; padding: 10px 14px; border: 1px solid var(--line-cool);
  border-radius: var(--radius); color: #91a5b8; background: rgba(5,21,36,.75);
  font: 400 9px/1.5 var(--mono);
}
.ranking-metric-nav {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 14px;
  border-bottom: 1px solid var(--line-cool);
}
.ranking-metric-nav .btn { min-height: 34px; padding: 0 14px; }
.profile-tabs {
  position: sticky; top: 62px; z-index: 20; display: flex; gap: 0; margin-top: 10px;
  overflow-x: auto; border: 1px solid var(--line-cool); border-radius: var(--radius);
  background: rgba(3,16,28,.96); backdrop-filter: blur(12px);
}
.profile-tabs button {
  min-height: 46px; padding: 0 22px; border: 0; border-right: 1px solid var(--line-cool);
  background: transparent; color: #9aaabc; cursor: pointer;
  font: 500 9px/1 var(--mono); text-transform: uppercase; white-space: nowrap;
}
.profile-tabs button:hover, .profile-tabs button.active {
  color: var(--gold-2); background: rgba(229,169,61,.08); box-shadow: inset 0 -2px var(--gold);
}
.profile-panel { margin-top: 10px; }
.profile-panel[hidden] { display: none !important; }
.profile-overview-grid { display: grid; grid-template-columns: minmax(0,2.1fr) minmax(290px,.9fr); gap: 10px; }
.performance-groups { display: grid; gap: 10px; }
.intelligence-metrics { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); }
.intelligence-metrics .metric-card { min-height: 94px; }
.intelligence-metrics .metric-card strong { font-size: 23px; }
.profile-summary { margin: 0; }
.profile-summary > div {
  display: grid; grid-template-columns: minmax(90px,.8fr) minmax(0,1.2fr); gap: 14px;
  padding: 9px 0; border-bottom: 1px solid rgba(71,116,151,.18);
}
.profile-summary > div:last-child { border-bottom: 0; }
.profile-summary dt { color: var(--muted); font: 400 8px/1.4 var(--mono); text-transform: uppercase; }
.profile-summary dd { margin: 0; color: var(--cream); text-align: right; font-size: 11px; overflow-wrap: anywhere; }
.form-chart { min-height: 190px; }
.form-chart svg { width: 100%; height: auto; overflow: visible; }
.form-chart line { stroke: rgba(94,134,166,.2); stroke-width: 1; }
.form-chart text { fill: #72869a; font: 10px var(--mono); }
.form-chart .form-line-shadow { fill: none; stroke: rgba(229,169,61,.18); stroke-width: 10; }
.form-chart .form-line { fill: none; stroke: var(--gold); stroke-width: 3; }
.form-chart circle { fill: var(--ink-2); stroke: var(--gold-2); stroke-width: 3; }
.form-chart .rating-label { fill: var(--cream); font-weight: 600; }
.profile-chart-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.profile-chart-grid > .panel:only-child, .market-profile-grid > .panel:only-child { grid-column: 1 / -1; }
.spider-chart { min-height: 300px; }
.spider-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.spider-grid { fill: none; stroke: rgba(94,134,166,.22); stroke-width: 1; }
.spider-axis { stroke: rgba(94,134,166,.18); stroke-width: 1; }
.spider-value {
  fill: rgba(229,169,61,.18); stroke: var(--gold-2); stroke-width: 2.5;
  filter: drop-shadow(0 0 9px rgba(229,169,61,.18));
}
.spider-chart circle { fill: var(--ink-2); stroke: var(--gold-2); stroke-width: 2; }
.spider-chart text { fill: #9eb0c1; font: 9px var(--mono); }
.spider-chart .spider-number { fill: var(--cream); font-weight: 600; }
.spider-note { color: #7e92a6; font: 8px/1.5 var(--mono); text-align: center; }
.profile-bar-chart { display: grid; gap: 13px; min-height: 220px; align-content: center; }
.profile-bar-row { display: grid; gap: 6px; }
.profile-bar-label { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #9eb0c1; font: 9px/1.3 var(--mono); }
.profile-bar-label strong { color: var(--cream); font-size: 10px; }
.profile-bar-track { height: 9px; overflow: hidden; border: 1px solid rgba(94,134,166,.16); border-radius: 999px; background: rgba(94,134,166,.08); }
.profile-bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--gold),var(--gold-2)); box-shadow: 0 0 12px rgba(229,169,61,.2); }
.profile-heatmap { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; min-height: 220px; align-content: center; }
.profile-heat-cell { min-height: 88px; padding: 13px; border: 1px solid rgba(229,169,61,.22); border-radius: 7px; background: rgba(229,169,61,var(--heat)); }
.profile-heat-cell span { display: block; color: #aebdca; font: 8px/1.4 var(--mono); text-transform: uppercase; }
.profile-heat-cell strong { display: block; margin-top: 12px; color: var(--cream); font: 500 19px/1 var(--mono); }
.profile-bubble-chart, .profile-area-chart { min-height: 250px; }
.profile-bubble-chart svg, .profile-area-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.profile-bubble-chart text, .profile-area-chart text { fill: #8195a9; font: 9px var(--mono); }
.profile-bubble-chart .bubble-axis { stroke: rgba(94,134,166,.3); stroke-width: 1; }
.profile-bubble-chart .bubble-grid { stroke: rgba(94,134,166,.13); stroke-width: 1; stroke-dasharray: 3 5; }
.profile-bubble-chart circle { fill: rgba(229,169,61,.2); stroke: var(--gold-2); stroke-width: 2; transition: fill .16s ease, stroke-width .16s ease, filter .16s ease; }
.profile-bubble-chart .bubble-point { cursor: pointer; outline: none; }
.profile-bubble-chart .bubble-point:hover circle, .profile-bubble-chart .bubble-point:focus circle { fill: rgba(246,194,92,.54); stroke-width: 4; filter: drop-shadow(0 0 6px rgba(246,194,92,.5)); }
.profile-bubble-chart .bubble-label { fill: var(--cream); font-size: 8px; opacity: 0; paint-order: stroke; stroke: rgba(3,17,30,.95); stroke-width: 3px; stroke-linejoin: round; transition: opacity .16s ease; }
.profile-bubble-chart .key-point .bubble-label, .profile-bubble-chart .bubble-point:hover .bubble-label, .profile-bubble-chart .bubble-point:focus .bubble-label { opacity: 1; }
.profile-bubble-chart .bubble-domain { fill: #6f879d; font-size: 8px; }
.bubble-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 6px; }
.bubble-summary span { padding: 9px 10px; border: 1px solid rgba(94,134,166,.22); border-radius: 6px; color: var(--cream); font: 9px/1.45 var(--mono); }
.bubble-summary strong { display: block; margin-bottom: 2px; color: var(--gold-2); text-transform: uppercase; letter-spacing: .08em; }
.bubble-summary .bubble-help { grid-column: 1/-1; color: #89a0b6; text-align: center; }
.profile-area-chart polygon { fill: rgba(229,169,61,.14); }
.profile-area-chart polyline { fill: none; stroke: var(--gold-2); stroke-width: 3; }
.profile-area-chart circle { fill: var(--ink-2); stroke: var(--gold-2); stroke-width: 2; }
.chart-unavailable { min-height: 220px; display: grid; place-content: center; padding: 28px; border: 1px dashed rgba(94,134,166,.28); border-radius: 8px; text-align: center; background: rgba(5,21,36,.46); }
.chart-unavailable strong { color: var(--cream); font: 600 16px/1.2 var(--serif); }
.chart-unavailable p { max-width: 420px; margin: 10px auto 0; color: #8195a9; font: 9px/1.6 var(--mono); }
.profile-context-note { margin: 0 0 12px; padding: 12px 16px; border: 1px solid rgba(229,169,61,.28); border-radius: 8px; color: #aebdca; background: rgba(229,169,61,.06); font: 10px/1.55 var(--mono); }
.match-rating { color: var(--green); font-size: 13px; }
.market-profile-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10px; margin-bottom: 10px; }
.valuation-report { min-height: 190px; }
.valuation-range { color: var(--gold-2); font: 500 clamp(28px,3vw,44px)/1.1 var(--serif); }
.valuation-report p { max-width: 740px; margin: 16px 0; color: #aab8c6; line-height: 1.6; }
.valuation-report dl { display: grid; grid-template-columns: repeat(4,1fr); margin: 20px 0 0; border-top: 1px solid var(--line-cool); }
.valuation-report dl div { padding: 14px 12px 0 0; }
.valuation-report dt { color: var(--muted); font: 400 8px/1.3 var(--mono); text-transform: uppercase; }
.valuation-report dd { margin: 7px 0 0; color: var(--cream); font: 500 13px/1.3 var(--mono); }
.valuation-report.withheld .valuation-range { color: #91a3b4; }

.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.plan { min-height: 350px; padding: 22px; text-align: center; border: 1px solid var(--line-cool); border-radius: var(--radius); background: var(--panel); }
.plan.featured { border-color: var(--gold); box-shadow: inset 0 3px var(--gold); }
.plan h2 { margin: 0 0 8px; }
.plan .price { margin: 22px 0; color: var(--cream); font: 500 34px/1 var(--serif); }
.plan ul { padding: 0; text-align: left; list-style: none; }
.plan li { margin: 10px 0; color: #b9c4d0; font-size: 10px; }
.plan li::before { content: "✓"; margin-right: 8px; color: var(--green); }

.trust-strip {
  margin-top: 10px; padding: 13px 18px; display: grid; grid-template-columns: repeat(5,1fr); gap: 12px;
}
.trust-item { display: flex; gap: 9px; align-items: center; }
.trust-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-cool); border-radius: 50%; color: var(--gold); }
.trust-item b { display: block; color: #b9c5d1; font: 500 8px/1.2 var(--mono); text-transform: uppercase; }
.trust-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.footer { margin-top: 10px; padding: 28px 26px 36px; border-top: 1px solid var(--line-cool); background: #020d18; }
.footer-inner { width: min(100%, 1320px); margin: auto; display: grid; grid-template-columns: 1.4fr repeat(4,1fr); gap: 30px; }
.footer-brand { color: var(--gold); font: 600 28px/1 var(--serif); }
.footer h3 { color: #a8b2bf; font: 500 9px/1 var(--mono); text-transform: uppercase; }
.footer a, .footer p { display: block; margin: 6px 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.copyright { margin-top: 24px; text-align: right; color: #516274; font: 400 8px/1 var(--mono); }

@media (max-width: 1200px) {
  .topbar-inner { gap: 12px; }
  .brand { min-width: 125px; }
  .nav a { padding: 0 8px; font-size: 9px; }
  .global-search { width: 180px; }
}

@media (max-width: 1080px) {
  .nav a { padding: 0 8px; font-size: 9px; }
  .global-search { width: 170px; }
  .hero { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: 130px 1fr; }
  .profile-score { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .profile-score strong { margin: 0; }
  .field-grid { grid-template-columns: repeat(3,1fr); }
  .player-intelligence-hero { grid-template-columns: 170px 1fr; }
  .player-intelligence-hero .profile-photo { width: 160px; height: 205px; }
  .player-intelligence-hero .profile-score { grid-column: 1 / -1; }
  .profile-kpi-strip { grid-template-columns: repeat(3,1fr); }
  .profile-kpi:nth-child(3) { border-right: 0; }
  .profile-kpi:nth-child(-n+3) { border-bottom: 1px solid var(--line-cool); }
}

@media (max-width: 820px) {
  .topbar { height: auto; min-height: 58px; }
  .topbar-inner { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .brand { min-width: 0; margin-right: auto; }
  .brand-word { font-size: 20px; }
  .menu-button { display: block; }
  .nav {
    display: none; order: 5; width: 100%; flex: 0 0 100%; height: auto;
    grid-template-columns: repeat(2,1fr); padding-top: 8px; border-top: 1px solid var(--line-cool);
  }
  .nav.open { display: grid; }
  .nav a { min-height: 40px; padding: 0 10px; }
  .header-tools .search-wrap { display: none; }
  .ticker { position: static; }
  .ticker-track { width: 100%; max-width: 100%; overflow-x: auto; }
  .page { padding: 10px 10px 0; }
  .hero { padding: 22px 18px; min-height: 0; }
  h1 { font-size: 34px; }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid { width: 100%; max-width: 100%; overflow: hidden; }
  .content-grid > *, .content-grid .panel { max-width: 100%; }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .stat { border-bottom: 1px solid var(--line-cool); }
  .score-row { grid-template-columns: repeat(2,1fr); }
  .score:nth-child(2) { border-right: 0; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .profile-heatmap { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field-grid { grid-template-columns: repeat(2,1fr); }
  .plans { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
  .profile-chart-grid { grid-template-columns: 1fr; }
  .profile-overview-grid, .market-profile-grid { grid-template-columns: 1fr; }
  .profile-tabs { top: 58px; }
}

.match-log-six tbody tr.is-preview {
  opacity: .48;
  filter: saturate(.35);
}
.report-article > .hero {
  min-height: 330px;
  background-color: #03101c;
  background-image:
    linear-gradient(90deg, rgba(3,16,28,.94) 0%, rgba(3,16,28,.78) 34%, rgba(3,16,28,.28) 62%, rgba(3,16,28,.06) 100%),
    var(--report-bg);
  background-position: center;
  background-size: cover;
  border-color: rgba(229,169,61,.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 16px 36px rgba(0,0,0,.22);
}
.report-article > .hero::before { opacity: .08; }
.report-article > .hero .hero-copy {
  align-self: center;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(3,16,28,.78), rgba(3,16,28,.34) 78%, transparent);
  text-shadow: 0 2px 14px rgba(0,0,0,.9);
}
.report-article > .hero .hero-card {
  align-self: end;
  min-height: 160px;
  background: rgba(3,15,27,.66);
  backdrop-filter: blur(5px);
}
.season-archive-intro { margin-bottom: 16px; color: #aebdca; line-height: 1.55; }
.season-archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.season-archive-card {
  min-width: 0; overflow: hidden; border: 1px solid var(--line-cool); border-radius: 8px;
  background: linear-gradient(145deg,rgba(6,25,42,.94),rgba(3,15,27,.98));
}
.season-archive-card.is-current { border-color: rgba(229,169,61,.62); box-shadow: inset 0 2px var(--gold); }
.season-archive-card header { min-height: 88px; padding: 14px; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line-cool); }
.season-archive-card h3 { margin: 5px 0 2px; color: var(--cream); font: 600 16px/1.2 var(--sans); }
.season-archive-card p { margin: 0; color: var(--muted); font-size: 11px; }
.season-current-badge { align-self: flex-start; padding: 4px 7px; border: 1px solid rgba(229,169,61,.5); border-radius: 999px; color: var(--gold-2); font: 500 8px/1 var(--mono); text-transform: uppercase; }
.season-archive-kpis { display: grid; grid-template-columns: repeat(4,1fr); }
.season-archive-kpis > div { min-width: 0; padding: 13px 10px; border-right: 1px solid var(--line-cool); }
.season-archive-kpis > div:last-child { border-right: 0; }
.season-archive-kpis span { display: block; color: var(--muted); font: 500 8px/1.2 var(--mono); text-transform: uppercase; }
.season-archive-kpis strong { display: block; margin-top: 6px; color: var(--green); font: 600 19px/1 var(--mono); }
.season-archive-card footer { padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; border-top: 1px solid var(--line-cool); color: var(--muted); font: 9px/1.4 var(--mono); }
.season-archive-card footer strong { color: var(--cream); font-weight: 500; }
.responsive tbody tr:has(.match-preview-marker) {
  opacity: .48;
  filter: saturate(.35);
}

.match-log-six tbody tr.is-preview td:last-child {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(200,149,47,.35);
}

@media (max-width: 520px) {
  body { font-size: 12px; }
  .header-tools .pro-button { display: none; }
  .hero { padding: 18px 14px; }
  .report-article > .hero {
    min-height: 520px;
    background-image:
      linear-gradient(180deg, rgba(3,16,28,.82) 0%, rgba(3,16,28,.38) 48%, rgba(3,16,28,.72) 100%),
      var(--report-bg);
    background-position: center;
  }
  .report-article > .hero .hero-copy { padding: 12px; }
  .season-archive-grid { grid-template-columns: 1fr; }
  h1 { font-size: 29px; }
  .lead { font-size: 12px; }
  .hero-actions .btn { flex: 1; padding: 0 10px; }
  .profile-hero { display: block; }
  .profile-photo { width: 105px; height: 125px; margin-bottom: 14px; }
  .profile-title h1 { font-size: 30px; }
  .profile-score { display: block; margin-top: 16px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .metric-grid, .field-grid, .mini-grid, .trust-strip { grid-template-columns: 1fr; }
  .toolbar { display: grid; grid-template-columns: 1fr; }
  .toolbar input, .toolbar select { width: 100%; min-width: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > :first-child { grid-column: auto; }
  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  table.responsive {
    display: table;
    width: max-content;
    min-width: 720px;
    table-layout: auto;
  }
  table.responsive thead { display: table-header-group; }
  table.responsive tbody { display: table-row-group; }
  table.responsive tr { display: table-row; width: auto; padding: 0; }
  table.responsive th,
  table.responsive td {
    display: table-cell;
    width: auto;
    max-width: 190px;
    padding: 10px 11px;
    border-bottom: 1px solid var(--line-cool);
    white-space: nowrap;
    vertical-align: middle;
  }
  table.responsive td::before { content: none; }
  table.responsive th:nth-child(2),
  table.responsive td:nth-child(2) {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 138px;
    max-width: 168px;
    background: #061827;
    box-shadow: 1px 0 0 var(--line-cool), 10px 0 18px rgba(2, 12, 22, .18);
  }
  table.responsive th:nth-child(2) {
    z-index: 3;
    background: #0b2235;
  }
  table.responsive .player-cell,
  table.responsive .league-cell {
    max-width: 160px;
  }
  table.responsive .player-cell span,
  table.responsive .league-cell span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .player-intelligence-hero { display: block; padding-top: 18px; }
  .player-intelligence-hero .profile-photo { width: 132px; height: 164px; border-bottom: 1px solid var(--line); border-radius: 8px; }
  .profile-club-line { font-size: 12px; }
  .profile-kpi-strip { grid-template-columns: 1fr 1fr; }
  .profile-kpi, .profile-kpi:nth-child(3) { border-right: 1px solid var(--line-cool); border-bottom: 1px solid var(--line-cool); }
  .profile-kpi:nth-child(even) { border-right: 0; }
  .profile-kpi:nth-last-child(-n+2) { border-bottom: 0; }
  .profile-heatmap { grid-template-columns: 1fr 1fr; }
  .profile-heat-cell { min-height: 76px; padding: 11px; }
  .profile-tabs button { padding: 0 15px; }
  .valuation-report dl { grid-template-columns: 1fr 1fr; }
}
