body, #grid {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

#game-container {
  width: 320px;
  margin: 0 auto;
  background: #bbada0;
  padding: 10px;
  border-radius: 10px;
  user-select: none;
}

#score-board {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1em;
  color: #fff;
}

#grid {
  display: grid;
  grid-template-columns: repeat(4, 70px);
  grid-template-rows: repeat(4, 70px);
  gap: 10px;
  background: #bbada0;
  padding: 10px;
  border-radius: 10px;
}
#grid {
  touch-action: none;
}

.tile {
  width: 70px;
  height: 70px;
  background: #ccc0b3;
  font-size: 1.5em;
  color: #776e65;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  font-weight: bold;
}

.tile-2    { background: #eee4da; }
.tile-4    { background: #ede0c8; }
.tile-8    { background: #f2b179; color: #fff; }
.tile-16   { background: #f59563; color: #fff; }
.tile-32   { background: #f67c5f; color: #fff; }
.tile-64   { background: #f65e3b; color: #fff; }
.tile-128  { background: #edcf72; color: #fff; font-size: 1.3em; }
.tile-256  { background: #edcc61; color: #fff; font-size: 1.3em; }
.tile-512  { background: #edc850; color: #fff; font-size: 1.3em; }
.tile-1024 { background: #edc53f; color: #fff; font-size: 1.1em; }
.tile-2048 { background: #edc22e; color: #fff; font-size: 1.1em; }

#restartBtn {
  display: block;
  margin: 14px auto 0;
  padding: 8px 16px;
  font-size: 1em;
  background: #8f7a66;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#restartBtn:hover {
  background: #a98c75;
}
