:root {
  --ink: #151512;
  --paper: #f3f0e7;
  --panel: #e9e5da;
  --line: #c9c4b7;
  --muted: #716e66;
  --acid: #d7ff3f;
  --orange: #ff6b35;
  --blue: #3c67ff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header {
  min-height: 74px;
  padding: 0 3.5vw;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-decoration: none;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
}

.updated {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

main { padding: 0 3.5vw 72px; }

.intro {
  min-height: 430px;
  padding: 92px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr);
  align-items: end;
  gap: 60px;
  border-bottom: 1px solid var(--ink);
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.intro .eyebrow { grid-column: 1 / -1; align-self: start; }

h1 {
  margin: 0;
  max-width: 900px;
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 138px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .77;
}

.lede {
  max-width: 440px;
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.25;
}

.bands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--ink);
}

.band {
  position: relative;
  min-height: 168px;
  padding: 24px;
  border: 0;
  border-right: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  display: grid;
  grid-template-columns: 1fr auto;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.band:last-child { border-right: 0; }
.band:hover { background: var(--panel); }
.band.active { background: var(--ink); color: var(--paper); }
.band:nth-child(1).active .band-count { background: var(--acid); }
.band:nth-child(2).active .band-count { background: var(--orange); }
.band:nth-child(3).active .band-count { background: var(--blue); color: white; }

.band-index, .band-range {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.band-name {
  align-self: end;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 52px);
  letter-spacing: -.04em;
}

.band-range { align-self: end; justify-self: end; opacity: .65; }

.band-count {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 11px;
  font-weight: 800;
}

.results { padding-top: 72px; }

.results-head {
  margin-bottom: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .92;
}

#section-copy { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.search {
  width: min(320px, 100%);
  padding: 9px 0;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: 13px var(--sans);
}

.table-wrap { width: 100%; overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; min-width: 1120px; border-collapse: collapse; }

th {
  padding: 13px 12px;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  vertical-align: top;
}

tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #e7e2d4; }
tbody tr.is-new { background: rgba(215, 255, 63, .16); }
tbody tr.is-new:hover { background: rgba(215, 255, 63, .28); }
.number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.estimate { background: rgba(21, 21, 18, .035); }

.game-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.game-cell {
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.game-capsule {
  width: 106px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(21, 21, 18, .18);
  background: var(--panel);
  object-fit: cover;
}

.game-capsule.broken { display: none; }

.new-badge {
  display: inline-block;
  margin: 5px 0 0;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--acid);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.score { display: inline-flex; align-items: center; gap: 7px; }
.score::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.score.good::before { background: #4f8d42; }
.score.great::before { background: var(--blue); }

.tags { min-width: 250px; max-width: 390px; color: var(--muted); line-height: 1.55; }
.tag + .tag::before { content: " · "; color: var(--line); }

.empty { padding: 74px 20px; text-align: center; }
.empty span { font-family: var(--serif); font-size: 48px; }
.empty p { color: var(--muted); }

footer {
  padding: 25px 3.5vw;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
  .site-header { padding: 0 20px; }
  main { padding-left: 20px; padding-right: 20px; }
  .intro { min-height: 350px; padding: 64px 0 50px; grid-template-columns: 1fr; gap: 38px; }
  .intro .eyebrow { grid-column: auto; }
  h1 { font-size: clamp(58px, 18vw, 92px); }
  .bands { grid-template-columns: 1fr; }
  .band { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .band:last-child { border-bottom: 0; }
  .results { padding-top: 50px; }
  .results-head { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  footer { padding: 22px 20px; flex-direction: column; }
}
