html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game {
  display: block;
  image-rendering: pixelated;
  outline: none;
  background: #000;
}

#status {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 24px;
  text-align: center;
  color: #c8b98a;
  font: 14px Arial, Helvetica, sans-serif;
  pointer-events: none;
}

#keyboard-button {
  display: none;
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  padding: 8px 12px;
  border: 1px solid #5a4a2a;
  border-radius: 6px;
  background: rgba(30, 24, 14, 0.85);
  color: #e8d9a8;
  font: 13px Arial, Helvetica, sans-serif;
  z-index: 3;
}

#keyboard-input {
  position: fixed;
  left: -1000px;
  top: 0;
  width: 10px;
  height: 10px;
  opacity: 0;
  font-size: 16px;
}

#rotate {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: #000;
  color: #e8d9a8;
  font: 18px Arial, Helvetica, sans-serif;
  z-index: 4;
}

@media (pointer: coarse) {
  #keyboard-button {
    display: block;
  }
}

@media (pointer: coarse) and (orientation: portrait) {
  #rotate {
    display: flex;
  }
}
