* {
  box-sizing: border-box;
}

h1 {
  font-size: 1.4em;
}

body {
  counter-reset: game;
  text-align: center;
  background: #e9b58b;
  font-family: "Open Sans", "Helvetica", "Arial", sans-serif;
  color: #333;
}

input:checked {
  counter-increment: game;
}

.total-count::after {
  content: counter(game);
}

h2 {
  font-size: 1em;
  margin: -0.5em auto 3em;
  font-weight: 400;
}

.total-count {
  font-size: 1.75em;
  position: absolute;
  top: 1.75em;
  width: 100%;
  left: 0;
  text-align: center;
  z-index: 300;
}

.game-area {
  display: flex;
  flex-flow: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  min-height: 550px;
  max-height: 700px;
  margin: 0 auto;
  padding-left: 0;
}

li {
  width: calc(33% - .5em);
  margin-bottom: 1em;
  height: 10em;
  list-style: none;
  position: relative;
  outline: 4px solid white;
  background: #64ddf3;
}
li:nth-child(1) input {
  filter: hue-rotate(325.2516533631deg) brightness(1.6973720747);
  -webkit-animation-duration: 3.1882577951s;
          animation-duration: 3.1882577951s;
}
li:nth-child(2) input {
  filter: hue-rotate(295.6230715401deg) brightness(1.6092800648);
  -webkit-animation-duration: 4.5687374549s;
          animation-duration: 4.5687374549s;
}
li:nth-child(3) input {
  filter: hue-rotate(109.2208278586deg) brightness(1.7089712424);
  -webkit-animation-duration: 0.9152252482s;
          animation-duration: 0.9152252482s;
}
li:nth-child(4) input {
  filter: hue-rotate(166.4016246337deg) brightness(1.6485487585);
  -webkit-animation-duration: 3.0782038296s;
          animation-duration: 3.0782038296s;
}
li:nth-child(5) input {
  filter: hue-rotate(245.8179447321deg) brightness(1.9387206052);
  -webkit-animation-duration: 2.2501165344s;
          animation-duration: 2.2501165344s;
}
li:nth-child(6) input {
  filter: hue-rotate(87.5950313244deg) brightness(1.2425103898);
  -webkit-animation-duration: 2.9845732211s;
          animation-duration: 2.9845732211s;
}
li:nth-child(7) input {
  filter: hue-rotate(323.1099105664deg) brightness(1.9963464123);
  -webkit-animation-duration: 2.010090095s;
          animation-duration: 2.010090095s;
}
li:nth-child(8) input {
  filter: hue-rotate(170.7002324869deg) brightness(1.5483045363);
  -webkit-animation-duration: 0.7203904584s;
          animation-duration: 0.7203904584s;
}
li:nth-child(9) input {
  filter: hue-rotate(295.9749682314deg) brightness(1.8921198888);
  -webkit-animation-duration: 2.9757563001s;
          animation-duration: 2.9757563001s;
}

input[type=checkbox] {
  width: 50px;
  height: 50px;
  position: absolute;
  cursor: crosshair;
  background: radial-gradient(red 10%, white 10%, white 30%, red 30%, red 50%, white 50%, white 80%, red 80%, red 100%);
  border-radius: 50%;
  display: block;
  left: 0;
  right: 0;
  text-align: center;
  margin: 0 auto;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 6px solid red;
  -webkit-animation: hide-target infinite alternate ease-in-out;
          animation: hide-target infinite alternate ease-in-out;
  z-index: 1;
}
input[type=checkbox]:before {
  content: "";
  display: block;
  background-color: black;
  height: 50%;
  width: 6px;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0 auto;
  z-index: -1;
}
input[type=checkbox]:focus {
  outline: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
input[type=checkbox]:checked {
  pointer-events: none;
  filter: grayscale(1) opacity(0.75);
  -webkit-animation: none;
          animation: none;
}
input[type=checkbox]:checked:after {
  content: "+1!";
  padding: 0.5em;
  margin: 1em 0 0 1.5em;
  font-size: 2.5em;
  font-weight: 600;
}

.shield {
  background: #724c20;
  width: 100%;
  height: 60%;
  margin: 0 auto;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
  pointer-events: all;
  z-index: 100;
}

@-webkit-keyframes hide-target {
  0% {
    top: 0;
  }
  25% {
    top: 50%;
  }
  100% {
    top: 0;
  }
}

@keyframes hide-target {
  0% {
    top: 0;
  }
  25% {
    top: 50%;
  }
  100% {
    top: 0;
  }
}
.game-over {
  height: 100%;
  width: 100%;
  display: block;
  background: white;
  pointer-events: all;
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 200;
  -webkit-animation: appear 0.25s forwards;
          animation: appear 0.25s forwards;
  -webkit-animation-delay: 8s;
          animation-delay: 8s;
  background: repeating-linear-gradient(-45deg, #c9ff00 0, #c9ff00 5em, #20c0ff 5em, #20c0ff 10em);
}
.game-over h1 {
  padding: 1em 0 3.5em;
  background: white;
}

@-webkit-keyframes appear {
  from {
    top: -100vh;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes appear {
  from {
    top: -100vh;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
.play-again {
  background: white;
  color: #20c0ff;
  padding: 0.5em 1em;
  font-size: 2.5em;
  font-weight: 700;
}

small a {
  margin-bottom: 2em;
  display: block;
  color: #222;
}