html, body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans HK', sans-serif;
}
header {
  display: flex;
  padding-left: 20px;
  border-bottom: 2px solid #000;
}
header > h1 {
  display: flex;
  flex-grow: 1;
}
header > h1 > span {
  height: 75px;
  width: 75px;
  line-height: 75px;
  text-align: center;
  font-family: 'Slabo 27px', serif;
  font-size: 2em;
  border: 5px solid #000;
  transform: rotate(-9deg);
  background: #fff;
}
header > h1 > span:nth-child(2n) {
  transform: rotate(9deg);
}
header > button {
  outline: 0;
  border: 0;
  background: #f49242;
  font-size: 2.3em;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  padding: 0 25px;
}
main {
  padding: 25px;
  display: flex;
  align-items: end;
  user-select: none;
}
#board {
  font-family: 'Slabo 27px', serif;
  border: 5px solid #000;
  flex-shrink: 0;
  display: flex;
  flex-flow: row wrap;
  padding: 10px 10px 15px 15px;
  width: 600px;
  position: relative;
  box-sizing: border-box;
  margin-bottom: 125px;
}
#board > div {
  width: 126px;
  height: 126px;
  border: 5px solid #000;
  font-size: 5em;
  font-weight: bold;
  margin: 5px 5px 0 0;
  cursor: pointer;
  text-align: center;
  line-height: calc((100vh - 395px) / 4);
  text-transform: uppercase;
}
#board > canvas {
  position: absolute;
  pointer-events: none;
  width: 100%;
  height: 600px;
  margin: -15px 0 0 -15px;
}
#words {
  padding-left: 15px;
  flex-grow: 1;
}
#words > h2 {
  padding: 0 0 10px 0;
  margin: 0 0 15px 0;
  border-bottom: 1px solid #000;
}
#words > ul {
  font-family: 'Slabo 27px', serif;
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3;
}
#words > ul > li {
  margin-bottom: 10px;
  color: #fff;
}
#words > ul > li > a {
  display: none;
  color: #4286f4;
  font-family: 'Noto Sans HK', sans-serif;
  text-decoration: none;
}
#words > ul > li > span {
  display: inline-block;
  border-bottom: 2px solid #000;
  margin-right: 5px;
  text-align: center;
  font-size: 1.5em;
  text-transform: uppercase;
}
#words > ul > li:not(.guessed) > span {
  cursor: pointer;
}
#words > ul > li.guessed {
  color: #000;
}
#words > ul > li.guessed > a {
  display: inline;
}
#words > ul > li > span.hint {
  color: #999;
}
#word {
  font-family: 'Slabo 27px', serif;
  width: 600px;
  font-size: 4em;
  text-align: center;
  text-transform: uppercase;
  position: absolute;
  top: 770px;
  left: 25px;
}

@media all and (max-width: 1000px) {
  main {
    display: block;
  }
  #board, #words {
    margin-left: auto;
    margin-right: auto;
  }
  #words {
    width: 600px;
    padding-left: 0;
  }
}