body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: #faf8ef;
  margin: 0;
  padding: 20px;
}
h1 {
  font-size: 48px;
  margin-bottom: 10px;
}
#score {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #333;
}
#game-board {
  display: grid;
  grid-template-columns: repeat(4, 100px);
  grid-template-rows: repeat(4, 100px);
  gap: 10px;
  justify-content: center;
  margin: 0 auto;
}
.tile {
  background-color: #cdc1b4;
  font-size: 28px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.tile[data-value="2"] {
  background: #eee4da;
}
.tile[data-value="4"] {
  background: #ede0c8;
}
.tile[data-value="8"] {
  background: #f2b179;
  color: #fff;
}
.tile[data-value="16"] {
  background: #f59563;
  color: #fff;
}
.tile[data-value="32"] {
  background: #f67c5f;
  color: #fff;
}
.tile[data-value="64"] {
  background: #f65e3b;
  color: #fff;
}
.tile[data-value="128"] {
  background: #edcf72;
  color: #fff;
}
.tile[data-value="256"] {
  background: #edcc61;
  color: #fff;
}
.tile[data-value="512"] {
  background: #edc850;
  color: #fff;
}
.tile[data-value="1024"] {
  background: #edc53f;
  color: #fff;
}
.tile[data-value="2048"] {
  background: #edc22e;
  color: #fff;
}
#game-over-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.modal-content {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.modal-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
}
.modal-content button {
  padding: 10px 20px;
  font-size: 18px;
  background-color: #ff5722;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.modal-content button:hover {
  background-color: #e64a19;
}
.hidden {
  display: none !important;
}
