/* Preloading sprites */
body::after{
  position:absolute; width:0; height:0; overflow:hidden; z-index:-1;
  content:url(bg.png) url(mac.png) url(shit.png) url(shit-punched.png);
}

html {
  box-sizing: border-box;
  font-size: 10px;

}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  padding: 0;
  margin: 0;
  font-family: 'Press Start 2P', cursive;
  color: aliceblue;
  background: #000000!important;
}

h1 {
  text-align: center;
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 0;
}

.score {
  background: rgba(255,255,255,0.2);
  padding: 0 3rem;
  line-height: 1;
  border-radius: 1rem;
}

.game {
  width: 600px;
  height: 400px;
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  background: url('bg.png');
  background-size: 100% auto;
  cursor: url('punch.png'), pointer !important;

}

.mac {
  flex: 1 0 33.33%;
  overflow: hidden;
  position: relative;
}

.mac:after {
  display: block;
  background: url(mac.png) bottom center no-repeat;
  background-size: contain;
  content: '';
  width: 100%;
  height:70px;
  position: absolute;
  z-index: 2;
  bottom: 0px;
}

.shit {
  background: url('shit.png') bottom center no-repeat;
  background-size: 60%;
  position: absolute;
  top: 100%;
  width: 100%;
  height: 100%;
  transition:all 0.4s;
}

.shit.punched {
  background: url('shit-punched.png') bottom center no-repeat;
  background-size: 60%;
}

.mac.up .shit {
  top: -50px;
}
