body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: #f4f4f4;
  text-align: center;
  line-height: 1.5;
}

.page {
  width: min(100%, 960px);
  max-width: 960px;
  margin: 40px auto;
  padding: 24px;
  background: transparent;
}

h1 {
  margin: 12px 0 16px;
  padding: 4px 0;
}

/* Wrapper */
.board-wrapper {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 10px;
  max-width: 100%;
}

/* Team labels */
.top-team {
  background: #002244; /* Patriots navy */
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 8px 12px;
  margin-bottom: 6px;
  grid-column: 2;
  justify-self: stretch;
  border-radius: 6px;
  letter-spacing: 0.4px;
  text-transform: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


.left-team {
  background: #002A5C; /* Seahawks navy */
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  border-radius: 6px;
  letter-spacing: 0.4px;
  text-transform: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Layout row */
.board-row {
  display: contents;
}

table {
  grid-column: 2;
  grid-row: 2;
}

/* Board */
table {
  border-collapse: collapse;
  max-width: 90vw;
}

td, th {
  border: 1px solid #333;
  width: clamp(40px, 8vw, 70px);
  height: clamp(40px, 8vw, 70px);
  text-align: center;
  vertical-align: middle;
  background: white;
  font-size: clamp(10px, 2vw, 14px);
}

th {
  background: #B0B7BC; /* silver */
  color: #002244;
  font-weight: bold;
}

/* Top row numbers only */
tr:first-child th {
  background: #C60C30; /* Patriots red */
  color: #FFFFFF;
  font-size: clamp(12px, 2.5vw, 16px);
  border-bottom: 3px solid #002244;
}

tr:first-child th:first-child {
  background: transparent;
  border: none;
}

/* Left column numbers */
tr:not(:first-child) th:first-child {
  background: #7AC142; /* Seahawks green */
  color: #FFFFFF;
  font-size: clamp(12px, 2.5vw, 16px);
  border-right: 3px solid #002A5C;
}
