@import url(https://fonts.googleapis.com/css?family=Silkscreen:regular,700);
p {
  font-family: Silkscreen;
  font-size: 28px;
}
.game-screen {
  display: grid;
  grid-template-rows: 2fr 1fr;
  position: relative;
  background-color: rgb(237, 240, 226);
  border: 4px solid #344132;
  height: 600px;
  width: 900px;
  margin: 40px auto;
  justify-self: center;
  overflow: hidden;
}

#pet-position {
  justify-self: center;
  align-self: end;

  transition: transform 0.8s linear;
}

#pet {
  width: 256px;
  height: 256px;

  background-image: url("../images/Pet/Pez_spriteSheet.png");
  background-size: 768px 768px;
  background-position: 0 0;
  background-repeat: no-repeat;

  image-rendering: pixelated;
  cursor: pointer;

  justify-self: center;
  align-self: end;
}

/* FILA 1 */
#pet.sprite-1 {
  background-position: 0 0;
}

#pet.sprite-2 {
  background-position: -256px 0;
}

#pet.sprite-3 {
  background-position: -512px 0;
}

/* FILA 2 */
#pet.sprite-4 {
  background-position: 0 -256px;
}

#pet.sprite-5 {
  background-position: -256px -256px;
}

#pet.sprite-6 {
  background-position: -512px -256px;
}

/* FILA 3 */
#pet.sprite-7 {
  background-position: 0 -512px;
}

#pet.sprite-8 {
  background-position: -256px -512px;
}

#pet.sprite-9 {
  background-position: -512px -512px;
}

.opciones {
  background-color: rgb(177, 202, 133);
  border: 4px #344132;
  height: 200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 2;
  padding: 20px 80px;
}

.opciones p {
  cursor: pointer;
}

@media (max-width: 700px) {
  .game-screen {
    width: calc(100vw - 30px);
    max-width: 500px;
    height: 600px;

    margin: 90px auto 30px;

    grid-template-rows: 1fr 180px;

    overflow: hidden;
  }

  /* Área donde vive el monito */
  #pet-position {
    justify-self: center;
    align-self: end;

    /* conserva tu animación de caminar */
    transition: transform 0.8s linear;
  }

  /* Mantenemos el sprite grande */
  #pet {
    width: 256px;
    height: 256px;

    background-size: 768px 768px;

    image-rendering: pixelated;
  }

  /* Botones */
  .opciones {
    width: 100%;
    height: 180px;

    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;

    padding: 15px 25px;
    align-items: center;
  }

  .opciones p {
    font-size: 20px;
    margin: 0;
    text-align: center;
  }

  #pet-stats {
    font-size: 16px;
  }
}
