html,
body {
  margin: 0;
  height: 100%;
  background: #fffdf8;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  position: fixed;
  inset: 0;
  font-family: 'Patrick Hand', 'Chalkboard SE', 'Comic Sans MS', cursive;
  color: #211f1d;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

/* The game draws inside the part of the screen that is clear of a phone's
   notch, rounded corners and home bar; the paper colour carries on beyond. */
#stage {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  right: env(safe-area-inset-right, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  left: env(safe-area-inset-left, 0px);
}

#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
  outline: none;
  touch-action: none;
}

noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
}
