:root {
  --ink: #121212;
  --muted: #5c6570;
  --line: #e4e7eb;
  --blue: #1d4ed8;
  --blue-deep: #1239a8;
  --paper: #ffffff;
  --wash: #f6f7f9;
  --taken: #9aa3ad;
  --injury: #9a3412;
  --injury-bg: #ffedd5;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Barlow", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.topbar {
  background: #000;
  color: #fff;
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-mark {
  border: 2px solid #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.brand-name { font-size: 15px; text-transform: uppercase; }
.topnav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d5d8de;
}
.top-meta {
  margin-left: auto;
  font-size: 13px;
  color: #b7bec8;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}
h1 {
  font-family: "Barlow", sans-serif;
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}
.lede {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
}
.tab {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 16px 10px;
  margin-bottom: -1px;
  color: #66707c;
  font-weight: 600;
  font-size: 16px;
}
.tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 22px;
  flex-wrap: wrap;
}
.search input {
  width: min(420px, 70vw);
  border: 1px solid #d5dae1;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--wash);
}
.search input:focus {
  outline: 2px solid var(--blue);
  background: #fff;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}
.text-btn {
  background: none;
  border: 0;
  color: var(--blue);
  font-weight: 600;
  padding: 0;
}
.count { margin-left: auto; color: var(--muted); font-size: 14px; }

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.feature {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.feature-pos {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.mug {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--wash);
  display: block;
  margin: 12px 0 8px;
}
.feature h2 {
  margin: 0;
  font-size: 32px;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.meta {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 14px;
}
.value-label {
  margin: 22px 0 0;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
}
.value-num {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 84px;
  line-height: 0.85;
  font-weight: 700;
  margin: 4px 0 0;
  letter-spacing: -0.03em;
}
.stat-line {
  margin-top: 14px;
  color: #333;
  font-size: 14px;
}
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge.injury { background: var(--injury-bg); color: var(--injury); }
.badge.taken { background: #eceff3; color: #4b5563; }
.injury-detail, .empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.board { min-width: 0; }
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.board-head h2 { margin: 0; font-size: 22px; }
.board-note { color: var(--muted); font-size: 13px; }
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rank-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}
.rank-row.top {
  background: var(--blue);
  color: #fff;
  border-radius: 4px;
  border-bottom: 0;
}
.rank-row.top .sub, .rank-row.top .draft-btn { color: #fff; }
.rank-row.drafted { color: var(--taken); }
.rank-row.drafted .name { text-decoration: line-through; }
.rank {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.who { min-width: 0; }
.name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sub {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.row-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
}
.draft-btn {
  border: 1px solid currentColor;
  background: transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  min-width: 78px;
}
.rank-row.top .draft-btn { border-color: #fff; }
.draft-btn.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.scoring {
  background: var(--wash);
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.scoring-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.scoring h2 { margin: 0; font-size: 18px; }
.scoring h3 { margin: 16px 0 6px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.scoring select {
  border: 1px solid #d5dae1;
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
}
.scoring-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 8px 0 12px;
}
.weight {
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}
.weight input {
  width: 100%;
  border: 1px solid #d5dae1;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
}

@media (max-width: 1050px) {
  .layout { grid-template-columns: 1fr; }
  .scoring { position: static; }
  .topnav { display: none; }
  h1 { font-size: 40px; }
}
