* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background: #1a1a2e;
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  /* Prevent iOS bounce */
  position: fixed;
}

#game-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  display: block;
  /* Prevent default touch behaviors on the canvas */
  touch-action: none;
}

/* Phaser DOM container (for name input overlay) */
#game-container > div {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Name input field */
#playerName {
  pointer-events: auto;
  font-family: Arial, sans-serif;
}

#playerName::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
