body {
  font-family: 'Arial', sans-serif;
  background: #faf8ef;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin-top: 30px;
  color: #776e65;
}

#game-container {
  margin-top: 20px;
  background: #bbada0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

#board {
  display: grid;
  grid-template-columns: repeat(4, 80px);
  grid-template-rows: repeat(4, 80px);
  gap: 10px;
  margin-bottom: 15px;
}

.tile {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 6px;
  background: #cdc1b4;
  color: #776e65;
  transition: background 0.2s, color 0.2s;
}

.tile.tile-2    { background: #eee4da; color: #776e65; }
.tile.tile-4    { background: #ede0c8; color: #776e65; }
.tile.tile-8    { background: #f2b179; color: #f9f6f2; }
.tile.tile-16   { background: #f59563; color: #f9f6f2; }
.tile.tile-32   { background: #f67c5f; color: #f9f6f2; }
.tile.tile-64   { background: #f65e3b; color: #f9f6f2; }
.tile.tile-128  { background: #edcf72; color: #f9f6f2; }
.tile.tile-256  { background: #edcc61; color: #f9f6f2; }
.tile.tile-512  { background: #edc850; color: #f9f6f2; }
.tile.tile-1024 { background: #edc53f; color: #f9f6f2; }
.tile.tile-2048 { background: #edc22e; color: #f9f6f2; }

#score-container {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

#restart-btn {
  padding: 8px 20px;
  font-size: 1rem;
  border: none;
  background: #8f7a66;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.2s;
}

#restart-btn:hover {
  background: #a39489;
}

#game-message {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #f65e3b;
  min-height: 24px;
}