:root {
  --board-size: 456px;
  --board-gap: 7px;
  --tile-size: 100px;
  --tile-font-size: 60px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 12px;
  min-height: 100vh;
  background-color: #faf8ef;
  display: flex;
  justify-content: center;
  font-family: "Clear Sans", "Helvetica Neue", sans-serif;
}

.container {
  width: var(--board-size);
  margin-top: 10px;
}

.info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

h1 {
  font-size: 100px;
  line-height: 1;
  color: #776e65;
  margin: 0;
}

#result {
  display: block;
  font-size: 30px;
  color: #776e65;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  width: var(--board-size);
  height: var(--board-size);
  background-color: #bbada0;
  border-radius: 6px;
  margin-top: 16px;
}

.grid div {
  width: var(--tile-size);
  height: var(--tile-size);
  margin: var(--board-gap);
  border-radius: 3px;
  background-color: #eee4da;
  color: #afa192;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--tile-font-size);
}

.score-container {
  text-align: center;
  width: 120px;
  height: 100px;
  border-radius: 3px;
  background-color: #8f7a66;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#score {
  font-size: 30px;
}

.score-title {
  font-size: 15px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  h1 {
    font-size: 54px;
  }

  #result {
    font-size: 14px;
  }

  .score-container {
    width: 64px;
    height: 56px;
  }

  #score {
    font-size: 24px;
  }
}
