:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --paper: #f4f1e8;
  --panel: #fffdf7;
  --navy: #081827;
  --green: #256f4a;
  --blue: #164e8b;
  --gold: #d99a22;
  --line: rgba(17, 24, 39, 0.12);
  --shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-hero {
  min-height: 500px;
  padding: 12px 12px 72px;
  color: #fffdf7;
  background:
    linear-gradient(90deg, rgba(8, 24, 39, 0.96), rgba(8, 24, 39, 0.72)),
    linear-gradient(135deg, #0d2d22, #081827 58%, #17324c);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.top-nav a,
.chart-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.top-nav a {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

.hero-copy {
  width: min(1040px, 100%);
  margin: 52px auto 0;
}

.eyebrow,
.chart-head span,
.score-card span,
.source-strip p {
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.eyebrow,
.chart-head span {
  margin: 0 0 8px;
  color: var(--gold);
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.96;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 15vw, 7rem);
}

h2 {
  font-size: clamp(1.55rem, 7vw, 2.8rem);
}

.hero-copy p:last-child {
  max-width: 520px;
  margin: 14px 0 0;
  color: #d8e3ee;
  font-size: 1.02rem;
  font-weight: 850;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(1040px, 100%);
  margin: 30px auto 0;
}

.score-card {
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
}

.score-card span {
  display: block;
  color: #bac8d6;
}

.score-card strong {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
  font-size: clamp(1.12rem, 6vw, 1.8rem);
  line-height: 1;
}

.score-card em {
  display: block;
  margin-top: 5px;
  color: #dbe5ee;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 850;
}

main {
  width: min(1240px, calc(100% - 20px));
  margin: -46px auto 0;
  padding-bottom: 34px;
  position: relative;
  z-index: 1;
}

.readout,
.chart-panel,
.source-strip {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.readout {
  margin-bottom: 10px;
  padding: 14px;
  border-left: 6px solid var(--gold);
}

.readout strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.38;
}

.chart-panel {
  overflow: hidden;
  margin: 10px 0;
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.chart-head a {
  flex: 0 0 auto;
  background: var(--navy);
  color: #ffffff;
}

.heat-map-wrap {
  overflow-x: auto;
  padding: 12px;
  background: #fbf8ef;
}

.heat-map-note {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.heat-map-note span {
  padding: 6px 8px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  background: #fffdf7;
}

.heat-map-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.heat-map-table th,
.heat-map-table td {
  border-right: 1px solid rgba(17, 24, 39, 0.08);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  padding: 9px 8px;
  text-align: center;
}

.heat-map-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #e7ded0;
  color: #344054;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.heat-rank,
.heat-name {
  position: sticky;
  z-index: 2;
  background: #fffdf7;
}

.heat-rank {
  left: 0;
  width: 46px;
  min-width: 46px;
  font-weight: 950;
}

.heat-name {
  left: 46px;
  width: 238px;
  min-width: 238px;
  text-align: left;
}

th.heat-rank,
th.heat-name {
  z-index: 4;
  background: #e7ded0;
}

.heat-player {
  display: grid;
  gap: 3px;
}

.heat-player strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heat-player span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heat-cell {
  min-width: 72px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.heat-cell.is-hot {
  color: #fffdf7;
}

.heat-case {
  min-width: 240px;
  max-width: 320px;
  color: #344054;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

.source-strip {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.source-strip p {
  margin: 0;
  color: #344054;
  line-height: 1.4;
}

@media (min-width: 720px) {
  .page-hero {
    padding-inline: 20px;
  }

  .score-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .chart-panel {
    margin-block: 14px;
  }
}

@media (max-width: 430px) {
  .top-nav a {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.64rem;
  }

  .page-hero {
    min-height: 560px;
  }

  .hero-copy {
    margin-top: 42px;
  }

  .chart-head {
    flex-direction: column;
  }

  .heat-map-wrap {
    padding: 8px;
  }
}
