/* The game paints itself: the page only has to get out of the way. */

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #f6f3e9;
  color: #3b4149;
  font-family: 'Bradley Hand', 'Chalkboard SE', 'Segoe Print', 'Comic Sans MS', cursive;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  /* Hold a finger on a ship to take aim and iOS thinks you are reaching for a
     word: it opens the magnifying loupe and the copy/paste callout over the
     page. Nothing here is text to be picked up, so refuse both. `touch-action`
     below only settles scrolling and pinching — selection is its own argument. */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

#board {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* keep the mirrored controls reachable when they are focused */
.sr-only button:focus-visible {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  padding: 0.4em 0.9em;
  font: inherit;
  background: #f6f3e9;
  border: 2px solid #3b4149;
  border-radius: 10px 7px 12px 8px;
}
