html,
body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

canvas,
.backbuffer {
  touch-action: none !important;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

#ios-kbd {
  pointer-events: none;
}

#ios-chat-button {
  position: fixed;
  /* 18/10: o chat (com as abas) agora fica no topo; o botao desce para o lado do direcional */
  /* 18/10 noite: longe da borda de baixo (o gesto do iPhone mora ali) */
  /* 28/10 noite: igual ao outro cliente, ao lado da grade de botoes do canto de cima (segunda linha) */
  top: 64px;
  left: calc(env(safe-area-inset-left, 0px) + 100px);
  z-index: 20;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 5px;
  /* 30/10: balao branco por cima do mesmo botao do jogo (o jogo manda o lugar exato pela linha [PYBTN]) */
  background: url(ic2_chat.png) center / 26px 26px no-repeat, url(hud_btn.png) center / 100% 100% no-repeat;
  color: transparent;
  font-size: 0;
  font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#ios-chat-button:active,
#ios-chat-button.is-open {
  filter: brightness(1.35);
}

@media (orientation: portrait) and (max-width: 900px) {
  #ios-chat-button {
    display: none;
  }
}
