@font-face {
  font-family: "Oswald";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/oswald-700.woff2") format("woff2"),
       url("fonts/oswald-700.woff") format("woff");
}

:root {
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1c1c1f;
  --line: #2a2a2e;
  --text: #f5f5f5;
  --muted: #a1a1a8;
  --red: #e03a3e;
  --red-deep: #9e2427;
  --gold: #f2c94c;
  --radius: 10px;
  --display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--body);
}

a { color: var(--text); text-underline-offset: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header ---------------------------------------------------------------- */

.masthead {
  padding: 28px 0 20px;
  border-bottom: 4px solid var(--red);
  background:
    linear-gradient(115deg, transparent 0 62%, var(--surface) 62% 100%),
    var(--bg);
}

.eyebrow {
  margin: 0 0 6px;
  font: 700 14px/1 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}

.title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 700 clamp(38px, 11vw, 64px)/.95 var(--display);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.title em { font-style: normal; color: var(--red); }
.title-glove { width: 1.05em; height: 1.05em; flex: none; }

.lede { margin: 12px 0 20px; color: var(--muted); max-width: 34em; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat-label, .section-title {
  font: 700 13px/1.2 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-value { font: 700 40px/1.05 var(--display); }
.stat-note { font-size: 13px; color: var(--muted); }

.section-title { margin: 0; font-size: 15px; color: var(--text); }

.board-prize { margin: 4px 0 10px; font-size: 14px; color: var(--muted); }

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.board-row {
  display: grid;
  grid-template-columns: 2.2em 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.board-row::before {
  /* Bar showing gloves relative to the leader. */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--share, 0%);
  background: linear-gradient(90deg, rgba(224, 58, 62, .22), rgba(224, 58, 62, .06));
  pointer-events: none;
}
.board-row > * { position: relative; }
.board-rank { font: 700 18px/1 var(--display); color: var(--muted); }
.board-name { font-weight: 600; }
.board-count { font: 700 22px/1 var(--display); }
.board-count small { font: 600 12px var(--body); color: var(--muted); margin-left: 4px; }

.board-row.is-leader { border-color: var(--red); }
.board-row.is-leader .board-rank { color: var(--red); }

.board-empty {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

.updated { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* Games ----------------------------------------------------------------- */

main { padding-top: 22px; padding-bottom: 32px; }

.games-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 8px;
}

.filter {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}
.filter button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 700 13px/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 14px;
  cursor: pointer;
}
.filter button[aria-pressed="true"] { background: var(--red); color: #fff; }

.next-link { margin-left: auto; font-size: 14px; color: var(--muted); }

.month {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 18px 0 8px;
  padding: 8px 0;
  background: var(--bg);
  font: 700 14px/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.game-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.game {
  display: grid;
  grid-template-columns: 3.4em 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 44px;
}

.game-date { display: flex; flex-direction: column; line-height: 1.1; }
.game-dow { font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.game-day { font: 700 18px var(--display); }

.game-main { min-width: 0; }
.matchup { font-weight: 600; overflow-wrap: anywhere; }
.matchup .ha { color: var(--muted); font-weight: 400; margin-right: 4px; }
.game-label { font-size: 12px; color: var(--muted); }

.game-result { text-align: right; white-space: nowrap; }
.wl {
  display: inline-block;
  min-width: 1.6em;
  padding: 3px 5px;
  margin-right: 6px;
  border-radius: 5px;
  font: 700 14px/1 var(--display);
  text-align: center;
}
.wl.w { background: var(--red); color: #fff; }
.wl.l { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.score { font: 700 18px var(--display); letter-spacing: .02em; }
.tip { font-size: 14px; color: var(--muted); }

.live {
  display: inline-block;
  margin-right: 6px;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--gold);
  color: #000;
  font: 700 12px/1 var(--display);
  letter-spacing: .1em;
}

.gloves {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 15px;
}
.gloves.confirmed { background: rgba(224, 58, 62, .14); border: 1px solid rgba(224, 58, 62, .45); }
.gloves.pending { border: 1px dashed var(--line); color: var(--muted); }
.gloves .emoji { font-size: 18px; line-height: 1; }
.gloves strong { font-weight: 700; color: var(--text); }
.gloves a { margin-left: auto; font-size: 14px; color: var(--muted); }
.gloves a:hover { color: var(--text); }

.game.is-win { border-left: 3px solid var(--red); }
.game.is-future { opacity: .55; }
.game.is-next { opacity: 1; border-color: var(--muted); }
.game.is-off .matchup { text-decoration: line-through; }

.message { color: var(--muted); }

/* Footer ---------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 36px;
  font-size: 13px;
  color: var(--muted);
}
.footer p { margin: 0 0 6px; }
.footer strong { color: var(--text); font-weight: 600; }

@media (min-width: 600px) {
  .masthead { padding-top: 40px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 220px)); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
