@import url('https://fonts.googleapis.com/css?family=Press+Start+2P');

body {
  margin: 0;
  font-family: 'Press Start 2P', cursive;
  font-size: 2em;
  color: white;
  overflow: hidden;
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  #counter { top: 12px; right: 12px; }
}
button {
  outline: none;
  cursor: pointer;
  border: none;
  box-shadow: 3px 5px 0px 0px rgba(0,0,0,0.75);
}
#counter {
  position: absolute;
  top: 20px;
  right: 20px;
}
#end {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}
#end button {
  background-color: red;
  padding: 20px 50px 20px 50px;
  font-family: inherit;
  font-size: inherit;
}
#controlls {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  padding-bottom: env(safe-area-inset-bottom);
}
#controlls div {
  display: grid;
  grid-template-columns: 76px 76px 76px;
  grid-template-rows: auto auto;
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  margin-bottom: 16px;
  pointer-events: auto;
}
#controlls button {
  width: 100%;
  min-height: 64px;
  background-color: white;
  border: 1px solid lightgray;
  touch-action: manipulation;
  display: grid;
  place-items: center;
}
#controlls svg { width: 28px; height: 28px; display: block; }
#controlls button:first-of-type {
  grid-column: 1/-1;
}