:root {
  --bg: #fcfcfb;
  --ink: #0b0b0b;
  --mute: #8a8a87;
  --line: #e7e7e4;
  --live: #e0261b;
  --gutter: clamp(20px, 5vw, 72px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body { min-height: 100svh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

.tabs {
  position: fixed; z-index: 20; top: 0; right: 0;
  display: flex; gap: 28px;
  padding: 26px var(--gutter);
  font-size: 15px; letter-spacing: -0.01em;
}
.tabs a { position: relative; padding: 4px 0; }
.tabs a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 140ms ease-out;
}
.tabs a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .tabs a:hover::after { transform: scaleX(1); }
}
.home-link { position: fixed; z-index: 20; top: 0; left: 0; padding: 30px var(--gutter); font-size: 15px; font-weight: 700; }

.home {
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding: 110px var(--gutter) 72px;
}
.name {
  font-weight: 700;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.9; letter-spacing: -0.045em;
}

/* the pin square: pixel pictures that turn into each other */
.pins {
  display: block; color: var(--ink);
  width: min(46vw, calc(100svh - 200px), 640px);
  aspect-ratio: 1;
}

/* scores: one tight list under the name */
.scores { margin-top: clamp(22px, 3vw, 36px); max-width: 300px; font-size: 12px; }
.scores ul { list-style: none; }
.game {
  display: grid; grid-template-columns: 3.4em 1fr auto; align-items: baseline;
  padding: 4px 0; border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.game:last-child { border-bottom: 1px solid var(--line); }
.game .lg { font-size: 10px; letter-spacing: 0.04em; color: var(--mute); }
.game .teams { display: grid; grid-template-columns: 2.9em 3em 2.9em; }
.game .teams b { font-weight: 700; text-align: center; }
.game .teams span:last-child { text-align: right; }
.game .when { color: var(--mute); text-align: right; }
.game .where { display: none; }
.game.pre .teams b { font-weight: 400; color: var(--mute); }
.game.in .teams b, .game.in .when { color: var(--live); }
.game.in .when { font-weight: 700; }
.game.in .when::before {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--live); margin-right: 5px; vertical-align: 1px;
  animation: pulse 1.6s ease-in-out infinite;
}
.game.none { display: block; color: var(--mute); }
@keyframes pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .game.in .when::before { animation: none; } }

@media (max-width: 760px) {
  .home { grid-template-columns: 1fr; align-content: center; gap: 36px; padding-top: 96px; }
  .pins { width: 100%; max-width: 440px; justify-self: center; }
  .scores { max-width: none; }
}

/* inner pages */
.page {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 80px;
}
.page h1 { font-size: clamp(44px, 7vw, 112px); line-height: 0.92; letter-spacing: -0.045em; }
.page p { margin-top: 20px; color: var(--mute); font-size: 15px; }

@media (max-width: 560px) {
  .tabs { gap: 20px; padding-top: 22px; font-size: 14px; }
  .home-link { padding-top: 26px; font-size: 14px; }
}
