/* Baseline reset.
   Rewritten from the original: that version set `color` and `font-size` on the
   universal selector, which forced every element on the page to one dark grey
   at one size and defeated the type scale, and it set `overflow: hidden` on
   html/body, which stopped the page scrolling at all. Both are fine for a
   single fixed-viewport board; neither survives a multi-page app. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Honour a reduced-motion preference: the race still plays out stage by stage,
   it just stops sliding and jolting the horses. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
