.ball {
  color: #fafafa;
  z-index: 999;
  background-color: #888;
  padding: 5px;
  position: fixed;
  top: 10px;
  right: 10px;
}

body {
  background-color: #fafafa;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.contents {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

canvas {
  background-color: #fff;
  background-image: radial-gradient(#ccc 7%, #0000 8.5%);
  background-position: 14px 14px;
  background-size: 28px 28px;
}

.header {
  text-align: left;
  background-color: #fff;
  width: 100%;
  padding: 8px;
  position: absolute;
  top: 0;
}

.header * {
  display: inline-block;
}

.header .title a {
  color: red;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
}

.header .highest_height {
  color: red;
  border-bottom: 5px solid red;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 8px;
}

.info {
  text-align: center;
  background-color: #fff;
  border-radius: 3px;
  font-size: 16px;
  position: absolute;
  bottom: 0;
}

.gameover {
  text-align: center;
  z-index: 999;
  flex-direction: column;
  place-content: center;
  align-items: center;
  width: 100vw;
  padding-top: 150px;
  padding-bottom: 70px;
  font-weight: bold;
  line-height: 1;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.gameover > .title {
  color: red;
  margin-bottom: 15px;
  font-size: 38px;
}

.gameover > .score {
  color: #33f;
  font-size: 100px;
}

.gameover > .tap {
  color: #565656;
  margin-top: 25px;
  font-size: 36px;
}

.ranking {
  background-color: #fff;
  width: 100%;
  margin-top: 80px;
  padding-top: 20px;
  padding-bottom: 10px;
  font-size: 24px;
  line-height: 1.9;
  display: none;
  box-shadow: 0 3px 8px #0000003d;
}

.ranking .rankin {
  color: red;
  margin-bottom: 5px;
  font-size: 35px;
  text-decoration: underline;
}

.ranking .title {
  font-size: 26px;
}

.ranking .table {
  text-align: center;
  width: 95%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.ranking .table .item * {
  display: inline-block;
}

.ranking .table .item {
  border-bottom: 1px solid #ccc;
}

.ranking .table .item .rank {
  width: 70px;
}

.ranking .table .item .emoji {
  margin-right: -10px;
  padding-right: 4px;
  font-size: 37px;
}

.ranking .table .item .code {
  font-size: 14px;
}

.ranking .table .item .score {
  width: 120px;
}

.ranking .mark {
  color: red;
}

.ranking .period {
  color: #888;
  margin-bottom: -10px;
  font-size: 20px;
}

.pc, .mobile {
  display: none;
}

.scale-up-center {
  animation: .5s cubic-bezier(.39, .575, .565, 1) both scale-up-center;
}

@keyframes scale-up-center {
  0% {
    transform: scale(.5);
  }

  100% {
    transform: scale(1);
  }
}
