/* Stats Vault (/nerd), 2026-11-17. Same tokens as modern.css; one data hue (cyan) for every bar, gold for highlights. */
:root {
  --bg: #06070d; --surface: rgba(255,255,255,.035); --surface-2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #eceef6; --muted: #9aa0b8; --dim: #6b7190;
  --data: #3fd2ff; --data-2: #1f8fd6; --gold: #ffc83d; --blue: #3d6dff;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 18px; --r-sm: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(1200px 600px at 80% -10%, rgba(61,109,255,.16), transparent 60%),
  radial-gradient(900px 500px at -10% 20%, rgba(63,210,255,.08), transparent 60%), var(--bg);
  color: var(--text); font: 15px/1.5 var(--font); min-height: 100vh; }
a { color: var(--data); }

.nv-top { max-width: 1240px; margin: 0 auto; padding: 22px 16px 8px; display: grid; gap: 10px; }
.nv-back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; width: fit-content; }
.nv-back:hover { color: var(--text); }
.nv-title { display: flex; align-items: center; gap: 16px; }
.nv-title h1 { margin: 0; font: 700 clamp(30px, 6vw, 52px)/1 var(--display); letter-spacing: .02em;
  background: linear-gradient(135deg, #ffe27a, #ffc83d 40%, #ff9b2b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nv-title p { margin: 6px 0 0; color: var(--muted); }
.nv-ring { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 7px solid var(--gold);
  box-shadow: 0 0 0 2px #a8700f inset, 0 0 18px rgba(255,200,61,.5); animation: nv-spin 2.4s linear infinite; }
@keyframes nv-spin { 0% { transform: scaleX(1); } 50% { transform: scaleX(.15); } 100% { transform: scaleX(1); } }
.nv-upd { margin: 0; color: var(--dim); font: 500 12px var(--mono); }

.nv-main { max-width: 1240px; margin: 0 auto; padding: 8px 16px 40px; }
.nv-hero, .nv-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.nv-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.nv-tile b { display: block; font: 700 clamp(24px, 3.4vw, 32px)/1.1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.nv-tile span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.nv-tile small { display: block; color: var(--dim); font: 500 11.5px var(--mono); margin-top: 6px; }
.nv-tile.gold b { color: var(--gold); }

.nv-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin: 10px 0 0;
  background: linear-gradient(var(--bg) 70%, transparent); }
.nv-tabs a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 13px; }
.nv-tabs a:hover { border-color: rgba(63,210,255,.4); }

.nv-sec { padding-top: 26px; scroll-margin-top: 50px; }
.nv-sec h2 { font: 700 22px/1.2 var(--display); margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; }
.nv-sec h2 span { font: 700 13px var(--mono); color: var(--gold); }
.nv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.nv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 18px; min-width: 0; }
.nv-card.wide { grid-column: 1 / -1; }
.nv-card h3 { margin: 0; font: 700 15px/1.3 var(--display); }
.nv-sub { margin: 2px 0 0; color: var(--dim); font-size: 12.5px; }
.nv-card > div { margin-top: 12px; }

/* horizontal bar rows: label | bar | value (all text in ink colours, bar carries the data) */
.nv-rows { display: grid; gap: 7px; }
.nv-row { display: grid; grid-template-columns: minmax(0, 11em) 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; }
.nv-row .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.nv-row .l small { color: var(--dim); }
.nv-row .t { height: 10px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.nv-row .t i { display: block; height: 100%; background: linear-gradient(90deg, var(--data-2), var(--data)); border-radius: 0 4px 4px 0; }
.nv-row .v { color: var(--muted); font: 500 12.5px var(--mono); font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: right; }
.nv-row .v em { color: var(--dim); font-style: normal; }
.nv-row.song { grid-template-columns: 1.6em minmax(0, 1fr) auto; }
.nv-row.song .n { color: var(--dim); font: 600 12px var(--mono); }
.nv-row.song .l b { font-weight: 600; } .nv-row.song .l span { color: var(--muted); }
.nv-row:hover .t i { background: linear-gradient(90deg, var(--data), #a8ecff); }

/* vertical columns */
.nv-cols { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 18px; }
.nv-cols.tall { height: 180px; gap: 3px; }
.nv-cols.mini { height: 110px; gap: 2px; }
.nv-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; cursor: default; }
.nv-col .bar { width: 100%; max-width: 46px; background: linear-gradient(0deg, var(--data-2), var(--data)); border-radius: 4px 4px 0 0; min-height: 2px; }
.nv-col .cv { font: 500 11px var(--mono); color: var(--muted); }
.nv-col .cl { font: 500 11px var(--font); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nv-col:hover .bar { background: linear-gradient(0deg, var(--data), #a8ecff); }
.nv-col.today .bar { background: linear-gradient(0deg, #c98a10, var(--gold)); }
.nv-cols.tall .cv, .nv-cols.mini .cv { display: none; }

/* coverage meter */
.nv-meter { height: 14px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 10px 0 8px; }
.nv-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--data)); border-radius: 999px; }
.nv-big { font: 700 40px/1 var(--display); color: var(--text); }
.nv-note { color: var(--muted); font-size: 13.5px; margin: 0; }

.nv-words { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.nv-words span { color: var(--text); font-family: var(--display); font-weight: 700; line-height: 1.1; }
.nv-words span small { color: var(--dim); font: 500 10.5px var(--mono); margin-left: 3px; }

.nv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.nv-fact { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r-sm); padding: 14px 16px; }
.nv-fact > b { display: block; font: 700 12px var(--mono); color: var(--gold); letter-spacing: .04em; text-transform: uppercase; }
.nv-fact p { margin: 6px 0 0; font-size: 14.5px; }
.nv-fact p span { color: var(--muted); }

.nv-empty { color: var(--dim); font-size: 13px; }
.nv-tip { position: fixed; z-index: 50; pointer-events: none; background: #11131f; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 6px 9px; font: 500 12.5px var(--font); color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,.5); max-width: 260px; }
.nv-tip b { font-family: var(--mono); color: var(--data); }
.nv-foot { text-align: center; color: var(--dim); font-size: 12.5px; padding: 10px 16px 30px; }

@media (max-width: 560px) {
  .nv-grid { grid-template-columns: minmax(0, 1fr); }
  .nv-row { grid-template-columns: minmax(0, 8em) 1fr auto; }
  .nv-hero, .nv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-cols.mini .cl { display: none; }
}
.nv-fact p b { font-weight: 700; color: var(--text); }
