body {
    background-color: #faf8ef;
    font-family: 'Arial', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
  }
  
  .grid {
    display: grid;
    margin-top: 25px;
    grid-template-columns: repeat(4, 70px);  
    grid-template-rows: repeat(4, 70px);    
    gap: 5px;  
    background-color: #bbada0;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .grid div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: #eee4da;
    text-align: center;
    font-weight: bold;
    font-size: 28px;
    border-radius: 8px;
    color: #776e65;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  }
  
  .grid div[data-value="2"] { background-color: #eee4da; color: #776e65; }
  .grid div[data-value="4"] { background-color: #ede0c8; color: #776e65; }
  .grid div[data-value="8"] { background-color: #f2b179; color: #f9f6f2; }
  .grid div[data-value="16"] { background-color: #f59563; color: #f9f6f2; }
  .grid div[data-value="32"] { background-color: #f67c5f; color: #f9f6f2; }
  .grid div[data-value="64"] { background-color: #f65e3b; color: #f9f6f2; }
  .grid div[data-value="128"] { background-color: #edcf72; color: #f9f6f2; }
  .grid div[data-value="256"] { background-color: #edcc61; color: #f9f6f2; }
  .grid div[data-value="512"] { background-color: #edc850; color: #f9f6f2; }
  .grid div[data-value="1024"] { background-color: #edc53f; color: #f9f6f2; }
  .grid div[data-value="2048"] { background-color: #edc22e; color: #f9f6f2; }
  
  .scoreContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 320px;
    background: #bbada0;
    padding: 10px;
    border-radius: 10px;
    color: #f9f6f2;
    font-weight: bold;
    margin-top: 20px;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .scoreContainer span {
    font-size: 20px;
    color: #fff;
  }
  
  .header {
    font-size: 50px;
    font-weight: bold;
    color: #776e65;
    margin: 20px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
  }
  
  .instructions {
    color: #776e65;
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
  }
  
  #result {
    text-align: center;
    color: #776e65;
    font-size: 20px;
    margin-top: 20px;
  }
  