:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  --on: #f5c542;
  --off: #2d3440;
}
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #14181f;
  color: #f2f2f2;
}
main {
  width: min(92vw, 420px);
  text-align: center;
}
.board {
  width: 100%;
  aspect-ratio: 1;
}
.board .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 100%;
}
.board button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--off);
  cursor: pointer;
}
.board button[aria-pressed='true'] {
  background: var(--on);
}
.board canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: manipulation;
}
#again {
  min-height: 44px;
  padding: 0 20px;
  font: inherit;
}
