html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #05070b;
  overflow: hidden;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  /* A phone must not bounce, zoom, select text or offer to call a number that
     happens to be in a loot line. */
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#game {
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;          /* the browser chrome on a phone is not part of the game */
  cursor: crosshair;
  background: #05070b;
  touch-action: none;
}

#hint {
  position: fixed;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  color: rgba(210, 220, 235, 0.28);
  font-size: 11px;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

@media (max-width: 720px) {
  #hint { font-size: 9px; white-space: normal; width: 92vw; text-align: center; }
}

/* On a phone the control line sits under the thumb cluster, so it moves into
   the safe area and out of the way of the action buttons. */
@media (pointer: coarse) {
  #hint {
    bottom: calc(6px + env(safe-area-inset-bottom));
    left: 4%;
    transform: none;
    width: 92%;
    font-size: 9px;
    white-space: normal;
    text-align: left;
  }
}
