:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #25251e;
  background: #faf9f5;
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2.5rem, 60rem); margin-inline: auto; }
.banner { background: #f3d568; padding-block: clamp(2rem, 6vw, 4.5rem); }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 7vw, 4rem); margin: 0; letter-spacing: -0.025em; }
h2 { font-size: 1.75rem; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 1rem; }
p { max-width: 65ch; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
a { color: inherit; text-underline-offset: 0.2em; }
.play, button {
  display: inline-block;
  border: 2px solid #25251e;
  border-radius: 0.25rem;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.play { background: #25251e; color: #fffdf5; text-decoration: none; }
.play:hover { background: #464639; }
button { background: transparent; color: inherit; margin-top: 1.75rem; }
button:hover:not(:disabled) { background: #eeeadd; }
button:disabled { cursor: wait; opacity: 0.65; }
:focus-visible { outline: 3px solid #1756a9; outline-offset: 4px; }
::selection { background: #25251e; color: #fffdf5; }
main { padding-block: 3rem; }
#scores-status { margin-bottom: 1.75rem; }
#demo-notice { font-weight: 650; }
.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.boards > section { min-width: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 0.65rem 0.5rem; text-align: left; border-bottom: 1px solid #d3d0c4; }
th:first-child, td:first-child { padding-left: 0; width: 4rem; }
th:last-child, td:last-child { padding-right: 0; }
.score { text-align: right; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 40rem) {
  .boards { grid-template-columns: 1fr; gap: 2.5rem; }
  main { padding-block: 2rem; }
}
