html,
body {
  margin: 0;
  height: 100%;
  background: #0e1022;
  overflow: hidden;
  touch-action: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

canvas {
  display: block;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#touch {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

#touch .group {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}

#touch button,
#pause-btn {
  pointer-events: auto;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

#touch button {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 26px;
}

#touch button.jump {
  width: 88px;
  height: 88px;
}

#touch button.on {
  background: rgba(255, 255, 255, 0.42);
}

#pause-btn {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-weight: 800;
  display: none;
}

@media (pointer: coarse) {
  #touch {
    display: flex;
  }
  #pause-btn {
    display: block;
  }
}
