* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  background: #fff;
}
a { color: inherit; }
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 20px 0;
}
header .logo { font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: -0.02em; }
header nav { display: flex; gap: 18px; }
header nav a { text-decoration: none; color: #666; }
header nav a[aria-current] { color: #111; }
main { max-width: 880px; margin: 0 auto; padding: 0 20px 48px; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; text-align: center; margin: 48px 0 28px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pick {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.pick img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: #f2f2f2;
  outline: 3px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.1s, opacity 0.15s;
}
.pick:hover img, .pick:focus-visible img { outline-color: #d4d4d4; }
.pick:focus { outline: none; }
.pick.chosen img { outline-color: #111; }
.pick.lost img { opacity: 0.35; }
.pick .name { font-weight: 600; font-size: 18px; margin-top: 12px; }
.pick .company { color: #666; }
.skip { display: block; margin: 28px auto 0; background: none; border: 0; font: inherit; color: #666; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

table { width: 100%; border-collapse: collapse; }
td { padding: 8px 0; border-bottom: 1px solid #eee; vertical-align: middle; }
td.rank { width: 44px; color: #666; font-variant-numeric: tabular-nums; }
td.face { width: 56px; }
td.face img { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #f2f2f2; }
td .company { color: #666; font-size: 14px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
footer { text-align: center; color: #666; font-size: 14px; margin-top: 40px; }

.credits { list-style: none; padding: 0; font-size: 14px; }
.credits li { padding: 6px 0; border-bottom: 1px solid #eee; }
.credits .by { color: #666; }

@media (max-width: 560px) {
  h1 { font-size: 22px; margin: 32px 0 20px; }
  .pair { gap: 12px; }
  .pick .name { font-size: 16px; }
  .pick .company { font-size: 14px; }
}
