/* Base: the reset, document/body defaults and shared utility classes. */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font: 14px / 1.45 var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  display: grid;
  grid-template-rows: auto 1fr auto; /* header, stage (toolbar lives inside stage), disclaimer footer */
  /* The column must be definite: an implicit auto track sizes to its content's
     min-content width, so a wide descendant (the leaderboard table on a phone)
     would widen the whole page past the viewport and clip every right edge. */
  grid-template-columns: 100%;
  height: 100vh;
  overflow: hidden;
}
/* And the grid children must not reassert that intrinsic width through their
   automatic minimum size (min-width: auto on a grid item means min-content). */
body > * {
  min-width: 0;
}
.tnum {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
