:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #21262d;
  --border: #30363d;
  --text: #c9d1d9;
  --strong: #f0f6fc;
  --muted: #8b949e;
  --accent: #58a6ff;
  --green: #3fb950;
  --gold: #f2cc60;
  --bronze: #d29922;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: radial-gradient(circle at 10% -10%, rgba(88,166,255,.13), transparent 38rem), var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(88,166,255,.4); outline-offset: 2px; }
.shell { width: min(1180px, calc(100% - 2rem)); margin: auto; padding: 2rem 0 3rem; }
.hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2rem; align-items: end; padding: 1rem 0 2rem; border-bottom: 1px solid var(--border); }
.eyebrow { margin: 0 0 .7rem; color: var(--green); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pulse { display: inline-block; width: 8px; height: 8px; margin-right: .45rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
h1 { margin: 0; color: var(--strong); font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: .98; letter-spacing: -.05em; }
.lede { max-width: 760px; margin: 1rem 0 0; color: var(--muted); font-size: 1.02rem; }
.repo-link { padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--strong); text-decoration: none; font-weight: 700; }
.controls { display: grid; grid-template-columns: .9fr .9fr 1fr 1.1fr 1.25fr; gap: .9rem; margin: 1.3rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.controls label { min-width: 0; }
.controls label span { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
select, input { width: 100%; min-height: 46px; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--strong); }
.summary { display: grid; grid-template-columns: repeat(5,1fr); gap: .8rem; }
.summary article { min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.summary span { display: block; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.summary strong { display: block; margin-top: .3rem; color: var(--strong); overflow-wrap: anywhere; }
.status { display: flex; gap: .5rem; align-items: center; min-height: 42px; color: var(--green); font-weight: 700; font-size: .85rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.board { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 920px; border-collapse: collapse; }
th, td { padding: .8rem .9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { background: var(--surface-2); color: var(--strong); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
.developer { display: flex; gap: .75rem; align-items: center; min-width: 220px; }
.avatar { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-2); object-fit: cover; }
.name { color: var(--strong); font-weight: 800; }
.handle { color: var(--accent); font-size: .8rem; }
.profile { text-decoration: none; }
.profile:hover .name, .profile:hover .handle { text-decoration: underline; }
.rank { font-weight: 900; text-align: center; }
.rank[data-rank="1"] { color: var(--gold); }
.rank[data-rank="2"] { color: var(--strong); }
.rank[data-rank="3"] { color: var(--bronze); }
.score { display: inline-flex; min-width: 64px; justify-content: center; padding: .25rem .5rem; border: 1px solid rgba(46,160,67,.4); border-radius: 999px; background: rgba(46,160,67,.12); color: var(--green); font-weight: 900; }
.num { font-variant-numeric: tabular-nums; color: var(--muted); }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.cards { display: none; }
footer { margin-top: 1.5rem; color: var(--muted); font-size: .8rem; }

@media (max-width: 1050px) {
  .controls { grid-template-columns: 1fr 1fr; }
  .summary { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .repo-link { justify-self: start; }
  .summary { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 1rem,1180px); padding-top: 1rem; }
  .controls { grid-template-columns: 1fr; }
  .table-wrap { display: none; }
  .cards { display: block; }
  .card { padding: 1rem; border-bottom: 1px solid var(--border); }
  .card:last-child { border-bottom: 0; }
  .card-head { display: flex; gap: .75rem; align-items: center; }
  .card-rank { width: 38px; flex: 0 0 38px; text-align: center; font-weight: 900; }
  .card-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: .6rem; margin-top: .8rem; }
  .metric { padding: .65rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
  .metric span { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; font-weight: 800; }
  .metric strong { display: block; margin-top: .15rem; color: var(--strong); }
}
@media (max-width: 400px) {
  .summary { grid-template-columns: 1fr; }
}
