:root {
  --bg: #f3f4f8;
  --ink: #141414;
  --muted: #666a73;
  --line: #7f7f7f;
  --card: #ffffff;
  --purple: #9d00ff;
  --orange: #ff7a00;
  --winner: #fff36b;
  --top-cell: #ffe599;
  --soft: #f7f7f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(157, 0, 255, 0.13), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #edf0f5 100%);
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--purple);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
}

.lead {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.score-card {
  overflow: hidden;
  margin-top: 20px;
  background: var(--card);
  border: 2px solid #111;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.section-title {
  padding: 14px 16px;
  color: #fff;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  text-align: center;
  border-bottom: 2px solid #111;
}

.section-title.purple {
  background: var(--purple);
}

.section-title.orange {
  background: var(--orange);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  border: 1px solid var(--line);
  padding: 7px 8px;
  text-align: right;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

th {
  background: #ededed;
  font-weight: 800;
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 144px;
  text-align: left;
  font-weight: 800;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

thead th:first-child {
  z-index: 2;
  background: #ededed;
}

tr.winner-row td {
  background: var(--winner);
}

tr.winner-row td:first-child {
  background: var(--winner);
}

td.top-cell {
  background: var(--top-cell);
  font-weight: 900;
}

tr.winner-row td.top-cell {
  background: #ffea4d;
}

.footer-note {
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.7;
}

code {
  padding: 0.12em 0.32em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.07);
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
    padding-top: 18px;
  }

  th,
  td {
    padding: 6px 7px;
    font-size: 13px;
  }

  th:first-child,
  td:first-child {
    width: 118px;
  }
}
