/* Player records share the hub's palette, type, and panel treatment. */
:root {
  color-scheme: dark;
  --bg: var(--gpr-bg, #0b1117);
  --panel: var(--gpr-panel, #121b24);
  --panel-border: var(--gpr-line, #27323d);
  --text: var(--gpr-text, #f2f5f6);
  --muted: var(--gpr-muted, #97a6b4);
  --accent: var(--gpr-accent, #b6f36a);
  --warn: #f4ba65;
  --good: var(--gpr-accent, #b6f36a);
  --bad: #f4ae64;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: radial-gradient(ellipse at 45% -15%, #1b3434 0, transparent 48%), var(--bg); color: var(--text); font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
[hidden] { display: none !important; }
.app-shell { max-width: 1600px; margin: auto; padding: 36px 40px 0; }
.masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { margin-bottom: 10px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.title-block { min-width: 0; }
.title-block h1 { margin: 0; font-size: clamp(38px, 4.6vw, 56px); font-weight: 750; letter-spacing: -.045em; line-height: 1.1; }
.title-block p { max-width: 54ch; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.searchbox, .sortbox { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.searchbox input, .sortbox select { width: 270px; min-height: 42px; padding: 0 12px; border: 1px solid var(--panel-border); border-radius: 8px; background: #0d161e; color: var(--text); font: inherit; }
.searchbox input::placeholder { color: var(--muted); opacity: 1; }
.sortbox select { width: 170px; }
.searchbox input:focus-visible, .sortbox select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.metric { min-width: 0; min-height: 118px; padding: 20px; border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--panel); }
.metric-label { margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.metric-value { font-size: clamp(19px, 1.8vw, 26px); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-note { margin-top: 8px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .85fr); align-items: start; gap: 16px; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--panel); }
.table-panel { min-height: 480px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px; border-bottom: 1px solid var(--panel-border); }
.panel-kicker { margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.panel-head h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.025em; line-height: 1.3; }
.panel-meta { padding-top: 3px; color: var(--muted); font-size: 10px; text-align: right; }
.table-wrap { overflow: auto; scrollbar-width: thin; scrollbar-color: #30404d transparent; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
thead th { padding: 14px 16px; background: #101920; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
tbody tr { border-top: 1px solid var(--panel-border); cursor: pointer; }
tbody tr:hover { background: #1a282e; }
tbody tr.selected { background: #1d2d30; box-shadow: inset 3px 0 var(--accent); }
tbody td { padding: 16px; font-size: 11px; vertical-align: top; }
.name-cell { display: grid; gap: 4px; }
.display-name { font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.account-name { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.stat-chip { display: inline-flex; padding: 4px 7px; border: 1px solid #3a5139; border-radius: 5px; font-size: 8px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.stat-chip.online { background: #23362a; color: var(--good); }
.stat-chip.offline { border-color: #634b31; background: #3a2c1d; color: var(--bad); }
.money, .drift { font-weight: 600; font-variant-numeric: tabular-nums; }
.subtle { margin-top: 6px; color: var(--muted); font-size: 10px; }
.detail-panel { position: sticky; top: 16px; }
.detail-view { padding: 20px; }
.detail-empty { color: var(--muted); font-size: 12px; }
.detail-name { font-size: 22px; font-weight: 650; letter-spacing: -.02em; overflow-wrap: anywhere; }
.detail-account { margin-top: 4px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.detail-item { min-width: 0; padding: 12px; border: 1px solid var(--panel-border); border-radius: 8px; background: #101a22; }
.detail-label { margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.detail-value { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.empty-state { padding: 20px; color: var(--muted); font-size: 12px; }
@media (max-width: 1200px) {
  .app-shell { padding-right: 24px; padding-left: 24px; }
  .masthead { align-items: flex-start; flex-direction: column; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .detail-panel { position: static; }
  .detail-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-shell { padding: 28px 16px 0; }
  .masthead { gap: 20px; margin-bottom: 20px; }
  .title-block h1 { font-size: 43px; }
  .title-block p { font-size: 12px; }
  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .searchbox input, .sortbox select { width: 100%; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
  .metric { min-height: 108px; padding: 16px; }
  .metric:last-child { grid-column: 1 / -1; }
  .metric-value { font-size: 22px; }
  .panel-head, .detail-view { padding: 18px 16px; }
  .table-panel { min-height: 320px; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
