* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  -webkit-tap-highlight-color: transparent;
}

#stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.touch {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: none;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}

.touch button {
  pointer-events: auto;
  width: 68px;
  height: 68px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font: 700 24px/1 ui-monospace, monospace;
  touch-action: none;
  user-select: none;
}

.touch button:active {
  background: #fff;
  color: #000;
}

@media (pointer: coarse) {
  .touch {
    display: flex;
  }
}
