html,
body {
  height: 100%;
  background-color: #DB9102;
  color: #0243A6;  
}
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overscroll-behavior-y: none;
  overflow: hidden;
}

.score {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  font-size: 36px;
  font-weight: bold;
}

.board {
  max-width: 90%;
  display: flex;
  flex-wrap: wrap;
  width: 460px;
  height: 460px;
  margin: 0 auto;
  background-color: #bbada0;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  /* justify-content: space-between; */
  position: relative;
  overflow: hidden;
}

.tile {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  font-weight: bold;
  width: calc(25% - 12px);
  height: calc(25% - 12px);
  margin: 10px;
  background-color: #ccc0b3;
  color: #776e65;
  border-radius: 6px;
  box-shadow: inset 0px 0px 0px 2px rgba(238, 228, 218, 0.1);
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  position: absolute;
  /* font-family: 'Noto Color Emoji', sans-serif; */
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.emoji-container {
  max-width: 90%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.emoji-info {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.emoji {
  font-size: 2em;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.info {
  margin-left: 10px;
  font-size: 1.2em;
  text-align: center;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  50% {
    transform: translateX(10px);
  }
  75% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes tile-appear {
  from {
    transform: scale(0) rotate(180deg);
  }
  to {
    transform: scale(1) rotate(0deg);
  }
}

.tile.merged {
  animation: shake 0.3s ease-in-out;
}

.tile.appear {
  animation: tile-appear 0.3s ease-in-out;
}

/* 타일 색상 클래스 */
.tile-2 {
  background-color: hsl(25, 85%, 90%);
  color: #3a3938;
}

.tile-4 {
  background-color: hsl(45, 85%, 90%);
  color: #3a3938;
}

.tile-8 {
  background-color: hsl(70, 85%, 90%);
  color: #3a3938;
}

.tile-16 {
  background-color: hsl(110, 85%, 90%);
  color: #3a3938;
}

.tile-32 {
  background-color: hsl(145, 85%, 90%);
  color: #3a3938;
}

.tile-64 {
  background-color: hsl(180, 85%, 90%);
  color: #3a3938;
}

.tile-128 {
  background-color: hsl(215, 85%, 90%);
  color: #3a3938;
}

.tile-256 {
  background-color: hsl(250, 85%, 90%);
  color: #3a3938;
}

.tile-512 {
  background-color: hsl(285, 85%, 90%);
  color: #3a3938;
}

.tile-1024 {
  background-color: hsl(320, 85%, 90%);
  color: #3a3938;
}

.tile-2048 {
  background-color: hsl(350, 85%, 90%);
  color: #3a3938;
}

.tile-4096 {
  background-color: hsl(10, 80%, 80%);
  color: #3a3938;
}
